Nov 062016
 

There has been a great deal of fuss over the recent High Court decision recently that requires the government to ask parliament to authorise Article 50 to trigger leaving the EU. Most of it complete rubbish, and the more extreme responses were childish too.

The court case had nothing to do with Brexit itself – it was a constitutional issue over whether the government had exceeded its authority by trying to use the royal prerogative to authorise Article 50. The court decided it had, and that parliament should decide on the Article 50 issue.

It was not an attempt to defeat Brexit. There wasn’t some sort of remainer conspiracy to block Brexit. It was “just” a standard constitutional law case deciding on whether the government was using the royal prerogative unnecessarily to act in an undemocratic way.

As a side effect of the decision, there is a chance that parliament might decide to ignore the referendum result and try to remain within the EU. This would probably be a dumb move (and I would prefer to remain within the EU), but the blame for that loophole is down to how the original referendum was drawn up.

stack-of-coins-p1

Oct 312016
 

It is getting pretty boring listening to all the remain supporters whine about the result of the ‘recent’ (well to an old fart like me anyway) referendum. It’s done; time to move on – it may have been the dumbest decision the public have made since electing Thatcher, but it’s still done.

But that’s not the end of it; it’s just the beginning.

The first thing to say is that the politicians are lying (not difficult to ascertain; their lips were moving) when they say they have a clear mandate for Brexit. With a referendum result as close as the one we have just had – 51.9% in favour of leaving and 48.1% in favour of remaining – we have a clearly divided country with a not insignificant minority who want to remain within the EU.

Does that mean we should ignore the result? Of course not (written with gritted teeth), but neither should we ignore the fact that there is a significant minority of voters who want us to remain. This should have an effect on the negotiating position – having what is effectively a weak mandate for Brexit should be a reasonable excuse to aim for “Brexit light”. Something like the Norway model.

Is this going to keep the leavers happy? No, but neither is leaving the EU going to make the remain supporters happy. And the only sensible course is something that leaves everyone mildly discontent rather than seriously piss off one side or the other.

And it’s time for the remain supporters to start work on getting back into Europe; just as the leavers started campaigning after they lost the last referendum.

The New Defence

The New Defence

Oct 302016
 

Meh.

With the sole exception of the touchscreen key strip that replaces the function keys, there’s pretty much nothing that interesting about the new Macbook Pro machines from Apple. That is not to say they are not nice machines, but they are a bit under-specified for a “pro” laptop tag, although I suspect that quite a few people complaining about the lack of a dedicated GPU in the 13″ model fail to realise that most serious professionals do most of their heavy number crunching in the cloud and not on a light-weight laptop.

macbook-pro

 

And frankly any laptop is light-weight compared to a rack-based server with a case full of Teslas.

A laptop is essentially a creative tool for accessing “the cloud” for anything that requires a real computer, and a 13″ Macbook Pro is fine for that (although the trendy tax is a touch high).

Now onto the function key replacement: As a devotee of the keyboard, I’m somewhat reluctant to cheer the replacement of real keys with a touch screen, but it could be quite a neat feature. In the old days when we used function keys much more widely than we do now, on-screen labels for what the function keys did were not uncommon … look at the bottom of the following screenshot :-

norton-textra-writer-21-4

 

And the ill-fated Apricot Computers had a competitor to the IBM PC which came with a keyboard that had six “soft keys” with LCD panels.

So Apple has not done anything new here, but when did they? Their core skill is taking technical innovations and making them user-friendly; I don’t have a problem with that.

This keyboard could be useful in many ways – in addition to resurrecting the old “function key labels” in a more usable way, there is also the possibility of using them to insert symbols that we should be using, but rarely do so because they are not to be found on our normal keyboards. Depending on your proffesion (or inclination), we have different symbols we could or should be using – perhaps the copyright symbol ©, the interrobang ⁤‽, or more. Of course how useful it becomes will be down to the relevant software developers.

Oct 302016
 

Of course it isn’t; it’s England (I’m English).

It’s all very patriotic to claim your country is the greatest on earth, but it also indicates an immense level of smug complacency. If you live in the greatest country on earth there is no reason to look at your country and see what to do better.

Some questions to ask yourself about your country :-

  1. Where does your country fit in the list of infant mortality?
  2. How free is your country according to the Press Freedom Index?
  3. What ranking does your country get in the list of life expectancy?
  4. How evenly is wealth distributed?

Now you might not agree with my list of how well a country is doing (and mine isn’t necessarily the same as the one above), and I may well disagree with your list vehemently. But that is beside the point – choose your list of what you think is important in a country, assess your country’s level, and then decide if your country is the greatest, or whether it could do better.

stack-of-coins-p1

Oct 272016
 

I have recently been ‘entertaining’ myself with watching some videos on the vim editor which to the uninitiated is an extremely powerful if somewhat ‘unusual’ editor that is popular amongst Linux power users. One of the surprising things that came up was that apparently there are experienced vim users who are not aware of why the ex mode exists.

Or probably why the ex command exists.

In the dim and distant past (and in fact even longer than I’ve used Unix!), one of the possible ways of interacting with computers was with a printing terminal :-

On such a terminal, using a visual editor like vim (or it’s predecessor vi) would have been painful. Redrawing the screen would take a couple of minutes or more; imaging moving the cursor across from the beginning of the line to the end!

So it was common to use an alternative kind of editor – the line editor. The process of creating a file is somewhat clumsy :-

$ ex ~/Foo
"~/Foo" 1L, 4C
Entering Ex mode.  Type "visual" to go to Normal mode.
:p
Foo
:a
Bar
.
:p
Bar
:1
Foo
:write
:quit

Now for a quick explanation (although this is no tutorial on line editors!): The ex ~/Foo is the command given to start editing a pre-existing file called Foo in the ex editor. After the editor starts up, I enter the “p” command to print the current line. I then use the “a” command to append text after the first line, and enter a “.” on it’s own to finish adding lines. Again I use “p” to print the current line, and then “1” to print the first line.

Which is more than you’ll ever want to know about how to use ex, so why does it still exist?

The first reason is simply because it’s possible. It’s almost certainly fairly easy to support the ex mode with vim; after all the ex-mode is effectively the commands you get when you enter “:” within vim.

The next reason is that line editors were sometimes used within shell scripts to batch edit files, and somewhere out there is a shell script from hell that relies on ex to keep running.