Archive for August, 2009

Choices

Monday, August 31st, 2009

In my Fightcard application, I had to implement a lot of “picker” screens – screens that essentially let the user select one of a list of options, much as a drop-down does in a conventional GUI. Since the behavior of all these screens was so similar, I opted to create a common ChoiceMenu class. I now present it for your consideration.

(more…)

Snark

Sunday, August 30th, 2009

Today, a little nastiness: Without naming names, let me just say that when a man precedes his remarks on a topic with a (supposedly) awe-inspiring account of the reading he’s done on that topic, you can expect that his comments will be at best banal, at worst insane.

The best course of action is to nod politely, and think about baseball.

Feynman

Saturday, August 29th, 2009

Here’s something to pass the time; 12 videos of Richard Feynman explaining things.

Diverting, informative, and entertaining.

Location

Friday, August 28th, 2009

holesToday, a quick guide through basic location services on the iPhone 3G (i.e. I’m not handling heading information here.) I run through a quick overview of the steps involved in building a basic location-aware app, and provide a complete Xcode project for your perusal.

(more…)

New App: Fightcard

Thursday, August 27th, 2009

I’m pleased to announce that Apple has approved my very first “real” iPhone application: Fightcard. This app implements a boxing scorecard (also suitable, I guess, for MMA on the 10-point-must system) that allows you to systematically and properly score a fight. With all the controversy this year (e.g. Cotto-Clottey and Malignaggi-Diaz), it’s a better time than ever to start scoring the fights yourself.

Fightcard permanently records your round-by-round scores for all fights. Rounds are scored on:

  • Clean, Effective Punching
  • Defense
  • Ring Generalship
  • Effective Aggression
  • Knockdowns
  • Point Deductions

Fightcard offers full support for all stoppage scenarios: KOs, TKOs, No Decisions, Technical Decisions, etc. You should buy a copy right now.

(more…)

MAF: 13 Ideas

Wednesday, August 26th, 2009

Today I spent some time re-reading my posts on “Men Against Fire“, and thinking about what I’ve taken away from it. What follows are the 13 ideas that struck me as most important. (The presentation is a little disjointed, because the ideas cover several different domains, and because I’ve tried to keep the presentation of each idea as brief as possible. My apologies.)

(more…)

Addressbookery

Tuesday, August 25th, 2009

The iPhone makes the database underlying it’s built-in Contacts application available through a framework. This is handy, for two reasons:

  • If you want to let the user contact people from inside your app, it’s a good idea to make it easy for the user to search his address book.
  • If your app stores contact information, it’s a good idea to store it (when possible) in the main address book, which is backed up, and possibly synchronized with the address books in other applications.

The framework’s API is pretty simple, but I want to mention a few non-ovious aspects of it, as well as one bug, that I encountered while working with groups.

(more…)

Classy

Monday, August 24th, 2009

I mentioned Mark Webber before, after he won his first F1 race. Yesterday he had a far more dismal result, but I thought his post-race comments showed a lot of class, and are worthy of remark:

The long and short of it was that I wasn’t quick enough today – it was a tough race. I’ve been struggling all weekend and I think I got the result I deserved, which was no points, unfortunately. We were a little bit unlucky around the pit-stops, with Lewis (Hamilton) coming back out in front, but that’s the way it goes.

An admirable example of forthrightness, I think.

Technique

Sunday, August 23rd, 2009

From James Bowman’s Inglourious Basterds (sp?) review:

(more…)

MAF: Quotes

Saturday, August 22nd, 2009

S. L. A. Marshall heads off each chapter of “Men Against Fire” with a quote related to that chapter’s subject. This isn’t a particularly novel technique, but many of the quotes are interesting and/or poetic. Below the fold are the ones I think worth reproducing.

(more…)