« first day (1567 days earlier)      last day (3380 days later) » 

3:00 PM
@darkyen00 yeh
 
done :D
 
3:13 PM
hi guys
 
hi Corbo152
 
my js syntax is a little to be laughed at, can anyone rearrange this so that my document.ready function is outside get system messages
 
is "listen" an appropriate method name that adds an event listener?
 
@NickDugger no, addEVentListener is an appropriate method name
listen is an semi-appropriate name for a function that happens after an event (think clickListener for click event)
 
class Foo {
    listen() {
        this.target.addEventListener('click', this.create);
    }
}
let foo = new Foo;
foo.listen()
so this would be a poor choice?
 
user4082764
3:19 PM
anyone can answer my question ?
 
@NickDugger Yes
 
@NickDugger If you have a method that does that (binds all events), it's traditionally called bindEvents or attach or perhaps listen. Binding and unbinding all your events in one method is a great idea, though.
 
What can I do to make it suck less?
 
For a reference, all jquery method names are terrible
 
Excellent for maintaining them.
 
3:20 PM
Add a noun
 
user4082764
featured question from ajax tag
 
user4082764
in stackoverflow
 
@copy listen is a verb
 
@innovation link?
 
user4082764
imagecreatefromgif() from base64 encoded animated gif in POST
 
user4082764
3:20 PM
0
Q: imagecreatefromgif() from base64 encoded animated gif in POST

innovationI am trying to make animated GIFs from media streams, videos, or images using the GifShot plugin. My problem is that the ajax part does not see webcam_image_ajax.php. isn't working. Please do not hate me so the question will be a little longer. I have to create this ajax function for uploadin...

 
/me cries
 
user2620028
damn you got me on friday ralph :/
 
anyone use knockout here?
 
@GrimmTheOpiner I use KO quite a bit.
 
3:36 PM
@Retsam right - I wanted a jqueryui 'slow show' when a tickbox is checked, so I found I could create a ko.computed, within that examine the state of the variable bound to the checkbox, and then use a jquery selector and call the show(slow). Is that Wrong.? :)
 
@Retsam it is today!
 
@Retsam To be clear, I never bound anything to the ko.comuted. Just sued it as a comtainer for some code.
*used.
 
@FlorianMargaine BUUuuuurrn
 
@Loktar we found another person older than you!
 
(I've managed the same effect with a custom binding, but it's more code.)
 
3:40 PM
@GrimmTheOpiner You're using a ko.computed for a side-effect to trigger some jQuery logic? That can work; though it might not be the best way to do it.
 
@FlorianMargaine lol so now there are like 4 or 5
 
@Loktar eeeh no only 2 regulars I think
 
well regulars 2-3
 
jAndy, Taco and dystroy
 
3:41 PM
@Retsam Yep. I thought it's prob'ly not what they had in mind.
 
jandy is no regular anymore
and how old is taco?
 
@GrimmTheOpiner Can you do it with a subscription?
 
taco is like 40 I think or 38?
 
@Retsam Haven't tried (or encountered) that yet. I'll look it up.
 
It's pretty much the same as doing it with a computed, but it's a bit more explicit about when it updates, and a bit more conventional.
 
3:43 PM
@Retsam yeah, folks wouldn't be looking to find my logic in a computed. Cheers.
@Retsam I did try binding to the clicked event, but the moment I invoked jqueryui the event seemed to get lost, even when I took care to return true.
 
@GrimmTheOpiner You might have had an error in your binding; but then, I'm not sure you want to use the clicked event anyways, since there are other ways to check a checkbox.
 
is there someone here, who is good with objects and varibles in javascript(notjQuery), and have a couple of minutes to spare? :)
 
@Retsam I did debug the 'handler', within which I was examining the observable bound to the checked state, had a good try and it all seemed bound ok. Cheers though, you've been a help!
 
!!welcome sunto
 
3:50 PM
@sunto Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
!!welcome jesus
 
