Feb 102007
 

After migrating my server to Linux, I also tried to do something about the non-existent URL’s. The previous installation had some old websites, but they where never updated. Since I did not migrate them, quite some 404’s started to come up in the logfiles.

I already had quite a number of RewriteRules in place, but for some reason the Rewrite-logfile remained empty. Not sure why, but the logfile was called “rewrite_log”. I checked the httpd.conf and located the logfile. Same name. But whilst here, why not change it to rewrite.log. Restart Apache. New logfile rewrite.log was created. I deleted the old. To test, I opened my browser and pointed to an URL that should be rewritten. Well I’ll be damned! It works. And the logfile grows….

 Posted by at 23:45
Feb 082007
 

I’ve had my share of DNS problems. My own, but also providers that screw up. Now there is OpenDNS. DNS servers free to use for everyone. That’s a great service. But that’s not all. It also catches phishing-sites and warns (paying) customers when they are trying to visit one. Last but not least it tries to correct your typing errors. If you type www.mycompany.og when you meant .org, OpenDNS will try to correct that. Neat!

So switch now, and start using the following IP-addresses as your DNS server:


208.67.222.222
208.67.220.220

If you have any questions, you can always read the FAQ. But honestly, what is there to ask?

 Posted by at 12:23
Feb 032007
 

As a thingie to enhance my PHP knowledge (I can read it, but writing is something else) I’m creating my own photo-gallery application. I just started two days ago and can only work on it in my spare time, but I have the following in place now:

  • PostgreSQL server installed; user, tablespace and database created
  • Basic tables for users and their albums created
  • Index page in PHP, basically displaying a login when you first access it, or the entries in the albums table when logged in
  • Login page in PHP, checking the supplied username and password against the users-table in the database
  • Logout page, destroying the session and return to the index-page like you first accessed it

To do:

  • Store passwords as md5-hashes (or something) instead of plain-text
  • Create an Items table (detail-records of albums table)
  • Create an Item_types table (picture, movie, etc)
  • Display pictures!
  • Create a Tags table
  • Create an Item_tags table (link between Items and Tags)
  • Functionality (->page) to link tags to items (preferable AJAXified)
  • Create tags-based search page
 Posted by at 02:22
Feb 022007
 

I must admit, this add-in or powertoy or freeware utility whatever you like to call it, is neat. Photo Info integrates into the explorer, accessible via the context menu. It also provides more info in the tooltip when you hover your mouse over a picture-file.

Photo Info supports JPG, TIFF and Nikon- and Canon-RAW files. Enough for most people.

 Posted by at 13:13