« first day (12 days earlier)      last day (4935 days later) » 

12:00 AM
heh, cool
 
I'll take that as a yes. ;)
 
was just checking the transcript (;
 
I grabbed screenshots, I'll bug balpha or Marc later, and then they can blame the userscript ;)
 
LOL
 
The message is definitely deleted, but that view isn't updated for whatever reason, and I'm pretty sure it should be.
 
12:02 AM
i could have sworn that was fixed
 
12:12 AM
windows partition management suuuuucks :)
 
Trying out that new SSD? :P
 
yup, working well, but the windows 7 install is really bad at managing multiple HDs
it marked 5 other drives as bootable but not the SSD I was installing to, had to fire up a linux install real quick and change the drive flags around, then no issues
"@Nick Craver - it is perfectly ok to use forr..in to iterate over array "
arrrrgh no it's not ok, don't use for in for an array damnit!
 
Heh, go figure. I've been meaning to improve the drive setup in this desktop. I've got a SSD in my laptop currently, and I like it. The investment at the time was a little steep for a hard disk though, heh.
 
completely with you, same situation here, work laptop's had an SSD
when my 10k rpm OS drive died though the question becomes how much more than a swap replacement is an SSD, then it's not that bad
 
Good point. I think I just have a WD Black Caviar in here right now, which is a little disproportionate to the rest of the hardware, heh.
 
12:20 AM
"@Nick counting is just not the right way to iterate through arrays or list or any collection. IMHO messing up with Array is not a good idea as well. "
....really? I don't even know how to respond to that, comments are from: stackoverflow.com/questions/4038250/…
0
Q: Repeat/Clone a <tr> element using jQuery's clone() function

Justin LucasI am trying to clone a template of a which will be populated with data and then inserted into a table. I'm currently able to use the same .clone() function with other elements on the same page but jQuery refuses to see and clone the template (I'm guessing because its not a block element). Her...

 
@NickCraver ...
 
@TimStone I'd say if you're not ready to make the SSD jump, check out the hybrid drives, excellent bang for your buck and a huge upgrade over physical
 
Heh
@NickCraver Hmm, yeah. Ultimately the price really isn't a huge issue with me, but I don't want to overindulge either, so I try to be cautious, hahah.
 
same here, buying a house at the moment, scared of filling out that much paperwork again
brb reboot mania time
 
congrats on a house!
 
12:25 AM
Hahah, I can imagine. Congratulations on the house!
 
@NickCraver, I'm doing a refi now, paperwork sucks ):
 
gracias :)
amen, toooo many forms
also: boot time is amaaaaazing, that was with 117 windows updates installing
 
Oh, you've already gone and come back?
shakes head at that commenter
 
i've been in my house since last july and already refinancing hehe. but i'm going from a 30 year 5.5% fixed to a 20 year 4.0% fixed and my payment isn't going up any. worth the forms!
 
nice
haven't done the refi thing yet, not sure it'll come up since we're getting it at 4.25 fixed iirc
 
12:30 AM
yeah, i feel like this is the bottom
or at least, i've been waiting to do a refi and didn't think i should wait any longer
 
agreed, rates are starting up over the next few months
another reboot
and we're back
 
Under 1 minute, 41 seconds, impressive.
 
maybe i'll get a ssd in a holiday sale
 
bios boot accounts for around 49sec of that, my system goes dead for 10 sec then reboots, no idea why the board behaves that way
 
My issue is that I don't need a new hdd. I've got 3x1TB. Third one kinda fell in my lap and I already had 2. I'm using a very small portion of it
makes it harder to justify the cost
 
12:43 AM
i have 2x2TB, 4x1TB and 1x 128gb here, need more space tho :)
 
I could do with some redundancy myself...and our project is very I/O intensive, so the speed boost would be nice for testing purposes. Damn SAS datasets and their inefficient design, argh.
 
