Month: December 2006

  • Safari’s strictness

    Apple’s Safari browser is pretty strict when it comes to certain things in JavaScript. For starters the ECMAScript set of future reserved words are already reserved words in SafariScript. Things like “super” or “export” or “static” are no-go.

    Second, I just found this oddity. I’d written some code like this:

    var q = document.getElementById('foo').childNodes;
    for (var i in q)
    {
        var el = q[i];
        // do stuff with el
    }
    

    This code ran great in Firefox and IE, but on Safari el was never valid. The reason seems to be that Safari really expects a variable given in an array subscript to be a number, not a string (when you use for (foo in bar) foo will be a string).

  • Definitions of PATH walkers

    • phone-walker: talking on a cell phone and meandering slowly and aimlessly as if drunk, often bumping into people and children
    • shoe-shopper: that woman who always DIVES right in front of me in front of the shoe store in BCE place to check out what’s on the bargain table. This happens once a week, I’m not exaggerating
    • centre-of-the-universe: walks very slowly and in the exact middle of any given passage, forcing you to navigate around them, like water in a stream going around a three-tonne boulder
    • phalanx: walking three or four or more wide.
    • stair-ectomy: standing in the way at the top or bottom of a staircase.

    I had way more snappier names for these while I was walking at lunchtime.

  • T.O. is under water, and other news

    Holy crap is it raining. St. James Park across the street is now St. James River, flowing right down the middle of the park and emptying into King St.

    Oh, we got a Nintendo Wii 😉 Boy is it fun.

  • An interesting observation

    My boss pointed out yesterday that, at our little office of 16 people, I’ve been there the 5th longest. Spooky.