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