multiple reads is what an SSD kills at, for example we plugged up 2 of the intel SSDs, current gen in a raid 0 for a database
and compared the same database to a 20 spindle raid 10 15k fibrechannel san
 
i've been thinking about mine for my home computer, not work hehe
 
@rchern Ends up being the same thing for me, so ;)
 
SSDs just absolutely slaughtered it on performance, IOPS comparison was just ridiculous
 
12:47 AM
yeah, not for me though @TimStone (;
 
Hmm, I'm going to have to seriously consider making a purchase or two then, hahah.
:P
 
our work laptops take 2 drives, we just ordered SSDs from the start, OCZ Vertex at the time, i opened each up and swapped the physical drive to secondary in each laptop before we even booted them
no regrets, fastest laptop i've used
 
i might buy more ram for my home computer before a ssd
 
how much are you running now?
 
6gb. normal load is around 4.75gb heh
 
12:51 AM
4 banks or 6 on the board?
<3 MSDN, helps being able to download all my stuff on a whim
 
ah nice 6 banks
wow that got a lot of responses quick
6
A: JQuery will not exist in future?

Nick CraverjQuery does a lot more than just the selector engine (Sizzle), and Sizzle uses querySelectorAll() if it's available since the version included with jQuery 1.4.3. No, it's not going anywhere, the selectors are only one piece of the puzzle.

 
I only see 2 so I assume they've been deleted
 
The question seems a bit silly anyway, if it does what you want it to do now, it's not going to jump up off your website and leave in the future, heh.
$.strike();
 
i probably should've just bought a 2nd kit of memory when i built the computer
oh well
$.cureCancer();
$.growMoneyOnTree();
 
1:01 AM
Heheh ;)
 
@rchern - I went from 8 to 12 here b/c VMs were bumping me against the ceiling, I think 12GB is enough for most developers
you'll be all set with that second kit imo
 
Yeah, I don't think I've even come close to maxing out my 12 GB. Maybe I'm just not working hard enough, though. ;)
 
hehe, well, let's see. right now i've got 47 chrome tabs open, 4 vs2010 instances, aptana, eclipse, tweetdeck, linqpad, skype, etc etc etc. heh.
 
OK, now I know I'm not working hard enough.
 
new servers at work we're grabbing for web/db are a pair of 2x6-core w/24gb, should be pretty speedy
@rchern - only 47? work harder!
oo skype gotta install that
 
1:06 AM
i just open things and tend not to close them heh
 
a few times during the day when asking SO questions I probably have 100-150 tabs open, when it's too much for aero-peek and I get a vertical list...it's closing time
 
i also rebooted the other day. i don't do that often.
the number of processes i have running is ridiculous though.
 
s/asking/answering/, heh :P
@rchern Damn updates, heh.
 
woops, yes that should definitely be answering, i think i answer a few more than i ask
 
Maybe one or two more, yes.
I went ahead and purchased a UPS for my desktop a few months ago to avoid having to shut off my desktop at all costs, heh.
 
1:09 AM
i've got 190 processes running |:
 
yes, absolutely need a good ups for your main machine, router/modem on there too
 
The power has conveniently decided not to go off since then..Still a good buy though.
Yeah, I should probably go ahead and plug the router into it as well. Thankfully FiOS has its own battery backup too.
 
i'd love a ups. had to deal with so many power outages this year. trouble is they've been building new construction at the end of my block, and they'd cut electricity on the block to do stuff. power would be off daily for 4-6 hours
 
oo fios
now i'm jealous
 
luckily they're done now
 
1:15 AM
@NickCraver Yeah, I'm in the vicinity of Comcast country, so I'm happy that I was able to get it here, heh. Though in terms of cost-efficiency, it's nothing like the connection I had in Hong Kong, but, what can you do? :(
 
1:28 AM
@TimStone - I may be rusty, but thought I remembered reading japan was like 160mb down can't remember what up, 40mb maybe? for around $60/mo US
all on cable, showing how behind the guys here are, time warner refuses to upgrade their networks unless directly competing in the area, that's for sure.
 
