Serve files quickly using built-in python Web-Server in OS X

Posted by: gdelmatto  :  Category: Networking, OS X

Mac OS X (since 10.5) sports a python environment in it’s default install, which includes a very simple HTTP server.
This may come in handy if you want to serve some files quickly over HTTP, without the need to fireup the full-blown Apache available through ‘Web Sharing Service’.
Don’t believe me? Read on to see how you’ll be up in running in just a few seconds.
Read more…

Refining application shortcut for shared BootCamp / VirtualBox Windows VM

Posted by: admin  :  Category: OS X, VirtualBox, Virtualization

Here’s a follow-up to my previous posts on sharing Windows 7 in BootCamp and VirtualBox and launching a VirtualBox VM directly through an icon shortcut.

Concerning this topic I was asked if it’s possible to have the BootCamp partition only umounted upon startup of the Windows VM.
Read more…

CUPS PDF Printer for OS X

Posted by: gdelmatto  :  Category: OS X, Utilities

Yes, I know, OS X has already a “print to pdf” feature. This does however not work for those applications which don’t use the OS X native printing dialog, e.g. some Java apps.

This is where CUPS-PDF kicks in. It adds a virtual printer to the system, thus enabling non-native applications to print to a PDF as well.

Mission accomplished!

Mac OS HFS+ case-insensitivenesss screws SVN

Posted by: admin  :  Category: OS X, Programming, Utilities

So I work on OS X for a few years now, but until today that I didn’t really care about the underlying HFS+ file system.
But while working on a project using SVN, I got this unexpected error message:


gianpaolo-del-mattos-macbook-pro:trunk Gianpaolo$ svn update
svn: URL 'svn+ssh://...../webinterface/files/lib/webmin' of existing directory '...../webinterface/files/lib/Webmin' does not match expected URL 'svn+ssh://..../webinterface/files/lib/Webmin'

Read more…

Starting a VirtualBox VM through a Shortcut on OS X

Posted by: admin  :  Category: OS X, VirtualBox

Why should I dare to launch the VirtualBox GUI each and every time when I in fact only want to start a particular VM?
So my intent is to create an icon in the OS X dock which allows me to start my Windows VM directly with one single click.
Not to say that I’m a lazy person, but I dare to get around the GUI for such a simple and straight forward task ;-)

Luckily VirtualBox provides us with everything needed to accomplish this through the “VBoxManage” command.
The rest is just some (not so really) magic OS X trickery, as you’ll find out shortly.
Read more…

Choppy VirtualBox Performance on MacBook Pro with Core i7

Posted by: admin  :  Category: OS X, VirtualBox

So you finally own one of these newly released Apple MacBook Pro with fancy Core i7 Quad-Core CPU?
Then you fire up your VirtualBox VM and are disappointed about the sloppy performance?

Luckily, it’s only a (hopefully short-lived) compatility issue. While this will surely need a final fix, here’s a temporary workaround…
Read more…

Sharing Windows 7 between Boot Camp and VirtualBox

Posted by: admin  :  Category: OS X, VirtualBox, Virtualization, Windows

I always used to have Windows installed through Boot Camp on my MacBook Pro. The reason for it being simple: I need it for some games ;-)
On the other hand, I use OS X for my primary work, but again, sometimes there’s no way around Windows. So I had the same Windows installed again within VirtualBox.

Well, what a waste of valuable disk space. So, after I got my new MacBook Pro, equipped with an SSD, I decided to go for it and share the Boot Camp partition between Windows 7 running natively and VirtualBox.
Read more…