Dec 052009
 

So a few days ago I was idly looking at the “StatPress” page on my site to look how few people were visiting to see something rather surprising :-

Graph of accesses

What was happening here ? Have I been slashdotted ? Is my income from those silly ads down the side going to shoot through the roof to a level worth letting a certain company send me the payments ?

No. Nothing so exciting. All (well, the overwhelming majority) were from an MSN robot – presumably indexing this site. Well fair enough, but why so many accesses ? It is not as if my site has much on it – nowhere near the nearly 100,000 page fetches they tried. A closer look at the Apache logs shows that the msn robot repeatedly fetched many pages including one page 1,300 times!

Sounds like Microsoft has a bug somewhere.

Nov 282009
 

Because of a little “issue” with Bibble which causes that software to cease responding when navigating the browser whilst it is updating the icons, I had to come up with a different way of storing my raw images. Or at least a different “shadow view” that would allow Bibble to work more reliably. I had been thinking on what would be the best way (for me!) of doing this for a while now, and this morning spent about 45minutes knocking up some code to do what I wanted.

I chose to use the “date” contained within the Exif information within each file to produce a directory structure along the lines of “/some/place/YYYY-MM-DD/original-name-of-file” with the file at the bottom level being a symlink back to the original file. I chose not to move any files around as I could more easily fix things if the code I had written did Something Stupid. I chose not to copy any files, as I did not want to duplicate some 100Gbytes of RAW files if I did not need to — and I did not as symlinks can do the job perfectly well.

As for the choice of the date format, well I have long preferred the ISO date format in places where a conventionally human readable date was not necessary or would be inconvenient. The ISO date format is useful in that it is not subject to misinterpretation as date formats such as “DD-MM-YY” and “MM-DD-YY” are, and it happens to sort easily with the ls command – which is much more useful than you would think. If it looks a little odd, just start using it and get used to it.

The code itself is available here if you really want to get hold of it (I wouldn’t bother if I were you – it’s just something knocked up in a rush that works ok for me).

The interesting thing about the new “repository” was that it was easy to produce a table of dates and the number of photos taken on those dates :-

