April 2009

You are browsing the archive for April 2009.

jQuery.bind() Data

If you only ever use the type-specific event helpers (.click(), .load(), .change(), etc.), you're potentially missing out on a really handy feature of jQuery: bind data.  Bind data is data associated with the bound handler function, available to every invocation of it, but not in any "normal" variable scope.  It's kind of like currying, except [...]

jQuery.live("click") Gotcha

If you're using the new jQuery.live("type", fn) handlers in jQuery 1.3, be careful with the "click" event type.  Unlike jQuery.bind("click", fn) and jQuery.click(fn), jQuery.live("click", fn) doesn't distinguish between mouse buttons.  So while the "normal" handlers will only trigger when the left button is used, the live handler will trigger on any button.
The workaround is pretty [...]

CSS Naked Day

It's CSS Naked Day again, at least on the East edge of Earth, but we'll soon catch up.  Strip your <BODY> for the world!  After doing it manually the last couple years, this time I'm using the excellent CSS Naked Day WordPress Plugin by Aja Lorenzo Lapus.

Ben Nadel – At It Again

Ben Nadel posted another interesting code snippet this moring.  I think Ben and I stand in agreement on the technique: NEVER EVER USE IT.  It leverages a horrible bug in ColdFusion's implementation of struct literals that I've blogged about previously.
Here's the snippet:
<cfset objConfig = {
root = getDirectoryFromPath(getCurrentTemplatePath()),
tags = objConfig.root & "tags/",
[...]

Show Me Your Tool

If you read my blog regularly, chances are you write software and therefore can't, because your tools don't exist in the visual world.  They're just magic strings of minuscule magnets on a rapidly spinning chunk of plastic…
I took my chef's knife to the sharpener a few days ago.  Cost a whopping $4 to have him [...]

Firefox Spellcheck for Programmers

No, it doesn't exist, but shouldn't it?  I've found that when I write prose in Firefox, I almost invariably ignore the redlines.  Why?  Too many false positives.  Technical prose, which is usually what I'm writing,  is littered with domain-specific terms that no spellchecker will ever consider valid.  Obviously you can help your specific spellchecker by [...]

TurboTax For the Win

Every year I'm blown away by TurboTax's web version.  It's one of the few applications that is really a pleasure to use, and while I can't say doing taxes is any sort of enjoyable, the sting is greatly removed.  So once again, cheers Intuit.   Keep it up, we appreciate it.

No More AdSense

Tonight I removed my Google AdSense ads from my blog.  I installed it last April as an experiment, intending to leave the ads up for one month.  After a month I never took them down, but the results were about what I expected: virtually zero income.  Now, a year later, I just canceled my AdSense [...]