ZSNES on Ubuntu Karmic 64-bit

As per this post on the Ubuntu forums:Download the 32-bit deb installer Install with:sudo dpkg -i --force-architecture zsnes_1.510-2.2ubuntu2_i386.debRun with:zsnes -ad sdl

Website Statistics with Visitors

As a useful addition to the webstats armory Visitors offers a quick way of getting a HTML report of site usage from server logs. We mainly use AWstats, Webalizer and Analytics products (Google Analytics, Piwik) but I found Visitors useful today. Install... » More

Apache Server Status OPTIONS *

Checking the Apache server-status page I noticed multiple lines like the following:29-39-0/0/3162.32.26894900.00.00186.48123.111.123.111mywebsite.co.ukOPTIONS * HTTP/1.030-39-0/0/10.0.002432400.00.000.04123.111.123.111mywebsite.co.ukOPTIONS * HTTP/1.0The... » More

mysqldump

Basic Usage:mysqldump -u root -pSECRET --quote-names --databases  mydatabasename > mydatabasename.sqlIf find it best to include the --databases switch as this will add the 'DROP DATABASE' and 'CREATE DATABASE' statements when restoring - proceed... » More

Redirecting Mobile Web Users

There are a few potential methods for this, but the first worked fine for me.1. Apache Mod_RewriteRewriteEngine On#redirect mobile browser using HTTP_ACCEPT headerRewriteCond %{HTTP_ACCEPT} "text/vnd.wap.wml|application/vnd.wap.xhtml+xml" RewriteCond... » More

Opera Mini on Ubuntu

I'm using Ubuntu 9.04 and I wanted to be able to run Opera Mini for testing web sites:Download MicroEmulator from here (or direct version 2.0.3)Extract the tar file and run the jar with: java -jar microemulator.jarIn the Window that opens from the... » More

Apache DirectoryMatch for Intranet-Style Access

I needed to ensure that within a rather large directory structure any directory named 'intranet' was only accessible by internal IP addresses. Although from a security perspective this is not truly intranet it is what I was asked to... » More

Shutting Down Solaris 8

I was trying to shutdown an old solaris box with:shutdown nowObviously not the right thing to do as I got output similar to this:Shutdown started.    Mon Oct 19 11:58:55 BST 2009Broadcast Message from root (pts/1) on apu Mon Oct 19 11:58:55...The... » More