Mark Kirby – Mobile Developer

I'm a user focused mobile developer, here is where I publish advice and thoughts on building great mobile apps

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

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

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

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

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

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

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} !^$ [...]

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

Regular expressions for HTML

April 5th, 2007

Regular expressions can be used to find HTML code which can then be used for cleaning or in CMS’s. Here are a couple I’ve been looking for. To find all tags on a page </?\w+((\s+\w+(\s*=\s*(?:”.*?”|’.*?’|[^'">\s]+))?)+\s*|\s*)/?> To find a class or id tag class=”[^"]*["]|id=”[^"]*["]|style=”[^"]*["] \sid=” – the \s represent any type of space (tab, space, form/line [...]

Finding out how much your site is indexed in search engines

January 31st, 2007

Using the Seoquake firefox plug-in do the following: Page caches Make sure the preferences are setup so the Google cache date displays on Google search results. Do an advanced search in Google, with 100 results shown for the search term site:www.yourwebsiteaddress.com Click on the down arrow at the top of the page next to the [...]

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

Switch to our mobile site