Monday, August 11, 2008

A Bill of Rights for Australia?

Do you trust the government to adequately defend your rights, or would you prefer to see your rights enshrined in law?

I for one would prefer to see my rights enshrined in law.

Believe it or not Australia is the only western country that doesn't have a bill of rights. I think it's about time that changed.

In the wake of the September 11th attacks in 2001 a raft of anti-terrorism laws were introduced some of which may curb terrorism but in reality could also be used to curb dissent or silence critics. We've already had people deported with out any due process or the relevant ministers having to account for their actions. Our spineless opposition didn't oppose our "anti-terrorism" laws. I think the root of this is the politicians fear of appearing to be "soft on crime".

The greatest threat to our liberty is not terrorism, it is the state. The protection we have from the state is the rule of law and the separation of the judiciary and executive. Rule of law protects us against arbitrary decisions by the bureaucracy and executive that could adversely affect our life. Possibly the most important protection is against deprivation of liberty except by due process. But above all this must sit a bill of rights that prevents laws from being enacted that could erode our liberty, all we really have is the "good will" of our politicians and their self proclaimed wisdom.

As of 2008 we've already had someone (Dr Haneef) who was detained under these laws on virtually no evidence at all. Once the Federal Police had detained Dr Haneef they waited several days to question him. He eventually obtained bail, through the strenuous efforts of his solicitor. But when he was due to be released the immigration minister acting by executive fiat (there was no due process) revoked Haneef's visa so that he could be deported, presumably to prevent embarrassment to the government and Federal Police. Subsequent inquiries have established that Dr Haneef had no case to answer.

Fortunately some states and territories in Australia have started to enacting a bills of rights. They could be overridden by the Federal Government if it felt it necessary to do so.

Politicians are generally very reluctant when it comes to bills of rights. There are many reasons cited but the most frequent seems to be "A Bill of Rights would be undemocratic to give unelected judges the power to override the judgment of parliament." This plays on the public's low opinion of lawyers. There's nothing democratic about politicians and bureaucrats removing our liberty without any check on their action. All other democracies have bills of rights and as far as I can tell they all function just fine.

Having thought about Bills of Rights for a while I came up with my own bill of rights, somewhat palgarised from the US Bill of Rights. It's not perfect and I'm sure a junior solicitor could pick it to pieces. Some possibly overlap as well.

Definitions
Government = Federal, State, Territory or any other law making body.
  • Freedom of speech
The Government shall make no law abridging the freedom of speech, or right to publish such speech; or the right of the people peaceably to assemble, and to petition the Government for a redress of grievances.
  • No search or seizure without warrant
The right of the people to be secure in their persons and property, against unreasonable searches and seizures, shall not be violated, and no warrants shall issue, but upon probable cause, supported by Oath or affirmation, and particularly describing the place to be searched, and the persons or property to be seized.
  • Freedom from surveillance, right to privacy
The right of the people to be free from unwarranted surveillance whilst conducting their lawful business shall not be infringed.
  • Due Process
A person accused of a crime has the right to legal counsel and to public trial by jury of his or her peers without excessive delay. A person accused of a crime has the right not to be a witness against themselves and to examine all evidence and witnesses against them. A person found not guilty of a crime shall not be tried again for the same crime except when new evidence is uncovered. Excessive bail, cruel and unusual punishments shall not be imposed.
  • The right to die at a time of own choice
The right of a terminally ill person to make a free choice to die at a time and manner of their choosing shall not be infringed.
  • Freedom of information
The right of persons to examine any government document, or accurate facsimile of, shall not be withheld except when exposure of such document would jeopardise national security. All government documents provided under this right shall be provided without monetary charge or unreasonable delay.
  • Separation of Church and State
The government shall make no law abridging the freedom to practice a religion and nor shall any law be passed favoring any religion, or religious belief.
  • Deprivation of Liberty
No person shall be deprived of their liberty except when found guilty of a crime that under common law would warrant a prison sentence or when held in remand before a trial. A person arrested and detained for a crime shall be charged or released without undue delay.

All rights not enumerated here shall be assumed to belong to the people.

This Bill of Rights can only be amended by popular referendum where the number of vote cast in favour is at least 75 percent plus 1 vote of the votes cast.

