« first day (1542 days earlier)      last day (3424 days later) » 

9:01 PM
That reminds me of a cute puzzle Eric Lippert posted on his blog, about generating random numbers
Something like String(Math.random() * max).charAt(0)
(find the bug)
(assuming max is < 10)
 
What bug?
 
the one you haven't found yet
 
The thing that max is max - 1?
 
no, most randoms assume that max is exclusive
this is a perfectly obvious bug that took a really long time to find
 
wait
 
9:05 PM
Exponential notation
 
What bug? xD
 
@JanDvorak bingo
 
Doesn't it do what it is suposed? :o
 
@Catgocat it has a slim chance of returning a digit >= max, when it should return 0
 
I did an enormous forloop
didnt happen
 
9:07 PM
may be your test conditions
 
Doesn't happen here, but tell me.. wt?
 
It should happen once per a million rolls
 
2 mins ago, by Jan Dvorak
Exponential notation
 
What does that actually mean? I mean give me an example.
Of that test failing
 
0.00000005 = 5e-8
rolls a five, should be a zero
 
9:09 PM
Oooooooh, ok
Wow that was tricky xD
 
@Loktar do you have ANY experience with node-pre-gyp ??
 
nope
what are you using that for?
oooh for the addon..
crap, yeah man idk, none of my stuff had any non js dependencies
 
user1596138
@Shmiddty go slide down that parking garage ramp
 
ok so I have two problems right now.
1) I cannot get serial port support for my linux laptop (drivers and such)
2) I cannot get node-pre-gyp to change the runtime and target of the serialport module on windows.
 
@Jhawins Shmiddty is afk: back to work
 
9:14 PM
if I can solve either of these, I'm golden
 
@adeneo Y U POST my comments as answers :P
 
r*p-w***e?
 
@BenjaminGruenbaum - Y U POST my answer as comment
 
downvoting, not enough jQuery. Please include a solution that uses jQuery too. — Benjamin Gruenbaum 1 min ago
 
@BenjaminGruenbaum :-/
I'm wondering - should we switch to binary time already? 16 hours per day, 64 minutes per hour, 64 seconds per minute
 
9:17 PM
ew no
 
oh, I just remembered, I had a question last night but nobody was around.... in express, app.get("/", ...) works, but app.get(path.join("", ""), ...) does not work. The error the second one throws is; "Cannot GET /", even though that's exactly what the first one does... any clues?
 
a consistent 256 hours per day, 256 minutes per hour, 256 seconds per day, 256 ms per second
 
upvoting this for $(this).attr("href"), although no link tags are mentioned at all this solution is superior since it uses jQuery which is great and does all things. — Benjamin Gruenbaum 7 secs ago
 
@BenjaminGruenbaum 8-/
 
what type of event handler is it that lets you drag with, or without a mouse, and will automatically calculate the new value?
 
9:19 PM
@SomeKittens No prob, we're all having children at the same time
 
@eyeLoveFiddle hwat?
 
@eyeLoveFiddle drag events
@Jhawins where did your comment go though?
 
think of a range slider, you can move it with a mouse, or arrows
what covers both
 
If anyone is familiar with express routing, please look slightly above for a question concerning life and death matters
 
9:20 PM
@BenjaminGruenbaum - added more jQuery just for you
 
user1596138
idk man it was just gone
 
why is everyone using .href and not .pathname ??
 
@Jhawins I totally should have done that on Saturday
Fighting back tears... http://t.co/kwmmHdMEOq
 
question block moves me here
 
@adeneo why though :P? It's completely pointless.
 
9:21 PM
user image
6
 
user1596138
@Shmiddty figured I should remind you
 
I should buy a sled or two on amazon so I have it on the ready
 
why isn't autofocus working when I have 2 event handlers on a range slider:
<input type='range' name='workers' id='workers' min='0' max='$population' value='0' onmousemove='more()' onkeydown='more()' step='1' autofocus>
 
user1596138
0
A: jQuery (Javascript) parse document name from pathname

JhawinsYou can do $(document).prop('URL').match(/([^\/]*)$/)

 
@BadgerCat You're going to move next door to us, right?
 
9:26 PM
@Shmiddty I hope that's a parody.
 
user1596138
lmao I don't mind the downvotes from a repeat question I wanna join
 
user1596138
Nuff jQuery?
 
Morning
 
evening
 
@Jhawins meh :P
 
9:26 PM
@SomeKittens maybe :)
 
