Some in depth tutorials.
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 [...]
Tags: ruby-on-rails
Posted in tutorial | 1 Comment »
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 [...]
Posted in tutorial | No Comments »
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 [...]
Tags: iPhone
Posted in tutorial | No Comments »
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 [...]
Tags: ruby-on-rails
Posted in tutorial | No Comments »
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 [...]
Tags: subversion
Posted in tutorial | 11 Comments »
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 [...]
Tags: ruby-on-rails
Posted in tutorial | 2 Comments »
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 [...]
Posted in tutorial | 9 Comments »
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 [...]
Posted in tutorial | No Comments »
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]
Posted in tutorial | No Comments »
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 [...]
Tags: regex
Posted in tutorial | No Comments »