davidrickard.net

Random stuff, randomly updated.

Archive for December, 2008

The missing Mr Men book

Tuesday, December 16th, 2008

London to Glasgow in 5 minutes

Monday, December 15th, 2008

The BBC have made a timelapse video of the train journey from London to Glasgow, out of the front of a train. The whole thing lasts 5 minutes

http://news.bbc.co.uk/1/hi/uk/7784179.stm

I think the real journey is nearer four-and-a-half hours, but it’s still pretty cool all the same.

Crazy Local TV Commercials – Funny Christmas Ads – Esquire

Saturday, December 13th, 2008

Crazy Local TV Commercials – Funny Christmas Ads – Esquire

These are just too funny.

CallManager in VMware

Friday, December 12th, 2008

It’s always nice when you have a mission critical system like – oh I don’t know, say a phone system – to have a development environment to play with and not worry about if you break it catastrophically. It seems Cisco’s favoured method for you to achieve this would be to buy an entirely separate Cisco CallManager (CCM) setup, but that’s a rather costly proposition.

Instead there’s a far simpler solution, and that’s to install CCM into a VMware Virtual machine, and play about with it in there. In theory if you have a spare router capable of doing voice, you could also use that with it too (I’ve yet to try that though).

I’ve performed this installation with VMWare Workstation 6.5 on a dual core Intel Core 2 Duo E6750 with 4Gb RAM under Windows Vista, and had two servers running concurrently quite happily, so it’s actually quite a workable solution on modern hardware. Here’s the process:

  1. In VMWare Workstation create a new custom virtual machine.
  2. Set the hardware compatibility to Workstation 6.5.
  3. Select to install the operating system later.
  4. Select the operating system as Linux, and Red Hat Enterprise Linux 3.
    sshot-4
  5. Chose a location for your VM to live in.
  6. Select a single processor.
  7. Set the RAM to AT LEAST 1024Mb.
  8. Select a network connection type to use. If it’s going onto an isolated lab network and connect to other devices, you’re probably fine to use bridged, otherwise use Host Only.
  9. Use the LSI Logic controller.
  10. Create a new SCSI virtual disk, and set it to 40Gb. You don’t need to allocate all space straight away (i.e. make a growable disk). Select a name for the disk to save as.
  11. Finish the configuration but don’t power on the virtual machine.
  12. Put your CCM installer DVD into your DVD drive, and power on the virtual machine.
  13. Install CCM as normal.

When it starts the first time you’ll see a screen like the following:

sshot-14

Fair enough. It is for development and labs, not production anyway.

The thing to be aware of here is the 1Gb of RAM, and setting the hard disk to anything less than 40Gb. When CCM installs it makes multiple copies of the data, and expects to find space to basically install itself twice (into the active and inactive partitions). If it doesn’t have enough room, it’ll fail with a rather vague error.

It’s also possible to change the MAC address of the virtual server. VMWare workstation and VMware Player will both allow arbitrary MAC addresses to be set (providing they’re legal – you can’t have ZZ:YY:XX:WW:VV:UU for example). ESXi won’t allow this, however.

With the virtual machine powered off, use a text editor to open the .VMX file in the virtual server’s directory, and look for the following lines:

ethernet0.generatedAddress = "00:0c:29:00:00:00"
ethernet0.generatedAddressOffset = "0"
ethernet0.addressType = "generated"

You won’t necessarily find them together, but they’ll be in there. Deleted the ethernet0.generatedAddressOffset line, and change the other two to look like the following:

ethernet0.Address = "00:00:00:00:00:00"
ethernet0.addressType = "static"

You’ll also need to move the ethernet0.Address line up above the uuid.location line. With that done, you can power on your VM, and the MAC should be changed. Probably best to do this before you install it.

Now you have a development environment. As I said at the beginning, I managed to create two VMs, one with a publisher, the other with a subscriber node, and it all worked quite happily from what I could see. I intend testing it in VirtualBox as well, but I have a feeling it actively looks for particular hardware (basically the Cisco Media servers) or VMware, and just fails to install on anything else. Otherwise, this method represents a good method for having a play with CCM without breaking your live system.

Now UAC it. Now you don’t.

Friday, December 12th, 2008

I’ve been using Windows Vista’s User Access Control (UAC) on my computers for some while. When I first started using Vista at home, I turned it off, but then turned it back on just to see how I’d get on with it.

Roll forward two years, and I’m now running Vista Ultimate 64-bit and 32-bit on my home desktop and laptop PCs respectively, plus Vista Business Edition on my work desktop and laptop PCs. I was seeing UAC prompts ALL DAY at work. Opening Active Directory Users and Computers would cause the prompt to appear. Going near any sort of management tool would cause it to appear. I was getting fed up with seeing it!

So I decided I’d had enough and turned it off on both my work PCs. I also switched it off on home laptop. In each case, it quietly went away, and that was that. My home PC wasn’t quite so straight-forward.

Vista has a rather nice new feature whereby it will re-direct any files and folders being dropped into Program Files or the Windows directory to a folder in the current user’s application data folder (C:\Users\<username>\AppData\Local\VirtualStore – it’s hidden, so you might not see it). This, however, only happens if you have UAC enabled. So having switched it off, I rebooted, and found some of my applications suddenly thought they weren’t registered or setup.

I went into the VirtualStore folder, and found this:

virtualstore

Oddly enough, Dream Aquarium, DMT and Objectdock were all the apps complaining at me about licences and lost configs. The fix was quite simple. I basically copied the contents of those directories into the corresponding directories in C:\Program Files (x86)\ (as it’s vista x64). Restarted the apps, et voila, they suddenly work.

It’s a shame turning off UAC doesn’t give you the option to merge the virtualstore back into Program Files, but then again it could make things even more confusing if you turned UAC back on, as suddenly applications wouldn’t be able to write to those files, so would fail miserably. I’ve had a few things do that randomly in the past.

So if you’re going to turn off UAC, it’s probably best to do it when you first install Windows.