Native Unison Unicode support

As has been already mentioned in the comments to my last Unison Unicode post, native Unicode support is now available in the development version av Unison. Up until now however, I had been sticking with my home brewed version, in the spirit of “if it ain’t broken, don’t fix it”. But as problems with AppleDouble files started to surface, a bug has been fixed in later versions, it was time for to update.

Step 1, OSX binary: Couldn’t find precompiled ones, but as I already had OCaml installed I just checked out the latest trunk and compiled with “make UISTYLE=text”. If you want to avoid this hassle you can just get my binary here: unison-2.39.0-osx.zip (compiled under MacOSX 10.5.3, 568 kb).

Step 2, Win32 binary: Actually there are two options here. Initially I tried the precompiled binaries provided by Jérôme Vouillon, but the problem with the native win32-version is that it doesn’t support symbolic links! Turns out I had lots of those, so that wasn’t really an option. The other alternative is to run Unison from Cygwin (which I need for sshd on the Windows side anyway). That way symbolic links are supported (cygwin creates Windows style “.lnk” files, but Unison doesn’t know this and assumes they are real symbolic links).

That means I have to compile Unison myself under Cygwin. Luckily this was surprisingly simple, just install Cygwin with packages “make” and “ocaml”, check out the Unison trunk, and run “make UISTYLE=text” again! As before, if you want to avoid this hassle you can just get my binary here: unison-2.39.0-cygwin.zip (compiled under Cygwin 1.7.1/Win2k3 32bit SP2, 564 kb).

Step 3, update scripts and synchronize: Once this was done, I just modified my scripts to use the new binaries (note that I’m no longer using the unicode-hack for cygwin) and everything worked! Unicode support is completely automatic!

My thanks go out to all the developers of Unison!

, , ,

No Comments

Windows Media Player 11 and Windows Server 2003

Ever wondered how to install WMP11 on Windows Server 2003? Or just how to get media sharing (for example to an XBOX360) to work from said server? Microsoft has in all their wisdom decided that Win2k3 should not be used to share media, but thanks to this excellent workaround I can now watch Simpsons in my bedroom again ;).

,

No Comments

known_hosts for SSHKeychain

SSHKeychain is, if you’re not familiar with it, a very convenient OSX app that sits in the menu bar and can create and maintain multiple automatic SSH tunnels, something I use a lot. I recently reinstalled my home server which caused its ssh fingerprint to be changed, so (because I’m lazy) I just deleted all my .ssh/known_hosts-files to stop SSH from complaining about it.

But for some reason SSHKeychain still refused to set up a tunnel to that server, with the unhelpful error message: “The tunnel has unexpectedly terminated repeatedly. It will not be restarted.” From the terminal I had no problem connecting to said server with SSH, so I couldn’t understand what was wrong.

But as it turns out, SSHKeychain uses the root account’s known_hosts, located at /var/root/.ssh/known_hosts on OSX. And since my server had the wrong fingerprint it refused to connect. Deleting said known_hosts file of course fixed the problem!

,

No Comments

GMail adds holiday (and sports) calendars

GMail recently added a feature that makes it easy to subscribe to official holiday calendars for a variety of countries. Also included are sports schedules, star dates, and (maybe more interestingly) an automatic birthday calender based on your contacts.

I can’t say I really care so much about the Swedish holiday calendar though, it doesn’t even include Midsummer Eve or Christmas Eve, arguably the two most important days in Sweden. Sure they are only de facto holidays, but still. I’ll stick to the nice iCal holiday generator over at oops.se for the time being.

,

No Comments

Staying in sync with SpanningSync

Two weeks ago I decided that I really needed a way to enable over-the-air sync of calendar and contact data to my iPhone (after having missed a couple of meetings because I had  forgotten to sync manually :P). I basically had three options:

  1. Subscribe to Apple’s MobileMe service (99 USD / 795 SEK per year).
  2. Put all my calendar and contact data on Google/GMail and sync with their Exchange interface.
  3. Start syncing using my company’s Exchange server.

Well, I’m not about to put all my private data on my employer’s Exchange server, so number 3 is out. I was seriously considering MobileMe, but the price tag really puts me off.. They do offer more services than just calendar and contact sync, but I already have working solutions in place for most of those things. Also Apple seems to be doing evil things to  customers who cancel their MobileMe accounts.

So, I’m left with option number 2. So how do I get all my data to Google, and how do I keep it synced with iCal and Address Book? Well, Address Book actually has built in Google sync (at least if you have an iPhone), and the Google Calendars can be accessed via Webdav. But there also seemed to be many potential issues… How to trigger the Address Book if you never actually sync your iPhone? Will the webdav-calendars remain editable? Honestly I’d had enough with all “semi working” calender sync solutions, and was prepared to pay to get something that “just works”. Plaxo had been doing a good job of keeping my different Macs in sync, but could not help me with my iPhone, so it was time to find some other solution.

So I found SpanningSync. SpanningSync does exactly what I wanted, i.e. sync OSX calendars and contacts with Google/Gmail. After some initial problems, where repeating events seemed to get infinitely duplicated, most things seem to be running smoothly now. Basically I only have two issues: 1) reminders don’t get synced, but instead get the default value for the given calendar (woke me up at 2am once!), 2) you can’t choose the color of the calendars on the iPhone (issue with iPhone, not Google or SpanningSync). But besides this, my data stays in sync across 3 different Macs and one iPhone (but don’t enable PUSH on the iPhone, it will drain your battery in less than a day!).

Today my 15 day free trial was (almost) over, so I went ahead and coughed up $20 (after the $5 discount) to get a one year subscription. I am, however, quietly hoping that Exchange will be naively supported in the next OSX version, so I won’t have to continue paying for this… ;)

PS: If anyone reading this is planning to buy SpanningSync, feel free to use my referral code VHKESR and we’ll both earn $5.

, , ,

No Comments