Increase the PHP Memory Limit on a Dreamhost Virtual Private Server (VPS)

If you've ever seen a PHP error like "Fatal error: Allowed memory size of xxx bytes exhausted..." on one of your websites, then you might need to increase the memory limit for PHP on your web server. Depending on your web host, this may or may not be possible. If you have a Dreamhost VPS, then luckily it is! Here's how you do it.

KISSmetrics for iOS on GitHub

Today I was finishing up work on version 1.4 of Pouch, and one of the things I wanted to add was some basic analytics tracking, to see how often the app was getting used (basically, just a count of how many times people launch the app). Since I'm already a KISSmetrics user, I figured that would be the best way to go. Unfortunately, there was no existing Objective-C library for interacting with the KISSmetrics API that I could find...

Saving Sessions with the Facebook iOS SDK

Recently I added Facebook image sharing to Glory Math 1, and it was my first experience with the Facebook iOS SDK. I used the newer Sign Sign-On feature, which briefly takes the user to the Facebook app to ask them whether your app can access their Facebook profile. The docs are good, and the whole process was pretty straightforward, but one aspect of the authentication process really annoys me: Every time my app launches again, the user must go through the authentication process with Facebook. The first time the user authenticates, it'll ask for access, but every time after that, it just tells the user that they already approved the application for access, and they just have to tap "Okay". This process seems pointless to me. So, I tried to find a way around it.

Pouch 1.0.1: Bug Fixes

This is just a quick note to Pouch users out there: I just submitted the Pouch 1.0.1 update to the App Store, which includes a fix for errors that said "Can't connect to the internet" or "Authentication needed". Sorry about that. The update will be available as soon as Apple approves it. Thanks for hanging in there with me!

Pouch, for Backpack, now Available

Today my new iPhone app, Pouch, is available. From the product page:

Pouch is an iPhone app for use with 37signals' Backpack. Use it to read your Backpack content in a simple, familiar format, and to create and edit your Backpack Notes.

Find out more.

Music for Programming

This one's for the developers out there, and maybe the designers too. What music do you like to listen to when you're programming or making things? The primary characteristic of music that is good for programming seems to be a lack of words. Any kind of vocals in a track distracts me very quickly (although this might have to do with my childhood as a choir singer). I prefer something that puts me into a steady mental state, and kind of stays out of the way. So, I find myself mostly listening to dance music, or more specifically, IDM (a useful but annoying term).