« first day (54 days earlier)      last day (4890 days later) » 

12:53 AM
I thought something was wrong. @IvoWetzel is gone
 
1:14 AM
@Raynos I mentioned you in my blog post; thanks again.
 
 
3 hours later…
4:01 AM
JavaScript is the most popular language on GitHub http://j.mp/ax7B0F
 
 
5 hours later…
8:48 AM
Hiii
 
Hoooooo
 
8:59 AM
!kitten help
 
!kitten down? paypal.com
 
What did you break this time? paypal.com is indeed DOWN.
 
And no I did not DDoS paypal just to test the kitten :P
2
 
!kitten down? stackoverflow.com
 
What did you break this time? stackoverflow.com is indeed DOWN.
 
9:01 AM
:181628 Bad kitten!
 
huh? what's so hard about indexOf() !== -1
stupid HTML + Any string processing
 
@CodingKitten No it isn't ! Bad kitty !
 
hm, gonna check what that site returns the kitten
 
@IvoWetzel kittendownformeordownforeveryone.com
 
that down for me thing doesn't like the kitten
returns 404's
 
9:08 AM
@IvoWetzel You're using what to run the kitten?
 
@YiJiang Node.js
@YiJiang Around 900 lines of JavaScript
 
@IvoWetzel Wow... so it's sending HTTP requests to the chat server directly then?
 
@YiJiang Yep
ahhh it wants a host header field... now it's working
 
!kitten down? stackoverflow.com
 
Did you break your network? Because stackoverflow.com is UP.
 
9:14 AM
:D
 
D: I'm not in the love users.
 
@Chouchenos Need to add a command and save those to a file then ;)
although loveUsers is the whitelist for bans, so making it edible would somehow defeat the purpose
 
9:36 AM
@IvoWetzel !kitten munch Ivo :P
 
Just keep in mind - if any user-script attempts to be abusive, we can make things much harder... play nice.
 
Howdy @MarcGravell, don't see you in here much. Did you come in just to say that? :-p
 
@MarcGravell Don't worry it's mainly designed for being helpful and if someone abuses it, well it has a perm ban list itself, also in need I can always raise the reputation required to use it
 
@AndyE He hangs out in the Meta Tavern everyday - you're looking in the wrong places :P
 
9:41 AM
!kitten wisdom Marc Gravell
 
@YiJiang: Nope, I'm not looking in any places ;-)
 
@IvoWetzel (laughs) +1 Kitty!
 
thanks kitten; I quite like that answer - a happy reminder of 2 years back ;p
 
anyways I'm off to see these guys who are supposed to help me get an internship... be nice to the kitten :)
 
@IvoWetzel Good luck :)
 
9:43 AM
!kitten help
 
@TimStone Can you send me some in a package? :P
 
Hi, everybody!
 
@IvoWetzel Luck packets are on their way! :P
 
morning
doh the kitten got a face
!kitten wisdom Nick Craver
haha! :p
 
mornin :)
 
9:53 AM
I was like I felt you're joining right now, morning :p
 
20 hours ago, by Raynos
@Nyuszika7H link it :P +100 rep for linking to SE account
 
wee nothing like a serial downvoter first thing in the morning :)
 
@Raynos I tried it but I didn't got that bonus.
 
You summoned him thanks to the kitty !
:O
 
lol indeed
 
9:55 AM
@IvoWetzel made a terrible job waking up ppl and making them going online just with JS
 
stackoverflow.com/questions/4386358/… and stackoverflow.com/questions/4386399/applying-a-class-to-a-div ...I'm not missing something right, since those were 2 downvoted seconds apart?
 
pretty crowdy in here for the time
I like it :p
 
US & EU unite!
 
does the kitten support a bang mode? downvoting like any answer
j/k
 
throw(SyntaxError('your mind is too small (' + Number.MIN_VALUE + ' bits)'));
 
10:03 AM
@Nick - nobody is showing in your nemesis list, so it doesn't appear to be continuing excessively
 
@MarcGravell: what is a nemesis list? :o
 
@MarcGravell It happens every few days, just 2 unrelated answers at a time, so not sure who...I mean doesn't even affect rep really because of recoup later in the way...more bothered that anyone is voting on people rather than answers ya know?
 
@NickCraver What annoys me more is that a -1 in any SO answer generally mean that it's bad, which is generally not the case when this happens
 
Hi @Raynos
 
!kitten say hello to @Raynos
 
10:06 AM
...
 
!kitten help
500 rep @Nyuszika7H
!kitten say hello @Raynos
 
@jAndy if there is excessive cross-voting between 2 accounts, we have ways...
 
hello @Raynos
 
@jAndy I know :/
 
@YiJiang yup..also agreed, if the content's actually wrong I'll correct or remove it myself, SO should be a resource for great info later, downvoted correct info is against what SO's built for, IMO at least
 
10:10 AM
the pattern that annoys me; this answer:
-2
A: Will there be a functional language which does for the Java community what F# does for the .NET community?

Marc GravellActually, I might be wrong, but I don't expect F# to be as mainstream as the other .NET languages; useful in a few circles (academic, compilers, a few other scenarios) - however, don't forget that C# offers FP usage - and it gets better each time: C# 1.2 has delegates; C# 2.0 has anonymous method...

got a load of downvotes in one go; I expect some F# / oCaml advocate (and I suspect I know which) blogged/tweated about this unreasonable answer
but I stand by my comment: No, the question was "...which does for the Java Community what F# does for the .NET Community." - my answer merely attempts to put a perspective on this - otherwise, the question is meaningless.
I don't care if they -20 it; it is a valid argument IMO (at the moment, +6-7)
 
absolutely was valid - I think people, once on the question, completely forget there's a title (which wasn't also in the question when you answered) - which is unfortunately, because a lot of questions completely change once you include the title context
 
@MarcGravell: is downvoting actually limited? Or can anybody with enough rep reduce my rep by exessivly downting my answers
 
so many downvotes quickly and so many per day I think are the two triggers
 
the system will spot that and undo them
 
not exposed for obvious reasons :)
computer desk suggestions anyone? large, for 3 monitors
 
10:24 AM
yes, a computer desk would definitely be recommended there. Otherwise your arms may get tired.
 
0
Q: Do something when a for() loop ends

Nyuszika7HI have a for() loop in JavaScript, and I want some code to run when it ends. This works, but I'm wondering if there are any simpler solution: for (var i = 1; i <= 100; i++) { console.log('Line ' + i); if (i === 100) { alert('Loop ended!'); } }

 
dammit :-)
 
whats the key shortcut to show recent javascript errors in ie8 ?
 
@Raynos: Alt+F4 I think.
 
10:30 AM
@AndyE that closes a tab -.-
 
@AndyE :P Naughty naughty
 
Hey, I'm just trying to be helpful
 
@Raynos Ctrl + w
 
@MarcGravell Who do I /blame for the malformed sidebar HTML on Meta?
 
@Chouchenos stop that
 
10:32 AM
Mwhahaha :D
 
> Thanks! I forgot that for() loops aren't async like setInterval(). – Nyuszika7H 2 mins ago -- really?
 
@AndyE Urh... erh... erm...
 
@AndyE really :/
 
@Nyuszika7H: Aside from events and timer callbacks provided by the DOM, everything in JS is synchronous and single-threaded.
 
flagged my question for moderators, because the answer was too easy
 
10:39 AM
lol @Nyuszika7H don't feel too bad. Your question could be worse, for example:
0
Q: cant use javascript code with jquery

boootaI have used the script at: http://www.javascript-coder.com/ i use the following jquery code in which i am calling its methods. $("form[name='registeruser'] input[name='register']").live('click',function(){ //validateregister($("form[name='registeruser']")); var frmvalidator = ...

Reading the code there almost made me squirt tea out my nose.
 
@AndyE but mods can delete questions even when they have "too many upvoted answers", right?
 
@Nyuszika7H yes, if they should :)
 
      // The <center> cannot hold it is too late.
                data.tid = /name="tid" value="(.*?)"/.exec(chunk)[1];
                data.token = /name="token" value="(.*?)"/.exec(chunk)[1];
                data._ = /name="_" value="(.*?)"/.exec(chunk)[1].substring(1);
                that.getOpenIDLogin(data);
lol @IvoWetzel
 
@Nyuszika7H just make an ascynch for loop
 
@jAndy you've seen the source for that right? :)
4009
A: RegEx match open tags except XHTML self-contained tags

