[/etc/init.d] $ cat curling-site.sh
kill -9 `cat /(blah)/curling/tmp/pids/mongrel.pid`
rm /(blah)/curling/tmp/pids/mongrel.pid
cd /(blah)/curling/
/(blah)/curling/script/server -d -p300
[/etc/init.d] $ update-rc.d script_name defaults
Summary: if you started an iPhone project before SDK 3.0 came out and all of a sudden you’re (wrongly) seeing a status bar at launch, convert your App-Info.plist to an XML format.
It was supposed to be easy, in the application info plist you need to enable this key
UIStatusBarHidden
But for some reason this was not working for me. I was pretty sure this was working at some point before, but git bisect wasn’t helping me out. Naturally, I googled around for several hours with no luck, but every time I start a new app, setting UIStatusBarHidden just worked correctly.
It got to a point where I was going to rewrite the whole app (if I had done that from the start, it probably would have taken less time), but then I noticed something - my (bad) Curling-Info.plist file was a pseudo-array like this:
{
…
UIStatusBarHidden = YES;
…
}
Whereas in the new (good) plist, it was in an XML format:
<?xml version=”1.0” encoding=”UTF-8”?>
<!DOCTYPE plist PUBLIC “-//Apple//DTD PLIST 1.0//EN” “http://www.apple.com/DTDs/PropertyList-1.0.dtd”>
<plist version=”1.0”>
<dict>
…
<key>UIStatusBarHidden</key>
<true/>
…
</dict>
</plist>
I even tried playing around between “true” and “yes” and the only conclusion I can come up with right now is, the XML version just works where the curly brackets fail.
I’m 99% certain that the old way (non-XML) worked with pre-3.0 SDK - it must be some backward-compatibility error Apple introduced with the new SDK. The XML file is (I’m guessing) new in 3.0, and in the process, some of the properties using the curly brackets stopped working.
2009-09-06
23:00 installed OSX. MacPorts & QuickSilver were the first to be installed, and immediately disabled Spotlight.
23:30 Firefox, Thunderbird (haven’t decided if I’d use this), WebKit, VLC, Google notifier, console fonts, iphone SDK+xcode were next
2009-09-07
08:50 downloaded my dev folder from Richard’s dev machine. coudln’t untar my App folder, probably privacy issue, oh well.
09:00 Adium
09:30 Transmission, Handbrake - I always get these two confused. Good thing I drive automatic.
10:00 MacVim
10:30 Aptana
11:30 sudo port install git-core +svn (took forEVER!)
12:00 installed Opera (for Alex’s facebook)
12:30 sudo port install mysql5-server-devel (also taking forever)
12:50 sudo port install mongrel
13:00 off to IHOP!
14:00 back!
14:30 sudo env ARCHFLAGS=”-arch i386” (not sure if this is necessary)
14:31 sudo gem install mysql — —with-mysql-config=/opt/local/bin/mysql_config5 (Hmm that’s not working!)
14:35 sudo port install rb-rubygems
14:40 Walmart run!
15:30 replaced bike tire tube
15:40 sudo port install rvm (just for the hell of it)
15:55 sudo gem install rubygems-update
16:00 sudo port install rb-rail
20:00 ok after tackling this and goofing off, figured out I needed to set up launchd and restart the machine, now mysql seems to be working.
21:20 done with dinner… I think I’m done now. messing around with vim colors now