Last 5 comments
8 weeks ago
Pascal:  It should not have a problem with parentheses, any valid CSV should work. Is the file Ending ".csv"? Can you send me the output of the following Terminal command?
qlmanage -d1 -t file.csv
8 weeks ago
Ted Fischer:  This is a fantastic plugin! Unfortunately, it doesn't work with csv data generated from FileMaker Pro. I wonder if it's because FMP encloses the data in parentheses. Is there any way to fix that?
Thanks, Ted
FMPA 8.5 Mac OS 10.5.7
13 weeks ago
Pascal:  Nice tip, thanks! Looks like rsnapshot.org was also inspired by Mike Rubel's post, but done a little more professional than my version. :)
13 weeks ago
zero:  You might be interested in rsnapshot(http://rsnapshot.org). It can do snapshot backups using rsync. Timemachine might be the best comparison to its features... It's available through macports.
13 weeks ago
Bogdan:  With git, repository history rewriting is possible, but I have never tried that (only using git for less than a year).
Anyway, thanks for sharing your experience. In some environments (like whole server backup) using git/svn for backup is not really a good idea.
The archive
July 2009  (1)
March 2009  (1)
July 2008  (3)
June 2008  (1)
May 2008  (3)
March 2008  (1)
July 2007  (1)
June 2007  (3)
May 2007  (1)
April 2007  (1)
March 2007  (1)
July 2006  (2)
June 2006  (6)

Again and again and again Installing DBDmysql under OS X

Wednesday, October 7th 2009 - 17:11
With every new release of Mac OS X, the need to re-install Perl's MySQL driver "DBD::mysql" arises again. And every single time it does not work out of the box (i.e. using cpan). Since I'm giving up using Perl and write my new scripts (yes, also the Shell scripts) in PHP, partially because of problems like this, I was able to postpone dealing with this problem, which arised after installing Snow Leopard - up until today.

If you have the problem it is most likely (and has always been) due to wrong paths to MySQL's header files. The fix is simple, and if you google for it people were complaining about the same problem even under OS X 10.2. Here's the solution: Build the thing manually, giving the right paths to Makefile.PL:

$ perl Makefile.PL \ --cflags="-I/usr/local/mysql/include -Os -arch x86_64 -arch i386 -fno-common" \ --libs="-L/usr/local/mysql/lib -lmysqlclient -lz -lm"
0 comments

Automated snapshot backups using rsync and launchd over ssh

Monday, October 5th 2009 - 18:46
I needed to backup the contents of a file sharing directory of a server in our LAN to the shiny new mirrored 1 TB RAID inside my Mac Pro. Having a simple backup is nice, but it's even better to have snapshots, with the possibility to jump back to any date and have the exact representation of the disk as it was back then (TimeMachine also does this pretty well for Macs).

Always creating a complete backup would be a waste of disk space par excellence and in my case - backup via LAN - also pretty hard on the network. Fortunately there is rsync, and there's our friends ssh and launchd. rsync takes advantage of *NIX file system hardlinks and when called with the right arguments only backs up new files since the last backup, pointing to the older copy of a file if the file has not changed in the meantime. Mike Rubel has written up a nice article covering these aspects of rsync, check it out.
5 comments

Static SQLite Library with Unicode Support for the iPhone

Saturday, August 8th 2009 - 12:25
For my Eponyms iPhone App I wanted to bless SQLite with the ability to handle special chars - especially German Umlaute - like they should be handled, which e.g. is treating ä like a when sorting. Currently these Umlauts appear after Z, which is not what we want.

This article shows how to get this to work for your SQLite-using iPhone App, implemented as a static library.
1 comment

QuickLook Plugin for CSV files

Sunday, July 5th 2009 - 23:01, 2 updates, last Tuesday, September 8th 2009 - 22:16
This one bugged me a long time, and over the weekend I decided that it's finally time to roll it: I created a simple QuickLook Plugin for CSV files.
The nice thing is - the Finder also uses this Plugin to create the Finder Icons. For speed reasons I decided to limit the display to the first 200 rows maximum, but since this thing is Open Source, you can change that whenever you like. The project website is here: http://code.google.com/p/quicklook-csv/. There you can also find a DMG containing a pre-compiled binary ready to use after download.
4 comments

Pirated version of MedCalc for sale on the App Store!

Friday, March 13th 2009 - 00:18, 1 update Friday, March 13th 2009 - 18:40
Open Source Software is a great thing, however there's always some lunatics out there that want to profit from the work of others. This is exactly what happened to Mathias and me; German guy named Sandro Stricker takes our source and puts it on the App Store as a 1$ app! He does not bother to comply to the license and all he changes is the name (from MedCalc to "X MedCalc"), the Icon, the loading screen and - the copyright and development notices!
3 comments