nice
 
I'm highly skeptical of these results though, given that the test servers were on a Comcast network. ;)
I did the FCC's test, and I think I got 25/1.5, (my connection is advertised as 25/5).
 
VS 2010 installed in 36 seconds
i think i'm in love
 
1:43 AM
Took it ten minutes to inexplicably flatten PHP's project structure for me the other day, a 36 second install must be nice, hahah.
 
@NickCraver, don't be offended if I say I hate you (;
 
the hardest part of this is remembering the crap i had insalled
oo slickrun
 
Hello Nick how are you?
 
hola
 
I got lot of answers from you thanks a lot for that. Nice to chat with you
:)
 
1:55 AM
0
Q: How to count to 3?

Markfor (var i = 1; i <= 3; ++i) { setTimeout(function() { alert(i); }, i * 1000); } This alerts "4" 3 times. I know why, but I won't spoil it here... although I forgot how to fix it. What's a concise way of solving this problem?

hehehe
 
Isn't that a duplicate of this scenario?
5
Q: Javascript closure "stores" value at the wrong time

badpI'm trying to have a counter increase gradually. The following works: function _award(points){ var step = 1; while(points){ var diff = Math.ceil(points / 10); setTimeout( "_change_score_by("+diff+");" /* sigh */, step * 25); points -= diff; step++; } } ...

 
yup
 
@rchern For the four upvotes, of course..
 
yada
if a full answer had been given that'd be somewhat decent
but giving part of an answer is ):
 
why does your smiley have 2 goatees, and where are the eyes?
 
2:07 AM
Hahahahahah
 
rofl
 
Just when I thought we were out of original rchern smiley jokes
 
unibrow ftw?
 
i can't help what your "smiley" looks like :)
 
just because you do your smileys backwards doesn't mean you can make fun of mine ):
q:
 
2:11 AM
oo gangsta smiley with a side-ways cap, nice
reinstalling skype is fun, i get messages as people replicate history with my new install...for like 2 days
 
Hmm, did you remember to casually mention the userscript on that Meta question @rchern? ;)
 
hmm no. left work. did you?
 
Nah, I was too busy getting distracted as usual, heh.
 
Hehehe, well get to it! (;
 
2:27 AM
After I add more stuff to the chat ;)
 
like what o:
 
It's a secret!
But also related to the reply..thing..
 
secret?!
 
3:04 AM
I am getting (NS_ERROR_DOCUMENT_NOT_CACHED) error when I try to access the Javascript code through firefox.I get this error in the contents tab of HTTPFOX. Can some body suggest
0
Q: (NS_ERROR_DOCUMENT_NOT_CACHED) through firefox same code works for safari

JudyI am getting (NS_ERROR_DOCUMENT_NOT_CACHED) error when I try to access the Javascript code through firefox.I get this error in the contents tab of HTTPFOX. The code is as follow: <html><head></head> <body> <button type="button" onClick="handleButtonClick();">undo...

 
 
1 hour later…
4:28 AM
Hello
 
I hate variable scope. ._.
 
I hate updatepanels
 
I hate the whole world!
And all its convoluted things!
 
I hate browser differences
 
Boom de yada, boom de yada; boom de yada, boom de yada!
But yeah, browser differences are a pain.
...Mostly just IE.
 
4:33 AM
If I want to mimic this chat using jquery and asp.net, do I have to store the message in a database and display it immediately for other users to see it or is there an alternative
 
Hm.
Well... you don't have to use a full-fledged db. You could just use a text file, I suppose.
 
but I guess I would have to temporarily store it, correct?
temporarily if I didn't want to keep the messages permanently
 
That's my intuition, yes. In order to serve it back to other members of the chat.
 
thats what I thought
 
If you only wanted one person/pc/browser it wouldn't be tough at all! :D
 
4:36 AM
lol
i did that already
but it gets boring chatting with myself
 
Also, sometimes people avoid looking at you if you try it in public.
 
is it just me or does asp.net seem really difficult to merge with asp.net as opposed to php and jquery
 
...?
 
by merge, I mean use
 
you mean asp.net + jQuery?
 
4:38 AM
duh yes
lol
 
I have no experience with asp.net.
 
asp.net + jQuery seems more difficult than php+ jQuery
most of the examples on line and the lessons (tutorials) are php + jQuery. Makes me want to switch sometimes?
 
Buuuuut I'm going to go out on a limb here and say 1) ick, M$, and 2) ick, basic-like syntax.
Php is pretty elegant, imo.
 
asp.net mvc works well with jquery. asp.net web forms is not so compatible (but still workable) with jquery.
 
Well, php5 anyway.
 
4:40 AM
are u familiar with css positioning
 
gotta go, ttyl
 
ttyl chess
Um, a bit.
Why?
 
i will show u in a second
u still there
 
 
1 hour later…
5:59 AM
Muhaha - Now the room is MINE!
 
 
1 hour later…
7:20 AM
@Pointy Hi, I just mean to show a button or a label. When I click it the 'Select file' dialog should appear and allow me to select a file. If I do so I want the input-file control to populate accordingly. How must I achieve this?
@Pointy ...but the input control shouldn't be visible to the user...
 
@deostroll Unfortunately, that's the reality you have to work with.
Security must come first
However, there are hacks that (sort of) get around this
Have a look at this article for a start: quirksmode.org/dom/inputfile.html
 
hi
 
 
2 hours later…
9:01 AM
morning
Does anyone (whom uses firefox) know why sometimes the firebug console just refuses to behave?
 
@Raynos Firebug has quite a few bugs. What is your problem exactly?
 
the console object stops existing/behaving
and only a firefox restart fixes it
 
Hmm... happens sometimes for me. Did you try restarting Firebug itself?
 
yes
doesnt fix it
I mean the console is broken right now :D
 
You mean when calling console functions right now gives you console not defined?
 
9:09 AM
Firebug cannot find firebugCommandLineAttached attribute on firebug console element, its too early for command line <div id="_firebugConsole" style="display: none;"> Window javascript
Restarted and it works just fine :) Lovely isnt it
 
9:21 AM
Morning all.
 
morning andy
 
9:44 AM
I've just began coding nodejs, I has errors in my code and don't know where it is it's here gist.github.com/651026
 
"I has errors"
Be more specific if you want help
 
. . . I mean it , this is : SyntaxError: Unexpected token ILLEGAL
at Object.parse (native)
at IncomingMessage.<anonymous> (/ntfs-data/dev/nodejs/Twitter.js:50:31)
at IncomingMessage.emit (events:41:20)
at HTTPParser.onMessageComplete (http:107:23)
at Client.onData [as ondata] (http:848:27)
at IOWatcher.callback (net:494:29)
at node.js:772:9

shell returned 1
 
var tweets = JSON.parse(body);
body is not valid JSON
 
why @Raynos, how can I fix it
 
