I use Charles proxy to debug my network traffic. This requires setting the device or emulator proxy to point to my local ip address where Charles is running. Charles can then intercept the device’s network traffic. This post outlines how to set the proxy for android devices and emulators.
Category Archives: Tutorials
Swift: A whirlwind introduction
I gave a talk on Apple’s new programming language Swift at Tech Meetup in Edinburgh yesterday. These are my slides. All part of my plan to get more involved with the brilliant tech community out there. Enjoy!
7 iOS Tips to Help you Avoid Common Memory Mistakes
There is no argument to be had about whether ARC is beneficial. The reduction of boiler-plate memory code, is alone, enough to justify its use. The elimination of issues resulting from objects being incorrectly retained or released also saves developers untold hours debugging weird memory management issues.
However much ARC has simplified matters, issues will still arise if memory management is not adequately understood. These issues commonly fall into two categories, retain cycles and accessing released memory.
Updating the Samsung Galaxy S2 to Jelly Bean
In a bid to get Google Now goodness on my Samsung Galaxy S2 I have decided to upgrade to Android 4 Jelly Bean . Waiting for Samsung to update anything is about as productive as watching grass grow, so I have opted to install a Cyanogen rom.
I have been using Cyanogen roms since their early days with good results. They provide the latest tech, are stable, add a bunch of efficiency improvements and come with some nice UI extras (but luckily not the bloated overlayers that manufacturers sometimes add). I am currently using an old ICS nightly build which has been so good I never felt the need to switch to the release version when it became available.
If you want to update your phone to the latest Jelly Bean goodness read on… be warned, by doing so, you risk bricking you device, voiding your warranty etc etc. Continue reading
Adding Older Simulators to XCode
The straight-forward way to add additional Simulators to XCode is via Preferences. XCode 4.5.1 comes preloaded with iPhone/iPad Simulators for SDK 6.0 and the option to download 5.0 and 5.1.
However other versions are getting little love. If you need to support clients on older versions of iOS this is a problem. Luckily, adding older Simulators to XCode is easy.
NOTE: XCode 4.5 has dropped armv6 support so can no longer be used to develop for iOS <4.3. Adding armv6 simulators such as iOS 4.2 to XCode 4.5 will have no effect, they will simply be ignored.