Cognitive Conga: a blog

Dancing the conceptual kerfuffle shuffle

Ratiocination, n. An instance of [reasoning]. Also: a conclusion arrived at by reasoning. Doubt the applicability of this at your peril leisure.

Long time, no blog

July 1st, 2009

This is a little whiny, which I’ll apologise for at the outset.

It’s some time since I’ve posted here with much regularity. A spate of deaths among family friends, the end of a romance I tried to save before concluding it was impossible, a substantial investment of time helping out a friend who was having a harder time of things than me, and a few other significant complications, have been my lot of late. That hasn’t left much room for blogging.

Now, I’m finally turning my attention back to my academic future. Much as I love my current job, my (almost) three year contract finishes in December, and besides, I’ve a research project I’ve been itching to get off the ground and I need to find somewhere that’ll let me do that. Most likely, this will be a university department in the informatics field, but I suppose it could potentially be a forward thinking company. If you know of any funded PhD positions or jobs being advertised that would provide scope for researching, experimenting with and publishing on semantic annotation and the authority of information, please drop me a line.

As for the blog, I’ve drafted several new posts over the last few months, none of which are ready for publication yet. I’ll polish them up and post them if allows.

Dear Mr Brodman

June 7th, 2009

I sent an email just now to the CTO of T-Mobile USA, Cole Brodman (whose email address is, I have inferred from a few bits of publicly available information, probably cole.brodman@t-mobile.com). If you're interested in open mobile communications, you might want to send him an email too. Feel free to use mine as a basis for your own.

Dear Mr Brodman,

I write to you with some concern that T-Mobile may have misled customers over the use of tethering apps on the Android phones T-Mobile sells. Specifically, you suggested, I believe, that tethering apps would not be blocked. Yet it appears that at least one has been removed from the Android Market in the US.

I call on you to openly address your customers' concerns, and to work with Google to ensure that of those customers, the Android users who wish to use tethering apps can do so with the aid of the delivery platform that the Android Market provides.

Yours sincerely,

Sam Kuper

Rimmed & shafted

May 2nd, 2009

My bicycle is a Dahon Piccolo, and - for the most part - I've been happy with it. It has a fairly compact fold, which I value highly, and it's nippy. Its rear end, however, has caused me some problems.

The first problem was a series of broken spokes on the rear wheel, when the bike was around two years old. I had the wheel rebuilt (at some cost!), and this stopped the spoke breakage. Unfortunately, the shop mechanic who rebuilt the wheel messed up the rim tape while doing so, and also left some burrs on the spoke nipples inside the rim, which caused me a series of punctures until I figured out where the problem lay and fixed it myself.

Next came a crack in the seat tube. This necessitated a new frame, though fortunately this was covered under warranty. Still, it meant the substantial hassle and expense of shipping my bike back to the original dealer for repair, and hiring a replacement for the interim.

Now, about a week ago I had my bike serviced. I thought it probably needed new pedals - or maybe bottom bracket, or both - because I could feel a clicking/popping/grinding when I was pedalling. It turned out it probably did need new pedals, but the clicking and popping wasn't due to the pedals, it was due to a crack in the rear rim. The staff at the shop where I'd had my bike serviced said they hadn't been able to source any suitable rims and suggested that I try elsewhere.

Naturally enough, I tried the dealer I originally bought the bike from. They told me that a lack of rear rims for Dahon Piccolos and Dahon Curves was a longstanding problem, but that entire rear wheels (spokes, hub gear and all) were available for £145. That's half the new cost of the bike! Asking some other Dahon dealers the same question produced the same answer.

So, I had a choice between buying a whole new rear wheel or a whole new (or second-hand) bike. Blech.

A bit of spread-sheeting later, and I eventually opted for the new rear wheel. None of the second-hand bikes I enquired about had their original receipts available, which made me suspect they could have been stolen; and the new bikes I looked at worked out a little dearer than the Dahon per year of warranty remaining, since my Piccolo's frame, forks and handlepost are still under warranty for about another year and a half, and presumably the new rear wheel will be covered for a year.

