« first day (1392 days earlier)      last day (3572 days later) » 

1:00 PM
@Cereal I wouldn't know that
 
@rahulserver Well no, your original question was 'Why isn't this table row appearing with this code' - it had nothing to do with preserving event handlers and your fiddle never contained them.
 
@Psychemaster so that means that is "a" question
 
@rahulserver Yes, but not 'the' question :)
 
@rahulserver first, stop using alert... we all have consoles open. use console.log, second, how could you even expect that code to work?
 
@user1306322 Sorry, this is like "did you plug it in" kind of thing, I didn't even think to ask earlier. Change your script to:
 
1:02 PM
@AwalGarg be more specific
 
    var links = document.getElementsByTagName("a");
    [].forEach.call(links, function(e) {
        var url = e.href;
        var url2 = url.replace("_thumb", "");
        e.href = url2;
    });
 
@Cereal yea, done already... thanks :)
 
@AwalGarg :o Not paying attention to the meta sandbox @.@
 
@rahulserver change all your alert() to console.log()
 
@Cereal works!
 
1:04 PM
@BenCraig i replaced the "div" by "tbody" but still does not work. Try changing the fiddle and u will get it your self
I will change alert to console.log
 
lo, I have never seen a fiddle with so many clearly visible errors :P
 
@Cereal [].forEach.call(document.links, ... :)
 
:o
 
@AwalGarg better tell the error than waste your time writing so many characters
 
1:04 PM
@FlorianMargaine I didn't know that was a thing!
 
@rahulserver wait boy.. I am doing it...
 
I'm starting to like this js stuff
 
htmlcollections at their finest
 
@user1306322 welcome!
 
@user1306322 as per @FlorianMargaine's suggestion: an improved fiddle jsfiddle.net/horizonshadow/dcsvqf1n/2
 
1:06 PM
 
@rahulserver where do you expect the div2 to go in your html? as in, at what place should it be kept?
 
div2 is just a placeholder
as per that answer on SO and other many answers
 
@rahulserver you can't do it like that. you have to keep it somewhere.
 
@Cereal this one doesn't work in my Firefox for some reason
 
you can't log its outerhtml otherwise.
 
1:07 PM
hmm
 
and why do you even need a placeholder?
 
wait…
I'm probably not using it right
lemme try again in the console
 
@BenCraig your fiddle does not work.I assume (was?) it for just replacing alerts with console.log?
 
@rahulserver No..? It does work
 
ok it works if I put it in console
then I'm not using it right
 
1:09 PM
Works in my firefox t.t
 
it's all fine, the problem is in me т_т
 
@Cereal in chrome it does not
 
Whats not working in it for you
 
-5
Q: Can any one please tel about PhantomJS?

user3916823I am newbie to selenium web driver. Currently I am working on Selenium tools. For this, I have made some research. During my research, I like to know how to execute automated test without browser handling. Then I came to know that phantomjs to make that. Now I am eagerly wants to know about it. ...

 
but let me chk with firefox
 
1:09 PM
 
