Fix Crittercism’s lack of logging

Uncategorized
Crittercism does not log exceptions to the console, which sucks while you're developing. To fix this, you can proxy their exception handler with your own, something like this: @implementation AppDelegate void myExceptionHandler (NSException * exception){ NSLog(@"Caught top-level exception: %@: %@\nStack:\n%@", exception.name, exception.reason, [NSThread callStackSymbols]); crittercismHandler(exception); } static NSUncaughtExceptionHandler* crittercismHandler; - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [Crittercism enableWithAppID:@"your app id"]; crittercismHandler = NSGetUncaughtExceptionHandler(); NSSetUncaughtExceptionHandler(&myExceptionHandler); .... } If you use several libraries that auto-install their own exception handlers, such as flurry + testflight + crittercism, you can use this proxying trick to get out of exception handling hell. You may also want to consider the GTMStackTraceFromException function from the Google Toolbox For Mac to log a full stack trace.
Read More

Life in the information age (a response to PRISM)

Uncategorized
I apologize up front for my rambling style. I promise these first few jaunts/missives connect up at the end. A few years ago, I saw a profoundly disheartening and disturbing movie, Taken. The movie portrays a james-bond-alike saving a young abducted person from being sold to a highest bidder. In the end, the girl was predictably saved, and all evil-doers were vanquished (or at least held at bay until the inevitable sequel) - and all was right with the world. The disheartening part of the film was not the ending, but, instead, the realization that the world the movie portrayed was very real, and the ending in many cases, is not at all what the movie would have you believe. You hear urban legends of these types of things, and…
Read More

Goodbye Google Reader, You Will Be Missed

Midnight Ramblings
Goodbye Reader. I will miss you. Back in my PayPal days, with many predictable big-company-engineering idle moments at hand, waiting on hour-long builds to see if I got all my semicolons just right, my friend Wayne introduced me to you. Almost immediately, he and I spent a few moments one afternoon making one the arguably largest contributions I've ever made to mankind's happiness: a better cyanide and happiness feed, just for you (and, well, ourselves..). A few months later, Wayne declared RSS bankruptcy and shrugged you off for good, or at least for the most part. I suppose, given that you're shutting down, many other Waynes out there followed the same path. They say RSS is dead. They say the future of sharing important information is my relatives sharing meme…
Read More

Loss is a sickness.

Life and Philosophy
We lose stuff all the time, our keys, loose change forever embedded into secret areas of the couch, occasionally, our wallet. Some stuff matters a little, most doesn't matter at all. What we do not lose so often, for better or for worse, are the things that matter. It may seem good fortune to live a pristine life of luck, free from true loss, but in a sense, a life without house fires, theft, or death, is a heavier tragedy than a life with those experiences. A life without loss, is a life unlived - a life of innocence and ignorance, a blissful experience missing the bigger picture of truth: the simultaneously tragedy and beauty of the human experience and mortality. Everyone experiences loss and reacts differently, some people hoard…
Read More

Linus is no fool.

Quotables
Linus is no fool, he knows the key to marketing success is having people constantly talk about your product. So, the most successful product idea ever is obviously a version control system so complicated that every engineering conversation ever for the forseeable future is dominated by talk about his product, such as "Well, I'd love to share my files with you, but.. well, how do we do that again with git?".
Read More

fix2x.sh – automatically create/resize @2x and non-@2x images for IOS

IOS Product Development, Unix
I've put together a quick bash script to automatically generate @2x and non-@2x images for IOS. The script looks through a directory, auto creates missing @2x or non-@2x files, and auto resizes the non-@2x files. Instructions: Download fix2x.sh from the Coder Cowboy Scripts GitHub Repo Copy the script to a directory Copy your original .png or .jpg files to the directory Open terminal & do something like the following: $ cd ~/Desktop/2x/ $ chmod +x fix2x.sh $ ./fix2x.sh . Script output will look something like this: Now processing file: ./normal name.png CREATING ./normal name@2x.png Original width: 15, height: 11 Small width: 7, height: 5 /Users/jason/Desktop/2x/normal name.png libpng warning: zero length keyword libpng warning: Empty language field in iTXt chunk /Users/jason/Desktop/2x/normal name.png Now processing file: ./twox name@2x.png Creating ./twox name.png Original…
Read More

Oh, you think meritocracy exists? Tell me more about how you’re always overlooked.

Life and Philosophy, Midnight Ramblings
So you want to talk about meritocracy, and how hard work will pay off, and justice will come your way someday? Cool story, bro. My turn, let me start with a little story that's slightly less crazy than your imaginary meritocracy pipe dream - something ridiculous about growing up religious. I grew up being an ungrateful little shit, coming from a long line of ungrateful little shits, growing up religious in Texas. Don't get me wrong, I didn't have to be an ungrateful little shit - after all, I was born a white male, in America. A lot of my first-world-problems complaints in life have never really amounted to more than this: Religious in the South should be qualified, because down here religion can sometimes (or sadly, often..) be different…
Read More

A Trillion Dollars & E.T.

Life and Philosophy, Midnight Ramblings
Music: Blonde Redhead - 23 (the song) This is one of those fun, or, perhaps, overwhelming number games. It's going to be like the drake equation, where we're throwing numbers around, stacking assumption on assumption on assumption, and surely several assumptions will be wrong, and the number of zeros will get quite insane, but in the end the point will be: there's life out there. The other day I was at a concert with my wife, for this phenomenal one-man-country-blues-band called 'Shakey Graves'. This guy's amazing to see live, super intense, and supremely talented. He left his guitar behind at the last show a town or three over, so he had to rent some equipment that night. Naturally, his rental equipment popped a string or two during the very first…
Read More

Waking With The Sun

did you mean tumble?, Life and Philosophy, Midnight Ramblings
Music: Blink 182 - Pretty Little Girl .. It's time to switch from our designer's credit card to the LLC's, because, we're lucky enough to have enough income that our LLC credit card can cover that no-longer-free Amazon VM. Adam tries his best to convert non-straight-forward AWS pricing structures into toddler level english, so idiot peer, me, can understand what the hell we're looking at. He repeats himself 3 or 4 times, switching back and forth between 3 tables that might as well read 'lorem ipsum..' on them - it's all greek to me, when he switches to hard numbers from our past month's hosting to translate gigabytes to dollars - we both stop talking. That's not right, 90 gigabytes in transfer last month? What the hell. We're being hacked,…
Read More

Life & Career Lessons – 2012

Life and Philosophy, Midnight Ramblings
Music: Angels and Airwaves - Diary I'm always a little late on the 2012 lists, stick with me, this'll be worth it. Executive Summary of 2012: I started 2012 by taking a bit of a risk careerwise, where before I had been the enterprise huge-company guy, I ventured into mid-sized startupish culture, pushing myself out of my personal comfort zone in terms of commute and direction. I was getting into mobile (IOS) development in my spare time, but still wanted to fill in some experience gaps I'd missed in previous opportunities. I had a good 10 month run at a great 'startup' in downtown Austin, was laid off, felt my world was upside down for a little while there, and came out of the tailspin - righted myself and found…
Read More