Monday, October 17, 2011

Installing XCode/IOS Simulator on Mac OS 10.6.1

First you need to upgrade your Mac OS.
Click on the Apple Icon -> Software Update and follow the instructions.
In my case it downloaded 1.33GB of updates.
First time it wasn't downloaded correctly so it asked me to download again.
I did that and restarted and I had been moved to Mac OS 10.6.8.

Then I installed the .dmg file for iOS SDK(4 GB). Instructions.
So, in all, I ended up downloading 7GB of data just to install XCode on my MAC. Amazing !

Sunday, October 16, 2011

Downloading iOS SDK from command line through wget

1. Install Export Cookies Extension for Firefox.
2. Login to iOS Dev Center and start downloading the file, after a
while cancel the download.(from the Downloads Window, get the download
URL)
3. Export cookies to cookies.txt
4. Upload cookies.txt to the server where you want to use wget.
5. Login to your server and :
wget -U firefox -ct 0 --timeout=60 --waitretry=60 --load-cookies
cookies.txt -c <download_url>
6. My download URL :
http://adcdownload.apple.com/Developer_Tools/xcode_3.2.6_and_ios_sdk_4.3__final/xcode_3.2.6_and_ios_sdk_4.3.dmg
7. This file is roughly 4 GB in size !

Installing Google Command Line

http://code.google.com/p/googlecl/wiki/Install

Friday, October 14, 2011

orable table row count

SELECT table_name, nvl(num_rows,1) 
FROM dba_tables where table_name like 'XYZ';

Sunday, October 9, 2011

Mac OS : Forcing black ink printing for Canon MP280 series printer

System Preferences -> 
Printer & Fax -> 
Select Canon MP280 on left -> 
Options & Supplies ->
Utility ->
Open Printer Utility ->
Ink Cartridge Settings ->
Ink Cartridge : Black Only

Wednesday, October 5, 2011

Objective C Programming on Windows

Source

Steps : 
1. Download and install these 3 exes : GNUStep 0.23 (System | Core | Devel)
2. Open Programs -> Gnustep -> Shell
3. Create helloworld.m :

 #import <Foundation/Foundation.h>
  int main (int argc, const char * argv[]) { 
  NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];  
 NSLog (@"Hello World!"); 
  [pool drain];  
 return 0;
 }

 4. gcc -o helloworld helloworld.m -I /GNUstep/System/Library/Headers -L /GNUstep/System/Library/Libraries -lobjc -lgnustep-base -fconstant-string-class=NSConstantString

Mac OS quitting front most application

Command + Q

Mac OS Keyboard shortcut for spotlight

Command + Space Bar

Tuesday, October 4, 2011

Mac Window maximize keyboard shortcut

System Preferences
-> Keyboard & Mouse
-> Keyboard Shortcuts
-> Click the +
-> Make sure it says All Applications in the dropdown.
-> In the menu title type in "Zoom" (Capitalization matters, I believe).
-> Click in the keyboard shortcut area and set the keyboard shortcut
you want. I'd make it a alt-space-x

Useful gmail keyboard shortcuts

g k -> show task window
Esc -> hide task window
tab Enter -> send mail

Monday, October 3, 2011

Pig RegExp Match

recs = load 'a.txt';
recs1 = filter recs by $0 matches '.*hiv.*';
dump recs1;

Blog Archive