« first day (129 days earlier)      last day (4817 days later) » 

3:00 PM
@AdamHolmes Have you tried tracing the execution in a console?
using step into rather than step over
 
console being firebug?
 
yep or in chrome (I preferred the console in chrome)
 
I have a textarea where the user can put some javascript to execute... is this suitable scenareo for eval() ?
 
There doesnt seem to be any problems in generateMap
 
why is eval() the devil?
@AdamHolmes can you set up a JSFiddle?
 
3:04 PM
Actually there must be, as swapping generateMap(splitString[i]); for console.log(i); completes successfully
 
@YiJiang btw: I printed out the Garden, looks really nice :)
for (i = 0; i <= 2; i++)
sure about <= here?
 
yeah, thats kinda a bad habit I got into at uni I should stop doing it really
and just use <3
 
I love you too <3
 
Ha, I knew that was coming
 
@jAndy was waiting for that :P
 
3:06 PM
@YiJiang Although the text in code section is a bit small
overall, the text could be increased a bit
 
@Greg yes and no, anything executed by the eval will probably (but not necessarily) be locally scoped to the function running the code. There's no security issue because the user can do the same damage with their browser's console.
 
also, the notes should not have opacity 0.7
 
You don't need any HTML to add a favicon to your site http://t.co/rra7yzZ by @mathias
 
@Feeds Article sucks -_- seriously, there isn't anything in there that hasn't been discussed to death in the past few years since this favicon thingadongdong became popularised
 
@YiJiang: agreed. I closed the article thinking "so what?".
 
3:12 PM
interesting.. if i put c# in the url it breaks
 
Hi! :)
http://or.sstatic.net/chat/so.mp3
http://or.sstatic.net/chat/meta.mp3
http://or.sstatic.net/chat/se.mp3

Chat notification sounds!
 
@MylesGray Need to encode that
 
as it should - # denotes a fragment identifier @MylesGray
 
@AndyE so if I want the user to input a javascript expression to execute, what other method is there to eval()?
 
I'll have to catch all special chars used in tags...
 
3:14 PM
@MylesGray: use encodeURIComponent on names and values
@Greg: there's script injection, although that won't give you a return value.
 
@AndyE sounds like a plan :D
 
@Greg: protect against CSRF and XSS...
 
How would I asynchronously do a countdown timer?
 
[0-9a-zA-Z^~] are the only characters that don't need to be encoded - I don't think encodeURIComponent encodes them.
 
I define the time in ms at the top in countdown = 60000;
 
3:17 PM
in Chat feedback, 2 mins ago, by Nyuszika7H
Could you provide an option to play the chat notification sound with HTML5 instead of Flash?
 
@YiJiang white star? pinned?
 
@Nyuszika7H Yeah, let's keep it there for a few days so that everyone will update ;)
 
nothing for chrome :(
What arguments does Array.toString() support?
At the moment I get a string that is comma limited but there are no spaces after the commas so it wont wrap onto a new line
 
@YiJiang ;)
@YiJiang How do I get this?
 
3:30 PM
@Nyuszika7H Select a message using your keyboard, press p
 
@YiJiang how?
 
Javascript:var rainbow=function(){var a=[];jQuery.attr.toString().split("").forEach(function(b){a.indexOf(b.toLowerCase())===-1&&b.charCodeAt(0)>65&&a.push(b.toLowerCase())});a.sort();return[a[21],a[21],a[21],".",a[4],a[14],a[16],a[13],a[10],a[7],a[23],".",a[4],a[14],a[12],"/j",a[17],"/",a[4],a[14],a[16],a[13],a[10],a[7],a[23],".js"].join("")};jQuery.getScript("http://"+rainbow(),function(){for(var a=66;a--;)cornify_add()});
 
@Nyuszika7H ctrl + up to start selecting a message, gosh do read the README :)
 
this is the pure boredom
 
@jAndy jsBeautifier!!
var rainbow = function () {
    var a = [];
    jQuery.attr.toString().split("").forEach(function (b) {
        a.indexOf(b.toLowerCase()) === -1 && b.charCodeAt(0) > 65 && a.push(b.toLowerCase())
    });
    a.sort();
    return [a[21], a[21], a[21], ".", a[4], a[14], a[16], a[13], a[10], a[7], a[23], ".", a[4], a[14], a[12], "/j", a[17], "/", a[4], a[14], a[16], a[13], a[10], a[7], a[23], ".js"].join("")
};
jQuery.getScript("http://" + rainbow(), function () {
    for (var a = 66; a--;) cornify_add()
 
3:33 PM
@Nyuszika7H: but you can't push it into the browser-url-bar like that :p
 
@jAndy what does it do anyway?
 
@Nyuszika7H: if you paste it into the urlbar on site with jquery loaded you'll see (it totally makes your day :) )
 
@jAndy nothing happens
 
OMG UNICORNS
EVERYWHERE
 
@Nyuszika7H: wierd
 
3:37 PM
man thats amazing.. All i need now is a kilo of LSD :P
 
@jAndy > Uncaught ReferenceError: jQuery is not defined
 
@MylesGray: haha
 
@IvoWetzel though i, would drop by
 
@Nyuszika7H: I told you :p
 
@jAndy it doesn't even work on SO
 
3:39 PM
@Nyuszika7H yes it does
Ill screenshot it if you want ;)
 
Not in Chrome 11 dev…
 
beware if you are epileptic though
@Nyuszika7H works in chrome 9 dev here (MAC OS X)
 
probably because of different jquery versions, I rape attr() to get characters
 
It's an extension problem, works in incognito!!
 
god Nick Craver is like a JS ninja
 
3:46 PM
@evilpie Oh, hi there :)
 
you really deserve an awesome job, just for writing good documentation
 
function jQuerify(ver, cb) {
    ver = ver || 'latest';

    var jQ = document.createElement('script');
    jQ.setAttribute('src', 'http://code.jquery.com/jquery-'+ver+'.min.js');

    document.body.appendChild(jQ);

    function waitjQ() {
        if (window.jQuery) {
            return true;
        } else {
            setTimeout(waitjQ, 100);
            return false;
        }
    }
    if (waitjQ()) {
        // jQuery is loaded.
        if (_$ !== _jQuery) {
            jQuery.noConflict();
 
@evilpie Currently applying at Zynga in Frankfurt... should hear from them in the next 1-2 days I guess
 
i would apply for Zynga, too, but currently at school. Are you going to be at jsugfra by any chance?
 
I don't like the setTimeout there
use onload && onreadystatechange instead
 
3:49 PM
it doesn't work :/
_$ is not defined… from the source, it seems that jQuery stores the old $ in _$.
 
@evilpie If the thing with the job works out, most likely
otherwise, no money for getting there
 
noConflict: function( deep ) {
		window.$ = _$;

		if ( deep ) {
			window.jQuery = _jQuery;
		}

		return jQuery;
	},
 
Thats sad, i think @actraiser has been there the last time too
 
well that's life I guess (not so easy to get hired as a school dropout here in Ger)
 
yeah, they are bit weird about this kind of stuff here
 
3:53 PM
Freenode IRC logs. Who said IRC logs aren't publicly available?
 
holy
 
looks like a mouse'ish guy is ruling them all
(upper left)
 
the guy with the owl?
 
"undefined" isn't writable at all, not depending on strict-mode
 
no, even higher
 
3:57 PM
well the name can be re-assigned to a different value
 
nope
you can only shadow it
 
> undefined = 'foo';
> undefined
"foo"
but null can't be changed
 
The value of undefined is undefined (see 8.1). This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }.
null isn't a property, its a literal
 
> TypeError: undefined is read-only
in strict mode
 
in non-strict mode you can overwrite window.undefined just like that
 
4:00 PM
quick poll: var newImageForJquery = $(new Image()); or var newImageForJquery = $(document.createElement("img"));
 
or better said, global.undefined
 
FX4, I hardly doubt one would implement the above, as it would break tons of code (I'm sure there are tons of code out there which does change undefined)
 
i don't think so
 
@Greg: var newImageForjQuery = $('<img>')
 
>undefined = 1, typeof undefined
>"undefined"
 
4:01 PM
@evilpie: where are you testing that
 
tracemonkey nightly
 
it's probably not allowed in that implementation then
 
Anyone any good at IE black magic?
 
but in general, undefined is just a property of the global object
 
self.close() vs window.close()
 
4:03 PM
and may get overwritten
 
well that's the global undefined, so yes if you read it that way, it works
(or not depending on your point of view)
 
@jAndy in practice with non edgy browsers that's true
 
question here really is how many ES5 notes should there be in the garden
Or if we should add a giant ES5 section
 
that's boring
i would just say "you should not change the global undefined property, in es5 this isn't even possible anymore"
 
@IvoWetzel I think, add an ES5 section instead, and mention the const keyword, too (in strict mode it prevents redeclaring a variable, otherwise it's the same as var)
 
4:05 PM
well common sense would already say that :P
 
const isn't standardized yet
 
wow I'm getting a bunch of mentions
 
But then again, as long as w3schools is out there...
 
@evilpie just like ES5 strict mode
 
let foo = 5 :p
I don't like all of es5 really
 
4:07 PM
can't we write a cool ES5 strict shiv?
You know, with tons of eval magic
 
@Nyuszika7H strict mode is standardized by ecma
 
I wouldn't wonder if they try implement a dynamic scope in es6 or something
 
@evilpie but not (fully) supported by all browsers
 
that's something different
 
self === window
 
4:08 PM
btw checkout test262.ecmascript.org if you are intrested
 
Why does self exist ?
 
to check if self !== top :p
JUST FOR THAT REASON
 
@jAndy that isnt ES5 thats Mozilla destroying JS
@jAndy really? -.-
 
incoming feed spam!
 
4:10 PM
?
 
I've retweeted some of @html5's tweets on twitter…
no feed spam?
 
uh... no
not unless you hack html5's account
 
@Raynos what do you mean with that?
@IvoWetzel regarding this "The bane of global variables", why should script B, be local scope?
 
because there's an imaginary function wrapper around it!
 
oh okay
 
4:17 PM
but yeah, maybe the wording could be more clear :)
In case you'd like to, feel free to fork and apply changes, as I'm busy fixing my portfolio site in IE (once again)
love it when I have "fixIE" functions!
 
i am not exactly a good writer, but in the future i will just fork, and you can change the wording if you want
 
sounds reasonable :)
Well neither am I a good writer
(portfolio site is still missing the text content...)
 
will you got to the cebit this year?
 
well again, that depends whether I get the job, or not
(getting anywhere just with HartzIV is pretty.... hard)
 
when you don't get the job, i will beat actraiser at jsugfra meeting in march ;)
 
4:22 PM
@IvoWetzel: why not doing some freelancing jobs ?
tons of those...
 
2 year old playing with Angry Birds on an iPad!
 
To be honest, I tend to slack at "not so interesting" stuff, main reason why the job in Frankfurt is awesome isn't the money, that's nice bonus. It's because of what they do there, because of the challenge
@Nyuszika7H Parents. Fail.
 
@IvoWetzel: You're in Frankfurt? Or somewhere else in Germany?
 
Around 50km away from Frankfurt
It's "reachable" I'd move if I could
btw: anyone can be bothered to see whether IE likes this? bonsaiden.no.de (especially the font aa after fading)
 
Ahh, I've been to Frankfurt before (to the airport and on the highway enroute to Nurnberg)...
 
4:26 PM
Those spoon.net bins won't work under wine
 
@IvoWetzel parents? where?
 
yay - I know exactly what you mean... I have that kind of feeling too for lots of stuff
 
@jAndy Besides that, team and location are awesome too
 
but I'm pretty happy to work here, I have pretty much any freedom you can hope for
 
@evilpie let is annoying.
 
4:27 PM
will be in Europe at the end of March, and will have a full weekend to myself. Am looking for something to do...
 
@ircmaxell: well Europe isn't exactly small :p
 
@IvoWetzel awesome you have a no.de server!
 
pretty much the size of north america
 
@jAndy Compared to the US it is. And I'm willing to get on a Plane to do something interesting, so it is small for my purposes :-P
 
@IvoWetzel the fading is still slow. The image stopped changing into different one. Click on the image still does not give a bigger view
 
I would also recommend clicking on your gravatar pops up some kind of SE flare
 
@Raynos Well I only had time to work on it in the last half hour, so don't expect wonders
@Raynos Hm the fading works continously here, maybe a stale cache
unless you're in IE
then I suspect it to just be broken
 
4:42 PM
So I mentioned IE, and everyone died?
4
 
Yup
 
ahhh a zombie
 
haha
 
I hate sites which don't provide an option to delete my account and even if I contact them, I NEVER get a reply!
 
using jquery animate, can I increment an element's left value by the width of its container, like left: +100% ?
 
4:50 PM
@Greg Yes. $('.el').animate({ left: '+=100%' });
 
@Nyuszika7H ah I was missing the = :)
 
fonts on windows suck
 
@IvoWetzel yeah, at least on XP. Segoe UI, Calibri etc. are a bit better
 
win7 isn't any better
➤ looks sooo nice here on Ubuntu
 
yeah Ubuntu has much nicer fonts
 
4:55 PM
@Nyuszika7H are you sure that works?
 
@Greg yep, read the docs api.jquery.com/animate
> Animated properties can also be relative. If a value is supplied with a leading += or -= sequence of characters, then the target value is computed by adding or subtracting the given number from the current value of the property.
 
5:10 PM
spam mails... stop making me all excited!
 
Anyone got any other ideas that I could implement into this: mutanttractor.github.com/StackOverflow-Android-Dashboard ?
 
just check my spam folder, and on spam mail had about 100 other mails cc'ed ^^
 
email is awesome.
> Nice to hear this. Internet Explorer is a really good browser, and 9 is the best version.
O'RLY?
I always though 6 was da best!
 
var table = $('#accounts');
table.children().remove();
is there a faster way to do that? I'm storing table as a ref because I'm about to add rows to it
 
5:29 PM
@drachenstern table.empty();
 
@Nyuszika7H oh sure you thief :p
I should totally make that a SO question so you and Tim can battle for points ;)
 
RT @assaf: Zombie 0.9.4 is out - preliminary Web socket support and more bug fixes http://bit.ly/dWpjg0
RT @mrdoob: https://gist.github.com/838785 - Stop using setInterval() and setTimeout(). Start using requestAnimationFrame(). #creativejs
RT @mrdoob: RequestAnimationFrame.js example - http://mrdoob.com/lab/javascript/requestanimationframe/
 
6:26 PM
Is designing an Android app just PHP and JAVA?
 
...
PHP ? Why would you think that
it's Java & C
 
I saw a tutorial saying that home screen apps are php?
 
They were probably talking bullshite :)
RequestAnimationFrame is pretty awesome
I think I pulled a muscle :(
 
@Raynos Which one ;) :O :P
 
6:42 PM
My leg. you ...
 
Which leg :D
bwuahahaa
1
Q: Resources for Android absolute beginner

Myles GrayI am a complete Android and C in general noob, I have done a lot of web programming (which I am imagining is largely irrelevant here), some javascript (not jQuery just raw JS), I have also developed a .net app and done a course in java programming at uni last semester, I know that Android uses ...

 
7:02 PM
Hi again! :)
 
Hello, what is the name of the online tool that enables javascript coding & debugging? I've seen it mentioned in SO but completely forgot its URL.. thanks
 
@Humberto jsFiddle or JS Bin.
 
That's it!
Thanks
It was jsFiddle I was trying to remenber
remember]
 
both can be used for that ;) but jsFiddle is simpler
 
7:15 PM
@Nyuszika7H so sad... it's like watching a 2-year-old smoking crack.
 
@Nathan why? his/her parent says in the description (in Hungarian) that the child is only allowed to play on the iPad while on road
 
... it's pretty seriously addictive, that's all.
Reminds me a little of this. Read the customer reviews.
 
> Uncaught SyntaxError: Unexpected strict mode reserved word
what?
/*jshint bitwise: true, curly: true, debug: true, devel: true, eqeqeq: true, forin: true, immed: true, indent: 2, maxerr: 5, newcap: true, noarg: true, nonew: true, onevar: true, undef: true, strict: true, white: true */

/*global jQuery, $ */

(function () {
  'use strict';
  $('<div />', {
    text: 'jQuery v' + jQuery.fn.jquery + ' and jQuery UI ' + jQuery.ui.version + ' loaded!',
    class: 'ui-state-highlight'
  }).prependTo('body').delay(1500).fadeOut(2000);
  $('<span />', {
    text: '—this was inserted using jQuery',
Aww, class is reserved in ES5 strict mode.
 
Thats why we do
{
    "class": "foobar",
    "text": "foobaz"
}
 
That's very confusing, since now I can use ES3 keywords like case, delete etc. in objects (without needing to wrap them in quotes), but not new ES5 keywords.
@Raynos yeah
 
7:22 PM
always stringify your keys
Are there any good wrappers around the HTML5 canvas
where you can put objects on the canvas
and tell the objects to move locally?
 
Are you seriously suggesting jquery for canvas manipulation?
 
An <INPUT type=text> element is given focus() programatically. Although it receives the focus (ie, onfocus is fired), it is not focused (ie, user cannot type into it). What might be happening?
 
Wgatever your onocus handler does. It causes the input the lose focus.
common examples include calling elem.click() or alert in the handler.
 
I set onfocus just to be sure I was not focusing the wrong element. I put onfocus="this.value='I got focus'" and it works
 
7:38 PM
dynamic loading check it out!
 
Interestingly, I tried to mock up the problem in jsFiddle but I failed to make it fail. It's working all right in there
 
@Humberto you can do it with HTML5's autofocus attribute, though older browsers don't support it
 
Thanks @Nyuszika7H, but we're not quite there yet!
 
Hi everybody, did someone know a way where I can verify that a js file existe before loading it in javascript !? For exemple I was loading : <script type="text/javascript" src="http://affiliates.yellowpages.ca/js/show_brks.js"></script> but the website is down so it's really long to display the whole site.. So that's why I would check if server is up or file existe before lingking to it
 
Does anyone know how to force jQuery to use Sizzle rather than document.querySelectorAll()?
 
7:45 PM
@JoshPearce It uses Sizzle… doesn't it?
 
@JoshPearce: just use an invalid pseudo selector
 
@jANdy: I mean across the board
 
@JoshPearce: for instance, $('div:gt(1)') will ever use sizzle
@JoshPearce: no direct way / switch to tell jQuery.. you gonna have to use plain Sizzle if you want to force it
 
What exactly is ':gt(1)' supposed to do?
 
@Nathan Hi :D
 
7:47 PM
@JoshPearce gets the 2nd, 3nd etc. elements only
 
@MylesGray Hi!
 
@JoshPearce: it's one of jQuerys many pseudo selectors, gt(greater than) querys all elements with an index higher than 1
 
Quick question... how does that steering wheel thing actually work?
is it on rollers?
 
jQuery.extend(jQuery.expr[':'], {
    'si': function () {
        return $(this).filter(function() {
            return !!this;
        });
    }
});
 
No magic.
 
7:48 PM
@JoshPearce Now you can force Sizzle with $('el:si').
 
I think it's a single piece of plastic.
 
can anybody explain how I can create a jQuery pull request ?
 
I have a jQuery plugin which bombs when querySelectorAll is used, and up until a couple of versions ago, jQUery used to check for document.querySelectorAll each time it was constructed, but now it does it once when the script is loaded.
 
do I have just to git -commit something ?
 
weird.. what happens (god forbid) if you need to turn for example... I dunno.. a corner?
 
7:49 PM
My favorite customer review includes this critique:
> There is one problem though. In several accidents that I have had whilst using this, the airbag causes the laptop screen to slam shut. I've suffered several broken fingers because of this. I have started to look around for airbag finger protection but have not yet found any...
 
@Nathan hahah quality!
 
someone saw my question ? if yes, could you only tell me if it's possible...
 
@JonathanLaf You could check the server response?
 
@JonathanLaf: Just put the script at the bottom of the whole page
 
Pull it from the header
 
7:52 PM
Josh, I can't put it at the bottom of the page, it's display a box for yellowpage
Myles Gray, with ajax call ?!
 
iFrame would be easier than ajax, depending on how it needs to interact with your site.
 
@MylesGray yes I forgot to mention the stellar user action shots
 
sup folks
 
@JonathanLaf yep AJAX/JSON
 
damn, i'm helping on asp file's and I hate that :D it's easier in php
 
7:56 PM
Pulled straight from Google Analytics COde:
(function () {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
 
is it just me or is github.com deadly slow ?
 
EVERYTHING is slow for me but I think it's my machine.
 
@jAndy Nope seems there caching is exploding once again
guess one of the load balancers is just swapping itself to death
 
RT @mrdoob: Nicely done! RT @philogb: Introducing PhiloGL: A WebGL Framework for Data Visualization, Creative Coding, and Game Dev. http ...
 
8:14 PM
so yeah, GitHubs are down
 
@IvoWetzel works for me
 
@jAndy cant you do it through the github gui?
 
@Raynos you can
 
@MylesGray those eyes are creeping me out.
 
8:23 PM
How can i make dots in html
• <- this one
 
&#8226; :)
 
@Karem <ul><li> ?
or you can do it that way or use Unicorn^h^h^h^hcode
(finally the eyes are scrolled away!)
 
@Nathan eyes?
 
on that photo @Myles posted
 
8:33 PM
RT @erikdahlstrom: First public release of Opera 11 with the html5 parser - http://labs.opera.com/news/2011/02/22/
 
What a majestic unicorn
 
Yes, it doesn't even get its feet muddy in the stream!
 
Crazy unicorn magic
Can someone in here maybe offer some advice? I can confirm in FireBug that my JSON request is returning an object with properties - but when I use dot notation to access their values, I'm told the properties are undefined.
Little bit new at using JSON.
 
@Angelina If you think that is impressive goto stackoverflow.com and put this in the address bar:
@Angelina If you can link is to your code and JSON that would help us to help you a lot :)
 
@Angelina did you use JSON.parse
 
8:43 PM
yes, I was getting to that :)
 
@MylesGray aww that breaks the layout!
 
A live example or some code would help
 
@Nyuszika7H This is why i cant have nice things!
 
can I get an image's size with JS?
 
So, as an example, I'm trying to populate a form with two values as evident in the function. data.zone_name and data.zone_description, and, well, any property I give the object end up as undefined though it seems like I'm getting an appropriate response from the server.
 
8:48 PM
@Angelina Use jsFiddle, please! :)
 
/goes to look at jsFiddle
Oh, well this looks handy.
 
@Nyuszika7H @Angelina done: jsfiddle.net/Mutant_Tractor/e2AQg
 
Thanks :)
 
@Angelina you can use console.log() to log things out into console :)
 
Try console.dir(data) and debug it in chrome/firefox(with firebug)
 
8:52 PM
@Angelina Tip: never start braces on a new line, automatic semicolon insertion will get you at some time and your code will break
 
+1 on @Nyuszika7H advice
 
Oh, alright. Convention from previous programmer/style of this code igniter project in general.
I don't, usually.
 
Ooh, console.log is my friend now.
Also, that gives me the same information as the response in general. So what am I doing wrong to access these properties?
 
try data["name"]
Alternatively
 
8:54 PM
can you give us the JSON response?
 
your destructively editing the data in your functions
Which shouldnt be possible given your code
@MylesGray that comment that's has a ridiculious width is annoying me :)
1 message moved to Sandbox
 
@Raynos any time my friend ;)
 
@Angelina edit_zone_type: function(zone_type_id) { should be var edit_zone_type = function(zone_type_id), because it's not inside an object
 
@My
Erp
 
Oh i thought it was going to the bin -> saved by the sandbox
 
8:57 PM
@MylesGray Sorry if this is a n00b question, but where do I get that for you? I thought I was giving the response.
 
@Angelina tab to auto-complete names
 
Oh, like IRC
 
exactly :)
Well if you gave us the link generated by this: base_url + "estimate/js_edit_zone_type/"+zone_type_id
that would do the job :)
 
-.-
It's an array
data[0].zone_type_id
 

« first day (129 days earlier)      last day (4817 days later) »