Nokia 3109c and Snow Leopard (iSync 3.1)…

As I detailed in my previous post on how to get this phone working with Leopard, upgrading to Mac OS X 10.6 aka Snow Leopard broke things again.

Easy fix though: follow the steps in my previous post, and attached to this post you can find the ‘fixed’ MetaClasses.plist file.

All I actually did was copy this block in the existing MetaClasses.plist:

<key>com.nokia.3109</key>
<dict>
<key>Identification</key>
<dict>
<key>com.apple.cgmi+cgmm</key>
<string>Nokia+Nokia 3109</string>
<key>com.apple.gmi+gmm</key>
<string>Nokia+Nokia 3109</string>
<key>com.apple.usb.vendorid-modelid</key>
<string>0x0421/0x045A</string>
</dict>
<key>InheritsFrom</key>
<array>
<string>family.com.nokia.series40.3rdEd.bus.usb-bt</string>
</array>
<key>Services</key>
<array>
<dict>
<key>ServiceName</key>
<string>com.apple.model</string>
<key>ServiceProperties</key>
<dict>
<key>ModelIcon</key>
<string>NOK3109.tiff</string>
<key>ModelName</key>
<string>3109</string>
</dict>
</dict>
<dict>
<key>ServiceName</key>
<string>com.apple.synchro</string>
<key>ServiceProperties</key>
<dict>
<key>MaxCityLength</key>
<integer>50</integer>
<key>MaxEMailLength</key>
<integer>60</integer>
<key>MaxEventLocationLength</key>
<integer>150</integer>
<key>MaxPhoneNumberLength</key>
<integer>48</integer>
<key>MaxPostalCodeLength</key>
<integer>50</integer>
<key>MaxStateLength</key>
<integer>50</integer>
<key>MaxStreetLength</key>
<integer>50</integer>
<key>MaxURLLength</key>
<integer>60</integer>
</dict>
</dict>
</array>
</dict>

Since WP keeps on braking my indentation, just download it here: MetaClasses.plist

Status update!

Short summary of what I’ve been busy with:

  • We’ve moved to a new place, near the city of Ghent. Lots of painting needed be done, decoration, stuff like that… kept me busy for the better part of two months. The results are viewable here.
  • We’ve also moved internet providers, since the all-in-one bundles (TV+Telephony+Internet) came out cheaper in the end. So I’m back at Telenet.
  • Friend from Spain came over during the Gentse Feesten. It’s a treat being able to go by bus to the centre of Ghent in 10ish minutes ;)
  • On a sadder note, one of our smoothcoat cavies, Macchiatto, passed away on july 20th.
  • I’ve managed to trash the linux installation on my macbook, and since I too lazy I put Mac OS X on it again. Said macbook also had to go in for repairs anyway (crack in the topcase). All fixed now, free of charge.

I think that’s about it. Mostly getting settled now in the new place… so far so good ;)

Automounting SMB/CIFS shares on Mac OS X

For my PVR/HTMAC project, I wanted to auto-mount several shares from my NAS. After some searching I ran across this hint on the Mac OS X Hints website, which works perfectly:

Basically, you add the shares you want to mount to the /etc/fstab file, with this syntax:

excalibur:/music x url net,automounted,url==cifs://guest:@excalibur/music 0 0
excalibur:/photos x url net,automounted,url==cifs://guest:@excalibur/photos 0 0
excalibur:/videos x url net,automounted,url==cifs://guest:@excalibur/videos 0 0

That way, those shares will allways be mounted under /Network/Servers, and always available, starting boot-time. Works like a charm ;)

Mac mini PVR

I recently acquired a Mac Mini, which I’m going to use as a PVR.

Together with an Elgato EyeTV Hybrid it works perfectly, attached to my good old analogue 21″ Sony TV .

Sofar it seems to work fine, using a DVI-to-svideo convertor. I’ve installed the EyeTV software, the PyeTV Front Row plugin (which allows me to controle EyeTV from within Front Row) and Perian (for more codec support in Front Row)

More on this can be found on the Hicksdesign blog ;)

Add recent applications as a Stack on Dock

On TUAW (The Unofficial Apple Weblog) they’ve got a nifty tips section, with today this tip that I rather like:

How to add recent applications as a Stack on the Dock:

Run this in Terminal.app:

defaults write com.apple.dock persistent-others -array-add ‘{ “tile-data” = { “list-type” = 1; }; “tile-type” = “recents-tile”; }’

on one line, and then restart the Dock (killall Dock).

Et voila! If you don’t like it, just drag it off again.

Cloning woes

After yesterday’s clone I noticed some applications behaved erraticly, amongst which Preview, Thunderbird, Appfresh… rather irritating.

After some searching I found the fix on this CCC Forum thread:

sudo chgrp wheel /var/folders/*
sudo chmod 700 $TMPDIR
sudo chown $USER $TMPDIR

In short, the permissions for that directory werent taken over correctly from the original, hence the problems. All fixed now ;)

Iodine (dns tunnel) on your Mac (to escape those evil firewalls)

Here’s a short how-to to get the iodine dns tunnel working on your Mac.

In this short howto, I’ll assume you’ll be using a linux server to act as your gateway to the world. I’ll also assume you’ve read the iodine documentation and setup your DNS accordingly. For my example, I’ll be using a (nonexistant) DynDNS.org static DNS entry, iodine.rulestheworld.tld. I’ll also assume that you’ll be using a public internet address of 1.2.3.4, and a private subnet of 10.0.0.1.

  1. Install the tun/tap driver for Mac OS X. Easy as doing *click* *click* done! :p
  2. Next, install iodine on your Mac. Easy as download, extract, and typing make; make install
  3. Now, install iodine on your linux box. It’s included in the package repositories of the usual suspects, for instance debian: apt-get install iodine.

    Start it (or configure it to use) with:
    iodined -P <password> <unused private IP> <dns name>
    or in our example:
    iodined -P mypass 10.0.0.1 iodine.rulestheworld.tld

    This should return the following:

    Opened dns0
    Setting IP of dns0 to 10.0.0.1
    Setting MTU of dns0 to 1024
    Opened UDP socket
    Listening to dns for domain iodine.rulestheworld.tld

  4. Configure your linux box for IP forwarding: sysctl -e net.ipv4.ip_forward=1
    (and add this to your /etc/sysctl.conf file), and configuring your firewall (iptables) for masquerading:
    iptables -t nat -A POSTROUTING -s 10.0.0.0/255.255.255.0 -o eth0 -j MASQUERADE
  5. Next, download NStun.sh, a very handy script that does all the hard work of changing the routes and so on :p

    You’ll want to change the script: change the first lines as the script reads, and lower, change the

    NS=`grep nameserver /etc/resolv.conf|head -1|awk ‘{print $2}’`

    line to read

    NS=”62.213.207.197″

Now, start NStun.sh on your Mac, and surf away! (well, slowly, but freely, atleast!)

Changing Terminal.app ANSI colours

I use Irssi on my mac with Terminal.app in Leopard. All very nice, except that in Terminal.app, the dark gray colour used in my Irssi theme shows black. Black on black doesn’t work very well.

So, I needed something to tweak Terminal.app’s ANSI colours.

Luckely, I found TerminalColor, a SIMBL bundle for Terminal.app. Unfortunately, it didn’t work with Leopard, but I found this developizers blog post on how to make it work!

Yay!