Category Archives: General

Facebreak

Well, having failed to stick to my earlier promise to spend less time on Facebook, I’m having another go. I don’t want to abandon my account completely but this time I’ve changed my password to something I don’t know. We’ll see if that helps!

I think the credentials that I use for cross-posting from my blog will still work. This will be a test!

The problem is that many of my friends (the European ones, anyway) are talking about nothing but Brexit, and I find it hard not to join in. (I’m also more moderate on it than some, and this distresses some of my friends who hold strong views in either direction!)

There’s a very good reason why polite society has always discouraged sex, politics, or religion as topics for the dinner table. Few people appear to great advantage when discussing them, and it’s very easy to alienate accidentally those with whom you would otherwise have no disagreement. I think it’s wise to absent myself from the table until other topics return to the fore. God knows there’s no shortage of Brexit news everywhere else!

Since Facebook uses clever systems to order and filter the posts it presents to you, it would be nice if you could tweak it to promote or demote particular topics. “Show me more/fewer posts like this.” I remember a few years back a friend complained that too much of my output concerned Lord of the Rings, for example. But I don’t think such a filter system exists, so if you want to stay on the system you’re left only with the option of un-friending people: something I don’t want to do. I just don’t care, for example, about discussions about Icelandic football teams and can’t contribute anything useful, even if I may value the participants’ views on everything else. They probably feel the same about my views on Peter Jackson’s movies.

Now you might say that coping with this is just part of normal social interactions at the pub. But Facebook is like a large pub where you have to hear everybody’s conversations at the same volume without the normal subtle clues that give hints about the hearers’ enthusiasm. And since it only offers you the option of chucking people out of your pub, I think, I’ll take the alternative of stepping outside for a bit until things are a bit less smoky! I’ll be back soon, I’m sure. Have fun while I’m away!

Using nginx as a load-balancing proxy with the Docker service-scaling facilities

There’s a geeky title for you! But it might help anyone Googling for those keywords…

Recent versions of Docker have many nice new facilities. Here’s a demo of how you can use the service-scaling to run multiple instances of your app back-end, and Nginx as a front-end proxy, while keeping track of them using the round-robin DNS facility built in to the Docker engine.

All demonstrated in a few lines of code on my laptop, using the new Docker for Mac.

Also available on YouTube.

With thanks to Jeppe Toustrup for some helpful hints. Have a look at his page for more detailed information. Also see the Docker channel on YouTube for lots of talks from the recent DockerCon.

Update, spring 2017: Do note that if you’re using Docker Swarm, you may want to adopt a more complex approach, perhaps based on Interlock.

Don’t believe everything you see on the commercials…

Obvious, right?

Well, some things are even less obvious than you might suppose. Take a look at this vehicle, for example. What do you think it might be used for?

Click and watch the video to find out.

Blackbird

“So here is how this could go…”

My pal Owen Barder has an interesting post on Facebook:

So here is how this could go.

We invoke Article 50 in October.

We negotiate a new deal which is roughly Norway / European Economic
Area. The UK has to accept Free Movement of Labour, and a net
financial contribution. But we lose the rebate and don’t participate
in Single Market rule setting.

There is a general election before the actual exit. A progressive
centre left coalition runs on a platform of remaining in the EU.

The public realises that staying in is a far better deal than they are
getting from exit (which is now an explicitly-defined alternative)
and, satisfied they have give the political class a bloody nose, votes
for the remain coalition.

The new government withdraws the notification of Article 50. There is
no procedure for this, but it is in everyone’s interest to invent one.

Post-Brexit business opportunities

While shares are cheap, I’m going to invest in Northumbrian construction companies.

I’ll make a killing in a few years’ time when we have to rebuild Hadrian’s Wall.

Always look on the bright side…

For those who are, like me, disappointed with the results of the referendum, let me offer some mitigating thoughts to try and cheer you up over the next few days!

  • As the old saying goes, “Democracy is the worst form of government except all those other forms that have been tried from time to time.” But if you believe in it, then a referendum with a clear question and two choices is the purest form of democracy. In it, the British people voted across party lines for greater and more locally-accountable democracy. And huge numbers turned out to do it. Never in recent years has democracy been so much of a talking-point. Never has it had such a turnout.

  • I don’t believe that the clear tendency of older voters towards leaving can be put down purely to xenophobia. I think those of us old enough to remember life before the EU are less scared of being without it. For younger voters it’s been portrayed as a terrifying leap into the unknown.

  • Remember that the majority of our trade is not with the EU. Yes, the EU is a very big part of it, but it’s less than half, and that proportion has been falling since 1999. Remember too that the EU imposes extra friction on much of our current trade with countries outside its boundaries – the majority of our trade. We should do what we can to further reduce friction and tariffs on all our other trading partners in the next few years. It may not compensate for the new frictions imposed as we leave, but it should offset it. Also, a large proportion of our trade is with other non-EU European countries, which bodes well for us when we’re on the outside.

  • Remember that 90% of the world’s countries are not in the EU. Globally, we are rejoining the majority. I don’t think that is a retrograde step.

  • Thank God we didn’t join the Euro – look at what’s been happening to it. In fact, until the referendum came along, the poor prospects for the Euro economy were a regular feature of the news. There will be some benefits to decoupling ourselves from it a bit.

  • You shouldn’t assume that those who voted leave did so for the same reasons as the more extreme spokespeople, who are naturally beloved of the media. I have many friends who indicated they would vote that way and they are all nice, very intelligent, well-travelled, foreigner-loving people. Don’t believe the stereotypes. Britain hasn’t changed.

  • This was a vote for an issue, not for people. Not even for a political party. I don’t for a minute think Nigel Farage is going to be PM. In fact, I think this may rebound. If Labour manage to get an electable leader I think they’ll win the next general election as a result of this.

  • We soon won’t have to see those annoying cookie messages at the top of every web page!