bobinceYou can't parse [X]HTML with regex. Because HTML can't be parsed by regex. Regex is not a tool that can be used to correctly parse HTML. As I have answered in HTML-and-regex questions here so many times before, the use of regex will not allow you to consume HTML. Regular expressions are a tool th...

 
10:41 AM
function asyncfor(f,  count) {
     for (var i = 0;i < count; i++) {
          setTimeout(f(i), 0);
     }

}
 
@NickCraver: indeed :p
 
setInterval(function() {
    $('body').append('x');
}, -1);
 
s/'body'/document.body
 
@jAndy ???
 
@Nyuszika7H He's telling you to use $(document.body) instead of $('body')
 
10:43 AM
$('body') sucks $(document.body) is the light
 
@jAndy Why is it better?
 
document.body has a better access performance
 
First try:
document.body: 1ms
body: 1ms
 
@Nyuszika7H Too few iterations
 
@jAndy barely :)
 
10:48 AM
@NickCraver: just did a quick jsperf, 'body' has even a slightly better result than document.body
doh
I may have to revise my comment about that
 
yeah, $("body") specifically has a shortcut, no selector is run ;)
 
ah! that's an explanation
 
1000 iterations: (write out x)
body: 55426ms
document.body: 55434ms
 
@Nyuszika7H: see Nick's github link, jquery normalizes that itself
 
nice
 
10:51 AM
I'm not saying one is better, just that "body" is shorter, document.body should be more performant in older browsers, there's a slight difference in the result
$(document.body).context == <body>, $("body").context == document
so things attached to a document.body handler like .delegate() would bubble slightly less - for example I use $(document.body).delegate(...) over .live() if I don't know the context
hopefully you have a known parent, but that's not always the case
 
back...
 
@NickCraver: would you stick that into the microoptimization corner?
 
This does not seem to work. Why?
$('img').click(function() {
    $(this).eq(+1).fadeToggle();
});
 
for most cases yeah - I mean the real benefits of delegate positioning (correctly that is) are the reduced overhead from unwanted events in your checks, .live() suffers the worst since every click gets checked against the selector (as many as you have), whereas .delegate() only checks against it's children that bubble...and the bubble happens either way
 
@Nyuszika7H What is +1 supposed to do?
 
10:56 AM
but in this case, you're not exactly clicking the <head>, so the subset of elements in <body> is the same as the overall clickable set anyway
the only way it'd matter is .delegate() on load events for header members as well, hypothetically...not that you ever see that :)
 
@IvoWetzel For example, if I click on $(this).eq(0), toggle $(this).eq(1) and so on.
Hooray, I got it! $(this).next().fadeToggle()
 
@Nyuszika7H Then what did you expect +1 to do? Magically alternating between 0 and 1?
 
@IvoWetzel I've found something like that in jQuery's code, so I thought it may work. :D
Huh? It selects the next image fine when I use fadeToggle() but it always selects the last one when I use toggle()!
 
kitten needs to be able to post the source of jQuery methods... but that site I use doesn't have an API :/
 
@jAndy I would say though that .delegate() over .live() is a much bigger optimization than many realize, they too quickly shuffle it away as a micro optimization, for example from yesterday:
1
Q: Will this use of jQuery slow page display times?

JenI have about 300+ action links on a page, to which I’m connecting handlers after the document.onready event fires (using jQuery): $('a.cmd').click (function() { ... do stuff ... }); Is it more efficient to incorporate the onclick handlers into the HTML rather than have jQuery attach them after...

 
11:02 AM
@IvoWetzel Why don't you just use jQuery API?
 
@Nyuszika7H it doesn't have the source :)
 
jquery validation plugin. Form.validate().element("selector") checks whether "selector" is valid. But it also runs the validate function. Doesnt that cause the form to be submitted?
 
negative, .validate() sets up validation, not executes it....and the plugin actually has no method for submitting the form
.valid() executes validation at any time after setup, either on the element or entire form, but doesn't submit still
 
How do I run .element without running .validate more then once. I presume x.validate(options);x.validate(); overwrites the options
 
11:21 AM
> jquery is usually low level js framework
haha
good old google maps
route: japan china .... 43. Jet ski across the Pacific Ocean
 
11:44 AM
@IvoWetzel haha I thought you were kidding
 
