Mar 152016
 

This post was inspired by a video of someone’s testament of why they are leaving islam, but yet it has nothing to do with islam.

There is a perfectly understandable misunderstanding within that video – the extremism commonly found in islam today has nothing to do with islam itself. The same extremism can be found in other religions too – christianity, hinduism, budhism, judaisn, etc. Yes the perception is that islam today is far more extreme than those other religions, but there are still extremism in other religions :-

It seems that irrespective of what religion someone believes in, they will take the message from their religious texts that they want to. A good person is going to take the good stuff from the good book; a bad person is going to take the bad stuff from the very same book. I would not go as far as Steven Weinburg :-

Religion is an insult to human dignity. With or without it you would have good people doing good things and evil people doing evil things. But for good people to do evil things, that takes religion.

But it is certainly along the right sort of lines. Extremists use religion as an excuse to do evil things – killing homosexuals, abortionists, atheists, “immoral” women, etc. If we could somehow cause all the extremists of the world to drink the magical cool-aid that would turn off their extremism and turn them into the kind of religious believers who “love thy neighbour”, then there wouldn’t be a problem with religion.

But the sad fact is that extremists do so much harm with their religion that it outweighs any possible benefit we get from religion. We would be better off getting rid of religion just to stop the extremists from pretending to be good.

Mar 052016
 

Just to amuse myself, I’ve been re-reading and re-learning the Unix shell’s ${} detailsand it occurred to me that whilst these were all very well and cute, they very easily lead to impenetrable code. But they are more efficient.

Take the following two ways of getting the current date :-

✓ mike@pica» print -P "%D" 
16-03-05
✓ mike@pica» echo $(date) 
Sat 5 Mar 13:14:38 GMT 2016

It’s not exactly helpful that they return the date/time in different formats. But glossing over that for the moment, which one is clearer? That is right – the second one clearly says that it is going to “echo” the date. Even if this usage is particularly stupid (as date will echo the date all by itself), the second wins as far as clarity goes.

However it is also less efficient – rather than get the date and show it to the terminal, the shell invokes a sub-process to display the date, captures it and then uses it to show to the terminal. In the old days when terminals consisted of printing mechanisms that actually hit a template of a letter against an inked up ribbon against a roll of paper and hoped that the result was readable, this inefficiency could result in very slow code.

But today this level of inefficiency should not make that much difference, and if it does, then why are you writing code in the shell? There are far better languages out there.

In addition, there is a bit of a gotcha with the print -P “%D” option … it only works if you happen to be using zsh :-

✓ mike@pica» print -P "%D"
16-03-05
✓ mike@pica» /bin/sh
$ print -P "%D"
file: option requires an argument -- 'P'
Usage: file [-bcEhikLlNnprsvz0] [--apple] [--mime-encoding] [--mime-type]
            [-e testname] [-F separator] [-f namefile] [-m magicfiles] file ...
       file -C [-m magicfiles]
       file [--help]
Warning: unknown mime-type for "-P" -- using "application/octet-stream"
Error: no such file "-P"
Error: no such file "%D"
$ 
✗ mike@pica» /bin/ksh
$ print -P "%D"
%D
$ 
✓ mike@pica» /bin/bash
mike@pica:~/.lyx$ print -P "%D"
file: option requires an argument -- 'P'
Usage: file [-bcEhikLlNnprsvz0] [--apple] [--mime-encoding] [--mime-type]
            [-e testname] [-F separator] [-f namefile] [-m magicfiles] file ...
       file -C [-m magicfiles]
       file [--help]
Warning: unknown mime-type for "-P" -- using "application/octet-stream"
Error: no such file "-P"
Error: no such file "%D"
mike@pica:~/.lyx$ exit

Confusing is it not?damascus-unix-prompt

Of course if the shell would intercept common usages such as $(date) and optimise them, that would be perfectly reasonable.

Feb 292016
 

So the Euroskeptics want a divorce between us and the EU; or in other words they want to go back to a time when we would protect our interests in Europe by going to war every generation or so. Which is a far more expensive proposition than EU membership fees, and far riskier.

Because the continent has always been there. And throughout history we have had to keep an eye on what the rest of Europe is up to, and intervene whenever France, Spain, Denmark, Sweden, or Germany has been involved in actions that interfere with our interests. Being part of a club that can discuss contentious issues and tell a member to stop behaving badly is far preferable than the old way of doing things. And yes that involves giving up a bit of sovereignty.

When you come down to it, that little loss of sovereignty hurts the politicians more than the rest of us, and the rest of us are more likely to be the ones killed off in European wars.

Does it seem a little far fetched that leaving the EU will cause the return of European wars? Perhaps, but one of the reasons it seems far-fetched is that we do have an EU where we can go and argue. Without that safeguard, there is not a great deal to stop the return of the old ways.