body needs to be in JSON format. I'm assuming body = "" and an empty string is invalid json
You use some kind of debugger or console to tell me what its in body. not sure what kind of tools node.js has
response.addListener("end", function(){
console.log(body);
var tweets = JSON.parse(body);

add console.log(body) in there.
 
9:54 AM
@Raynos Is it valid that we use eval : To convert a JSON text into an object,
 
Then the other possibly issue is that JSON isn't defined
have you included json2.js ?
 
JSON is included native in nodejs
but it looks like the data return is all bad request, I reread twitter api
 
Again if you print the contents of body to the console you can see whats wrong
you can put it through jsonlint.org
 
@Raynos yay, thanks
@Raynos Is it right : the json file is http://twitter.com/statuses/public_timeline.json . My code var client = http.createClient(80,'www.twitter.com');
client.request('GET', 'statuses/public_timeline.json' , {'host});
miss 'host' : 'www.twitter.com'});
 
10:17 AM
put the jsonfile through jsonlint I cant test it myself. twitter blocked at work
 
10:28 AM
Floating points question raised for the 1 millionth time...
0
Q: Javascript rounding issue

Phil HaleI've got a weird maths/rounding problem in Javascript. The snippet below is a very basic example of the code I'm running. Obviously it's not this exact code, but I'm taking a decimal value from a text box, working out a percentage and taking this away from one. var ten = "10"; var eight = "8"; ...

 
Maybe so. but why does + round it & - doesnt?
Moving away from the whole floating points aren't decimal thing. why do + and - treat the number differently
I guess the base 2 representation of 1.8 is better then 0.2 and some rounding is done in the background due to increased accuracy
 
11:01 AM
@Raynos I have the json file but var body = ""; body+=data < data is data from json and body gets nothing. How can I fix this ?
 
courtesy of Jin Yang: enterprise-html.com
3
 
user69820
hello
 
user69820
11:17 AM
has anyone evaluated javascript/html serverside before returning the resultant DOM document to the client?
 
user69820
for example, take HTML with a table of data, apply the Google chart API to it and then return the chart?
 
you mean using something like jaxter or node.js?
 
user69820
not sure what they are
 
You mean like write a javascript parser serverside? Wow, good luck there. :)
 
@thegravytalker they are both Javascript server side engine (and I misspelled jaxer, by the way)
 
11:23 AM
0
Q: mouse over popup sometime creating problem

Rahul Mehta<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr"> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js" type="text/java...

 
user69820
@Neil for instance I was thinking more along the lines of invoking an IE instance in ASP.NET which loads the HTML and runs the script
 
user69820
does that make sense?
 
user69820
rather than write my own parser
 
that sounds unnecessary
Sounds like what you want to do is change to another .asp page which has a $(document).ready() section in it.
that way javascript executes according to how your asp designed the page
Though there are ways of doing this with AJAX as well, which is really nothing more than page loading without changing pages.
 
user69820
well the idea is to end up with a chart that is pure HTML/css with no javascript
 
user69820
11:30 AM
at the client
 
then you're going to have to construct everything serverside
 
user69820
yes. that's what I'm after
 
@RahulMehta Posted an answer. See if that helps.
 
Don't think you can use javascript serverside even if you wanted to
 
11:45 AM
@Neil Of course you can. If you're using Java, there is Rhino that can run JS on the server side. I would be really amazed if nothing of that kind exist in the .NET world.
 
@nXqd then print out data. or breakpoint on the data function. see why it never gets called
 
@Blair McMillan thanks for answer , but by doing this i cant click on detail button it is the problem
 
@RahulMehta I edited it slightly to bind to $("#user-1")
So you can click on it etc
You must have looked before my edit :)
 
user69820
I have found this
 
