« first day (674 days earlier)      last day (4274 days later) » 

7:01 PM
Rubber duck debugging, Rubber Ducking, or the Rubber Duckie Test is an informal term used in software engineering to refer to a method of debugging code. The name is a reference to an apocryphal story in which an unnamed expert programmer would keep a rubber duck by his desk at all times, and debug his code by forcing himself to explain it, line-by-line, to the duck. To use this process, a programmer meticulously explains code to an inanimate object, such as a rubber duck, in the expectation that upon reaching a piece of incorrect code and trying to explain it, the programmer will notice ...
 
pack of premium smokes in Canada - $12
pack of premium smokes in US - $8 (maybe)

6 pack of 5.5% Corona in Canada - ~$12
6 pack of ~3.7% (iirc) Corona in US - ~$7
 
@dievardump <3
 
EPIC
 
@rlemon Yeah... that beer cost could be a problem for me :-P
 
@Esailija So in this one, are the backreferences breaking because of the pipe?
`'hubbahubba'.match(/(^z(hubba)$|^\2\2$)/g);`
 
7:02 PM
@RyanKinal but the 5.5% will knock you on your ass if you are used to drinking ~4%
 
I usually drink things that are more expensive than Corona
Good point
 
I was using Corona as a base point :P I figure everyone can compare there
 
'strue
 
@ErikReppen probably
 
The article is more complete in French. Weird.
 
7:03 PM
seriously. You don't realize it until you make the change. I don't "chug" beer, i drink it because I enjoy it. If I get a buzz I get a buzz. 3-4 beers here in a 2-3 hour span will give me a buzz. I was drinking 5-6 in a 2-3 hour span in the states without anything.
 
@rlemon pack of premium smokes in Canada - $12 « what ? What is "Premium Smoke" for you ?
 
I can't wait to goto germany and get me one of dem 18% beers.
one and a half and i'll be done
 
I can't not chug. It's not alcoholism so much as a general drinking problem.
 
@dievardump Belmonts. $12 PACK.
 
@rlemon Indeed
 
7:04 PM
How much cigarets in the packet ?
 
25
 
I have a question which I think I understand but I want to make sure. Say you have, if (foo = bar) { alert(foo); } ... Is this like saying if bar variable is not UNDEFINED or NULL, assign it to foo and evaluate as a truthy value which will execute code within the compound statement?
 
@ErikReppen I used to have the same problem (and still do with drinks other than alcohol)
 
if (foo = bar) { alert(foo); } means "set foo to bar, evaluate whatever that expression returns for true or false"
 
go to a restaurant and they give me a drink, it's gone in two chugs. If i'm not chugging it, I don't find it as thirst quenching.
 
7:06 PM
@W3Geek it's more: assign to foo the value of bar. and if it isn't undefined, null, false or 0, alert the variable value
 
I don't think it will work in that syntax.
if( foo = bar, foo ) { // sets foo to bar. evaluates foo
 
var foo = 5;
var bar = 7;
foo = bar <-- The return value of this statement is "7"
 
Yes that is what I was saying. =)
 
@rlemon if(foo = bar){ alert(bar); } will work fine, try it
 
it will return the value set to foo consistently a crossed all browsers?
 
7:07 PM
it assigns the value and evaluates it.
 
I'm pretty sure, definitely in webkit and mozilla
/gecko
 
@W3Geek Right, but it will assign the value even if the value is falsy
 
Yeah it works perfectly on my end as long as bar is not a falsy value.
 
var foo, bar;
bar = null;

if (foo = bar) { alert(foo); }
bar = 5;
if (foo = bar) { alert(foo); }
bar = 0;
if (foo = bar) { alert(foo); }
 
That part, it seemed, was reversed in your original statement
 
7:08 PM
It alerts 5
So it's "assign to foo the value of bar. and if it isn't undefined, null, false or 0, alert the variable value"
 
@dievardump yup. =)
 
So cool! @kuvos used the JIT inspector addon for Firefox (http://bit.ly/MHjhBM) to help boost his parser's perf - http://qfox.nl/weblog/265
 
thats a great video @IvoWetzel
you guys have a lot of brogrammers from what I hear @IvoWetzel
from some former employees
lol like... real popped collar brogrammers from what they were saying
 
@Loktar Seems so...
 
7:14 PM
so crazy I didnt think they actually existed
 
tell me stories of these brogrammers
 
You know all the stories about "a great programmer is 100x more productive than an average one"?
 
what is a brogrammer?
 
> Brogrammer, noun., a bro who somehow learned to program, but would deny it in any social situation. A brogrammer does not have side projects and usually programs while listening to Dave Matthews Band, much to the irritation of his fellow programmers.
lol love that one
 
7:17 PM
turns off Dave Mathews Band ..... Fuck....
 
Oshit... I think my CEO is a brogrammer
 
haha
 
Oh my god, John is talking about football and chicks again. That guy is such a brogrammer. seriously ?
 
a dictionary is not a story!
 
7:18 PM
... and actually, if you go to Twilio's Facebook page, he's currently on there. Upside down. On a BMX bike. In a Twilio shirt.
We use Twilio for our SMS
 
Alright, so regEx problem. I want to check a date as it's being typed in. To maintain a brief/sane example let's assume mm/dd/yyyy with no checking for valid date/month numbers. Is there a better way to do it than this (line breaks at pipes for ease-of-reading:
/(^\d{0,2}\/?$
|^\d{2}\/\d{0,2}\/?$
|^\d{2}\/\d{2}\/\d{0-4}$)/g
I just have the durr instinct on this one, like I'm missing something stupid.
 
something about regex and two problems
 
... also, I totally own the Algorithms book that Chad was talking about.
 
^ would be used to check for a match on keyup.
 
/^(a|b|c)$/ <-- you can do that instead of repeating anchors all the time
 
7:23 PM
Please help jsfiddle.net/mblase75/sRbcn - i'm working on a banner ad
 
also this is much easier to do without regex, the regex for full valid date is pretty long
 
because of combining all the leap year and certain days per months stuff
 
@ErikReppen Maybe something like this? /^(\d{0,2}\/?){1,3}$/
 
Anyone? It's kind of a cool ad with flipping images. It's just being goofy.
 
7:24 PM
Or should that be /^(\d{1,2}\/?){1,3}$/
 
@ShaneStebner GIF ?
 
@RyanKinal That would work if I weren't getting a lot fancier in the one I have which actually checks for 0/ and correct numbers for months, dates, and 4 digits for year (Not sure why anybody would want to enter time for the year 9999 but it's not up to me how they use the software IMO)
I was wondering if maybe I was missing something with lookaheads or whatnot but I think that's the only way I can do i t.
 
No jquery
It's for a client and has to be jquery html so they can change out elements often
 
...
 
@Esailija I remembered why I had the ^ and $ in the original. I was trying to re-use the stuff inside as back references without carrying the ^ and \/?$ in those refs. Still only needed ^ and then $ at the very end though I think.
^actually no. That makes zero sense.
^needed $0|<other-stuff>\/?$ because it's as-you-type and I wanted behavior to swap out as you get from month to date, etc...
 
7:33 PM
@ShaneStebner get rid of setInterval
 
What do I do to keep the loop?
 
just use setTimeout
 
Yeah, only way to reduce this ox would be if back-refs worked across pipes which I'm pretty sure they don't.
 
you recall it everytime
so like setTimeout(func,1000) at the end of flipImage
 
user895378
Hey dudes -- in case anyone's interested: we've got a few guys from the PHP & C++ rooms trying to get an SO chat fantasy football league up and running for this season. We're up to 7, trying to get to at least 12. There may (hypothetically) be upvote/bounty point gambling involved. If you're interested, ping me.
 
7:34 PM
it looks like its becoming out of sync
 
Ok I'll try that. I think you're right about the out of synce
sync
 
@rdlowrey whatever troll!
 
user895378
@Loktar Brogrammer deluxe fantasy football -- don't be jealous of my LCD tan bro.
 
lol friggin brogrammer up in here.
if thats a real request.. well you posted it at an odd time lol
 
user895378
@Loktar nah, @rlemon dropped us the same vid over in php
 
7:35 PM
Maybe I'm confused, but like this? jsfiddle.net/sRbcn/1
Because that's not continuing the loop
 
@rdlowrey haah ok nice
 
lol forgot ()
still not looping :/
 
you have to call flipImage somewhere once
before that
to kick it off basically
but yeah idk
 
Ah, my dumb mistake
 
thats not your main issue anyway.
 
7:38 PM
I don't understand what is the problem with the brogrammers ?
 
your main issue is the image going below right?
 
Yup
I need the first image to hide before the next shows. So they all sit in the same spot
 
yeah id suggest making this a proper SO question
 
Did.
No responses.
 
ah ok
 
7:40 PM
No one is feeling helpful lol
 
Here's the original monster I was trying to trim down:
/(^(0$|(0[1-9]|[1-9]|1[0-2])\/?$)
|^(0[1-9]|[1-9]|1[0-2])\/(0$|(0[1-9]|[1-9]|[1-2]\d|3[0-1])\/?$)
|^(0[1-9]|[1-9]|1[0-2])\/(0[1-9]|[1-9]|[1-2]\d|3[0-1])\/\d{0,4}$)/g

It's in a date input field so I don't want '/' to be optional when you have stuff after them and 0 is only okay by itself when followed by $ for dates and months or by 1-9 when on the left of a '/'
 
Btw, does this lockup your computer like it does on mine?
 
nope
 
This definition seems more appropriate
 
7:40 PM
lol.. yes
it does lock up
@dievardump nice try bro.
 
Backrefs across pipes would've made that a lot less ugly.
 
> Brobi Wan Kenobi
 
I don't know why.
 
Bro is a fun word to incorporate into names.
 
Hey how do I position a div to appear right below a table cell?
with an absolute position?
I am having issue with it... :-\
 
7:45 PM
a real table cell ?
Well, in all case, a table-cell should be used in a table-row wich should be used in a table.
 
either a thead or a tbody
and in the thead it's th and in the tbody it's td
 
Hmm it works fine a fiddle: jsfiddle.net/maniator/e3V4R
guess my css is all messed up...
 
hrmm. head === th
why does body not === tb
 
idk, th always throws me off due to that
im like, oh thats right.. its th
and what about tf?
 
lol
 
7:47 PM
rrrg :-\
 
yea what about the effing tfoot
 
why does it only work in fiddle :-\
 
@Neal it doesn't work in my fiddle
 
@dievardump orly? what browser?
 
hum maybe i'm wrong. Where should it appear ?
 
7:49 PM
right under the td that you click on
 
> var self = this, $self = $(this);
 
works fine for me in chrome in the js fiddle with minimal css
 
Is there anyone who could tell me, let's say I'd like to fetch this file here raw.github.com/Brainpad/ThinAir/master/README.md Is it possible to do so with nodejs' http?
 
you realize in your code (as is) self is redundant. there is no cost in accessing this.
 
Because it's https
 
7:49 PM
@rlemon ignore that. its for other code..
 
Ok so it works. Sorry
@Neal your doctype is good ?
On local
 
:-\ but not with my css
 
@Neal hidden character at the end? onLoad screwing with you? normalize CSS doing anything? All common jsFiddle issues
 
Teenage girl swam 27 hours across Lake Ontario. Cool, but the real news is: teenager spent 27 hours without Internet. (via @Louis_Gilbert)
 
@rlemon poss. well it works in jsfiddle but not on my real site... :-\
 
7:52 PM
:')
doctype all the things !
 
@jamesson I don't
@Abhishek go on a little, I'll help you a bit then :)
 
OK, now i'm done with the bro stuff. :P
that video was funny as hell though.
 
I really hope this isn't the reason, but it would be kind of hilarious if, since the call stack size was exceeded, IE couldn't call the handler. — Ryan Kinal 1 min ago
What do you think, possible?
 
8:07 PM
you'd get a maximum call stack exceeded, no?
 
That's the problem... the onerror handler won't catch the error in IE9
But it does in other browsers.
Er, IE lte 8...
 
@TomShreds Doesn't node support https? I seem to recall it does.
 
https ? forget it
TCQ is basically suing just about everybody for using HTTPS? http://bo4.me/NVkzXz
 
I turned down interest from Yahoo over their patent-trolling. Not sure I'd be a good fit there regardless but Crockford (who I'm not a huge fan of) bailed on Yahoo after they made with the patent-trolling (not sure it was related). It's getting kind of absurd.
 