Still, I'm disappointed. All bike manufacturers should recognise that it's in their interests to do what's in their customers' interests; and it's in their customers' interests to make spare parts readily available. Brompton does this, and so does Bike Friday. Why can't Dahon?

Next time it comes to a crunch like this, chances are it'll be more economical for me to get a new bike instead of repairing the Piccolo. And I don't think I'll be buying a Dahon again.

Flat

April 29th, 2009

There are three common, separate kinds of puncture that may afflict standard bicycle tyres (that is, those with inner tubes; tubeless tyres are rather different, and I have no experience of them).

  1. Probably the most common is the foreign-body puncture, in which a solid object penetrates the tyre from the outside, piercing the inner tube. I have three tips for dealing with these:
    1. Use tyres with a kevlar belt, or some other effective barrier between the tyre rubber and the inner tube. I use Schwalbe Marathons because they're the easiest to obtain for my wheel diameter; you may wish to shop around.
    2. Ensure your tyres are inflated to the recommended pressure. I prefer to use a pump with a built-in pressure gauge, for this. Don't over-inflate the tyres or you risk both blowing them and also increasing the shock your wheel experiences when it hits a bump in the road. Don't under-inflate either, or the tyres will pick up stones and glass shards like a sponge and you'll also increase your risk of pinch flats (see below).
    3. Use tyres with no more crenellation than is necessary for your riding conditions, as every nook in a tyre's tread can harbour a sharp that becomes worked deeper into the rubber during subsequent revolutions of the wheel.
  2. Pinch flats affect the sides of the inner tube, and are caused by the inner tube being pinched between the rim and the bead of the tyre. A well-inflated tyre seated in a rim of matching size, with an appropriately sized inner tube, should never suffer a pinch flat unless you're cornering fast enough to skid badly (in which case, you've got other worries).
  3. Spoke nipple wear can happen to an inner tube that is not sufficiently well isolated from spoke nipples. This isolation is normally achieved by rim tape, but rim tape can wear through. I've found cloth rim tape to work better than rubber rim tape. Velox rim tape is probably the most common, but there are other brands of cloth rim tape too. The most important thing is to make sure that your rim tape is fitted snugly. One the one hand, it mustn't be able to move from side to side - it must fill the well of the rim. On the other hand, it shouldn't extend too far up the sides of the rim, or it could fold up under the force from the inner tube, potentially pinching the inner tube in the fold.

I hope that this information will be as useful to someone else as it has been to me while I've been acquiring it over the last few years! If you want to learn more about bicycle wheels and their maintenance, you could hardly do better than to visit the website of the unique, incomparable, and now sadly deceased Sheldon Brown.

First, do no harm – the importance of being gentle

April 27th, 2009

The title of this post comes from a phrase taught in the medical profession, the intended interpretation of which is along the lines, given an existing problem, it may be better to do nothing than to do something that risks causing more harm than good. As with intervention by doctors, intervention by police, especially violent intervention - however well-intentioned - has the possibility of being more harmful than helpful. It is important that police officers are aware of this, and that they are imaginitive enough to consider and assess the likely outcomes of the different courses of action available to them when handling an incident.

Police brutality - the use of excessive or inappropriate force by police officers while engaged in other professional misconduct or in the course of their duties - has been a popular topic in the British media since the death of Ian Tomlinson during the recent G20 protests in London. It's a phenomenon I was aware of by the time of the Hillsborough Disaster, if not before. I have a vague idea that I had heard of the Battle of Orgreave by then, but I am not certain that I had.

Police brutality was something I first learned about via newspapers, via the television news programmes I saw at friends' houses (my family did not own a TV when I was little), and also by reading the sleeves of some of my parents' records - e.g. The Indestructible Beat of Soweto, and Victor Jara's Manifesto - and asking what they meant.

In 1992, my mother visited Los Angeles after her mother's death, and later told me how Los Angeles had, at the time, been aflame in the aftermath of the Rodney King beating. The media, both in the US and in the UK, had been aflame with the Rodney King story too, and the US media certainly bore some responsibility for stoking the anger that led to the riots. Still, it meant that everyone in those countries with a newspaper or a television set now knew what police brutality was supposed looked like. That year was also, if my memory serves, when I first obtained a copy of Rage Against The Machine's eponymous debut album. Songs like Know Your Enemy, not to mention Pearl Jam's w.m.a., which I came to know a year later, increased my awareness of the idea that police misconduct could be insidious and covert, in addition to the spectacular and overt brutality of the kind that generates a media frenzy. The uncovering of substantial corruption at my local police station a year after that served to confirm the legitimacy of this awareness.

Whether it involved children being shot in South Africa in the '70s and '80s, peaceful World Trade Organisation protestors being tear-gassed and unconstitutionally arrested in Seattle in the '90s or riot police beating monks to death in Burma in the noughties, the same conclusion could be drawn from every instance of police brutality I learned of during my youth and subsequently: although the police exist ostensibly to help prevent citizens from harming each other, police officers can - and do, on occasion - needlessly harm civilians themselves, unless those police are responsibly governed.

That last point is important, because it is key to a safe, free society. Without an effective police force, vigilantism - which can be far worse - rises largely unchecked and the risk to personal safety increases. But police, like the government, should be - to paraphrase the Gettysburg Address - of the people, by the people, and for the people. They must abide by the same laws they exist to help enforce. Responsible government of police would ensure that not only are police of the people and for the people, but also that those police officers see themselves in this light. Otherwise there is a risk that the following statement by Victor Jara could - as I'm afraid it sometimes does - apply to those police officers as well as to the Chilean soldiers Jara was referring to:

I think that the professional soldier, from the fact of wearing a uniform and having power over the rest of the contingent, loses the sense of his own class. I think the exercise of command makes him, consciously or unconsciously, put himself on a different plane and see life from a different point of view. He believes himself to be superior.

Substitute police officer for soldier, and this statement explains much of the behaviour seen in the instances of brutality I have mentioned.

* * *

Let's just consider the other side of the coin for a moment. Is it possible that police brutality is beneficial or deserved? In short, no. Police brutality cannot ever be deserved, as it is, by my understanding (see above) unnecessary a priori. That's not to say that police should never use force - clearly, force can sometimes be needed to take a suspect into custody or to keep him there - merely that a minimum of force should be used.

There are some oblique ways in which the harm caused by police brutality can be mitigated. One is by inspiring artistic responses. If there were no police brutality, songs like N.W.A.'s Fuck Tha Police and bands like T.B.A.C. would surely have no raison d'être. But I, for one, would be willing to trade this music - which I like, by the way, even if I don't agree with every one of the artists' sentiments - for proportionate policing.

There is one other mitigation I can think of: if the brutality is widely reported, the outrage it prompts can lead to official reviews of police tactics, which, if carried out well, could limit further brutalities. This may yet happen as a result of the Ian Tomlinson tragedy. But it comes a very poor second to having no brutalities at all.

Not that Innocent

April 21st, 2009

Despite growing up in England, I'm not fond of many English drinks. The school canteens, vending machines, newsagents, mini-supermarkets and pubs at which, in my youth, I sought refreshment typically offered no healthy options except overpriced still mineral water. The fruit juice was thin and sharply acidic and everything else was carbonated (bad for the teeth, because of carbonic acid), sugary (also, obviously, bad for the teeth - but also very high-GI), loaded with dubious artificial sweeteners like aspartame (laxatives; possible carcinogens; and more's the point, an unnecessary industrial adulterant), or some combination of these. In the US, on the other hand, it was easy to buy fresh drinks with wholly natural ingredients: horchata, for instance, or fruit smoothies. I longed for these to be available in the UK. They're delicious, affordable, hydrating, nutritive, and have, if I'm not mistaken, a lower GI than conventional sugary soft drinks.

As for hot drinks and alcoholic ones: the former tend to burn my tongue, waste prodigious quantities of energy, usually contain caffeine I neither need nor want, and often contain pesticide residues; and the latter, while nice to have a little of occasionally, are hardly a sensible choice for daily rehydration.

So when P&J Smoothies, and then Innocent Smoothies, started to become available from supermarkets, and other food sellers in the UK, I was thrilled. At last, I could set out to buy a drink at a local shop with enthusiasm!

But the honeymoon's over now. I've just heard that Innocent has sold a £30m stake to Coca-Cola, a company I loathe not only for its mostly worthless products and brainwashing advertising campaigns but also for its serious failures to take life-and-death corporate social responsibility seriously. These failures have been reported on in the better newspapers at various times over the last few years, so ignorance of them isn't a terribly convincing excuse. Moreover, the investigative activist comedian Mark Thomas has written a fairly comprehensive book on the subject, and he's written to one of Innocent's co-founders, asking him to reconsider the sale, so Innocent really can't claim to be acting innocently: they have the facts before them. Yet the deal has not, it seems, been reconsidered.

Consequently, I plan to extend my boycott of Coke to Innocent. While this might reduce my options next time I'm at the chill cabinet, my conscience will be easier for it, and some Colombian trade unionists and Indian farmers might also sleep a tiny bit better at night.

I wrote a quick email to Innocent to let them know:

Dear Adam, Jon and Richard,

Despite being in many ways a clone of P&J, which I think might have been first to the (super)market in the UK, Innocent won my affection by providing delicious fresh fruit smoothies and challenging the previously dire state of the UK soft drinks market. One of the reasons the drinks market was so dire in the first place was due to the hegemony of a few unimaginitive companies and their unhealthy products: Smithkline, Coca-Cola, PepsiCo et al.

Now, with £30m of Coca-Cola's (partly criminally earned) riches in your pockets, you're sleeping with the enemy, in my opinion. Innocent was successful already, and solvent too, as far as I can tell, so I don't think you needed the money. That being so, it would have behooved you to refuse it.

Mark Thomas has already written to you to explain why Coca-Cola is not a corporation to be trusted, and much one less to promote or support in any fashion.

So bye-bye, Innocent, I'll be missing your innocence.

Here are Mark's messages to Innocent, which I've copied - hoping he won't mind; I'll take them down if he asks me to - from his website since they aren't directly linkable.

Mark's [first] message to Innocent

Mark's response to Innocent who are apparently an ethical company but have now received a £30 Million investment from Coca Cola who are probably not an ethical company:

innocentorguiltyHi Richard,

I just wanted to drop you a note regarding your new found partnership with Coca Cola. An acquaintance mailed you earlier today and passed your response on to me. There are some fundamental factual inaccuracies and ignorance in your reply. You wrote:

As a business, Coke are definitely not perfect (although it is worth saying that independent judicial enquiries at the time found that the Columbia (sic) allegations to be unfounded, the same with India water although I am nervous about saying these things as it makes it sound like I am here to represent Coke, which I am not). But they do show a relatively good track record in learning and making good on the things they get things wrong. And the people we've met have been decent, ordinary folk.

The allegations against Coca Cola in Colombia are simple: trade unionists working for the company have been intimidated and murdered, in one case Isidro Segundo Gil was killed inside the plant, virtually under the Coca Cola logo, to this day Coca Cola have not had any independent investigation into the allegation that managers of the bottling plants in Colombia colluded with or directed the para military death squads. The murders happened over 12 years ago.

Your response states that independent judicial enquiries at the time found that the Colombia allegations to be unfounded, What independent judicial enquiries are you referring to? The Colombian judicial system has managed to investigate, prosecute and convict about 1% of the trade unionist murders, out of thousands. So any investigations conducted in Columbia are hardly independent and barely qualify as enquiries.

Or do you refer to the USA court case? Here the Alien Tort Claims Act is being used to try and get the Colombian bottlers and the parent company in the dock. But it can't be that one as initially the case was found to be inadmissible (though it is being appealed), so this is obviously not the 'independent judicial enquiries' that you refer to, is it?

