Archive for the 'Computing' Category

Adding A “Recent Applications” Stack to the Dock In OS X 0

Just found this useful little tweak to add a stack (similar to the default Download one) which contains a list of recent open applications for a quick and easy access. Very handy if you happen to use certain regular applications and/or documents.

Type the following command in the Terminal:

defaults write persistent-others -array-add '{ "tile-data" = { "list-type" = 1; }; "tile-type" = "recents-tile"; }'

then after that, type the following command:

killall Dock

to restart the Dock and then you will see a new icon, similar to the Download Stack, being added next to the Trash icon. You can also choose this new Stack to show information between “Recent Applications“, “Recent Documents“, “Recent Servers“, “Favorite Volumes” and “Favorite Items“.

Viewing Embedded QuickTime Movies via Firefox on Ubuntu 2

I was at Apple’s website last night and eager to check out the latest stunning aluminium unibody MacBook, and it was then I realised that my Firefox (on Ubuntu) doesn’t have the ability to play Apple’s de facto online streaming media – the QuickTime movie.

I know that MPlayer has a plug-in, “mplayerplug-in” (a Mozilla browser plugin to allow playing embedded movies on Web pages using MPlayer.) for Firefox for dealing with this problem so in wasting no time I type the followings in the terminal:

sudo apt-get install mplayer mozilla-mplayer

p.s. You might have to enable the “multiverse” repository first in order to install all the required packages.

After the installation, I restart the Firefox for the MPlayer plug-in to kick in, and I was able to watch that embedded video showing how Apple design and produce the beautiful 13′ MacBook from a single aluminium block – I’m very impressed I must say.

Firefox Problem After Upgrading to Ubuntu 8.10 (From 8.04) 0

After the smooth process of upgrading my Ubuntu from Hardy Heron (8.04) to Intrepid Ibex (8.10), I happen to notice my Firefox (version 3.03) starts to behave differently. For instance, Firefox’s toolbar always returns to the default layout and some of installed add-on icons do not appear even they are functioning properly.

After some trials and errors, I eventually found the culprit that is causing this strange behaviour: Ubuntu Firefox Modifications (version 0.6) add-on. Once it is disabled, Firefox behaves like normal. I suspect a newer version of this add-on is needed for the new Ubuntu 8.10, however I’m still yet to notice any problem after disabling it…

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:

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!!

Open New Finder Window from the Current Location 0

A pretty handy tip I picked up from the Mac OS X Hints. If you tend to open multiple Finder windows for organising/moving folder/files on the Mac OS X. This script helps to reduce the time after you open a new instance of Finder (ctrl + N) and navigate through endless sub-directories to reach the folder you want.

In more details, this Applescript gets the location of the front-most Finder window and opens a second instance of Finder with the same path and view. If there is no Finder windows at the present when this script is executed, it launches a new Finder window at the system root directory (or any other pre-defined target path).

tell application "Finder"
get the exists of the front Finder window
if the (exists of the front Finder window) is true then
set newWindow to target of front window
set oldView to current view of front window
make new Finder window to newWindow
set current view of front window to oldView
end try
make new Finder window to alias ":"
set the current view of the front Finder window to column view
end try
end if
end tell

Copy above script and paste it to the new project window opened via the ‘Script’ (Applications/AppleScript/), then choose ‘application’ as the ‘File Format’ and then save/compile the project with a meaningful name such as ‘CloneFinder’. Once that is done, drag ‘n drop the newly compiled on to the Finder tool-bar for quick access!!

Next Page »