Crockford is notorious for his standards
 
8:21 PM
Not in employer apparently. He moved to Paypal.
 
And entrusting humans with the ability to hide information based on selfish whims while getting rewarded for it...?
 
is there javascript code to detect when a browser's print dialog has been opened?
Google hasn't turned anything up for me yet.
 
Not that I know of
... unless, apparently, you're talking about IE5
 
yeah, something like that.
 
Real browsers don't have that
 
8:31 PM
but seeing how that's IE5, methinks that would be #depricated by now
I have a customer who is doing a promo campaign and they want to be able to track whether people printed the page where coupon appears OR whether people printed the PDF version of the same coupon.
 
You could set up a button that says "print this", and use window.print() as well as whatever tracking code you want.
It wouldn't catch Ctrl-P kind of people, or File -> Print kind of people, but it would catch some people.
And also, tracking that in a PDF is going to be impossible.
 
yeah, I'm both off those.
and that's what I thought of for the PDF.
 
Though, you could track the click of a link to get to the PDF
 
the page that the coupon is on already has tracking code on it; so would adding that window.print() really do anything?
 
And assume they're printing it from there
 
8:35 PM
how would I track the click specifically?
 
addEventListener(myLink, 'click', function(e) {
    // tracking code here

    window.print();
});
 
the tracking code I'm using came from another vendor the customer is using and I copied and pasted it into the page, so I don't have much xp w/ tracking code myself.
 
