Mark Kirby

Tutorials

Some in depth tutorials.

Subversion and Ruby on Rails

February 22nd, 2008

When using Subversion with Ruby on Rails there are a couple of things to take note of.
Firstly, there are files you want to exclude from the Subversion repository, the log files, temporary files and database file. The log files and tmp files can get very large, and the database file might be different on different [...]

What to do if you removed all your Firefox search engine plugins

February 21st, 2008

I was playing around with Firefox search engine plugins this evening and I decided to remove all of them from my browser. Once this is done, you can’t add any more, your stuck without any and can’t add any.
Luckily there is a solution. Find your firefox user profile (on a mac its located in your [...]

How to set up a UK iPhone

February 19th, 2008

I purchased an iPhone from O2 today. I was surprised to find that when signing up they didn’t require me to take out a contact, I simply purchased the phone and was told to plug it in to my computer to get it working.
Here’s what you need to do to set up the iPhone.
Get a [...]

How to downgrade Ruby on Rails

February 19th, 2008

I’m learning to use Ruby on Rails at the moment on weekends and after work for a project I’m working on for a friend. The problem is, I’m learning using the book Agile Web Development for Rails, which is written for Rails version 1, and I’ve installed Rails version 2 on my Mac.
The solution is [...]

How to set up and use Subversion (SVN) on OS X Leopard

January 31st, 2008

Subversion is a tool which allows you to save code changes and then step back through the changes at a later date, or revert back to previous changes if things go wrong. It provides the following benefits:

Mistakes matter less - you can always go back
More than one person can work on the same code, without [...]

Set up Ruby on Rails with mySQL on OS X Leopard

January 29th, 2008

I decided to start learning Ruby on Rails, apparently one of the best programming languages/frameworks out there. RoR (Ruby on Rails) comes pre-installed on Leopard, but its not the latest version, and its set up to work with SQLlite, not mySQL, which I want to use.
This tutorial will get you the latest version of Rails [...]

Set up PHP 5, Apache 2 and MySQL 5 on OS X Leopard

December 10th, 2007

The aim of this tutorial
You have a new mac, with leopard installed. You want to be able to test your PHP websites on your mac (in my case, my wordpress blog), so you can make sure things work before uploading to your webserver. You, like me, are unsure how to go about this.
By the end [...]

3 ways of optimising images for google images

November 23rd, 2007

If you want your images to appear in google image search, you must optimise them. In order here’s what I believe to be the 3 best ways.

This image of St Mark’s Basillica has been optimised

1 - Optimise the filename.
After reading search engine journals article on image search i realised why my images don’t rank [...]

From example.com to www.example.com

June 6th, 2007

Make sure your website does not appear when entering in the hostname without the initial www - this can lead to a 301 sabotage. This is where a duplicate penalty could be triggered and get you knocked out of google.
Put this in your .htaccess file
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.example\.com [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^/(.*) http://www.example.com/$1 [R=301,L]

Regular Expressions with PHP and HTML

April 17th, 2007

You can use regular expressions to locate specific tags in HTML. My last post gave some examples of this. Here I will explain how to execute the code, how to parse the HTML in different formats and how to compose regular expressions like the ones in the previous post. Finally we will create our own [...]

This site was created with Wordpress, using my own template.