Tuesday, February 13, 2007

Walls around the world - Dyer

Gwynne Dyer surveys the worldwide industry of building walls between nations. There are many more of these than I'd imagined. Dyer makes a persuasive case that walls and fences are the future, an inevitable consequence of mobility and population growth.

It's a unique essay, well worth a quick read.

The dog: symbiote or parasite?

I've long thought of the Dog as a brilliantly successful cuckoo-like brood parasite. This only increases my admiration for the species. One can do much worse than develop a remora-like attachment to the most dangerous and dominant large predator the planet has ever known. (Ok, so our reign will be short. Not every species can be a shark.)

A biologist friend, however, scoffs at this. He claims the dog is obviously a symbiote. Well, to be honest, I know the boundary between symbiote and parasite is fungible. Dogs are great at cleaning up rotting meat, which probably has some health advantages. They may help geek-drones and women survive around alpha-males -- though they are prone to run away in a fight (they're not stupid). I'm sure they have other advantages ...

Whatever. We've been together long enough that we've probably altered each other's evolution. Jon Katz, another dog lover, weighs in on the debate:
The real reason we love dogs. - By Jon Katz - Slate Magazine

... Archer suggests, "consider the possibility that pets are, in evolutionary terms, manipulating human responses, that they are the equivalent of social parasites." Social parasites inject themselves into the social systems of other species and thrive there. Dogs are masters at that. They show a range of emotions—love, anxiety, curiosity—and thus trick us into thinking they possess the full range of human feelings.

They dance with joy when we come home, put their heads on our knees and stare longingly into our eyes. Ah, we think, at last, the love and loyalty we so richly deserve and so rarely receive. Over thousands of years of living with humans, dogs have become wily and transfixing sidekicks with the particularly appealing characteristic of being unable to speak. We are therefore free to fill in the blanks with what we need to hear. (What the dog may really be telling us, much of the time, is, "Feed me.")

As Archer dryly puts it, "Continuing features of the interaction with the pet prove satisfying for the owner."

It's a good deal for the pets, too, since we respond by spending lavishly on organic treats and high-quality health care.

Psychologist Brian Hare of Harvard has also studied the human-animal bond and reports that dogs are astonishingly skilled at reading humans' patterns of social behavior, especially behaviors related to food and care. They figure out our moods and what makes us happy, what moves us. Then they act accordingly, and we tell ourselves that they're crazy about us.

"It appears that dogs have evolved specialized skills for reading human social and communicative behavior," Hare concludes, which is why dogs live so much better than moles.

These are interesting theories. Raccoons and squirrels don't show recognizable human emotions, nor do they trigger our nurturing ("She's my baby") impulses. So, they don't (usually) move into our houses, get their photos taken with Santa, or even get names. Thousands of rescue workers aren't standing by to move them lovingly from one home to another.

If the dog's love is just an evolutionary trick, does that diminish it? I don't think so. Dogs have figured out how to insinuate themselves into human society in ways that benefit us both. We get affection and attention. They get the same, plus food, shelter, and protection. To grasp this exchange doesn't trivialize our love, it explains it.

I'm enveloped by dog love, myself. Izzy, a border collie who spent the first four years of his life running along a small square of fencing on a nearby farm, is lying under my desk at the moment, his head resting on my boot.

Rose, my working dog, is curled into a tight ball in the crate to my left. Emma, the newcomer who spent six years inside the same fence as Izzy, prefers the newly re-upholstered antique chair. Plagued with health problems, she likes to be near the wood stove in the winter.

When I stir to make tea, answer the door, or stretch my legs, all three dogs move with me. I see them peering out from behind the kitchen table or pantry door, awaiting instructions, as border collies do. If I return to the computer, they resume their previous positions, with stealth and agility. If I analyzed it coldly, I would admit that they're probably alert to see if an outdoor romp is in the offing, or some sheepherding, or some beef jerky. But I'd rather think they can't bear to let me out of their sight.
And the answer is ... symbiote. I happen to believe, with a bit of evidence, that humans have almost uniquely flaky brains (Temple Grandin mentions this in one of her books as well). We have lots of very significant relatively recent evolutionary hacks in our wetware, and we know that hacks produce bugginess and instability. We have a high rate of major and minor defects -- as near as we can tell we're much worse off than any other animal. It's the price we've paid for sentience. A social animal with a buggy brain has a major need for psychic support. The dog is a first-rate psychic crutch. That's a heck of a value proposition. All hail the Dog!

Monday, February 12, 2007

Teraflop 2007 and 1996

[I originally titled this 2007 and 1986. I think my mind wouldn't process that it's been 11 years since 1996.]

Now the "ancient time" comparisons are well within my memory range ...
BBC NEWS | Technology | Teraflop chip hints at the future

A chip with 80 processing cores and capable of more than a trillion calculations per second (teraflop) has been unveiled by Intel.... a piece of silicon no bigger than a fingernail ...

... The first time teraflop performance was achieved was 11 years on the ASCI Red Supercomputer built by Intel for the Sandia National Laboratory.

That machine took up more than 2,000 square feet, was powered by almost 10,000 Pentium Pro processors, and consumed more than 500 kilowatts of electricity...

... The Teraflop chip uses less electricity than many current high-end processors, making the design attractive for use in home computers.

It consumes 62 watts, and the cores can power on and off independently, making it more energy efficient.
I can't think of anything to add. I'm awed.

Sunday, February 11, 2007

Building productivity solutions via mash-ups: Reider's office schedule

Jacob Reider ties a commercial (Misys) practice management system to Google calendar to build a distributed medical office schedule.

It's a fascinating example. Is it HIPAA compliant? Probably, though I can't swear to that. Is it reliable -- I'm less sure of that, Google is famous for breaking APIs. It is probably reliable enough for Jacob though, he can always fix it as needed.

Many eons ago, when dinosaur roamed the earth and Gopher was hot, I advocated for building our startup's solutions as an extensible ecosystem. I wasn't thinking web services, I was thinking more photoshop-style plug-ins. We would build things, others could build things, the sum of the ecosystem would be greater than a controlled solution. (I wasn't so foolish as to advocate open standards; even now the closest thing to that, the HL-7 RIM 3.0 spec, is a decade away from being robust.)

I got exactly nowhere with my proposal. The startup sold for a decent price, so I was probably wrong -- most startups simply fail. In a broader sense, however, I do believe in the original vision. There are win-win solutions in the universe.

I don't, however, buy Jacob's more radical proposal that one can craft an entire robust solution from off-the-shelf parts. It's the old probability curse. Building a 98% reliable solution from x integrating parts requires (1- x*y*z...) reliability from each component. That's hard to achieve even in a controlled web services architecture. It's worth remembering that even Gmail is not all that reliable -- there are times it's slow or even unavailable. We are ok with that because we can tolerate some offtime on our email. Gmail is only one controlled system.

Of course I've been wrong before ...

2/12/07: Jacob replies. Alas, no comments on his blog so I can't say hello that way. Really, the wrestler wasn't all bad! He was kind of a weird libertarian populist ...

Wednesday, February 07, 2007

The astronaut story: I'd want an MRI

A Navy pilot and astronaut engaged in some exceedingly bizarre behavior. The media are all over the 'feet of clay' story. Maybe, but this behavior isn't simply an extramarital affair or a straightforward substance problem. It's profoundly weird.

If I were her lawyers, and assuming she doesn't have a meth habit, I'd want an MRI and an organic brain syndrome workup. Sure, it could be bipolar disorder, but if she's no preexisting history she's a bit old for that. If there's no mass lesion I'd be thinking PET scan ...

Friends don't let friends buy a RAZR

My alter ego really despises his new Motorola RAZR V3M. He got lost on the Denver ring road while contemplating the depths of his dislike for this iPhone inspiration [1] ...
Gordon's Tech: Review: Motorola RAZR V3m Phone (Sprint):

... I have a bad marriage -- with my phone.

When I first bought my Motorola RAZR V3m I thought it was pretty feeble, but I needed something to tide me over until my Sprint contract expired. The main selling point was the mini-USB connector, I figured I could charge the phone from my MacBook (nyet) or my Dell laptop (yes). After a few days I thought it looked pretty interesting, especially when I cleaned out the default settings and installed Google's superb Gmail client.

Then I began to see the warts. They didn't go away, they just got wartier. Soon I decided the phone was a bit weak. That didn't last. I came to hate the phone with a deep and abiding passion. I was ready to rant against the RAZR in public spaces. I saw Paris Hilton holding the RAZR and I thought it was perfect for her...
The longish post has the full flogging of this foul marriage between decent hardware and really bad software. Don't let any of your loved ones buy this phone. If you own Motorola shares, sell them ...

[1] As in its so bad it may have convinced Jobs that Apple needed to bring the iPhone to market ...

Tuesday, February 06, 2007

Why Apple can't license Fair Play

Sometime in the past month I mentioned in a blog posting that DRM solutions require absolute control of the hardware chain. (update: it was 9/06, when iTunes stopped supporting the ROKR -- the only non-Apple FairPlay client - seems like I wrote that only yesterday ....) Today Apple (allegedly Steve Jobs) said the same thing:
Apple - Thoughts on Music

...The most serious problem is that licensing a DRM involves disclosing some of its secrets to many people in many companies, and history tells us that inevitably these secrets will leak. The Internet has made such leaks far more damaging, since a single leak can be spread worldwide in less than a minute. Such leaks can rapidly result in software programs available as free downloads on the Internet which will disable the DRM protection so that formerly protected songs can be played on unauthorized players.

An equally serious problem is how to quickly repair the damage caused by such a leak. A successful repair will likely involve enhancing the music store software, the music jukebox software, and the software in the players with new secrets, then transferring this updated software into the tens (or hundreds) of millions of Macs, Windows PCs and players already in use. This must all be done quickly and in a very coordinated way. Such an undertaking is very difficult when just one company controls all of the pieces. It is near impossible if multiple companies control separate pieces of the puzzle, and all of them must quickly act in concert to repair the damage from a leak.

Apple has concluded that if it licenses FairPlay to others, it can no longer guarantee to protect the music it licenses from the big four music companies. Perhaps this same conclusion contributed to Microsoft’s recent decision to switch their emphasis from an “open” model of licensing their DRM to others to a “closed” model of offering a proprietary music store, proprietary jukebox software and proprietary players.
In this case, I think Apple is telling the truth. Of course they've known this all along -- though you have to wonder about the ROKR fiasco. The situation for movies is even worse. You can be sure someone is storing all the currently encrypted movies they can find, knowing that sometime in the next five years they'll be able to hack them all at once.

Apple is saying that the music owners have to give up on DRM. I'm sure they'll agree ... :-)

More on DRM. Also, see my 2005 post on how DRM wrecked my media center experiments.

Buying dissenting voices: how it's done

Ever wonder where the 'smoking doesn't cause cancer' or 'CO2 isn't an important driver of our global warming' voices come from? They seem so much louder than their numbers suggest. Hint: It's the same way PACs buy politicians for wealthy interests:
Why Buy a Climate-Skeptic Cow When Milk is Cheap? | Cosmic Variance

... When I was an undergraduate (bear with me here) I spent a summer working at the Harvard-Smithsonian Center for Astrophysics. I worked with Sallie Baliunas, a CfA scientist who was a fellow Villanova astronomy grad, and was running an ambitious project to track chromospheric activity on a large sample of Sun-like stars. Sallie is an outstanding astrophysicist, and was a great advisor, as well as a friend. It’s no coincidence that I ended up going to grad school at Harvard’s astronomy department; the physics department didn’t like people from smaller schools and wouldn’t let me in, and Sallie helped convince the astronomy department to accept me.

Sallie also was, and continues to be, very right-wing, of the libertarian variety. Letting the free market do it’s job was the best strategy in nearly any circumstance, she firmly believed. Her interest in stellar variability led her to contemplating the role of Solar variability in the Earth’s climate, and she became convinced that changes in the Sun were essentially the only important factor in explaining changes in the Earth’s temperature. In particular, that human-produced emissions had nothing to do with it. Nothing about this belief was influenced in any way by large piles of cash offered by oil companies. But, once her views became known, they were more than happy to provide platforms from which to spread them; she’s now an editor at Tech Central Station, as well as a fellow of the George C. Marshall Institute.

Nobody could be more sincere in their views about climate change than Sallie is. I also happen to think that she’s dramatically wrong, as do the vast majority of (much more expert) scientists working on the question. But this is how the game is played — no need to bribe people when you can influence the public debate much more easily, and without fear that your targets won’t stay bribed. Unfortunately, oil companies have a lot more cash to spend on this purpose than the atmosphere does. Which is why public-minded scientists who agree with the carefully researched views of the IPCC need to keep hammering on the importance of doing something to fix this problem, before the damage is irrevocable.
Philip Morris developed many of these techniques to slow public health attacks on smoking. Dissenting voices are important for the health of science, but these economic interests give them vast power -- somewhat to the detriment of science. The effect can work the other way too, if science showed that chocolate prevented cancer then the candy companies would amplify that as well. Alas, I have a hard time thinking of examples where this effect works to the good. Drug companies, for example, vastly amplified voices promoting estrogen therapy for menopause -- beyond what the science justified. The result was a fiasco.

If there were an economic upside to promoting HIV dissenters, they'd have wreaked vastly more havoc than they have to date.

(Oh, those politicians? PACs don't pay a politician to change their vote. They find politicians who favor their positions and fund their election and reelection. It's not so much classic bribery as it is selection - often selection for very dim people. This selection effect probably explains the past the incompetence of GOP representatives over the past 20 years.

Monday, February 05, 2007

Salon: another spook speaks out

Yawn. Yet another spy points out the extraordinary incompetence and banal nastiness of the Bush administration. Nothing new here but I liked this comment on what happens when Cheney/Bush let loose the dogs of war...
Bush and Cheney's dirty secrets | Salon News

... From the perspective of the White House, it was smart to blur the lines about what was acceptable and what was not in the war on terrorism. It meant that whenever someone was overzealous in some dark interrogation cell, President Bush and his entourage could blame someone else. The rendition teams are drawn from paramilitary officers who are brave and colorful. They are the men who went into Baghdad before the bombs and into Afghanistan before the army. If they didn't do paramilitary actions for a living, they would probably be robbing banks. Perhaps the Bush administration deliberately created a gray area on renditions.
Robbing banks?

When does Amazon censor reviews?

Recently I wrote a negative Amazon review of the Motorola RAZR V3M. It's pretty but dumb.

Amazon didn't release it.

Odd. I've written hundreds of Amazon reviews, I don't recall one being rejected before. I edited my blog review a bit, and tried again.

Nothing.

Peculiar.

I went back and reviewed the other reviews of this phone. There were very few, and they were very weak. Some were negative, but they didn't say anything that might really hurt sales. My review would hurt sales.

It appears that Amazon is now censoring negative reviews of some products. Why this product? One hint might be that Amazon has a shady deal going with cell phones. If you buy on Amazon you get a significant cash discount -- but you sign up for a high margin plan. You have to keep the plan for at least six months, after which the cost of the plan equals the rebate you've received. If you don't cancel then, you pay through forever.

I've been trying out Amazon's "premium" plan (pay up front, get free 2 day shipping). I was toying with continuing it and paying for it. Amazon, after all, has been providing great value through their online reviews. Now Amazon has greatly decreased the value of those reviews for me. I trust them much less. I won't sign up for their premium plan after all.

An Amiga 2000 working for a TV network

The equivalent of using a horse and buggy to deliver cell phones:
Readers fess up to old-skool IT

... “While our local TV network has a high-speed network for editing newsrooms, video servers, resource management with lots of PCs running Windows XP and expensive software, live titling is still done using a 1989-built Commodore Amiga 2000. Bought almost 20 years ago, the beast still runs great using a Maxtor 240MB hard disk drive, with a 25MHz 68030 processor and 68882 math co-processor running Amiga DOS 3.1, and overlaying graphics to live video using a GVP G-Lock device. It has a total of 10MB of RAM. We have to go around in thrift shops hunting down Amiga 500s, Amiga 2000s for spare parts, keyboards and mice. Even a CDTV was victimised to get a Fat Agnus 8372A chip. The computer runs Scala IC500 as a titling program and it still runs great. We transfer data from the Windows boxes using 720KB formatted 3.5- inch diskettes.”..
Many of the other examples in this fun article are OS/2 machines. In addition to sheer cussidness, absolute security from bots and viruses is a winning advantage.

Hardware has improved exponentially over the past decade, though no consumer prooduct will ever again equal the tank-like construction of my original Panasonic [1] manufactured 8086 box. Software hasn't even managed a linear improvement; we had better wordprocessors 10 years ago than we have now.

[1] It's long forgotten now, but in the age when Japan was righteously crushing American car manufacturers Japanese computer manufacturers threatened to do the same to the nascent US PC market. Congress responded with aggressive protectionism, forcing Japan out of the desktop marketplace. Does Dell owe its present power to that action? [Yes, I know all PCs come from the "far east", but Dell is still considered a US company.]

Sunday, February 04, 2007

Bandwidth: why the net is slow and getting slower

We don't have anywhere near the bandwidth we need to support video-on-demand (which is why Netflix and the post office still have years to go). Cringely has been delving into various solutions (Googleplex, P2P), but here he delivers a short tutorial on how ISP's work ...
I, Cringely . The Pulpit . WYSIWYB | PBS

... At the heart of this video distribution problem is the lie that ISPs tell about how much bandwidth we are really buying. While you may think your 1.5-megabit-per-second DSL service or your 3-megabit-per-second cable modem service is actually backed by 1.5 megabits or 3 megabits of Internet bandwidth, they really aren't. ISPs provision backbone access based on the expectation that people usually aren't on the Internet, and even when they are on the Internet most of their time is spent reading the screen, not actively sending or receiving packets. As such, ISPs have been able to get away with buying 20-30 KILOBITS per second of Internet backbone capacity for every MEGABIT per second of Internet service they are selling at retail. This 20-to-1 provisioning ratio of what's sold to what is promised (and believe me, 20-to-1 is me being generous to the ISPs since it is probably much higher than that) is what creates the burgeoning Internet video problem.

So if ISPs would simply provision the amount of bandwidth they are selling us there wouldn't be a problem, right?

Alas, that's not the complete story.

What would appear to be an obvious solution to this impending problem is increasing effective backbone bandwidth for every broadband user. There is no LOCAL bandwidth crisis, just an INTERNET bandwidth crisis. As I've explained over the last two weeks, Google is going to solve this for us in exchange for taking the majority of global advertising revenue. Maybe that's the answer, in which case we don't have to do anything. But if Google doesn't step in appropriately or you'd rather not rely on Google for some reason, there is the alternative of going with a different ISP.

If you want a beautiful Internet video experience, one answer might be to buy service from a broadband ISP that will allocate more backbone bandwidth per account. If you are a DSL user, you have a choice of ISPs in most markets. They all go through the local phone company, of course, but that phone company has no problem allocating the rated value of the DSL line because to the telco that last mile bandwidth is free. My DSL ISP is MegaPath and they buy a 1.5-megabit-per-second circuit from BellSouth (now AT&T I guess, but the trucks don't say that yet) and it can really carry 1.5 megabits per second 24/7, no problem. The problem is that MegaPath then makes me share a DS3 (45-megabit-per-second) connection to the Internet with every other customer of theirs in my LATA or service area, so in practice I get a LOT less than my 1.5 megabits.

One would think a national DSL ISP would have a huge business advantage if they could sell me a 1.5 megabit service and actually PROVISION a 1.5 megabit service. The wholesale cost of Internet bandwidth is right now around $15 per megabit per month. So delivering a REAL 1.5 megabits vs. the 30 kilobits I am probably getting right now will cost my ISP 75 times as much, but that's still only $22.50 vs. $0.45. So the question is whether I would pay $22.05 more than I am paying right now to be able to effortlessly watch video over the net?...

Along the way Cringely admits that ISP's do have a legitimate grievance with "net neutrality". Their business model depends on that 20:1 provisioning ratio, but some kinds of net use are truly incompatible with that sparse provisioning. For things like video they have to buy much more backbone capacity -- so they bear a lot of extra cost. Of course they ought to be able to pass that on to customers, but imagine the screams from customers who aren't getting value from the streaming video ...

Saturday, February 03, 2007

Reducing poverty by leveraging globalization: SciAm

Another post rescued from my archives. This SciAm article on Globalization was published in April of 2006. I hope to add the key points to my old web page on reducing poverty.
Science & Technology at Scientific American.com: Does Globalization Help or Hurt the World's Poor?

.... Capital controls. The flow of international investment consists both of long-term capital (such as equipment) and of speculative short-term capital (such as shares, bonds and currency). The latter, shifted at the click of a mouse, can stampede around the globe in herdlike movements, causing massive damage to fragile economies. Many economists (including those who otherwise support free trade) now see a need for some form of control over short-term capital flows, particularly if domestic financial institutions and banking standards are weak. It is widely believed that China, India and Malaysia escaped the brunt of the Asian financial crisis because of their stringent controls on capital flight. Economists still disagree, though, on what form such control should take and what effect it has on the cost of capital.

Reduced protectionism. The major hurdle many poor countries face is not too much globalization but too little. It is hard for the poor of the world to climb out of poverty when rich countries (as well as the poor ones themselves) restrict imports and subsidize their own farmers and manufacturers. The annual loss to developing countries as a group from agricultural tariffs and subsidies in rich countries is estimated to be $45 billion; their annual loss from trade barriers on textile and clothing is estimated to be $24 billion...

Trust-busting. Small exporters in poor nations often lack the marketing networks and brand names to make inroads into rich-country markets. Although transnational retail companies can help them, the margins and fees they charge are often very high. Restrictive business practices by these international middlemen are difficult to prove, but a great deal of circumstantial evidence exists. The international coffee market, for example, is dominated by four companies. In the early 1990s the coffee earnings of exporting countries were about $12 billion, and retail sales were $30 billion....

Social programs. Many economists argue that for trade to make a country better off, the government of that country may have to redistribute wealth and income to some extent, so that the winners from the policy of opening the economy share their gains with the losers. Of course, the phrase "to some extent" still leaves room for plenty of disagreement. Nevertheless, certain programs stir fairly little controversy, such as assistance programs to help workers cope with job losses and get retrained and redeployed. Scholarships allowing poor parents to send their children to school have proved to be more effective at reducing child labor than banning imports of products.

Research. The Green Revolution played a major role in reducing poverty in Asia. New international private-public partnerships could help develop other products suitable for the poor (such as medicines, vaccines and crops). Under the current international patent regime, global pharmaceutical companies do not have much incentive to do costly research on diseases such as malaria and tuberculosis that kill millions of people in poor countries every year. But research collaborations are emerging among donor agencies, the World Health Organization, groups such as Doctors Without Borders and private foundations such as the Bill & Melinda Gates Foundation.

Immigration reform in rich countries. A program to permit larger numbers of unskilled workers into rich countries as "guest workers" would do more to reduce world poverty than other forms of international integration, such as trade liberalization, can. The current climate, however, is not very hospitable to this idea...
I spent a year in the development world after college, hiding out in the UN building in Bangkok (security was pretty light back then) and USAID offices in Bangladesh, so I have a tenuous connection to the world of international development. We've been more-or-less trying to move millions of people out of poverty for decades, and the results are increasingly good. We know far more than we did in 1981, and we're learning more all the time ...

Lost - all search is not equal

All search is not equal. A lost child will almost always have a significant search, but an attractive child of a wealthy, famous, and attractive family will get a better publicly funded search than a poor child. A woman will generally get a better search than a man, and a childless middle-aged man taking risks should not expect the most massive of searches.

Dr. Gray, a wealthy researcher lost at sea, is receiving a grade A publicly funded search, as well as the extraordinary private resources of an extremely wealthy community. I'm a bit jealous, but only a bit. Whatever it takes, I'll root for the miracle.

How to rescue a failed state

I came across this Economist article almost two years ago, but it was lost in my unpublished drafts. It deserves a bit of attention, so I'll resurrect it today. Emphases mine. Note the role of the UN and the Bangladeshi soldiers.
Rebuilding failed states
Mar 3rd 2005 | FREETOWN AND MONROVIA

ONE and a half years ago, Liberia was a failed state. Two separate groups of drug-emboldened teenage rebels controlled most of the country. A gangsterish president, Charles Taylor, was losing control even over Monrovia, the capital, where all sides were firing heavy artillery into office blocks and looting strategic spots such as the brewery. In August 2003 (see article), The Economist reported from that unhappy city that “famished townsfolk have already eaten their neighbours' dogs and are reduced to scrounging for snails.”

Today, thanks to the world's largest UN peacekeeping force, Liberia is calm. Some 15,000 blue helmets are keeping the streets more or less safe. There are still road blocks, but not the old sort, where militiamen stretched human intestines across the road as a signal to motorists to stop and be robbed. The UN road blocks are typically manned by disciplined Bangladeshis, of whom the locals vocally approve.

.... This article is concerned with the toughest cases: states that have lost control over most of their territory and stopped providing even the most basic services to their people. Only Somalia unambiguously fits this definition. A larger group of countries, mostly in Africa, are close to failure (see chart). Some, such as Zimbabwe, are cantering towards a cliff-edge. Others, having recently failed, appear to be recovering, if fitfully: Afghanistan, Haiti, Sierra Leone and Liberia all fall into this category.

States can fail because of external shocks, or they can decay from within, or both. Afghanistan and Angola collapsed when their colonial overlords suddenly withdrew. In Sierra Leone and Congo, the state was looted into putrescence, thus inviting rebellion and ultimately, collapse.

It is tough to mend a failed state, but the fact that some formerly failed states are now doing quite well—eg, Mozambique and East Timor—shows that it is not impossible. And although treatment is costly—the UN mission in Liberia costs $800m a year—the cost of doing nothing is often higher. When governments collapse, it is not only bad for citizens who thereby lose the law's protection. It can also cause regional or even global repercussions.

Lawlessness, it is often argued, creates space for terrorists to operate. This is sometimes true: there are almost certainly al-Qaeda operatives lurking in Somalia and the wilder parts of Pakistan. But the most-cited example, Afghanistan, does not really support this argument. Osama bin Laden used Afghanistan as a base not because it was a failed state, but because its government invited him to.

... The chief reason why the world should worry about state failure is that it is contagious. Liberia's civil war, for example, infected all three of its neighbours, thus destabilising a broad slice of West Africa. Congo's did the same for Central Africa.

... Looking only at war-torn states, Mr Collier and Anke Hoeffler, also of Oxford, found that three types of intervention were highly cost-effective, even before one considers the value of saving lives.

One good idea is to try to restrict the sales of commodities that fuel war. Extractable minerals often provide both the means to fight and an incentive to do so: rebels in Sierra Leone, for example, dug diamonds to pay for arms, and fought to seize power so they could grab all the mines...

Another worthwhile tactic is to offer generous aid to war-flattened countries, once they have stabilised a bit, so that they can rebuild their buildings and institutions. Mr Collier and Ms Hoeffler estimated that increasing aid to post-conflict countries by the equivalent of 2% of GDP per year for five years, starting half a decade after the war ended, would cost $13 billion but yield $31.5 billion in benefits.

By far the most cost-effective way of stabilising a failed state, however, is to send peacekeepers. Mr Collier and Ms Hoeffler calculated that $4.8 billion of peacekeeping yields nearly $400 billion in benefits. This figure should be treated with caution, since it is extrapolated from one successful example. In 2000, a small contingent of British troops smashed a vicious rebel army in Sierra Leone, secured the capital and rescued a UN peacekeeping mission from disaster.

Not all interventions go so well. But a study by the RAND Corporation, a think-tank, suggests that the UN, despite its well-publicised blunders, is quite good at peacekeeping. Of the eight UN-led missions it examined, seven brought sustained peace (Namibia, El Salvador, Cambodia, Mozambique, Eastern Slavonia, Sierra Leone and East Timor), while one (in Congo) did not. An earlier RAND study had looked at eight American-led missions and found that only four of the nations involved (Germany, Japan, Bosnia and Kosovo), were now at peace, while the other four (Somalia, Haiti, Afghanistan and Iraq) were not, or at any rate, not yet.

The comparison is not entirely fair. The Americans took on tougher targets: Iraq has more suicide-bombers than East Timor. On the other hand, the UN had punier forces and budgets at its disposal. The annual cost of all 11 UN peacekeeping operations today is less than America spends in a month in Iraq.

... The UN secretary-general's “special representative” in Liberia, a forceful American called Jacques Klein, is the most powerful man in the country. He may lack an “executive mandate”, including the power to arrest people, such as the UN had in East Timor, but his budget is roughly ten times larger than the Liberian government's. A UN embargo on Liberia's main exports (timber and diamonds) remains in force, pending proof that the money is not falling into the wrong pockets.

Mr Klein put 48 Liberian “generals” (with noms de guerre such as “General Peanut Butter” and “General Fuck-Me-Quick”) on the UN payroll, so that they would help him disarm their men (and boys and girls). The ex-fighters were offered incentives to surrender their guns: $300 and help with school fees or vocational training. About 100,000 handed in weapons or ammunition, which is encouraging...

.... But pacification is only the first step. To ensure that a recovering failed state does not fail again, it needs a government that is legitimate and competent enough not to invite another rebellion. And nation-building is the hardest task of all.

... Practically nothing works in Liberia. There is no piped water, no functioning justice system and the closest approximation to a middle class is 60,000 civil servants who have hardly been paid in 14 years. There are 450,000 prosperous and well-educated Liberians, but they live in America and show no sign of returning. Liberia is not even ranked on the UNDP's annual “human development index”, for lack of data. “We're fighting to get to the bottom of the list,” says the UN's Mr Klein.

The only large organisation that functions adequately in Liberia is the UN. Besides keeping the peace, it helps refugees return home, inoculates babies, feeds a fifth of the population and trains local teachers, policemen, judges, army officers and so forth. This is helpful, but it is hard to support such a weak government without supplanting it. Because the UN offers the best salaries in town, and actually pays them, it often ends up poaching the most able public servants...

... If the UN were suddenly to pull out, Liberia would collapse again. But it won't pull out suddenly or soon. Sierra Leone, Liberia's neighbour, which collapsed just as bloodily in the late 1990s, offers a heartening example. Three years ago, it was in roughly the same situation as Liberia is today, held together only by 17,000 blue helmets. The peacekeepers have pulled out gradually, as the Sierra Leonean army has grown stronger with British training. After the last peacekeepers leave, Sierra Leone's elected government will still be shielded by a British promise to send back its troops if rebels attack it. The country is still poor and ill-governed, but it is no longer a charnel house, so it has a chance...
I wonder these days if Iraq was truly lost when the UN's Baghdad office was destroyed, taking with it some extraordinary people ...