If you wonder what content your site had or how it looked months and even years ago http://web.archive.org may be the place to visit. I just had a look at my site http://web.archive.org/web/*/https://toggen.com.au/ and there are pages from as far back as 2003. I...
Selected posts
Separate Websites should be run under separate User Accounts
If you have an account with a webhost which allows you to run multiple domains (or even `unlimited' domains ala Dreamhost). You may be tempted to run multiple websites under the default account that is provided by the hosting company. But while convenient, this has a...
Resolve Relative to Absolute Paths with readlink
Just wanted to resolve a relative file path so that I can pass it as an absolute path to a program. #!/bin/sh QCAD_DIR=/opt/qcad-2.2.2.0-1-prof.linux.x86 ABS_PATH=$(readlink -f "$1") cd $QCAD_DIR && ./qcad $ABS_PATH Credits: Andy
Encourage Comments on Your Blog
I'm fairly strict with what I allow as comments on this blog. But if someone has gone to the effort to post a well-thought-out comment I don't mind if they put a URL in the comment or the associated website field and therefore gain some SEO benefit from it. I have...
MySQL Backup to Email or Disk Script
If you run mysqldump --all-databases you get one monolithic file which can be a pain when trying to restore one database. So it's nice to call mysqldump dbname so you get individual database backup files. To call mysqldump for each database requires that you either...
Locally hosted Piwik a replacement for Google Analytics
Looking at this article on Slashdot led me to an open source version of Google Analytics namely Piwik. Installation of Piwik is very easy and It has a Wordpress Module, WP-Piwik so integration into a WP blog isn't too difficult. Another benefit is you get a stats page...
Create a WordPress Page Tab that leads to a non WordPress URL
I have my Wordpress setup to display all the blog posts on the front page and the Wordpress "Pages" as tabs on the navigation at the top of the page. However I also would like the navigation to point to other non Wordpress areas of my domain and go straight there. For...
Migrating the WordPress MYSQL Database to a New Table Prefix the Hard Way.
So I have moved my domain to dreamhost.com Why? Got sick of my home computer being a VMWare Server. Couldn't reboot or upgrade when I wanted Computers are evil time suckers. Moving my website means I don't have to worry if it's up, down or sideways. dreamhost.com can...
WP-Highslide Plugin XHTML gotcha
I have the WP-Highslide plugin installed. When I attempt to validate my highslide enabled pages over at http://validator.w3.org/ I get: Line 231, Column 62: document type does not allow element "div" here; missing one of "button", "map", "object", "ins", "del",...
Create a Favicon in GIMP and apply it to your WordPress Install
I have added a favicon.ico to this site. This is how I did it using GIMP. Open a picture in GIMP Image => Canvas Size (Change the canvas to be square) Unlink Width to Height Chain Increase the narrowest dimension (either width or height) to be the same as the widest...