iCalendar and webdav

Work

A current project at work is setting up a Linux/Apache/MySQL/PHP server to eventually be used to host a web site for Catmose Arts and run services for the County. I’m currently using a PC from home for the job because I inadvertently wiped the BIOS of the 2Ghz/120Gb/1Gb server I was supposed to be using! Will tell that story next time.

Once I’d got some hardware that I knew worked with Debian stable it took me very little time to set up the server. My current problem is setting up a webdav server (reasonably securely) to allow people to publish iCalendar compatible calendars to the web site (see rfc2445). I’m using phpicalendar to parse and display the .ics files on the web ok but I’m having problems setting up write access to the calendars directory using webdav (any help appreciated). Read access is fine and I can subscribe to calendars. I’m using the mod_dav module for Apache and I want to use at *least* digest authentication for write access. I really need to do a lot more reading and googling so I’m comfortable with my httpd.conf file and my htaccess config.

Another problem is that I want each calendar uploaded to the server to be protected by a separate username and password (for writing, not reading). Currently phpicalendar only parses .ics files stored in one directory and does not transverse the directory tree recursively. As http authentication built into Apache only allows password protecting directories, not files, this is a problem because I can’t currently put each calendar in its own directory. I’m going to try and hack the phpicalendar code but I fear I may break it 🙂 Again, any help welcome. I think there may also be a bug in the way URLs are parsed differently in normal and printer-friendly views, I’ll try and let the developers know.

Casual Observation

I’ve noticed that “Suits” have started wooly jumpers and smiles as some kind of disguise. It’s a worrying trend which I fear may have been influenced by Steve Jobs and is passing through the corporate world like wildfire. So remember people, stay on guard. The Suits(TM) are getting more devious every day.

Holiday

Because of previously mentioned hitches the holiday has been moved to February. lauperr, her family and myself will now be heading off to Agadir in Morocco. The more I read about Morocco the more I think we should have booked somewhere in the Canary Islands but… I’m sure it will be great. I’ve finally got my passport and I get to go on a plane for the first time too (nobody can believe I’ve never flown).

Other News

So much going on at the moment, don’t have time to blog it all. My car sailed through its MOT on everything except Carbon Monoxide emissions (grr, there goes another £130). Money is still a problem but I’m getting quite a bit of Freelance work to supplement my income and keep me out of the red. If they can just cancel Christmas, I should be fine 🙂 (bah humbug). I’m slowly being driven insane by the lack of music during my 80 minutes a day of driving too and from work. I’ll have to ask for a CD player for my car for Christmas, but if anyone knows how to unlock a locked car radio that’s had the wrong code punched in too many times…

Poor lauperr

Poor lauperr is very ill at the moment and needs lots of nursing. Feel free to send flowers and cards (or a donation to a favoured animal charity), but chocolate is likely to end up in the toilet :S

Leave a Reply

Your email address will not be published. Required fields are marked *