Ah
I guess I kind of assumed Google Analytics... in which case Event Tracking is perfect
 
Who doesn't use Google Analytics
its amazing.
 
that's what the site has already, but this is for a specific campaign, and they are using another vendor for this campaign specifically.
 
8:37 PM
the documentation is advancing...
 
weird.. wonder if they know they can set campaigns using google analytics
 
@FlorianMargaine Nice, looks good
 
right? htmldoc is pretty nice
 
wonder if they know they could just have two different codes that gave the same promotion
 
8:38 PM
one for the webpage version of the coupon and one for the pdf version
 
That would be smart. You should tell them to do that.
 
and how do I say that without it coming off as: "what you asked was too difficult for me, so I came up with an easier solution?"
 
just say "what you asked was an over engineered solution, you don't need so much. there is an easier solution. faster to setup, so cheaper."
 
Also, more accurate
Although... it will only track people who use the code
 
it's a coupon you print off and bring in to the store.
cashier's have to key in the promo code.
 
8:41 PM
Right... so it won't tell you if people print it, and then never use it
Which could be a useful statistic
 
yeah. but that's not what the vendor was telling me on friday when I talked to her.
 
@RyanKinal and docgenerator makes it easy to write the doc, really, see by yourself
(yeah, self promotion :p)
 
I agree. She also said this was more of a "nice to have" option. They wanted to see between the two versions of the coupon, which one people used.
 
Could be a good solution, then
Anyway... I'm outta here
 
the different promo codes?
 
8:43 PM
Yep
Later folks
 
thanks Ryan, you've been super helpful.
 
Will JavaScript ever become a true systems programming language?
 
B2G
 
8:48 PM
is it not?
 
No ?
 
