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.

Oct 222016
 

Yesterday lots of people found the Internet disappearing on them due to a significant DDoS attack against the DNS infrastructure of one company. Now there are all sorts of suggested fixes for this sort of problem, some of which are useful.

However it is notable that people have not mentioned one method built into DNS which could have been used more effectively. Indeed one suggestion was for the DNS to do something it already does – caching.

When you ask your ISP’s DNS servers to resolve a name such as example.org, the answer that your ISP’s DNS server gets back contains several bits of information in addition to the answer you are interested in (the IP address to connect to). One of which is how long to cache the value for, which means that your ISP’s DNS servers can save themselves some work for as long as they are allowed to cache the answer for.

Now it is awfully convenient to set this value to something like 5 minutes because if you have a need to change the value, it is nice to have the value change as quickly as possible.

But it also increases your vulnerability to a weaknesses in the DNS infrastructure.

If you increase the time-to-live (TTL) value to something more like 24 hours, then your DNS servers (or more usually the DNS servers of your DNS service provider) are required less frequently which means that if something takes them offline for any reason then there would be a decreased impact. It will still stop some people from getting the DNS answers they need, but the proportion unable to get an answer will drop dramatically.

 

damascus-dns