23 April

Setting up a Virtual Host so that a particular user has access to it

This is how I did it. Keeping it here so I don't have to go looking through mailing list archives.

  1. Create a new group www-examplecom and add the users example-editor and www-data to it. The former is the regular user I want to have access to the files for that Virtual Host and the latter is the Apache user which may need to upload files using PHP.

  2. Change ownership of /var/www/example.com to root:www-examplecom

  3. Change permissions of /var/www/example.com directory (and subdirectories) to 0775 to give owner and group read/write/execute and then to 2775 to set SetGID to ensure files created under /var/www/example.com are created under www-examplecom

  4. Change permissions of files under /var/www/example.com to 0664 to read/write for users.

  5. Change umask for user example-editor to 0002 so that files are created by him in a way that allows them to be edited by the group as well.

  6. Set umask in the PHP program to 0002 so that files are created by user www-data in a way that allows them to be edited by the group as well.

13 December

Unenforced Laws

Do you know why the government makes some things illegal, then forces you to do them anyway, and then doesn't enforce that law? It's because when the day comes that you are a threat to it, they'll have a reason to lock you up. If you ensure everyone is a criminal, then you have a pretext to arrest anyone and when you do everyone will support your actions because, "Hey, that person knew it was illegal and still did it."

It probably won't ever happen to me, or to most of you, but it will certainly happen to those who are in great danger of making the biggest positive difference.

7 November

FWIW: Avoid Poonamallee High Road, Spur Tank Road, and McNichols Road

At the moment:

  1. Poonamallee High Road is now one-way from Ega Theatre to Nehru Park eastward

  2. Spur Tank Road is one-way westward

  3. McNichols Road is one way northward

Also, traffic is screwed to hell as a consequence of this.

6 November

Installing Windows 7 on a machine with mixed RAM

If you get stuck at some point, say disk.sys, try removing all RAM modules but one.

28 October

PyODConverter

PyODConverter and JODConverter are tools you can use for converting data from some formats into others. If you want to batch convert, just use PyODConverter, and run it through a loop. Both require you to have LibreOffice (or OpenOffice) installed. Terrific tools.

Next → Page 1 of 74