cd /media/photos/raw.dated
for i in $(echo *)                        
do
  echo -n "$i "; ls $i/* | wc -l
done

The output is long enough and boring enough (for anyone other than me) that I will not include it here. But it is relatively easy to turn this into a graph using ploticus :-

ploticus -prefab chron \
  -o photos.png \
  -png \
  data=dates.dat x=1 y=2 \
  datefmt=yyyy-mm-dd \
  color=blue \
  echodata=no \
  xinc='1 year' \
  stubfmt='MMM YY'

This produced a graph similar to :-

Photo Frequency

I seem to be taking more photos over time.

Nov 262009
 

It seems that the government is planning on teaching children from the age of 5, that domestic abuse is wrong. And about time too! There is an absolutely horrific level of domestic abuse in the UK, which may or may not be better than elsewhere, but that is not what this is about.

Some parents are complaining that it is their job to teach their children about such things. Well obviously not all parents are doing their job properly, or the figures for domestic abuse would be far better! So this is a good initiative, or is it ?

Apparently the lessons are to emphasise that boys are to treat girls with respect and that girls are to expect respect. The reason for this sexism ? Because the overwhelming number of victims of domestic abuse are women. Well that is certainly true; the BBC article claims that in 2008/9 there were 293,000 incidents of domestic violence reported in England and Wales with 77% being against women. That leaves 23% being against men giving a total of 68,000 incidents.

Let us change the sex of those 68,000 victims of domestic violence to women. Would 68,000 female victims of domestic violence justify these lessons ? I would say so, so surely the lessons should also teach that abusing men is also wrong?

Another thing about those statistics is that it is known that domestic abuse is subject to a huge level of under reporting. With that in mind, and bearing in mind that women have been encouraged to report domestic abuse, it is perfectly possible that the statistics given above are inaccurate not just in the size of the problem, but in the ratio of victims – it may well be that men are as likely to be victims of domestic abuse as women! Perhaps you do not agree, but we simply do not know.

If we teach children the lessons exactly as expressed, children will learn a second lesson from them – that whilst girls should have respect, boys do not need be given respect. It is a short distance from that to accepting domestic abuse against men.

Domestic abuse against anyone is unacceptable.

Nov 152009
 

I was surprised a number of years ago when having a pleasant argument with someone online when he claimed that the English/British government was a theocracy. It had never occurred to me that the English government could be called a theocracy, but with the monarch being both head of state and head of the state religion there is a grain of truth to it.

Before going on, I will explain that although I am going to use “English” all the way through this, in later periods of history it should perhaps be “British”. But for convenience and because much of the points become well before the British union, I will use “English”. That’s not to say the Welsh and Scottish are irrelevant; just that bringing consideration of them in, will confuse the whole issue

As mentioned before the English monarch is both the head of state and the head of the Church of England. So a theocracy then. Well, no. Anyone who argues such is ignorant of the way in which titles of nobility work – whilst a single person may hold multiple titles, they are distinct and separate. For instance, the current Queen is correctly known as the “Lord of Mann” on the Isle of Mann, and the “Duke of Normandy” in the Channel islands. Neither are part of or will ever be part of the English monarchy. It is theoretically within the power of the holder of a title to gift that title to someone else – for instance it would in theory be perfectly possible for the Queen to lose the title “Lord of Mann” in a drunken poker game.

And yes such things have been known to happen, although if it were to occur in modern times it is likely to cause an outbreak of republicanism.

Another possible source of the idea that England is a theocracy are the “Lords Spiritual” who are 26 bishops and archbishops of the Church of England (or previous to Henry VIII’s reorganisation of government the “Church in England”) who sit in the House of Lords. And indeed if there were just 26 members of the House of Lords, and the House of Lords actually comprised the government, England would be a theocracy. In fact there are 724 members which means England is no more than 4% of the way to being a theocracy.

And of course the House of Lords comprises the government no more than I do. We often think of the House of Lords having more power than it in reality has had for centuries. On a very simplistic level, the House of Lords has been little more than the humorous sidekick in the struggle for power between the Monarch and the House of Commons.

Finally there is the argument that the power of the state is exercised at the local level by Church authorities (the “parish council” still has some residual authority even today in rural parishes). This dates from well before Henry VIII created the Church of England, and is an example of pragmatic government. This could be said to be an example of how theocratic the English government is, but neglects the fact that the authority was not delegated to Church authorities but to the parish officials.

Of course there is a little bit of hypocrisy in such a statement, but at no point was the authority delegated to the priest himself. It was delegated to the parish authorities who were already in place to perform such duties as the Church itself would not do – such as ensure that the maintenance of the community’s portion of the church was carried out (the Church itself looked to the maintenance of only the priest’s half of the church).

Initially local authority was delegated to the manor and the lord of the manor but this was found to be less than totally effective. This was due to the fact powerful aristocrats could come to be in charge of many manors and not all received effective authority. The parish authorities were on site and could be counted on to perform such duties as the King required.

Imagine a King pulling up his horse after journeying over a particularly poor road; tired, cold, wet, and angry. He would pop into the largest house in the village looking for accommodation and nourishment, and ask the most obviously in charge person to see to the maintenance of the road. He would not care a bit that the person he charged with such a duty was part of the Church hierarchy or not; he would just want one of his subjects to perform a necessary service.

The English government does have the Church intertwined throughout it as a historical artefact. But whilst the Church is there, it rarely interferes – for instance the Church “Lords Spiritual” very rarely actually vote on normal government matters. This is partially because the English government has never been properly dismantled and put together again without historical oddities, but the Church does not come anywhere near enough authority for the English form of government to be called a theocracy.

Nov 142009
 

It has been announced this week that one of the alleged perpetrators (although he has freely confessed) Khalid Sheikh Mohammed will be tried in New York for orchestrating the 9/11 terrorist attacks. The prosecution is rumoured to be asking for the death penalty.

If he is found guilty (and there seems little doubt he will eventually be found so), will he actually be put to death?

Whilst those in favour of the death penalty will argue in favour, there is a very good pragmatic reason why he should not be put to death. If he is executed by the US authorities, he will be regarded as a martyr by the Islamic extremists which will encourage others. Indeed he probably wants to be martyred by being executed; does it make sense to “punish” a mass murderer by giving him what he wants ?

Life imprisonment without parole is a far nastier punishment.

Hopefully someone in the US justice system will take the pragmatic approach and not give him what he wants as punishment and does not sentence him to execution.

But if you do not execute this mass murderer, how can you justify executing others whose crime is less extreme?

With any luck (yes I am opposed to the death penalty), the long term effect of taking the pragmatic approach will be that the death penalty will come to an end in the US.