www.devco.net by r.i.pienaar

19Mar/054

Mozilla Sunbird, Apple iCal and The Missing Sync

Inbetween moving house I have also been playing with a little 12" iBook, I think I am going to buy it since I do quite fancy it.
One of my big wishes in life has been to get Sunbird Sync'd up with my iPaq as I have mentioned here a few times before. The Apple has that ability, though not natively, but by buying a 3rd party application called The Missing Sync.
After failing to find a demo version I ended up buying this tool only to find that syncing the device with a Sunbird file loaded into iCal totally nukes the iPaq, needed a hard reset.
After much digging around these files and coming up with the types of entries I have, creating matching ones in a new file in iCal I finally got a good idea of the format that iCal likes. Seems there are 2 major problems with Sunbird data:
1) Sunbird puts things on multiple lines, for some reason iCal does not like this, so I just joined the lines together so that you now have SUMMARY:An Event on one line rather than 2.
2) Monthly repeating events should really have a BYMONTHDAY=nn clause at the end of the RRULE, Sunbird does not add them.
Once I had a perl script to do the fixup and loaded it into iCal syncing worked 100% and I now have a iPaq synced up with iCal files, though cant really edit them in Mozilla :(

Tagged as: 4 Comments
11Mar/052

daemon(8)

I've been trying to think of a good way to start the exim greylistd which does not by default run in the background.
I remember reading about daemonize long ago and found it again via Google. I checked if my FreeBSD machines has this command and stumbled on daemon(8).
It was introduced around FreeBSD 4.7 and supports running any command in the background complete with pid file support.
I put the following command in a simple rc script so now I have a full start, stop, restart style command for greylistd.

/usr/sbin/daemon -cf -p /var/run/greylistd.pid /usr/local/sbin/greylistd

4Mar/050

Composition in Photography

There is a nice collection of links on guides, rules etc on composing images on Digital Photography Blog.
Possibly the most useful advice comes from the same site:

..sometimes in knowingly breaking compositional rules we actually create some of the most interesting and emotion provoking images possible.

Following the rules is all about getting a feeling for photography, breaking them is about getting your own style and standing out amongst the rest.
The full article can be seen here