Imagine you have a class like Coordinate that implements a two-dimensional coordinate pair. You might want to use instances of that class in a dictionary, but the problem is that instance keys compare by identity, not equality:>>> D = {Coordinate(2, 3): "something"} # Coordinate is a custom class.
>>> D.has_key(Coordinate(2, 3)
False
This is not what you expect: even though the two instances of Coordinate(2, 3) have the same value, they don't have the same ID and therefore Python won't treat them as the same dictionary key.
The answer to this problem is to give the class __hash__ and __eq__ methods:class Coordinate(object):
def __init__(self, x, y):
self.x = x
self.y = y
def __hash__(self):
return hash(self.x) ^ hash(self.y)
def __eq__(self, other):
try:
return self.x == other.x and self.y == other.y
except AttributeError:
return False
Now two instances that compare equal will also have the same hash, and Python will recognise them as the same dictionary key.
But there's a gotcha: unlike built-in types like int and tuple, classes in Python are mutable. That's generally what you want, but in this case it can bite you. If the instance which is the key is changed, the hash will also change and your code will probably experience difficult to track down bugs.
The solution is to make Coordinate immutable, or at least as immutable as any Python class can be. To make a class immutable, have the __setattr__ and __delattr__ methods raise exceptions. (But watch out -- that means that you can no longer write something like self.x = x, you have to delegate that to the superclass.)class Coordinate(object):
def __setattr__(*args):
raise TypeError("can't change immutable class")
__delattr__ = __setattr__
def __init__(self, x, y):
super(Coordinate, self).__setattr__('x', x)
super(Coordinate, self).__setattr__('y', y)
def __hash__(self):
return hash(self.x) ^ hash(self.y)
def __eq__(self, other):
try:
return self.x == other.x and self.y == other.y
except AttributeError:
return False
There are a few other things you can do as well: as a memory optimization, you can use __slots__ = ('x', 'y') to allocate memory for the two attributes you do use and avoid giving each instance an attribute dictionary it can't use. If the superclass defines in-place operators like __iadd__ etc. you should over-ride them to raise exceptions. If your class is a container, you must also make sure that __setitem__ etc. either don't exist at all or raise exceptions.
(I am indebted to Python guru Alex Martelli's explanation about immutable instances.)
[Update, 2007-04-02: fixed a stupid typo where I called super(Immutable, ...) instead of super(Coordinate, ...).]
Sunday, January 14, 2007
Immutable instances in Python
Posted by
Vlad the Impala
at
1/14/2007 06:49:00 pm
3
comments
Labels: programming, python
Saturday, January 13, 2007
Schneier on Surveillance
Two from Bruce Schneier on widespread surveillance:
Why technology is fundamentally changing the balance between freedom and police power:
Years ago, surveillance meant trench-coated detectives following people down streets. It was laborious and expensive and was used only when there was reasonable suspicion of a crime. Modern surveillance is the policeman with a license-plate scanner, or even a remote license-plate scanner mounted on a traffic light and a policeman sitting at a computer in the station.
It's the same, but it's completely different. It's wholesale surveillance. And it disrupts the balance between the powers of the police and the rights of the people.
[...]
The effects of wholesale surveillance on privacy and civil liberties are profound; but, unfortunately, the debate often gets mischaracterized as a question about how much privacy we need to give up in order to be secure. This is wrong. It's obvious that we are all safer when the police can use all techniques at their disposal. What we need are corresponding mechanisms to prevent abuse and that don't place an unreasonable burden on the innocent.
[...]
Wholesale surveillance is not simply a more efficient way for the police to do what they've always done. It's a new police power, one made possible with today's technology and one that will be made easier with tomorrow's.
And why single vivid incidents can fool people into making bad judgements:
I'm in the middle of writing a long essay on the psychology of security. One of the things I'm writing about is the "availability heuristic," which basically says that the human brain tends to assess the frequency of a class of events based on how easy it is to bring an instance of that class to mind. It explains why people tend to be afraid of the risks that are discussed in the media, or why people are afraid to fly but not afraid to drive.
One of the effects of this heuristic is that people are more persuaded by a vivid example than they are by statistics. The latter might be more useful, but the former is easier to remember.
[...]
I can write essay after essay about the inefficacy of security cameras. I can talk about trade-offs, and the better ways to spend the money. I can cite statistics and experts and whatever I want. But -- used correctly -- stories like this one will do more to move public opinion than anything I can do.
Cognitive biases is something I've been meaning to write about for a long time, but for now I'll just point out that the number of Americans killed by terrorist actions since the 1960s is about the same as the number killed by accidents involving deer. Imagine Mad King George declaring a War on Deer.
On second thoughts, let's not give him any more ideas...
Posted by
Vlad the Impala
at
1/13/2007 11:20:00 pm
0
comments
Friday, January 12, 2007
Hamas recognises Israel's existence
Jonathan Zasloff from the Reality Based Community quotes from the Israeli newspaper Haaretz:
This is potentially huge: Hamas leader Khaled Meshal, generally considered a hard-liner within the group, has acknowledged the existence of Israel:Israel is a "reality" and "there will remain a state called Israel, this is a matter of fact," Meshal said in an interview. The problem was not Israel's existence but the failure to establish a state for Palestinians, said Meshal, whose party leads the Palestinian government.
Unfortunately, the current crop of right-wingers in power in Israel aren't interested in coexistence with the rest of the Arab world, let alone the Palestinians. They have already knocked back serious offers from Saudi Arabia, the spiritual head of Islam, to recognise Israel's right to exist. I predict that this will go nowhere.
Posted by
Vlad the Impala
at
1/12/2007 01:29:00 pm
0
comments
Typical
How very typical. We've been in a drought for a couple of years now, it hasn't rained for weeks -- and somehow I managed to sit my backpack in a puddle while waiting for the train this morning.
I hope it was water.
Posted by
Vlad the Impala
at
1/12/2007 10:44:00 am
0
comments
Labels: blogging
Thursday, January 11, 2007
Right-wing morality
PZ Myers tells about a particularly nasty instance of the clash between reality and Fundamentalist so-called "morality", involving a class of very common birth defects.
About one in a thousand births in the USA involve a failure of the neural tube to close up during development. Mild cases lead to spina bifida; serious cases lead to anencephaly, where the fetus does not grow a brain [Warning: link contains graphic medical images that some people may find disturbing].
PZ writes:
Failure of the anterior neuropore to close is even more serious. The brain fails to form. This condition is called anencephaly, and it is untreatable and lethal. If they aren't dead at birth, they might last a few days before succumbing. They have no brain. At best, they have a mass of dying, relatively undifferentiated neural tissue smeared across the floor of their incompletely formed skulls. They can't think, they can't feel, they can't respond. The real tragedy is that development can proceed surprisingly far without a brain, and these fetuses are recognizably human (here is a photo for the strong of stomach), and they can be carried fully to term.
That's the reality: anencephaleptic babies can't think or feel pain and won't survive more than a few days. But the right-wing fundamentalists in the US government have decided that the life of a literally brain-less creature, one that cannot possibly survive after birth, is more important than the health and emotional state of the mother. PZ quotes the Reality Based Community:
But the Congress had decided -- that no federal funds should be used to pay for abortions except where the life of the mother was at stake. As a result, Tricare (formerly CHAMPUS) the agency that covers military families, refused to pay the $3000 the abortion would cost.
The family sued, and a federal court ordered Tricare to pay, and the abortion went forward.
Then the Justice Department (with John Ashcroft as Attorney General) sued the family to recover the $3000, out of the sailor's pay of less than $20,000 a year.
The Justice Department just won.
and argues that:
Our guardians of purity have magnified the pain of this family and willfully and vindictively punished them for the 'crime' of a biological imperfection. I call that evil, pure and simple. There should have been no question in this case that an abortion was necessary.
I can't blame Tricare for refusing to fund the abortion in the first case -- it isn't their place to choose which laws they obey and which they don't. Nor can I fault the appeal judge's decision: it seems that the initial order for Tricare to pay for the abortion was morally right but legally wrong. But it is a horrible, bean-counting, cruel and heartless act for John Ashcroft's Justice Department to have appealed that decision, and for them to pursue the sailor to collect would be even more mean-spirited and nasty.
Posted by
Vlad the Impala
at
1/11/2007 11:54:00 pm
0
comments
Labels: contraception/abortion, health/medical
The Great Equalizer
Forget the Colt-45 "Peacemaker" -- the great equalizer is the RPG-29.
One of the factors in Hezbollah's victory on points against the Israeli Defence Force last year was the humble rocket propelled grenade. The RPG is not your grandfather's bazooka: the (former) Soviet-made RPG-29 Vampir was specifically designed to defeat reactive armour. It uses two shaped charges, the first to trigger the reactive armour and the second to blow a hole through the tank. Costing around $500 for the launcher and $250 per missile, the RPG-29 was impressively effective at destroying the Israeli Merkava tank, reportedly the most heavily armoured tank in the world. That makes the RPG-29 one of the most impressive giant killers out there.
This suggests that the overwhelming advantage of First World armies with their heavy tanks costing millions of dollars could be severely undermined. This will make the cost of invasion far higher, both in soldiers' lives and dollars, and allow infantry to go toe-to-toe with heavy armour. If true, that's probably the biggest shift in military technology since the invention of the pike formation which allowed infantry to defeat armoured knights.
Posted by
Vlad the Impala
at
1/11/2007 09:14:00 pm
0
comments
Robbing Peter to pay Paul
Another consequence of Bush's "surge" is the damage it will do to the war in Afghanistan. At a time that the Taliban is expected to make another big push in Afghanistan, American forces are about to be removed from "The Forgotten War" to Iraq. As the Boston Globe reports:
President Bush is expected to announce this week the dispatch of thousands of additional troops to Iraq as a stopgap measure. Such an order, Pentagon officials say, would strain the Army and Marine Corps as they man both wars.
A US Army battalion fighting in a critical area of eastern Afghanistan is due to be withdrawn within weeks to deploy to Iraq.
Army Brigadier General Anthony J. Tata and other US commanders say that will happen as the Taliban is expected to unleash a campaign to cut the vital road between Kabul and Kandahar.
The official said the Taliban intend to seize Kandahar, Afghanistan's second-largest city, where the group was organized in the 1990s.
The news story makes one error, in the very first sentence:
"Taliban forces, shattered and ejected from Afghanistan by the US military five years ago..."
Not so. The Taliban are native Afghans, mostly Pushtun from the south of the country. As a government and army, they were certainly shattered, and some may even have fled the country temporarily, but the vast bulk of Taliban remained in their tribal areas where US and allied forces never went.
I'm with Mark Kleiman on this: "GWB seems to be determined to make history by becoming the first American President to lose two wars at once."
Of course, the war in both countries will drag on long beyond Bush's time as President, leaving some other shmuck to swallow the defeat. And given Bush's disinterest in reading or watching independent news, preferring to hear all his news from yes-men, it is likely that Dubyah will go to his grave believing that he was America's saviour, and the next guy messed it all up.
Posted by
Vlad the Impala
at
1/11/2007 03:32:00 pm
0
comments
Labels: afghanistan, iraq
Music downloads hit the UK Charts
For the first time, British music charts are counting songs purchased as electronic downloads as sales even if they aren't available for sale in physical form. And the results suggest that it could stir-up the music industry, giving independents more muscle and even allowing classic tracks to re-enter the charts.
According to the Independent:
The Indie band Snow Patrol underlined their claim to be the hottest act on the new-look charts yesterday when they notched up a top 10 success with a deleted album track which is only available online.
"Chasing Cars", a previous single from the top-selling album of 2006, Eyes Open, entered at number nine, as the Top 40 underwent the biggest shake-up in its 50-year history.
[...]
Bubbling under, the top 100 saw eight previously deleted tracks come back. These included James Morisson and the Killers. The X Factor effect also helped the Proclaimers and Aerosmith gain a tentative fingerhold on the charts after being covered by hopefuls Ben and the MacDonald Brothers in the series.
The Independent also raises the
Posted by
Vlad the Impala
at
1/11/2007 12:10:00 am
0
comments
Labels: music
Wednesday, January 10, 2007
Kafka would be proud
I haven't written much about the use of torture because it is such a huge topic to deal with. But this is too absurd to let pass. Mark Kleiman of the Reality Based Community writes:
Can you imagine a government so absurdly tyrannical, so brutally insane, that it forbids "enemies of the state" to complain about being tortured on the grounds that interrogation techniques are state secrets?
Well, you don't have to imagine it. There is such a government.
Posted by
Vlad the Impala
at
1/10/2007 10:03:00 pm
0
comments
Labels: crime and law, terrorism
The spoils of war
From the Independent:
Iraq's massive oil reserves, the third-largest in the world, are about to be thrown open for large-scale exploitation by Western oil companies under a controversial law which is expected to come before the Iraqi parliament within days.
[...]
The huge potential prizes for Western firms will give ammunition to critics who say the Iraq war was fought for oil. They point to statements such as one from Vice-President Dick Cheney, who said in 1999, while he was still chief executive of the oil services company Halliburton, that the world would need an additional 50 million barrels of oil a day by 2010. "So where is the oil going to come from?... The Middle East, with two-thirds of the world's oil and the lowest cost, is still where the prize ultimately lies," he said.
[...]
Supporters say the provision allowing oil companies to take up to 75 per cent of the profits will last until they have recouped initial drilling costs. After that, they would collect about 20 per cent of all profits, according to industry sources in Iraq. But that is twice the industry average for such deals.
More information about the new Iraqi petro-dollar laws here and here.
Looks like the Bush family fortune (oil money) is about to get another massive increase. Funny about that.
Posted by
Vlad the Impala
at
1/10/2007 09:54:00 pm
0
comments
Labels: iraq
The surge will backfire
Wesley Clarke, the retired supreme head of NATO, explains why Bush's "surge" will backfire:
As for the US troops, yes, several additional brigades in Baghdad would enable more roadblocks, patrols, neighbourhood clearing operations and overnight presence. But how significant will this be? We've never had enough troops in Iraq - in Kosovo, we had 40,000 troops for a population of two million. For Iraq that ratio would call for at least 500,000 troops, so adding 20,000 seems too little, too late, even, for Baghdad. Further, in a "clear and hold" strategy, US troops have been shown to lack the language skills, cultural awareness and political legitimacy to ensure that areas can be "held", or even that they are fully "cleared". The key would be more Iraqi troops, but they aren't available in the numbers required for a city of more than five million with no reliable police - nor have the Iraqi troops been reliable enough for the gritty work of dealing with militias and sectarian loyalties. Achieving enhanced protection for the population is going to be problematic at best. Even then, militia fighters in Baghdad could redeploy to other areas and continue the fight there.
What the surge would do, however, is put more American troops in harm's way, further undercut US forces' morale, and risk further alienation of elements of the Iraqi populace. American casualties would probably rise, at least temporarily, as more troops are on the streets; we saw this when the brigade from Alaska was extended and sent into Baghdad last summer. And even if the increased troop presence initially intimidates or frustrates the contending militias, it won't be long before they find ways to work around the obstacles to movement and neighbourhood searches, if they are still intent on pursuing the conflict. All of this is not much of an endorsement for a troop surge that will impose real pain on the already overstretched US forces.
There could be other uses for troops, for example, accelerating training for the Iraqi military and police. But even here, vetting these forces for their loyalty has proven problematic. Therefore, neither accelerated training nor more troops in the security mission can be viewed mechanistically, as though a 50 per cent increase in effort will yield a 50 per cent increased return, for other factors are at work.
The truth is that, however brutal the fighting in Iraq for our troops, the underlying problems are political. Vicious ethnic cleansing is under way right under the noses of our troops, as various factions fight for power and survival. In this environment security is unlikely to come from smothering the struggle with a blanket of forces - it cannot be smothered easily, for additional US efforts can stir additional resistance - but rather from more effective action to resolve the struggle at the political level. And the real danger of the troop surge is that it undercuts the urgency for the political effort. A new US ambassador might help, but, more fundamentally, the US and its allies need to proceed from a different approach within the region. The neocons' vision has failed.
Posted by
Vlad the Impala
at
1/10/2007 09:02:00 pm
0
comments
Labels: iraq
Tuesday, January 09, 2007
The Daily WTF
Thanks to The Daily WTF, we have two examples of corporate information technology gone mad, MAD I SAY, mwahahahahahah!
Security By Insanity:
"You altered ... The Contract!," he insisted.
"Errm ... no," I didn't know how simplify it further him, "this is not a contract unless we both sign it. Nothing has been signed yet. You told me last week that this is just a review copy, and those pencil marks are just my comments about it."
The VP sat silent and confused. He flipped through my copy again, growing more and more disgusted at each pencil mark. He dashed out of the conference room in search of a pencil eraser. He returned moments later, exasperated and unable to find a pencil eraser anywhere in the building because, after all, erasers can be used to alter data and, therefore, were a security risk. Only pens were allowed in the building. Blue ink, to be exact.
He had no idea what to do; he had no access to the tools that could remove my offensive markings on The Contract. I offered this brilliant can-do solution instead: "You could just go back to your desk and print a new copy, right?"
That made no sense to him. No, can't do that. He shook his head. No. NO!!!
I calmly tried to explain it to him: "We don't have to sign this copy of The Contract. If we're going to sign anything, you'd print a fresh copy, and then we would sign that copy."
He couldn't hear me. There were pencil marks on The Contract! Pencil marks! He grabbed my pencil marked pages and bolted out the door again, leaving me alone in the conference room to contemplate the horrible things I had done. After about fifteen minutes, three people entered the conference room. They did not sit. They stood over me. The first speak was the President and Founder of the company.
"Did you ... do this?" she asked referring to pencil markings on The Contract.
Read the rest of the story here.
And then there is the sorry saga of Virtudyne:
The Savior was a self-made billionaire who struck it rich doing the type of business that makes unregulated industries regulated. He heard about Virtudyne's struggles and wanted to help out. He contacted the powers that be and offered some very reasonable terms. In exchange for investing $100M, he would take over operations and sit as chairman on the board of directors. It seemed to be a a win-win for everyone.
[...]
First and foremost, there was the new chief of operations, heralded as a "brilliant innovator" and "technological wizard." He was also The Savior's eldest son. Junior's grasp on technology is best illustrated with this simple anecdote: one day, Junior was walking past Rob Graves' office and saw a graph actively moving around on the screen. He got incredibly exited and wanted to know how he could get the cool looking monitoring software Rob was using to watch their World Wide Server. Rob just didn't have the heart to tell him it was the "Bars and Waves" visulization from Windows Media Player.
[...]
The sales and marketing department were desperate for ideas. They literally couldn't give their software away; anyone with even the most basic knowledge of Google could find out how well Virtudyne's first customer worked out. No one wanted to be their second.
But just then, it dawned on the sales team. They needed to find a market where the Internet had not yet reached. In such a market, their office suite would develop interest and that interest would lead right in to sales. One of the executives knew exactly how to find and penetrate such a market. They would use The Digital Donkey.
Read the rest of the story here.
Posted by
Vlad the Impala
at
1/09/2007 03:51:00 pm
0
comments
What happens to Tariq Aziz?
Bob Ellis raises an interesting question [alternate link here] about the treatment of the former Iraqi leaders after Saddam's hanging over the new year. Now that they've executed Saddam, former Deputy Prime Minister Tariq Aziz must be rapidly approaching the head of the line.
(Aside: it seems that the execution was illegal under Iraqi law, because they didn't wait the mandatory 30 days from the sentence before execution. The government sacked the first trial judge, defence witnesses were intimidated and killed, and Saddam's lawyers assassinated. That's what passes for a fair trial in Iraq.)
Soon they'll have Tariq Aziz to deal with. He's a Christian, a friend of Pope John Paul, and literate, well-spoken, Anglicised evidence of how broad-based a secular government Saddam ran, and how much 4 million university graduates, civil servants, medical professionals, lawyers, judges, soldiers, police and schoolteachers miss him now, in a world of veils and checkpoints and daylight kidnappings and suicide bombings and 10,000 policemen killed in two years.
Posted by
Vlad the Impala
at
1/09/2007 03:13:00 pm
0
comments
Labels: iraq
Monday, January 08, 2007
War of the Worlds
One of NASA's scientists, Dirk Schulze-Makuch, has revealed that the two Viking space probes that visited Mars in 1976-77 probably killed native-born Martians.
Fortunately, those natives were microbes, and unable to retaliate by (for example) firing heat-rays or disintegrator beams at the Earth.
The Viking probes were designed to search for ordinary Earth-like microbes. Biologists of the 1970s were unaware of the great range of biochemistries exhibited by the so-called extremophiles, and the tests looking for Martian life probably would have killed them.
Last month, scientists excitedly reported that new photographs of Mars showed geologic changes that suggest water occasionally flows there -- the most tantalising sign that Mars is hospitable to life.
In the 1970s, the Viking mission found no signs of life. But it was looking for earth-like life, in which salt water is the internal liquid of living cells. Given the cold dry conditions of Mars, that life could have evolved on Mars with the key internal fluid consisting of a mix of water and hydrogen peroxide, said Dirk Schulze-Makuch, author of the new research.
That's because a water-hydrogen peroxide mix stays liquid at very low temperatures (minus 55 degrees celsius), does not destroy cells when it freezes, and can suck scarce water vapour out of the air.
Posted by
Vlad the Impala
at
1/08/2007 08:44:00 pm
0
comments
Sunday, January 07, 2007
Judge rules in favour of election secrecy
A Florida judge has ruled that a Democrat running for Congress has no right to inspect the secret source code of electronic voting machines involved in an extremely close and controversial election.
Republican Vern Buchanan won the election back in November by a mere 369 votes. But around 18,000 electronic ballots (about 15% of the total) showed no vote at all, an unusually high rate of undervoting.
Circuit Judge William Gary rejected as "conjecture" expert testimony that such a high level of undervoting was evidence that votes had been lost, and refused to allow Democrat Christine Jennings to inspect the source code.
Are we surprised yet?
Posted by
Vlad the Impala
at
1/07/2007 04:23:00 am
0
comments
Surging to defeat
According to this Yahoo story, President Bush is planning to fix Iraq "but good" with a new strategy to "win" the war.
Bush said on Thursday:
"One thing is for certain: I will want to make sure the mission is clear and specific and can be accomplished"
Hang on... I thought the mission was accomplished back in May 2003?

It is expected that Bush's strategy will be to keep doing the same things that failed in the past, but do them harder, like sending thousands more troops to Iraq -- the so-called "Surge", where a sudden influx of troops makes everything better.
It's a stupid, ignorant idea based on the fantasy that the biggest problem in Iraq is the lack of American troops on the ground. The reality is very different. Must-reads are General William Odom's Six Brutal Truths About Iraq and Professor Juan Cole's Top Ten Myths About Iraq.
As Cole points out, the US sent an additional 15,000 troops into Baghdad last year, and instead of stopping violence in the capital, the number of insurgent attacks increased. Cole points out that "the guerrillas are not outsiders who come in and then are forced out" -- they are the people of the cities the US is trying to pacify. Even after virtually razing Fallujah to the ground, it is still not pacified.
Winning guerrilla wars requires two victories, a military victory over the guerrillas and a winning of the hearts and minds of the general public, thus denying the guerrillas support. The US has not and is unlikely to be able to repress the guerrillas, and it is losing hearts and minds at an increasing and alarming rate. They hate us, folks. They don't want us there.
Despite the clear anti-Iraq war message sent by the American people in November, Vietnam seems set to repeat itself. The Bush administration is obsessed with winning the unwinnable, and the Democrats mostly don't have the moral conviction to stand up to them. So more American troops will die, Iraq will descend further into bloodshed, and the Middle East will continue to move further away from the West, making the future an uglier, more dangerous place.
Posted by
Vlad the Impala
at
1/07/2007 01:38:00 am
0
comments
Saturday, January 06, 2007
Feeling safer?
One of the curious things about the Republican administration in the USA is its amazing contempt for the troops. Oh, the rhetoric about supporting the troops is there, the cheap words and hot air, but actual money for them? Nope. The soldiers in Iraq can't get basic equipment -- including ammunition -- and are reduced to buying their own body armour from civilian gun shops back home and having it posted to them, and scrounging for scrap metal to harden vehicles. And let's not forget the spoiled food and contaminated water provided to the troops in Iraq by Dick Cheney's baby, Halliburton.
Nothing's too bad for our boys!
And now a report that, apart from the troops in Iraq and Afganistan, the US Army has no combat-ready units, neither regular nor reserves. The Army is already warning that, in order to provide troops for the "Surge" in Iraq, they're going to have to strip equipment from troops in Korea and National Guard units in the US.
So, all you Republicans out there, the few of you still on Planet Earth: are you feeling safer yet?
Posted by
Vlad the Impala
at
1/06/2007 11:53:00 pm
0
comments
Dorothy Lawrence
Living in a relatively civilized society in 2006, it is easy to forget how much social change has occurred in recent times. It was a little less than a century ago, in 1914, that 19 year old Dorothy Lawrence disguised herself as a man in order to join the British Army and act as a war reporter.
Her secret life lasted only ten days, before she gave herself up. But it isn't her experiences during the war that I refer to, but her tragic end. For in 1925, Dorothy Lawrence claimed she had been raped by her church guardian and was institutionalised as insane. She remained in the institution for the rest of her life, dying in 1964.
Details are sketchy, and I suppose one must allow the possibility that she really was insane, and that she hadn't been raped at all. That would be the comforting interpretation: a poor troubled lass, imagining sexual assaults, and being locked up for her own protection.
But how much more likely is it that, in 1925, the only "evidence" that she was insane was that she, a mere 30 year old woman, accused her church guardian of rape? Such a crime would have been unthinkable, and therefore only a mad woman could have thought it.
It may be that woman who are raped are treated badly by our justice system, but at least we've come this far: we no longer assume that an accusation that dear old Father Bill or Reverend Smith must, by definition, be a sign of insanity.
Posted by
Vlad the Impala
at
1/06/2007 11:11:00 pm
0
comments
Labels: history, psychology
I wish they'd warn us
The weather bureau gives warnings for high ultra-violet and pollution days; I wish they'd warn us about days when there are excessive levels of confusion particles in the air. Preston Market today was filled with cars being driven even more badly than usual for Australian drivers: almost reversing into pedestrians, blocking traffic, and displaying all the parking skills of a banana. And the pedestrians were no better, wandering around aimlessly, stepping in front of cars, walking down the middle of the road while traffic backed up around them, and generally making me wonder whether somebody had slipped something into the water supply.
Posted by
Vlad the Impala
at
1/06/2007 03:09:00 pm
3
comments
Labels: blogging
Conscientious Rejector
American army officer First Lieutenant Ehren Watada is the first American commissioned officer to publically refuse deployment to Iraq. Last June, the 28-year-old Hawaiian native announced his refusal to deploy on the grounds that the invasion and occupation of Iraq is illegal.
He now faces a court martial on one count of "missing troop movement" and four counts of "conduct unbecoming an officer and a gentleman", and could be sentenced to up to six years jail. He was interviewed by Kevin Sites:
SITES: You know on that note, Lieutenant, let me read you something from a speech that you gave in August to the Veterans for Peace. You had said at one point, "Many have said this about the World Trade Towers: never again. I agree, never again will we allow those who threaten our way of life to reign free. Be they terrorists or elected officials. The time to fight back is now, the time to stand up and be counted is today." Who were you speaking about when you said that?
WATADA: I was speaking about everybody. The American people. That we all have that duty, that obligation, that responsibility to do something when we see our government perpetrating a crime upon the world, or even upon us. And I think that the American people have lost that, that sense of duty. There is no self-interest in this war for the vast majority of the American people. And because of that the American soldiers have suffered.
There really is a detachment from this war, and many of the American people, because there is no draft, or for whatever reason, because taxes haven't been raised, they don't have anything personally to lose or gain with this war, and so they take little interest.
[snip]
[WATADA:] You know I think that [Congressman] John Murtha came out a few months ago in an interview and he was asked if, with all his experience, in Korea, and Vietnam, volunteering for those wars -- he was asked if he would join the military today. And he said absolutely not. And I think that with the knowledge that I have now, I agree. I would not join the military because I would be forced into a position where I would be ordered to do something that is wrong. It is illegal and immoral. And I would be put into a situation as a soldier to be abused and misused by those in power.
STIES: In your speech in front of the Veterans for Peace you said "the oath we take as soldiers swears allegiance not to one man but to a document of principles and laws designed to protect the people." Can you expand upon that a little bit — what did you mean when you said that?
WATADA: The constitution was established, and our laws are established, to protect human rights, to protect equal rights and constitutional civil liberties. And I think we have people in power who say that those laws, or those principles, do not apply to them — that they are above the law and can do whatever it takes to manipulate or create laws that enable them to do whatever they please. And that is a danger in our country, and I think the war in Iraq is just one symptom of this agenda. And I think as soldiers, as American people, we need to recognize this, and we need to put a stop to it before it's too late.
Naturally the comments to the article are running red-hot, with many, many people accusing Lieutenant Watada of being a traitor and deserter. The first comment made, from "glassart@pacbell.net", is typical of many of those opposed to Watada's actions:
I feel that a person that has voluntarilly [sic] joined the military and now refuses to go where assigned, during a military conflict is basically a traitor/deserter in the face of the enemy and should be treated as such. I had voluntarilly [sic] joined the military (US Air Force) during the Viet Nam conflict, so I have great feelings toward this, I did not believe what was going on at that time, but I did not shirk my duty to my country and the ideas of the constitution and Declaration of Independance [sic]. That is what I was fighting for. So as far as I am concerned this person is a deserter in the face of the enemy.
What a lovely example of contradictions! "Glassart" claims to have opposed the Vietnam war at the time, but to have volunteered regardless. Perhaps he believed that the Constitution and Declaration of Independence requires American citizens to stop thinking for themselves, shut down their higher faculties, and be suckers for the power-hungry rulers of the nation.
As a former military person (officer? pilot? desk jockey? the guy who sweeps the aircraft hanger floor? he doesn't say) he surely must know that a soldier in Washington can't possibly be deserting "in the face of the enemy" when that enemy is thousands, or even tens of thousands, of miles away. He uses that term twice, so it is important to him, but he doesn't know what it means. He calls the Vietnam War a "conflict", which is another sign of a chickenhawk: cheer the war on, but refuse to call it what it is. I'm guessing he wasn't a pilot, but one of the many air force personnel who never came within cooee of combat.
Then there is post number four, from "tilden44mobley", a twenty-year veteran of obeying orders like a good storm-trooper, a guy who was in Iraq in 1991 and says he knows weapons of mass "distruction" are still in Iraq. I can imagine the tens of thousands of American troops in Iraq right now turning on him and saying Are you calling us liars? Are you saying we can't do our jobs?
But this is the most significant comment of all:
I have lost many friends to the defense of our freedom. He discraces thier memory evertime he puts on the uniform. [sic]
In other words, blame the messenger. Don't blame the liars and con-artists who sent his friends off to die for nothing. Don't hold the crooks and cheats responsible -- instead, blame those who discover that you've been cheated.
It has been said that there is a sucker born every minute, and this common trait of shooting the messenger is an enormous factor in that. The powerful know, in fact they rely on the fact, that the people they lie to and cheat and actively harm are often their strongest defenders. Naturally there are limits to how far you can go before even the dimmest Joe Redneck loses faith, but those limits are pretty high. If there was one trait of Homo sap that has lead to misery and strife, it is the habit of actively supporting the manipulators and cheats, even after they've been revealed for what they are.
Posted by
Vlad the Impala
at
1/06/2007 10:10:00 am
0
comments
Labels: iraq, psychology, warfare
Tuesday, January 02, 2007
Price of heroin
One of the accidental consequences of the "War on Terror" is the US market for heroin is now flooded with cheap, strong Afghan heroin. As Mark Kleiman of the Reality-Based Community explains:
The reporter places no emphasis on the most astonishing (if true) fact in the story: grams of highly pure Afghan heroin are now trading at $90 in LA. That's about a dime per pure milligram, compared with $2.50 a pure milligram in New York during the "French Connection" days. For a naive user, 5mg of heroin is a hefty dose, so your first heroin experience is now available for less than the price of a candy bar.
Ain't competition grand?
[...]
Heroin, even more than cocaine, illustrates the near-futility of trying to use drug law enforcement to control drug abuse once a drug has found a mass market. Prices have been dropping (about 80% in inflation-adjusted terms for cocaine, much more than that for heroin) even as the number of dealers going to prison has soared.
Taken at face-value, this suggests that competition and market forces could lead to falling profits for the Mister Bigs in the drug trade. But then, it could easily go the other way: a lower prices leading to a larger market and more over-all profit.
Either way, anyone who still believes that prohibition is the answer is clearly living in Cloud Cuckoo Land. It isn't working now, and it has never worked, ever.
Posted by
Vlad the Impala
at
1/02/2007 03:17:00 am
1 comments
Labels: afghanistan, drugs
Grey Naughtiness
This just goes to show that when it comes to human sexuality, the range of behaviour is enormous.
The New York Times is running a story about the "Graying of Naughty", the growing kink market for middle-aged porn.
DE'BELLA — or Debbie, as everybody calls her — decided late in life to become a porn star. This year she turned 50, time, she knew, to chase her dream.
"I love sex," she explained, biting into a Burger King special before embarking on her scene for the day at a rented house in the San Fernando Valley. She was wearing a bright pink satin and black chiffon nightie with a matching thong and heavy makeup.
"I decided I wanted to do something different," she said. "I'd been working behind the scenes, and my friends said: 'Why not do movies? Have some fun, and get paid for it?' "
So she has. Since May, De’Bella (she did not want her real name published) has used days off from her job as an administrative assistant at a sex-related entertainment company, Platinum X, to shoot about 30 scenes, with men mostly 19 and 20 year old.
And while she is sort of a novelty — appearing on "The Howard Stern Show" to talk about her new career — it is no longer unusual (hey, Hollywood, pay attention) to see women, and men, of a certain age performing in sex movies.
[...]
The biggest change is in the sexual desirability of women old enough to be the viewer's mother. It has been fueled in part by pop culture's embrace of the sexy 40-something women of "Desperate Housewives" and "Stacy's Mom," the 2003 hit song about a teenager's mother who "has got it going on."
[... ]
The director, Urbano Martin, points his camera strategically, scarcely disguising his boredom. "I shoot specialty films," he explains during a break in filming, adding that he has been in the business for 17 years. "Fat women, old women, hairy girls — all kinds. We feed the niche."
The market for beautiful, airbrushed young women "is oversaturated," he says. "This is more normal people, more meat on the bone, like what you have at home."
Posted by
Vlad the Impala
at
1/02/2007 02:56:00 am
0
comments
Labels: sexuality
Asking why on technical forums
If you spend any time on technical mailing lists or newsgroups, you'll often come across conversations that go something like this:"How do I frabulate the transfibulator?"
"Why do you want to do that?"
"Why do you care? Just tell me how to frabulate the transfibulator!"
Why should people on technical lists care about the why? Why not just answer the question?
Firstly, and most importantly, because people have an ethical obligation not to give bad advice.
It is foolish to assume that every random poster on the Internet or Usenet is a responsible, intelligent, clear-thinking, sufficiently cautious adult who knows what they are doing. In fact, if you were going to play the odds, you'd bet on them being the complete opposite. This is even true on many of general purpose technical mailing lists (although perhaps not so much on the more elite lists). If frabulating the transfibulator carries risks or serious costs, then the chances are very good that the person asking about it isn't aware of those risks.
It is one thing to give a straight technical answer if it seems that the poster knows what they're doing. There's no reason not to tell someone how to shoot themselves in the foot if they are fully aware of the consequences of doing so; it is another thing altogether if their post indicates that they haven't thought it through and have no idea that they are even pointing the gun at their foot.
If somebody asks for help writing a rotor-based encryption engine (like the World War Two Enigma), it would be sheer irresponsibility to answer their technical question without pointing out that Enigma was broken back in the 1940s and is not even close to secure today. So ask "Why do you want to do that?". If the answer is "I'm storing confidential medical records in a database", then you can gently apply the cluebat. It might be your own medical records you prevent from being stolen. But if the answer is "I'm doing it to obfuscate some data in a game, I know this is weak encryption, but it is good enough for a game", then that's a horse of a different colour.
The second reason for asking "why?" is that it is extremely common for people to ask the wrong question because of a misunderstanding or misapprehension. Some time ago I read an exchange of posts on comp.lang.python started by a programmer who was looking for a faster method to access items in a list. Eventually somebody asked him "Why?", and it turned out that he had assumed that Python lists are linked lists and that item access was a very slow procedure. In fact, Python lists are smart arrays, and item access is exceedingly fast.
If folks had merely answered his technical question, he would have solved a non-problem, learnt nothing, and ended up with slow and inefficient code. His real problem wasn't "How do I this...?". His real problem was that he was labouring under false information, and by asking "Why do you want to do this?", people helped him to solve his real problem.
Posted by
Vlad the Impala
at
1/02/2007 02:46:00 am
0
comments
Labels: programming, python
Monday, January 01, 2007
Gerald Ford
After the recent death of former American President Gerald Ford, historian Juan Cole has published a retrospective of Ford's presidency, with the emphasis on his foreign policy:
He was against just assassinating people, and insisted on warrants for the wiretapping of US citizens.
All presidents make errors, and some abuses occurred on Ford's watch, though they often were initiated by Kissinger. But Ford faced with no illusions the challenges of his era, of detente with the Soviet Union, continued attempts to cultivate China, the collapse of Indochina, the fall-out of the 1973 Arab-Israeli War, and the beginnings of the Lebanese Civil War. Ford was right about detente, right about China, right about Arab-Israeli peace, right about avoiding a big entanglement in Angola, right to worry about nuclear proliferation (one of his worries was the increasing evidence that the Middle East had a nuclear power, Israel, and India was moving in that direction).
Ford's challengers on the Reagan Right were wrong about everything. They vastly over-estimated the military and economic strength of the Soviet Union (yes, that's Paul Wolfowitz). They wanted confrontation with China. They dismissed the Arab world as Soviet occupied territory (even though the vast majority of Arab states was US allies at that time) and urged that it be punished till it accepted Israel's territorial gains in 1967. They insisted that the Vietnam War could have been won.
But despite its illusions and Orwellian falsehoods, the Reagan Right prevailed. Ford only momentarily lost to Carter. Both of them were to lose to Reagan, who resorted to Cold War brinkmanship, private militias, death squads, offshore accounts, unconstitutional criminality, and under the table deals with Khomeini, and who created a transition out of the Cold War that left the private militias (one of them al-Qaeda) empowered to wreak destruction in the aftermath. The blowback from that Reaganesque era of private armies of the Right helped push the US after 2001 toward an incipient fascism at which Ford, the All-American, the lawyerly gentleman, the great Wolverine, must have wept daily in his twilight years.
[Note: "Wolverine" is a reference to Ford's early career as a footballer, not to the superhero of the same name.]
Cole paints a pretty picture of Ford, and I suppose it could even be true. Ford was unique in one sense, he was the only American president in recent times who gained power without being elected into office. That made him different from all the other rabid stoats who clawed and kicked their way into power by whatever means it took.
But only a little different: Ford may not have been elected president, but he was elected into an exceedingly senior position in the Republican Party. He might have been old-school conservative, but he was only a Good Guy in comparison to the team of criminals and czarists who have stolen the Republican Party. When push came to shove, Ford's foreign policy was no less ruthless than any other American president of the last century: long on the rhetoric of virtuousness, short on actual virtue. It has taken the reckless imperialist George Bush Junior to make Ford seem appealing: Ford, to his credit, was sensible and pragmatic, which is probably the best we can hope for in the president of the USA. But, whether driven by Ford or by Kissinger, the Ford administration continued the grand old tradition of the USA, of putting short term selfish gains ahead of long term benefits.
Cole's article does a good job of showing Ford's policy successes, but before we made Ford into a saint of old-fashioned virtuous conservativism, let's remember what else he and his administration did. He pardoned his former boss, the crook Richard Nixon, preventing justice from being done. Neither he nor Kissinger voluntarily ended the pointless war in Vietnam, it took the Congress to force his hand.
He gave the okay to Indonesian president Suharto -- who had massacred hundreds of thousands of political enemies when he came into power -- to invade East Timor, leading to the killing of a quarter or a third of the East Timor population. Not only did Ford give Suharto a nod and a wink to invade, but he provided material support for the invasion, such as ground-attack planes.
Despite Ford's otherwise admirable attempts to bring Israel to the negotiating table, his administration nevertheless opposed moves by the U.N. Security Council to reach a peace settlement in the Middle East. And he gave Rumsfeld and Cheney their start in politics.
And of course, in the end Ford displayed remarkable cowardice towards the GOP czars who came after him. What good did his tears for the sins of Reagan and Bush do for his country? Why didn't he speak up while he was still alive?
Ford might have been less wicked than the Republican presidents who followed him, and possibly even the Democrats, but in my heart of hearts I can't see terribly much to admire in him.
Posted by
Vlad the Impala
at
1/01/2007 11:57:00 pm
0
comments
Creationist logical reasoning
PZ Myers discusses a Creationist with some major misconceptions about evolution:
Every time I talk to creationists, I'm always stunned at the depth of their misconceptions. There are always the same old boring arguments that are ably dismissed with a paragraph from the Index to Creationist Claims, but there are also occasions when they get, errm, creative, and unfortunately they always take your gape-mouthed I-can't-believe-you-are-so-stupid-that-you-said-that reaction as a triumphant vindication that they must be right.
Orac takes a right-wing idiot to task, and I don't need to jump in—he's done a fine job dismantling him—but I made the mistake of actually reading the ghastly blog article he's criticizing, and even worse, reading some of the comments there. The very first comment will make your jaw drop at the combination of sublime arrogance and impenetrable stupidity. There's a list of 7 objections to evolution, all wrong, but I'll spare you and show just the first.If any two species chosen at random share a common ancestor, would that not imply that every living creature today was ultimately derived from one singular "Mother-Beast"? Just what did this creature look like (I imagine a bulbous sphere, fourteen stories in diameter, with various heads sticking out all over: cow, porcupine, squid, human, etc. Most are confused; none are happy.)
This person learned everything they needed to know about evolution from playing with Mr Potato Head at the age of 4, and has not progressed since. They have not bothered to read word one of any actual science text, but are still convinced that they can accurately summarize evolutionary theory.
It seems a particular habit -- no, compulsion -- of Creationists that the less they understand about evolution, they more they insist that they have discovered the bullet-proof flaw in it which will bring the whole ediface crashing down. The Certainty of Ignorance.
Reading the average Creationist is an experience rather like going to a car mechanic to get squealing brakes looked at. He nods sagely, then pops open the boot (the trunk for you Americans reading this), pours a bottle of oil all over your spare tyre, and exclaims "there you go, that oughta fix it". Mother-Beast indeed.
But in fairness, I can understand where the Mother-Beast concept came from. It isn't just a bizarre fantasy, invented from whole cloth. It actually makes logical sense, given the assumptions Creationists tend to share.
I don't quite understand why, but some years ago Creationists came up with the assumption that "information can never be created, only destroyed". For reasons that escape me, this meme has become exceedingly popular amongst the ignorant. It is obviously false -- by any reasonable definition of information, information gets created and destroyed all the time, and not just by intelligent agents either. There's more information in an oak tree than in the acorn it grew from.
But given this bizarro assumption of "conservation of information", then logically the earliest ancestor must have had contained all the "information" from every creature that ever lived.
See? Perfectly logical, apart from the inconvenient fact that the first assumption is a total load of bollocks. The laws of logical reasoning, like computers, suffer from Garbage In, Garbage Out:
- All men are tubs of strawberry yoghurt.
George Bush is a man.
Therefore George Bush is a tub of strawberry yoghurt.
If your assumptions are garbage ("the brakes are in the spare tyre, and information can never be created"), your conclusions are garbage.
This illustrates why I get impatient with people who dismiss Creationists as merely "stupid" and "brainless" -- it isn't just lack of brain power, it is often a particular sort of highly logical, deeply intellectual stupidity. It often includes a big chunk of self-deception: consciously or unconsciously, they choose their assumptions to give the conclusion they want, no matter whether that conclusion is true or even plausible, and refuse to question those assumptions, even in the face of evidence that George Bush is not a tub of strawberry yoghurt, for fear that they will have to abandon those conclusions.
In other words, Creationism isn't about logic, or intelligence, or science. It's about emotion, mostly fear and self-perception. Find a way to break through the emotional barriers, and eventually, the anti-evolution meme will die. Look at how all but the tiniest nutcase fringe of Creationists have abandoned the Biblical ideas that the Earth is flat with four corners, held up by pillars, and that the sun moves around the Earth.
Posted by
Vlad the Impala
at
1/01/2007 11:39:00 pm
1 comments
Labels: science
Scratch a free-marketeer...
...and find an enemy of private property.
Stephen J. Dubner of Freakonomics recently blogged about an interesting study of the used-book market.
Or rather, Dubner thinks it might be interesting, but since it costs US$695 he hasn't actually read the report.
That sounds interesting, doesn’t it? We’ve touched on related subjects here and here; Judy Chevalier and Austan Goolsbee wrote a paper about the market for used textbooks. Even closer to home, as far as the trade publishing industry is concerned, is this paper by Anindya Ghose, Michael Smith, and Rahul Telang, which argues that — despite the publishers’ fears — the sale of used books does not cannibalize new book sales, and in fact a robust used market may help the new book market since a book, once read, retains more of its value.
But what I want to comment on is not Dubner's post itself, but one of the comments left by a reader. "GamblingEconomist" starts off with the free market party line, defending the price of the report:
Why does it seem strange that industry research would be expensive? How are those in the industry supposed to make their decisions without market research? Peer reviewed economics publications don’t always fit the bill.
but then rapidly shows his(?) true colours:
I hope that nobody sells it on ebay because the report is likely licensed to the purchaser for his/her own use and is not meant to be duplicated and/or resold.
Let's get this straight: he's not talking about copyright infringement. From context, he's talking about re-selling a physical copy of the report. He's hoping that nobody can re-sell the report -- or to put it another way, he hopes that the report is not the property of those who buy it.
He's talking about one of the most fundamental attributes of the free market, without which the concept of "private property" is meaningless: once you buy something, it is yours, to do with as you wish, including selling it.
You would think I'd be immune to this by now, but I never cease to be angered at the double-standards of so many of the supposed "free-market" proponents who are happy to gut the principle of private property by messing with the first-sale doctrine. To these people, there are two classes of individuals in the world: those who own property, and those who merely licence it.
And you can bet that in their minds, they intend to be in the first class.
Posted by
Vlad the Impala
at
1/01/2007 10:28:00 pm
0
comments
The Auditors are real
Proof undeniable that the Auditors of Reality are real:
Originally found here, thanks to Robert Long.
Posted by
Vlad the Impala
at
1/01/2007 11:18:00 am
0
comments
Sunday, December 31, 2006
Good riddance to a dictator
They hanged Saddam Hussein yesterday. I certainly won't mourn him, except in the sense that I disapprove of the death penalty, and I consider his trial was barely better than a kangaroo court. When you consider the circumstances of his trial, the defence lawyers who were assassinated, the rush to return a guilty verdict, and now the unholy haste to kill him, this wasn't the finest hour of international justice.
But if you step back and consider the bigger picture, this was a death that will accomplish very little beyond a personal feeling of closure to his victims and enemies. (No doubt Mad King George will be grinning right about now.) His death will make him a martyr to many. Even those who would cheerfully have slit his throat, like Osama bin Laden, will no doubt be using Saddam's execution as "proof" (by which I mean propoganda) that the Iraqi government is nothing but a puppet of the Americans, killing Iraq's sons for the benefit of the USA.
It would have been better for Saddam to spend the rest of his life in jail as a warning to other dictators: you won't go down in a blaze of glory, shouting defiance at your enemies, you'll become irrelevent, unmissed, slowly drifting into old age and senility.
Be that as it may, whether Saddam's death would be more or less of a deterrent to others, one thing is absolutely certain: it will have no real effect on the Iraqi civil war. Unrepentent Baathists looking to put Saddam back in power have never been more than bit players in the Iraqi tragedy.
[sarcasm] However, on the plus side, at least now I no longer have to fear Saddam's invisible nuclear, chemical and biological weapons! [/sarcasm]
Professor Juan Cole has a detailed list of the top ten ways that the USA helped build Saddam's dictatorship. If you'd rather a brief overview, set to Bing Crosby's Thanks for the memories, Eric Blumrich has a very well done Flash slideshow.
Update, 1st Jan 2007 11:45pm:
The New York Times (DNA sample required) has a moving report on Saddam's execution. I hate to say it, but the old monster went to his death with more dignity and grace than his executioners showed. He was defiant until the end, and his bravery will surely give more ammunition to at least one side of the civil war.
Posted by
Vlad the Impala
at
12/31/2006 10:36:00 pm
1 comments
Labels: crime and law, iraq
Underarm hair
Echidne has a good rant about the conservative obsession with female body hair:
A recent wingnut cartoon adventure story (read: incitement towards civil war) has the picture [below] about the horrible enemies of all right-thinking wingnuts: animal rights activists and I guess the animals they protect. They're coming to get you and your Bible!
But look at the stubble on the woman's legs. That is a signifier that she is a feminist, a feminazi, a woman who will probably eat her children. She's having leg hairs! Eek. She probably has hairy armpits, too. Pardon me while I vomit.

(Click for larger image.)
I'm as much a product of my culture as the next person, so I'm not going to discuss the aethetics of body hair (female or male!) except to note that I was surprised to see letters to American Playboy running four to one in favour of centerfolds with neatly trimmed pubic hair instead of completely shaved. What interests me more is the sociology of the armpit wars.
Especially fascinating is the double-standard of the American conservatives, who on the one hand declare that the nature of women is not just biologically fixed but that it is God-given right and proper that it be so -- except for body hair. Woman who choose to keep their natural, "god-given" body hair and not shave it off are at best freaks and unnatural, and at worse evil.
Just think about that. It is unnatural to not actively remove your natural body hair.
How does this belief differ from the horrific tribal belief widespread across Africa, the Middle East and Indonesia that it is unnatural for women to keep their external genitalia? Of course shaving hair off is not the equivalent of permanently removing bits of your flesh, and there is a vast gulf between the social pressure to shave (whether women's legs or men's faces) and the sometimes forced practice of female genital cutting, but I'm talking about the attitute behind it. In both cases, it is natural to be unnatural, or if you prefer, unnatural to be natural.
Of course, it isn't just women who feel the sting of conservative social disapproval. In conservative circles, men who grow their hair long as god intended (why else would hair continue to grow after it reached the length of a short-back-and-sides?) are disparaged and suffer vituperation -- despite the Biblical precedent of Samson, and traditional drawings of Jesus Christ with long hair. It wasn't that long ago that long-haired men risked physical attack if they wandered into the wrong conservative area.
Beards, for some reason, come and go as fashion, and apart from the occasional outlawing of beards by (say) Russian czars, I don't know of any period in recent Western history when men suffered more than the lightest social disapproval for their facial hair or lack of it. (Although that disapproval can be pretty severe: try running for election as president with long hair.)
Another interesting factor is the double-edged way that conservatives use body hair as a weapon against women. If a woman shaves, then clearly she's (at least partially) submitting to particular social conventions. Any particular woman may or may not care about that -- after all, not all social conventions are bad. I don't see the social convention that people of both sexes shower and keep clean as particularly oppressive. But if a woman chooses to buck the convention, it gives conservatives two angles of attack: on the one hand, unshaven legs and armpits become a sign that the person isn't a real woman, that they are ugly, manly, unable to attract a man and therefore their entire motives become suspect: "they're just an angry man-hating feminazi".
But on the other hand, and at the same time, they are also condemned for wasting their time on silly trivialities. To the conservative mind, female body hair is simultaneously a trivial matter of grooming not worth getting upset about and a significant symbol of femininity that colours not only the entire personality of the woman but also the credibility of her message. It is as if somebody said "Oh, I don't care what the mathematics says, Professor Hawking's theories about quantum mechanics are all nonsense -- just look at the tie he is wearing!"
Hmmm. I'm reminded that Australia's Prime Minister, then Leader of the Opposition, rose massively in opinion polls when he started plucking his eyebrows. As Mrs Impala reminds me, we're all baboons obsessed with pink bottoms really.
Posted by
Vlad the Impala
at
12/31/2006 01:59:00 pm
0
comments
Saturday, December 30, 2006
The RIAA according to McSweeney's
McSweeney's has parody letter of demand from the RIAA:
If you would prefer not to be stripped of your home and dignity, please send us $3,750 in the return envelope. If your toddler has been named in this lawsuit, explain to them that the fruits of their labor as an adult will go to pay a debt that will ultimately lead to their death at a young age due to their inability to afford medical insurance. Toddlers never understand that, but they'll get the point if you make them cry. If your household pet has been named in this lawsuit, it will be euthanized. If you are a 13-year-old girl, do not expect that the bad publicity in the past has made us hesitant to sue little girls—it has only made us hate you even more. If you, your household pet, or your toddler did not commit any of the acts above, then we will sue you and ruin your life forever for lying. Then we will sue you again, because it's not about the money anymore. It's about revenge.
Posted by
Vlad the Impala
at
12/30/2006 10:13:00 pm
0
comments
Hogfather redux
After my review of Hogfather, I thought I should follow up with a shorter one from Mrs Impala. I agree with it entirely.
When it was good, it was very nearly very good, and when it was bad, it was am-dram [amateur dramatics].
Eighteen words to express what I took 1400 words to say. I guess we can see who is the wordsmith of this family.
Posted by
Vlad the Impala
at
12/30/2006 09:18:00 pm
1 comments
Labels: discworld
Pink fluffy slippers
Conversation in the car tonight as Mrs Impala and I returned home from delivering a kitten to her home:
| Me: | Was that woman jogging...? |
| Mrs Impala: | Yes she was. |
| Me: | She was jogging in fluffy...? |
| Mrs Impala: | Yes. Fluffy slippers. Fluffy pink slippers. |
| Me: | She was jogging in fluffy pink slippers. Well, it takes all kinds. |
| Mrs Impala: | Unfortunately. |
Posted by
Vlad the Impala
at
12/30/2006 07:51:00 pm
0
comments
Labels: people watching
Thursday, December 28, 2006
Dawkins "not really a scientist"
Speaking as somebody who studied the hard sciences, including physics, at University (and graduated too, I might add), there are very few things more pathetic and sad than a physicist trying to pull rank on a biologist.
One of those things, though, is a physicist trying to lecture a biologist about complexity. Puh-lease. The fundamental objects in physics are particles like photons and electrons, which obey simple, regular mathematical equations that you can easily write down, like E = mc2. The fundamental objects in biology are animals and plants with exceedingly complex and complicated behaviours. Try writing down a mathematical equation to describe the growth of rose bush, or the behaviour of a rabbit, or even a single DNA gene.
Physicist John Barrow was awarded the 2006 Templeton Prize for his pop-science/religion writings. Challenged by biologist Richard Dawkins over some of his claims, Barrow ignored the substance of Dawkins' argument and went straight for the ad hominem fallacy:
"You have a problem with these ideas, Richard, because you’re not really a scientist. You’re a biologist."
(Quoted from William Dembski's blog.)
[Aside: for a look at the maturity of William Dembski, one of the elders of the Intelligent Design movement, check out this.]
This sad little episode, I think, demonstrates the intellectual emptiness of Barrow, not withstanding that he is a highly educated physicist and no doubt a very good writer. But, when push comes to shove, he is incapable of defending his religious ideas except by flinging mud. And worse, he fails to realise that if his accusation is true, if Dawkins (like other biologists) isn't a scientist, what does that say about him, that he is incapable of answering Dawkins' challenge?
Posted by
Vlad the Impala
at
12/28/2006 06:00:00 pm
0
comments
Labels: science
Wednesday, December 27, 2006
Hogfather
The (long-)awaited television adaptation of Terry Pratchett's Hogfather was shown on SkyOne in the UK on December 17th and 18th. Part One was the most successful SkyOne production ever, with 2.6 million viewers. Part Two wasn't quite so successful, but 1.5 million viewers is nothing to sneeze at.
Thanks to the miracle of bittorrent remote viewing, I managed to watch Hogfather in the comfort of my home in Australia, many weeks before it is due to be broadcast here.
As a huge fan of Terry Pratchett's Discworld series, I was looking forward to this programme, but not without a certain amount of trepidation. What if they mucked it up? You might not be able to make a Savile Row suit out of hessian sacking, but the best materials in the world won't help if the tailor can't sew.
So, with great relief, let me say that Hogfather didn't suck. Nor did it blow. It didn't even bite. Am I damning the show with faint praise? Yes and no -- it could have been better, but it was good enough that I wasn't disappointed. I give the first episode a generous B- and the second a conservative B+, for an overall mark of B, or if you prefer, a Distinction.
To my mind, the highlights of the show were Marc Warren and Michelle Dockery as Teatime and Susan. Warren's Teatime was off-putting and disturbing in all the right ways. So many people have commented on the similarities of Warren's performance to Johnny Depp's version of Willy Wonka that it would be amiss of me not to do so as well. Teatime's Wonka-esque voice, the inappropriate laughter, and the skewed way he looked at the world made the character so much more than just another nasty bad guy. After Warren's excellent role in the Doctor Who episode Love and Monsters (an episode I didn't especially like, but that's another story), he is certainly an actor I'll be watching out for in the future.
Likewise, Michelle Dockery was excellent as Susan, although probably a little more attractive (roaw!) than Pratchett's concept. Well, it is television, and the conventions of television are such that the female lead must be a hottie. Fortunately, Dockery is not just a pretty face: she can act, and succeeded in capturing the essence of Susan: slightly put-upon, slightly more than slightly annoyed, determined, independent, and a real Hero despite her wish to be "normal". Unwilling she might be, but when a job needs to be done, you won't find her wanting.
I was pleased that they managed to capture Susan's wild and uncontrollable hair without going for the crazed dandelion look of Paul Kidby's drawings.
Death was amazingly believable. Ian Richardson, who did the voice of Death, did a truly excellent job. I had always imagined Death as speaking like James Earl Jones (Darth Vader) on steroids, but Richardson's performance won me over. The 6'7" Dutch actor who played death, Marnix van den Broeke, did a fine job: Death moves likes an animated "skellington" should, animated without being alive, every movement deliberate and careful. And Death of Rats was as cute as a tiny skeletal rat could be.
David Jason's portrayal of Albert was also well done. It wasn't the Albert of Pratchett's novels, who is edgy and quite nasty and on the side of good for purely selfish reasons, but it was an Albert. A gentler Albert, like the slightly disreputable kindly uncle you wished you had, a bit of a chancer but still a rough diamond, and always good for a laugh. So not the terrible head of Unseen University from the days when being a wizard meant using magic to turn your enemies into wisps of slightly greasy smoke.
The choice to play Albert as comedy relief actually did work, but it did mean that one of the great lines from the book fell completely flat in the movie. In the book, when Albert introduces himself as the pixie "Uncle Heavy", there is genuine menace in it. In the movie, it just comes across as pathetic. Good ole Albert trying to be tough? Don't make me laugh. As wonderful as the line is, it should have been left out of the movie.
And that illustrates one of the problems with the film adaptation: it followed the book too slavishly at times, which meant that those poor benighted souls who have never read the book would often be confused. Adapting a novel for the screen requires more than merely cutting entire scenes because they won't fit within the time constraints.
Take the introductory voice-over, about the Big Bang and the Discworld, which was taken virtually word-for-word from the novel. In the book, it worked. As a narration, yawn. Especially since it was repeated on the second night.
It was disappointing that so many wonderful scenes from the book had to be left out, like the old boots and shoelaces. Of course you can't fit the entire book into a three-hour movie, but I'm sure there are many gems on the cutting room floor, and even more that never even made it into the script. That's why it is such a pity that the entire narration was repeated at the start of part two. Between the "Previously On Hogfather..." recap, and the repeated narration, episode two lost all of eight minutes. Eight precious, precious minutes, which would have been more than long enough for the beggars' feast. Programmes like Buffy and Battlestar Galactica manage to run through their "Previously on..." in under a minute, and they sometimes show scenes from two or three years previously.
And what was with the narration "a midwinter festival bearing a remarkable similarity to your Christmas"? Breaking the fourth wall works when it works, but breaking it to insult the viewer's intelligence does not work. ("What? The Hogfather is like Father Christmas??? Who would have guessed?")
But I don't wish to pick at every little weakness of the show. It is enough to mention a few of the things that could have been done better. Some of the scenes felt like they were being performed on a stage instead of filmed for television. The two media are very different, and what works on the stage doesn't work on television. Nigel Planer overacted in his role as Sideney the wizard, treating it as pantomime instead of television. So did Tony Robinson in his minor role as department store owner Crumley. The actor playing Medium Dave Lilywhite was merely adequate, but Chickenwire was grossly mishandled. Chickenwire in the novel is supposed to be a vicious criminal, streetwise and tough. We saw virtually none of that in the movie. At least Medium Dave looked tough; Chickenwire didn't even do that much.
The wizards, sadly, were mostly played as doddering, frightened old men, especially in the first half, without capturing any of their magisterial greatness, or their argumentative personalities. They improved slightly in the second half, and Archchancellor Ridcully did a fine job in both episodes. (Like Albert, Ridcully wasn't quite the Ridcully from the books, but he was a Ridcully.) So did Ponder Stibbons, and Hex was a fine piece of the filmmaker's art. It was amazing how much emotion a Rube Goldberg machine and an animated skeleton can put into a conversation. And the Eater of Socks was very well done indeed.
I prefer to emphasise the glass half full, so I'll say no more about the flaws. I liked the show, despite them. The minor characters of Violet and the Oh God of Hangovers were done very well. Death's final confrontation with the Auditors was filled with real power and emotion. For a skeleton with no facial expression, Richardson and van den Broeke made Death come alive, pun intended. They came close to the remarkable performance of Hugo Weaving in V For Vendetta, and I consider that high praise indeed.
In my opinion, Hogfather is one of the more difficult Discworld novels to adapt to the screen. It has a number of intertwining subplots and is more explicitly philosophical than many other Discworld novels. To really get the best from the story, the reader needs to know the characters of Susan, Death and Albert from previous books. SkyOne were aiming very high by choosing Hogfather as their first Discworld production. Having aimed so high, it isn't so surprising that they fell short of perfection, but what they accomplished was well worth watching. Let's hope that they will learn the right lessons from this, and the next Discworld movie will be better still, with a bigger budget, and a director who will do things my way.
Posted by
Vlad the Impala
at
12/27/2006 11:56:00 pm
0
comments
Labels: discworld
Saturday, December 23, 2006
Lucky socks
Thought for the day:I find it appalling and terrifying that a species capable of creating and deploying weapons of mass destruction panics because it can't find its lucky socks on a Thursday morning.
-- Mrs. Impala
Posted by
Vlad the Impala
at
12/23/2006 02:56:00 pm
0
comments
Labels: psychology
Friday, December 22, 2006
This year in review
Cartoonist Tom Tomorrow's This Modern World has a review of the major events of 2007:
Part One
Part Two
This Modern World archives
Posted by
Vlad the Impala
at
12/22/2006 08:55:00 am
0
comments
Thursday, December 21, 2006
Murder in Baghdad
One of the more egregiously stupid Internet memes (in the actual sense, not in the stupid LiveJournal sense of a quiz or survey) going around is the flood of chain letters claiming that Iraq is no more dangerous than Washington DC. If you've got pro-Iraq war friends, you've probably seen some of them. They use statistics to prove that living in Washington DC was -- and maybe even still is -- more dangerous than living in Iraq.
And by prove I mean mislead.
John Rogers of Kung Fu Monkey had something to say about the claims. Actually, he has two things to say: a nice version, and a not-so-nice version.
The nice version looks at the numbers, corrects the misleading use of statistics -- is it an accident that the pro-war zealots are averaging the death rate over chaotic murderous Baghdad and peaceful Kurdistan? yeah, sure it is -- and comes up with some conservative estimates for the yearly death rate in Baghdad:
544 murders per 100,000 in Baghdad versus 80 in Washington at the most lawless. (Today, Washington's murder rate is "merely" 35 per 100,000.)
Comparing apples with apples, Baghdad is at least fifteen times more dangerous than Washington D.C., and that only counts the risk of murder, not of kidnapping, torture or maiming.
One thing which surprised me was the equivalent figure for US troops in Iraq: 602 deaths per 100,000 per year. Given the low profile the media has for casualties, I was shocked that it is as high as that -- but I'm even more shocked that the risk to civilians in Baghdad is merely 10% lower than the risk to hated foreign occupiers.
The not-so-nice version... well, let's just say that Rogers' questions the sanity of anyone who unfavourably compares U.S. cities with a place where car bombs regularly kill hundreds of people, where virtually every single day the corpses of torture victims are found with electric drill holes through their bodies.
Rogers asks:
[...] denying reality Is. Not. Helping. We can't have a conversation about what to do next as long as a chunk of this country keeps clapping its hands and wishing hard. Hey, somebody wants to argue we need to stay for ten years, fine, lay it out. I'm open to the idea (I'm a Powell guy, what can I say). But how am I supposed to take this seriously when some people in the same breath try a bunch of statistical shell-games to show everything's just hunky-dory?
Posted by
Vlad the Impala
at
12/21/2006 10:18:00 pm
0
comments
Labels: iraq, statistics
Two from "Sadly,No!"
Two interesting posts from Sadly,No:
- The Apocalypse
Pastor Swank writes about the differences between Christian and Muslim conceptions of the apocalypse. The gist of the column is, our apocalypse makes sense because we’re us, but the Muslims’ is crazy because they’re them.
- Dear Abby
DEAR ABBY: My problem is an interesting one. I am the president of a country I’ll call “The Untitled Tapes of Harmonica.” Our troops are currently fighting a war in another country, called “Iran.” Things aren’t going so well right now but, like most Harmonicans, my administration wants to succeed in Iran because we understand success in Iran would help protect the Untitled Tapes in the long run. Our goal is clear: a democratic and peaceful Iran that represents all Iranis.
But my real problem is with my father [...]
Posted by
Vlad the Impala
at
12/21/2006 07:17:00 pm
0
comments
Wednesday, December 20, 2006
Nihilism
Apologies for the stick-figure style, but this cartoon sums up my basic philosophy nicely.
(Click image to see full-sized version.)
The cartoon is by Randall Munroe and is published under a Creative Commons licence. The original can be found here.
Posted by
Vlad the Impala
at
12/20/2006 05:37:00 pm
0
comments
Labels: humour, philosophy, pics
Tuesday, December 19, 2006
Pretexting
"Pretexting" is a name for a particular type of old-fashioned fraud: it is when a person calls another party and pretends to be somebody else in order to get information under false pretenses. Morally and ethically it is fraud, but a legal gray area in some places. California was considering a bill to explicitly make pretexting illegal.
Until the MPAA stepped in and said they needed to commit fraud to protect their bottom-line.
Posted by
Vlad the Impala
at
12/19/2006 11:32:00 pm
0
comments
Labels: copyright, crime and law, security
Plural of virus
There are many schools of thought on the question of what is the plural of virus. Or to be precise, seven schools of thought.
The first is that virus is an irregular noun, derived from the Latin word for "poison", and therefore we need to make it a plural in the same way we would with syllabus/syllabi, fungus/fungi or cactus/cacti: "viri".
The second school of thought is that "viri" is bogus, because that in fact is the Latin word for men, not poisons, and therefore we need to make virus plural by dropping the -us ending and adding two i's, just like the Romans did with filius/filii (son/sons): "virii".
The third school of thought is that the word is virus and not virius, and anyone who would hallucinate an extra i in the word is obviously a nutter. There is no recorded use in Latin of virus being used in the plural: it is an uncountable word, like air[1] or bravery, and so didn't take a plural.
Therefore, like chassis, corps, deer, moose, sheep (and sometimes fish) the plural is the same as the singular: "one virus, two virus".
The fourth school of thought is that saying two virus is just wrong, no matter what the rules for bloody 4th declension uncountable nouns are, and that perhaps virus in the original Latin was like corpus/corpora, opus/opera and genus/genera: "virora".
The fifth school of thought is that the plural of virus, like certain other Greek words, should be "vire".
(This is the point where the first four schools of thought batter the fifth school with a Clue Stick, because virus was not a Greek word.)
The sixth school of thought is that "virorum" sounds about right, if virus was a second declension neuter noun, which it wasn't, and if we thought to correct the Romans' own spelling, which we don't.
The seventh school of thought is that we aren't ancient Romans, and the English word virus is not the Latin word meaning poison, and we aren't obliged to follow the Latin rules of making words plural any more than we are obliged to follow Latin grammar.
Therefore virus is a regular noun, and we make it a plural using the same rule used for words like bus/buses and campus/campuses.
So there you have it: seven possibilities, all of which (with the exception of virii, which is just dumb) have respectable rationalisations, although the one for "vire" is really stretching it.
Viri, virii, virus, virora, vire, virorum and viruses. Which is correct?
When faced with a difficult question like this, there is only one way to decide:
GOOGLE FIGHT!!!
http://www.googlefight.com/
Obviously we can't include "virus", because any search we do will find the singular as well as the plural. Besides, while virus to the Romans was an uncountable noun, like "fun" or "information", in the modern English sense it is countable. So virus is out on a technical disqualification.
On with the Googlefight! Last word standing is the winner!
Round One:
VIRI defeats VIRII 2,380,000 to 711,000
Round Two:
VIRI thrashes VIRORA 2,380,000 to 582
Round Three:
VIRE defeats VIRI 4,400,000 to 2,380,000
Round Four:
VIRE soundly defeats VIRORUM 4,400,000 to 267,000
Round Five:
VIRUSES tramples VIRE into the ground, stomping it flat and doing a little victory dance over its bloody corpse with a comprehensive 50,900,000 to 4,400,000 massacre.
But wait... fight officials are investigating the participants for the illegal use of acronyms, place-names and words in Foreign to bulk up their scores. So let's repeat the Googlefights with more focused terms:
COMPUTER VIRII defeats COMPUTER VIRI 313,000 to 144,000
COMPUTER VIRII defeats COMPUTER VIRORA 313,000 to 135
COMPUTER VIRII defeats COMPUTER VIRE 313,000 to 187,000
(Vire isn't so tough without all those place-names, hey?)
COMPUTER VIRII defeats COMPUTER VIRORUM 313,000 to 14,800
COMPUTER VIRUSES defeats COMPUTER VIRII 18,700,000 to 313,000
The results speak for themselves: despite apparently 313,000 over-educated but not-quite-as-educated-as-they-thought Latin-philes and/or L33t5, VIRUSES is the overwhelming winner. And all is well with the world.
Aside: this exercise is an interesting example of the growth of the 'Net. I had originally done these Googlefights back on 23 November 2004, with considerably different results:
| Word | 2004 | 2006 |
| viri | 389,000 | 2,380,000 |
| virii | 426,000 | 711,000 |
| virora | 309 | 582 |
| vire | 397,000 | 4,400,000 |
| virorum | 35,000 | 267,000 |
| viruses | 11,700,000 | 50,900,000 |
[1] Air in the sense of what we breathe. "Airs and graces" seems to be the only exception, and that is merely a figurative sense. Back
Posted by
Vlad the Impala
at
12/19/2006 09:05:00 am
2
comments
Labels: language
Monday, December 18, 2006
The power of ridicule
Blogger Brian Flemming quotes a reader discussing the power of ridicule to make serious social changes:
I think we should not underestimate the power of embarrassment. The book Freakonomics briefly discusses the way the Ku Klux Klan lost its subscribers, and the example is instructive. A man named Stetson Kennedy, almost single-handedly it seems, eroded the prestige of the Ku Klux Klan in the 1940s by joining them and then leaking all of their secret passwords and goofy lingo to the people who were writing "The Adventures of Superman" radio show. Week after week, there were episodes of Superman fighting the Klan, and the real Klan's mumbo jumbo was put out all over the airwaves for people to laugh at. Kids were playing Superman vs. the Klan on their front lawns. The Klan was humiliated by this, and was made to look foolish; and we went from a world in which the Klan was a legitimate organization with tens of millions of members – many of whom were senators, and even one president – to a world in which there are now something like 5,000 Klansmen. It's basically a defunct organization.
Posted by
Vlad the Impala
at
12/18/2006 06:40:00 pm
0
comments
Labels: history, psychology
Saturday, December 16, 2006
The Final Authority
Surely this has to be a spoof? Perhaps not -- there is no limit to nuttery.
The author of this website has decided that, on the basis of Biblical authority, the Earth must be stationary. The Sun naturally moves around the Earth (like a million tonne battleship being spun around on a string by a two-year-old). The author also has a bee in his bonnet over the name of the American continents. Or should I say, "Cabotia".
There's more: Hitler had a hydrogen bomb, big enough to devastate the entire UK, but it was stolen by the Americans and tested in Alaska, causing a tsunami. Naturally enough, the 2004 Boxing Day tsunami in Indonesia was also caused by the Americans -- following orders from the Jesuits.
You can't parody stuff like this! Summing up the author's level of misunderstanding and confusion about scientific knowledge is this quote, from the stationary Earth page:
Many people consider the Encyclopedia Britannica the FINAL AUTHORITY on all scientific matters.
Posted by
Vlad the Impala
at
12/16/2006 10:45:00 pm
0
comments
Labels: religion, scepticism, science
Friday, December 15, 2006
Your shoes are spying on you
Bruce Schneier blogs about a surveillance system that automatically tracks people by their shoes.
Don't toss your loafers away and go barefoot just yet: it can't track any shoes, just the particular combination of Nike + iPod Sport Kit.
Schneier writes:
To me, the real significance of this work is how easy it was. The people who designed the Nike/iPod system put zero thought into security and privacy issues. Unless we enact some sort of broad law requiring companies to add security into these sorts of systems, companies will continue to produce devices that erode our privacy through new technologies. Not on purpose, not because they're evil -- just because it's easier to ignore the externality than to worry about it.
Posted by
Vlad the Impala
at
12/15/2006 06:34:00 pm
0
comments
Labels: privacy




