Brian Clegg's Blog, page 92
July 1, 2014
Now that's what I call a graph
Reading for review Superintelligence by Nick Bostrom, I couldn't help but be struck by this graph:
The remarkable thing is, if you zoom in, a huge amount of that growth has happened in my lifetime. We talk casually of change, but I think this emphasises how different things are now from the way they have been at any time in history.
And as for the famous climate change 'hockey stick' graph - 'Call that a hockey stick? THIS is a hockey stick!' (HT to Crocodile Dundee.)

The remarkable thing is, if you zoom in, a huge amount of that growth has happened in my lifetime. We talk casually of change, but I think this emphasises how different things are now from the way they have been at any time in history.
And as for the famous climate change 'hockey stick' graph - 'Call that a hockey stick? THIS is a hockey stick!' (HT to Crocodile Dundee.)
Published on July 01, 2014 01:14
June 30, 2014
Sexism is symmetrical

I personally think that it should be discouraged, as I feel sexism has no place in modern society, whatever the excuse, and this seems to be suggesting there are circumstances where take a sexist attitude doesn't really matter. We wouldn't accept casual racism because it's 'just a bit of fun'.
But equally, I am genuinely very uncomfortable about the casual sexism in the Diet Coke adverts that we have been subjected to, apparently for 30 years. I've included one of the latest at the bottom of the page. I honestly think if the same advert was done with a bunch of men ogling a woman and encouraging her to take her top off there would be a huge outcry. Why aren't the anti-sexists complaining about this too? A touch of dual standards?
In the end, our approach to sexism has to be symmetrical, or we become hypocrites.
Published on June 30, 2014 01:30
June 27, 2014
Software could be cleverer - but only if software designers think like people

into many a web form. The error message in red appears.In my dim distant past I did quite a lot of work on the design of the user interface between people and computers - how you interact with a computer (or these days, often, the web) - and it shocks me how stupid most software still is.
When I first programmed computers professionally I soon started exploring ways to make the interaction more friendly. My earliest work pre-dated graphic user interface. The user had to type commands into a console. And, surprise surprise, people made mistakes. So I put in a little routine to capture when errors occurred to see what they were typing wrong and then modified the software so it would cope with the most obvious mistakes. This isn't rocket science. Computers are much better at sorting out basic errors than people are, as long as they are pointed in the right direction.
Let me give you two examples.
In the UK phone numbers have always traditionally been written as two or three blocks. So, for instance, a Swindon number might be 01793 123456, while a central London number could be written as 020 7123 4567 (or more sensibly 0207 123 4567). Very often, websites ask you to type in a number. And surprisingly often what will happen if you type in a number like this is that the site responds, as above, with a warning that you have got the format wrong - because it didn't want spaces. In the example above, taken from an ITV website, they even go to the trouble of telling you not to use spaces (someone should tell them Not To Use Capitals in the middle of a sentence) - but this totally misses the point. That instruction is unnecessary, because people should be able to use spaces - and the fact they've had to include the warning shows that lots of people do.
Any C programmer will tell you that this is a brainless mistake on the part of the programmer, because there is a routine in the C language, which in various variants underlies much modern programming, that takes spaces out of string of text. The programmer doesn't even have to write something themselves - they can just whap the input through this routine, and their software will never even know that there was a space. But no, instead, they program it to complain and force the user to retype it. This is doubly irritating if, like me, you have your computer to set up to automatically fill in information like phone numbers in web forms, which the Apple software properly does with the space in place.
Here's another example. A full web URL is something like http://www.brianclegg.net Note what comes after the 'http' - a colon. Now a colon is a fiddly thing to type, as it's a shifted character. So I bet over the years many people have typed http;//www.brianclegg.net instead, with a semicolon after the http. And guess what? It doesn't work. Again, it's a trivial exercise for your software that reads an address to substitute colon for semicolon. (I know you don't usually have to type http://, but there are some circumstances when you do.)
Admittedly this kind of automatic correction isn't always appropriate. You can't always guess what someone meant. But if, as in the first example, the person typed the number correctly and you are just forcing a particular format, or, as in the second example, there is no sensible alternative interpretation, it's much more polite and efficient to do the right thing and make your software take the kind of imaginative leap that people do all the time without thinking about it.
Published on June 27, 2014 02:24
June 26, 2014
Not lateral thinking, boring thinking
One of those pictures that people pass around via Facebook has appeared on my screen several times:
Apparently we are supposed to be impressed with the lateral thinking skills of the young Chinese children who worked out that the space the car is in is labelled 87 (upside down).
But I think the people who are circulating this totally miss the point of lateral thinking. That was the obvious answer, but almost all real world problems (as opposed to school tests) have multiple solutions, so there certainly should not be a single 'right' answer.
For example, perfectly acceptable solutions include that the space is labelled:Park hereVisitor's SpaceHeadmaster0 (Indicating this is non-allocated parking)42 (Because it's the answer)... and I am sure you can think of more.
To be fair to those setting the test, the original did have the question 'What parking spot # is the car parked in?' which was omitted in the way it was distributed on Facebook, which makes it less of a lateral thinking problem. But also a lot more boring.

