css (1) jQuery (7) linux (38) mac (70) php (29) python (1) svn/git (9) trac (4) ubuntu (1) virtualbox (6) vista (2) windows (14)

Sunday, 25 September 2011

Check hard drive SMART status on windows.

To check the hard drive SMART status on windows run the following

Open a command prompt (start > run > cmd)
Press enter
diskdrive get status
Press enter
If everything is ok it'll say OK

found at

Recreate Bootcamp virtual machine in VMware fusion

If your bootcamp virtual machine won't launch for whatever reason try going to ~/Library/Application Support/VMware Fusion/Virtual Machines and delete the Boot Camp folder.

Friday, 23 September 2011

Drupal 7 Anonymous Sessions

I recently upgraded a site from Drupal 6 to Drupal 7 and the site uses the administration menu module which amongst other things shows the number of anonymous/logged in users in the top right. However on Drupal 7 the anonymous users always showed as 0, turns out the Drupal guys/gals set it so anonymous sessions are only created if data is actually put in them (this is a good idea since it improves performance). To fix this simply put a line of code that stores something in sessions in your theme template.php file something like the following:

function your_theme_name_preprocess_node(&$variables) {
  //set session so we can track anonymous users


Tuesday, 20 September 2011

Comparison of Mac virtualisation software

I've been using VMware Fusion 3 for a while without too many issues. One niggling issue I've had is that vmware tools doesn't work on Debian 6 it brings up the error "Protocol Error" when mounting vmware shares. So I decided to try upgrading to fusion 4..and then the saga began.

VMware Fusion 4 has some problems...vmware tools segfaults on startup in Debian 6 and doesn't install on ubuntu reporting errors writing to /usr/lib/vmware bit weird so I decided to check out the competition.

Parallels Desktop 7 - Great software, the parallels tools install on everything I tried, one major caveat for me is that the shared file system doesn't support symlinks, I can't develop without those so that's a show stopper sadly.

VirtualBox 4 - Free (yay!) downsides no image convert i.e. can't import a parallels/vmware appliance. And cannot boot bootcamp partitions (so far as I know). Previously I switched from virtual box to vmware fusion 3 due to random crashes in virtual box.

So conclusion - I'm sticking with vmware fusion 3 for boot camp and my existing machines which are ubuntu, for debian I installed virtual box and going to give it a go.