So what independent judicial enquiries are you referring to?

You do not mention the fact that the Coca Cola Company tried to silence the Colombian trade unionists who brought the case against them in the USA. Coke offered to settle out of court to the tune of about $13 million on condition that they give up their jobs working in the Coke bottling plants and that the trade unionists never ever criticise Coke nor any other company that work with Coke in the future. Had the trade unionists signed and taken the $13 million they would break the terms of the settlement and be liable to court action if they criticised you Richard.

Neither do you mention the trade union busting of the company bottlers. The cases of Coke plant managers falsifying evidence against trade unionists, accusing them of terrorism. resulting in innocent men wrongly imprisoned for 6 months before the charges against them being dismissed.

You do not mention the fact that over some 15 years the company bottlers have gone from about 80% of the work force being in permanent employment with 20% casual labour to the situation we now find, where 20% of the work force is permanent and 80% casualised with no rights to even join a trade union.

Richard, I have spent some time in Colombia interviewing and taking testimony from people who witnessed Isidro Segundo Gil's murder to the delivery men who are not allowed to join a union. I am happy for you to have all of these interviews and for you to review them and see for yourself. I can even put you in touch with the people themselves , so if you wish you can visit Colombia and talk to them face to face, I think you would find them decent ordinary folk.

And so onto India, there are many stories here but let us stay with the stories about the Company opening plants (in a water intensive industry) in water sensitive areas with with little or no regard for the communities who find their water compromised and depleted. Once again you say independent judicial enquiries have found claims unfounded. Once again I ask what independent judicial enquiries?

Firstly there are four plants where Cokes operations have put the local community water in danger, in Kerala, near Jaipur and two in Uttra Pradesh. Two of these four plants have been shut down after protests and legal challenges. Coke were forced to close these plants.

The two remaining plants are near Jaipur and near Varanasi, neither plants have had judicial enquiries that found any claims of water depletion unfounded. So I am at a loss as to what judicial enquiries you refer to.

Happily for you Richard I have spent time in India too, and am happy for you to have access to all the interviews I have conducted with local people from all four of the plants, so you can hear for yourself what the allegations are.

Richard, you fail to mention the allegations that are raised against the company in Turkey regarding union busting or in El Salvador regarding Coke's sugar being produced with the help of child labour. Neither do you refer to the allegations of union busting in Ireland or the court findings against the company in Mexico, where they were found to be in breech of anti-monopoly law and intimidated some of the poorest shop owners.

So I am happy to send you a copy of my book which details some of these things BUT more importantly I offer to make my research and interviews on all of these issues available for you to come and peruse , so you might be able to make a more balanced comment on your partnership with the company. I do not understand how you can make comments that Coke have a relatively good track record in learning and making good on the things they get things wrong without considering these points.

Yours, Mark Thomas

Additional response:

Dear Richard, just seen another reply you have made to an enquiry about Smoothie and Coke, you quote the ILO report made in 2008 - referring to direct employees. You say everything suggests that conditions of work and rights applicable to direct employees [in Columbia (sic)] are duly respected. The key here is that over 15 years the ratio of direct employment to casual labour has been reversed, from 80% of the workforce that was 'direct' labour and 20% that was casualised, to the present day where 20% of the work force is direct labour and 80% is casualised. Casual labour have no rights to join a trade union. None whatsoever, I met and talked to plenty of people who testified that this is the case.

So your quote is selective and deceptive that is being used to promote a vision of the company that is simply not true. once again I am happy for you to come and see the interviews and bring your own translator if you wish to go through what these men and women say about working for the company.

Looking forward to hearing from you. Mark Thomas

UPDATE: I've had a reply from Innocent (I'm not sure if MT had one too, or not). Frankly, Innocent's reply smells of whitewash. It fails to substantively address the serious concerns people have about Coca-Cola's ethics and Innocent's implicit endorsement of them. Still, since I'm more inclined to fairness than, Coca-Cola is (not difficult!), I'll publish a copy of it below, so that readers of this post can see both sides of the correspondence (although again, I'll take it down if requested to):

