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

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

Ubuntu

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:

projecta/trunk/src
projecta/trunk/docs
projecta/branch/betabranch/src
projecta/branch/betabranch/docs

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

projecta/src
projecta/docs
projectb/src
projectb/docs

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..

Cameron

G’Day,
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?

Cameron

G’Day,
The menu bug that caused gimp to crash on all platforms is fixed now.

ftp://ftp.gimp.org/pub/gimp/v2.6/

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.
Reference:

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).

Reference: http://minister.innovation.gov.au/Emerson/Pages/SMALLBUSINESSTAXBREAKBOOST.aspx


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.

Cameron

G’Day,
You can get the latest development version from ftp://ftp.gimp.org/pub/gimp/v2.7/

You can read the notes for the release here:

http://mitch.gimp.org/release-notes-2-7-1.txt

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

blog.bloke.com: build gimp from source

have fun!

Cameron

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)
$HOME/gimp/2.7.1/gimp-2.7.1/
$HOME/gimp/2.7.1/gegl-0.12/
$HOME/gimp/2.7.1/babl-0.12/
(the install area)
$HOME/gimp-2.7.1/

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 \
    libpoppler-glib-dev

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

cd
mkdir -p gimp/2.7.1/
cd gimp/2.7.1
wget ftp://ftp.gimp.org/pub/babl/0.1/babl-0.1.2.tar.bz2
wget ftp://ftp.gimp.org/pub/gegl/0.1/gegl-0.1.2.tar.bz2
wget ftp://ftp.gimp.org/pub/gimp/v2.7/gimp-2.7.1.tar.bz2
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.

PREFIX=$HOME/gimp-2.7.1

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
make install

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

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

Step 6. Run the program

Now you can run gimp as:

$PREFIX/bin/gimp-2.7

so if you are encoding characters for use with a URL, you need:

encodeURIComponent()

example:

escape("INGLÉS") ->INGL%C9S
encodeURIComponent("INGLÉS") -> INGL%C3%89S

you will note that %C9 is not a value UTF-8 character.
I’m using this function to encode the values from a form to put into a URL.

Cameron