benlowery

Google ChromeFrame

Sep 22 2009. Add a comment.

Screen shot 2009-09-22 at 3.44.42 PM

Released today. Go check it out!

I made a shirt

Aug 5 2009. Add a comment.

And you should buy it.

jquery-heart-700

Cross-community love is always beautiful.

Crack

Feb 9 2009. Add a comment.

[Firefox architect Mike] Connor also attacked Opera’s claims that bundling harms competition. “Opera’s asserting something that’s provably false,” Connor said, referring to Firefox’s ever improving market share, which now stands at just over 20% worldwide. “It’s asserting that bundling leads to market share. I don’t know how you can make the claim with a straight face,” he said.

I’m not sure how he can say that with a straight face. Bundling IE didn’t help its market share? I’d like some of what he’s having, thanks.

window.baz vs var baz. A subtle oddity.

While trucking away at $work, Jim pointed out a subtle nasty edge case in how JavaScript and the browser interact. Let’s say you have the following code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
            "http://www.w3.org/TR/html4/strict.dtd">
<html>
  <head>
    <title>shared var</title>
    <script type="text/javascript">
      var foo = "awesome";
      bar = "bartastic";
      window.baz = "bazzoom";
    </script>
    <script type="text/javascript">
      if(!window.foo) var foo = "not awesome";
      if(!window.bar) var bar = "not bartastic";
      if(!window.baz) var baz = "not bazzoom";
    </script>
  </head>
  <body>
    <p>Foo is <script type="text/javascript">document.write(foo);</script></p>
    <p>Bar is <script type="text/javascript">document.write(bar);</script></p>
    <p>Baz is <script type="text/javascript">document.write(baz);</script></p>
  </body>
</html>

I think most folks would expect the output to be:

Foo is awesome

Bar is bartastic

Baz is bazzoom

and it is on Firefox, Safari and Opera, but on IE  you get:

Foo is awesome

Bar is bartastic

Baz is not bazzoom

Care to guess why?

A SCons Scanner for Dojo

Sep 26 2008. Add a comment.

Bjorn worked up a pretty sweet scanner for SCons that understands dojo.require statements. If you’re using SCons and Dojo, definitely take a peek.