Archive of May 2009

May 14

Sequential Find & Replace

A crude tool I just built that lets you replace a character you specify with the match number. For example, if you enter:

12:0~
12:0~

…it’ll spit out:

12:01
12:02

Oddly, it doesn’t look like there’s a simple way to do this with text editors like BBEdit or TextMate.

02:09 PM
May 12

Selectively turn off Textile

While writing the previous post I discovered that Textile chokes on bookmarklet URLs. It turns out there’s a way to selectively turn off Textile processing: simply add 'notextile. ' (making sure to include the dot and the space at the end) before the content you don’t want Textile to format. Handy.

03:01 PM

Set 'precomposed' custom Web Clip icons for your iPhone

Update: Google recently updated the iPhone version of Voice, and they’ve now included a Web Clip icon, so this workaround is now moot. / 5 Feb 2010

###

Last year, Cameron Kenley Hunt (of Birdhouse fame) posted a handy little bookmarklet that lets you set a custom iPhone Web Clip icon for any website (if you don’t like a site’s icon or if the site doesn’t have one). (Cameron’s bookmarklet was based, in turn, on Drew McLellan’s.)

Cameron’s works great, but it doesn’t have an option for “precomposed” Web Clip icons that don’t need the iPhone’s standard glossy icon treatment. Google’s icons, for example, don’t use the gloss, so I didn’t want my custom Google Voice Web Clip icon to have it either. I made a really minor tweak to Cameron’s bookmarklet so that it would use the precomposed option, and all is well in the universe.

In case you’re as anal discriminating about your Web Clip icons as I am, here’s that slightly modified bookmarklet:

'Precomposed' Friendly Clip.

And in case you use Google Voice from your iPhone too, here’s the URL for the icon: http://d.tinymachine.net/wcgvoice.png

Thanks to Cameron (and Drew) for the handy bookmarklet.

02:44 PM