Apparently we are supposed to be impressed with the lateral thinking skills of the young Chinese children who worked out that the space the car is in is labelled 87 (upside down).
But I think the people who are circulating this totally miss the point of lateral thinking. That was the obvious answer, but almost all real world problems (as opposed to school tests) have multiple solutions, so there certainly should not be a single 'right' answer.
For example, perfectly acceptable solutions include that the space is labelled:Park hereVisitor's SpaceHeadmaster0 (Indicating this is non-allocated parking)42 (Because it's the answer)... and I am sure you can think of more.
To be fair to those setting the test, the original did have the question 'What parking spot # is the car parked in?' which was omitted in the way it was distributed on Facebook, which makes it less of a lateral thinking problem. But also a lot more boring.
Published on June 26, 2014 00:30
June 25, 2014
Stars are useful

Nor am I talking about the stars of stage and screen. Because, let's face it, most of them are seriously overrated. I refer instead to the habit of awarding stars in reviews.
A good while ago I wrote to the journal Nature, complaining about some of the book reviews that they carried. I pointed out that the (long) reviews said nothing whatsoever about the book itself and whether it was any good - which is what the potential reader wants - instead, the review merely gave the reviewer a chance to do his or her potted version of the theme of the book. They said what the book was about, but not if it was any good or whether you should read it. I got what was, frankly, a rather snotty email back from someone at Nature saying something to the effect of 'ours aren't the trivial sort of reviews you have on www.popularscience.co.uk. We aren't going to start giving a book stars like you do.'
Personally, I think this is a mistake. Life is too short to read every review - it's very handy to be able to check out the star rating and then decide which reviews to read. I'm not suggesting we only take notice of the star rating, but it's a good indicator of whether the reviewer considers a book (or film or whatever) really bad or excellent - in both cases suggesting the review is worth getting into in more depth. Assuming, of course, the review does give you a judgement on the book, as theirs failed to do.
However a star rating means different things to different people, so I thought it would be useful to finish by giving a quick guide to the way we use the star rating system on www.popularscience.co.uk:
* - Just doesn't work for us. If you think like us, avoid it
** - Has some interesting points, but probably only for a limited audience
*** - Good solid book, well worth reading if you are interested in the topic
**** - Excellent book that any popular science fan would want to read
***** - One of the best popular science books of the year
ImageCredit: NASA, ESA, and J. Maiz Apellaniz (Instituto de Astrofisica de Andalucia, Spain)
Published on June 25, 2014 00:26
June 24, 2014
Desert Island Playlist

It's all very well, but we really wouldn't like to be so limited, would we? So I've devised a new version - Desert Island Playlist. The rules are simple. Construct a playlist of your favourite music. You can have as many tracks as you like, but you are only allowed one track per band/artist or one piece per classical composers. What would yours be like?
I've listed mine below, and for those who like techno things, I've embedded a Spotify version of most of the playlist here so you can listen to them:
So here we go. I warn you, it's quite long. The order is simply the order I came across the tracks on iTunes, so it's in 'no particular order', as they say:
Al Stewart - Josephine Baker - a hard choice to get just one from my favourite singer/song writer, but this is one of my least-known favouritesBarber - Agnus Dei - I first came across this as background music in an animated section of a video game and fell in love with itAllegri - Miserere - simply stunningBeatles - Because - Abbey Road was an amazing album for me. It was the first pop record I really got into and coincided with one of those formative holidays where you meet girls and thingsBlondie - Heart of Glass - had to be something from Parallel LinesOrff - Carmina Burana - Dulcissime/Ave formosissima/O Fortuna - the final three tracks of this remarkable piece where the heroine gives her all, we celebrate love... and the wheel of fortune turns and nothing has changed. Forget the X-Factor associations, this is powerful stuffCarpenters - We've Only Just Begun - sobVaughan Williams - Bushes and Briars - I could have had one his lush orchestral pieces, but this male voice harmony setting of a folk song that I used to sing with my old chapel choir is electricWills - By the Waters of Babylon - I don't know if this has ever been recorded apart from the hissy recording I have of Selwyn chapel choir, but I think it's gorgeousLeighton - Drop, Drop Slow Tears - another obscure 20th century composer, but more scrumptious dark choral workTavener - The Lamb - sweetS. S. Wesley - Magnificat and Nunc Dimittis in B flat - the definitive Edwardian version of these miniature choral masterpiecesCurved Air - Puppets - one of many greats on the Second Album of this remarkable bandBeethoven - Moonlight Sonata - so I'm an old romanticDavid Bowie - Life on Mars - wowDire Straits - Money for Nothing - the background music to a trip to New OrleansDon McLean - Vincent - in memory of a student concert, where someone sang this and blew everyone awayThe Eagles - Journey of the Sorcerer - could have done Hotel California, but let's celebrate HHGTTGEd Sheeran - The A Team - a kids' influence, but I like itFleetwood Mac - Oh Daddy - could really have been anything from this albumGenesis - I Know What I Like - just love the 'lawnmower' bitMahler - Symphony 5 - one of the jollier works from my favourite symphonic composerHowells - Like as the Hart - possibly the best British 20th century church music composer. HauntingJethro Tull - Ring Out, Solstice Bells - unique sound and funJudie Tzuke - For you - could just listen to this over and over. Beautifully craftedKarl Jenkins - Benedictus - played too much by Classic FM, but still goodKate Bush - Lionheart - I know she says her first 3 albums were too studio dominated, but I prefer them to her later workKing Crimson - The Court of the Crimson King - nothing to addTallis - If Ye Love Me - a perfect short anthem from this early English masterKirsty MacColl - What Do Pretty Girls Do - again, difficult to pin down a definitive song, so a pretty random choiceLindsey Stirling - Shatter Me - my latest discovery. Love itLily Allen - The Fear - perfect song for her generationManhattan Transfer - A Nightingale Sang in Berkeley Square - shiver-sendingly goodMike Oldfield - Tubular Bells - despite meaning we see Richard Branson on those excruciating ads, wonderfully originalPearsall - Lay a Garland - it's a fake tudorbethan piece from the master of Victorian revival, but no less beautiful for thatPink Floyd - Welcome to the Machine - who made that stupid 'one track' rule? But from probably their most perfect albumThe Police - Don't Stand So Close to Me - I hated the Police initially as someone on the floor above played 'Message in a Bottle' repeatedly, but got to like them - and the menace in this one is impressivePurcell - Dido and Aeneas, When I am Laid in Earth - the most moving aria from the only opera worth listening to end to endBach - Well Tempered Clavier Prelude and Fugue in C major - perfection from the masterSheppard - Dum transisset Sabbatum - to modern ears, the tudorbethan Sheppard breaks all the musical rules, but does so remarkablySimon and Garfunkel - Homeward Bound - I could have chosen 20 at least. The soundtrack of my university yearsSting - Moon over Bourbon Street - I've seen it (the moon over Bourbon Street, I mean), and despite everything wrong with Sting, this song is so evocativeStravinsky - The Firebird - the complete ballet, not the suite. Orchestral perfection throughout.Supertramp - Crime of the Century - in my youth I did a lot of travelling by train for the fun of it, and the Paddington station announcements on this track take me right backSwingle - The Oxen - gorgeous setting of this Thomas Hardy poemTom Lehrer - I Hold Your Hand in Mine - my party piece if I'm asked to singToyah - I Want to be Free - one of her two hits, not really my favourites, but the rest (and yes, I have a lot of Toyah albums, someone has to) are an acquired tasteVan der Graaf Generator - Mask - gut-wrenching stuffOldham - Remember O Thou Man - cracking choral music from this one-hit wonderByrd - Mass for Four Voices - musical perfection from the greatest ever English composerYes - See All Good People - not subtle, but still brilliant10cc - Brand New Day - I could have chosen practically any track of their two key albumsDerek and the Dominos - Layla - what's not to love?Monteverdi - Magnificat - the musical equivalent of a high gothic building like King's chapel in CambridgeThe Who - I'm Free - I'd be hated by Who purists, but I prefer the movie version to the original album of TommyPhew!
UPDATED - In case you don't bother to read comments, M. G. Harris bullied me below into whittling it down to the 10 I would have under traditional Desert Island Discs rules. It's a struggle, but these would be my 10:
1. Al Stewart - Josephine Baker
2. Barber - Agnus Dei
3. Vaughan Williams - Bushes and Briars
4. Pearsall - Lay a Garland
5. Pink Floyd - Welcome to the Machine
6. Simon and Garfunkel - Homeward Bound
7. Sting - Moon over Bourbon Street
8. Stravinsky - The Firebird - the complete ballet, not the suite.
9. Supertramp - Crime of the Century
10. Byrd - Mass for Four Voices
Published on June 24, 2014 00:30
June 23, 2014
Hair dye takes on the fuel crisis?

