Category Archives: Geeking Out

jQuery gotcha with ‘class’

Not jQuery specific, but ran into a cross browser issue today with the following snippet:

$('<span/>',{class: 'check', text: 'Checking'}).insertAfter('#checker');

This will work fine in Firefox, but in Safari it throws a parse error. Evidently ‘class’ is a reserved word in webkit. The solution is to quote it:

$('<span/>',{'class': 'check', text: 'Checking'}).insertAfter('#checker');

The documentation even shows an example of this exact thing, but doesn’t point it out explicitly.


Google Adsense for Feeds

Looks like Google is now supporting Adsense ads for RSS feeds.

I remember the good ol’ days of Adsense. Now it’s about as ubiquitous as hit counters were in the 90’s. Still, I sure don’t mind seeing those Google checks in the mail, although they are fewer and further between these days.

The lack of Adsense support for feeds has been a pain point for bloggers and sploggers alike. Several startups exist solely to plug that hole. I guess we should get ready to start seeing ads in our feeds as often they appear on sites.

One more reason to love the keyboard shortcuts in Google Reader.

The announcement (if you must):

Inside AdSense: I feel the need… the need for feeds


2008 and web development is still in the toilet

For some reason, I find myself reading rss feeds at 2:30 a.m.

For some other reason, Jeremy decides to blog about his new toilet.

Oddly enough, I want to know all about this new bathroom fixture, so I click the link to Home Depot.

And maybe just because it’s there, I click the “product reviews” tab to see what’s so fantastic about this particular commode.

And I see this:

Home Depot

It’s 2008 and we still have problems deploying content management systems that escape text incorrectly.

I thought this might be because of PHP magic quotes, but I think this is a jsp site.


Stop comparing PHP to Rails

PHP is a language. Rails is a Ruby framework.  Comparing PHP to Rails is like comparing Perl to Django, or Haskell to Seaside, and that makes no sense. Two things that DO make sense:

  • Using PHP for web development. It deploys and scales great.
  • Using Ruby on Rails for web development. The framework provides an excellent set of conventions for rapid development.

Truncation Zen

I like Stephen O’Grady’s style of meta-blogging del.icio.us links. It’s handy to keep up with what a brilliant, open-source analyst thinks is important. In this post, somewhere along the line one of his descriptions got truncated, but with delightful results:

“I am the sworn enemy of most analysts, who do little more than tell you…what happened 5 years ago…or…exactly what won’t happen in the future…Not so with RedMonk.” – it’s comments like this, from real, bright practitioners, that make this job fu
Job fu. I like that.

Occam’s dog food always spoiled

I’ve seen several instances where folks have criticized others for not “eating his own dog food,” or in other words, not using one’s own technology to show its viability. A couple examples of this rant that I’ve caught on the blogoweb:

These are easily debunked: best tool for the job, Rails is harder to deploy than PHP, yadda yadda.  Most times the old saying is true, “All other things being equal, the simplest solution is the best.”

Case in point:

Lucene: A Tacit Admission of Fail? : ob.blog

I won’t spoil it for you, but the first comment made me giggle.

In my head, I suffer with NIH Syndrome quite a bit; It’s easy to mentally find flaws in other peoples’ work and think of improvements.  The key phrases are “in my head”, “mentally”, and “think”, because at the end of the day I’m more often than not using existing open source software.

There’s a practicality component: there’s only so much time in the day, and I’m not that good of a coder.

I remap Caps Lock to be Ctrl because I cut ‘n’ paste so damn much.

I enjoy mashups because fitting the pieces together to make a new use case is usually more fun to me than building the pieces.

I believe lazy programming can be a good thing.

I once argued with an interviewer about writing a search algorithm that the language provided out of the box, even though I knew that wasn’t the point of the exercise.

It takes a little humility to realize someone else’s way is better or faster, and I’m super fine with that.


@rms.crank(souljaBoy.dat)

When not fighting off Microsoft ninjas with his GPL katana, Richard Stallman likes to supaman dat ho.

Also, the Youtube ID for this video is ‘Pube5Aynsls’, which would be a great name for a punk/prog rock band.