Sorting Algorithm Animations

I’m not sure why, but someone has put together animations comparing various sorting algorithms. Edutainment, anyone?

Outlook Safe Mode

Microsoft introduced a Safe Mode for Outlook starting with version 2002. You can use Safe Mode to start Outlook with all plugins disabled. To start in Safe Mode, simply hold down the Ctrl key while you start Outlook. Once in Safe Mode you can review/remove your plugins (on Outlook 2002 select About Microsoft Outlook from the Help menu and then click Disabled Items) (on Outlook 2007 select About Microsoft Outlook from the Help menu and select Disabled Items).

You can also start other Microsoft Office Applications in Safe Mode by holding the Ctrl key when launching them.

How many megapixels do you need?

One thing to consider is how the photos are going to be viewed. Will they be displayed on a TV or computer screen or will they be printed out?

Most DVD resolutions are 720×480 (NTSC) or 720×576 (PAL). The most common computer screen resolution is 1024×768 pixels. Pixel count on an HDTV is typically 1280×720 (720p), 1920×1080 (1080i), or 1920x1080p (1080p). A 3 megapixel camera should be able to take a 1984 x 1488 photo so for displays, most photos larger than 3 megapixels are going to be scaled down to fit the screen.

Most books and magazines use 300 pixels per inch (ppi) for their photos. At 300ppi you need 2400×3000 pixels for an 8″x10″ photo. This means for a nice book/magaine quality photo you need an 8 megapixel camera, which should be able to take 3264 x 2448 pixels (10.88″x8.16″ @ 300ppi). Most photos larger than 8 megapixels will be scaled down when printing at 300ppi. For a true (35mm camera) photo quality you will need between 24 and 30 megapixels on your camera and many more ppi. See this Megapixels chart for more information.

Another thing to consider is digital file size of the each photo.

The higher the megapixel the larger the file size of the image. This means more space needed on your memory card, but can also affect the speed at which the camera takes pictures, as with larger megapixels it has more data to store and may take longer to write the data to the memory card. You can use this Megapixel chart to determine the average filesize of each photo for a given megapixel, or use this megapixel calculator to determine about how many of these photos will fit on a given memory card size or how many megapixels are required to achieve a particular resolution.

Easy color harmony

For those who have trouble matching colors EasyRGB’s Color Harmonies will do it for you. You give it a color and based on the color wheel it will use common methods (Triadic, Split complements, Analogous, Monochromatic, Complement) of finding harmonies, complements, and themes. This is useful for trim or accent colors on websites, home decor, etc.

Unable to build vmhgfs module

I had trouble building the vmhgfs module (the one that allows shared folders between guest and host computers) when trying to install VMWare Tools in Ubuntu 7.10 running in VMware Workstation 6.0.2 build-59824 on Windows XP. I was getting the following error:

Trying to find a suitable vmhgfs module for your running kernel.

None of the pre-built vmhgfs modules for VMware Tools is suitable for your
running kernel.  Do you want this program to try to build the vmhgfs module for
your system (you need to have a C compiler installed on your system)? [yes]

Extracting the sources of the vmhgfs module.

Building the vmhgfs module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vmhgfs-only'
make -C /lib/modules/2.6.22-15-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.22-15-generic'
CC [M]  /tmp/vmware-config0/vmhgfs-only/backdoor.o
CC [M]  /tmp/vmware-config0/vmhgfs-only/backdoorGcc32.o
CC [M]  /tmp/vmware-config0/vmhgfs-only/bdhandler.o
CC [M]  /tmp/vmware-config0/vmhgfs-only/cpName.o
CC [M]  /tmp/vmware-config0/vmhgfs-only/cpNameLinux.o
CC [M]  /tmp/vmware-config0/vmhgfs-only/cpNameLite.o
CC [M]  /tmp/vmware-config0/vmhgfs-only/dbllnklst.o
CC [M]  /tmp/vmware-config0/vmhgfs-only/dentry.o
CC [M]  /tmp/vmware-config0/vmhgfs-only/dir.o
CC [M]  /tmp/vmware-config0/vmhgfs-only/eventManager.o
CC [M]  /tmp/vmware-config0/vmhgfs-only/file.o
CC [M]  /tmp/vmware-config0/vmhgfs-only/filesystem.o
/tmp/vmware-config0/vmhgfs-only/filesystem.c: In function ‘HgfsInitFileSystem’:
/tmp/vmware-config0/vmhgfs-only/filesystem.c:582: error: too few arguments to function ‘kmem_cache_create’
/tmp/vmware-config0/vmhgfs-only/filesystem.c:593: error: too few arguments to function ‘kmem_cache_create’
make[2]: *** [/tmp/vmware-config0/vmhgfs-only/filesystem.o] Error 1
make[1]: *** [_module_/tmp/vmware-config0/vmhgfs-only] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.22-15-generic'
make: *** [vmhgfs.ko] Error 2
make: Leaving directory `/tmp/vmware-config0/vmhgfs-only'
Unable to build the vmhgfs module.

The filesystem driver (vmhgfs module) is used only for the shared folder
feature. The rest of the software provided by VMware Tools is designed to work
independently of this feature.
If you wish to have the shared folders feature, you can install the driver by
running vmware-config-tools.pl again after making sure that gcc, binutils, make
and the kernel sources for your running kernel are installed on your machine.
These packages are available on your distribution's installation CD.

A quick google search turned up this thread which contained the solution to my problem:

sudo aptitude install build-essential linux-headers-$(uname -r)
cd /tmp
tar -xzvf VMwareTools-6.0.2-59824.tar.gz
cd vmware-tools-distrib/lib/modules/source
cp vmhgfs.tar vmhgfs.tar.old
tar xvf vmhgfs.tar
cd vmhgfs-only
chmod 644 compat_slab.h
vi compat_slab.h

Search-> #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 22) || defined(VMW_KMEMCR_HAS_DTOR)
Fix-> #if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 22) || defined(VMW_KMEMCR_HAS_DTOR)
Save Changes

chmod 444 compat_slab.h
cd ..
rm vmhgfs.tar
tar cvf vmhgfs.tar vmhgfs-only
cd /tmp/vmware-tools-distrib
sudo ./vmware-install.pl

Read more »