@dievardump back to..?
 
Boot2Gecko now Firefox OS
 
oh
it just depends on what @mdgrech calls "true systems programming language"
 
I meant it more as an open ended question open for interpretation rather than an objective one.
 
8:50 PM
maybe he just means "compiled language" :)
@mdgrech yeah, but "true systems programming language" doesn't mean anything
 
@mdgrech No, I think it'll be more of a served programming language, if you catch my drift.
 
if you mean something like "can be run as a standalone program", then node.js is your answer
 
@Florian, I would argue it does mean more. Such as being able to interact intricately w/ the metal, being able to manually manage resources, and being embeddable.
 
Give us a definition of a "systems programming language", and maybe we could answer.
 
oh, then assembly is the only "true systems programming language" to you
or just C/C++, thanks to pointers
java/c#/any language with GC is not included
is that what you mean? :)
 
8:54 PM
Assembly isn't embedable
Nor are C/C++
 
The matter of embedding isn't up to the thing being embedded upon?
 
@ErikReppen I think zirak just meant that only binaries are embeddable
 
They're compiled to machine code, which is platform specific. So unless you have a medium between the platform and the "machine code" (which is a virtual machine), it's only workable on the platform you compiled it to.
 
which brings us back to: @mdgrech what's a "true systems programming language" for you? :)
 
@FlorianMargaine htmldoc >_> ew
 
9:00 PM
it's the best I could find
the only one actually
and it's standard on every linux machine
not installed by default, but always easy to get
and good enough :p
although the generated HTML is ugly -_-
 
Can we request for a specified gravatar size ?
f...
 
@Zirak But what's the exception to that? Other than VRs which are just providing translation, what can you compile and embed on anything?
 
@ErikReppen You can't. Compiling it targeting a platform.
 
change the ?s= parameter
max is 512
 
9:01 PM
Thanx
 
If there was an exception, you wouldn't need interpreters or VMs
 
Oh alright. Definition was used to refute the notion of 'true systems programming language'
 
@ErikReppen you can't, but you can "cross compile", which means compiling for a platform on another platform
 
Yep. Something cannot be both compiled and embedded, there're only so many cakes you can eat.
Why does hardware sometimes just...stop working. For no reasons. Those speakers were fine 5 minutes ago when I unplugged them. Now they refuse to go online anywhere.
 
if hardware never stopped working, there'd still be companies using 8088s cause "hey, it still works...and we don't need all that "gooey" mumbo jumbo" :)
2
 
9:09 PM
Fine, stop working, but go on fire or shoot sparks or something. Gimme a perceived reason so that I can fix or give up.
It's like having a baby crying. Why are you crying? WWWAAAAAHHHH!!! Tell me what you want! WWWWAAAAHHHH!!! I don't know what that means! WWWAAAAHHHH!!!
 
If the baby was on fire, then we could understand the crying.
 
( load 2 times )
 
okikata.org?
@dievardump purely amazing :/
 
The more I read it, the more I think clients are crazy
 
9:20 PM
writing docs is looooooong
 
aha, gotcha!
2 bent pins
The main speaker had 2 slightly bent pins.
fffff
...now, to fix that without screwing it up further...
 
aaah, i'm dying
 
@dievardump ^ that one, I don't think it's real.
 
10:05 PM
anyone has some experience with htmldoc?
 
hhh
10:18 PM
Is someone using something different to the DropZones here [1][2]?

[1] https://github.com/blueimp/jQuery-File-Upload
[2] https://github.com/bootle/DropZone
 
10:52 PM
!!/stat 464744
@Zirak Blender has 36460 reputation, earned 40 rep today, asked 65 questions, gave 1745 answers, for a q:a ratio of 13:349
 
someObj.constructor.name
^ Anything dangerous about messing with that property at the instance level that anybody's aware of? I just like being to type my objects by their constructors.
^ and it would more convenient to use an anon func and then set the constructor name.
 
First of all, it's non-standard and (on browsers I know if) read-only
Second, ew, typing
 
