Oliver Davies

Freelance Drupal Developer

Blog

How to use Authorized Keys to Create a Passwordless SSH Connection

01/02/2012 -- Oliver Davies

Rather than have to search through Google whenever I need to find the original article, I thought that I'd post it here for my own reference.

local$ ssh-keygen -t dsa
local$ scp ~/.ssh/id_dsa.pub remote:~/
local$ ssh username@remote
remote$ cat ~/id_dsa.pub >> ~/.ssh/authorized_keys
remote$ chmod 644 ~/.ssh/authorized_keys
Tags: 

How to Install and Configure Subversion (SVN) Server on Ubuntu

19/10/2011 -- Oliver Davies

Recently, I needed to set up a Subversion (SVN) server on a Ubuntu Linux server. This post is going to outline the steps taken, and the commands used, to install and configure the service.

Note: As I was using Ubuntu, I was using the 'apt-get' command to download and install the software packages. If you're using a different distribution of Linux, then this command may be different. I'm also assuming that Apache is already installed. 

Firstly, I'm going to ensure that all of my installed packages are up to date, and install any available updates. 

Create Multigroups in Drupal 7 using Field Collections

28/08/2011 -- Oliver Davies

One of my favourite things lately in Drupal 6 has been CCK 3, and more specifically, the Content Multigroups sub-module. Basically this allows you to create a fieldset of various CCK fields, and then repeat that multiple times. For example, I use it on this site whist creating invoices for clients. I have a fieldset called 'Line Item', containing 'Description', 'Quantity' and 'Price' fields. With a standard fieldset, I could only have one instance of each field - however, using a multigroup, I can create multiple groups of line items which I then use within the invoice.

One Year Blogiversary

19/03/2011 -- Oliver Davies

One year ago today, I added my first blog post onto this website. Since then, I've added a total of 34 posts and received 9,947 visits, as well as adding my website development portfolio and testimonials.

Many thanks to everyone who's readed and commented on my blog posts during the last 12 months. Hopefully, this time next year, I'll be reporting back with some even better figures.

Tags: 

Display the Number of Facebook fans in PHP

15/03/2011 -- Oliver Davies

Replace the $page_id value with your Page ID number (unless you want to show the number of fans for this site).You can find your Page ID by logging into your Facebook account, going to 'Adverts and Pages', clicking 'Edit page', and looking at the URL.

For example, mine is https://www.facebook.com/pages/edit/?id=143394365692197&sk=basic.

I've also wrapped the output in a number_format() function so that it properly formatted with commas etc - like where I've used it within the Gold Event listing on the Horse & Country TV website.

Pages