Archive

Archive for the ‘Development’ Category

Redmine & Bazaar Repositories

May 6th, 2009 5 comments

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…

Categories: Development Tags:

Shell Line Count

April 23rd, 2009 No comments

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

Categories: Development Tags:

Filesize Formats

March 29th, 2009 No comments

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…

Categories: Repository Tags:

Country Array

March 29th, 2009 No comments

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…

Categories: Repository Tags:

Developing with Bazaar

March 23rd, 2009 No comments

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…

Categories: Development Tags:

Wildcard VirtualHosts (Mac OS X 10.5)

March 23rd, 2009 No comments

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…

Categories: Development Tags: , ,