March 8, 2006 Archives

you call that scaring readers?

posted by tom / March 08, 2006 / 7 comments /

Pfft. I can produce way more boring posts than that.

To wit: I just got done adding a Drupal module to the company's open source offerings. Now, not only is it likely that none of you who aren't coworkers know what Drupal is, but any of you who do will probably find this module astoundingly useless. It creates a live tag cloud. Which, for anything but a huge flurry of folksonomic activity, will look a lot like an, um, normal tag cloud.

But! In the course of massively over-engineering this thing, I actually ended up using the Prototype Javascript library. And since the number of you who occasionally write JS may be non-zero, I should take a moment to sing its praises. I thought it was just an AJAX library, but no — it really makes a lot of things much, much easier (and with basically guaranteed compatibility). Some people say it's too large, but to them I say: shhh.

Its biggest problem is that it seems to be somewhat sparsely documented compared to its offspring Scriptaculous. But this article does a decent job of showing off its basic features, and providing enough code for you to get started.

Finally: I've mentioned it before, but if you're applying lots of event handlers to elements, consider Behaviour.

UPDATE: From the linked article, JQuery also looks pretty promising. And I might as well include the code for one of my all-time favorite JS functions, a method for safely adding OnLoad functions. It's behind the cut. Apologies to whoever the original author is.

More »

attention dcist fans

posted by tom / March 08, 2006 / 4 comments /

And haters, for that matter: NBC4, 4:45. Potential live TV embarrassment! Not for me, mind you. But for certain bearded associates.

I'll have to see if I can sneak a plasma TV channel-change by the people who run this temporary office space. So long as I can withstand the barrage of passive-aggressive notes that will show up tomorrow, I like my odds.

UPDATE: Just saw it. Nice job, Martin! No DCist.com graphic, sadly, but still a good piece. And Kathryn made it to the screen, despite her in-comment pessimism.

Google Analytics