Immigration

There is an assumption that leaving the EU will lead to fewer immigrants arriving in the UK.

Perhaps. At least in the long-term assuming we ignore the UN directives on refugees, but in the short-term there is a good chance that immigration will increase.

For a start, all those refugees and economic migrants from outside the EU won’t suddenly stop coming just because we leave the EU. Sure we’ll set up new border guards, but that will take time. And guards don’t stop everyone.

And what incentive does France have to co-operate over that migrant camp outside Calais? None of course; their interests would be best served by giving all the refugees a Eurostar ticket to move the refugee camp to Britain.

And what happens to all those Brits who have set up homes in the EU? Are they going to want to return to Britain? Is the EU going to force them? After all there is no natural right of residence for citizens of former members of the EU. Perhaps you would not count such returnees as “immigrants” but they would have all the same problems – needing a place to stay, and often needing income support.

And most of them would be rather annoyed.

Trade

The “outers” would have us believe that leaving the EU is an opportunity to make trade deals with the rest of the world to more than make up for the trade lost with Europe. Half our trade is with Europe, which in monetary terms is very roughly 230 billion a year.

In other words the “outers” want to put that 230 billion of income at risk in order to gain an unknown amount of trade through new trade agreements.

And what stops us making those trade agreements now anyway?

Regulation and Justice

Of course one of the big weapons the “outers” have is to claim that we would be freed from all that tedious European regulation. Well, perhaps but remember that 230 billion of trade with Europe? The EU isn’t going to let us export stuff to Europe if we don’t follow the EU regulation; it has always been the case that if you want to sell something in a market you have to meet the regulations of that market.

It is one of the reasons why the EU started regulation – to harmonise regulation across Europe so that you could meet one set of EU regulations rather than 28 different sets of national regulations.

And as soon as we get rid of EU regulation, we’re going to start getting British regulation instead. It won’t be a one-for-one replacement of course, but we won’t be losing as much regulation as we think.

There is a whole set of EU regulation that business universally loathes – the EU regulations that protect workers (such as the Working Time Directive). Well I for one think that European protection for workers is valuable; certainly our own government isn’t interested in protecting workers!

As to the European Court of Justice, the politicians are all up in arms about their power to overturn decisions made by parliament. Which must be very irritating for them, but ignore the whole “sovereignty” thing for a moment – don’t you secretly think it’s a good idea to have someone overseeing parliament? After all, it’s not as if politicians are trustworthy, so having some oversight is not a bad idea at all.

And people overlook just how useful the European Court of Justice has been to us – it wasn’t such a long time ago that France was blocking British beef imports on the grounds that British cows used to have this health issue. Of course what they were really doing was protecting French farmers. And the ECJ forced the French government to repeal laws that prevented British beef being imported.

And there are plenty of other examples where the ECJ has been helpful.

Unelected Bureaucrats & Democracy

You will often hear the phrase “unelected bureaucrats” (or even “eurocrats”) in association with the EU. You could almost imagine that politicians are volunteering to do some real work.

In reality government is run by unelected bureaucrats – when a farm inspector visited a farmer and told her that she needed to paint blue numbers on her cows and not red numbers, he would blame the bureaucrats; in the 1940s it was the civil servants in London; today it is the eurocrats in Brussels. It’s just a different flavour of bureaucrat.

And as for the EU being undemocratic, well the EU Parliament is trying it’s hardest to change that. And it’s the heads of national governments who are blocking such reforms. So when a national politician is complaining about undemocratic Europe, she is speaking with a forked tongue (how can you tell if a politician is speaking with a forked tongue? Their mouth is open).

The Edge

Fin

If you hadn’t already guessed by now, I’m in favour of staying within Europe. Sorry I meant staying within the EU. The EU is the future of Europe, and for better or worse we’re part of Europe, so if we want to have our say on the future of Europe, we had better stay within the EU.

 

Feb 202016
 

2012-05-19-sheep standing guard.small

The whole Welsh carnally like sheep thing is pretty funny? Plenty of opportunities for jokes in there. But do you know where it comes from?

Unfortunately I don’t have a source for this (I’m a bad historian!), but I do remember reading it from a respectable history book.

In medieval times, there were two crimes you were likely to be charged with if you were caught in possession of sheep you didn’t own back then. One charge (sheep stealing) was dealt with by the King’s courts and dealt harshly with any property crime – sheep rustlers could and frequently were hung for stealing sheep.

The other charge (unlawful carnal knowledge of a sheep) was dealt with by the Church courts who were somewhat more lenient, and the punishment was more likely to be a fine or a short imprisonment.

Anyone with half a brain would opt for the Church courts, and it seems from the records that the Welsh picked up on this legal loophole very rapidly. After all being known as a sheep-shagger is somewhat preferable to being hung.