Aleksandar • Vacić

iOS bits and pieces

Tip: revert pngcrush optimization in Xcode 4.3

When you are adding PNG images to an iOS app, Xcode will optimize and compress them when compiling, using a tool called pngcrush. To revert this optimization back, copy the .png files from the .ipa bundle into some folder and run this in terminal

/Applications/ -dir SOME_DIR -revert-iphone-optimizations -q *.png

SOME_DIR is a destination path, something like ~/temp.

Best Couch to 5k iPhone app on the App Store

Seriously, it is.

Go Couch to 5k 2.0 went live last week with much improved speed/distance tracking (way more accurate than before), full dailymile integration and improved integration with Twitter and Facebook. New version features a female coaching voice along with improved mail voice.

If you are thinking should you start running, go ahead and give this one a spin, it’s currently $2.99 on the App Store.

Re-charging dead Macbook pro battery after a long discharge

Recently my family went away from home for two months. While preparing to go, we left my wife’s Macbook Pro at home and got a bit of a nasty surprise when we returned. The Macbook pro wouldn’t start at all unless plugged-in. And then it showed that battery was not charging and its charge capacity is 0 (you can see this in System Information app). And the green indicator on the MagSafe adapter never went to orange (charging light), even after we left it overnight.

I then recalled similar account by Dan Benjamin - he also left a Macbook untouched for several weeks. The battery discharged so much that it was impossible to kick-start the charging again. He eventually had the battery replaced with new.