Twitter Updates

Wednesday, 25 February 2009

Create .dmg files for distribution

I have been using the command line utility hdiutil to build dmg files for distribution.
$ hdiutil create "./dist/FileExplorer.dmg" -srcfolder ./dist/ -ov

I would like to improve the dmg to have a back ground image and a link to the apps folder for the user to be able to easily copy the app. These two pages look like good resources:

Monday, 23 February 2009

Sorting Completed and closed torrents from Active

Many torrent clients have the option to move completed files from one folder to another, but this does not help if the Downloads folder already have things in them. I also prefer to sort my downloads according to my own hierarchy not the names and folders that they were named in the torrent.

Therefore I am more concerend in moving the file to a completed folder when I have stopped downloading and seeding.

The following script which depends on having Aversa

There are a few folder hierarchy variables that need to be setup but then it could be used to move files which no longer have a torrent file referencing them into another folder.

Friday, 20 February 2009

Install git on MAC OS X 10.5.x

I have for a while been trying to find good ways of publish small scripts and code snipets, The Web view offered by Seems to be very good and they offer free hosting to open source projects.

However the source control program 'git' is not installed by default. There now appears to be a very good installer offered by google code here.

I had to add a new path to my .bashrc to make it work from the terminal.
$ vim ~/.bashrc

and add these lines in (remember to press i in vim to get to insert mode)
#Add Path for google code install of git (Source control)
export PATH=$PATH:/usr/local/git/bin/

And press 'esc : w q return' to save and exit vim.

The github guide also seems very good, although I could not get it to install via macports.

Wednesday, 11 February 2009

100th Post & FileExplorer 0.1.0.a3 Released

My 100th Post and a new Release of my SourceForge program file explorer. It's still in alpha but you can cut and paste files and folders and pasting folders will merge with existing folders.

It gives a fast method for switching between showing and hiding hidden files. There is also various sorting modes when displaying file, merged for mac style, Files & Folders or Folders & Files give a windows style file sort except they maintain there order (files or folders on top) regardless of ascending or descending sort.

FileExplorer 0.1.0.a3

Bash command line Args $*

When writing bash scripts the command line arguments are passed as $1, $2 or $* for all arguments. A simple script that prints all the commands might be dsomething like:


#Display all
echo $*

Some times you might want to access the first argument then hand off the others to another command. 'shift' can be used here


#Store first Arg
#Shift arg array to the left
#Display the rest
echo $*

Tuesday, 10 February 2009

Using Xargs on Mac Terminal

Xargs is used to run commands on the output from other command line programs.
The OS X version is missing the default -I {} that other *nix sytems seem to have.
The following command will search for and print files matching *something*. The xargs is redundant here but gives a good frame work.

$ find . -iname *something* | xargs -I {} echo {}

Or move matching files to another location.
$ find . -iname *something* | xargs -I {} mv {} ../Other/Location

Thursday, 5 February 2009

Photography: Joe Cornish Gallery

For those that are interested in photography and might be in the area, I have a print on display at the Joe Cornish Gallery in Northallerton until the 24th of February 2009.
For those not likely to be around the Northallerton area it is also on my flickr page.


Northallerton Gallery

Joe Cornish Gallery
Joegraphic Ltd
Register House
Zetland Street
United Kingdom

Tel: 01609 777404
Fax: 01609 777403

Opening hours
Monday - Saturday 10:00-17:00

FileExplorer 0.1.0.a1 Released

First functional release of FileExplorer.

Bringing Cut and Paste to Mac File Browsing.
Along way to go before fully functional. like right click menus etc.
and icons!

Creating Subversion tags

Subversion is a popular source code revision control application. When making a release of the it is a good idea to make a tag so that you roll back or branch from a specific version. Assuming that the /tags/Releases folder already exists, this command will create a tag

svn copy \ \
-m 'Tagging the 0.1.0.a1 release'