Thursday 19 November 2009

Bootcamp partition

I use Parallels Desktop for Mac (have used VMWare Fusion, but found it really slow) but I find it too slow to work with on a daily basis. Therefore I thought I'd switch to a Bootcamp partition and boot the Mac directly into Windows. That way it would a) be faster and b) at last I could use my cheap Windows USB film scanner and digital Blocknote, which Parallels was never able to recognize. So said, so done. But yesterday two things happened :
  • My MacbookPro wouldn't boot off the Windows partition anymore - it simply remained stuck in the startup process. I don't know why... it's just disappointing after so many hours.
  • In my email I saw an announcement of Parallels 5.
I started reading about Parallels 5 and it said that at last it would recognize all USB hardware, was Snow Leopard ready and could boot off a Bootcamp partition. A few seconds later I had my upgrade serial numbers and was installing P5 over P4.

After installation I started my normal Windows XP virtual machine and let P5 upgrade it. Then I quitted the machine and backed up the 40 Gb file to my Drobo. Then I clicked the big + to add a new virtual machine and chose 'Bootcamp' and hoped that it would pick it up. It did! After a while P5 was ready to start and so I did. P5 created a 2Gb virtual disk - I don't know why and booted the Bootcamp Windows XP without any troubles. And you know what? It runs almost 10x faster off the Bootcamp partition as with its normal virtual disk structure. With P4 and the virtual disk, MS-Excel 2003 took ages to start up. But now, it's like a flash - as if I've booted directly into Windows. And... it recognized indeed my cheap Prolectrix film scanner and my cheap Medion digital blocknote. Great, really great! Of course I immediately backup up the 2Gb virtual disk and the bootcamp partition to my Drobo. You can backup and restore a Bootcamp partition with Winclone.

Monday 9 November 2009

Dineren in de 'altstadt' van Neustadt

Gisteravond hebben we met vrienden in Neustadt an der Weinstraße bij de griek gegeten, in een restaurant met de naam Gasthaus 'Zur Post'. Ze spreken daar zelfs een beetje Nederlands omdat daar al 20 jaar lang regelmatig militair personeel van het NATO-hoofdkwartier komt eten.

Erg vrolijk en amicaal personeel en erg lekker eten.
IMG_0182-2009-11-9-15-51.JPG

Sunday 8 November 2009

Foto: Heidelberg

DSCF0119-2009-11-8-16-32.JPG

Dieses Wochenende waren wir in Heidelberg - was für eine wunderschöne Stadt.

Sleeping and Breakfast in Mannheim

95329_b1-2009-11-8-09-20We were in Mannheim for the weekend to visit friends. They show us around and take us to various really nice places. For example, this Best Western Premier hotel Steubenhof. It's a great hotel with very nice rooms and a great breakfast (€23 extra) and you can get to the center of Mannheim quite easy. But you can also have breakfast someplace else!
DSCF0117-2009-11-8-09-20.JPG

Have breakfast at Fody's - eat as much as you want for a fixed price. And they serve a really good breakfast.

You can find Fody at Mannheim's Airport
IMG_0180-2009-11-8-09-20.JPG

Thursday 5 November 2009

Thai

IMG_0176-2009-11-5-01-14.JPGIMG_0177-2009-11-5-01-14.JPG

Heute haben meine kollege Christoph und ich beim Thai gegessen : Phai-Lin in Kirrlach.

Wir waren auf dem weg zum hotel und auf der suche nach ein chinesisches restaurant. Dabei ist uns Phai-Lin aufmerksam geworden und beim kreuz sind wir umgedreht und zum restaurant zurück gefahren.

Es ist ein kleines restaurant und heute waren wir zwei die einzige kunden - warscheinlich weil es mittwoch war und kein wochenende. Christoph hatte ein ente-curry und ich einen grünen rindfleisch-curry. Das war wirklich sehr gut.

Monday 2 November 2009

Virtual host order on Mac OS X Server

I am in the process of converting my website forwarding setup to actual host names (A-records). I was quite reluctant to do this at first, because I could not oversee the consequences and googling didn't reassure me either. But on the LDC09, I talked to Chris who kindly explained to me how easy and unproblematic this actually is. Being a sceptic, I did not start by converting all entries at once, but I do convert one entry per day - when it succeeds.

The first one went wrong already because of my logical thinking as a programmer. I pointed the subdomain name to our Mac OS 10.4 server and setup the site there, putting the default (*) at the bottom. Hey, where is a catch-all entry for!? It belongs at the end, just like with a if/else/end - the last 'else' is the catch-all. But from that moment on, every site landed on my newly created domain, so I quickly swapped the two site entries so that the catch-all was the first one again. Now it worked.

So I made a whole plan : setup a subdomain on one afternoon and check if it works the next morning. This way I set some others up on this 10.4 server and they all work.

Then comes the day I needed to setup the same construct on a Mac OS 10.5 Server. So I deleted the website forwarding entry, created the A-record, created the site on the OS X server, leaving the catch-all at the top and waited until the next morning. The domain name worked all right, but landed on /library/webserver/documents/ (the www-root) instead of the path I put into the site. I have been struggling for two days with this 10.5 server. I checked and double checked, changed the site's path, etc.. Nothing worked, it kept landing on the webroot. And today I thought, what if I swap the site entries and put the default (*) at the bottom (as I did at first on the 10.4 server) and ... it worked! I tested the other sites which have no domain name yet (website forwarding) and they all work ok.

So the order for site entries on MacOS 10.4 Server differs from MacOS 10.5 Server. You can see that in the
sites folder inside the Apache folder (/etc/httpd/ on 10.4 and /etc/apache2/ on 10.5). Sites are loaded by including sites/*.conf and the order is determined by the name of the conf-files (10.5 example):

-rw-r--r-- 1 root wheel 1659 Nov 1 17:12 sites/0000_any_80_my.site.com.conf
-rw-r--r-- 1 root wheel 1857 Nov 1 17:12 sites/0001_any_80_default.conf
-rw-r--r-- 1 root wheel 566 Nov 1 17:12 sites/virtual_host_global.conf


So it seems on 10.5 the catch-all sites are loaded last.