« first day (1417 days earlier)      last day (3529 days later) » 

11:06 AM
lolwut
 
@SecondRikudo interesting indeed.
 
@AwalGarg Why are you so surprised?
 
http://stackoverflow.com/questions/25621896/how-the-scripts-in-the-buy‌​hatke-chrome-extension-works-for-xiaomi-flipkart-sales
 
@SecondRikudo cus the limit is too high... who would need 30k chars?
 
A very long answer that thoroughly addressed a number of problems in a complex issue could probably reach near 30k.
Those are rare because such complex issues are usually split into numerable smaller issues as they probably should be though..
 
11:15 AM
@Sippy If your question needs a 30kB answer, you asked the wrong question.
 
college strikes back
 
@SecondRikudo Yeah, but that doesn't mean it can't be answered.
And some people will try.
 
@Sippy It means that it's too broad, and should be closed as such.
> There are either too many possible answers, or good answers would be too long for this format. Please add details to narrow the answer set or to isolate an issue that can be answered in a few paragraphs.
 
@SecondRikudo If you'd define 'more than a few paragraphs' as too long in every single case, then that does indeed beg the question why is there a 30k limit.
 
33
A: How can I detect all dependencies of a function in Node.js?

Zirak(I apologise in advance: I usually try and make my answers humorous to ease the reader through them, but I couldn't successfully do so in this case. Consider that a double apology for the length of this answer.) 0. TL;DR (for "normal people") of the problem This is not an easy problem. Instead ...

25k characters
sorry, 23577
and I'm not counting all the links, since I use $0.textContent
counted it, it's actually 26k characters
so... yeah, 30k.
is it really that much?
 
11:22 AM
200 rep almost doesn't look like enough for that answer haha
 
I sure know I wouldn't like to be limited when writing such answers.
anyway, cya.
 
Hey there! I just want to ask: how do you append a div to all divs, including divs that are yet to be created? This is my current code, which only targets the current divs on the page when it's initially loaded:

`$('.tagged .post').append('<div class="fadeout"></div>');`
 
$('div').append()
?
Are you running it under doc.ready?
 
college strikes back
i scored 7.56 / 10 in the last semester
 
Is that good?
:D
 
11:26 AM
nope
do i care ? hell nope
 
In the UK that'd be the highest grade.
 
@Sippy Yesm, I am. But the code doesn't see anything that is newly created (or isn't initially loaded). :(
 
70% = highest
 
people go upto 90% here
 
wowee
 
11:27 AM
but i wonder does anybody in the whole college even come close to how much anybody in this room knows ?
sadly the answer is a huge nope
 
I'd reckon there's a few who know more than me:(
 
nope, probably just my head of the department
but i am scared :-/ to what my parents will react
 
You're Indian right?
 
Hmm
Very diff culture
 
11:29 AM
@SomeGuy @AwalGarg will understand more
 
in the west if our parents don't like something it doesn't really matter :D
 
meh , they are paying for my food and giving me shelter these days
not in the same house though ... we'd fight
 
Ah
So tell them it was unimportant and you wanted to focus on more important learning
You didn't do badly.
 
yeah
except for there is a test day after tomorrow that college wants me giving
and i really don't want to.
 
11:48 AM
Did somebody forget to star this ? code.google.com/p/v8/issues/detail?id=2700
They "implemented" arrow function without this lexical scoping... sigh...
 
-1
A: How to Clear all setIntervals at a time

Milind AnantwarA Diirty Solution: Now this is not good coding practice (for a number of reasons) but if you really need to clear that interval we can simply do a loop to find the id of the event to stop all setInterval() events that are running.: for(i=0; i<3; i++) { window.clearInterval(i); } Reference

Am I that stupid?
The person posting that answer is convinced it will work...
 
In theory it should accomplish what it set out to do
 
@KendallFrey with i<3 ?
 
but if it runs frequently, it'll have to spend a huge amount of time brute forcing
@dystroy I assumed that would be replaced
 
this is probably the stupidest answer I saw from a 20k+ user who's not me
I'm surprised nobody suggested modifying setInterval to register the intervals...
 
11:55 AM
I thought of it, but that's just...
 
Of course, there would never be a valid enough reason to do that
 
Of course
 
And if we start an answer with Don't use this code ! Never ! we're sure one day we'll find it in the program of a co-worker...
 
@dystroy Litter the code with invisible characters
 
@dystroy i once wrote that as a comment in some code i wrote, because i didnt want to do it that particular way (it was wrong and hacky and nasty and dirty!) but my tech director forced me to
 
11:59 AM
For extra fun, ‮Write it like this, with U+202E
 
!!xkcd rtl
 
this character is so weird
I don't get how it works
 
‮{ ;tset } ()noitcnuf = olleh rav
@dystroy star that ^ :P
 
.ELOHSSA
 
12:05 PM
‮!!test
Caprica won't catch it
!!> /*‮*/ var a = 41; ++a
 
@SecondRikudo 42
 
Lol
 
!!> window ['‮foo'] = (function () {return "42"}); foo ();
 
@C5H8NNaO4 "ReferenceError: window is not defined"
 
12:16 PM
Weird as hell that character
 
‮
4
 
m59
I randomly scrolled to end and saw Google says so and that was enough for me. — Deadlock 7 hours ago
 
how do you input it?
do I have to copy it from somewhere or something?
@SecondRikudo
^
 
@towc With Ubuntu, CTRL+SHIFT+U inputs a sort of underlined "u", after which you can input any hexadecimal UTF8 character code, and hit space, and it'll insert it into text.
 
no ubuntu for me :(
 
12:25 PM
So in my case, <CTRL>+<SHIFT>+U 202E <SPACE>
 
erm
nope
google doesn't help :(
 
@towc Chrome console copy('\u202e')
 
‮wow
‮even when you type it makes it look strange!
this is cool
 
chromes autocomplete gets turned backwards too :P
 
facebook even gets the links right
can't insert it on twitter tho
 
12:33 PM
0
A: Naming convention for Stack Overflow chatrooms?

Benjamin GruenbaumI don't think we should forbid such names. So someone doesn't like a language you like. The room has a topic that relates to programming. People in that room discussed programming in a language. They did not like a technology you do. Basically, you're suggesting banning on-topic programming ...

 
@Unihedron me too. Java does indeed suck. — Second Rikudo 6 secs ago
 
@AbhishekHingnikar Thank you for your suggestion to use promises. They solved every issue I was having.
 
@NickDugger You mean jQuery promises right?
Only they solved every issue you could be having.
 
@NickDugger haha, priceless.
 
12:38 PM
@AbhishekHingnikar what?
 
"I couldn't get it up. Promises helped"
(The server, that is)
Aww.. I got downvotes by Java people.
 
I'd rather use java than php
 
Probably me too, depends on what for - I dislike both though.
 
@NickDugger I wouldn't.
There isn't much difference between the two for me, and PHP deploys faster and doesn't enforce absolute OOP at me.
 
vs7
I'm using angularJS to append some content on request

So i need to combine preexisted content to new content ...
_self.cs_viral_list_mobile = _self.cs_viral_list_mobile.concat(JSON.parse(data));
I have used this
and it gave me error
"success": function(data) {
                    if (_self.cs_viral_list_mobile.length == 0) {
                        _self.cs_viral_list_mobile = JSON.parse(data);
                    } else {
                        _self.cs_viral_list_mobile = _self.cs_viral_list_mobile.concat(JSON.parse(data));
                    }
                    console.log(_self.cs_viral_list_mobile);
                    $scope.$apply();
                }
on the top

_self.cs_viral_list_mobile = Array();
 
12:49 PM
posted on September 02, 2014

And it’s a wrap. Last Thursday, while being in Zürich, I did the absolutely last edits for The Mobile Web Handbook, my new book published by Smashing Magazine. You can order it and get the e-book right now; the printed book will go out in late September. I’m glad I took the time for those last edits; there was one page-break problem that messed up about five pages, but we

 
@AbhishekHingnikar lol, I rarely get below 96% and that's still not the best.
so that was the context lol
 
Awal kill dat feed!
Murder it!
Destroy it! Isildur!
 
@Feeds whosoever added that feed, thanks :)
@Sippy fortunately, I can't do that.
 
Didn't you remove them all yesterday?
 
@Sippy someone must have added them back...
 
12:53 PM
Hmmm.
 
@Sippy ohh... by "I can't do that", I meant, "I am not in the mood of doing that right now"...
 
OH
What's that all about?
Some are backwards ..
Everyone sees it like that?
 
u202e
Jup ^^
 
lolol
 
@Sippy that's because @SecondRikudo is a god who can make/destroy anything and he made them like that.
 
12:57 PM
I've heard he is magical.
 
@Sippy I assure you, none of my jutsus are magical.
 
!!youtube electric avenue
 
‮basically, he is known to do things like that. Pretty clever that guy is...
xD
 
@AwalGarg Lbh xabj jung bgure xvaqn bs grkg vf nofbyhgryl shpxvat ubeevoyr?
 
1:00 PM
@rlemon ‮Guess who just lost the game?
 
@rlemon I don't think that means anything... Are you trying to confuse me?
 
@SecondRikudo !!uoy nmaD
 
@AwalGarg It means everything ..
 
@rlemon lol.
 
1:01 PM
@rlemon you ruined it with the capital L though :/
 
how?
I keep case sensitivity
 
Cos there are no capitals at the end of words.
 
it isn't reversed
 
Oh.
 
1 min ago, by rlemon
@AwalGarg http://rlemon.github.io/ROT13JS/
 
1:02 PM
@rlemon when you post in rot, you should append "(ebg)" at the end.
 
Ceaser cipher?
 
why?
 
Caeser cipher*
 
!!tell Sippy wiki ROT13
 
it means this is in rot.
 
So... it just makes every letter +13 letters into the alphabet? Is that was ROT13 means?
 
Oh, yup
 
ROT13 == rotate by 13 places
 
Makes sense. I just put "a" into your thing, and it said it was "n". Then I went down b, c, d, etc, and saw the pattern
 
1:04 PM
and 13 because there are 26 characters in the English alphabet. (there are more but...)
 
I use rot13 two times for better hiding :P
 
why does that take so bloody long :/
 
Lol
 
ROT13 is all you need for password encryption. Super secure.
 
1:05 PM
What is the relationship between underscore and lo-dash?
!!hahano
 
336
Q: Differences between lodash and underscore

Brian M. HuntWhy would someone prefer either the lodash.js or underscore.js utility libary over the other? Lodash seems to be a drop-in replacement for underscore, the latter having been around longer. I think both are brilliant, but I do not know enough about how they work to make an educated comparison, a...

 
> It appears to us that you have decided not to enable Javascript.....<br>Are you an idiot?! It's 2012, don't be a douche, turn on Javascript.</p>
lolwut? (and it's 2014, don't be a douche, time to upgrade.) @rlemon
 
@AwalGarg don't disable js. and I wrote that in 2012 obviously.
 
1:09 PM
Also, have a look at the source code.
 
Hahaha
 
@rlemon with server side JS you could keep that comment up to date
 
php or gtfo
 
@dystroy It's a github page, no server-side JS
 
@dystroy why server side? JS alone can do that... oh wait.
 
1:13 PM
@rlemon you should feel proud of me. I finally used promises. It's like I graduated from idiot to novice.
 
@NickDugger yay!
 
@dystroy <noscript><script>document.write((new Date()).getFullYear());</script></noscript>
 
good
 
@rlemon errrrr.....
im sure im missing something there
 
lol
 
1:19 PM
// load jquery
jQuery.getScript( "https://code.jquery.com/jquery-2.1.1.min.js", function() {
  // wait for the DOM
  $(document).read(function() {
      // load your stupid plugin
      $('body').stupidPlugin();
  });
});
 
@AbhishekHingnikar Does your app have anything to do with "picking" pictures as such?
 
@DrogoNevets ^ that better?
 
hahahaha.
 
1:32 PM
foo
  .bar()
  .baz()
  .biz()
vs
foo
.bar()
.baz()
.biz()
which does everyone prefer
 
the latter for me
 
(imagine the methods take lots of arguments and warrant a new line )
 
I prefer the indented version @rlemon
 
I am creating an interface to $http.get. It's called httpService and it provides it's own .get() method. However, how would I provide an interface to $http({method:'get', url:'...'}); ? this is like a constructor call, and will call should call something like httpService()()
 
1:33 PM
it's how I write my jQuery (when I need to)
 
user2620028
definitely the indented version lemon
 
@rlemon if ive read everything right, and each argument gets its own line, version2, with the arguments being indented
foo.bar({
    arg1: null,
    arg2: null
}).baz({
    arg1: null,
    arg2: null
}).biz({
    arg1: null,
    arg2: null
})
 
@SecondRikudo hehe
 
i like my version (v3) i think, hang on, let me copy&paste and play with real code
so my sublime went for v1
(have an auto js formatter installed)
i can read it nice and easily, so i'll accept that
 
1:49 PM
@rlemon I think that'd look nicer with indentation, but I like indentation. It's clear how it is, though.
 
my 404 image ;)
 
hahaha
 
user2620028
That is disgusting lol
 
o/ 17
 
@rlemon That looks like something that might exist on one of the old metallica vinyl sleeves .. if the guy was a zombie.
 
1:52 PM
\o 363815
 
shouldn't the room title be "javaScript" and not "JavaScript" since JS follows camelcase everywhere...?
but it could be a constructor...
 
their best album cover imo
 
what's the "gm" lib that you're requiring?
nevermind, google helped
 
@rlemon i liked master of puppets album!
 
I liked the album, sure, but this is my favorite cover
that or kill em all
 
1:56 PM
@rlemon yea what im saying is i liked the cover, and the album too
and justice is probably my fave album (to listen to)
 
master of puppets / ride the lightning / kill em all / black / and justice
I could listen to that lineup all day long
everything after reload kinda sucked imo
 
yea
 
Garage inc was the last album of theirs I bought
was so disappointed in it, didn't buy another
 
@Unihedron =P
 
@rlemon from the link I gave you, you might have inferred I find this more readable :
 
1:57 PM
heard newstead yet? saw them live last year at download festival....was interesting
 
app
.set('view engine', 'ejs')
.use(express.static(__dirname + '/public'))
 
how can I check if browser supports css' calc rule via javascript? (no jquery please)
 
user1596138
First 3 day weekend in 6 months and I ended up sick as shit the whole weekend
 
@Jhawins ouch!
 
@dystroy yea I just don't like how that sits personally
 
1:59 PM
ive not got one (unless i take leave) until the 25th dec now
 
user1596138
I've not got another scheduled... Until I finish.
 
@Jhawins Sux man, I took last week off to spend it with my girl and went riding before she got here, ended up hitting a tree and being barely able to move all week haha
 

« first day (1417 days earlier)      last day (3529 days later) »