« first day (1658 days earlier)      last day (3290 days later) » 

12:00 AM
@AwalGarg nvm I found the fiddle
 
@royhowie yeah he made it already :P
 
ok i changed that but it still says undefined
wait yes it fixes it!
TY!
 
No problem :)
I had put your code on my server to show you live foobar.science/joshk.html but ok...
xD
 
:D
 
@royhowie almost to 3k!
 
@SomeKittens trying so hard lel
stackoverflow.com/questions/29979555/… idk if my answer is correct
I literally just googled their problem
 
12:37 AM
stackoverflow.com/questions/29979913/… someone should help this guy out
 
experimented with webpack, react, and babel today. Too much fun.
good night peeps!
 
@royhowie: seems you just got 3k, congrats!
 
@Qantas94Heavy lol that was evil
 
Is the NodeJS stream just the outgoing/incoming arrow in a duplex pipe? Not a textbook definition
 
@StevensHaen that works
I love this CV queue
this is so much more fun than the LQP queue
 
@KendallFrey wht u used 2 make hat
that
 
@Steve wht u mean
 
the video animation
 
come on
I have no idea what you're asking
 
 
1:06 AM
er
yes?
 
could u tell me what it is
srry
 
um
wtf
no
 
@BenjaminGruenbaum for the riddle, is 0 considered a positive integer? is there only one solution?
 
1:41 AM
What's the point of pausing the stream in NodeJS?
Do I have to make a separate tcp server when dabbling with the streams, or just stick with the express app?
 
"dabbling" -> so "stick with the express app"
 
@royhowie How would that look? app.on('connection', function (socket){}) Something like this?
 
I think
 
I don't have to require net?
 
what are you streaming?
 
1:51 AM
for example, a .txt file
 
are they accessing the .txt file directly?
 
Streaming doesn't always have to be in a pipe, right?
 
just pipe it to the response?
 
@royhowie I don't know, I'm new to this thing
 
what's the overall goal?
streaming is for when you have to transmit a lot of data
it sends it in chunks
 
1:52 AM
That's the explanation I've been looking for. Docs confused me
What does "non-blocking I/O" mean in human?
 
not synchronous
 
I see
 
do you know how the node.js event queue works?
 
Please explain
 
let me see if I can find a good article; don't want to butcher it
Basically, things don't necessarily run in the order you tell them to. Node.js has an event queue—think of it like a schedule. It slots tasks and fulfills them based on "what's" (think: resources) available
 
1:56 AM
What's the benefit of async in Node context? It doesn't have to wait as much? Faster?
 
node.js is single-threaded (v8)
 
Well, that's how JS works in general
 
compare this to other frameworks, which are multi-threaded. Each time they want to serve a request, they have to spin up a worker.
 
It doesn't go to the callbacks until the very end
if you don't use promises
 
@StevensHaen (js is not async in general, though)
try this:
function f () { console.log("hi");}; process.nextTick(f); console.log("hello!")
@BenjaminGruenbaum can numbers be repeated?
 
2:10 AM
@royhowie no
@royhowie yes
 
@BenjaminGruenbaum okay, then it's easy
Who came up with the riddle?
 
I did with a friend, it's not supposed to be a hard riddle
It's in order to get the email to send the CV to.
It's meant to filter out people who shouldn't be sending their CVs in the first place - like people who can't program at all
 
that's what I figured
I like how bandcamp does it for its dev jobs
 
was sort of easy, though
but same idea
stackoverflow.com/review/close/7902040?filter-tags=javascript should I vote to close this? I almost feel like this one is an exception to the rule, since the OP is not really asking for a recommendation
 
2:26 AM
So, in nonblocking operation style the callback gets triggered immediately after the event has been spotted by the browser/Node. What if the callback relies on a file to be loaded in the trigger event?
 
how-old.net thinks I was 26 when I was actually 17.
:D
 
@KendallFrey it thinks I'm 27, but I'm 19.
I'm yet to see it get someone's age right
 
2:41 AM
it didnt get my age right at all
but kind of close
in the 30's for all of them
 
@user1924375 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.
 
lol @ people flagging stuff that is explicitly marked NSFW.
 
NSFW doesn't mean "I can post anything so I will"
 
2:53 AM
@Steve duuude whats up?
 
I like how they describe this github project as "nascent"
 
> Why don't you guys just use IRC, man?
Thats what I'm sayin!
 
3:16 AM
@royhowie asteroid from orbit! :D
 
@Loktar Yeah, this is definitely less intimidating. The culture as well as the interface.
 
yeah thats a fair point
 
