Welcome to my little place on the web.

I'm a software developer by day, but occasionally when time allows, I like to tinker with home automation, home theatre and retro gaming (basically anything geeky that involves a computer).

When I get time I'll try and blog about these projects here. I have also shared some of my software, which I hope may be of use to others. It's on my software page.

Hide message

Displaying entries for #codingclear filter

Newest entries

Pretty backgrounds

As much as I originally liked the green circuit board background, after a few months I think it's time for a change. Well, more like some variety. I have updated the site so that the background and highlighted colour is dynamically selected by a pool of images I have set. This is done via php, overriding the stylesheets.

Images are from places I have visited. Don't worry the circuit board is still there too. I'm sure you would miss it :) There is also a new section on the sidebar that tells you a little about the background. I hope you like it.

#coding

RSS feed now available !

RSS feed has now been created.

rss.png

This is generated via php pulling the blog entries off the database in real time. I should really look at caching this. Maybe a project for another time. RSS feed is added to the header so should get picked up automatically by your rss reader pointing to this page.

#coding

Over 10 posts and no paging!

Managed to get to post number 12 and no paging! Currently it only returns the top 10 rows from the database. Maybe I never expected to have over 10 posts! :)

There will now be an 'Older entries' link at the bottom of the page. This has been accomplished by returning 11 rows from the database. Row 11 does not display the article, but instead generates the 'Older entries' button passing the id in the querystring. When the page is reloaded it will only return posts equal or less than the id querystring. Give it a try!

#coding

HTML5 site refresh

Now that I have restyled the site for mobiles. It has made me reassess my html. I really should be using html5.

html5.png

So the last few evenings I have been replacing many of my divs with the new header, nav, article, time, etc. There is a great article here - http://fortuito.us/diveintohtml5/

Don't expect anything to change. Most of the new tags are for accessibility, so that screen readers can manage the site better.

These changes do bring some backward compatibility issues with ie8. ... read more

Updating the site for mobile devices

Time for another website update. This time I looked at making some style changes to allow a different view for mobile devices.

mobile.png

My first step was to add the media attribute to the current stylesheet link element. With this set, the style will only be used on computer screens over 1069px. I then created an additional stylesheet called mobile.css. This stylesheet will be used on handheld devices or screens under 1069px. New and updated element below.

<html>
<head>... read more

We have #hashtags

Now that I have a few varied posts, I thought it’s about time I started to look at categorising these entries. My original plan was to create a new table to store the categories in the way you would expect with a normalised database. Then it occurred to me, if it’s good enough for twitter, it should be fine for my little humble site. I’ll use these new-fangled things called hash tags.

Using php regular expression, whenever there is a word with a #hash in front it, my code will wrap a hyperlink round it. Clicking this link will then return a list of posts that contain the same ... read more

Comments are finally here - am I alone?

Sometimes the internet can be rather lonely. I’m a number of posts down now and I have no idea if anyone is reading this, well except for my wife checking my spellings.

With this in mind, today I have spent a few hours creating an additional comments table. With this table created, the code was surprisingly easy to do, with just an additional SELECT and INSERT statement.

So don’t be shy. Say hello from the comments section.

#coding

Now supporting image uploads!

So, I was about to make an entry regarding my home automation setup using HouseBot software, but realised it would look a lot prettier if I could include a photo. So I have spent a few hours enhancing the site to allow image uploads to my admin pages. There is a great article over at w3schools here :
http://www.w3schools.com/php/php_file_upload.asp

But from today my site will become a lot nicer looking, and here’s a picture to prove it :)

jumped.png

I think my wife is t... read more

Hello and welcome to my first post!

This site will be a bit of a ‘work in progress’. Coming from a .net background, I thought this would be a good opportunity to learn something outside my comfort zone of asp.net and T-SQL. So with this in mind, this site has been developed from scratch using PHP and MySQL.

So far, this has gone fairly smoothly. It feels very similar to how I used to develop in classic asp many years ago. Although frustrating at times, it’s nice having the full control over the code for a simple site like this. I find when I build larger web applications in ASP.net the IDE takes over some of the granular details that I like to ... read more