Handy Hints: Emptying log files

April 16th, 2009

When emptying log files, don’t just rm log_file.log as the disk space won’t be freed until the application that is logging is restarted.

It is better to use > log_file.log as that will allow the file system to free the space that is used by the open file.

Handy Hints: What is using up my disk space?

April 6th, 2009

Here are some commands I use to find out what is eating all of my disk space on a remote server:

df -h Shows how much disk space is available. The -h means that you get G for gigabytes, M for megabytes etc.

sudo du -k / | sort -n Shows which directories are biggest (starting at the root directory /). The biggest ones will be printed at the bottom of the list. The sudo allows du to check directories that your user doesn’t have permission for. To check your home directory only use du -k ~ | sort -n

du -ka | sort -n Shows the size of all the files and sub-directories of the current directory. The biggest ones at the bottom of the list.

watch 'du -ka | sort -nr' Shows the size of all the files and sub-directories of the current directory. The biggest ones at the top of the list. The list is updated every 2 seconds. This is useful for watching disk usage in a particular directory, such as an upload directory on a web server.

The Shadow Factory

March 30th, 2009

The Shadow Factory is now the name of the band. We nearly have a website, it can be found at http://theshadowfactory.net. New songs will be posted there, and the ones on this site will be migrated over.

DEMO: To Live With Rich People

March 28th, 2009

A slower heavier one again. Like the last one, there wasn’t too much to do in the way of mixing. There are some “bass farts” where it seems like the bass saturated the mic when we recorded it. (If you listen closely, there are some in 2001 too).

To Live With Rich People -

I think I’d like to add a deep swirling bass synth in there sometime.

DEMO: 100 Years

March 27th, 2009

Another day another demo.

100 Years -

There’s not so much going on in the mix for this one. Quite simple and a bit short, but you get the idea.

DEMO: The Runner

March 26th, 2009

Here is the third demo song that we have waiting for a singer…

The Runner -

Maybe the panning is too wide on the solo. Maybe I should listen to these through a stereo instead of just my headphones ;)

Enjoy!

Demo songs

March 20th, 2009

I have a band with Adam and Fraze in Dundee. We don’t have a name yet, or a singer…
If you want to sing with us, let us know.

Here are a couple of demo songs:

They were recorded in different rehearsal rooms at Stage 2000 using a SoundBlaster Live! (I think), then mixed using Ardour. I will upload more when I get them mixed.

git-svn new branches don’t show up…

February 23rd, 2009

Working with git-svn I noticed that new branched didn’t show up when I did the usual git svn rebase to get the remote changes. After a bit of searching and not coming up with much, I worked out that git svn fetch pulls in the changes for the whole module, not just the current branch. After running that command, the new branches, tags etc. show up.

Hope this helps someone…

Enabling bash/git auto-completion in Ubuntu

February 19th, 2009

I now use git quite a lot for various projects.  I noticed that on one computer I had very handy tab completion, and the other one did not.  They are both running Ubuntu 8.10, so there shouldn’t be a difference.

It turns out that I had enabled bash completion on one machine but not on the other.

To enable it for all users on your system you need to edit  /etc/bash.bashrc and uncomment lines 32 - 34 (in the default file) so it looks like:

# enable bash completion in interactive shells
if [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
fi

Open a new terminal and auto-completion should now work.

Wordpress upgrade

February 11th, 2009

I’m loving the new “Upgrade” button in wordpress.

Making upgrading of web apps as simple as possible is one way to make sure the users/admins keep the software up to date.

Now I just wish that I set up a different theme for this site so it didn’t wipe my adverts out every upgrade… Oh well.