user69820
25
Q: Embedding JavaScript engine into .NET (C#)

aprilchildHi, just wondering if anyone has ever tried embedding and actually integrating any js engine into the .net environment. I could find and actually use (after a LOT of pain and effort, since it's pretty outdated and not quite finished) spidermonkey-dotnet project. Anyone with experience in this are...

 
user69820
11:55 AM
might try some of the answers
 
@BlairMcMillan now there is one more problem that is if i go near the avatar image then also it show the text div but it should show when i go over the avatar only
 
Never would have imagined. I've heard of Rhino but I never really read up on it.
 
@RahulMehta Do you have anywhere that I can view what you're working from? I think the lack of images are changing how it works. I understand what you're saying though
 
@BlairMcMillan this is the image link dtzhqpwfdzscm.cloudfront.net/4cc7ea9c6daee.jpg
 
0
A: mouse over popup sometime creating problem

Blair McMillanTry moving your stuff into the hover event. Something like http://jsfiddle.net/8Mqk7/3/ $(document).ready(function() { var popup_pos = $('#card-208').offset(); var timer; $("#user-1").hover(function(e) { $("#user-avatar-image-1").mouseover(function(e) { timer = se...

 
12:15 PM
@BlairMcMillan now the problem is if i swipe the mouse over the avatar div then the text div remains shown it doesnt hide , u got my problem ?
 
@RahulMehta I see what you mean
 
@BlairMcMillan what solution you suggest
 
@RahulMehta Hold on
 
@BlairMcMillan okay
 
The $("#user-avatar-image-1").unbind('mouseover'); line
You only need to add that line. You don't need to change all of the other lines to do with the timer.
 
12:29 PM
@BlairMcMillan okay thanks so much
 
@RahulMehta No problem. Don't forget to mark the answer as correct ;)
 
@BlairMcMillan yeah of course
 
@NickCraver I like enterprise-js.com: var reallyRandom = Math.pow(Math.random(), Math.random());
 
function createInformationWindow(message){
   alert(message);
}
My favourite so far!
 
@YiJiang well i found it useful because after some time maybe client asks for another kind of info or feedback method so you can then change the body function without replacing all alerts in the application
 
12:43 PM
var FALSE = new Boolean(false);
var TRUE = new Boolean(true);
var ONE = new Number(1);

function IF_STATEMENT(condition, callback) {
 if (condition == TRUE) {
   callback.call(this);
 }
}
 
@AndyE stop with these mockery websites :P I keep thinking there serious
 
lol
 
after a intensive use of IF_STATEMENT a great change would be var TRUE = new Boolean (false) :-P
 
enterprise-js.com/24 this one isnt that bad
 
@AndyE thats a good wrapper but i'm not sure why he didnt had used the ternary operator instead the native if operator
if anyone have not noticed i was joking
 
12:51 PM
@markcial: lol, I don't think anyone would have thought you weren't joking :-)
@Raynos yeah, some of them aren't necessarily "bad", they're just poking fun at stereotypical enterprise coding styles.
 
@AndyE nice to know, but i didn't pretended to start a flame war agains poor programming by my joke
and btw is not true a constant value instead the TRUE defined after?
i'm just wondering if you could change the value of the native constant true to have fun in the debugging sessions
 
@BlairMcMillan hi i want to change the hover to mouseover and mouseleave i have changed but its not working fine
    $("#user-1").bind('mouseover',{user:this},function()
	    {
		$("#user-avatar-image-1").mouseover(function(e) {
		    timer = setTimeout(function() {
			$('#user-1').addClass('user-bg');
			$('#user-avatar-text-1').css('visibility', 'visible');
		    }, 1000);
		});

	    });
	$("#user-1").bind('mouseleave',{user:this},function(){
		$("#user-avatar-image-1").unbind('mouseover');
		clearTimeout(timer);
		timer = null;
		$(this).removeClass('user-bg');
		$('#user-avatar-text-1').css('visibility', 'hidden');
 
@RahulMehta Use the fixed font button for code blocks, please. You can edit your messages from the menu on the side of each message
 
tried in 3 languages and only python allowed the assignment of the true constant
 
@markcial true and false in JavaScript aren't constants, they're boolean primitives. The grammar is defined by the spec and their behaviour can't be changed.
 
12:57 PM
@AndyE ah ok, then the primitives could not be changed in any language, i catch the point
but then in python are not primitives, right now i was trying to test the same in c
 
Thank god for that. This isnt lisp :) (car = cdr, cdr = car)
 
@RahulMehta Use mouseenter rather than mouseover
 
Im pretty sure you can change all keywords in lisp
 
SO slow for anyone else?
 
@NickCraver It does seem a little sluggish for me... I figured its my crappy work connection
 
1:05 PM
i'm getting crazy lag, like 10-20 second page loads, not sure if it's my end or not
every other site is instant
 
@NickCraver "Slow for everyone or just me?" "It's not just you! Stackoverflow.com seems to be slow here too!"
 
@NickCraver I get 5-6s page loads
 
sounds like it's not my rebuild then
 
@AndyE More importantly in this case, they're keywords and hence you cannot have an variable called either. o.true = false; is valid in ES5, but stuff is only starting to support that.
(But that's more spec pedantry than anything else)
 
@gsnedders - there are exceptions, like what Paul Irish calls "the asshole effect"
undefined = true;
3
 
1:10 PM
/me remembers writing tests for all these things…
 
@NickCraver I'm defiantly going to put undefined = true; in my code :) thank you
 
@Raynos @NickCraver See what you've done! You aren't suppose to talk about stuff like this here!
 
@YiJiang I already knew that undefined is dodgy. I just never thought of reversing everyones if (obj === undefined) checks :)
 
Oh ffs. There's actually code that relies upon being able to set undefined.
 
@gsnedders - yes, it's called Internet Explorer
 
1:19 PM
@NickCraver And not just for IE :)
 
@gsnedders what code does rely on it?
 
i have a question
why the hell if NaN is not a number when i ask for the type says
>>> typeof(NaN)
"number"
didnt parser said its not a number?!?!
 
You can always protect yourself from "undefined" rustlers by putting code inside an anonymous function and calling an unused argument "undefined". Or, set your own "undefined" var to void 0
 
@markcial Because, uh, implementation showing through, and that's how it is, and it would break code changing it.
 
but admit that its a little messy, NaN is acronym of not a number and the type is number? just ironic
 
1:23 PM
@markcial Yeah, it's certainly ironic
 
@markcial It's a number to represent those underepresented non-number numbers!
 
that remembered me the joke of a guy chatting with a girl
 
(a NaN in IEEE 754 double land is just one where the exponent is 255, and the mantissa is not zero)
 
The term "NaN" comes from the IEEE spec for floating point representation; it means that in the storage unit you expect to contain a number, there's a bit pattern that is officially not a number.
 
the girl said i<3
and he says it could not be, a imaginary number could not have value so it could not be lower than a integer
 
1:24 PM
JSSpec.DSL.Subject.prototype.should_be_undefined = function() {
        this.should_be(undefined);
};
What? This looks just like one of those Enterprise-JS snippets
 
Unit testing framework
Most have shorthands for common values you'll be testing for
 
is there any shorthan in js to know if there is websockets allowed?
or should i do var wsa = typeof(WebSocket) == 'function'?true:false;
 
@markcial if (window.WebSocket)?
 
uhm ok
thats nicer
 
You don't really even need to check whether it's a function.
 
1:28 PM
only if it exists right?
 
If it exists, and you control what JS there is, it will be a function.
It's not going to be anything else unless you set it.
 
that works for me thanks
 
/me wonders what's an interesting thing to do for the next hour and a bit…
 
@gsnedders Do a code review for the userscript I'm contributing to: github.com/rchern/StackExchangeScripts :)
 
That's means digging around in the impl of SO chat :)
 
1:37 PM
@gsnedders Nah, you can also review the code structure and efficiency of the code
@rchern would love some suggestions
 
@rchern @YiJiang So basically looking quickly I can't see anything particularly worth commenting on. There again, I guess most of you would be surprised at how much JS I actually write (i.e., almost none), so I'm probably not the best person to talk to about structuring JS, for example.
Like, I can tell you what's horrible structure for reducing browser bugs, but what makes good structure for maintainability I don't have so much idea.
 
@gsnedders Thanks, no matter what.
 
wow SO is really slow this morning
 
1:52 PM
47 mins ago, by Yi Jiang
@NickCraver "Slow for everyone or just me?" "It's not just you! Stackoverflow.com seems to be slow here too!"
 

« first day (12 days earlier)      last day (4935 days later) »