The Weekly Rage

Every week I listen to the Sunday programme on Radio 4, largely through inertia. Most weeks it manages to wind me up. I was a bit worried that I may be repeating myself here, so regular is the rage that I thought I must have written about it before. It turns out I have, but on a different topic.

The specific cause of my ire this week is the Church of England, the Equalities act and the inadmissibility of gay bishops. Forced by the Equality Act 2010 the Church has sought legal advice on how it should treat its gay clergy, it turns out they think that they may be obliged to accept gay bishops but that they can demand that they are celibate. You can read the BBC report here.

Why should this concern me, as a British atheist? Several reasons:

  • the Church of England is an established church, it takes (unelected) part in our legislation through the Lords Spiritual, it has a special position in teaching our children;
  • the Church of England claims moral authority, it specifically claims that it’s views on morality are superior to mine because they are faith-based. See the Bishop of Oxford’s comments this week on the Today programme;
  • I am ethnically Christian and English, so their position reflects badly on me;
  • the church’s position puts us all on shaky ground when we argue against inequality in other communities.

The Church could take a principled position that any group should be able to follow it’s faith: that the BNP should be allowed to exclude non-Caucasians from their number, for example. It could take the principled position that it should be subject to the same laws as the rest of us, without exemptions. It choses to do neither of these things, it choses instead to lobby for exemptions from the law and work out the minimum they can get away with in complying with that watered-down law.

What is the Church trying to tell us through this position? That the gays are OK, but not for them and not for positions of power?

Can you imagine a company, such as the one that I work for, demanding of it’s employee’s that they not only reveal their sexual orientation but also their sexual activity and if they confessed to the wrong sort of sexual activity they should be denied promotion?

“Ridiculously long vacations”?

Lord Adonis, former education minister, is reported here as saying universities should:

…just abandoning these ridiculously long vacations … That only really makes sense as far as I can see if you want to travel the world or you need to get a job…

This is to misunderstand what happens during the long university vacation – the teaching staff, who are also research staff are getting on with doing research or, more painfully, trying to get funding for research. His point is not entirely without merit: universities have a distinctly schizophrenic attitude to teaching. If, as I have, you have applied for a number of lectureship positions you will learn that the time in interview dedicated to discussing your teaching experience, aspirations and ideas is approaching zero. Status in a university department depends largely on your research achievements, not your teaching achievements. This means there is scope in the market for universities that make teaching their priority, rather than research.

Book Review: The Visual Display of Quantitative Information by Edward R. Tufte

 

tufteThe Visual Display of Quantitative Information” by Edward R. Tufte is a classic in the field of data graphics which I’ve been meaning to read for a while, largely because the useful presentation of data in graphic form is a core requirement for a scientist who works with experimental data. This is both for ones own edification, helping to explore data, and also to communicate with an audience.

There’s been something of a resurgence in quantitative data graphics recently with the Gapminder project led by Hans Gosling, and the work of David McCandless and Nathan Yau at FlowingData.

 

The book itself is quite short but beautifully produced. It starts with a little history on the “data graphic”, by “data graphic” Tufte specifically means a drawing that is intended to transmit data about quantitative information in contrast to a diagram which might be used to illustrate a method or facilitate a calculation. On this definition data graphics developed surprisingly late, during the 18th century. Tufte cites in particular work by William Playfair, who was an engineer and political economist who is credited with the invention of line chart, bar chart and pie chart which he used to illustrate economic data. There appears to have been a fitful appearance of what might have been a data graphic in the 10th century but to be honest it more has the air of a schematic diagram.

Also referenced are the data maps of Charles Joseph Minard, the example below shows the losses suffered by Napoleon’s army in it’s 1812 Russian campaign. The tan line shows the army’s advance on Moscow, it’s width proportional to the number of men remaining. The black line shows their retreat from Moscow. Along the bottom is a graph showing the temperature of the cold Russian winter at dates along their return.

800px-MinardInterestingly adding data to maps happened before the advent of the more conventional x-y plot, for example in Edmund Halley’s map of 1686 showing trade winds and monsoons.

Next up is “graphic integrity”: how graphics can be deceptive, this effect is measured using a Lie Factor: the size of the effect shown in graphic divided by the size of the effect in data. Particularly heroic diagrams achieve Lie Factors as large as 59.4. Tufte attributes much of this not to malice but to the division of labour in a news office where graphic designers rather than the owners and explainers of the data are responsible for the design of graphics and tend to go for the aesthetically pleasing designs rather than quantitatively accurate design.

 

Tufte then introduces his core rules, based around the idea of data-ink – that proportion of the ink on a page which is concerned directly with showing quantitative data:

  • Above all else show the data
  • Maximize the data-ink ratio
  • Erase non-data-ink
  • Erase redundant date-ink
  • Revise and edit.

A result of this is that some of the elements of graph which you might consider essential, such as the plot axes, are cast aside and replaced by alternatives. For example the dash-dot plot where instead of solid axes dashes are used which show a 1-D projection of the data:

ddp

Or the range-frame plot where the axes are truncated at the limits of the data, actually to be fully Tufte the axes labels would be made at the ends of the data range, not to some rounded figure:

range

Both of these are examples are from Adam Hupp’s etframe library for Python. Another route to making Tufte-approved data graphics is by using the Protovis library which was designed very specifically with Tufte’s ideas in mind.

Tufte describes non-data-ink as “chartjunk”, several things attract his ire – in particular the moiré effect achieved by patterns of closely spaced lines used for filling areas, neither is he fond of gridlines except of the lightest sort. He doesn’t hold with colour or patterning in graphics, preferring shades of grey throughout. His argument against colour is that there is no “natural” sequence of colours which link to quantitative values.

What’s striking is that the styles recommended by Tufte are difficult to achieve with standard Office software, and even for the more advanced graphing software I use the results he seeks are not the out-of-the-box defaults and take a fair bit of arcane fiddling to reach.  Not only this, some of his advice contradicts the instructions of learned journals on the production of graphics.

Two further introductions I liked were Chernoff faces which use the human ability to discriminate faces to load a graph with meaning, and sparklines – tiny inline graphics showing how a variable varies in time without any of the usual graphing accoutrements: – in this case one I borrowed from Joe Gregorio’s BitWorking.

In the end Tufte has given me some interesting ideas on how to present data, in practice I fear his style is a little too austere for my taste.There’s a quote attributed to Blaise Pascal:

I would have written a shorter letter, but I did not have the time.

I suspect the same is true of data graphics.

Footnote

Mrs SomeBeans has been referring to Tufte as Tufty, who UK readers of a certain age will remember well.

Choosing to die

Terry Pratchett was recently diagnosed with Alzheimer’s disease and has made a programme, Choosing to die, about his enquiries into assisted suicide. It’s pretty difficult viewing: Pratchett visits the widow of a Belgian writer who, like him, had Alzheimer’s disease and had chosen to end his life. He visits a former taxidriver in a hospice with motor neuron disease, who had chosen not to die. The bulk of the programme is spent with two men who went to the Dignitas clinic in Switzerland, where they were helped to die. Andrew, only a couple of years older than me, with multiple sclerosis and Peter, born in 1939, with motor neuron disease. The death of Peter is shown in full. It’s not this that is my abiding memory though, that will be of the courage and dignity of the wife and mother of these two dying men. Neither woman wants their loved one to go.

The striking thing for me was how both men appeared to be heading off to Switzerland before their time, for fear of not being able to go when they felt they had to. The current legislation seems to be wilfully sadistic, obliging early death for those that chose whilst holding out the threat of prosecution to the family.

The Swiss are allowed to be helped to die at home, whilst foreigners go to die in a small blue apartment in an industrial estate. Incongruously the shallow steps to the front door are protected by black and yellow safety tape: because if you’re going to die you don’t want to fall over and crack your head open. This seems a great pity since in the background you could see the snow clad Swiss Alps, a glorious place to die.

A number of members of my close family have died over the last ten years. I don’t think we’re an unusual family, we’ve discussed assisted dying, often in the aftermath of a death. My paternal grandparents both died in their nineties in retirement homes, very much reduced from their previous vigorous selves, moving gradually to death. My maternal grandparents both died at home, quite suddenly. My stepfather died at home in a hospital bed, cared for by my mum with the support of nurses. He’d known he was going to die since cancer stopped him eating a couple of months earlier. Mum is the bravest person I know.

The consensus in the family appears to be for assisted dying but I think we all know privately that as the law stands now it will not happen. We will be left to face what lingering or sudden deaths nature serves up to us, in the knowledge that modern medicine has got so much better at keeping us alive but not necessarily living.

This is one of the few places where my atheism collides with the established church: any time the right to die is discussed it appears to be a Christian or one of the Lords Spiritual who is called upon to make the case against: often citing the idea that my life is a gift from God, and that I have no right to dispose of it. Clearly for an atheist this is an argument discarded in a moment.

I may die in an accident tomorrow. I may hang on to the absolute end waiting to see what is over the the next ridge. Or maybe, when I am old and have had enough, I’ll want to go at a time and place of my choosing.

How I choose to die is none of your business – I won’t presume to choose for you.

How do I setup my own website?

A post in the style of random notes today: I’ve been making a new website for The Inelegant Gardener – there’s a teaser here, I’ve done this before for the Chester Liberal Democrats. I thought it might be handy to provide a compact description of the process as a reminder to me and a warning to others…

The steps are as follows:

  1. Getting a domain name
  2. Finding a web host
  3. Making your website
  4. Going live

1. Getting a domain name

The domain name is the www bit. You can put your domain name registration with your web host but conventional wisdom is that it’s better to separate the two. I chose http://www.just-the-name.co.uk/ based on a twitter recommendation. Once you’ve chosen your domain name, you get access to a simple control panel which can be used to redirect your domain name to another site (such as this one), set up e-mail redirection and so forth. Mine gives me access to DNS Settings but I left these alone. When the time comes you’ll need to set the names servers to those provided by your web host.

2. Finding a web host

A web host is where your website will live. In the end I settled with EvoHosting for a few of reasons: they have live status updates for their servers, they have a twitter account and mentions of evohosting on twitter do not reveal any frustrated users, a search for the term “evohosting is crap” reveals no worrying hits in Google! They’re also reassuring slightly more expensive than the cheapest hosting solutions which seem to suffer from the “X is crap” syndrome. I selected a scheme that allows me to host several sites.

3. Making your website

You can make a website using WordPress – the blogging software. Building a website is a question of managing content – and for a small site WordPress does this nicely and is free. You don’t have to be blogging to use it – you can just make a set of static pages. I understand that for bigger sites Joomla is good. WordPress is a combination of a PHP application talking to a SQL database. I found a passing familiarity with SQL databases quite handy, not so much to write queries but just to know the basics of accounts and tables.

WordPress handles the mechanics of your website, what goes where, posting and making pages whilst the “theme” determines appearance. I’ve used the Atahualpa theme for my two websites so far – it’s pretty flexible, although if you want to put anything top-right in the logo area I’d find a good reason not to – I’ve spent days trying to do it to my satisfaction! For debugging your own website and snooping into others the developer tools available on all major browsers are very handy. I use Google Chrome, for which the Window Resizer and MeasureIt extensions are useful. Window Resizer allows you to test your site at different screen sizes, and MeasureIt measures the size in pixels of screen elements.

I’ve found Paint .NET useful for wrangling images, it’s either the old Windows Paint program on steroids or a very limited Photoshop.

For my efforts I have created the website locally, on my own PC, before transferring it to web hosting. I’m not sure if this is standard practice but it seemed a better idea than potentially thrashing around in public as you learnt to build your website. To do this I installed xampplite, this gives my PC web serving capabilities and provides everything needed to run WordPress –except WordPress which you need to download separately.

WordPress can be extended by plugins, and I’ve found I can achieve most the functionality I’ve wanted by searching out the appropriate plugin. Here are a few I’m using:

  1. Contact Form 7 – to create forms
  2. Drop cap shortcode – to easily add drop caps (big letters) to posts and pages.
  3. Dynamic Widgets – to put different widgets on different pages
  4. NextGEN Gallery – more advanced photo gallery software
  5. Simple Page Ordering – allows you to shuffle the order pages appear in your static menus, which is a bit tricky in basic WordPress
  6. WP-dtree – a dynamic tree structure for showing the blog archive, as found in Blogger.
  7. WP Maintenance Mode – for hiding your site whilst you’re fiddling with it!
  8. WordPress Mobile Pack – a switcher for making your blog more readable if someone arrives using a mobile browser

Since WordPress is a very heavily used platform there’s a lot of help around, you identify WordPress sites by looking in the site footer, or viewing the page source (WordPress sites tend to have references to files starting “wp-“)

4. Going live

I must admit I find the process of moving a site from my own machine to a web server the most complicated bit of the process – you can see the instructions on the WordPress site here. The basic idea is to change the base URL for your website to the target address then copy the pages (zipped them all up before upload) and the database (using phpmyadmin import/export) of the WordPress installation to the web host. If you want to keep your local copy running then you need to take a copy before changing the base URL and load it back up once you’ve done moving. Things that caught me out this time: I had to use MySQL to create a database into which to import the database, and it wasn’t enough to create a user, I also needed to attach it to the appropriate account, and I had to save the settings on the permalinks for pages to show up. Finally, I also had some typed links in my website, which needed manually adjusting (although you can do this automatically in MySQL).

I wish I knew a bit more CSS, my current technique for fine tuning appearance involves a lot of rather ignorant typing, a bit more knowledge of good graphic design wouldn’t go amiss either!

This is the way I did it – I’d be interested in any suggestions for improvements.