January 5, 2003

Institutionalized kidnapping

This article in the Washington Post details a startling bit of American history that I had been unaware of: during WW2, the U.S. government kidnapped Latin Americans of Japanese, German, and Italian descent and held them in detention centers, in some cases as late as 1949.

A cautionary tale for our times. I have no trouble imagining the current lot doing the same thing.

One for the lazyweb: better javascript e-mail obscurifier

I’m currently using a javascript to generate my e-mail on this page in a way that spambots apparently can’t detect. Described in brief, it spits out a mailto link, with my account name, then an encoded at-sign, then my domain name. This is all hard-coded into the script (have a look).

Although I lack the coding chops to make it work just right (much less make it elegant), I’d like to generalize this to work as follows:

The script is called with two or (optionally) three parameters. The first parameter is the account name. The second is the domain name. The third is the text (or image tag) that will be used for the link text — something like “mail me”. If the third parameter is not present, the e-mail address itself is inserted as the text.

And it would be great if there were a plug-in that inserted this into Movable Type so that it automatically re-coded e-mail addresses in the main content and in comments.