Show Hidden File In Mac OS X

January 7th, 2011

Using Terminal application in Utilities Folder

To show hidden files:
defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder (This is to restart Finder for above attribute to take effect.)

To hide hidden files:
defaults write com.apple.finder AppleShowAllFiles FALSE
killall Finder

Change XAMPP default user

February 23rd, 2010

For Mac version of XAMPP, the default user is “nobody”

To change the default user to the mac user you are logging in, you need to use “sudo” command to edit XAMPP configuration file.

If you are using normal text editor to edit the configuration file, you will get permission denied error.

Read the rest of this entry »

From Palm to Apple iPhone

September 6th, 2009

Being a Palm Pilot fan for more than 10 years, start with Palm Pilot Professional, Palm III, Palm V, T3 and TX to the last Palm based Smartphone Palm Centro; finally, I drop Palm to move to Apple iPhone 3Gs.

With the discontinuation of Palm OS, it will become obsolete in the near future and replace with new Web OS, I did consider a Web OS based Smartphone Palm Pre, but finally I choose iPhone.

Why?

Read the rest of this entry »

Delete WordPress Old Folder in Dreamhost

August 15th, 2009

If you are using Dreamhost to host your wordpress site.

When wordpress is upgraded by using one-click install, a copy of the wordpress folder will be store as xxx.com.old.

We would like to delete it to free some space, but is can’t be deleted completely. That is because¬†there are file (advanced-cache.php -> plugins/wp-cache/wp-cache-phase1.php) been locked and FTP user do not have permission to delete it. You have to be Shell User.

Change your permission using Manage User Function in Dreamhost Control Panel. Then using SSH clients such as Putty to telnet in your dreamhost FTP Server.

cd xxx.com.old
cd wp-content
rm advanced-cache.php