HwanJoonChoi.com

HwanJoonChoi.com

Feb 8 / 2:34am

Die Xcode Die

I swear Xcode has wasted tens of hours of my productivity... I will probably need to allocate 5 hours or so tomorrow night to reinstall OSX on this computer.  I hate you Apple user migration tools.  Fool me once, shame on you, fool me three times, fuck you.
Filed under  //  dev   iphone   rant   wtf   xcode  

Comments (0)

Dec 25 / 11:44pm

fall through case sucks

ugh just wasted an hour tracking down a bug (Objective-C), only to realize i left out a break statement between two case blocks. this ended up looping between the two cases.  i seem to recall someone telling me i should avoid switch statements at all cost, because it offers very little benefit (and these bugs are bound to happen). ruby got it right with their "when 1,2,3" style switch statements.

on a plus side, i found a royalty-free (donation based) music archive. has a pretty decent collection of reggae music, so i guess i'll be makin g a

Filed under  //  dev   objective c   ruby  

Comments (0)

Dec 15 / 7:22pm

bartCheater

checked in bartCheater on GitHub. basically useless to anyone other than myself, but it tells you what reverse-flow train you can take and until what station so you can get a seat on the BART. It runs on Sinatra w/ Prototype, and optimized for my Android G1.  It's my first project running Sinatra since tinkering with pinkyurl. Also trying Heroku for the first time and setting it all up was pretty easy.  i set up CoolCurlings.com on Heroku as well, and might switch ChoiBean.com into a Sinatra project on Heroku as well.
Filed under  //  android   bart   bartcheater   dev   g1   github  

Comments (0)

Dec 13 / 3:14pm

start mongrel on reboot

[/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
Filed under  //  bash   dev   ruby  

Comments (0)

Nov 9 / 6:36pm

Redo

@hc5duke: developers: can we standardize the shortcut key for "redo"? i don't care if it's ctrl+shift+z or ctrl+y, we just need to pick one. like now.

Filed under  //  dev   rant   redo   twitter   undo  

Comments (0)

Sep 21 / 4:02am

Starting an iPhone app with status bar hidden with SDK 3.0

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.

Filed under  //  dev   iphone  

Comments (0)

Sep 8 / 4:22am

here we go again (re-re-re-reinstalling OSX)

Because I didn’t read this Friday I ended up reinstalling Snow Leopard and Leopard each about 2-3 times, and now I’m re-re-re-installing OSX.  Chronicling the process once again:

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

Filed under  //  dev   snow leopard  

Comments (0)