Supplying img sizes automatically

Wednesday, April 4th, 2007

What if any tools are available for reading HTML, finding missing width and height attributes on img elements, and filling in the relevant values? So far all I’ve found is this Perl Script from Randal Schwartz circa 1999 and this Perl script based on ImageMagik from Marc Merlins. I haven’t been able to resolve the dependencies for Schwartz’s script yet. Merlins’ runs, but is not XHTML savvy. That may be easy to fix though.

BBEdit almost does this, but it replaces existing height and width attributes too, including ones you’ve deliberately set to a different size. I only want to fill in missing height and width attributes, not change existing ones.

I’d love to find a simple open source GUI tool that could pull this off for an entire site.

Paying More for Car Rentals

Tuesday, April 3rd, 2007

Over the years I have rented from every major U.S. auto rental chain with the exception of Avis. Over that time I have had almost every problem imaginable with almost every one of them: extra fees tacked on at rental time, cars that had mechanical failures, cars missing pieces in the lot, cars that simply were not available despite a confirmed reservation, cars that could not be dropped off where I was supposed to drop them off, rental offices that were closed during their operating hours, insurance that I didn’t need but was required to purchase anyway, “unlimited” mileage that wasn’t, outrageous gas prices, gas I was charged for but didn’t use, frequent flier miles that were promised and not credited, and more. About the only aspect of car rental service I’ve been lucky enough not to experience is what happens when your rental car is in an accident or stolen.

The latest variation was on a trip to California where I planned to spend some time birding on windy mountain roads with very small pull-offs. Consequently I’d reserved a compact car at Dollar. Instead they saddled me with an effective tank, possibly the single longest car or truck I’ve ever driven. Over six days they claimed to be unable to find a compact car to replace it with.

Recently it occurred to me that there is exactly one car rental company I have never had a problem with or a complaint about: Hertz.
(more…)

Death Threats, Anonymity, and Blogs

Sunday, April 1st, 2007

I’ve been avoiding comment on the whole Sierra/Locke/etc. dust-up lately. Most of the commentary seems pretty on-the-mark, but a few usually sensible people are starting to overreact and call for self-censorship. Once the mainstream media gets hold of this next week, expect the customary cast of Congressional idiots to elevate that to calls for government mandated censorship. However the problem has been blown way out of proportion. There’s one thing that I think needs to be said that hasn’t been said yet to put this whole sordid mess in its proper perspective:

Death threats are no big deal.
(more…)