Debinaize It

January 16, 2009

Tips: Download iPhone SDK with wget

Filed under: MacOSX, Scripts, Tips and Tricks, Xcode — zaher14 @ 3:57 pm
Since its final release, I’ve been trying to download iPhone’s SDK from Apple’s website. The whopping 1.6 GB download seems a pretty daunting task in my unstable line, and some of apple’s web sites features made it pretty impossible in no time.

My download failed three times after 50-70% completion, each time either I have manually paused the download for some reason or my connection was having some problem. And apples server did not give me any resume feature in any of the download  managers. Downloading 1.6 GB with Firefox’s own download manger seemed an option, but what if Firefox crashes?

At last, I thought of giving good ol’ wget a try and it didn’t fail me. If you are in a similar situation like me, try this.

  1. Downlaod ‘Export Cookie’ addon for firefox from here
  2. Log into iPhone Developer Site using your apple developer account, if you don’t have one, just register, its free.
  3. Export your cookie using the addon to a file named ‘cookies.txt’
  4. Run this from the command line

    wget --limit-rate=5k --tries=inf -server-response --continue --load-cookies cookies.txt http://adcdownload.apple.com/iphone/iphone_sdk_for_iphone_os_2.2__9m2621__final/iphone_sdk_for_iphone_os_2.2_9m2621_final.dmg

Now you can pause and resume the download at your will. I have used –limit-rate=5k so that I can also browse without much overhead.

April 21, 2008

Tips: Enabling Eclipse Style Code-Sensing In Xcode 3

Filed under: MacOSX, Xcode — zaher14 @ 1:36 pm
By default code sensing is disabled in Xcode 3. Here is how you can enable that with Some Eclipse Flavor (another of my favorite IDEs).
In Xcode, go to preferences > Code Sense and Make sure “Immediate” is selected in “Automatically Suggest” drop down list.
Now go to key bindings and add Control+Space for (^Space) “Code Sense Completion List”.

Now when you code, just press Control+Space for a list of possible functions and variables.

Theme: Silver is the New Black. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.