Ask a question in ##javascript and you'll most likely get an excellent answer. But occasionally you might get a lecture on combinatorics or Haskell's type system, which really isn't very helpful.
 
 
1 hour later…
4:45 AM
 
@KarelG Haha. IIRC, I commented to get him to state clearly that you can't edit it. He didn't, so I made an answer that was clearer myself. i.imgur.com/tii1Szh.png
@Zirak There's nothing at stake for typos.
 
5:29 AM
@phenomnomnominal NO.
 
Haha, exactly what I thought
Not going to encourage another cookie clicker
 
@SomeGuy you use the linuxes, right?
 
Haha yeah
 
What do you use for terminal?
 
The regular terminal
Bash, that is
 
5:36 AM
BOOOOOO
er, terminal emulator
 
Hahaha
Oh, for Windows?
Git-bash
 
No, like Guake or Terminator
 
I don't even know. Whatever is built-in
 
After some research en.wikipedia.org/wiki/…
I still can't really tell. It must be gnome-terminal
 
@royhowie 3k!
 
@SomeKittens I know, thank god
 
yaaaaaay
 
now I get to partake in the nuking
next goal is the silver javascript tag (but that's going to take 5ever)
so no rush
also, under Profile > Profile > Top Tags, what does the "posts %" mean?
 
@royhowie hover on the number
 
6:15 AM
okay?
I have 11 of 19 on questions and 101 of 114 on answers
what does that have to do with 69%?
are 69% of my answers in JS?
 
actually I've no idea, I was hoping you'd work it out :p
 
I guess I can ask on meta
 
Mine says Asked 8 non-wiki questions with a total score of 41. Gave 116 non-wiki answers with a total score of 297. and I've no idea how they got 67% out of that
 
must be as a percent of posts…
 
I am not sure how to multiply any combination of those 4 numbers and arrive at 67
but then math was never my strong side
 
6:22 AM
do you think 67% of your posts deal with angular?
 
Possibly
 
I've 165 answers total, but many of them would have overlapping tags
 
the question is pretty…but off-topic
 
Yes, but it's also from 2010
nothing wrong with close-voting it though
rules have changed over time but IMO questions should be judged by todays rules and not the rules at the time they were posted
 
6:26 AM
there are some occasional exceptions
(but those should be flagged by a mod with the "special" flag)
 
I try to be very wary about using flags, I think the mods are already quite busy
if my close-vote doesn't stick I'll just accept it and move on
 
hmm
how am I supposed to get the marshall badge, if all I do is close vote now
(instead of flagging)
 
it's annoying I have two answers that are basically the same (didn't realize at the time of answering) and all my efforts to have one Q closed as duplicate of the other has failed
I never cared much about badges, I mainly use flags for spam and rude content now
 
the only badge I actually want is the gold javascript one
so I can immediately close terrible questions
 
I'd love one too but I am ages away from that
 
6:32 AM
yeah
 
and I've kind of lost interrest in trying to find something I actually want to answer so while I'd like 10k to see deleted posts I don't see it happening any time soon.
I think I spent so much time in the review queues I got tired of all the crap content :)
 
since when is this a close reason…?
 
You can put in a custom one, someone typed that in
 
oh, okay
nvm, I see it as a comment too
 
Morning!
github.com/chriscoyier Look what I did! :)
 
6:35 AM
nice one :)
@IonicăBizău btw are you the one running css-tricks? that site has helped me out many times
 
Nooo, Chris Choyier is running it. I just hacked his contributions graph. ;)
 
hmm, how do you do that?
I thought that graph was based on actual, verified commits?
 
in HTML / CSS / WebDesign, 9 mins ago, by Ionică Bizău
@StephanMuller It's a GitHub issue. I reported it as vulnerability and they said it's not eligible for reward program. :)
If I cannot get money, I will get popularity.
 
How is that not a vulnerability? you could add some way more mean stuff than that
 
@ivarni spell out some mean words
 
6:39 AM
php
 
@IonicăBizău actually, you should really do that; just spell out really mean words on all the top github people. I bet they'll fix it then (and then maybe you'll have some leverage)
 
@royhowie Give me some ideas
 
I wouldn't do that, but if they claim it's not a vulnerability I'd disclose how it's done
 
@IonicăBizău something legitimately dirty/vulgar
 
I tried to do it on Linus's graph, but somehow his email addresses are not linked to GitHub.
@royhowie Noo, I won't do that.
 
6:41 AM
then they'll see it's a real problem
 
Something funny
 
3 deep 5 u
idk, some meme
 
I mean, if GitHub really doesn't think it's a problem they won't mind if everyone starts doing it right?
 
how does the trick work?
 
6:42 AM
Well... I'm not sure if I can disclose it.
But actually that's simple
 
I am guessing he's doing commits with the target's email address?
 
I think "3 deep 5 u" should be the phrase
 
Add the user as collaborator (doesn't require any accept from the user) + commit using his GitHub linked email address
 
git config --global user.email foo@bar.com? Is it that simple?
 
we, programmers - are like robots aren't we :\ I don't wanna be a robot.
 
6:44 AM
Even simpler ;)
I use this bot to generate nice graphs
What to write here? :)
 
I don't wanna be a robot anymore. Whyyyy have I wasted soo many years on learning all this.
 
@mash maybe you're just working for the wrong company and it's not the wrong career?
 
maybe
 
@IonicăBizău Can you fit I <3 devtools?
 
wait until a computer replaces you
 
6:46 AM
@ivarni Sure! Great!
 
@IonicăBizău this app is impressive
 
Well, your repo now has my star, nice one
 
Thanks! :)
 
I'm still trying to figure out how it actually works
 
6:54 AM
10 mins ago, by Ionică Bizău
Add the user as collaborator (doesn't require any accept from the user) + commit using his GitHub linked email address
^ @ivarni
 
I could understand it working on someone with very few contributions but for someone who's got a more or less filled graph to start with?
 
maybe because it changes the frequency so much?
 
Yeah, I got that part, but how does it "clean" the graph before drawing the graphics?
 
@ivarni What do you mean?
 
i.stack.imgur.com/3R7KD.png how does it get rid of the already filled squares?
do the green ones become gray if the frequency is radically higher for some days?
 
6:58 AM
Is there a way to force precision for addition of two really large numbers in JS?
 
I've not been able to find more than random BigInteger libraries.
 
@IonicăBizău yeah, you need to do like 100 contributions or w.e.
 
@royhowie Regenerating the same graph with 500 / day
 
@IonicăBizău okay, I tried your app
didn't work
 
6:59 AM
@royhowie What erorr?
 
no
I downloaded the zip file
 
Give me the repo url
 
git remote add origin https://github.com/royhowie/test
then I did git push --all
 
but it didn't do it on my uncle's github
 
7:01 AM
Because you didn't change the commit author
 
oh gdi
 
#!/bin/sh

git filter-branch --env-filter '

OLD_EMAIL="your-old-email@example.com"
CORRECT_NAME="Your Correct Name"
CORRECT_EMAIL="your-correct-email@example.com"

if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
then
    export GIT_COMMITTER_NAME="$CORRECT_NAME"
    export GIT_COMMITTER_EMAIL="$CORRECT_EMAIL"
fi
if [ "$GIT_AUTHOR_EMAIL" = "$OLD_EMAIL" ]
then
    export GIT_AUTHOR_NAME="$CORRECT_NAME"
    export GIT_AUTHOR_EMAIL="$CORRECT_EMAIL"
fi
' --tag-name-filter cat -- --branches --tags
 
Run this in the repository
 
okay
that makes sense
 
7:02 AM
@RoelvanUden This looks very promising, thank you so much!
 
@royhowie And don't forget to add your uncle as collaborator before pushing the things.
 
@IonicăBizău can go one step further and generate the repo programatically
 
@royhowie It's faster since you already generated it.
You just need to change the commits author
 
curl -u 'USERNAME' https://api.github.com/user/repos -d '{"name":"NAMEHERE"}'
 
Ah, right
Using the API
It could be a checkbox or so
Open an issue
 
7:04 AM
I'm just saying that you could make this whole thing completely programatic
just draw the graph then ask for the collaborator
@IonicăBizău do I set OLD_EMAIL as my uncle's email?
 
THE
7:18 AM
is there anyway I could see which method takes the longest to execute in chrome ?
on page load
 
7:33 AM
@royhowie The OLD_EMAIL is the current email (your email).
 
@IonicăBizău oh, okay, got it
ugh…so if I did it backwards, now git has the wrong email
(but that's just for this repo, right?)
 
Does anyone know how you can bind to a form in angular when you load the view from a controller?
 
@royhowie Yes, so do a git log check if the email is still wrong and if so, change it (using the script).
 
it's fine
 
I have a page where a button click opens a modal that is given the pages $scope. There is a form on the modal, but that form does not seem to be bound when accessed from the controller ($scope.myForm is undefined even though I can access properties of the form in the view e.g. myForm.$dirty will accurately show true/false on input).
 
7:41 AM
@CodeWarrior Try using the debugger and see if you've accidentally created nested $scopes. Any directive that creates an isolated $scope (e.g. ng-if) can mess up accessing the form object.
 
(I have a feeling I am going to be down voted to oblivion)
 
it's meta, downvotes doesn't matter :p
 
I know
 
not that they matter much on the main site either
 
yeah, it's all about those rep gains
 
7:43 AM
had someone serial DV me the other day, still came out with a net positive
 
although I shouldn't've bothered flagging (in hindsight)
 
@royhowie lol, visiting that page I see that I DVed it back in November, sorry :D
 
it's okay
that grammar mistake is not as bad as "in regards to"
 
seriously though, I think flags should be conserved for more pressing issues
I believe the mods are already quite busy
 
they should have another type of lock
like a 2k+rep lock
because then more-trusted users could fix things on locked posts
 
8:00 AM
@SomeKittens roxterm
Or sakura
 
stackoverflow.com/… a lot of these questions should be nuked (all off-topic -> asking for a library recommendation)
 
@IonicăBizău that's so great
 
@royhowie I forgot the heart. Lol
 
no heart, though </3
@IonicăBizău how did you "forget" the most important part?!?
 
8:10 AM
Fixing!!!
 
@royhowie well there's already 8400 questions with pending close votes in the review queue, if you want to have an impact it might be better to start there as it does take 5 votes to close a question
 
@ivarni did 40 CV queue stuff right when I hit 3k rep
 
@royhowie Also this chat room is running regular crusades to get things closed: chat.stackoverflow.com/rooms/41570/so-close-vote-reviewers
I haven't used it much though, it seems to be mostly active when I'm not online
 
that sounds like fun; will try to be there
 
8:50 AM
guys whats the key combination for show menu tab? i just downloaded today and when i check the "hide menu" button it worked... (Sublime 2)
 
THE
how can I make sure to run my code after $.each finishes all it's running

if (fruitdata.length > 0) {
$.each(fruitdata, function (index, item) {
GetFruitRow(item);
});
----> here I only want to run my code when getFruitRow has finished all it's business 100%
}
 
@THE GetFruitRow is async?
 
THE
@RoelvanUden everything in js is :(
 
No, not everything is. Only I/O-related
(Or rare cases)
 
@IonicăBizău looks nice
 
THE
8:52 AM
oh, GetFruitRow is only using the request data to create rows
it is using another each inside it
and adding rows to table really
 
Why isn't there a callback or promise from GetFruitRow?
 
Guys in Sublime Text 2 what is the key combination for toggling menu bar?
 
THE
@RoelvanUden you were right actually
56
Q: Is jQuery "each()" function synchronous?

Saeed Neamaticonsider this scenario for validating: function validateForm (validCallback) { $('#first-name').add($('#last-name')).add($('#address')).each(function () { // validating fields and adding 'invalid' class to invalid fields. }); // doing validation this way for almost 50 fields (loop...

anyone use jquery datatables before ?
 
You ask every day, I doubt there will suddenly be a ton of people that gained that knowledge over night. :P
 
THE
first time asking that :/, maybe it was someone else really
but yeah, i ask lots of questions though :)
 
9:01 AM
Hm, I must have confused you with another serial jquery datatable asker. You might find something in common then :D
 
@THE I think each() is synchronous. I used Datatables some time back. We had a lot of data in one that would get sorted and filtered and whatnot. All operations on that table took a noticeable amount of time and would occasionally tie up the UI. Obviously the data loading methods and whatnot are async, but either some of those methods are sync or the data that we were working with was too much for the browser to handle well (I honestly don't remember that well)
 
THE
hmm, for me it's working pretty well so far, wasn't sure where to intialize it from but figured it out now, works all well , thanks
 
9:20 AM
 
Damn
Haven't used grooveshark for like 6 years though
 
spotify. last.fm etc don't operate here. There's nothing left. I'm desolate.
 
I use google music
 
While riding a Bald Eagle no doubt
 
I'm British :(
 
9:22 AM
And Americans aren't?
 
I'm completely lost
 
So am I
Users broadcasting was one of the best things to have happened to my ears.
 
I don't know what that means
 
Shut up and go get fat on scones
 
Crumpets*
 
9:28 AM
Oh god dev tools code is horrible :(
@Zirak You can use this: xanthir.com/demos/collidingcircles
 
9:44 AM
@IonicaBizau Haha. Love it. Thank you. Welcome surprise when I went to GitHub before checking this tweet :) http://t.co/JDqeNvn1uO
^ @ivarni @royhowie
 
@IonicăBizău I figured he'd like it
 
ahhhhh, you sent commits from his email
 
@Zirak Way ahead of ya
 

« first day (1658 days earlier)      last day (3290 days later) »