does not work in firefox for me either
:(
 
@rahulserver jsfiddle.net/tn4euhsn/8 is this what you want? (and open your console, don't wait for alerts... there are none :P)
 
@rahulserver Sorry, I was talking to @user1306322. SHould have pinged
 
and this is what the console.log gives me @BenCraig
<tbody><tr><td>A col1</td><td>A col2</td></tr>
</tbody><tbody><tr id="row2"><td class="r2col1"></td><td class="r2col2"></td></tr></tbody>
OMG ctrk+k does not format it :(
 
1:12 PM
I wouldn't trey to format that anyways. You shouldn't have rows outside of the body.
 
@AwalGarg mate this also DOES NOT WORK!!
<table id="tab" border="1">
<tbody><tr>
<td>A col1</td>
<td>A col2</td>
</tr>
</tbody><tr id="row2"><td class="r2col1"></td><td class="r2col2"></td></tr></table>
 
how do I install that script correctly into Greasemonkey?
it works if I run it thru console
 
see it appends a new tbody
 
@user1306322 hold on...
 
Why is the tbody a problem in any way
 
1:13 PM
Why do you have two tbodys? Redundant
 
@rahulserver Have you tried giving the original table a tbody with an ID and using that as the append point?
 
@Psychemaster i havent
 
@AwalGarg let's go to Sandbox for this
 
@BenCraig how can u ask that!!??
its INVALID HTML!!
 
@Psychemaster you wouldn't need to give it an id to use it as the append point.
 
1:14 PM
actually its not
 
I think @rahulserver is just trolling. he came with a problem, and he has got a solution...
 
@AwalGarg thanks for the answer.
And u must understand that any QUALITY software engineer is paid for his hours
no one trolls like that on SO
3
 
yes nobody at all
..
 
@rahulserver Please tell me you're not serious.
 
hahaha... I think you really need to have an open mind bro.
 
1:17 PM
> Quality software engineer
> Can't spell
 
@rahulserver you're starting to overstay your welcome in our chat room. Shape up, or ship out.
 
@Cereal And let's not forget the quality of the code provided, too...
 
XD
alert lol!
@rahulserver ok lets get it seriously laid for the last time, what do you want the code to do?
 
@NickDugger I suppose not but we can worry about that after he's tried it :)
 
Aye, I'm just against needlessly setting ID's to elements. Next thing you know, your body has an id="body" lol
 
1:23 PM
@NickDugger Don't tell me what to do with my body
 
@Cereal Do you know what to do with it, then?
 
@Cereal will you hold it against me?
 
Hi all
 
var me = {
    holdAgainst: function(elem) {
        alert("69");
    }
};
if (document.body.classList.contains("liked") {
    me.holdAgainst(document.body);
};
I spent too much time on that. lol
 
Is it usual that a regex result always leads to a successful condition check ?
 
1:28 PM
@KarelG depends on the regex
 
var regex = new RegExp(/(\bdisableButton\b)|(\bhighLight\b)/g);

// in loop
console.log(regex.test(buttons[i].className));
if (!regex.test(buttons[i].className)) {
	console.log('added clicked event');
	buttons[i].addEventListener('click', handlePagination);
}
i get several true's and false's, but i get always "added clicked event" entry, no matter of the true/false state
maybe i'm missing something :|
 
When you run a global regex, you change its state, so the second test is different than the first test
Only call it once
 
I just noticed, I forgot a closing parenthesis on my if :(
 
@Zirak aaaah, THAT was what i was missing. thanks ! Spared a post on SO
 
@KarelG If you care, the thing that's changing is regex.lastIndex
Also, you can get rid of the enclosing new RegExp call
 
1:34 PM
@KarelG don't you think you should shift the console logging thing down?
 
@Zirak following a company standard ...
@AwalGarg was tracing the error. Adding console logging = following the track. Ofc i remove them once the issue got solved
 
kk
 
sublime text has replace functionality with regex function btw ;)
 
what is binary json?
 
now i'm off. thx against Zirak
 
1:38 PM
vs normal json
 
@dievardump no! Thats sweet I might try it out thanks!
 
@Loktar there is a JavaScript version also in the entries
 
@FlorianMargaine your message went away!
4
 
there are so many @dievardump
 
1:41 PM
So many what? (On mobile, sorry)
 
123
Q: Tweetable Mathematical Art

Kyle McCormickInteger math can generate amazing patterns when laid out over a grid. Even the most basic functions can yield stunningly elaborate designs! Your challenge Write 3 Tweetable (meaning 140 characters or less) function bodies for the red, green, and blue values for a 1024x1024 image. The input to ...

A guy had not c++ available so he did the same with JavaScript canvas : codegolf.stackexchange.com/questions/35569/…
 
@dievardump That's really cool
 
um.. i am facing problems in gitting from a linux terminal
i never tried this before
 
@Loktar holy crap I totally forgot today was friday
 
1:44 PM
posted on August 08, 2014

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) {} If you're interested in parasites, Kelly did an interview.

 
These are a friend of mine entries :
http://codegolf.stackexchange.com/questions/35569/tweetable-mathematical-art/35674
http://codegolf.stackexchange.com/questions/35569/tweetable-mathematical-art/35784
 
i have done the git config --
then i created a repository named twitter directly in the github webpage..
then in my working directory i did git init > git checkout -b any_name
but when i do git gitbranch i only see the name of my repo with a * , i donot see any master
 
@Cereal what?
 
Super short with coffeescript !
 
oh, coffeescript ._.
 
1:46 PM
slurrp
 
I don't like coffeescript
I've also never tried it, but I just know I won't like it, simply because.
 
Too mainstream
 
I'm too mainstream?
 
I don't like you guys, you are too mainstream
 
No, coffeescript is too mainstream for you to use
 
1:49 PM
I don't like myself cause it's too mainstream not liking mainstream people
 
I'm not a hipster!
 
that's too mainstream to say bro
 
@ziGi Saying that that's too mainstream is too mainstream, bro
 
talking is too mainstream, I have to shut up
speaking English is too mainstream
I don't know why people do it
learn a friggin alternative language
 
@ziGi You're still talking.
 
1:52 PM
I know
that's cause I am not a hipster like Nick
 
@ziGi Please stop. I can feel my IQ dropping with every word.
3
 
then maybe you are jhonny bravo
 
yes
I am
isn't the resemblance great
 
Greetings from the internet!
 
1:55 PM
Do the monkey with me
Enough about you, let's talk about me
~ Quoting Johnny Bravo
 
hey is there a word for...
 
!!youtube unbelievable schmoyoho
 
rebecca.blackfriday
 
2:07 PM
@SimonSarris It's an ellipsis
 
haha
 
yes
 
Is there a word for a callback function that lets a programmer modify an object after its creation?
some canonical name for that?
I have trouble describing it.
like an "onElementFinished" or something
 
dependency injection
 
@SimonSarris JSON.parse calls it "reviver"
 
2:10 PM
@SimonSarris Wouldn't really be a callback though would it?
 
@Neil no technically
but I dont have the word for it
 
Example?
 
@SimonSarris call it mutator callback
 
Now lets put it on some wiki article and if anyone asks, that is the terminology to use
 
why is bower trying to checkout a repo via https even though there are no instead ofs in the config and the bower.json says git://
 
2:18 PM
@ziGi sup bro? Did you already pay for that VPS? If you didn't, wait cause I have problems with the CC.. see ya on hangouts if ya there
 
@DrogoNevets How is bower supposed to know if that is a valid address?
It's probably attempting anyway and getting a big ol' 404
 
@SufiDeveloper ya
 
user1596138
!!undo
 
user1596138
 
user1596138
Funky Fridays are a thing to my hippie co-worker
 
2:23 PM
Yo, does anyone have experience with DivX WebplayeR?
 
Is that a plugin?
 
Yea, they have a plugin client side and server side. I am talking about server side, pushing a video from server
 
user2620028
Hey guys. Is Node.js only meant for server side, or does it also have client side functionality that is worthwhile?
 
@RobertSteinerIII I'm familiar with it, though I've never tried to use the sdk
 
Well, this solution doesn't really do with DivX.. but here is the chunk of code I am working with.
<embed type="video/divx" src="~/private/blahblah/lol.mkv" custommode="none" width="1920" height="1100" autoPlay="false" pluginspage="http://go.divx.com/plugin/download/">
</embed>
Param src returns null because that location is protected on the server and using typical html will not work. How would I get a working link?
 
2:28 PM
yaaaayyyy!! pushed to github correctly finalyy
!!afk fighting in the bus, trying to reach home .. MI:7
 
!!s/finalyy/finally/
 
@SufiDeveloper yaaaayyyy!! pushed to github correctly finally (source)
 
@AaronSiciliano Depends on what you mean by client side
 
is it possible to have a condition in an ng-model?
 
user2620028
@RalphWiggum I haven't looked at what exactly it does as of now, as far as i have investigated it is acting on the server as a webserver. What else is capable with it?
 
2:30 PM
@hanleyhansen I don't think so
 
i have an array of objects and i want the ng-model to be the object where identifier = true or something
 
@AaronSiciliano It runs by itself without a web browser or anything. It doesn't necessarily need to be a web server
 
@Neil dont know, but it works on everyones machine except my colleagues
 
user2620028
it runs by itself without a web browser? meaning that only runs one instance of it and all users will "tune in" to the current instance whenever they access it with the web browser?
 
2:32 PM
(as in, with this particular bower.json file it is working)
 
@hanleyhansen Hmmm. Maybe you can ng-repeat it and filter it? Not sure.
 
@DrogoNevets Firewall, anti-virus :P
First place I'd check anyway
 
!!google ng-repeat
 
@SufiDeveloper It means I aint got time to learn your $5 words.
 
@Neil would mean it didnt work for any of us, we are all behind the same firewall and anti virus
 
@SufiDeveloper you need a hand with ng-repeat?
 
Check out this weirdness with IE and innerHTML: stackoverflow.com/questions/25167593/… (fiddle). Setting document.body.innerHTML somehow manages to remove the div's children (in IE).
 
@DrogoNevets I wouldn't bet my life on it. We use the same anti-virus at work, but only mine gives me trouble with ftp so I have to disable it when I need to use it
 
@DrogoNevets No thanks, I was looking what it was all about :)
 
@Neil ok, we tried under my logon (on same machine) and it worked, so dont think its software on the machine (we are trying to bower to an internal repo)
 
2:36 PM
@DrogoNevets So if your friend logs in it doesn't work, and if you login it works?
That is definitely a software problem
 
@Neil yes we agree, but which bit of software?
lol
 
@RalphWiggum thanks
 
@DrogoNevets Yeah, that's the tricky part :P
Weird though
 
Have I hated on Windows lately?
Let's do another one: I have a subfolder named Wallpapers. I want my desktop background to change to a different picture in said subfolder. That's very easy when you choose the Pictures library option. But on a custom folder? Noooooo
 
@Zirak just today you sent me that thing.
 
2:48 PM
Solution? "It's not a bug, it's a feature"
@BenjaminGruenbaum Nah, that was me ranting on you
 
@Zirak I can definitely pick whatever folder I want for backgrouds on windows
 
It doesn't recurse to subfolders
 
@Zirak hate on IE instead and help me rationalize its weird-ass innerHTML behavior.
 
but you can juust pick the backgrounds folder
 
@Zirak wat?
 
2:49 PM
Layout:
Wallpapers/
    Some show/
    Some country/
    Another show/
 
ah
 
@Zirak Right click on desktop, click "personalize", click "background" and select whatever folder you want..
 
53 secs ago, by Zirak
It doesn't recurse to subfolders
 
@Neil helpful :P
 
2:50 PM
@Zirak you want to set your desktop background to traverse the nested subfolders of a folder?
 
@BenjaminGruenbaum You see how selecting Pictures also selects subfolders of ~/Pictures?
I want that, only on a custom directory
 
@Zirak Honestly? Having a slideshow background always seemed retarded to me.. in fact - if you're seeing the desktop background of your computer most of the time you're probably doing something wrong.
 
!!justsayhello
 
@SufiDeveloper Hello World!
 
I don't see it often. I have it covered most of the time.
On the other hand, I sometimes don't. And when I don't, I like the scenic views.
 
2:53 PM
@Zirak Yeah.
 
Because I can't take this flowery shit any more
 
It would've been "okay but meh" if you could conveniently de-select entire folders at a time. But noooo
 
I usually just have a grey background because I am a grey and boring person.
My lock screen is an image of me and my wife though.
 
Hi all
 
2:56 PM
Hey guys
 
    $table.find('.rooms').each(function (idx, itm) {
        $(itm).find(':input[name]').each(function (ix, im) {
            var name = $(im).attr('name');
            var oldName = name;
            name.replace(/\d+/, idx);
            console.log('OLD NAME %s, NEW NAME %s', oldName, name, idx);
            $(im).attr('name', name);
        });
    });
^ I have the above, why would the new name and old name always be the same even though the index changes?
I think I am missing something...
The names are like banana[12], etc
 
@qwertynl Really?
 
what exactly is im?
 
!!tell qwertynl mdn String.replace
 
2:57 PM
Yea.... I have been working overtime and i am blind atm @Zirak
 
Oh hi Neal, what's up?
 
I know how string replace works...
 
@qwertynl don't work overtime when you're blind ;-)
 
@BenjaminGruenbaum You don't care, but I "solved" it. Turns out that shift-dragging works for selection, so I selected from said subfolder to the bottom.
 
@BenjaminGruenbaum Working hard...
 
2:57 PM
It's surprisingly difficult to figure out how to create and embed a google doc into a website
 
@qwertynl Apparently you don't, read carefully
 
@qwertynl except when blind?
 
@Zirak I honestly don't :)
 
@Zirak Can you point out please?
 
Some of google's examples don't even work
 
2:58 PM
@qwertynl The return value...
And the first sentence
 
@qwertynl replace returns a value that you then ignore
 
haha Silly neal
Thanks @Zirak
I am too used to underscores stupid methods that overrite the original...
 
Ah yes @BenjaminGruenbaum, I skipped how I had to install wget in order to download said wallpapers.
BUT YOU DON'T CARE
So now I'm going to play some game on one fullscreen, and look at pretty pictures on the other
 
In Ruby, .delete modifies the original array. I'd like it to return a new array, and there be .delete! that modifies the original array.
 
3:01 PM
@JanDvorak #reject?
 
@Zirak downloading wget is really hard on windows.
 
@Cereal expects 0 arguments
 
it accepts a block
 
cinst install wget oh the horrors :D
 
{|x|x==y} is ugly
 
3:03 PM
then use do .. end
>.>
 
Sorry that I have been a ghost recently. I actually have a job that I do work at now lol
 
Or you could use the &: shortcuts, if applicable
 
do |x| x == y; end
 
@qwertynl what happened?
 
@JanDvorak | x | x ?
 
3:04 PM
@BenjaminGruenbaum I actually do work at my job. So I do not really have time to go on StackOverflow that much anymore.
 
@Cereal I'm coding against Ruby 1.8.x :-(
 
what in the world does that do ?
 
:-(
 
@qwertynl what happened?
 
@JanDvorak x.x
 
3:04 PM
@AbhishekHingnikar do |args| expr; end
 
woot :o ?
 
@BenjaminGruenbaum Ehhh you asked that already Pete.
 
@Cereal unless there's an unfold plugin for Sketchup 2014, that is
or unless I can fix the one for Sketchup 8
 
user1596138
API only took 2 days... Although I did have special assistance on it yesterday //@SterlingArcher ;)
 
@Cereal actually, #delete is what I want, I just wanted it to be called #delete!.
 
3:07 PM
@JanDvorak Yeah, it should be
 
As for the other one, I'd probably consider .dup.delete
 
Who told me that when you go to the Filippines you might get shot?
 
well, did you?
 
user2620028
@ziGi One of my friends told me that ziGi, and like i said before i had no idea whether that was true or not.
 
I asked my Filippino friend and she said
 
3:13 PM
That's a great start
 
that no one gets shot unless they are bad or something
 
Not antagonising at all
Instead of discussing Filippines and murder, let's all just play kongregate.com/games/oivoi/soccer-physics
 
user2620028
@ziGi who gets to determine who is bad O.o
 
Yea, that'll look good at work :)
 
well people with involved interests
so if you are a mafia boss
you might get shot
 
user2620028
3:14 PM
meh.... doesn't sound like a bad thing to me hahaha
 
@Zirak I feel like my supervisor would slap me if he caught me playing a game
> ad before game
lolnope
 
user2620028
@Cereal I feel like your supervisor should slap you if he caught you playing a game.
 
@Cereal we have tools for that
 
there is gonna be a movie about Steven Hawking
 
user1596138
3:15 PM
@ziGi Already has been
 
I hope there's a sex scene
 
I hope you're in it
 
ah ok
 
mnoring gnets
 
3:26 PM
Wow!
 
@Sparrow 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.
 
@rlemon I've spent the last like hour reading the comments on this commit for nongendered pronouns
I'm not in with the opensource community, but why does anyone care what gender the comments in the code are..
 
@Cereal Someone's been reading too much Tumblr, I think :)
 
top of the mornin
 
3:40 PM
@MarcosSavoury 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.
 
0
Q: Asynchronous Request Appending to String in Angular

LinellI am attempting to get the actual text from all of the stylesheets associated with the page. I can do this pretty well via something like sheets = document.styleSheets stylesheet_text = "<style type='text/css'>" _.each(sheets, (sheet) -> if $(sheet).attr("href") $http.get($(sheet).attr("hr...

 
Anybody a fan of John Carmack's QuakeCon keynotes?
^ Essentially this years version; speaking at a college, not quakecon, since he no longer works at id.
 
@BenjaminGruenbaum interesting PHP argument in the PHP room if you'd like to chip in.
I'm actually arguing against PHP in this one :P
 
I love typos lol
> The car will be converted to ASCII int, and it will be compared in that way. Also after Java7 you can also write String in switch cases.
car == char
 
3:57 PM
obv the matrix
 
Just found a mistake in the Java book my boss gave me to read
stackoverflow.com/questions/25207419/switch-statement-quotes i honestly thought it would be downvoted
 

« first day (1392 days earlier)      last day (3572 days later) »