content top

Easy Debugging with NSMutableURLRequest

This post is a sequel to one of my previous post, Easy Debugging with ASIHTTPRequest. I previously showed you a code snippet for logging ASIHTTPRequest as curl commands on command line. I’ve updated that code for NSMutableURLRequest, which means, you can use it for almost any third party networking kits, including the recently famous AFNetworking. The Drive The main necessity for this was, I always used to miss some of the parameters...

Read More

In App Purchases: Troubleshooting Code=0 “Cannot connect to iTunes Store” (SKErrorUnknown)

When using MKStoreKit or any other equivalent framework or regular In App Purchases’ StoreKit.framework, If you are getting a problem like this, Cannot connect to iTunes Store Code: Error code: 0   Error code 0 is SKErrorUnknown. It probably means connection couldn’t be established from your device to Apple. The number one reason for this is, you are using a jailbroken iPad that updated the hosts file to block traffic to...

Read More

XCode Tip: Objective-C Singleton Class Template

XCode Tip: Objective-C Singleton Class Template

Update: An updated version for XCode 4  is available. Please check it out here. I have a habit of creating Singleton pattern classes for nearly every application I write. I manage the Settings Bundle (or any app settings, thru a Singleton class), my MKStoreManager for doing in-app purchases is a Singleton class. Even in Apple’s own code you can see some Singletons like UIApplication, Reachability (from the Reachability example),...

Read More

iPhone Dev Tip: Breaking the AdHoc Provisioning Nightmare on Windows

Anti-DRM fans might quip, but iPhone Developers love this digital signatures and provisioning as it reduces piracy dramatically. But all these aren’t free. Provisioning comes with a cost, especially when you write a iPhone app and want to share it with your friends/clients for beta testing. Apple has an excellent documentation on how to do an AdHoc build. Yet still, most users stumble upon especially when they have to make a build and...

Read More

Help your visitors with a *useful* 404 Error page

Help your visitors with a *useful* 404 Error page

A 404 Error page usually informs visitors that something they were looking for is not found. I wanted to create a useful 404 error page for my blog and site. If it is only for a blog, I would have done with a multitude of plugins available for WordPress like smart 404, AskApache’s Google 404. A quick search for “404″ in wordpress extension site will reveal atleast 6 pages of extensions. But much to my bad luck, they...

Read More
Page 1 of 212
content top