However I would hate to be considered closed-minded, so I share the STFC's latest idea - instead of hydrogen, use ammonia. Although ammonia itself isn't a fuel, you can 'crack' it to give off nitrogen and hydrogen, which is then used in the usual manner in a fuel cell. Or you can use it as a fuel directly with a bit of hydrogen (see below), though despite the airy hand-waving, I would point out that those NOx gasses they hope they can get rid of are worse greenhouse gasses than CO2.
I still have some issues with this. It's quite a complex process from fuel to energy out because you have to go through a chemical reaction along the way. And I don't know what the energy density of ammonia is (any suggestions?) - and there is still an infrastructure problem, though providing ammonia in filling stations is more on a par with LPG, rather than the harsher conditions of hydrogen supply. So not a whole hearted 'Whey-hey, we've solved it!', but at least a 'Hmm, there might be something in it.'
Take a look at the excitable press release:
UK researchers today announced what they believe to be a game changer in the use of hydrogen as a “green” fuel. A new discovery by scientists at the UK’s Science and Technology Facilities Council (STFC), offers a viable solution to the challenges of storage and cost by using ammonia as a clean and secure hydrogen-containing energy source to produce hydrogen on-demand in situ.
When the components of ammonia are separated (a technique known as cracking) they form one part nitrogen and three parts hydrogen. Many catalysts can effectively crack ammonia to release the hydrogen, but the best ones are very expensive precious metals. This new method is different and involves two simultaneous chemical processes rather than using a catalyst, and can achieve the same result at a fraction of the cost.
Ammonia can be stored on-board in vehicles at low pressures in conformable plastic tanks. Meanwhile on the forecourts, the infrastructure technology for ammonia is as straightforward as that for liquid petroleum gas (LPG).Professor Bill David, who led the STFC research team at the ISIS Neutron Source, said “Our approach is as effective as the best current catalysts but the active material, sodium amide, costs pennies to produce. We can produce hydrogen from ammonia ‘on demand’ effectively and affordably.
“Few people think of ammonia as a fuel but we believe that it is the natural alternative to fossil fuels. For cars, we don’t even need to go to the complications of a fuel-cell vehicle. A small amount of hydrogen mixed with ammonia is sufficient to provide combustion in a conventional car engine. While our process is not yet optimised, we estimate that an ammonia decomposition reactor no bigger than a 2-litre bottle will provide enough hydrogen to run a mid-range family car.”
“We’ve even thought about how we can make ammonia as safe as possible and stop the release of NOx gases,” added Professor David. “This fundamental science therefore has immense potential to change the use of hydrogen as a fuel."
Ammonia is already one of the most transported bulk chemicals worldwide. It is ammonia that is the feedstock for the fertilisers that enable the production of almost half the world’s food. Increasing ammonia production is technologically straightforward and there is no obvious reason why this existing infrastructure cannot be extended so that ammonia not only feeds but powers the planet.
Speaking about this new development from the team at STFC, Professor David MacKay FRS, Chief Scientific Advisor at the Department of Energy and Climate Change (DECC) said “We believe that there is no single solution to the challenges we face in decarbonising the fuel chain, but this research suggests that ammonia based technologies are worth further consideration and may well play an important part in the future energy landscape. “
Five years ago, Professor Steven Chu, Nobel Prize winner and, at that time, the US Secretary of State for Energy in the Obama administration, sounded a death knell for the hydrogen economy with his statement that, while it takes only three miracles to be declared a saint, it would take four miracles to achieve a hydrogen-based energy economy. This work from STFC researchers could well be a turning point.
Kate Ronayne, Head of Innovation at STFC said: “This exciting research has the potential to dramatically influence the static and mobile energy solutions of the future. While still at an early stage, this innovative work offers a very elegant solution to some of the major challenges in harnessing the power of hydrogen as a fuel source.”
This has been a Green Heretic production
Published on June 23, 2014 00:36
June 20, 2014
What's that smell?