Hello Sam,

Thanks for your e-mail.

We're sorry to hear you're unhappy with Coca-Cola becoming a minority investor in innocent, and just want you to know that we really respect your opinion, and are gutted to hear we'll be losing you as a customer - can we just say thank you for all your support in the past.

It's important for us to stress they are just a minority stakeholder (between 10-20%). We are still a standalone company, and Richard, Jon and Adam (the three founders of innocent) will still continue to lead and manage the company just as they always have done. We are not changing - so all those things you liked about us will still be here. In fact, one of the main reasons we chose Coca Cola as our investor is because they were the only investor that promised a completely hands off approach - allowing us to continue running the business in the way we always have done.

You may be interested to know that all of the money raised is going into the business (none is being paid out to the shareholders) and the funds raised will allow us to do more of the things we're here to do - getting natural, healthy drinks and food to as many as possible, pioneering the use of better socially and environmentally aware ingredients, packaging and production techniques and supporting charities in the countries where our fruit comes from. All of this remains very much in place.

If you haven't already, it may be worth having a look at the letter from Richard, Jon and Adam here, which outlines what's happened, just so you have the full story. http://www.innocentdrinks.co.uk/a-letter-from-the-founders/

Thanks again for taking the time to get in touch. Before we go we would just like to say this (without, we hope, angering you in any way): if you've trusted us in the past, and always liked what we've done, please keep your faith for the future, as we don't plan on changing. I joined this company because it represented an ethical, human approach to business that I massively admired, and I honestly don't see that approach changing - after all, a company is no more than the product of the people who work for and lead it and we're all still here. We needed an injection of cash to survive and grow at a time when many businesses - small and large - are struggling, and we got this from Coca Cola. However, this does not in any way change who we are, or what we're about.

All the best,

Joe

Face-blurring fail

April 21st, 2009

There's a lot to be said for Street View. I've wanted something like this to exist ever since I realised that the Encarta '95 globe barely let you zoom in at all. I wanted full zoom on the world! And Google, via Google Maps, Google Earth, and Street View, have pulled this off - finally - to an impressive degree.

There are concerns, however, that these technologies, especially Street View, invade people's privacy. Street View photos are automatically post-processed to blur faces and car license plates, in order to combat this alleged invasion, but this processing is not always successful, as an instance I noticed today proves.

Still, I'm not convinced that the privacy implications are as great as have been claimed. There's nothing the Street View car can see on its travels that any passerby wouldn't also have the opportunity to see. In other words, what it photographs is already in public - and therefore is not private information.

In fact, I think the publication of satellite or high-altitude reconnaissance photos - which are available, for instance, via Google Earth and Google Maps - is, from a privacy point of view, of greater concern, simply because historically, measures to protect privacy have tended to involve obscuring private areas from public view or hearing. Since that public was at ground level, the measures usually ran to walls, fences or hedges - or, if you could afford one, a large garden. None of these measures, although they may have worked for millenia to separate private areas from the senses of the ground level public, fare terribly well in the era of the satellite photograph, because the satellites can see what's behind those walls, hedges and gardens (as the government departments are all too aware!).

So, what's the solution? Should we just accept that we have zero privacy anyway and get over it? Or should we be building canopies as well as walls, to isolate our private spaces from viewers above as well as beside them?

svn revert to revision

March 27th, 2009

Sometimes I wish there was a '-r' argument to Subversion's svn revert command, so that I could revert my working copy back to a given revision. There isn't one, however, so how else can this be achieved?