@Zirak how does !!/ mdn work?
I know I can do the command then type some text and it will search MDN, but how do i MSN a specific page?
 
11:17 PM
@Nile It actually doesn't search MDN, it tries to construct the link
You get tons of false ones, like this:
!!/mdn open
 
!!/mdn Array indexOf
 
Close enough.
 
Nice
0
Q: Javascript "ended" function works erratically

Lady JSet up simple code for an audio playlist of two mp3's and tested in JSFiddle...seemed to be working, but on upload, only plays the first clip in Chrome and Safari, and plays nothing at all in Opera and Firefox. I'm using both mp3's and ogg's so maybe it's about my "ended" function...? "ended" doe...

the guy/girl/idk took 1 day to reply and didn't realize the files are still 404ing ._. am I going insane or does that server has an ip ban?
 
11:23 PM
@FlorianMargaine you have given me the idea to come home and try my hand at making something for docs that functions and looks kinda cool. jsfiddle.net/rlemon/fbq6X/show unfortunately this is all I could come up with.
 
heh :)
I just completely rewrote docgenerator right now though
htmldoc really sucked too much balls
and you just gave me an idea
templates.
(for docgenerator)
@rlemon if, on the left panel, the current heading has some kind of highlight, it's perfect
 
!!/mdn responsive web design
 
!!/mdn responsive+web+design
 
Dude, quotes.
!!/mdn "responsive web design"
 
11:31 PM
so it searches as a last result? what's going on here @Zirak?
 
+'s work fine also.
oh, no they dont :/
 
It has a DOM whitelist. If it thinks it finds something related to some DOM element, it maps it there.
Next, it checks the global object. If it thinks it's there, then it maps there.
Finally, it goes to search.
 
cheap solution
 
@Zirak ok
 
11:33 PM
Because if it did find something which matches, why would it link you to the search, instead of the direct page?
 
next I make a floating element behind the text that moves with the scroll.
 
@Zirak yeah, I get it :/. you should copy and paste that to the docs
 
bah, who cares. If you really wanna see how it works, look at the source; [master branch]/source/commands.js, search for mdn
 
ok
 
I didn't go to all the effort of publishing something so people can ask me things about it! I did it for the chicks
2
Chicks dig open source software
 
11:37 PM
@rlemon that + an onscroll event to change the selected heading and you're good to go
:p
 
@Zirak on typing... mostly for debug stuff.
 
Speaking of chicks, I met a hot chick in a restaurant the other day.
When I was about to finish the appetizers, she just showed up and we bonded. It was awesome. She just had a salad, but I knew her love of flesh.
Man. That was some tasty chick.
 
@Zirak github.com/Raynos/dn-leaderboard feedback on readability appreciated
 
@Raynos Seen your ranking on npm? Man, you're insane.
 
Chicks will never dig open source. Even as they tap out the contact info for some proprietary-solution advocating jerk they want to hook up with on their Androids.
 
11:48 PM
@Raynos -5 points for insisting on not using semicolons. especially when you're inconsistent about it :)
 
@Raynos I like the index.js trick
@Raynos Most importantly, why do you think it's unreadable (or, more precisely, could be made better)?
 
ok, so i'm an idiot and cannot figure out how to calculate the scale for the offset on the sidebar position.
ignore the fact that the blip is over the text for now.
there are a number of other 'bugs' in it. I know, work in progress. i'm just stumped here.
 
There is confusion, probably caused by my lack of knowledge on the system, made by unclear separation: What is it that I'm dealing with? Is it an element? Event target? Event listener? Event emitter?
And while your main code is nicely separated into packages (because there isn't much to it), bundle is pretty much a mess.
There's a ton of everything everywhere
Just to point out something at random: I can't know what this is for until I dig into the code.
And require_ is a cheap trick. Find a better name
And, I've just noticed this
 
IIRC, the bundle.js file is generated by browserify
 

« first day (674 days earlier)      last day (4274 days later) »