Who’s gonna drive you home tonight?

googlecarJohn’s recent column about self-driving cars made me ponder some of the conversations I’ve had about them recently.

I’m a huge fan of the idea, because I think it will transform society in ways we can only begin to imagine, and most of these will be highly beneficial. To those friends kind enough to humour me, I can enthuse for ages about decluttering the narrow residential streets of Cambridge, currently filled with empty, parked, individually-owned cars; or about the joys of rural living when you can read a good book, enjoy breakfast, or even sleep during your commute; about not having to share the roads with heavy goods vehicles, since they’ll mostly be cruising to their destinations in the small hours of the morning…

My favourite dream, though, is that of owning a self-driving motorhome. One evening, not too far off, I’ll use an iPhone app to summon it from its out-of-town parking space, and when it pulls up outside, Rose, Tilly and I will climb aboard with a good movie and a bottle of wine, and I’ll say, “Chamonix, please!”, before settling down for the evening. The following morning, I’ll take the dog for a walk in the Alps. Oh, and if a large vehicle will be a bit too cumbersome for exploring the winding roads of Haute-Savoie once we get there, I’ll just tell my car to follow us.

Now, when it comes to these ‘autonomous vehicles’, there are plenty of naysayers around. There are those who are concerned that cars will have to make ethical decisions in the face of potential accidents, and may not always make the right ones. Conspiracy theorists talk about young or high-net-worth individuals being spared while elderly or impoverished pedestrians are sacrificed. Others fear that a car swerving to miss a dog will hit a human, and so forth. It’s not, however, clear to me that human drivers, often with less information available in that split second, will necessarily do any better, especially if they are drunk, elderly, tired, distracted or short-sighted. Many of the objections are often really variations on Phillipa Foot’s classic Trolley Problem, which has been debated for many decades without any machines being involved.

It does seem clear, however, that road safety overall will be improved greatly by this technology, so unless things are sidetracked by expensive and complicated litigation in individual cases — a real danger — the lower insurance premiums associated with self-driving cars may eventually pay for their wide deployment. In fact, I expect that driving your own car will eventually be something only the rich can afford to do.

So I’m somewhat bemused when I see articles stating, for example, “The autonomous Google car may never actually happen“. Such headlines are, of course, mostly just link-bait, but it seems to me self-evident that autonomous vehicles will eventually not just ‘happen’, but will be the norm, and we’ll look back with astonishment at the time when two fallible humans were allowed to hurtle these deadly missiles in opposing directions within a few feet of each other.

Self-driving cars will come eventually. The question is simply how long it will take us to get there, and how many political and legal potholes they have to dodge en route. I, for one, can’t wait: I’ll be buying an autonomous vehicle just as soon as somebody makes one I can afford. Even if it isn’t a motorhome.

Pick your own

Block’s Farm Market, in Romulus, Michigan, is a great place.

I particularly liked the way they sell sweetcorn: a tractor drives in from the nearby field towing a couple of trailers, and you just help yourself. You pack as many as you can fit in two large bags, for $5. It’s also, I have to say, perhaps the best sweetcorn I’ve ever tasted.

20150828-13265699-900

The times, they are a-changin’

IMG_2194

Having bought a large number of items on Amazon this week, I felt there was a certain irony about this sign at a bricks-and-mortar store…

Replace wildcard imports in Python code

From our just-in-case-you’re-Googling-for-it department…

In Python code, wildcard import statements, such as:

from foo import *

can be very convenient, but are now usually considered bad practice.

I’ve written a really simple tool called dewildcard to help replace them with full expansions, which can then be trimmed down using a tool like pylint or pyflakes.

Just in case it’s useful…

Goodbye, Android

I meant to post this when it came out a month ago…but better late than never…

Lorenzo Franceschi-Bicchierai, a computer security journalist, wrote about why he’s ditching his Android phone for an Apple one, in an article entitled Goodbye, Android. He’s not a particular fan of the Apple ecosystem but feels he must make the change for security reasons, and that’s not Google’s fault — they’re quite prompt about issuing security patches — it’s a feature of the Android ecosystem.

Google still has very little control over software updates, and Android users are basically at the mercy of their carriers and phone manufacturers when it comes to getting updates or new operating system versions. For example, it took Sony more than six months to push Android 5.0 Lollipop to its new line of Xperia Z phones, despite the fact that it had promised for a much shorter turnaround after Lollipop was released by Google. Just for comparison’s sake, when Apple released iOS 8 in September of last year, it immediately became available for all iPhone users, even those with an 2011 iPhone 4S.

As security expert Cem Paya put it, that was a conscious decision Google made when it created Android. Paya called it a Faustian deal: “cede control over Android, get market-share against iPhone.” Basically, Google was happy to let carriers put their bloatware on their Android phones in exchange to having a chance to fight Apple in the mobile market. The tradeoff was giving carriers and manufacturers control over their Android releases, leaving Google unable to centrally push out operating system updates.

Pie charts

2015-08-23_16-53-43-09-900

Well, that’s what they reminded me of! Crooked Lake, Michigan.

Free-range chicken

We thought these were more adventurous than your average hen.

2015-08-11_13-22-49-10-900

Then we realised they were just trying to impress the Lord of the Manor.

2015-08-11_13-22-14-08-900

Poetic Landscape

2015-08-10_15-59-34-24-600

Grasmere, from Helm Crag, this evening. It’s good to be back.

Click photo for larger version.

The Chapel, Gonville & Caius

2015-08-02_17-53-00-23-900

The Chapel, Gonville and Caius College, Cambridge.

I have a sentimental attachment to this place, because I got married here nearly 24 years ago. At that time, it was beautifully lit with candles. But I have to admit that, most of the rest of the time, the dark oak and limited light makes it rather gloomy. It takes some careful photography to do it justice by natural light.

Click image for a larger version.

© Copyright Quentin Stafford-Fraser