The free Red Bean Subversion book gives some details here, but it's a bit vague on an important point. If you follow its instructions, and if your working copy contains uncommitted changes, then those uncommitted changes will be retained in the working copy. If that's what you want, then you're fine, but if not - in other words if you want to replace your working copy with a snapshot of the repository as it was at the point of the revision you want to "revert" to, you ought to:

  1. Change to the top directory within your working copy (assuming you want to roll back the whole of the working copy).
  2. run svn revert to revert your working copy's files to the state they were in when you last committed/checked out.
  3. run svn status -v to see which revision number your working copy now corresponds to (it's the highest revision number in the list that svn status -v produces).
  4. run svn merge -rXX:YY where XX is the number you obtained in the previous step and YY is the number of the revision you want to revert to.
  5. Done! The possible exception to this is that files in your working copy that didn't exist when revision YY was originally made, will still be there, because by default svn doesn't remove things. If you want to get rid of them, run a svn del [filename] on each of them.
  6. Well done! Now play with your working copy as though all those intermediate edits had never happened ;) . And when you're ready to commit your efforts, just use svn commit as usual!

Hopefully I won't be the only person this information has helped. :)

How to paste text into Vim

March 24th, 2009

Sometimes, when pasting code into Vim, I've found that each new line gets indented, so that if the text I copied started out like this:

My nice list:
    Foo
    Bar
    Moo
    Zoo

It ends up looking like this:

My nice list:
    Foo
        Bar
            Moo
                Zoo

It's a pretty annoying problem, especially if you're pasting in a lot of text that was neatly aligned or indented to begin with and which would now have to be re-aligned/indented all over again. Fortunately, it's an easy problem to solve.

The reason it happens is that Vim has an automatic indentation feature. This feature is useful for programming, because if you indent a line of code that you're writing, Vim will remember the indentation and apply it again when you begin the next line, which is ideal if that first indented line was the start of an indented block of code. Unfortunately, it's a slightly dumb feature in the sense that it's unintelligent. It just blindly indents the start of each new line as much as the previous one.

In the list above, because each item in the list was on a line that began with some indenting whitespace, Vim - if it had autoindent turned on - would indent the first item by the amount of whitespace it already possessed, and would then start the next line with that same amount of whitespace before pasting in the contents of the line. So the second item ends up with double the indentation of the first, and so on.

If this is happening to you, it probably means you've got a line in your .vimrc file which reads, set ai or set autoindent (these two commands are exactly equivalent: ai is just an alias for autoindent). If you don't need the autoindent feature switched on, just delete that line from your .vimrc. Alternatively, if you want it on most of the time, but not when you're pasting in text that's already indented, just make sure you're in command mode (by pressing the <ESC> key) and type:

:set noai

(note the colon at the beginning). Then hit <Enter>, and you'll have switched off autoindenting. Now enter insert mode where you want to paste your text (that is, use the keyboard to move your cursor to the appropriate place, and press i). Then paste your text, e.g. using Ctrl+v if you're on Windows or Apple-v if you're on a Mac. The indentations in the pasted text should have been preserved!

Now restore autoindent by going back to command mode (press <ESC> again), and type:

:set ai

Hit <Enter> again, and you're done!

Darling Dear

March 18th, 2009

DARLING DEAR
YOU ARE MY LOVING LUST: MY BEAUTIFUL HUNGER. MY AFFECTION LUSTS FOR YOUR WINNING HEART. YOU ARE MY DEVOTED FERVOUR: MY SYMPATHETIC LONGING.
YOURS AFFECTIONATELY
M. U. C.

... and people say the British are not romantic.

One of the earliest electronic computers, I recently discovered, was used to write love poetry. The Manchester Mark 1 was programmed by Christopher Strachey with the Loveletters program in 1952. (The letter above was outputted shortly before I wrote this blog post, by a Mark 1 emulator running the same program.) The Loveletters program constructs partially random sentences from a limited, but affectionate, vocabulary. Since many of the early electronic and electromechanical computers were motivated by military concerns, it's nice to see that the Mark 1 was used for something a little less combative.

Computer-generated partially random texts may no longer be very novel, but they are becoming increasingly sophisticated. The most engaging example I've seen so far, SCIgen, was written in 2005, and it generates scientific papers, based on a vocabulary of computer science terms. It's realistic to the point of satire - try it here, and be sure to click the Generate another one link when you want to see another paper. Incredibly, some of the texts it has generated have been accepted as submissions for supposedly reputable academic conferences and journals.