Friday, July 18, 2008

Unix Haters Handbook

I have just read the Unix Haters Guide which I found quite by accident whilst looking for a way to turn off an annoying feature in TOAD (an expensive tool for Oracle developers). It was a most enlightening book. I had no idea that Unix was so shonky. In short it is a pretty damning indictment of Unix.

I came to Unix from MS-DOS in the early 1990’s. I discovered, for example, that the toy operating system I’d been using had file and record locking capabilities whereas the real one didn’t. Even worse every program is apparently expected to implement it's own file locking routines; great until some other program (such as "remove files") just blithly does it stuff to your file because it is ignorant of your program.

Unix is written in C which may be ok for operating systems but is a not a great language to program in when it comes to applications. Needless to say just about every application program for Unix is written in C which lacks just about everything a good programming language is supposed to have such as array bounds checking. Fortunately I haven't ever had to do anything in C++ which is a lot worse to use apparently. Before I started using Unix I’d been using Turbo Pascal, a brilliant low cost development tool with a debugger that was years ahead of anything that was available on Unix.

Some bugs (or poor design features) in Unix persist for decades. The book accuses developers of being reluctant to fix a problem, consequently users work around the problem and now it is impossible to fix the problem because the users work arounds will break. I recently read about a bug in a Unix type system that had finally been fixed after 33 years (yes that's 33 years). Take the utility "make" for example. This utility reads a "makefile" which contains instructions on how to build a computer program without rebuilding the bits that haven't changed. The build instructions must be prefixed with a "tab" character. Not obvious if you view a "makefile" in a standard text editor, this requirement isn't obvious. If you don't know about it you could end up prefixing your instructions with 8 spaces and wondering why the make utility doesn't work and spits out some unintelligible error message. I struck this problem when I first tried to use make.

Ever tried to configure Unix? It has a multitude of configuration files in inconsistent formats, scattered around the /etc directory and its sub directories, it can also be difficult to find out what needs to be changed when you wish to configure something in particular. I don't know how people managed before Google.

Just out of curiosity I had a look at the sendmail manual. I decided it wasn’t worth it after reading about 1 page of the manual. It seems you need to write a configuration file and run this through some sort of generator to get a sendmail configuration file! WTF?

I've tried of some of the simple methods detailed in the book for crashing Unix, in the safety of a Virtual Machine, and they work well.

The authors of the book cite an announcement that Unix and C are a hoax. This apparently is an April fools joke.

Having said all that I've recently installed a Linux on my PC and will gradually be shifting my stuff off the Windows treadmill over in the next few months. The version of Linux (PCLinuxOS) I use is easy to configure, fortunately, and the user is shielded from having to mess about text files.

I'll probably be a bit more skeptical about Unix being an "advanced operating system" in future.

You can obtain this book in pdf form via this link http://www.simson.net/ref/ugh.pdf

Sunday, June 15, 2008

Petrol Price Hysteria

If you live in the western world you are no doubt experiencing a lot of hysteria about the rising cost of petrol. In Australia vast amounts of parliamentary time have been wasted on debating possible measures that at best will affect the price of petrol by a few cents per litre. The news is full of angst about the cost of filling up.

But, there are many costs of owning a motor car and petrol certainly not the highest part, it could be argued that it is the most "visible" component. The biggest cost is buying the car and the depreciation involved, made even worse if the purchase is financed with borrowed money.

An example

A 2003 Ford Falcon Futura, $35,000 new, resale value $11,000 (at best) in 2008. That's $4,800 (in depreciation) per year, add an additional $1,920 per year if the full purchase amount is borrowed over 5 years at a 10% interest rate. Driving this car 15,000km* per year costs $2,086 in petrol per year at $1.60 per litre (June 2008) if 11.5 litres per 100km is achieved. We'll only get petrol price relief immediately if the car is replaced by something costing no more than what we get if we sell the Falcon.

Let's look at the real cost of replacing this car and assume that petrol is $2.00 per litre, a price that may achieved this year in Australia but still a lot cheaper than in Europe.

If we look at what is most likely to happen, the car is replaced by something that costs more than the resale value of the car it replaces. Suppose the gas guzzler is replaced by a European size sedan with a 2 litre (or smaller) engine. A search around the web finds many second hand cars that are about 2 years old and costing less than $17,000. Using a Ford Focus as an example, this car achieves 7.1litres/100km (combined), 6.8litres/100km on the motorway, saving 4.4 litres per 100km (11.5 - 7.1). This saving has to repay $6,000 and and extra $1,620 (if this money is borrowed over 5 years at 10% interest) before we get ahead, we have to travel about 68,000 km or 86,600km, if borrowing is factored in, at $2 per litre before we start making a saving.

As a slight digression the oil companies are constantly accused of operating a cartel however, petrol retaining in Australia is a highly competitive low margin business. The last inquiry conducted by the Australian Competition and Consumer Commission was conducted in 2007 and no cartel was discovered. Petrol prices rise and fall cyclically, Tuesday (in Brisbane) being the best day to buy petrol; if you don't mind waiting in long queues, burning your potential saving whilst you do (most people seem to be content to idle their engines rather than switching them off whilst waiting). When I was traveling in the USA in 2007 there was a lot of angst as the price of petrol approached US$3 per gallon. Naturally the oil companies were being accused of operating a cartel. The real reason is that no refineries have been built in the USA in the last 30 years and the USA has to import petrol. Why would an oil company spend billions building a refinery when they are able to run the existing refineries at capacity supplying a commodity that is increasing in price? No single oil company is going go out on a limb and put their shareholders at a disadvantage compared to its competitors.

Why I'm not replacing my gas guzzling old car purely to reduce my expenditure on petrol.

I will eventually have to replace my car but it won't be because it uses a lot of petrol. I own a 1986 Ford Fairmont. This car is a classic Australian gas guzzler. I get about 13 litres per 100km (18mpg US, 22mpg UK) for motorway driving. I haven't measured its consumption around town as I do very little of that. From searching around the web it is probably in the region of 16 litres per 100km (15mpg US, 17.5mpg UK). As I have owned this car since 1996 and its yearly depreciation is low and it's residual value is virtually zero. Suppose I replace it with a second hand Ford Focus as above. Firstly, I'd be out of pocket by $17,000 before buying any petrol, it would be even worse if I had to borrow the money (an extra $4,660 at 10% over 5 years). At $2 per litre that amount of money will buy 8,500 litres of petrol; enough to drive my car 53,125 km around town (16l/100km) and I'd need to travel just over 95,500 km to recover this money by reduced fuel consumption. Even if petrol were $3 per litre we'd still looking at a pay back period of that can be measured in years.

I actually do about 14,000 km per year, mostly on motorways so applying the above calculation I'd save about 6.2 litres/100km. I'd have to travel 137,096 km at $2 per litre before I start to break even, nearly 10 years of motoring.

My calculations are quite simplistic and don't take account of inflation. My point is that just buying a car to reduce petrol consumption is actually an expensive thing to do. In my experience cheaper motoring is achieved by buying a good second hand car without borrowing money and keeping it for a long time. If you do the same calculations on a hybrid car you'd probably find it even more expensive, apparently the batteries have to be replaced every 3 years and it costs a lot more than filling your tank.

* This figure comes from a recent article on the opinion page in the Australian on 20/6/2008. The figure is 7,500km per capita per year. I'm assuming 2 adults per car.

Tuesday, September 4, 2007

Microsoft Visual SourceSafe (VSS) Is Utterly Useless

Or more precisely the reports from this product are utterly useless.

I'm trying to update a spreadsheet that's used to keep track of program migration information (may be not a brilliant idea but that's how my employer wants it).

The reports can be copied to the clipboard but...

Can I get a list of files with their version numbers, checkin user, last checked in date? No, I can get some of this information in a format that's not easily manipulated by anything really.

Can I get a list of files that I could cut and paste into a spreadsheet with out much manipulation? Kind of, but if the file names are long they get broken into two lines with the rest of the useless information about the file effectively corrupting the file name.

There's a little pop up window that shows the version with the file name but it can’t be re-sized and of course the info doesn't fit in the window making even screen dumping a non-trivial task. The content of this window can’t, as far as I can tell, be copied to the clipboard.

You can also preview the reports but they don't resemble what’s printed and a report that previews acceptably seems to only print in the left 1/3rd of the paper.

At the moment I'm using a combination of screen dumps from the main screen (which doesn’t show version numbers) for my file list and right clicking on each file to find out what the latest version number and checkin user is and typing this information into the spread sheet.

You’d have thought that something that controls versions of files might actually display the version number of the file with the file.

Also, VSS starts very slowly (minutes sometimes) and when I Googled for a fix to this I started reading about all the horror stories of VSS.

Apparently Microsoft don't use VSS for source control. I don't blame them.

Tuesday, August 14, 2007

The American Health Care System

I've just seen Michael Moore's new film, Sicko. I knew that the American "health care? system?" was broken but I had no idea that the health insurance companies are about as criminal as the tobacco companies. Some years ago I considered moving to the USA (from the UK). I'm glad I didn't. I moved to Australia instead.

I note that some Presidential candidates have promised to fix health insurance so that every one has it. But, that won't fix the problem because the insurance companies will just take the premiums whilst denying treatment (unless this is legislated against and I don't imagine the insurance companies would take such a thing lying down.)

As a little aside, I'm always amazed how cheaply American politicians can be bought through campaign donations. In Moore's film he mentions the donations made to politicians for what amounts to not many millions of dollars for what must be billions in benefits such as lack of regulation, low corporate taxes, poor consumer protection etc.

The table below uses figures from the World Health Organisation from a small sample of English speaking OECD countries. Even though the USA has a private, and therefore supposedly efficient health system; as opposed to an inefficient, supposedly, public system the USA actually spends more as a percentage of its GDP on health care to reach considerably less than 100% of the population. How efficient is that? I also note that a a similar proportion of government revenue is spent on the public health care system as other countries in the sample. A double whammy for your average American citizen.



































English speaking OECD countries Total expenditure on health as % of gross domestic product General government expenditure on health as % of total government expenditure
Australia 9.6 18.5
Canada 9.8 17.1
New Zealand 8.4 18.2
United Kingdom 8.1 15.9
United States of America 15.4 18.9


A publicly funded health care system is much cheaper for the average citizen (through taxation) than rip off premiums for "insurance". Glad I live in the land of the free; freedom from fear that I'll end up a pauper if I become ill.

Tuesday, July 24, 2007

John Howard asks "Am I the Problem?"


No John you aren't, it's your government.


Like all political parties that have been in government for too long they look tired, stale and have long since run out of ideas. Last year John Howard looked invincible but if the Liberal party gets desperate about it's prospects for the next election John Howard will be stabbed in the back by his own party, just like Margaret Thatcher was (after a similar length of time as prime minister).


He's stayed on too long and will not go out on a high note (just about every politician that achieves high office makes this mistake). Perhaps John Howard should have done a Bob Carr or Steve Bracks (former premiers of New South Wales and Victoria respectively) and announce, out of the blue, that he's resigning and handover to Peter Costello (who seems to think he's entitled to the job.) But it's too late for that.


Enoch Powell warned "All political lives, unless they are cut off in midstream at a happy juncture, end in failure, because that is the nature of politics and of human affairs." He was right.

Wednesday, July 18, 2007

Windows Networking

Can windows computers be networked together or is it just one of those Internet myths?

I once tried to get my desktop and laptop to talk to each other. I spent hours googling, turning off fire walls, trying to follow threads on forums with conflicting advice, following steps on troubleshooting guides, using diagnostic utilities and trying to find out what the error and warning messages actually mean. All to no avail.

I even contacted Microsoft and was surprised to get a response.

In the end I bought a plug in memory stick to transfer files between my computers, they actually work.

I did eventually manage to get my laptop and desktop to talk to each other, I could even print from the laptop using the desktop's printer. But, somewhere along the line either I've inadvertently changed my network settings or installed something that did so now I'm back to square one. I'm not going through the trauma of trying to get the computers to talk to each other again.

By the way I have a FreeBSD server which I run under VMware on my desktop. I can actually log into that server from my laptop across the network but can I see my desktop Windows machine from my laptop? Well, not really. I can see the desktop in the 'Computers Near Me' window, sometimes. I used to be able to browse the desktop from the laptop by using the desktop's ip address. That doesn't work anymore.

So now I'm back to sneaker networking. That works.