« first day (139 days earlier)      last day (4806 days later) » 

12:13 AM
Wow, first time I've actually had to use eval. :o
 
>.> what did you use it for?
 
eval("eval('eval(1 + 1)')") I hope
 
Instead of using
var testCase = [window,document,navigator];

I have to use
var testCase = ["window","document","navigator"];
and eval each value to return the object
 
o_O
why?
 
var testCase = [window,document,navigator]; alert(testCase[0]); doesn't seem to return anything
 
12:17 AM
...
 
Or perhaps it does
Wow, it didn't let me before. >_>
 
Hrmmm.... if you use eval twice does it, negating itself, become good?
 
I guess today isn't my JavaScript day. :/
 
Lies, every day is a javascript day
 
eval("eval('eval(\"window.eval(\\'eval(true) && eval(true)\\')\")')")
> true
 
12:30 AM
alert(window.eval("window").eval(this.window.eval)("this").window.window.window.eval("window").eval("eval('eval(\"window.eval(\\'eval(true) && eval(true)\\')\")')"));
=== True
 
:D
 
ahhh, why are you doing this?! ><
it hurts
 
you have to use \\\\\" to escape another level
(y)
got it!
 
xD
 
evil=eval; window.evil("window").evil(this.window.evil)("this").window.window.window.evil("window").evil("evil('evil(\"window.evil(\\'evil(true) && evil(true)\\')\")')")
> true
 
12:36 AM
eval === evil // true
 
:D
it's all cheap fun, nothing totally amazing.
!!!!!!!!!!!!!!!!!!!!!!!! IE6 was telling me the problem only it was 10 lines off.
 
its all fun and games until someone uses IE6
5
 
Well, night everyone. :)
 
night shaz
 
1:47 AM
Disney acquires gaming engine startup to build HTML5 games http://t.co/nhacdOb
 
2:38 AM
Hello guys
I guess you all sleep now
Good night
fellow developpers
 
er
hi, bye
 
Jay
3:06 AM
Hello guys.
 
 
2 hours later…
5:24 AM
RT @tile5js: A great service from @SenchaInc has opened the door for caching map tiles in #HTML5 localStorage - http://tinysrc.net/ #hap ...
 
5:42 AM
Wanted: Native JS Encryption @raccettura http://goo.gl/rmGDR challenge to browser vendors: put together comprehensive JS API for encryption
 
6:12 AM
RT @volkerkannacher: @html5 Zelda on @facebook ZING! - http://apps.facebook.com/jszelda/
 
 
5 hours later…
11:16 AM
Why can't people spell 'jQuery' correctly!!?
jQuery, small 'j', capital 'Q'. God...
2
 
is it really a that big problem?
 
@DontCare4Free No, but every time I see it I feel an uncontrollable urge to go in and edit the post
2
 
@YiJiang I agree about that
 
(Protip: Go in and do that edit if you have > 2000 reps, and get 2 reps for each of them if they get approved!)
 
12:14 PM
@YiJiang do you see that question? About themultiple selectors and the interval
 
@Raynos Which question?
@Raynos Yeah, what's wrong?
 
0
A: Why does my jQuery plugin fail on multiple selectors?

RaynosOne problem is this line frequency = frequency * 1000; For the first item the frequency is set to 1s. For the second item the frequency is set to 1000s. For the third ... You see the problem.

 
@Raynos Hmmm, yes, not sure how I didn't see that :P
 
Solved it :)
That's a nasty bug though. Damn closures!
 
Lu4
12:35 PM
Hello everybody does anybody know how to prevent Chrome from showing “waiting for MyHostName” message during ajax Post/Get operation?
 
12:52 PM
Hi! :)
 
1:25 PM
Good Morning
 
@ircmaxell morning
 
@YiJiang I completely agree!
 
0
A: Is there a reason not to use `new Object()` in JavasScript?

Ivo WetzelThere is no difference besides to the fact that the above is horrible code and would never make it into the code base if I had to look over the commits. 11.1.5 Object Initialiser Semantics The production ObjectLiteral: { } is evaluated as follows: 1. Return a new object created as if...

 
How's it going?
 
== is 82% slower than ===. jsperf.com/eqeq-vs-eqeqeq/3
 
1:32 PM
@IvoWetzel +1 for spec.
@Nyuszika7H of course it is
 
@Nyuszika7H Don't worry about micro-optimizations
 
@ircmaxell not too bad man, yourself?
 
Pretty good. Sitting here with my Xoom
 
@ircmaxell micro optimization?
 
@Nyuszika7H according to the Crock you shouldn't use ==
@ircmaxell whats she like?
See the new iPad 2?
 
1:33 PM
Quite nice!
Yeah, not terribly impressed with the iPad2...
 
Its got light peak :D
 
@Nyuszika7H Yes, since even though it's 82% slower, that's still only like 10^-6 seconds difference
 
Nice 8MP rear and 2MP front camera
 
use the appropriate tool, not the one that's trivially faster...
 
@ircmaxell does the xoom support 3D pictures?
 
1:35 PM
define 3d pictures?
 
@ircmaxell Anyway, === is better, unless I actually want type conversion coercion :)
 
I think i remember seeing something about 2 rear cameras allowing for shooting 3d images?
 
@Nyuszika7H I'm not arguing if it makes better semantic sense. But don't use it because it's faster, use it because it's appropriate
 
@ircmaxell yep
Strikethrough: ---text--- text
 
@MylesGray The Xoom doesn't have that
 
1:37 PM
@ircmaxell oh maybe it was a google demo model :)
What all have you gotten to do with it so far @ircmaxell ?
 
@Nyuszika7H If I want coercion, I do that explicitly
 
Mostly browse the internet and setup some apps
 
@IvoWetzel yep
 
And let my niece and nephew play some games on it
I gotta say, for most pages, the browser is rediculously fast
faster than chrome on my computer
 
@ircmaxell what is it like for multi-processing
does it support background tasks?
 
1:42 PM
Yup
Quite good. The only downside is you can only view the 5 most recently used apps. So if you have 6 open, you need to re-open the lru app (although when you do, the state will still be there)
 
@ircmaxell does it allow multitasking on more than just music processes?
the ipad only allows for music background tasks
 
Yes
You can have any task or service running in the background
 
Yay, 613 rep!
> You've earned the "Civic Duty" badge. See your profile
 
@MylesGray Android has a concept of Services. A service is a non-GUI application that runs in the background. It can always run, or it can run based on an intent. So, it would register for notification by any of the hundreds of intents. And when it's fired, the service will automatically startup and do its thing
So you could have an application that displays the city and state of a phone number when it calls you. You just follow the intent for new incoming call, and then do your lookup and show the results on the screen...
really quite powerful
 
1:48 PM
oh wow that's nice
I'm really considering selling my iPad 1 to get the iPad 2 thunderbolt has me captivated
imagine running 2 screens off it
 
iPad2 doesn't have thunderbolt
 
external HDD = win
it does
 
No, HDMI and USB only (from what I saw at least, they didn't mention it in the keynote)
 
@ircmaxell slashgear.com/…
Keynote kept it secret
Amazon messed up and listed it
 
No, that's wrong
it's a 1ghz processor, not a 1.2
so I wouldn't trust anything else
 
1:51 PM
@ircmaxell I saw that too and was a bit Iffy but I'll definatly keep an eye out
 
I'll bet $$$ that it won't
 
granted Thunderbolt would negate their whole 12-32 and 64GB ranges
 
Maybe the 3, but def not yet
 
as then you could just use external storage (with jailbreak at least)
it would be a very nice feature, but i guess the keynote would have pushed it really hard
 
In order to get thunderbolt, Apple will need to build a south bridge. Right now, they don't have that in the A5 (or the tablets in general)
But that's another story...
 
1:56 PM
@ircmaxell I understand that, the A5 is a system on a chip isn't it?
who develops it for them intel?
 
They do themselves
 
@ircmaxell they design their own logic?
Who do they use as their foundry? surely they can't have their own chip foundry?
They're bound to use someone like TSMC?
 
I'm not positive. I believe they do have their own chip fab line though (I think they bought one)...
 
@ircmaxell Jesus, Didn't think they could afford to do that, that is a massive undertaking, very impressive
 
They have like $10B in cash lying around...
 
2:07 PM
yo oy!
 
Actually, looks like Samsung is their foundry
 
But I know they do design the chips in house
 
They do however design their own logic
yeah they hired AMD's ex CTO
 
2:27 PM
FF4 bug That's a serious bug. What do you think causes FF4 to be a 100x slower?
 
omg @MylesGray im catching up!
 
@Raynos uh
local


test1([1, 2, 3], {});

	2,242,174 ±1.41%fastest
function param


test2([1, 2, 3], {});

	2,267,115 ±0.42%fastest
no difference here
 
2:44 PM
@IvoWetzel but that ff4beta test case had a difference of 100x
Are you using ff4beta12 ?
 
Mozilla's daily build
Though it doesn't seem to update daily
 
ah then the bugs already fixed :)
 
Minefield?
 
@Loktar so you are :D
 
2:52 PM
you slowed down i take it
because you were destroying me
 
@Loktar yeah haven't really answered anything in a week
Gonna go on an rampage soon :D
 
nice
anyone here doing the js1k?
 
Wait what.
You guys are catching me up
 
your still over 1k higher
 
@Loktar Want to do a joint effort? I have no original thoughts but I can optimise and bit whore javascript
 
2:54 PM
I wouldnt mind that.. im still trying to think of ideas myself
its oregon trail themed
 
The Oregon Trail is a computer game originally developed by Don Rawitsch, Bill Heinemann, and Paul Dillenberger in 1971 and produced by MECC in 1974. The original game was designed to teach school children about the realities of 19th century pioneer life on the Oregon Trail. The player assumes the role of a wagon leader guiding his party of settlers from Independence, Missouri, to Oregon's Willamette Valley over the Oregon Trail via a Conestoga wagon in 1848. The game has been released in many editions since the original release by various developers and publishers who have acquired rig...
Just clone the entire game
in 1024 bytes
 
ha
if only i could
only thing I keep thinking of is the shooting mini game in it
 
@Raynos yeah your way ahead man
 
but i know others will do that
 
Make a non-interactive trading simulator
We took all the fun sandbox trading from oregon trial. Then wrote an AI that can do it better then you. Watch it do everything you can't
 
2:57 PM
hmm that might be pretty cool
 
You just need a minimilastic GUI and dynamically created data.
Are we allowed to use eval?
 
Im not sure this time around
last time you couldnt
checks
 
We can use eval to do the AI and data creation
 
looks like you can this time
 
3:01 PM
no webgl,no audio
 
haha
 
looks like those are the main rules
woah wtf @IvoWetzel
thats one heck of a captcha
 
:D
thats an awesome one
 
probably to make sure only scientists sign up
 
3:03 PM
ill dl the game tonight and look at the trading, I haven't played it in so long.
I think i was 7 or 8 last time i played
 
I'm away all weekend
 
alright, Ill mess with some ideas and ship them your way on Monday
for the trading sim
 
I wonder whether We can use eval to remove the source code limitation
 
what do you mean?
looks like you can use eval this time
 
We can just encode our source code. Then use eval to decode and run it :)
 
3:08 PM
heh
 
Can probably encode about 20kb down to 1kb
 
yeah but the decoder/code being decoded has to be under 1k
people have done some strange stuff
to come in under 1k
 
You can also get your code to write more code.
 
oh my.. thats pricey
 
3:25 PM
@Loktar It's only £509 for the best mdel
model
iPad1 was £800
 
@Loktar Same pricing as the 1 (at least in the states)
 
Yeah UK was much more expensive :/
damn duty and VAT
Damn I was done an injustice here:
1
A: HTML5 - header, masthead, branding, slider

Myles GrayBasics: The Section tag should be used to divide up content of different sections of text or prose, not used to divide up different sections of the page. Thus, If you have sections of text with headings then the section tags would wrap these. If you are using the divs for layout then they don'...

 
yeah im just saying, in general thats pricey
i could get a laptop, or nice netbook for that
 
