How to display Network Shares as Icons on Mac OS X desktop

We had them before, but suddenly in Mac OS X 10.5 they disappeared! However, whenever I want to grab something on the network, my intuitive reflex is to look for the network drive icon on the desktop! :'(

I had to dig around quite a while to find teh setting to bring them back. No it's not in the System Preferences... No it's not in the UI tweaks... it is in... the Finder Preferences!

  1. Click on the desktop
  2. In the Finder menu, click Preferences...
  3. Select the General tab
  4. Under "Show these items on the Desktop:", check "Connected servers"

Now you're back to normal.

Btw, you may also take the opportunity to reduce the clutter under "SHARED" in your Finder window sidebars:

  1. Same as above but select the Sidebar tab
  2. Uncheck "Bonjour Computers"

How to edit your keyboard layout on Mac OS X

How to edit your keyboard layout on Mac OS X

One thing I hate about US keyboards is that they don’t let me type my French special characters by any memorable strecth – what’s the dead key for the cedilla again? (ç)

One thing I hate about French keytboards is that they have all the punctuation keys messed up… which is particularily painful when trying to write code. < and > share a single key! [ and ] require THREE fingers! (you’d better give un on using arrays!! :p)

The only bearable solution in the long run is to remap the keys to an order that makes a little more sense.

I just found the perfect tool for create new keyboard layouts on the mac: Ukelele ! :)

Ukele easily lets you reassign characters to keys with any hot key combination and it also lets you create dead keys (multiple keypress sequences to create one character).

Now one question remains: which keyboard should I start with: a French AZERTY or a US QWERTY keyboard? (All mac keyboard layouts here)

By the way: if you’re looking for a keymap editor for Windows, here’s one from Microsoft.

Video files in iMovie

I just have to say how much I love the way iMovie '09 handles video files.

When you import video, you can save it to any drive connected to your Mac. It will go to a folder named "iMovie Events" on the selected partition.

Whenever that partition gets full and you want to move to a larger drive, you can just move the files to another partition and relaunch iMovie. it will find the files in their new location, no questions asked! And your iMovie projects will continue to work without asking where the source files are.

I wish every piece of software made things just as easy as that ;)

How to install b2evolution on Mac OS X in 5 minutes from scratch

Tested with MAMP 1.7.2, b2evolution 3.2 and Mac OS X 10.5.7 :

  1. Download and install MAMP (Free) into the Applications folder
  2. Start MAMP and make sure you get the MAMP start page
  3. Download b2evolution and unzip it into /Applications/MAMP/htdocs
  4. Point yout browser to http://localhost:8888/b2evolution/ and follow install procedure
  5. When prompted for mysql username and password use "root" and "root". (the mysql host is "localhost")
  6. You're up and running, but with one caveat... when displaying blogs you'll run into incomplete pages and the php error log (/Applications/MAMP/logs/php_error.log) will give you a hint:

PHP Fatal error:  Allowed memory size of 8388608 bytes exhausted

It doesn't make much sense that MAMP would come preconfigured with only 8MB of RAM available to apps. I bet that's an easy settign to change if you buy MAMP Pro (39 ?). To fix this on the free version though, open the file /Applications/MAMP/conf/php5/php.ini with TextEdit. Find the line that starts with memory_limit = and edit it as follows:

memory_limit = 128M

How to fix apt-get missing keys (Debian)

Lately, my Debian servers have been bugging me with stuff like this everytime I tried to apt-get update:


W: There are no public key available for the following key IDs:
XYZ123
W: You may want to run apt-get update to correct these problems</p>

and it tells you to ap-get update to solve the problem, which is of little help, since that is what caused the problem in the first place!

Here's the solution:

Code

# gpg --keyserver wwwkeys.eu.pgp.net --recv-keys XYZ123

Don't forget to replace XYZ123 with the actual missing key.

Code

# apt-key add /root/.gnupg/pubring.gpg

Code

# apt-get update