18 July 2010

First WordPress plugin

Posted: July 18th, 2010 | Author: Jon | Filed under: Development | Tags: , , , | No Comments »

As I’ve recently changed the theme I use in WordPress I’ve lost all the basic SEO tweaks I’d made. Rather than make the tweaks again to this theme I’ve decided to convert them into a simple WordPress plugin, should allow me to get my hands dirty with the inner workings of WordPress and plugins as well as save a bit of time in the long run. I’m also planning on documenting the development of the plugin here.

While Java is my preferred language of choice I’m sure it won’t hurt to stay involved in PHP.


How to generate stats for IIS log files using Webalizer

Posted: July 18th, 2010 | Author: Jon | Filed under: System Administration | Tags: , , , , , , | No Comments »

While sorting through some of my many backups of old machines I came across a whole load of IIS log files for an old site of mine so I thought I’d process them and generate some statistics. I’ve used Webalizer quite a few times before for generating stats on Apache log files and as v2.01 is available via Synaptic Package Manager in Ubuntu I thought I’d use this.

Unfortunately v2.01 doesn’t support support the W3C format that IIS uses, looks like it does now in v2.20 though. However IIS includes a utility called ‘convlog‘ for converting it’s logs files to the NCSA common log file format that Webalizer does support. So I fired up my old Windows XP box, installed IIS and used the following command to convert the log files:

convlog -ie ex*.log

Once that had processed all the log files (by default it creates a copy of each log file) I copied them back to my Ubuntu laptop and used ‘cat‘ to combine all the files into one big log file:

cat ex*.nsca > master.log

All that was left to do was create a config file to tell Webalizer what it should do, so I copied the default config file and customised the options to my needs. Then ran ‘webalizer‘ using the customised config file:

./webalizer -c master.conf

Once it’s performed it’s magic you should have a bunch of detailed reports in the location you specified in the config file!


15 July 2010

Changing Tack

Posted: July 15th, 2010 | Author: Jon | Filed under: Site | Tags: | 1 Comment »

I’m going to start posting more technical content on this blog from now on. Ranging from details on any personal development projects I happen to be working on, links to various technologies and frameworks I find interesting to guides on setting up or configuring various systems etc.

I’m hoping this change of tack will help me blog more often here.