Monday 25 October 2010

Remove the MobileMe icon from the menu bar on Mac OSX

The fact that Apple's MobileMe icon installs itself on my menu bar despite the fact I have no intention of ever using it was starting to annoy me. There's no obvious way of removing the icon or uninstalling the app I could find anywhere.

However, thanks to this post, it turns out to be really easy to remove it.

Simple hold CMD, and drag and drop the mobile me icon off the menu bar. It disappears in a puff of smoke never to be seen again. Hurrah!

Wednesday 6 October 2010

Allowing SymLinks in Mac OSX Web Sharing

The Web Sharing feature in Mac OSX allows you to share a folder in your home directory via Apache.
What I often want to do is to temporarily share a web site or suchlike that I'm currently working on, so I can access it via my iPhone for on-device testing. So what I wanted to do was to create a symlink from my ~/USERNAME/Sites folder to the actual folder where I'm working.

However, by default, any SymLinks within Sites not be followed due to the apache configuration. Happily this can be easily fixed.

Edit the file at:

/private/etc/apache2/users/USERNAME.conf


Which by default looks like this:

Directory "/Users/USERNAME/Sites/"
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
/Directory


To add the FollowSymLinks option. So the file should look like this:

Directory "/Users/USERNAME/Sites/"
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
/Directory


Then all you need to do is restart apache and you are done!

From the terminal type:

sudo apachectl graceful