I rarely do full backups of my iPhone because I don’t usually have 64GB free on my drive but in preparation for iOS7 I knew I needed to do it.
Unfortunately there is no way in iTunes to specify an alternative drive to backup. Luckily I found this post stating you can symlink another folder on a remote drive in the place of your regular backup folder. The OS knows no difference:
# You may need to move or delete your old Backup folder first.
ln -s /Volumes/drivename/iBackup/ ~/Library/Application\ Support/MobileSync/Backup
Here’s a great writeup on the new HTML5 improvements that rolled out for iOS6:
The biggest improvements is native
file upload support for web apps (no more need for Phonegap?) as well as remote webkit debugging.
Enter Weinre. Weinre is a beta project written in Java that allows you to have a remote Webkit inspector-style debugging console on your desktop that can communicate with your mobile device. You can send alerts, do full console logging—even inspect the remote DOM tree. It’s in beta and occasionally a little buggy but totally useable.
To use it, run the java server on your local machine and add a single script tag to your project. You can also just download the Mac executable here. The full documentation is here – (its not very straightforward so post here if you have questions.)
At work, we use Charles to redirect production apps to our local dev server. My local server.properties file looks like this:
~/.weinre]$ cat server.properties
Thanks goes to coworker Jim for being the first Guinea Pig to try it out.
We were experiencing consistent bootup crashes for a game with embedded web views. Took us a while to track it down but if you use
in the same CSS declaration, it will trigger a bug in Mobile Safari and the game will crash.
I’m optimizing the web views of an iPhone app in preparation for Christmas traffic and one of the ideas I had was to use small increments of Expires header to cache files client-side. I assumed this would be no problem as all my work with Safari on the iPhone has shown it a very capable browser—as good as any desktop one.
Turns out after some testing that using Expires Header isn’t possible— not because of cache size limitations as one would assume. It looks like the guys in Cupertino wanted to limit this ability on the iOS as every HTTP request made by an iOS device issues a pragma: no-cache directive. I’ve yet to understand why. Better fire up more memcache servers.
Here’s the raw headers if interested: