Monthly Archives: December 2010

Quickie: URL Form Decoding

Here’s a little utility function I use to decode application/x-www-form-urlencoded strings on the iPhone: – (NSDictionary*)extractArguments:(NSString*)raw { NSArray* args = [raw componentsSeparatedByString:@”&”]; NSMutableDictionary* rv = [NSMutableDictionary dictionaryWithCapacity:[args count]]; for (NSString* sPair in args) { NSArray* aPair = [sPair componentsSeparatedByString:@”=”]; NSString* … Continue reading

Posted in iPhone | Comments Off

ARA General Belgrano

The USS Phoenix (CL-46) was built in Camden, New Jersey, and launched in 1938. She was anchored at Pearl Harbor during the December 7th attack, but was not damaged. She served throughout the Pacific during WWII, receiving 9 battle stars. … Continue reading

Posted in Jack Handy | Comments Off

Roy Jones Jr.

I recently had the opportunity to watch tape of the vast majority of Roy Jones Jr.’s fights. Today, a few thoughts on a remarkable career. Overview The conventional wisdom on RJJ is that he was a superlatively physically gifted athlete … Continue reading

Posted in Boxing | Comments Off

Six Word Stories: Rain

Rain chased the smarter cats inside.

Posted in Six Word Stories | Comments Off

Dating Advice

If you’re a woman interested in persuading a man that you’re wife material, it might be best to avoid mentioning that you’ve read (or, worse, liked) “Eat Pray Love“. The whole celebration-of-the-breaking-of-commitments thing probably isn’t the message you want to … Continue reading

Posted in Jack Handy | Comments Off

Foreign Expressions

The Chinese (near?) equivalent to “casting pearls before swine” is “playing music to the cows”. I think it’s cute.

Posted in Jack Handy | Comments Off

Six Word Stories: Merry Christmas

We wish you a Merry Christmas.

Posted in Six Word Stories | Comments Off

NSURL, Trailing Slashes, and OAuth

Here’s a surprisingly important note from the documentation for the NSURL class’ path method: Return Value The path of the URL, unescaped with the stringByReplacingPercentEscapesUsingEncoding: method. If the receiver does not conform to RFC 1808, returns nil. If this URL … Continue reading

Posted in iPhone, Python, Web stuff | Comments Off

Pacquiao/Mosley

Well, Pacquiao vs. Mosley is scheduled for 7 May. When I first thought about this fight (after Mayweather/Mosley), I thought it would be an easy win for Mosley; even after he was out-boxed by Mayweather, I figured that Mosley was … Continue reading

Posted in Boxing | Comments Off

Happy Things

The blog’s been getting a little grumpy lately, so, today, just a list of a few things and people that I like: Glass backlights on convertibles. I think they add a little bit to the cost of the car, but … Continue reading

Posted in Jack Handy | Comments Off