But there is more to this simple aromatic compound - including a refined nineteenth century battle over who discovered its structure - as you will discover in my latest Royal Society of Chemistry podcast.
To find out more about pyridine, take a listen by clicking play on the bar at the top of the page - or if that doesn't work for you, pop over to its page on the RSC site.
Published on June 20, 2014 02:40
June 19, 2014
SageOne revisited

This is online accounting software that keeps your books in order, does VAT invoices and other such goodies (in fact it even produces your VAT return and can submit it directly to HMRandC). If your accountant is into such things, they can get access to your accounts with extra accountant-flavour handles and help prepare you accounts more easily. My accountant has reduced my annual big bill for doing the year end accounts by around twice the £120+VAT a year I pay for using Sage.
Obviously that payment is the biggest downside. There are also one or two interface aspects that could be handled better. When you go into the site, which I probably do twice a day on average, you go to a screen where you can choose 'Accounts' or 'Collaborate'. I have never chosen 'Collaborate' so waste a few seconds every time clicking through to the obvious destination. Another oddity is that Sage's own invoices are accessed via the Settings menu, and don't automatically feed through to your accounts: you have to add them manually. (I've moaned about this and they've promised to look into it.)
But set against that, it is very easy to do all the basics like enter sales and purchases, enter payments, reconcile against bank accounts and so on. I check my business bank account every morning and simply add in any new transactions, so my accounts always match the bank figures. At the end of the month I do a formal reconcile, ticking off all the transactions against the bank statement and filing the associated paperwork. This is quick and easy. The result is, when I come to my quarterly VAT return literally all I do is a couple of clicks and my VAT return is done.
I wouldn't go so far as to say this makes accounting fun, though if you enjoy a good completed list of tick boxes, there is a type of pleasure in reconciliation. But it certainly makes this essential relatively painless. And because it's a web-based system, I can access it from any computer (or even my iPad) wherever I am.
We're all good at moaning about products that let us down, but I've genuinely been really pleased with Sage One. It's hugely more friendly and approachable than heavy duty accounts software, like the full blown Sage. If you have to do accounts, they have a free trial, so I'd recommend taking a look. (I use the basic Accounts, rather than Accounts Extra, which is for more complex businesses. They also have Payroll etc, but I've never tried that, so can't comment on how good it is.)
Published on June 19, 2014 02:28
June 18, 2014
Improbable things happen all the time

This weekend, for instance, was the culmination of an event so improbable that the chances against it happening were around 1.6 x 10743 to 1 (where 10743 is 1 followed by 743 zeroes). That is, frankly, the sort of event that clearly will never happen. Just to put it into context, the estimated age of the universe in seconds is just 4.32 × 1017 seconds. Yet that event did happen. What was it? That's the chances that the particular set of winning numbers over the last year in the UK National Lottery would be drawn.
Unfortunately we have so much trouble understanding probability, and particularly unlikely events like this, that it has caused real problems, including miscarriages of justice when people have been convicted of a crime because it appeared very unlikely that the event would happen by accident.
When faced with a very unlikely event there are (at least) three key tests it's worth applying:
1) Are the sub-events independent? That big number above was produced by multiplying the chances of a particular number winning one week by itself 104 times. This procedure only works if the events we are combining are independent. In this case they are - there is no connection between what is drawn one week and the next, which means that probability figure is genuine. In other cases though, you can't just combine probabilities this way. For example, in the infamous trial where Sally Clark was convicted of killing two babies who apparently died of cot death, the 'expert' witness Sir Roy Meadow took the chances of one cot death, 1 in 8,543 and multiplied it by itself to get the chances of two deaths as 1 in 73 million. But this would only be true if the two events were independent. But the babies shared an environment and genes, both of which influences the chances of the tragic event happening again. The events weren't independent.
2) What are the chances of something of this sort happening? We've seen that the chances of the particular set of numbers coming up in the lottery draw over the year is ludicrously small. But we should also ask what is the chance that any 104 numbers would be drawn. That is very close to 1 - unless there was a technical problem that prevented the drawn happening, it's a certainty. So unless we have a particular reason for expecting a certain set of numbers, the probability of the specific set drawn is almost irrelevant. It is almost certain that 104 numbers, each with a probability of about 14 million to one would be drawn - this just happens to be the particular set that turned up. You can see this around you all the time. Next time you are on a busy road, look at the number plate of the next car that passes you. What's the chances it would be that car? Pretty small. But is this remarkable? Hardly.
3) What are the chances of causes other than those that are being suggested? We are pretty sure that the lottery draw was due to random selection, because the draws are from well-designed machines, which are well protected against fraud. The chances of this set of numbers being drawn because it was rigged for them to occur is small. This probably isn't a very important consideration in the lottery. However, it is significant in the Sally Clark case. Just because something is low probability doesn't mean it has a particular cause. In the trial it was assumed that because the chance of the event happening due to cot death was low, this implied that the probability of the babies being intentionally killed by Clark was high. But it's not either/or. In that circumstance, what should have been done is comparing the chances of the babies dying through cot death with the chances of the deaths occurring as a result of murderous action by Clark. I don't have the specific figures, but I suspect the chances of a mother committing a double child murder are significantly lower than the chances of this happening through cot death.
So, while very low probabilities may seem on first sight to make an event suspicious, make sure you use your mental toolkit to test the circumstances before leaping to a conclusion.
Published on June 18, 2014 01:08