Saturday, December 31, 2011

Resolutions for 2012

For the first time in history, I am publishing resolution list online, let see if this helps.

  1. Shed at least 5kg weight
  2. The iPhone4s which can't resist myself from buying should be the last gadget for the year.
  3. Donate the pile of books I'm keeping to the library
  4. Publish at least 2 iOS apps
  5. At least 2 mac apps
  6. Publish at least 5 prototype from my idea vault.
  7. Gift at least one device
  8. Author 5 library/codes on Github
  9. Gift/sell my other devices - Too many Apple devices 
  10. Learn a new language/Framework (Ruby, Coffeescript, Node?)
  11. Build at least 2 Html5 app/util
  12. A vacation? I didn't leave home for almost 4 yrs.

Other than this there are quite a lot like perfect pitch training, learn a music instrument, painting etc., I carry from previous years.

I will sincerely try to complete these list before 21st Dec

Saturday, December 17, 2011

iCloud Gotchas

Integrating iCloud with core data was easy when I found this tutorial, but I ran into few issues while implementing and testing it on devices. And here are the steps how I managed to solve it.

Issue 1:

The entitlements specified in your application’s Code Signing Entitlements file do not match those specified in your provisioning profile.


If you create a new application Id and enable iCloud then you miss the adventure. It seems enabling iCloud on existing account provide different identifiers for key value store from app identifier.

And editing .entitlements file with Xcode adds some extra identifiers i.e., {APP_IDENFITIER}

Text is an awesome format, don't ruin the beauty with IDE/ plist editors.

Solution to this problem is, copy for key entitlements from your mobile provisioning file and paste the same in place of in your entitlements file.



Issue 2:

2011-11-21 22:57:35.770 appname[6338:1c03] *** -[NSFileManager URLForUbiquityContainerIdentifier:]: An error occurred while getting ubiquity container URL: Error Domain=LibrarianErrorDomain Code=11 "The operation couldn’t be completed. (LibrarianErrorDomain error 11 - The requested container identifier is not permitted by the client's entitlement.)" UserInfo=0x1b14b0 {NSDescription=The requested container identifier is not permitted by the client's entitlement.}

If you see this issue then your missed to update [nsfilemanager fileManager URLForUbiquityContainerIdentifier:@"with your valid identifier"] in your appdelegate

NSURL *cloudURL = [fileManager URLForUbiquityContainerIdentifier:@""];

Other common issues are

  • Forgot to turn on wifi when your device is in airplane mode (It beats me every-time)
  • Forgot to switch to your developer certificate from distribution to developer signing (code signing)

Friday, December 9, 2011

Airtel Broadband - How to find bandwidth usage

If you would like to keep tabs on your bandwidth usage?

It is good to know your usage, the 10Gb fair usage plan from Airtel is peanut for my usage as I download a lot of TED & iOS Dev videos from iTunes.

I'm also sick of Airtel as they hijack all my trafic after FUP, even all https are redirected to http (sic).