Archive for the ‘osx’ Category
For those who are curious about how is my mac hackintosh setup. Here is I uploaded some good pictures of mine.
For motherboard, I can’t clearly shot it. My camera lost focus when it is too close.
I usually use my second monitor at right side to code using textmate and use the main monitor to open the browser. There is no specific reason, but I must say that color quality of SyncMaster 931BW is much better than the other one, SyncMaster 732NW.
I feel comfort while working like this.
There are some hackintosh issues that I could not fix so far. I wish I could fix them later. Right now I don’t have enough time to play with it.
Ok, here are:
- Quartz Extreme doesn’t work with my 7950 card, not a big deal.
- Paralels can’t work, I wish I could run windows as virtual machine, I don’t want bootcamp. Single boot is good, my hackintosh run 24/7, I write codes in osx daily, but I have some seo tools run under windows only.
- Timemachine can’t work, it would be perfect if I have hourly backup with timemachine for data archiving and superduper run everynight for fast data recovery
If you have some directions, please drop me a message here. Thanks!
In earlier post I talked about 8600 gt. Now I really want to have dual monitor work. With 8600 gt I have an unsolved problem. The nvenabler could not perform dvi output. I know it must be something wrong with NVCAP value. I gave up with this card. Unplug it and I use the older but it has a lot of more powerful vga card, EVGA 7950 GT 512MB DDR3 ..
Instead of VGA/DVI connector, this card has dual DVI output. The NVEnabler could not recognize it. It give a black background, but somehow the mouse cursor appear. But it is helpless.
I go with safe mode, use -x when booting. Then install NVInjector 0.2.0. I didn’t use the kext file, but I got a universal installer. I will upload this file later in other post since it’s quite big. Then reboot.
My configuration is main monitor in DVI and second monitor in VGA (using DVI-VGA converter). Go to system preferences as usual, then monitor. Click ‘Detect displays’ to enable the second monitor. It work!
The main monitor, syncmaster 931bw with DVI connector has problem. It doesn’t run in native resolution. While the second monitor detected and work with its native resolution. I use switchresx to create custom resolution. Then reboot to active it.
Perfect! It work!
There is another issue, but not a big deal for me. Quartz Extreme is not supported. All monitor work on their native resolution is enough for my eyes. I also see higher temperature, cpu core run at 51-52 celcius. With 8600 gt it is cooler, 47-48 celcius.


I just fixed a random shutdown. When cpu in highload or around 55 celcius, the computer suddently off. I can’t turn it on unless unplug the power cable for a few seconds. It seems power suply issue. I replaced with other cheap and unused power supply 400W
. I’m glad it work very well now.
I have two unused nvidia card, biostar 8600GT 512 and evga 7950GT 512. The 7950 has more power, but right now I want to use 8600, because I have no game installed in my pc at the moment.
I use nvenabler.pkg. Just run the file then reboot, it should work fine. You will get 1024 resolution first after installation, just go to system preferences to switch back to the native resolution you have. In my case, it is 1440×900.
Here is the file: NVEnabler.pkg

I’d like to share my favorite xgettext command to scan recursively the entire folder and its sub folders.
xgettext -o ../script.pot --from-code=utf-8 --keyword=_t --width=300 --no-wrap $(find . -name "*.php") |
You may want to remove unnecessary parameters like –keyword=_t (I use my own _t() instead of _()), –width=300 really not necessary, and –no-wrap, useful for me to write my own .po file parse. In my case, I need to convert it in array.

I need to run xgettext to parse gettext string with my osx. Although osx is build based on BSD a unix variant, it is not easy to get gettext and other gnu tools running on osx.
…until I discover FINK. If you familiar with apt-get in ubuntu, then I feel that fink is something similar.
If you use snow leopard, you should download and compile it yourself, perhaps you need xcode .. or gcc .. haha … don’t ask me how. Fortunately I use leopard, so I use binary package in .dmg file
After fink installed, open terminal and type
fink install gettext-tool |
Enter your osx password when it ask for password. After installation finished, you can use xgettext and msgfmt as usual.

I use textmate as my main php editor for mac. Once you get used with it, it will increase your productivity. Unfortunately, textmate doesn’t work with php very well out of the box. You must configure it and use the custom php bundle.
Here is how to get the custom bundle.
1) Open terminal
2) Execute the following commands:
mkdir -p /Library/Application\ Support/TextMate/Bundles |
cd /Library/Application\ Support/TextMate/Bundles |
svn co http://svn.textmate.org/trunk/Bundles/PHP.tmbundle |
If you have textmate running, try to reload the bundle. You will see a new PHP bundle.
Ok, before I go further, please keep in mind that this is only happen to hackintosh pc
First, prepare an empty harddisk. Then, you need to install EFI to the disk. Use EFI that work with your hackintosh. I got mine work well with Chameleon EFI 1.0.12. If you need the file, here is: chameleon efi 1.0.12. You only need to do this once.
After EFI installed, you can run superduper backup on this disk. Before you use this disk for long term use, make sure you have tested this backup disk. Just unplug the SATA cable from the main harddisk. If it boot well, then it is perfect!
When running superduper, I encountered this error. According to direction from netkas forum, here is how to fix it.
Edit /Library/Preferences/SystemConfiguration/NetworkInterfaces.plist
Changes <dict> section to:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | <dict> <key>BSD Name</key> <string>en3</string> <key>IOBuiltin</key> <false/> <key>IOInterfaceType</key> <integer>6</integer> <key>IOInterfaceUnit</key> <integer>3</integer> <key>IOLocation</key> <string></string> <key>IOMACAddress</key> <data> ABbPoF5V </data> <key>IOPathMatch</key> <string>IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/P0P3@1C,2/ IOPCI2PCIBridge/pci14e4,4311@0/AirPort_Brcm43xx/IO80211Interface</string> <key>SCNetworkInterfaceType</key> <string>IEEE80211</string> </dict> |
Then reboot.
“CFGetHostUUIDString: unable to determine UUID for host” error will be eliminated
Updating a working hackintosh pc is risk task. Make sure you have good backup. You can use timemachine or superduper.
Ok, I updated 10.5.5 to 10.5.8. Here is the step by step:
1) install disabler.kext and dsmos.kext
2) reboot
3) I assume you have created full backup before, so now take the risk. Download 10.5.8 combo update from apple website.
4) After installation finished, it will reboot. If it take long, then it may your reboot function doesn’t work. Wait until 30 minutes or force to shutdown with pressing power button for a few seconds.
5) Boot as usual, leopard will continue updating. It will reboot again. If reboot failed, wait until 30 minutes. Then force shutdown like before.
6) Now boot again, you should now have leopard updated to 10.5.8. If you use ps2 mouse and keyboard, they might not work again. You need to use usb one.
After update. I notice that leopard failed to recognize my processor. It show up as 4GHz core 2 duo. But it is not a big deal
The main reason I updated to 10.5.8 is new safari requirement.


