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

15:00
@darkyen00 yeh
done :D
15:13
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
15:19
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.
15:20
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
15:20
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.
15:36
@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.)
15:40
@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
15:41
@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.
15:43
@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
15:50
@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");
(see full text)
When turnign these three local variables into global, it dont work,
@sunto Format your code - hit Ctrl+K before sending and see the faq
15:52
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.
(see full text)
not correct? hehe i'll read the faq
@FlorianMargaine What's the rendering engine ? Blink ? WebKit ?
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. :|
15:58
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
15:59
"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
16:04
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)
16:14
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 :)
16:20
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
16:23
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
16:26
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
16:27
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
16:28
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?
16:30
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
16:32
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
16:36
@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?
16:37
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
16:38
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
16:39
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
16:40
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
16:40
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).
16:41
@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
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
16:42
@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
16:43
@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?
16:43
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?
16:44
@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
16:44
@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
16:45
i.sstatic.net/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.
16:46
@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);
  }
16:46
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
16:47
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
16:48
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?
16:49
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';
(see full text)
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.
16:51
@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
16:53
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?
16:55
@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
16:57
@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 (3606 days later) »