Archive for the 'HowTo' Category


Remove Duplicate Entry in Finder’s “Open With” Menu 0

A useful howto on removing excessive entries in Finder’s Open With menu. If you, like me, have been beta-testing several versions of the same software on OS X, chances are that when you right-click on a file, you will end up with having a ‘Open With’ menu fills with many duplicate entries of the same application. This menu list is supposed to be updated automatically by OS X itself, however, it seems that it doesn’t update it as often.

A simple and yet effective way or resetting the is as follows:

1. Go to the Preference folder located inside the Library folder in your home directory (i.e. *yourusername*/Home/Library/Preferences/)

2. Locate the file named com.apple.LaunchServices and delete it

After that you could relaunch the Finder and the Open With menu should no longer contain any duplicate entry.

Spotlight Icon Missing from the Menu Bar after Upgrading to Leopard 0

After upgrading to the Mac OS X Leopard (10.5.8), I’ve noticed the Spotlight icon has gone missing from my menu bar (see attached picture). After poking around the system, I found that some directories are with invalid permissions. I have no idea as how this happened, maybe it occurred during the upgrade process?

Anyway, I run the Disk Utility ( Applications -> Utilities ), select the startup disk (the disk where you have OS X installed) and then click on Repair Disk Permissions. It found quite a few errors and then fixed them accordingly. After the repairing process and reboot the OS X – guess what, the Spotlight icon appeared once again on the menu bar and functioning correctly. It seems that those incorrect permissions somehow prevent Spotlight to appear and function properly. I guess it’s always a good idea to run a Repair Disk Permissions whenever you upgrade the system anyway.

MenuBarOFLeopard

Restarting/Restoring Audio in Ubuntu Without Rebooting 24

Occasionally on my Ubuntu machine the sound/audio somehow stops working, and although most of the time this can be fixed by closing and then restarting the audio programme (or any other service that occupies the audio driver) you’re running. However on odd occasions the audio still fails to work and you might have to reboot the OS in order to get the audio/sound back which is rather irritating.

Here is a quick way of restarting/restoring your audio/sound without rebooting your Ubuntu system, try using the following command:

sudo /etc/init.d/alsa-utils restart

This should restart your ALSA (Advanced Linux Sound Architecture) driver instantly. However, sometimes certain programmes still keep holding on the audio driver even after your restart ALSA. Try the following command:

lsof | grep pcm

to find out the list of open files and close (kill -9) those processes that are still holding the sound driver.

How to Increase the Hard-disk Size for the Existing VMWare Hard Disk (VMDK) 0

It’s pretty straightforward really, just use the following command:

vmware-vdiskmanager -x sizeGB name-of-your-vmware-image.vmdk

for instance, if you wish to increase the capacity of the hard-disk to 20GB:

vmware-vdiskmanager -x 20GB WinXPProSP3.vmdk

Then you should see something similar to the followings:

The old geometry C/H/S of the disk is: 1910/255/63
The new geometry C/H/S of the disk is: 2610/255/63
Disk expansion completed successfully.

WARNING: If the virtual disk is partitioned, you must use a third-party
utility in the virtual machine to expand the size of the
partitions. For more information, see:
http://www.vmware.com/support/kb/enduser/std_adp.php?p_faqid=1647

If you start the VMWare again and choose the same VMWare image, the hard-disk size of the chosen image will have increased. To see the newly created space/partition inside the Windows, click on Control Panel > Performance and Maintenance > Administrative Tools > Computer Management. Then click on Disk Management under the Storage section from the left. The new unformatted partition should be there. However, in order to merge the new space with existing one, you need to use 3rd-party partitioning tools such as EASEUS Partition Manager Home Edition (free) or Partition Magic (commercial).

That’s it, it’s that simple!!