@IvoWetzel Sounds about right, considering they used to recommend you to swim across the Atlantic to get from the US to Britain
 
@IvoWetzel haha, yeah I saw that a couple of weeks ago
 
0
Q: Javascript ++ vs +=1

Raynosvar a = "ab"; var b = "ab"; a+=1; // "ab1" b++; // "NaN" (Tested on chrome's V8) Can someone explain why the results are different based on the internal atomic actions of the ++ arithmetic operator and the += assignment operator with argument 1

 
Dear Barclays Online Banking, please execute/fire your JavaScript coder post-haste for crimes against accessibility. Thanks.
 
@AndyE what have they done
 
12:03 PM
@Raynos ++ has an implicit cast to Number, see my answer :P
I even downloaded that spec PDF.... yes a friggin' pdf file
 
I see. Thats the missing link. It casts to number.
 
@IvoWetzel I made your answer betterer ;)
 
@Raynos they have two separate fields on the login page for one 8 digit number split into two 4 digit numbers. When the first box reaches 4 digits, it moves focus to the next box. When you realize you made a mistake and try and tab back to the previous box, it refocuses the second box. If you click inside and press one of the arrow keys, it refocuses the second box.
 
!kitten say @TimStone thank you for making Ivo's answer betterer!
 
(also +1)
 
12:06 PM
@TimStone thank you for making Ivo's answer betterer!
 
@TimStone And I made it bettererer still!
 
@IvoWetzel I was about to post the same answer when yours popped up (so I just up voted it)
 
Actually 3 and 4 were there for a reason
 
@YiJiang Yeah, I thought about doing that after the fact and then decided I was lazy
@IvoWetzel Oh, crap. Sorry about that, stupid WMD switched the numbers because it thought it was a list. :/
 
Copying from pdf sucks -.-
 
12:08 PM
Didn't mean to actually vandalize your answer, gah.
 
@TimStone Don't worry, just don't make a wiki out of it :P
 
!kitten ninja
 
Coding Ninjas? Aren't Ninjas supposed to be agile,concise, know what they do and be able to survive without any help? And what's a coder? Yeah, most of them can't even survive without static typing.
 
Kitten is an arrogant mood
It should support different moods! like !kitten mood lol
(Should be obvious what that does)
 
@IvoWetzel I demand you add a !kitten rchern command :P
 
12:11 PM
@YiJiang That does what?
 
@IvoWetzel Pop one the rchernisms commonly seen in the Meta Tavern, such as backward smilies, oy., \o/, and several other
 
Bah Im giving you guys an easy rep question :P
 
@YiJiang Send me a list and I'll add it
!kitten think rchern \o/
 
rchern? Sounds interesting, gonna write that down, yes on real paper, and no, papers's not edible.
 
