Sunday, March 8, 2009

VMWare Fusion Shared Printer Fun (or three hours to print a single page)

So, this should be simple right? I have my main Mac (some 8 core mainframe thing) where I run multiple development environments and a whole host of virtual machines running various Oracle version on lots of flavors of Windows, Linix and Solaris. I have a second machine where the shared printer is connected that I wanted to print to. Yes, I could have simply moved the printer, but where is the fun in that?

So I need to print from Windows. Well this is easy right... Errr wrong. The culprit was VMware's lack of documentation and working examples. Even the web did not prove useful.

So this is what I did, your mileage may vary

  1. Ensure that your Mac can print to the shared machine. Simply try printing a page from Safari. If that does not work, then Google way to fix a "regular" printing problem.
  2. Set the Network mode on the VM to "Bridged"
  3. Reboot the VM
  4. Install the right Printer Drivers (mine was an Epson RX500)
  5. Install Apple's "Bonjour for Windows"
  6. Follow the install directions for Bonjour for Windows, accepting all the defaults
  7. ... and if you are lucky if works
I then found a video, looks like somebody at VMWare put together but its not linked from their main site. Oh, and can I have my three hours back please?

Sunday, March 1, 2009

Write it down stupid!

So I have just paid the price, lets say conservatively at 2.5 hours. The simple solution would have been to write everything down. But you never know when. As is always obvious, "when" should not been 14 months *after* you have last done something but that 20:20 hindsight for you.

The challenge? Reboot the system. Why? Well after 14 months it needed a minor refresh for Google Analytics. I guess that I have at least proved that I built something reliable! All of this took a zero downtime from the users perspective, other than a need to log in again.

So after I figured out (again) how to start and stop on instances on EC2, kick started with the right parameters and remembered all the DNS tricks I got it up and running again.

Oh, and I then took 20 minutes to write it all up with the rest of the documentation on Google Docs...


Friday, March 21, 2008

All quite on the western front?

So what exactly has been going on? Well a lot of painstaking analytics that's what. Its a bit like CSI, its all forensic fingerprinting and dna checking. I thought I would do something quite noel these days, actually spend a bunch of time checking that all the results are valid and running numerous scenarios to check the accuracy and how the solution scales. What's odd about this? Well I doing the testing rather than let customer do it. I know, this type of behavior will never catch on in the software industry, but in my own little slice of heaven, we do it old school and its all the better for it.

What does this mean for the Server Virtualization extensions? Well they are going to take a little bit longer!

Oh, and I have had some interesting chats with "our friends" on Sand Hill Road...

Monday, February 18, 2008

A fist full of VMware analytics

So the next goal for the product is VMworld Europe. I have been busy coding away to extend the analytics to cover file-system scanning to determine duplicate blocks. Its proving a bunch of interesting challenges, how to scale, how to determine duplicates across file-system boundaries and all sorts of other issues.

Final testing in progress, and those odd problems about regression bugs... but here's a first screenshot!

Monday, January 21, 2008

Oracle runs on an Intel Mac ... really!

So darn Oracle, when the hell will there be a native port to Intel Mac? I don't know, they all must be slacking around doing cool Linux and Xen stuff instead.

So I had 10gR1 running on my PowerBook G4 and PowerMac G5 and all has worked very well for some time. Somebody at some point in time thought it would be cool to support Mac and PowerPC (PPC). I get my first Intel Mac and there is no port to Intel or even any sign of it... what should I do?

Then I remembered Apple had Rosetta to emulate all those PowerPC instructions for non "universal" applications. So I first tried to install the Oracle software from scratch. No dice. Despite being Java it puked at a JNI dynamic library. Next I simply copied the existing install from my PowerBook G4 and after hacking my init.ora around (I had lost the original) and re-creating the orapw file... I have it running!

screen2.jpg

Sunday, January 20, 2008

VMware Fusion fun... not!

So thank god to Wikipedia and Google. I had been trying to run Oracle under a Linux O/S under a Virtualized Server (yes, I'm that trendy). But could not get Oracle installed. Each time it tried to create a file or directory I got

$ cd /mnt/hgfs/oel4u5ora11g
$ touch 1.1
touch: cannot touch '1.1' : Permission denied

So I had set up a Share from the VMware preferences so that the guest O/S could not a directory on my local disk (through the Preferences). I had then gone through the directory and performed a
$ chmod -R a+rwx *
But was still getting the permission denied problem. In a simple solution on Wikipedia. Simply turn the Network from NAT to Bridged... and now I have Oracle all installed...

Sunday, January 13, 2008

Blob, Binary and other Java hardships

So, what's the difference between

byte[] fred = {-122, -97, -120, 111};

System.out.println(fred.toString());
System.out.println(new String(fred));

Well, you would same they should print the same right. Sadly wrong. So this took me a day of debugging to find out why my Fact table was producing the wrong results from the Data Warehouse queries. So I tried
  • Stuffing the data into a BLOB, well its binary after all. Broke all the joins over this column
  • Converting to Hex but got different results for the same byte[] value
  • Converting to a Binary String (i.e. 1's and 0's), but seemed horribly inefficient
  • Converting to a String, like Hex got different results for the same byte[] value and was unprintable through the mysql prompt
So I ended up keeping the value as a byte[] in the Java code and then stuffing the value in a Binary column... easy when you know how. So I just need to reconcile the values I am now getting.