Alan’s blog

December 19, 2009

Apple’s Model-View-Controller is Seeheim

Just reading the iPhone Cocoa developer docs and its description of Model-View-Controller. However, if you look at the diagram rather than the model component directly notifying the view of changes as in classic MVC, in Cocoa the controller acts as mediator, more like the Dialogue component in the Seeheim architecture1 or the Control component in PAC.

MVC from Mac Cocoa development docs

The docs describing the Cocoa MVC design pattern in more detail in fact do a detailed comparison with the Smalltalk MVC, but do not refer to Seeheim or PAC, I guess because they are less well known now-a-days.  Only a few weeks ago when discussing architecture with my students, I described Seeheim as being more a conceptual architecture and not used in actual implementations now.  I will have to update my lectures – Seeheim lives!


  1. Shocked to find no real web documentation for Seeheim, not even on Wikipedia; looks like CS memory is short.  However, it is described in chapter 8 of the HCI book and in the chapter 8 slides [back]

September 6, 2009

Justice and mercy: al-Megrahi

Filed under: personal, political — alan @ 5:24 pm

I’ve been away most of the last two weeks with just a few days at home in between.  However, just before I was first away I heard the Scottish Justice Secretary Kenny MacAskill announce the release of al-Megrahi.  The decision was clearly hard and arbitrating the balance between justice and compassion is an unenviable task.

Whether the final decision was right or wrong, hearing MacAskill’s explanation of his decisions made me proud to be living in Scotland. Rather than bowing to the clear political pressure he was under, instead he kept his focus on what justice means in a land where compassion is at the heart of who we are.  In a world often ravaged by war and terror, suffering under human cruelty, and governed by the twins of aggression and revenge, MacAskill put himself under a  higher order and demonstrated the clear difference between a country still under the influence of its Christian past and those, from all sides, who besmirch the names of their own countries and religions by terror and violence.

Since then the grubby world of UK deals over oil and US deals over billions of dollars of compensation payments have both been aired, but it appears that MacAskill’s decision stood against pressure from all sides.

It was perhaps inevitable that the release would provoke some controversy, but disappointing nonetheless; one always hopes that integrity will triumph over knee-jerk reactions.  However, it has been especially galling to hear US voices raised in protest, a country which for so many years acted as safe haven for IRA fund raising; bankrolling the London bombings of the 1970s and beyond.  While Gaddafi supplied the weapons, the US public supplied the dollars1.  I was only young at the time, but these were vicious attacks in crowded tube trains and on the streets of London and elsewhere, designed specifically to cause maximum death and injury; and all the while, in the US, the IRA were allowed to operate freely due to political support in high places.

Obama came to power with the promise of a new attitude and a principled approach to politics, so it is doubly disappointing that he has failed this early test of principle over public opinion.  If the current White House staff cannot accept the independence of the Scottish justice system over politics, what hope in other parts of the world.


  1. Of course, while the Libyan involvement in the Lockerbie bombing and al-Megrahi’s guilt have been a matter of debate, the involvement of Libya in IRA terrorism was indisputable.   Since those days the IRA have become part of the Northern Ireland political process and Libya itself has been welcomed into the allied camp of the ‘war on terror’.  Whether in India, Israel or Ireland, yesterday’s terrorists become today’s politicians.  This makes the focus on al-Megrahi seem even more like that of a scapegoat. [back]

July 30, 2009

On the edge: universities bureacratised to death?

Filed under: academic, political — alan @ 11:25 am

Just took a quick peek at the new JISC report “Edgeless University: why higher education must embrace technology” prompted by a blog about it by Sarah Bartlett at Talis.

The report is set in the context of both an increasing number of overseas students, attracted by the UK’s educational reputation, and also the desire for widening access to universities.  I am not convinced by the idea that technology is necessarily the way to go for either of these goals as it is just so much harder and more expensive to produce good quality learning materials without massive economies of scale (as the OU has).  Also the report seems to mix up open access to research outputs and open access to learning.

However, it was not these issues, that caught my eye, but a quote by Thomas Kealey vice-chancellor of the University of Buckingham,  the UKs only private university.  For three years Buckingham has come top of UK student satisfaction surveys, and Kealey says:

This is the third year that we’ve come top because we are the only university in Britain that focuses on the student rather than on government or regulatory targets. (Edgeless University, p. 21)

Of course, those in the relevant departments of government would say that the regulations and targets are inteded to deliver education quality, but as so often this centralising of control, (started paradoxically in the UK during the Thatcher years), serves instead to constrain real quality that comes from people not rules.

In 1992 we saw the merging of the polytechnic and university sectors in the UK.  As well as diffferences in level of education, the former were tradtionally under the auspices of local goverment, whereas the latter were independent educational isntitutions. Those in the ex-polytechnic sector hoped to emulate the levels of attaiment and ethos of the older universities.  Instead, in recent years the whole sector seems to have been dragged down into a bureacratic mire where paper trails take precidence over students and scholarship.

Obviously private institutions, as  Kealey suggests, can escape this, but I hope that current and future government can have the foresight and humility to let go some of this centralised control, or risk destroying the very system it wishes to grow.

May 19, 2009

Sinking beneath the waves

Filed under: personal, political — alan @ 3:40 pm

Thanks to Pete Bagnall @ surfaceeffect for pointing out an article in George Monbiot’s Environment blog in the Guardian “Climate change displacement has begun – but hardly anyone has noticed“.  Evidently the whole population of the Carteret Islands (Google map, Wikipedia) near Papua New Guinea have had to abandon the islands due to rising sea levels.

The inundation beguns.

April 6, 2009

French subvert democatic process to pass draconian internet laws

Filed under: academic, political, web development — alan @ 7:08 am

Just saw on Rob @ dynamicorange, that the French have passed a law forcing ISPs to withdraw access based on accusations of IP infringement. Whether one agrees or disagrees  or even understands the issues involved, it appear this was forced through by a vote of 16 (out of 577) members of the French parliament at a time when the vote was not expected.  This reminds me of the notorious Shetland Times case back in the late 1990s, where the judgement  implied that simply, linking to another site infringed copyright and caused some sites to stop interlinking for fear of prosecution1, not to mention some early US patents that were granted because patent officers simply did not understand the technology and its implications2.

It would be nice to think that the UK had learnt from the Shetland case, but sadly not.  Earler this year the Government released its interim Digital Britain report. This starts well declaring “The success of our manufacturing and services industries will increasingly be defined by their ability to use and develop digital technologies“; however the sum total of its action plan to promote ‘Digital Content’ is to strengthen IP protection.  Whatever one’s views on copyright, file sharing etc., the fact that a digital economy is a global economy seems to have somehow been missed on the way; and this is the UK’s “action plan to secure the UK’s place at the forefront of innovation, investment and quality in the digital and communications industries3.


  1. See “Copyright battles: The Shetlands” @ Ariadne and “Scottish Court Orders Online Newspaper to Remove Links to Competitor’s Web Site” @ Harvard’s Berkman Center for Internet & Society. [back]
  2. and for that matter, more recent cases like the ‘wish list’ patent [back]
  3. UK Department for Culture, Media and Sport Press Release 106/08 “Digital Britain – the future of communications” 17th October 2008 [back]

February 4, 2009

home education – let parents alone!

Filed under: personal, political — alan @ 1:21 pm

It is now some years since our two daughters finished their home education, and we had few problems.  However, we  know that some home educating in other parts of the country had great problems with their LEAs (local education authorities) many of whom did not understand the laws on compulsory education and often thought that it was impossible to educate without a timetable!

We chose to home educate based partly on our own experiences of school and partly by meeting the children of other home educating families and being amazed at their maturity and balance compared to other children of their age.  While we made an explicit decision, others are forced into home education, sometimes through learning difficulties or dyslexia, sometimes through school phobia.

One woman I knew eventually decide to home educate her son when he was 14.  At 10 he became school phobic due to a teacher, who was notorious for making his children unhappy; for four years she cooperated with the local authority as they tried to get him back into school, including being sent into short periods of residential care.  It was only when it was clear that he was going to get to 16 with no GCSEs and no future that she reluctantly took him out of the school system and he eventually obtained several exams studying at home with her help.