(And yes, I totally coined the word 'rchernism'. @rchern won't be pleased)
 
12:15 PM
can we get rid of that yellow mail icon?
It's broken all the time
 
@IvoWetzel How do you mean?
 
@CodingKitten Alright, let me try. Comma separated values: oy., oy, oy!, double oy, triple oy, |:, \o/, (:, ):, <_<, q:, (;, >_<, ^_^, o:
@TimStone The old global inbox notification icon double notification thingadongdong, of course
 
Yeah, but it only notifies you of favourite changes now, pretty much.
 
@TimStone Well it's incredibly delayed, I get a comment and it shows it like 3 hours later
 
It shouldn't notify you about comments anymore, since the StackExchange™ MultiCollider SuperDropdown™ does.
 
12:20 PM
it just did
 
Hm, and there wasn't a change to your favourites?
 
nope
 
Ah...in that case I'm not sure.
 
notified me about the first comment here
2
Q: Performing .replace() on Buffer (Node.js) contents?

SpotThis is quite a newb question, but I have not found any reliable answers through Google/SO/Etc. If you have content in a Buffer, what is the best pattern for running a .replace() on that content? Do you simply pull out the content with .toString(), run replace(), then put it back in the Buffer?...

and that comment was made 10 hours ago
 
@IvoWetzel Right, time to bring out the WOB. What will it be this time, eh?
 
12:23 PM
Hmm...
 
@NickCraver What have you been up to this time? :P
 
!kitten nick craver
 
Nick? Yeah I remember that guy, he breaks everything, seriously if you're getting paid for fixing bugs, consider hiring him.
 
!kitten rchern
dang forgot a this :P
!kitten rchern
 
12:25 PM
@CodingKitten \o/
 
lol 6 upvotes for copying from the spec
So at its best
@YiJiang I suspect that SpinAgain button doesn't even have an onclick event :P
 
kitten needs wob too
then just grab a random user
function randomUser() {
    return 'Nick Craver';
}
2
 
@IvoWetzel Less graphically exciting, but it'll work :P
 
gnah I just copy the ones from WOB
and hey I can link the profile :P
 
12:32 PM
I'm happy I'm not in the wheel, noone can blame me \o/
 
just added you :P
 
first time in SO chat. nice to see you all
 
btw: if you want kitten to be available in other rooms too, just tell me
 
Hi, everybody!
 
anybody please suggest a neat article available online about javascript prototype ?
 
12:45 PM
the functionality or the library?
 
functionality
 
Is there any real difference between e.g. $('selector').append('text') vs. $('text').appendTo('selector')? If not, then what's the point for having two ways to do the same thing?
 
yeah, $('text') isn't a valid selector
it'll try to select the elements, using it as a selector, not create a text node
 
you may get answer from jquery chat chat.stackoverflow.com/rooms/107/jquery
**chat room
 
@rajakvk jQuery is a JavaScript library, so I can ask my jQuery question here.
 
12:49 PM
@Nyuszika7H yes, I'm aware of the API, thanks ;)
 
I've found an answer in meantime. The .append() and .appendTo() methods perform the same task. The major difference is in the syntax-specifically, in the placement of the content and target. With .append(), the selector expression preceding the method is the container into which the content is inserted. With .appendTo(), on the other hand, the content precedes the method, either as a selector expression or as markup created on the fly, and it is inserted into the target container.
 
@Nyuszika7H try reading the API for functions before asking, you'll save a lot more time
 
@Nyuszika7H you want $(document.createTextNode("test").appendTo("Selector");
 
asking, going to look yourself, then coming back to see if you got an answer is not the correct order
 
12:50 PM
@Nyuszika7H its all about chaining $(objtoadd).chain.chain.chain.appendTo.chain.chain or
$(container).chain.chain.chain.append.chain.chain which ever I use is based on what object im chaining operations on
 
@Nyuszika7H cool. that was a suggestion. sorry it scares you.
 
Interesting. (Content of #hello: Hello) $('world').appendTo('#hello'); does not work (jQLint: No elements found with the selector: "world"), but $('<span>world</span>').appendTo('#hello') does.
 
@Nyuszika7H that's exactly what I just said :)
4 mins ago, by Nick Craver
it'll try to select the elements, using it as a selector, not create a text node
 
Before you post a Question: RTFM, FAQ you, Google, try harder, Google more, throw something at the wall, search SO for similar questions, learn how to write. And then ask.
 
@NickCraver oh yes I understand it now :)
 
12:53 PM
kitten nao knows wob
 
agreed, chat should not be a constant thoughtless question alternative to SO...as some seem to think it is. Things like this are easily answered by yourself (as you've demonstrated).
 
Chat should primarily be used for /blame -ing, of course.
 
!kitten wob
 
It's Michael Mrozeks fault!
Michael Mrozek, Indiana, US
15.6k 2 15 44
 
There you go :)
 
12:54 PM
agreed, /blame <insert language you're working with here>
 
Unknown command, try again, or use // to escape commands.
 
@NickCraver When working with Java, is the /blame implicit?
 
It may not completely belong here, but I can't get Dummy Image to display a plus (+) sign because it replaces them with spaces. My question is, is there any way to make it to display that sign?
 
how put link in the word while answering
 
@Nyuszika7H percent-encoding, + is %2B (or %Not2B).
 
12:58 PM
@AndyE it doesn't seem to work though: dummyimage.com
 
@NickCraver hang on, let me post the spec of the + operator ;)
 
not sure they're handling encoding right, seem to be ignoring it
@IvoWetzel + != +=, they are different...
 
yep
 
@NickCraver: lol they change \` to /` too
 
If your answer is accepted though, make sure it covers both halves of the question, since that's a resource others will find later
 
1:00 PM
However, Ipsum Image seems to do the magic if I use percent-encoding. ;)
 
@AndyE yup, don't think they thought this through :)
 
@NickCraver: it's as if they wrote the query string parser themselves, and they decode first and replace the + after
 
encodeURIComponent() ftw
 
lol
 
rchernisms? |:
 
1:09 PM
the backwards smiley can't help you now
 
@NickCraver Where are + and += different?
 
+ doesn't change the left-hand operand?
 
don't think that low >< I might not get it
 
But the expression logic of + still applies
 
1:14 PM
it has a different section of the spec was my point with the original comment, it's specced both completely and separately from +
 
> Let r be the result of applying operator @ to lval and rval.
 
neither relies on the other, as far as spec references go
 
where @ is +
 
@AndyE Heh.
 
If something is broken in IE8 but works in FF3.6 can I file a bug report to the IE8 dev team? Alternatively whats a suitable place to complain that the IE8 fault fixing guys will pick up
 
1:23 PM
@Raynos Can I win the lottery?
 
Does microsoft even have an IE8 fault fixing team?
 
@Raynos download the IE 9 beta and see if it's been fixed. If not, there's a feedback option in the menu that will submit the issue directly to connect for other users to vote.
 
hello
!kitten help
 
Wanna help me get the first Node.js badge? :P
 
@Ivo: I could put a bounty on a question you answered? :-p
 
1:30 PM
0
A: request.on("response",[…]) never gets fired

Ivo WetzelYou never send the request. You need to use request.end() NOTE: the request is not complete. This method only sends the header of the request. One needs to call request.end() to finalize the request and retrieve the response. (This sounds convoluted but it provides a chance for the user to s...

!kitten say Thank you guis, I luv you al!
 
Thank you guis, I luv you al!
 
@AndyE but I want it fixed in IE8. Tomorrow :P Where are the IE8 nightlies!
 
@Raynos IE8 Nightlies? Sound like a different name for nightmares
"IE Nightlies, a new way of breaking the web, every night."
wow, that guy was fast with accepting, normally it takes them 3 days or so on the Node.js tag
so that's 16 votes left
 
@Raynos if only! :-)
 
IvoWetzel.foreach("nodejsquestion", function() { vote++; });
 
1:38 PM
that's wrong
you're not upvoting the questions :P
IvoWetzel.foreach("nodejsquestion", function(question) { question.voteUp().accept(); }); //accept fails gracefully :P
 
@IvoWetzel you need upvoted questions & accepted answers?
 
Dunno, do accepts count as an up? When calculating the score
 
No.
But you need 20 of them to qualify.
 
Why does this show up in JavaScript console all time I use jsFiddle? Unsafe JavaScript attempt to access frame with URL jsfiddle.net from frame with URL fiddle.jshell.net/_display/light. Domains, protocols and ports must match.
 
@TimStone I answered 49, shouldn't be a problem :P
 
1:41 PM
I think you're good, then ;)
 
answer more questions! don't waste time on other things, like sleep
3
 
Yeah, I've opted out of sleeping! I apparently forgot to answer questions during that time period though.
 
@IvoWetzel you have 29 accepted
 
@AndyE :)
I mean... I refresh that tag every 5 seconds :P
@Raynos Are you running out of votes soon? :P
 
1:44 PM
@IvoWetzel is it possible to have a require function that behaves like the one in node.js in the browser? (Ignoring cross browser compat)
 
@Raynos Yes... but it's hacky
use XMLHttpRequest
get the body, wrap it in the wrapper, BE EVAL and call the resulting function
WTF?
 
@IvoWetzel maybe 2moro youll get gold
 
0
Q: javascript slow in IE but fast in Firefox

George2Hello everyone, It is very slow to access this page using IE, but much faster using Firefox. Especially when I increase the number of nodes of people. Any ideas what is wrong? http://thejit.org/static/v20/Jit/Examples/RGraph/example1.html BTW: IE is even slow when accessing from local file sys...

HAHA
Can't stop laughing xD
This just in: IE is slow!
someone needs to invent self cleaning glasses -.-
 
@IvoWetzel get eye surgery
 
1:52 PM
lol
 
@Raynos 1. I don't have the money, 2. I can no longer stand my face without the glasses on
 

« first day (54 days earlier)      last day (4890 days later) »