FireFox 4

If you just download the firefox tar, then you’ll get an error:

 ./firefox-bin: error while loading shared libraries: cannot open shared object file: No such file or directory


./firefox-bin: /usr/lib/ version `GLIBCXX_3.4.9' not found (required by /home/cameron/firefox/

To fix this follow these steps.

cd ~
download the file: firefox-4.0.tar.bz2
tar xvf firefox-4.0.tar.bz2
cd firefox
download the fedora rpm: libstdc++
rpm2cpio libstdc++-4.3.0-8.i386.rpm | cpio -i --make-directories
#note the lack of / at front of usr/lib in the line below
mv usr/lib/* .
rmdir usr/lib usr

hope that helps..

Check out my new HTML5 app at:

I get the following when I install firefox 4 on ubuntu:

exec: 398: firefox/firefox-bin: not found


If you are trying to install firefox 4 for ubuntu, you also need

sudo apt-get install ia32-libs

It’s about 40meg, and after that you can either run it from the command line (firefox/firefox) or double click on “firefox” from gnome.

I didn’t setup my svn in the standard way. Standard convention would say it looks something like this:


As I have previously posted, I don’t like the tools dictating how I should setup my source tree. So I have:


etc… projecta and project b interact with other (one is libraries).

but now I need a branch. So what I did was create a “branch” project for my “betabranch”.

mkdir -p branch/betabranch
svn import branch http://somehere/svn/branch

So now I can easily branch the code with

svn copy http://somewhere/svn/projecta http://somewhere/svn/branch/betabanch/projecta

I haven’t done the merge yet, so I might be in for some pain. We will see..


I’m thinking of adding iptable rules to block out various countries from connecting to various ports/services on my machines. Does anyone have any experience on this? Is there a noticable difference between < 100 rules and > 2000, > 10000?


The menu bug that caused gimp to crash on all platforms is fixed now.

Here is the excerpt from the changelog:

Overview of Changes from GIMP 2.6.9 to GIMP 2.6.10

* Bugs fixed:

 613328 - TGA files saved with incorrect header yOrigin data
 623290 - Save As... does not save Windows Bitmap as default in dialog
 621363 - CMYK decompose broken
 595170 - brush - color from gradient works wrong in greyscale
 613838 - Error in gimp-hue-saturation PDB call
 622608 - GIMP crashes when clicking any scroll bar from combo boxes
 565459 - newly opened images are put into the background

* Updated translations:

 German (de)
 Italian (it)
 Romanian (ro)
 Portuguese (pt)

I’m almost certain this is wrong, but I’m keeping it as a note for myself:

I bought a macbook in October last year. It obviously cost more than $1000, and since I did not buy it in Australia there is not GST component (however, you might need to pay customs duty on entry to the country .. depending).

How do I depreciate this asset?

After some research, it seems that you depreciate laptops over 3 years.

Using flat line depreciation: (equal each year).
Let’s say it’s $2001, and I bought it 18th October, 2009

First calculate number of days I didn’t have it
31+31+30+18 (number of days in july, aug, ..) = 110
Depreciation per year – $2000/3=$667.
Depreciation year end 2010: 2000/3*(365-110)/365 = $465
Depreciation 2011: 667
Depreciation 2012: 667
Depreciation 2013 (110 days) = rest = 201 (2000/3*110/365 = 200)

Also note that as far as I know, there is no rule to say it has to be bought in Australia! Crazy, so you also get the 50% small business tax concession
(so you can claim an additional $1000 in this case (2000*50%) on your tax return for 2010).

This is not tax advise, nor financial advise, and I am not qualified to give either. But if you need help loosing money on the stock market, follow my lead.

After running out and buying a bunch of assets that I needed for my small business in 2009 and to take advantage of the Small Business Tax break (claim 50% extra depreciation). I now need to do all the accounting for these computers.

I bought a computer that costs $1038. And the rule says the asset must cost $1000 or more to be elligble. So since there was $94.36 in GST, is my asset is less than $1000 excluding GST. Is it: 1) a depreciating asset, and 2) elligible for the tax break?

Short answer: no to both. The item has to be at least $1000 exclusive of GST (so $1100 or more inclusive of GST).


This is not tax advise, nor financial advise, and I am not qualified to give either. But if you need help loosing money on the stock market, follow my lead.

There is a bug in gimp 2.6.9 which causes it to crash when you use the menus in a certain way.

It happens on linux and windows.


You can get the latest development version from

You can read the notes for the release here:

If you have ubuntu you can get (easy) build instructions here: build gimp from source

have fun!


We are going to build gimp from the directory $HOME/gimp/2.7.1 and install it into $HOME/gimp-2.7.1 or /opt/gimp-2.7.

Installing to my home directory allows me to have multiple copies of the gimp, and run which ever version that I want. So my tree actually looks something like this:
(my build files)
(the install area)

Step 1. Start with a clean install of Ubuntu.

Of course you don’t need to do that, but I thought it was a great place to start. I did this by installing a version of 10.04 LTS Ubuntu 64bit on a Sun VirtualBox VM. If you don’t know what I just said, then just start with Ubuntu 10.04.

Step 2. Download the dependencies.

sudo apt-get install gettext libglib2.0-0 libglib2.0-dev \
    libgtk2.0-dev ruby intltool libtiff4-dev python-gtk2-dev \
    libjasper-dev libexif-dev libmng-dev liblcms1-dev \
    libxpm-dev librsvg2-dev libwmf-dev libasound2-dev \
    libdbus-glib-1-dev libaa1-dev libwebkit-dev libhal-dev \

Step 3. Download the source files that we need to install.

mkdir -p gimp/2.7.1/
cd gimp/2.7.1
tar xf babl-0.1.2.tar.bz2
tar xf gegl-0.1.2.tar.bz2
tar xf gimp-2.7.1.tar.bz2

Step 4. Pick somewhere to install

Now here we can choose where we want to install. The default is /usr/local/. (ie PREFIX=/usr/local), however that is known to cause problems. Personally, I want to have the installations and libraries seperate for each version, so that I can run whatever version of gimp that I want, so I’ll use PREFIX=$HOME/gimp-2.7.1. If you want to install system wide then use PREFIX=/opt/gimp-2.7.


Step 5. Start the build

You need “sudo make install” below if installing to /opt.

export PATH=$PREFIX/bin:$PATH
export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig:$PREFIX/share/pkgconfig

cd babl-0.1.2
./configure --prefix=$PREFIX
make install

cd ../gegl-0.1.2
./configure --prefix=$PREFIX
make install

cd ../gimp-2.7.1
./configure --prefix=$PREFIX
make install

Step 6. Run the program

Now you can run gimp as: