Monday, April 21, 2008

Tips: Enabling Eclipse Style Code-Sensing In Xcode 3

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.

Monday, April 14, 2008

Booting Ubuntu with Vista Boot Loader

Make sure you have grub installed in the same partition as the Ubuntu, not in MBR. Now boot into any linux Live CD and do this:

$sudo dd if=/dev/sdX of=ubuntu.bin bs=512 count=1

Here X is the drive number where ubuntu is installed. Now copy the ubuntu.bin file in your Vista's \Boot folder.

Now boot into Vista and run bcdedit.exe as administrator.

C:\Windows\system32>bcdedit.exe /enum


will show you current entries in the boot menu.

C:\Windows\system32>bcdedit.exe /create {legacy} /d "Ubuntu Linux"
C:\Windows\system32>bcdedit.exe /set {legacy} device partition=C:
C:\Windows\system32>bcdedit.exe /set {legacy} path \Boot\ubuntu.bin
C:\Windows\system32>bcdedit /displayorder {legacy} {current}


Now reboot the system and see the new entry in the boot loader.

More detailed info can be found here.

Back to Blogging

After a failed attempt last year to get back to blogging, I'm trying it again this year. I really wanted to get back, but got busy will...