I have an application to bang my head for couple of days. It has to convert the long urls to be converted to short urls like the ones in rubyurl.com .
google hurl. It's an open source tinyurl implementation in ruby (using camping framework)
www.hurl.it i think...