That's what I call design overkill :
0
A: How can I call some javascript functions but, waiting for the previous has finished?

RaynosThat's what the Buffer is for: var Buffer = function(handler) { var tasks = []; // empty resolved deferred object var deferred = $.when(); // handle the next object function handleNextTask() { // if the current deferred task has resolved and there are more tasks ...

 
+1, almost 4k @Raynos
 
3:36 PM
Nice!
 
The common.js specs is, uh, surprisingly short
Well, the modules section which I'm reading right now at least
 
@YiJiang we need more commonjs implementations in the browser. Still waiting for someone to write the require method for me. I have to write myself at some point
 
3:56 PM
Hi! :)
 
Who wants a challenge?
 
@Greg me
 
Sure
 
4:12 PM
Join Microsoft in getting rid of #IE6 at ie6countdown.com. #IE #ie6countdown #html5
But before we bury IE6 for good, let's have a moment of nostalgia: http://tinyurl.com/ie6rocks #ie6diediedie #html5 @ie
 
@Nyuszika7H @ircmaxell & anyone else who wants to play. I started a template for a fibonacci calculator, and I'm going to optimise the crap out of it. jsfiddle.net/g105b/h48yV
lets see who can get the quickest calculation of 100 iterations!
basically change anything in the Fibonacci function :)
 
hrm...
 
Raynos will be up for it :P
 
@Greg man its got an O(n!) What the hell
Stop getting me to fix your shit code
 
@Greg Erm… thanks for crashing my browser :/
 
4:23 PM
I don't want to you fix my code
I'm well aware of the O(n) but I want to see who can do the best optimisation, I'll post my attempt
 
I have one. But it crashed ff when I set it to 100...
 
my current attempt does 100 iterations in 4ms
 
it crashes even with 50
 
the original unoptimised jsfiddle I linked will die on anything over 40 really
its terrible code, and simply calculates it with, as Raynos said, O(n) speed
 
jQuery.extend({
    'version': (function() {
        var ver = jQuery.fn.jquery.split('.');
        return (ver.length === 2) ? +ver.join('.') : +(ver[0] + '.' + ver[1] + ver.slice(2).join(''));
    })()
});
 
4:27 PM
I love SO
0
A: Is there a reason not to use `new Object()` in JavasScript?

Ivo WetzelThere is no difference besides to the fact that the above is horrible code and would never make it into the code base if I had to look over the commits. 11.1.5 Object Initialiser Semantics The production ObjectLiteral: { } is evaluated as follows: 1. Return a new object created as if...

it has +3/-3...
 
if (jQuery.version < 1.44) {
    jQuery.fn.fadeToggle = function (speed, easing, callback) {
        return this.animate(props, speed, easing, callback);
    }
}
 
2ms ;)
 
11 ms for 100 in the box...
 
@Greg we need some kind of benchmarking that's not machine specific
 
Hmm, it doesn't work, though it's taken from jQuery's source.
 
4:28 PM
@Raynos hmm yeah, what do you suggest?
 
Here's my attempt jsfiddle.net/g105b/3mju6
 
@Greg it doesnt test the fib function. It tests the dom ;)
 
almost identical :)
 
Caching is cheating
 
4:29 PM
I guess once we've cached it, it is more about the DOM
 
4000: Time taken: -698 ms Huh?
 
5000 @ 534 ms
 
nice one
 
@ircmaxell caching is win ;)
 
4:30 PM
it's cheating, since the first run is still slow
 
10mil @ 200ms
 
    var fibonacci = function (n) {
        var current = 1,
            last = 0,
            tmp = 0;
        if(n == 0) return 0;
        for (var i = 1; i < n; i++) {
            tmp = current;
            current = current + last;
            last = tmp;
        }
        return current;
    }
^^ Non recursive, non-caching trivial implementation
 
@ircmaxell hehe nice one
 
@Raynos 10 million?
 
@ircmaxell shortcut == if (cur == Infinity) return Infinity
 
4:32 PM
@Nyuszika7H There's a difference in the performance of your machine compared to his, of course
 
