Sunday, February 21, 2010

How to install iPhone SDK 3.1.2 with xCode 3.1.4 on Mac OS X 10.5.5

After a clean install, I need to install the xCode with iPhone SDK again on Mac OS X 10.5.5. However, you should see an error telling you that it support 10.5.7 and above. To resolve this, you can do the following.

1. Edit the file /System/Library/CoreServices/SystemVersion.plist under superuser mode. I like to use vim

sudo vim /System/Library/CoreServices/SystemVersion.plist

The password should be your user password.

2. Change all the 10.5.5 to 10.5.7

3. Save and exit.

4. Start installing!

Problem with HFS+ Journal - Bad Journal Magic

I think i am just not suitable to use HFS+. I though Journal will auto recover faster and easier, in the end I am more problem. The whole thing started when My eeepc starts to hang/crash randomly especially after a major shift to the machine. I serious thing some parts is spoil or loose from the recent dismantle of the machine.

In short, after the recent crash which cause me to reinstall my Mac OS, I choose to use HFS+ Journal believing that it will recover easier. However, after it's first crash, I have this problem, Bad Journal Magic Number or something similar. Which means, it cannot read the first journal node. I have not found any solution to recover this but to make the device boot again, this is how you can turn off the journal bit.

1. Boot with Mac OS X dvd
2. Launch terminal
3. Run the following command
/System/Library/Filesystem/hfs.fs/hfs.util -N /dev/disk1s1
4. Close Terminal
5. Run Disk Uitility
6. Select the correct partition and run "Repair Disk"
7. After it shows, partition repaired, run "Verify Disk" again to verify

Good luck! Anyway, I think I cannot get along with HFS+.

How to enable Bookmark Sync in Mac

Download the latest Google Chrome from here. The version should be 5.0.307.9 beta and above.

Initially I wanted to list down how to enable it from 4.0++ beta but after upgrading I realize it is available widely, so this simple example. Enjoy!

Saturday, February 20, 2010

New Layout!

I have just change a new template. At least this looks more presentable for quotes, maybe i should try to do my own customization on the template when I have time. :)

Restoring MBR on Linux and Mac OS on eeePC

Bad things happens all at one go. My Mac OS crash on me and I am not able to recover from the B-Node problem.

Recover Grub2 for Ubuntu Karmic
--------------------------------

1. mount the harddisk consist of Ubuntu Karmic by clicking "Places -> XXGB File System"

2. open terminal and do a tail

mount | tail -1

3. You should see something similar

/dev/sda2 on /media/0d104aff-ec8c-44c8-b811-92b993823444 type ext4 (rw,nosuid,nodev,uhelper=devkit)

4. Check the boot partition by

ls /media/0d104aff-ec8c-44c8-b811-92b993823444/boot

You should see something similar

config-2.6.18-3-686 initrd.img-2.6.18-3-686.bak System.map-2.6.18-3-686
grub lost+found vmlinuz-2.6.18-3-686
initrd.img-2.6.18-3-686 memtest86+.bin

If this is wrong, then your partition is wrong.

5. Now everything is correct and is time to recover. Run the following to install GRUB into the correct directory and drive name.

sudo grub-install --root-directory=/media/0d104aff-ec8c-44c8-b811-92b993823444 /dev/sda

If you get BIOS warnings try:


sudo grub-install --root-directory=/media/0d104aff-ec8c-44c8-b811-92b993823444 /dev/sda --recheck

6. If all goes well, you should see the following.

Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(hd0) /dev/sda

More information from below:

https://help.ubuntu.com/community/RecoveringUbuntuAfterInstallingWindows

Recover Boot Loader for Mac OS
--------------------------------

Give up. After googling for sometime, I cannot find any solution, might as well reinstall, since i have reinstall from the B-Node problem. Time is important now as I am rushing to complete my development.

Wednesday, February 17, 2010

Support Multi-Touch for eeePC in Ubuntu Karmic

I have upgraded my eeePC to Ubuntu Karmic for quite some time and I miss my muti-touch, especially when I have been using Mac OS recently. Thus my quest to enable it begins. After googling around, I realized that it can be very simple.

To enable 2 finger scrolling, do the following.

Activate at "System -> Preferences -> Mouse -> Touchpad -> Scrolling -> Two-finger scrolling"

According to https://wiki.ubuntu.com/HardwareSupport/Machines/Netbooks#Asus Eee PC 1005HA , you need to install a script from the following,

http://blog.twinapex.fi/2009/10/11/setting-up-multi-touch-scrolling-for-ubuntu-9-10-karmic-koala-linux-on-asus-eee-1005ha-netbook/

however, my works when I have enable the 2 finger scrolling. Wonder what does that script do.