My wife and I were fortunate in our dealings with authorities as we were obviously well educated, could write fluently and persuasively, and knew the law and our own rights inside out (and were helped enormously by the support group Education Otherwise).  However, not all home educating parents have our advantages, and the difficulties and costs of home education are exacerbated by sometimes intimidating demands from education welfare officers or LEAs.

My impression was that, during the period of our daughters’ education, things improved and LEAs better understood home education.  However, I recently heard (due to a petition on the Downing Street web site) that, I guess as part of the interminable re-hashing of all sectors of education, things are being made more difficult again by repeated reviews of the legal status of home education.

There are numerous examples of public figures from artists to US presidents1 who have been home educated and all the home educated children that I have known, although having all the pressures and problems of any child growing up, are in their various ways successfully following their chosen paths.  When so many aspects of our education system are under threat, I wonder why on earth government feels the need to meddle with things that have and continue to work well.

The petition:

We the undersigned petition the Prime Minister to to remind his government that parents must remain responsible in law for ensuring the welfare and education of their children and that the state should not seek to appropriate these responsibilities.
http://petitions.number10.gov.uk/Homeedreview/


  1. another support group home-education.org.uk have  a list of famous home-educated people [back]

November 19, 2008

The Cult of Ignorance

Filed under: academic, personal, political — alan @ 1:11 pm

Throughout society, media, and academia, it seems that ignorance is no longer a void to be filled, but a virtue to be lauded.  Ignorance is certainly not a ‘problem’, not something to be ashamed of, but is either an opportunity to learn or a signal that you need to seek external expertise.  However, when ignorance is seen as something not just good in itself, but almost a sign of superiority over those who do have knowledge or expertise, then surely this is a sign of a world in decadence.

Although it is something of which I’ve been aware for a long time, two things prompt to think again about this: a mailing list discussion about science in schools and a recent paper review.

The CPHC mailing list discussion was prompted by a report by the BBC on a recent EU survey on attitudes to science amongst 15-25 year olds.  The survey found that around 1/2 of Irish and British respondents felt they “lacked the skills to pursue a career in science” compared with only 10% in several eastern European countries.  The discussion was prompted not so much by the result itself but by the official government response that the UK science community needed to do more “to understand what excites and enthuses young people and will switch them on to a science future.”  While no-one disagrees with the sentiment, regarding it as ‘the problem’ disregards the fact that those countries where scientific and mathematical education is not a problem are precisely those where the educational systems are more traditional, less focused on motivation and fun!

I have blogged before about my concerns regarding basic numeracy, but that was about ‘honest ignorance’, people who should know not knowing.  However, there is a common attitude to technical subjects that makes it a matter of pride for otherwise educated people to say “I could never do maths” or “I was never good at science”, in a way that would be incongruous if it were said about reading or writing (although as we shall see below technologists do do precisely that), and often with the implication that to have been otherwise would have been somehow ‘nerdy’ and made them less well-balanced people.

Sadly this cult of ignorance extends also to academia.

A colleague of mine recently had reviews back on a paper.  One reviewer criticised the use of the term ‘capitalisation’ (which was in context referring to ’social capital’) as to the reviewer word meant making letters upper case.  The reviewer suggested that this might be a word in the author’s native language.

At a time when the recapitalisation of banks is a major global issue, this surely feels like culpable ignorance.  Obviously the word was being used in a technical sense, but the reviewer was suggesting it was not standard English.  Of course, ‘capital’ in the financial sense dates back certainly 300 years, the verb ‘capitalise’ is part of everyday speech “let’s capitalise on our success”, and my 30 year old Oxford English Dictionary includes the following:

Capitalize 1850. …. 2. The project of capitalizing incomes 1856. Hence Capitalization.

Now I should emphasise it is not the ignorance of the reviewer I object to; I know I am ignorant of many things and ready to admit it.  The problem is that the reviewer feels confident enough in that ignorance to criticise the author for the use of the word … apparently without either (a) consulting a dictionary, or (b) while filling out the online review form bothering to Google it!

This reminded me of a review of a paper I once received that criticised my statistical language, suggesting I should use the proper statistical term ’significance’ rather than the informal language ‘confidence’.  Now many people do not really understand the difference between significance testing (evidence of whether things are different) and confidence intervals (evidence of how different or how similar they are) – and so rarely use the latter, even though confidence intervals are a more powerful statistical tool.  However the problem here is not so much the ignorance of the reviewer (albeit that a basic awareness of statistical vocabulary would seem reasonable in a discipline with a substantial experimental side), but the fact that the reviewer felt confident enough in his/her ignorance to criticise without either consulting an elementary statistical text book or Googling “statistics confidence”.

So, let’s be proud of our skills and our knowledge, humble in accepting the limits of what we know, and confident enough in ourselves, so that we do not need to denegrate others for doing what we cannot.  Then ignorance becomes a spring board to learn more and a launching point for collaboration

July 18, 2008

Basic Numeracy

Filed under: Uncategorized, academic, personal, political — alan @ 1:09 pm

When the delayed SATS results eventually arrive, I’m sure there will be the regular navel gazing at the state of basic numeracy and literacy in UK schools. But what about those who were in primary schools 30 years ago?

This morning on BBC News Channel an interviewer was talking to an economist from the City. They were discussing the reduction in bank lending (a fall of 3% during June, with 32% year-on-year drop ) and its implications for the housing market and the economy in general. The interviewer asked if it was accelerating and the economist agreed, mentioning how the year-on-year drop had gone from 10% in one quarter to 20% in the next and now over 30%.

Of course these figures are all based on a year-on-year average that includes the period before the credit crunch began last autumn and in fact are consistent with a steady linear fall of around 3% per month for the 9 months since the Northern Rock collapse. That is an alarming rate of fall, but not evidence of an accelerating fall.

This apparent lack of basic numeracy reminds me of a discussion some years ago with senior financial executives who dismissed any attempt to quantify projected company income as ‘just numbers’. Having lost money in the Northern Rock collapse I wonder whether the executives in Northern Rock and other banks had a similar attitude!

I know it is easy for me as a trained mathematician to hold up my hands in horror, but still these are people who are playing not only with their own livelihoods, but also the lives of their investors, ordinary people and even the state of the entire economy.

We do have a peculiar attitude in the UK where it is acceptable for highly educated people (including many computer scientists) to just ‘not do math’, and furthermore say so with a level of pride, whereas to say the same about reading would be unconscionable. Other European countries seem far more numerate, so this seems to be a cultural phenomena not an intellectual problem.

I have heard that one of the best predictors of educational success is if a child is willing to put off a treat for another day. Mathematics does require doing work at one stage to see benefit maybe many years later, but this to some extent runs counter to the increasingly common expectation of students to want to know fully and completely how something is useful to them now.

Maybe the answer is for schools to have lessons in leaving sweeties until tomorrow … and perhaps remedial lessons for City economists who matured during the Thatcher years.

March 22, 2008

Broken Soldiers, Tibetan Monks, and the Love of God

Filed under: personal, political — alan @ 11:56 am

A few weeks ago Nad took part in a fund raising event for injured forces; on the television this week I watched “Battle for Haditha” recreating the events leading to a massacre of Iraqi civilians by US Marines and “The Passion” recreating the events leading to the first Easter and the crucifixion of Jesus; and in the news are the reflections of 5 years of bloodshed, occupation, freedom, and fledgling velocity (choose your own words) in Iraq and of rioting in Tibet.

Look around you, can you see
times are troubled, people grieve
see the violence, feel the hardness
all my people, weep with me

Kyrie Eleison, Jody Page Clark

pulling a plane for charityNad maintains the website for ForcesHospitalCharity.org, which was set up by the emergency services at Birmingham Airport in response to seeing the injured soldiers brought back from Afghanistan and Iraq. The charity does not in any way support the forces in the field, or politically support the conflicts themselves, but is purely about humanitarian aid for those people who have returned, often with severe injuries, and for their families. However, despite this Nad has been criticised by those who ask “question why (he), a Muslim, (has) chosen to support a charity that attempts to aid the very soldiers that are killing our brothers and sisters abroad.” (see Nad’s blog entry).

In the “Battle for Haditha” both US Marine’s and Iraqi ‘insurgents’ were shown as people who in different ways cared and protected their own. It is natural and human to care for those close to us, who share ties of family, nationality, race or religion. Those closest to us, our children, parents, friends, have first place in our affections and often a special call on us. This human love is a good thing. But is not the end of things.

I was disappointed that the Dalai Lama, whilst outspoken against Chinese actions against Tibetan rioters, was relatively muted in addressing Tibetans themselves. The riots there began with Tibetan crowds attacking ethnic Han Chinese and even Muslim Hui1. The targets here were not police stations and public buildings, but shops, homes and ordinary people. It seems the Chinese held back for fear of international sentiment while ordinary people were killed or made homeless. Then when the Chinese security forces were unleashed they struck hard … hitting back at those who had hurt their own.

Dalai LamaIn the Dalai Lama’s press release he says that “a form of cultural genocide has taken place in Tibet”, “the Chinese government discriminates against these minority nationalities”, and in their response to the situation the authorities “believe that further repressive measures” are the way forward – this is I am sure all true. However, in contrast, about the rioters themselves, the Dali Lama merely says “the demonstrations and protests taking place in Tibet are a spontaneous outburst of public resentment built up by years of repression”.

Why is it so hard for him to denounce the ethnic attacks of Tibetans themselves as well as the repression of the Chinese authorities? But I know I am the same, overlooking the understandable failings of those close to me or those I support, whilst feeling righteous anger over the way they, the other, treat my own kind.

The Dalai Lama shows a deep, and human love for those he is responsible for.

In Gethsemane, one of Jesus’ friends, tries to defend him when temple guards come to arrest him2. The unnamed disciple (I always assume Peter), strikes with his sword and cuts off the ear of the High Priest’s slave. Jesus admonishes his followers and heals the slave. On other occasions Jesus talks with, shares food with or heals Jewish Priests, Roman Centurians, lepers and prostitutes – friends and enemies, the unclean and the immoral,

In a recent blog “A Charter for Compassion“, Nad discusses a TedTalk by Karen Armstrong on the Golden Rule. This comes in many forms, some more about harm “Hurt no one so that no one may hurt you”, some about behaviour “do unto others as you would have them do unto you”3. Most personal is the form from Leviticus “Love your neighbour as yourself”.

But who is my neighbour? My family, friends, the Welsh (maybe even the English), people I work with, the person next door, in this Internet age perhaps FaceBook friends, or people who add my photos as Flickr favourites? Jesus is asked this and in response tells the story of the “Good Samaritan”. In school I recall we wrote variants of this where the Jew and the Samaritan were replaced by rival football teams, or Catholics and Protestants in Northern Ireland. This story of the Samaritan caring for someone who would have despised and persecuted him goes beyond human love, it is the love of God.

If the story were told today who more likely that an injured British soldier and young Muslim man.

Those who criticise Nad, show that very human love, just like the Dali Lama, just like I see so often in myself – caring for those close to us, “our brothers and sisters” in race, religion or political beliefs. In working beyond that, Nad shows no less than the Love of God.


  1. see Guardian report
    Oh my God, someone has a gun …‘ [back]
  2. Matt. 26:51, Mark 14:47, Luke 22:50 [back]
  3. see Wikipedia’s page on the “Ethic of reciprocity” for a wide variety of versions fo this from nay cultures and religions [back]

March 2, 2008

the electronic village shop – update and kit

Filed under: HCI and usability, academic, political — alan @ 7:58 pm

I forgot last week when I wrote my post “the electronic village shop – enhancing local community through global network” that Fiona had mentioned a blog, Silversprite, from the Outer Hebrides that mentioned the flip side of this; in a post “Tesco comes to the Outer Hebrides“, he mentions the potential conflicts between Tesco online and village shops. It is interesting that Tesco does not itself deliver direct, but you can give a local delivery firm as your drop off point and they do the last leg of the delivery … of course this delivery point could be the local shop!

I also remembered after that some years ago (2002) I had an email enquiry from someone who had found a reference to the electronic village shop in one of my talks. He was wondering how to revitalise his own village shop which was about to close and asked if I had any advice. The following is edited version of my reply where I pondered on what was possible as a single shop without buy-in from one of the big franchise chains:

(more…)

Next Page »

Powered by WordPress