Archive for the 'Software' Category

High CPU usage of Directory Service in Snow Leopard

As per Snow Leopard, Apple move all DNS query to Directory Service. If you have long listed hosts file to block ads, you must have high CPU usage from Directory Service. I have dealing with it lately and had enough today. I installed dnsmasq, a lighweight dns/dhcp server via brew, move /etc/hosts to /usr/local/etc/hosts. Put [...]

IOS WordPress app working now

Finally after updated this morning, wordpress app working now. Yesterday the blog name was blank and showing up error user name and password on all action. I was given up on this app yesterday. One more thing, this post was made entirely from ios. Cheers

Opera Extentions: Mac OSX Font Rendering

WARNING: Blurry text and sluggish smooth scroll. Had to disable it. https://addons.opera.com/addons/extensions/details/mac-osx-font-rendering/?display=en

Saved by applejack

Today I found out that I have errors after verifying my disk. After hearing bad experience of my friend, his MBP crashed after disk utility repair, I start to back up all my data. No DVD boot disk available in vicinity, only not-booting old Tiger recovery disk. I was about to run the fsck after [...]

XML/ajax error

If you happen to stumble upon this error, please check your HTTP response whether they return extra line after HTTP header. Some said it’s caused by the code that have extra line before but what I found is the very same code works without extra line on a server and not working on another. Debugging [...]

Retrieving FTP folder recursively

wget -r -l depth -nc ftp://host/folder –user username –password thepassword

iOS device backup location

in OS X: ~(your home directoy)/Library/Application Support/MobileSync/Backup/ in Windows XP: C:\Documents and Settings\user\Application Data\Apple Computer\MobileSync\Backup in Windows Vista, Windows 7: C:\Users\user\AppData\Roaming\Apple Computer\MobileSync\Backup

Getting UUID of your disk

For ubuntu or debian sudo vol_id /dev/hda1 For generic GNU Linux ls -l /dev/disk/by-uuid The easiest I’ve done is blkid

Where to put the ipsw file?

If you direct download the ipsw file, just put it under -> your home directory -> Library -> iTunes -> iPad Software Updates For iPhone and iPod, I believe put to the similar named folder too. Note: if you can’t find the software update folder, just create one.

MacBook with *only* external display

Recently I’ve been using external 23″ monitor while on my desk. Plugging my Macbook Pro MiniDVI to HDMI connector to big screen is easier for my eyes, neck and pleasure. While connected, the external display is either as a mirror, which is not preferable since it will be limited to the Macbook maximum screen resolutions, [...]