@jesus Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
I have this function for opening and closing my menus. Want it to be shortened down, and possibly addEvent listener - click, instead of onclick..
function showLastSubMenu(elem) {
// Clear any currently open menu
var openMenu = document.getElementById("activeMenu");
if (openMenu)
openMenu.removeAttribute("id");
var openSubMenu = document.getElementById("activeSubMenu");
if (openSubMenu)
openSubMenu.removeAttribute("id");
// Stop if we're just closing the current menu
var openLastSubMenu = document.getElementById("activeSubMenu");
When turnign these three local variables into global, it dont work,
 
@sunto Format your code - hit Ctrl+K before sending and see the faq
 
3:52 PM
ah okei :) sorry :)
function showLastSubMenu(elem) {
// Clear any currently open menu
var openMenu = document.getElementById("activeMenu");
if (openMenu)
openMenu.removeAttribute("id");
var openSubMenu = document.getElementById("activeSubMenu");
if (openSubMenu)
openSubMenu.removeAttribute("id");
// Stop if we're just closing the current menu
var openLastSubMenu = document.getElementById("activeSubMenu");
if (openLastSubMenu) {
openLastSubMenu.removeAttribute("id");

}
// Only apply it if the element actually has LI child nodes.
not correct? hehe i'll read the faq
 
@FlorianMargaine What's the rendering engine ? Blink ? WebKit ?
 
no idea
 
Because what would be the big deal in another blink+V8 browser ?
 
Their website starts by lagging, then loads a loading spinner, then lags more. :|
 
3:58 PM
it's because your browser sucks
 
@dystroy Because most browsers are terrible?
 
aaaaand they're adding a mail client. Is this just some clever rebranding of Opera?
 
@ssube It's precisely that
In the spirit of the old opera
 
"Hey guys, instead of doing anything useful, let's add IRC, and FTP, and mail!"
 
Tab stacks look mildly cool
 
3:59 PM
"What about web standards and reliability?" "No way man, we'll have FEATURES!"
 
well, it's thanks to opera that we have tabs though
 
@ssube As opposed to Firefox, who just built skype into the browser
 
Here is my full code, the three functions I want to be shortended. I know, that repeating in javascript is not the way to do it, any tips, or pointers are much appreciated.
http://jsfiddle.net/fjhjkyL2/
 
@copy Yeah, but Opera was supposed to be a product. Everyone knows Firefox was an engineering circlejerk, that why it was so heavy and the UI randomly changed sometime.
 
I'd pay for a browser
 
4:04 PM
For Chrome, maybe (maybe). For IE, as part of some VL deal, whatever. Opera never did anything and Firefox never worked.
and Safari is just a "what features does everyone hate?" mashup from the other browsers.
We should go back to have a text-based internet.
 
@copy And an IDE because of reasons.
 
@sunto You should really be using classes to set active/open menus, not changing IDs
 
@RoelvanUden no, that's chrome
 
@FlorianMargaine WebIDE disagrees with you (developer.mozilla.org/en-US/docs/Tools/WebIDE)
 
4:14 PM
well, chrome too
 
I didn't know Chrome had something like that. Where do I find it?
 
@Loktar a few of their songs yeah
 
@Luggage
aha, I am going to look into that. Anyways, the code works, and that is my setting the class id to something else, if I understand the code correctly.
 
@RoelvanUden the sources tab
you can create workspaces
you have auto completion, ctrl + p, search, etc etc
it's an IDE
 
@Lugage
I have 3 classes, that sets the style to block, so that I do not open every submenu when only want to open the first :)
 
4:20 PM
Can I take legal action against a bank if their actions hurt me?
 
@SterlingArcher ask a lawyer.
 
It took all my willpower not to freak out at the bank a moment ago
I got my paycheck and my federal tax return and I can't touch it. Which means I can't reload my metro card to get to work on monday, or pay rent today, or my bills, or go buy groceries
I don't know what to do
 
why cant you touch it?
how long do you have to wait?
 
Fraud put a monetary hold on my accounts on tuesday (i reported it) and the issue hasn't resolved
 
banks put holds on funds from different banks for like 3 days usually.. but it seems weird to do that for a tax return
oooh
wtf
 
4:23 PM
Yeah man I'm scared to death right now
 
fuck man yeah idk :/
was it all direct deposit?
 
yeah
I have an appointment at 1 with the bank manager, which I doubt will do shit, and the fraud guy didn't answer so I'm going to try again soon
 
