James McDonald

Secure your .htaccess files

Recently discovered an old Joomla website that had been hacked by a remote exploit which changed the contents of .htaccess and redirected the connecting clients away to malicious sites. I don't know how they managed it but I thought that if .htaccess wasn't writeable...

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...

www.zshare.net DNS black holed

Check this out... Watching a video that was hosted on zshare.net... Tried to watch the next one in the series. Firefox kept saying that I had a problem loading the page. A little investigation and I discovered that DNS was replying with the address for localhost...

Evolution – Exchange the Sand Dune Edition

Evolution at least the Exchange integration component is so buggy you could drive it on sand dunes. Every time I update Ubuntu I try the default mail application. For Ubuntu this is Evolution. Call me optimistic but as time progresses I would hope that basic...

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...

Ubuntu 9.04 + Sarg + Squid – No Reports

Sarg is a Squid Report Generator that scans your Squid logs and generates html reports that are available via a web page. I have used sarg for years on Redhatian boxes with no troubles. My issues started when I moved to Ubuntu as my Squid Proxy. No Daily, Weekly or...

Gallery 2.x Thumbnail broken and won’t rebuild

Was just looking in my Gallery and found an image with a broken thumbnail. Broken thumbnails seem to be a semi-regular occurence. Normally if this happens I can use the Gallery 2.x photo edit functionality and; rotate the photo back and forth and the thumbnail...

Customize Squid Error Messages

If you edit the cache_mgr value in /etc/squid/squid.conf you can set an email address which will appear as the contact point in any error messages that Squid returns to it's browser clients. However this doesn't allow you to have different link text that is displayed...