Archive

Archive for the ‘Development’ Category

Redmine & Bazaar Repositories

May 6th, 2009

Sigh…

It’s taken me about a day of fiddling about to finally get Redmine to work with my Bazaar repositories.

This is the first time I’ve ever used Redmine (as well as Rails), so much Googling was required.

Read more…

Nick Development

Shell Line Count

April 23rd, 2009

I found this useful page for counting lines in projects that I work on.

There are a couple of different techniques there, but I personally use the following:

find . -type f -name '*.php' | xargs wc -l

Nick Development

Filesize Formats

March 29th, 2009

This handy function allows you to pass a filesize in bytes and have it returned with the appropriate suffix.

Credit is due, but I don’t remember where I originally found it (possibly the PHP documentation site).

Read more…

Nick Repository

Country Array

March 29th, 2009

Here is an easy to use function to allow you to display a list of countries to your users – this avoids them having to type it out (potentially incorrectly), and is ideal for use in a select field (drop-down box).

As an added bonus, you can also download a collection of flag images, with each image filename renamed to match the corresponding array key. The original images can be found at famfamfam.

Read more…

Nick Repository

Developing with Bazaar

March 23rd, 2009

I’ve been using Bazaar VCS for some time now, perhaps half a year or so, and have come to love it for its simplicity but also its flexibility.

In this article I’m going to outline the process of setting up a project repository with Bazaar and then using it alongside development.

Read more…

Nick Development

Wildcard VirtualHosts (Mac OS X 10.5)

March 23rd, 2009

I spent a good hour or so trying to get wildcard VirtualHosts working on my Mac – here I’m going to outline the steps I took, as information on the web was very sparse.

Read more…

Nick Development , ,