Sean Carpenter

Easy Score Keeper Released

I’m happy to announce that my latest iOS app has been released. Easy Score Keeper is an app for keeping track of the score in board games, card games, or any game that has rounds and a score. It’s designed to be simple enough that any family member can use it and gets out of your way so that you can get back to playing your game.

Easy Score Keeper is designed for both the iPhone/iPod Touch and the iPad. Download on the App Store

Using Passenger Standalone in an Apache Location Element

Using Passenger Standalone and RVM you can run web apps using multiple versions of Ruby on a single server. Phusion has a blog post with fairly detailed instructions on getting this set up.

One assumption in that post is that each web app will be running as its own site (using the ServerName directive inside an Apache <VirtualHost> element). In my case, I wanted to run each web app as a virtual directory in a single VirtualHost. My original configuration (with everything running the same Ruby version) looked like this:

UIKeyboardDidShowNotification Called Twice

In one of my iOS apps, I’m listening for the UIKeyboardDidShowNotification to do some view resizing when the keyboard is shown (a more detailed post on doing this is coming). Recently I noticed that my selector was being called twice when the keyboard was shown on iOS 6.

An Easy Macro for Checking iPhone vs. iPad

When working on a universal iOS app, I occasionally have the need to check what type of device the app is currently running on. This is pretty simple to do using the currentDevice static method of the UIDevice class. This gives you a UIDevice instance from which you can check the userInterfaceIdiom property. If you only need to check in one or two places this is sufficient: