The Trouble With Information

Life and Philosophy
The troubling thing with professors not allowing students to cite wikipedia is the underlying truth that the debate hints at: everything you read anywhere has spin, misinformation, and exaggerated half-truth built into it. You can't trust anything you read, unless you can prove the truth behind it. If your proof is Google PageRank style "Well these four authors say its true, so it must be..", then you're standing on a house of cards. The troubling part is that some authors dare to claim they author non-fiction. The truly troubling part is that we listen to such "news" and accept hearsay/spin as fact. We then internalize it, compile it into belief, and then act on belief, retelling the story to our peers via the grade school telephone game. History is (re)written…
Read More

TortoiseSVN not importing some files? Fix your permissions.

Tips, Unix, What I Just Learned
If TortoiseSVN (or SVN in general) seems to be skipping over some files when importing a project, there are a couple of causes to be careful of. First, make sure your permissions are set correctly, I just do the following in a dos box (after installing cygwin, of course..) in my project folder before import: chmod -R 777 * If you've already imported your project and the project folder is versioned, and TortoiseSVN is still giving you hell, you may have to right click on individual files it previously skipped and select tortoisesvn->add from the popup menu. Doing this at higher levels in the directory structure won't even show the permission-fixed files as addable :( If that doesnt seem to solve your problem, you may want to search for svn…
Read More

Beware zombies w/ ARC.

Tips, What I Just Learned
If you're using Automatic Reference Counting in your IOS project, make sure to turn NSZombieEnabled OFF. If you don't, parent object deallocation will never deallocate child objects. In our case, we had a project that was more than a year old, that we recently migrated to ARC. Our project targets are configured as follows: iPad project - ARC ON iPhone project - ARC ON "non arc" project (collection of third party non-arc code) - ARC OFF The following code shows an example of this in an easy test: TestArcStrong.h #import @interface InnerObject : NSObject @end @interface TestArcStrong : NSObject @property (strong) InnerObject * object; + (void) runTest; @end TestArcStrong.m #import "TestArcStrong.h" @implementation InnerObject - (void)dealloc { NSLog(@"inner dealloc"); } @end @implementation TestArcStrong @synthesize object; - (void)dealloc { NSLog(@"outer dealloc.."); }…
Read More

App store rejection for immediate crash

IOS Product Development
One of the apps I work on, TumbleOn, had a new version of the app rejected during review because it "crashed immediately". The troublesome part with the rejection was, we couldn't reproduce it. Every device we could find and hook up to xcode would run the app beautifully. If you're experiencing a similar problem, the problem doesn't show up when your app is being installed from the run menu of xcode. The crash only occurs when the archived .ipa file is dropped on to the device via xcode's organizer. In our case the fix to this problem was to update from xcode 4.3.x to 4.4. We found some threads on stack overflow saying this may be related to arc migration (something we had done), specifically something about armv6 and armv7…
Read More

The worst salesman ever.

Life and Philosophy
Fair warning, this post is filed in the 'life & philosophy' file, and it's going to seem a bit tangental, but stick with me. I have a feeling many a programmer and otherwise intelligent readers will be able to relate. I hate funerals. It’s probably safe to say most people are not fans of funerals, so let me be more specific: I hate funerals in the south. Your average funeral has a few friends, coworkers, and perhaps family members say a word or two about positive aspects of the deceased. Then, if the deceased was religious, or more specifically, if the person running the funeral proceedings is, a preacher will say some words and hopefully leave everyone with a little bit less pain and sorrow. The thing about funerals in…
Read More