Chris Worfolk's Blog


Dublin

September 3rd, 2012 | Photos, Travel

To make the most of the bank holiday weekend, we headed over to Dublin. Despite having been all round Europe, I had never been to Ireland, so it seemed like good choice for somewhere to visit.

While there we made it round the Tall Ship Festival, Trinity College and the Book of Kells, Christ Church, Dublin Castle, the Wax Museum and the National Library. Unfortunately, we didn’t make it to the National Museum or Natural History Museum as they are closed on Mondays (it wasn’t a bank holiday in Ireland).

We also took in the nightlife at Temple Bar with a few different restaurants and pubs around that area, as well as the street artists. We eventually settled in at really cool place named the Bison Bar that had saddles for stools and bison and dear heads on the walls, as well as a superb range of whiskey (not that I benefited from such a collection).

Best moment? Definitely meeting SpongeBob at the wax museum!

It’s a great city, and well worth a visit, though given it has a flight time comparable with Paris, and I found Paris more beautiful and about the same price, I think I would opt to head back to the continent for a short break.

JavaScript’s querySelector

September 2nd, 2012 | Programming

jQuery has an amazing set of selectors, but what happens if you don’t have access to jQuery?

It happens, especially if you’re writing the automated tests or working within an existing framework and don’t necessarily have control over the content of the page. Luckily, you don’t actually need jQuery!

All modern browsers support the use of querySelector. When I saw all modern browsers, I even include Internet Explorer which added basic support for it in 8 and full support in 9. You use it like this.

document.querySelector(“p.introduction”);

This works just like jQuery – selecting all paragraph tags with the class introduction.

Airport security

September 1st, 2012 | Religion & Politics, Thoughts

I’ve said it before and I’ll say it again – airport security should be relaxed.

Flying back from Dublin recently, we arrived at Dublin airport and joined the queue to pass through to the departures lounge – a queue that would take us 40 minutes to get through. That is really long and irritating. But often, these queues can be even longer (though in fairness, often shorter too).

Of course you can come back with “but you can’t put a price on human life”, but this is simply nieve and we all know you really can. For example, a million people a year die on the roads and we could reduce this by setting the speed limit to 20 miles per hour on every road everywhere. But this would be too inconvenient, we would rather let people die is the harsh truth.

So, putting emotional arguments aside, why should we relax airport security?

Well, first off, lets remember why we shouldn’t – if we did, more terrorists would get through with more bombs, and people would die. That is a good reason for airport security!

But there has to be a trade off between the lengths taken and the success. So my question is, have we got the levels quite right. I would argue that perhaps we have not.

Firstly, there is a time cost. 40 minutes for everyone passing through an airport is a long time. Given that the average person has around 3,000,000 (3 million) hours left on this Earth, that means that for every 6 million people that pass through airport security, we’ve essentially wasted a human life.

It isn’t as simple as time vs life as the emotional argument would have you belief – when it comes down to it, length queues in airport security take away small parts of people’s lives – and these quickly add up to entire lives.

London’s airports see 134,000,000 people pass through it each year. Based on our previous maths that is 22 people’s lives per year spent on airport security. That is just one city, albeit the busiest in the world in terms of air passengers – internationally, we’re losing hundreds of lives per year.

So terrorists would have to kill everyone on board a jumbo jet (or several smaller planes) at least once a year to make the time we spend on airport security cost effective.

Secondly, we have to wonder how effective these security checks are. Most terrorist plots are stopped by homeland security forces in the planning stage, airport security stops very few – indeed, security expert Bruce Schneier argues that a lot of the security added in recent years does absolutely nothing, and is merely a “theater” designed to make us feel safer. Is that the kind of system that saves a jumbo jet full of people, every year?

It is also arguable that it simply doesn’t work – even in a post 9/11 world we still have the shoe bomber and the printer cartridge bombs – we’re more paranoid than ever before and people are still getting bombs on our planes.

Finally, it is also worth asking what ideological cost we are paying for these security checks.

We have to remember that the aim of a terrorist isn’t to blow up an aeroplane – that is merely a means to an end, and the end is, as is suggested by their name, causing terror.

Now, I don’t know about you, but when we’re all too scared to let a small child take a bottle of water onto a plane, in my book that suggests that we’re pretty fucking terrified.

Like many of you, I’m sick and tired of hipsters wearing “keep calm and…” t-shirts. But what is worse is that the whole meaning of them has been lost. As you may well know, the original meme comes from British posters that said “keep calm and carry on” to tell the public what to do during the Second World War.

That is what London does best – when the terrorists struck on 7-7 and blow up our trains and our buses, what did Londoners do? They stuck two fingers up at the terrorists, got right back on those buses and showed them that we were not going to be scared of them.

Air transport however, has taken no such approach. As news stories about parents forced to drink baby milk to show it wasn’t actually liquid explosive have shown, there is literally no substance that we cannot be scared of.

Seems a high price to me.

Luckily, of course, you can buy a bottle of water once you have passed through security, for twice the price. But that is a different blog post.

So the situation is this.

In order to stop terrorists we’ve banned every single substance we can think of that could possibly be used as an explosive, even though they’re still getting explosives onto the planes and we’re using up hundreds of people’s lives a year in a line of defense which may or may not be saving any lives.

Maybe it is time that we, at least reviewed, the situation.

Ulysses

August 31st, 2012 | Books, Distractions

Being in Dublin and going round the generically tourist bits, you can’t help but notice there is a lot of stuff about James Joyce – he is one of the major literary figures in the country’s history after all.

So having some time to kill while we waited for our flight back, I decided to attempt to read Ulysses. I use the word attempt not to suggest I was trying to read it all in one sitting, but to suggest I was seeing if I could read it at all. After all, Elina had said she struggled, and her language skills are significantly beyond my own.

I’ve so far made it through the first part, of which there are three, but the first is much shorter. Even that has been hard going – I had to head over to Wikipedia at regular intervals to check my understanding matched up with theirs! I seem to be roughly following though, so all is well.

Digging to the roots

August 30th, 2012 | Religion & Politics, Thoughts

I think sometimes, we forget what the problem with a diversity imbalance is.

Take the example of students studying psychology. As of 2005, men made up 28% of students starting or continuing a degree; women made up the remaining 72%. On the face of it, this is an inequality issue. Why is it that men aren’t studying psychology? Are we being discriminated against, victims of stereotype threat, perhaps?

But it might simply be naive to assume that it is because of discrimination. Maybe it is an entirely benign reason behind the gender gap. Maybe it’s just a coincidence, maybe it’s just that men are less interested in psychology than women.

In that case, there would actually be no inequality issue – after all, inequality is about providing everyone with equal opportunities, not about forcing everyone to be the same. Suggesting that there is a problem, merely because the diversity of a particular field doesn’t exactly match the diversity of society, needs a dose of our old friend “correlation doesn’t apply causation” – and how many times have we each had to stress that to a religious person?

The reason that we often consider these issues a problem is that a lack of diversity in a particular field is usually indicative of a problem – such as discrimination- that needs to be dealt with it. But it’s important to remember that a lack of diversity isn’t inherently an inequality issue.

Converting CVS to Git, with branches

August 30th, 2012 | Life, Tech

There are quite a number of tools to convert a CVS repository to a Git repository out there. However, most of them don’t seem to be able to copy over the branches properly. A work around is to convert it to Mercurial first, then convert it to Git.

In this example I’m using a repository called RedDog.

First, we need to get Mercurial on the system.

yum install mercurial

Next we need to add the convert extension to the .hrc file. This might be a global file, or might be in your home directory, can’t quite remember.

[extensions]
hgext.convert=

Check out from CVS and convert to Mercurial.

cvs checkout RedDog
hg convert RedDog

This will create a Mercurial repository called RedDog-hg. Now we need to get hold of Fast Export.

git clone git://repo.or.cz/fast-export.git

Once we have the software we can initialise a new Git repository that we’re going to use and then CD into the folder.

git init RedDog-git
cd RedDog-git

Run the Fast Export tool, specifying the location of the Mercurial repository.

../fast-export/hg-fast-export.sh -r ../RedDog-hg