Sure, but there is no infinitiy :-D
 
@ircmaxell I counted it once.
 
1000 in 195 ms
 
nice one
(without caching)
 
There is.
Once you get n > e+110 then JS just returns Infinity
@IvoWetzel yes people are stupid
 
4:37 PM
I expect to much knowledge on their site...
 
5000 in 445ms
var fibCache = [0,1];
var fibonacci = function (n) {
    if (!fibCache[n]) {
        if (fibCache[fibCache.length - 1] === Infinity) return Infinity;
        for (var i = fibCache.length; i <= n; i++) {
            fibCache[i] = fibCache[i-1] + fibCache[i-2];
            if (fibCache[i] === Infinity) {
                return Infinity;
            }
        }
    }
    return fibCache[n];
}
Caching, non-recursive
 
I like it
 
cool
 
5:29 PM
Hi! :)
Could someone help, please?
I'm trying to log in somewhere with WordPress, but it says:
> You do not own that identity.
Though I'm logged in to WP.
Oh, I guess I need to create a blog first.
 
5:53 PM
Happy Friday Everyone! Have you bought your jQuery Conference and Training tickets? We're filling up fast! http://bit.ly/gUMI95
 
6:07 PM
Anyone there?
 
Nope
 
@Nyuszika7H just set up your own domain and put WP on it
 
@MylesGray Why do that if .wordpress.com is free? It works now. :) Another question: how do I add plugins?
 
@Nyuszika7H Plugins and full control over the site
usage stats, your own domain
all that good stuff
 
So… I can't use plugins on .wordpress.com? NOOOO!
 
6:11 PM
Not giving that evil company any business
 
@Nyuszika7H nope
@ircmaxell evil company how?
 
:(
And I guess there's no other way to use Markdown in my posts than using a plugin like PHP Markdown… :/
 
Meet matt some time. You'll figure it out quickly :-D
 
@ircmaxell you met him at a joomla conference?
 
Well, a general conference, not specific to J (although I was there for J)
 
6:17 PM
in case someone missed it
 
@ircmaxell what is he just not a nice person?
 
I'll believe it when I see it
 
Wow, thanks to everyone for your feedback and support of #ie6countdown. More on why we're doing it here: http://bit.ly/i10XW6 #IE6 #IE
 
Or all like "I came up with WP... look at me"
 
@MylesGray More than that, but in short...
@MylesGray Very much. He gave a 1 hour keynote that was basically "Look why I am so awesome and everyone else sucks"
 
6:19 PM
@ircmaxell I hate people like that >.>
If you are successful you should just be greatful that you are
@ircmaxell is this you? ircmaxell.com
 
There were 2 of us from Joomla, 1 from Drupal (not Dries, but a core member) and a few others. We all became good friends, but Matt was really disrespectful to everyone
@MylesGray Yes, but I really need to redo that site
 
@ircmaxell that is because he sees you as "competitors" - granted Joomla and Drupal are more programmer based but I believe that is how he sees you
I was gonna say about your site, it looks a bit funky in Chrome:
 
It looks a bit funky in anothing but Netscape 4
 
@MylesGray I've been enjoying a bottom-of-the-line iPad 1 since they were available last year. No reason to upgrade yet. Maybe the iPad 3 will have ThunderBolt.
 
:-P (exaduration, but still)
 
6:22 PM
 
Yeah, if I can find a WP theme I like, I will replace that site with it...
 
@ircmaxell Your running WP :O
 
It's a lesser of evils at this point
I can't find any blog software that I actually like the code behind
 
Can anyone suggest a good javascript or jquery lib for drop down menus?
 
and don't feel like writing my onw
 
6:27 PM
@ircmaxell If you want I could do you a theme up
I have done WP work before
 
Hrm...
 
how is this better than irc? and does this link to real posts on stackoverflow?
 
Well it doesn't post links to fake questions :D
 
@MylesGray: I'll definitely consider that
Thanks
 
6:58 PM
v8's sourcecode is... well.. they don't care about consistent naming
 

« first day (139 days earlier)      last day (4806 days later) »