phpicalendar
Regarding my previous post about setting up phpicalendar to allow multiple calendars being posted to a WebDAV server with different usernames and passwords…
I was going to suggest hacking phpicalendar to allow transversing subdirectories recursively so that each calendar could be in its own (separately authenticated) directory, but before I do that I’m going to try something else. After reading a lot of Apache documentation I’ve come across another possibility. (I’ve been reading http://httpd.apache.org/docs-2.0/mod/core.html#files and
http://httpd.apache.org/docs-2.0/sections.html)
Basically, within the Apache configuration a section can be nested within a section in order to manage access control on an individual file basis. So instead of having a subdirectory for each user, you need only have a calendar file (.ics file) per user within the default calendars directory.
The example given in the Apache documentation is:
<Directory /var/web/dir1>
<Files private.html>
Order allow,deny
Deny from all
</Files>
</Directory>
For this application I was thinking something along the lines of…
<Directory /var/www/phpicalendar/calendars/>
<Files calendar1.ics>
DAV On
AuthType Basic
AuthName “Private”
AuthUserFile /etc/apache/htpasswd
Order allow, deny
Allow from all
<Limit PUT DELETE PATCH PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
require user user1
</Limit>
</Files>
<Files calendar2.ics>
DAV On
AuthType Basic
AuthName “Private”
AuthUserFile /etc/apache/htpasswd
Order allow, deny
Allow from all
<Limit PUT DELETE PATCH PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
require user user2
</Limit>
</Files>
</Directory>
The downside to this is that the .ics filename must be identical to the one in the Apache config file.
Note: this isn’t secure, the next task is to pipe all this through SSL.
Runtime Error… on an ATM
I noticed that BBC News is reporting “Concerns over Windows cashpoints”, “Cash machine networks could soon be more susceptible to computer viruses, a security firm has warned.”
There’s been a Windows Runtime Error displayed on our local Nationwide cash machine for about a week now, which I find highly amusing. It still works, but apparently they’re waiting for someone from head office to sort out the error.
On a semi-related note, the Sainsburys Bank cash machine down the road is being very unstable. The screen flickers, it’s extremely slow and kept beeping at me at random intervals last time I used it. I thought it was going to eat my card.
Guiness lamp
lauperr bought me the *coolest* present. It’s a Guinness Neon Lamp (you’ve really got to see it, I’ll post photos when I find the lead for lauperr‘s camera). She bought it on eBay from a Mr Wong from Hong Kong (I kid you not) and had it shipped over ๐
Pub Quiz
After our impressive winnings last fortnight (8 free drinks and a bottle of wine) we failed to win the quiz this time. We were against stiff competition and the questions were mostly about events just before we were born. We did manage to come away with a T-shirt, DVD and bottle opener and we didn’t pay for a drink all night ๐ so it wasn’t all bad! And we didn’t come last either.
Illness
I’ve just recovered from a tummy bug which I caught off Laura. I haven’t thrown up in about ten years, I thing I’ve been storing it all up ‘caus this time was pretty bad!
After being sick I was having weird dreams while trying to sleep which seemed to continue into when I was awake. Perhaps these are what are called hallucinations. I think I thought I was running Buckingham Palace and the Queen was getting mad with me because I was doing a bad job of it. There was too much paperwork to fill in you see and I didn’t understand any of the forms!
On top of that, I couldn’t seem to get comfortable, I was tossing and turning all night, and rambling at lauperr keeping her awake. I couldn’t concentrate on anything or straighten out my thoughts. If I thought about a person for example, that person would suddenly change into a group of shapes in my head – rods, spheres and cubes – and then float around incomprehensibly in the air. I didn’t really know where I was and felt very uneasy. Scary stuff!
I’m glad that’s all over!