Thursday, December 24, 2009

warning: check_safe_call: could not restore current frame

Lots of vague causes for this error.

It was happening when I created my 12th 1500x1500 UIView and added a UIImage to it. Making the UIViews 900x900 resolved it.

Stop iTunes from auto launching when connecting iPod

System Preferences -> Accounts -> Login Items -> Delete iTunes Helper

Decimals in BC

Set the scale variable to the number of decimal places you want.

scale=5

Friday, December 18, 2009

Bandwidth throttle in OSX

I use this to throttle traffic when I want to test things at Edge speeds in the iPhone simulator.
sudo ipfw pipe 1 config bw 20KByte/s
sudo ipfw add 1 pipe 1 src-port 1-50000
Then this removes the throttle:
sudo ipfw delete 1