This will migrate everything into your new Git repository. If you run an ls -a you should see the .git folder, which you may want to rename to RedDog.git (something.git locations are actually just .git directories).

You may optionally also want to do a check out into that folder.

git checkout HEAD

However, you don’t have to – you can begin using it remotely without doing a local checkout.

In the public interest?

August 29th, 2012 | Religion & Politics, Thoughts

Recently, The Sun broke ranks and published naked photos of Price Harry in Las Vegas.

The Sun claimed that the pictures are in the public domain, so they might as well print them. Which, I think most of us can agree, is a really rubbish excuse for breaching someone’s privacy.

Their other defence was to suggest that it was in the public interest to see naked pictures of Prince Harry.

Now, perhaps I am a little out of touch with the old generation, but I utterly fail to see how someone being naked at a party in Las Vegas is in the public interest. He might be third in line to the throne, but first in line to the thrown is Prince Charles – a man who supports homoeopathy and suggested he should be defender of the faiths, even though the title defender of the faith was specifically given to Henry VIII for attacking other religions.

More importantly, though, public interest is an important defence. Sometimes you need to break the rules because it’s important for the media to support something – take the New York Times publishing some of the information Wikileaks released about the US military gunning down innocent civilians for example.

Using it for this kind of nonsense (naked photos of Prince Harry) is a real problem because it weakens the argument when newspapers actually need to publish something that is in the public interest, and hands the government a loaded weapon when it comes to shooting down the need for a public interest defence.

The Sun has been journalistically irresponsible. But what should we expect from the same scumbags that shat all over 168 years of British newspaper history because it turned out they were doing very illegal things.

A reluctant hero

August 28th, 2012 | Science, Thoughts

Having just touched down in Dublin (not bragging, just sets the story up…), I’m saddened to hear that Neil Armstrong, the first man to ever walk on the Moon, has died.

Tributes flooded in from all corners and as you would imagine, Twitter was awash with people talking about how sad it was to hear. All of us, despite many of us not even being born at the time, know the phrase “one small step for man, one giant leap for mankind”.

But despite all that, I’m going to suggest that Armstrong wasn’t actually the hero I wished he had been.

He was the first man to walk on the Moon. That’s incredible! As my friend Norman wrote, “landing on the moon was probably man’s greatest ever achievement.” It was an event that brought the world together – despite it’s inspiration being a metaphorical war that was driving the two dominant ideologies of the world, apart.

But Armstrong almost never made public appearances.

The man was a hero – we all looked up to him as a real life superhero, someone who had actually gone and walked on a different planet (I know the Moon isn’t a planet, but it sounds more effective to use the word).

His words, his actions, his public appearances could have inspired a new generation to pursue a space programme with just as much zeal as we fought to get to the Moon. But he didn’t. He shrank away from the spotlight and rarely talked about his experiences.

That isn’t to say the reason we haven’t walked on other planets is his fault. That would be ridiculous – the problem was primarily the race for the Moon was spurred on by a clash of political ideologies and once capitalism had won, there was no justification for such a emphasis on the space race.

But I think it’s a shame that Armstrong never became the hero he should have been.

Exam results

August 27th, 2012 | Thoughts

Yes, it’s that time of the year again when we compare exam results to previous years.

It seems silly. If the exam results get better there is a big news story about how the exams have got easier, if the results get worse, there is a big news story about how we’ve let an entire generation down. What do they want, exactly the same results every single year?

Actually, that is exactly what I suggested last year. Standardised exams are really for comparing people against each other (if they were for the benefit of those taking them, we would personalise, or destandardise them), so why not just hand out a certain amount of each grades. It also avoids many other issues – but you can read last year’s post for the full story.

According to the BBC News story, they are also changing the way GCSEs are assessed.

Modular GCSEs are being dropped in England so that pupils starting GCSE courses this September will have to sit all their exams at the end of the course.

It has been suggested before that the modular system is partly responsible for the gender gap in education so it will be interesting to see how this change affects it in years to come.

Mystic Moon

August 26th, 2012 | Distractions

We went for a wander round the newly renovated Central Arcade on Briggate. Turns out the Woo pushers have already moved in their and opened a shop named Mystic Moon. They even do tarot readings.