user1596138
:(
 
user1596138
0
A: jQuery (Javascript) parse document name from pathname

StevenRyanBased on the responses below, I found that: var pageName = $(location).attr('pathname').split('/').pop(); ...got me the result that I was looking for. I'm happy to explore other options, if there is a better way?

 
user1596138
lol wtf he posted his own answer as a "thank you"
 
lol, I saw that too
 
@Shmiddty That's a joke, right? Oh God please tell me that's a joke!
 
9:27 PM
I don't think he knows how to use SO
 
Quick draw question!
Why do people write window.jQuery instead of jQuery?
 
because they can
 
Because they are jQuery users
 
but are they windows users?
 
lol
 
9:29 PM
osx.jQuery
 
because they have other frames, too?
 
debain.jQuery
 
no, they're binary users
 
@JanDvorak lies, they don't
 
It's also a convention to explicitly show that what you're writing to/reading from is a global
 
9:29 PM
binQuery
 
user1596138
@NickDugger -bash: osx.jQuery: command not found :O
 
window.MY_GLOBAL = "nuff said";
 
user1596138
How use osx.jQuery PLZ!!
 
Yes, I say win for this quickdraw goes to @monners
 
why does something work with one event handler, but not 2?
 
9:31 PM
@eyeLoveFiddle Why does your question make sense in your head but not ours?
A: Because you haven't told us anything
 
i think you need an example, so i'll fiddle for you
 
B: Eggs and tobasco
 
I can't tell if that sounds delicious or revolting
 
@monners the former
mix a bit of tobasco in with your eggs before you scramble them
 
@KendallFrey aww, it's something i'm doing
 
9:34 PM
$ npm install serialport
$ cd node_modules/serialport
$ node-pre-gyp rebuild
 
Tobasco is good on most savory foods
 
shouldn't this work ^^
 
@NickDugger s/savory//
 
@rlemon Needs more tobasco
 
@KendallFrey are you gonna put tobasco in your yogurt?
 
9:35 PM
devil spit is better
 
I put hot sauce on a chocolate cookie once
 
I do love devli spit. Famous daves knows how to make good BBQ sauce
 
I can't think of anything I wouldn't put hot sauce on
also, I don't eat yogurt
 
mkdir test
cd test
npm install serialport
cd node_modules/serialport
node-pre-gyp rebuild #you might have to install node-pre-gyp globally
 
yogurt is good for you
 
9:36 PM
can someone on windows 7 try this? ^^
 
@NickDugger nasty-ass stuff
 
@KendallFrey Look down and slightly to the left.
 
@monners touche
 
s/-ass / ass-/
 
9:36 PM
I should have specified food
 
@SomeKittens Ah, but what color to paint it?
 
@rlemon I would but for the fact node-pre-gyp is not installed
 
npm install node-pre-gyp -g
fixes that
 
and to uninstall?
 
when working in single page applications, why does js only show you the page load code?
under code view
 
9:42 PM
@SomeKittens thats should be green.
 
Ah, just what the world needed
 
@NickDugger I have the top three as a tramp stamp from my junior days
 
did i drive everyone off?
 
slightly less prestigeous than w3schools certificates
 
tramp stamp jquery?
show
 
9:44 PM
w3schools certificates rule.. get a certificate = get a job
 
!!google jquery tramp stamp
 
lol-no
 
the tests and quizzes are so hard and require so much knowledge
 
@Catgocat I wonder if anyone ever paid for those.
 
9:45 PM
@Catgocat internet doesn't transmit sarcasm all that well
 
People are willing to pay anything
 
then again, I have this scary thought that you might be serious about it
 
Man, I remember this kid in high school who thought he was hot shit cuz he knew html
 
@Meredith You remember me?!?
 
9:46 PM
One day he had his laptop open and there were like 6 tabs of w3schools
 
what a cool guy
 
i have no tattoos, but i do have a scar from my elbow to my shoulder
 
Cool guy
wanna be like him in the future
just hope
 
I wanna be the guy
 
I knew html in 5th grade
rate
Cuz of neopets
 
9:47 PM
@NickDugger you just want to be 16 again =P
 
I learned html in 4th grade, so there.
 
I wished I started programming when I was 3.. didn't do anything useful back then.
 
Hey; w3schools is a pretty mediocre resource; but let's not knock people for using it, just because they don't know there are better options available.
 
i wish i could program a girlfriend
 
@Catgocat I still don't
 
9:48 PM
Sometimes I just go to w3schools because it is on topsearches and I'm lazzy for scrolling down to MDN.
 
@Catgocat when I was your age I saw a computer for the first time, you twat
 
It's like the web dev version of listening to nickelback
 
I did painting on PAINT, in my mom's windows xp computer
 
I bought an olive pate over lunch and I can't wait to go home to try it
 
Never really had social life.
 
9:49 PM
@Catgocat A banner on that site warns me my PC doesn't work optimal, how can I fix this?
 
user2518044
Do you think 4000 rendered objects using a custom Canvas Engine on a canvas (no WebGL) with 30 FPS on a Mac Book and Google Chrome is satisfying?
 
Sure
 
define "satisfying"
 
@Jonathan The website is too good for your computer. Throw it on the trash and get a new one.
 
i found a chrome bug
 
9:50 PM
@guest459473 I found that downright erotic.
 
> Shit. Just keep driving. He came out of nowhere. There was nothing you could do. Just get out of here before somebody sees.
 
Why are there so damn many websocket libraries for Node.js?
 
> If your car begins to skid wildly toward a group of five pedestrians on the side of the road, but you have the option to steer it toward a single bystander nearby, utilitarian moral theorist John Stuart Mill says you have an obligation to steer toward the lone pedestrian in order to do the least harm to the least number of people.
 
Oh that reminds me of a node question I have
 
@user1667423 Why not?
 
9:51 PM
So I'm using heroku
 
@user1667423 because "websocket library" is the node version of "hello world"
 
Are there any addons for databases that dont require me to spend money
 
Do you guys have any Chrome App for reloading the page whenever there are changes.. for web development?
Feeling lazy to write one.
 
> Drink plenty of ice water to prove to the ice and snow on the streets that you are one of them.
That got me.. lol
 
@Catgocat Are you using a grunt or gulp build chain?
 
9:53 PM
Neither?
 
@Catgocat try using Brackets editor. It has such feature integrated.
 
Then check out livereload
 
liver eload
 
I was looking into liverload last night, but it looks like that one costs money?
 
Live Reload is so damn sh*t, sorry but even without the cache option, it tries to modifiy the page with CSS3 effects and it's just worthless.
And sometimes it doesn't even reload for external scripts.
Brackets sounds cool.. and looks cool ;o
 
9:55 PM
Oh there's a dev plan that's free
idk what that entails but whatever
 
wtf livereload cost money?
 
@Meredith lemme quess. By "database" you mean MSSQL ?
 
@Catgocat That's why I asked if you were using a grunt/gulp build. There's a much better addon for those chains
 
I use gulp-connect now
 
wtf people use livereload?
 
9:56 PM
@tereško Looks like it's a postgre database
 
@monners Oh, never heard about it.
 
I never had any issues with livereload
 
Which I've never used so yolo
 
!!google browser-sync
 
9:56 PM
and I call into question your hate of it if you've never heard of gulp/grunt
 
I never had an issue with it, was just kinda slow
 
oh gulp-connect uses livereload as well :P
 
BrowserSync is blisteringly fast
 
@monners yeah I agree it can be slow
I end up manually refreshing sometimes
 
9:57 PM
And it syncs your browser over multiple devices as a bonus :D
Makes testing much *much* faster
 
Some just listen the HTML source, but sometimes the external files are changed, or the external files do xmlrequests, and then they pull diferent files and all that isn't listened by the app.
 
@Loktar We got rid of ruby sass from our workflow here because of how slow the builds could be
 
thats awesome Ill have to check it out (browsersync)
 
libsass FTW!
 
yeah we are going to use that here
I as pushing for less due to bootstrap
but the sass stuff is coming along (maybe done? I havent checked in forever)
 
9:59 PM
How do you guys keep track of so many command-line applications? I mean grunt, node, other node app, other node app, git..
 
@Catgocat its our day job?
:P
 
lol
 
@Catgocat try installing some proper linux distro or bsd
 
I mean do you use any command-line with tabs or something, like cmder?
 
Idk how people enjoy command line applications
 
10:00 PM
Im a Windows nub so I just use cmd
 
They're the worst
 
It's the third time I post here but I think it's totally kickass check out bliker.github.io/cmder
 
Ugh, the Windows shell is the worst
 
I agree
 
@Loktar install Console2 (and you probably would benefit from cygwin too)
 
10:00 PM
Im jealous of others
 
Don't know what I'd do without the good old zshell
 
but I hear windows 10 has some nice improvements.. finally
@tereško ill check it out right now actually
 
@Loktar bootstrap is in SASS as well
 
Windows Prompt is better than cmd.. it's much more prompty..
 
Yeah? Like a native unix kernel? :P
 
10:01 PM
I just installed MS-DOS 3.1, solves any issues with cmd
 
actually, that cmder could be nice too
 
@tereško I told you
 
yeah thats what I was thinking, just looked at it
 
It's fucking beautiful, ahh man.
 
@SomeKittens ah nice didn't know they finished the sass portion
 
10:01 PM
I couple of guys in my office use it (CMDer)
 
Going to take a screenshot for you guys.
 
@adeneo BULLSHEET :P
There is no up arrow for prev commands
 
sourceforge.net/projects/console helps the windows command prompt sucks a bit less. version 2.
 
@Loktar There are.
 
10:02 PM
/me plays with his 486 with dos 6.21 almost weekly
 
Comeon
Just look at it.
 
@Catgocat I was talking to adeneo
 
the console app? yes.. the real version looks normal.
 
@Loktar - I still have the original disks for 3.1
 
@Catgocat is there a way to customize the copy-paste mechanics in cmder ?
 
10:02 PM
about dos 3.1
 
@Catgocat I've used it! Still doesn't beat a bash shell
 
@tereško You have CTRL-C working :P
 
@adeneo hah nice, I lost all mine long ago :(
I have to rely on disk images now lol
one cool thing though, I have a cf card in my 486, no old school moving part hdd
 
came with a new 286 i bought ( a few years back )
 
@Catgocat I meant "select to copy" and "middle-click to paste"
 
10:03 PM
super easy to clone the entire drive now
@adeneo hah nice
 
@tereško It has 9 billion settings for you to configure..
 
that's not really an answer
 
I used to have a few 286's IBM PS/2's
 
@tereško Ok: idk
@tereško Just checked it out, yes it has. Select = copy, middle click = paste
 
@Catgocat woah how old are you
just looked at your profile, you look crazy young
 
10:05 PM
@Loktar I am young enough not to tell people on the internet.
 
haha
 
I'd argue that any tool that aims to make one tool more like another tool is inherently inferior to the other tool the first tool is trying to augment the second tool toward (that made sense, right?)
 
You look just a bit older than my oldest kid :/
 
good answer
 
well .. his SO profile says "15"
 
10:06 PM
makes me feel old as hell
 
@Luggage Learned from the best.
@tereško Shutup
 
@Loktar definitely =/
 
@Loktar You are old as hell. Hell was founded the week after you were born in anticipation of your antics growing up :P
 
hahaha whatever
jandy is at least older so there is that..
 
Muurdith
 
10:07 PM
/me grabs walker and heads home
 
I have 10 years old face.
 
in PHP, 30 mins ago, by tereško
Fighting back tears... http://t.co/kwmmHdMEOq
 
People think I'm 9 though.
 
@Loktar dude at least you get those sweet tennis balls on your walker
 
@FlorianMargaine it was copied from here
 
10:08 PM
@Loktar Yep, flexibility++
 
ah, didn't see it in transcript
 
lol
 
Quick, someone go quote Florian's message in a different room
 
1 min ago, by Florian Margaine
in PHP, 30 mins ago, by tereško
Fighting back tears... http://t.co/kwmmHdMEOq
 
> different room
 
10:09 PM
There are no other rooms.
JavaScript is love. JavaScript is life.
 
He has a point ^
 
^ you mean PHP, right ?
 
@adeneo PHP is the lube that make JS even better
 
0
Q: Why do I get "Error: [ng:areq] http://errors.angularjs.org/1.3.5/ng/areq?p0=GreetingController&p1=not%20a%20function%2C%20got%20undefined"

David<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.5/angular.min.js"></script> <script src="http://angular-ui.github.io/bootstrap/ui-bootstrap-tpls-0.3.0.min.js"></script> <html> <script> var myApp = angular.module('myApp', []); myApp.controller('GreetingContro...

makes perfect sense
 
Clearly, @phenomnomnominal was trying to post that in the Java room, but it ended up here because Java and Javascript are the same thing.
 
10:12 PM
> Clearly
xD
 
Java refers to coffee beans produced in the Indonesian island of Java ?
So it's probably coffeescript ?
 
The logic, it falls into place :O
 
Coffeescript is just slang for JavaScript written while under the influence of coffee
 
What's JavaScript called when you're drunk?
 
@SterlingArcher JaaarScript
 
10:15 PM
lol
 
JarJarBinksScript?
 
That sounds like a horrible Java compiler
 
@SterlingArcher - bash ?
 
      $scope.changePage = function (direction) {
        var args = [errs.handler];
        if (direction === 'older') {
          // Get earliest commit in activeBranch
          var dateOfEarliestCommit = magic();
          args.unshift({
            until: dateOfEarliestCommit
          });
        }
        acv.githubRepo.branches.fetch.apply(acv.githubRepo.branches.fetch, args);
      }
antipattern detectors, go!
 
m59
anyone that uses passport-facebook know how to get the user's username / url ?
facebook.com/thisPart
 
10:17 PM
I need to pass a callback to branches.fetch, and optionally some more data.
 
@m59 facebook.com/:userId
 
There's just a bikini stripper in the video
 
@m59 - prompt('What is your facebook username')
 
m59
lol
 
10:18 PM
@m59 i.e. facebook.com/4
 
m59
we are totally not on the same page :)
 
@m59 That should redirect to Zuck
 
m59
Ahh, so I can just use my id: graph.facebook.com/10101864854029755/…
same page-ified.
 
@SomeKittens can you pass an empty {} instead for the case where direction isn't "older"?
 
@Retsam No, passing in an empty object means "I don't want the defaults" (which I do)
 
10:22 PM
Eugh.
Well, personally, I think just repeating the function call might be easier than constructing the arguments array.
$scope.changePage = function (direction) {
  if (direction === 'older') {
    // Get earliest commit in activeBranch
    acv.githubRepo.branches.fetch({
      until: magic()
    }, errs.handler)
  }
  acv.githubRepo.branches.fetch(errs.handler)
}
But then, that depends on how much more complex it's going to get, I suppose.
 
Shouldn't be too much more than that.
 
@SomeKittens Are you back at work yet?
 
Yeh
 
10:38 PM
Ok so postgre is stupid
I'm mad now
 
@Meredith ?
 
Idk I can't get it setup
 
m59
lol, I guess that's me now
not sure how that happened...
 
So clean cut!
Arrrrg! My designer went on leave for a month and all he left me was a corrupted photoshop file!
 
finally found an occasion to use html imports/templates
 
m59
10:44 PM
What if I looked in the mirror and that actually was me? That would be an intense coding mistake. or... a win. I dunno. I guess, ya know... I'd surely be remembered for that.
 
@m59 crystal meth ?
 
@m59 - the Lord works in mysterious ways ?
 
Does anyone else read The Codeless Code?
 
m59
lol
 
10:47 PM
@Retsam I do, semi-regularly.
 
I will give the benefit of a doubt and assume that you are not one of those people who believe in fairy tales, @adeneo
 
m59
ahh hahhhh. user.id (local profile) vs profile.id (facebook profile)
That was facebook user 5, Chris Hughes, co-founder of facebook
 
@tereško - only the one about Little Red Riding Hood
 
@adeneo that reminded me of this game: store.steampowered.com/app/27000/?snr=1_7_7_151_150_1
 
@tereško Let's not go there. If you want to discuss (or, more likely, trash-talk) religion, it's not wanted in this room.
 
10:51 PM
I was talking about star wars
 
STAR WARS IS REAL
 
You don't believe in Star Wars?
I mean, not believing in the prequel trilogy, I suppose I can see, but the whole thing?
 
The Jedi census phenomenon is a grassroots movement that was initiated in 2001 for residents of a number of English-speaking countries, urging them to record their religion as "Jedi" or "Jedi Knight" (after the quasi-religious order of Jedi Knights in the fictional Star Wars universe) on the national census. It is believed the majority of self-reported Jedi claimed the religion for their own amusement, to poke fun at the government, or as a protest against the inclusion of the religion question on the census form. == Impact == === Australia === In Australia more than 70,000 people (0.37...
 
Does anyone know where I can find the documentation for the npmjs.com/package/ws library?
 
@user1667423 The github repo is linked on the right hand side of that page you linked
 
10:55 PM
^ that
 
@user1667423 The page you linked to?
There's plenty of documentation right there
 
Nevermind, I accidentally skipped the doc folder, derp
 
@BenjaminGruenbaum @monners Who knows? It would be a pretty good way to screw with JS devs
 

« first day (1542 days earlier)      last day (3424 days later) »