You may not find all of these comforting. But I hope some of them will help a bit. 🙂 Enjoy the sunshine!

A viewer’s moral imperative?

It occurs to me, as I go to bed wondering what will be broadcast about the referendum in my sleep, that it must now be at least a decade since I watched any actual live TV.

This means that I’ve voluntarily paid at least ÂŁ1400 in TV licensing that I didn’t need to pay. Not legally, anyway. You can listen to the radio, and watch iPlayer content without one. It’s only live TV, online or traditional, that actually requires a licence.

Now, I’m a fan of the BBC and I’ve consumed lots of its output in various ways, so I feel a moral obligation to keep supporting it. But it does make me wonder how long this funding method can continue…

Guns around the world

The shooting of MP Jo Cox has caused understandable shock waves here, because it is so unusual.

In the US Senate, a 15-hour filibuster session trying to force some debate on (very limited) gun control looks as if it might have been successful. Vox news points out that during that session, 48 people were injured or killed from gunshots.

Here, also from Vox, is an excellent summary of the international statistics around gun ownership.

Thanks to Markus Kuhn for the video link.

Drive on the right side

I’ve often pondered the question of why some countries drive on the left-hand side of the road, and others on the right. We normally mount horses from the left — presumably because a sword would get in the way while doing so from the other side — so they are naturally positioned to set off down the left side of the road, as God and the King clearly intended. Why, then, would other countries have adopted a different system?

This great article talks about how Sweden switched over from driving on the left to the right in 1967. Extract:

When horse-back was the primary mode of transit, people generally rode on the left side of roads so that their right hand remained free to greet oncoming riders—or to attack them with a sword.

But with the rise of horse-drawn carriage, conventions began to change. Drivers would often sit on on the left rear horse, so their dominant right hands could more easily control the rest of the team which stood to the front and right of the driver. It then made sense for them to drive on the right side of roads so the driver could be positioned in the middle of the lane and be able to more easily keep track of carriages behind them.

So there you have it. Worth reading the rest. But don’t listen to the Telstars’ song, HĂĄll dig till höger, Svensson, or you may be humming it for some time.

Thanks to Mark Littlewood for the link.

Black and white photography

Black man. White House. Absolutely superb images captured by Pete Souza.

image

The boy had told Obama: “I want to know if my hair is just like yours.” The president had replied: “Touch it, dude!”

Convoy into the future

The first autonomous vehicles really to hit our roads in any numbers will probably not be Teslas, nor Google- or Apple-branded family cars, but big trucks. This makes perfect sense, when you think about it:

  • Truck drivers have to clock up huge mileages, often over many days, and have to take breaks repeatedly to make sure they stay alert.
  • Most of the driving is done on highways, where autonomous driving is the easiest, and at fairly constant speeds.
  • The cost of adding the necessary sensors and systems is a smaller proportion of the cost of the vehicle.
  • The impact on aesthetics, wind resistance etc of bolting camera and lidar sensors onto a truck is much smaller than on, say, a Jaguar.

And so it was that a convoy of self-driving trucks arrived in Rotterdam last month from all over Europe, and from six different manufacturers.

Trucks are also built in a more modular way than many other vehicles, so it’s easier to retrofit self-driving capabilities to existing vehicles. This is the current modus operandi of a new company called Otto, started by ex-Google employees, and with a pleasingly compact URL: http://ot.to . More information here.

I’m going to write again soon about other ways in which I think autonomous trucks may herald the likely transition into other autonomous vehicles. Watch this space.

Meanwhile, the truck drivers will soon be able to sit back and watch some old movies to remind them of the past…

Squeezies

I’m working out the details of my next invention, and I think it’s going to be a big one, with serious benefits for humanity. I thought I’d mention it here in case anyone wants to pitch in some venture funding for its development.

As it becomes commonplace, future generations will know the technology by a friendly, easily-pronounceable name that weaves itself into everyday language — maybe ”Squeezies” — and it’s only by looking it up on Wikipedia that you’ll discover the origins of the name in the original acronym SQSCZs – Sir Quentin’s Self-Closing Zips.

The idea is simple: Squeezies are just like normal zip fasteners except that a few minutes after you unzip them, they slowly and gently zip themselves back up again. This will be done using some terribly cunning micro-motors and very small batteries or, more probably, some clever nanomaterials; I’m still working on the details.

Squeezies will be fitted to travel clothing to thwart the pickpockets in the Paris metro and Naples railway stations. They will be fitted to gentlemen’s trousers to reduce embarrassing sartorial lapses. And they will be fitted to rucksack compartments to avoid, say, losing the keys to your Grasmere B&B yesterday halfway up the highest mountain in England and not realising until many hours later (just to pick a hypothetical example).

© Copyright Quentin Stafford-Fraser