does app.run() run whenever the web page is opened?
 
This has been my week. I'm shocked I have hair right now
 
user1596138
@SterlingArcher Probably because of your taxes? But you said they locked up everything not just that money?
 
user1596138
4:26 PM
My bank already has my tax money but they are dealing with so many deposits they're like just cool off and wait a few days while we dig out.
 
@Jhawins everything has been locked since Tuesday, and I'm at least grateful that my direct deposits werent effected
 
user1596138
How much is metro card @SterlingArcher?
 
I reload it with $200 every 5 days before the month is up
 
user1596138
Jesus fuck!!
 
Unfortunately the 5th day was after my hold.. so my metro card has.. 2 days left? Maybe
 
user1596138
4:27 PM
Dude buy a car! Or is that cheap to you??
 
Metro is cheaper than driving
 
user1596138
200/week to get to work lol that sucks
 
A month
not week
still sucks
 
user1596138
Oh.
 
user1596138
1 min ago, by Sterling Archer
I reload it with $200 every 5 days before the month is up
 
user1596138
4:28 PM
This was confusing
 
I'm not thinking straight sorry
 
I was going to tell you I could send you the money over... but then you have no bank account
 
-12
Q: Please explain the javascript

Molten BillI am trying to build a website and thought this script will be of use but i want to understand the entire script. (function () { "use strict"; var e = this; typeof e.CPDH == "undefined" && (e.CPDH = {}), CPDH.cookie = function (e, t, n) { return typeof t != "undefined...

wow
@FlorianMargaine exactly. Even my dad can't help me.
 
user1596138
Yeah I was gonna say I could help you out if you really need it too
 
user1596138
Can you pay for your metro card with paypal?
 
4:30 PM
My brother said he can at least pay my rent until it's clear
Negative, cash or card only
 
user1596138
Jeez. Yeah banks are scary sometimes especially with direct deposited paychecks haha
 
Sell a bunch of drugs for some quick cash?
 
user1596138
YEah @SterlingArcher if I paypal you some drugs you can sell them for metro money?
 
user1596138
4:32 PM
Ohhh yay! My bank gave me my money :)
 
user1596138
Fuckin IRS shorted me $97 lol
 
@SterlingArcher wha
 
@BartekBanachewicz yeah..
> The Q&A site lawyers.stackexchange.com doesn't seem to exist…yet.
dammit
 
mold.stackexchange.com
Have you ever written a whole project without running it to test if it even works? I'm challenging myself to do so
just because
 
user1596138
@SterlingArcher It will NEVER be hahahaha
 
4:36 PM
@SterlingArcher well who is actually responsible for that
 
user1596138
That would be soooo bad!
 
the bank isn't acting on its own right?
 
user1596138
Probably visa
 
@BartekBanachewicz they said the District Manager placed the hold
 
user1596138
Wait that would only kill your card. You can't go in IRL and ask for cash?
 
4:37 PM
I tried my account says no monetary transactions
 
user1596138
!!s/Man/Fucka/
 
@Jhawins @BartekBanachewicz they said the District Fuckaager placed the hold (source)
 
I'd be ok if I could at least withdraw my cash
The irony of all this is today marks the day where I have the most money in my bank than I have ever had ever
 
user1596138
This pretty much happened to my brother when we lived together.
 
And it's like I have $0
 
user1596138
4:38 PM
Except it happened again down the road too. He ended up switching banks
 
I'm most definitely switching banks
 
@SterlingArcher but you said it's not their decision
district manager... of what?
 
user1596138
@BartekBanachewicz I don;t think they gave him a straight answer. He's pretty confused
 
They said the fraudulent check was deposited WITH my card in Maryland the day I was with my boy in Richmond VA, where I had my card
 
user1596138
4:39 PM
Sounds like maybe your bank is protecting you. Albeit inconveniently.
 
sounds like they're trying to protect your money, eh? At least that's safe
 
@SterlingArcher what bank do you have?
 
Wells Fargo
 
oh, ha
 
Well by protecting me they put me in worse danger
 
4:40 PM
good luck getting them to answer questions
 
Even if you'll starve for a few days, you won't lose that money
 
they're a lot of drooling morons
 
imagine if it fucking disappeared
 
No, but if it wasn't for my brother I could be evicted and fired because of this
 
user1596138
lol Wells Fargo hates me
 
4:40 PM
their policies are all exceptionally broad and usually get in the way
 
@SterlingArcher I'd call my job and explain what happened. I'm pretty sure my boss would hand me the cash w/o a single doubt
 
they're also always late when they say something will be sent out on a particular day
 
user1596138
I held my insurance policy like 2 months and then cost them like $12K in property damage and they dropped me xD
 
user1596138
$2,100 for a single telephone pole... the fuck
 
I keep meaning to switch to US Bank, after WF screwed up a few things here and there (like withdrawing a cashier's check twice).
 
4:41 PM
@Jhawins you rode into a telephone pole?
inb4 no quattro :)
 
@Jhawins It's hard to find trees that are that straight and have ladders on the side.
 
user1596138
 
@Luggage :D
 
I've never had issues with Wells Fargo and I understand that it's policy. That's the only reason I haven't flipped my shit
 
user1596138
@Luggage Ladders? Ours are just poles
 
4:42 PM
@Jhawins how the fuck
 
well, the metal things on the side
 
But the amount of stress this is putting me through is enormous
 
user1596138
@BartekBanachewicz Idk it was my 17th birthday I'd been driving like 1.5 months
 
guys whats wrong with this
 
that's what you get for issuing licenses to 17yo
 
user1596138
4:43 PM
@Luggage We're talking about different things or your poles are more advanced then ours.
 
Over here we get our learners permit at 15.5
 
I'm 22 and I hope I'll get my license in a month or so (required 18)
 
And a license at 16 and 3 months
 
user1596138
@BartekBanachewicz Hahaha nah. I just made a mistake I think. That or the car broke... I don't remember anything.
 
My recollection is that the Javascript room is pretty rough, but that I got some regex help here once. Is this the right place for me to ask?
 
4:43 PM
I know nothing about banking fraud junk, but I'd think they'd be able to do a limited withdrawal for hardship while investigating. Especially in person.
 
user1596138
Here it's 16 permit, 16+9months+holdPermitFor6Months license
 
@Jhawins did you lose your license for that?
 
I had a license since I was 18
but see me
 
@KitZ.Fox just ask
 
@Luggage exactly, I just keep repeating my argument to them: How am I supposed to live without money?
 
4:44 PM
@KitZ.Fox Ask, don't ask to ask
 
They have not answer and just keep apologizing
 
or they were like "sure take care don't hit any poles on the way home"? :P
 
posted on January 30, 2015

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); try { var pageTracker = _gat._getTracker("UA-3727700-1"); pageTracker._trackPageview(); } catch(err) {} Madness setting in once more...

 
@Neil I'm not asking to ask, I'm asking if regex is topical.
 
Have you tried following the tellers home?
 
user1596138
4:44 PM
@BartekBanachewicz Why the hell would I lose my license? It was ruled a single car at fault accident citing weather conditions as the reason.
 
@KitZ.Fox you can ask anything related to JS. We simply can't promise answers
 
@SterlingArcher I'm sure it will be fine. Actually, I suppose @JerryCoffin could tell you what to do better. He lives in US, frequents lounge and knows everything.
 
user1596138
@BartekBanachewicz No they were like "do we need to put you on the stretcher to get you into the ambulancer" and I was like "Yes I stepped down and saw the sole of my boot"
 
@KitZ.Fox So you're asking if regex can be asked.
 
There are several people in here good at regex and I'm sure they can help
 
user1596138
4:45 PM
i.stack.imgur.com/icHJX.jpg // drywall screws ftw
 
If no alcohol or drugs invoved and no one hurt you won't loose youe license no matter how much at fault.
 
OK. Thanks. So I'm trying to find carriage returns in an Oracle database field.
 
maybe if there was intent
 
@Jhawins what the fuck
 
I've got where regexp_substr(authors_txt,Chr(13)) Is Not Null, which gets me some, but not all of them.
 
4:46 PM
@BartekBanachewicz all will be well, my brother thankfully can cover me, he said until this blows over
 
user1596138
It was like 6pm on my birthday and my manager at work was across the street when it happened. I was doing ~45mph and that road is a 50mph
 
user1596138
@BartekBanachewicz ankle brah
 
But it's highly embarassing to have to go to him for help
 
I can't figure out why I'm missing the others.
 
  if (setMachID === "") {
      $(setMachID("#kioskTab tr:first").id);
  }
 
4:46 PM
But I'm positive it's a CR there.
 
should work right?
 
I don't know what I'd do without him
 
user1596138
I broke an entire piece off and that piece is pulled in 3 different directions.
 
@Luggage works differently here
 
user1596138
They just sent me home for 4 days until surgery
 
4:47 PM
Yea, but when you actually HAVE the money it's different than an empty account. that's not freeloading
 
@Corbo152 I don't see how. You're checking if a supposed function is equal to an empty string, which, if it is, isn't a function
 
@KitZ.Fox ow... oracle
 
@FlorianMargaine I know, don't get me started.
 
user1596138
if (setMachID === "") { // if function is equal to empty string
      // call empty string as function
      $(setMachID("#kioskTab tr:first").id);
} // @Corbo152
 
user1596138
The fuck???? hahahahaha
 
4:48 PM
Is there some other character for CRs or something?
 
@KitZ.Fox dunno what's oracle regex engine...
is it ppcre?
 
Good question. Let me check.
 
or a custom one?
I think it's a custom one.
 
when you return a $resource, is it possible to add additional methods to that resource, or am I thinking of this wrong?
 
@FlorianMargaine regular-expressions.info/oracle.html looks like it?
 
4:49 PM
oh so i need to set the value that returns from SetMachID
not the function
 
@Corbo152 I don't know, your question is very vague so I don't know what you're trying to accomplish
 
Oh, but only kind of.
 
function setMachID(what) {

    kioskMachineID = what;

    var table = document.getElementById("KioskTab");
    for (var i = 0, row; row = table.rows[i]; i++) {
        row.style.backgroundColor = '#eee';
        row.style.color = '#000000';
    }

    $('#' + kioskMachineID).css("background-color", "#a4b357");
    $('#' + kioskMachineID).css("color", "white");

    //if (kioskMachineID.length > 1 && location.pathname.substring(1) != 'login.aspx') {
    //    document.getElementById('one').style.display = 'block';
thats the machID func
do i set the value of what?
 
@KitZ.Fox "In SQL statements, you'll need to type an actual tab or line break in the string with your regular expression to make it match a tab or line break."
 
It may be that I'm incorrectly identifying the character causing the problem. I looked at the file in Notepad++ and it displays as CR.
 
4:51 PM
@KitZ.Fox apparently you just have to copy paste the character
 
@FlorianMargaine How did I miss that?
But...so...why are some matching then?
 
clusterfuck?
 
No, that doesn't seem to work at all.
Gah. I. Hate. This. Shit.
 
user1596138
@SterlingArcher if it makes you feel any better (idk why it would) I ate a McGangBang yesterday and thought of you
 
Awwww
<3
 
4:53 PM
Regex always makes me feel like such an amateur.
 
The quality of that GangBang frightens me
It looks stale lol
 
backtracking through the code
 
Now I've borked it.
@Jhawins Lunch seems like a good idea.
 
How much does a land, sea, and air sandwich run at mcdonalds?
 
4:55 PM
@KitZ.Fox good luck
 
Thanks.
 
user1596138
@KitZ.Fox Yea I got to work at 11 so no lunch for me
 
@Neil They don't serve a sea, air, and land sandwich, after the last few went postal and destroyed various south american villages.
 
You just gotta get all three and mash them together
 
user1596138
4:57 PM
@NickDugger nice pic
 
@ssube It's a damn shame.
 
Does UNIX have a different character for carriage return? Something other than chr(13) maybe?
My recollection is that UNIX uses LF instead anyway.
 
iirc unix is LF only, yeah
 
They did briefly revive the #6 combo (with a sea/air/land sammich) when a competitor introduced the BL combo (with a sammich, assorted fries, all for $9.11).
 
I never thought it made it to the menu actually
 

« first day (1567 days earlier)      last day (3380 days later) »