Category - Computers & Tech

Year Of Code

Over the last couple of weeks, there has been a lot of media coverage concerning the so-called Year of Code (YoC) –  an initiative in the UK to promote computing education in our schools. Before I talk about that, let’s just take a small detour.

Also in the news this week were reports of the passing of Ian McNaught-Davis. It’s likely that no one under the age of 30 (possibly even older) would have had a clue who he was, but back in the early 80s he was the presenter of The Computer Programme, a BBC series which aimed to teach basic (and BASIC) programming to the masses using the BBC Micro (two more shows followed: Making The Most Of The Micro and Micro Live). Altogether, this amounted to about 5 full series running between 1982 and 1987.The BBC Micro

To be fair, only the first two series in this run during 1982-83 dealt predominantly with coding, and by the time of Micro Live in late 1983-87 the BBC had already started on its course of diluting technical content. Micro Live was more of an early “gadget show” than a programming one.

Dumbing down aside, McNaught-Davis effectively helped create the technology we have today. His presentation skills and knowledge spawned a generation of coders who shaped the modern computer world as a direct result of those early TV shows.

But running in parallel, ever since that early peak in technical TV programming, the UK has been on a gradual downward slope. In many ways, the BBC has been both creator and destroyer – what it created in 1982, it has been destroying since 1983 with the trend towards consumerism and dumbing everything down. I’ve mentioned before that science shows like Horizon have been ruined by the removal of raw technical content, replacing it with pointless topics, childish narrative, annoying sound bites, and repetitive video effects loops. Well, technology programming has been treated in precisely the same way – all technology coverage nowadays has to be packaged to appeal to the lowest common denominator of viewer. The only way that can be achieved is by broadcasting endless “gadget shows” about mobile phones and mobile phone games.

Going back to the original topic, YoC has got a hell of a task ahead of it if it wants to turn 30 years of progressive ignorance into technological skill inside a year. So the big question has to be: does it have a chance?

Well, it’s worth taking a look at the bottom of the YoC website to see who the guiding lights of the organisation are. Not specifically their names, but their job titles. To start with, there are 28 of them on the YoC foundation’s board. Over half of those are simply listed as “founders” of various obscure websites. Several are venture capitalists, several are representatives from companies like British Gas or newspapers like The Guardian. The two leaders – Chairman and Executive Director (ED) – are listed as “entrepreneur in residence” and “founder, Million Jobs Campaign”. It isn’t exactly a Who’s Who of technology whiz kids.

The ED is Lottie Dexter. and much has been made in the technology media about an appearance she made on BBC’s Newsnight. In it, she said that being able to code was vital to understanding how the world works – but then admitted she couldn’t code herself. The segment is here:

When I watched it my first thought was that they were deliberately focusing on women. Now, we all know that the IT industry is – and always has been – staffed predominantly by males, Depending on your source, the best male:female ratio is 2:1, and as little as 10:1 (when I worked in IT, out of 600 people on the shop floor there were less than a dozen females). It is only higher when you move away from the sharp end and into the administrative side. There is a damned good reason for that: in general, men want to do IT and women don’t. People have got to learn to live with it instead of trying to change it. No one is stopping women becoming techie geeks. It’s just that they don’t bloody well want to (no one whinges about the fact that in nursing, for example, the ratio of women to men is 10:1). The biggest worry for me, therefore, is that YoC is yet another equality drive pretending that it isn’t. And even if it isn’t, there are plenty of unbalanced people out there who will try to make sure it is.

Then we come to Lottie Dexter, the figurehead of YoC. She appears at about 5½ minutes into the segment, and the first thing she reveals to Jeremy Paxman is that she cannot code herself. Paxman expresses surprise at this, and at the fact that she aims to learn “within a year”. She further claims that the teachers who are going to teach coding can “pick it up within a day”. As the interview proceeds, with Paxman doing what he’s good at, it becomes clear that Dexter is basically a one-trick puppy. I lost count of the number of times she uses the word “code” – many times in the wrong context. For example, she considers website design as “coding”, and clearly believes that graphic design is part of that. It isn’t that simple.

The article in The Register asks:

So what made Silva [the chairman] choose Lottie Dexter to lead the initiative? It’s hard to tell. She completed her politics degree in 2010 and formerly worked as the PR chief for the Conservative think-tank founded by Iain Duncan-Smith, the Centre for Social Justice. The only other work experience she cites on her LinkedIn page is as a campaigner: director of the “Million Jobs” campaign, a “charity” that spontaneously emerged to support government-friendly business policies.

After identifying Dexter as an empty vessel as far as coding is concerned, it goes on to question the already criticised “incestuous relationships” involved in the scheme. It would appear that Silva occupies a post that was created for him by Saul Klein, a partner in the venture capital firm Silva is part of. Klein is also on the board of many of the companies listed in the 28 YoC members. Incestuous isn’t the word. The phrase “jobs for the lads” springs to mind.

Dumbing down over the last three decades has resulted in people like Lottie Dexter – loud and pushy, photogenic, female, but having no substance whatsoever. These are the kinds of people that society is looking for to head ideas like YoC. Those who have the real skills – people like Ian McNaught-Davis, who could teach from the ground up in a clear and concise way – no longer stand a chance.

Mind you, you have to remember that one of the prerequisites of being a techie geek is a complete absence of interpersonal skills – in fact, this trait is often what turns people to coding in the first place. One comment on the YouTube page says:

This woman thinks that you can teach coding after a day of learning.

Ok – let’s hear her views on design patterns, abstraction, polymorphism, programming to the interface, loose versus tight coupling, functional programming languages, declarative programming languages, garbage collection etc. etc.

The problem is that children have NEVER been taught that sort of thing, nor is it (or should it be) the intention to start doing it now. Many of today’s older coders learned their skills from the likes of Ian McNaught-Davis, and all you have to do is look at one of the episodes of The Computer Programme to see that the content was very basic (and the people much less photogenic). But it got the message across and it kick-started a million careers in IT.

And it is this level of information – if it were taught in schools – that could kick-start a million more.

DSA And VOSA Merger “End User Device Contract” To Cost £12m

Back in December 2013 I reported that the upcoming merger between DSA and VOSA – which was supposed to save money due to streamlining – was planning to spend £35m by contracting someone “to help manage and organise the Vehicle and Operator Services Agency’s (VOSA) and Driving Standards Agency’s (DSA) legacy IT infrastructure after the two organisations merge in 2014”.

Well, if I’m reading this right, they are now looking for someone to support their IT after the merger. This appears to be a completely separate issue, and is set to cost a further £12m for at least two years.

Remember that this is not the DSA’s or VOSA’s fault. It is the government.

As I said previously, there is no way the DSA can perform at its current level by merging with VOSA (and ditto for VOSA). They are totally separate functions. This was made all the more apparent when I realised that VOSA uses Lotus Notes for its email system, whereas DSA uses Microsoft Exchange.

The company I used to work for switched from Microsoft to Lotus at one stage, and it was utter chaos. Lotus Notes is a pile of crap on so many fronts that its benefits are completely eclipsed. It appeals only to Microsoft-haters just on principle, and anyone switching from the logical Microsoft system is going to have a nightmare adapting to the illogical Lotus one if that’s the route they go down – and since VOSA is the dominant body in the merger, that route is quite likely.

Fastest Ever Broadband Speeds

This article reports that trials by BT and Alcatel-Lucent have achieved broadband speeds of 1.4 terabits per second between London and Ipswich (over a 410km link – though Ipswich is only about 80 miles from London).

That would be equivalent to being able to transfer about 44 HD movies in one second!

It isn’t going to be available any time soon, but it does open the way for the future. Mind you, you have to read some of the comments on that BBC story. I love this one:

Kieran

9 Hours ago

10mb is adequate for anyone. 30mb is nice to have. Why does anyone need more?

Let’s get everyone on at least 10mb (I’ve had it for years and it’s a must-have these days), and providing better upload speeds, before we start messing around with anything faster. Even the 100mb fibre rollout is pointless IMO; how it will provide any economic benefits is beyond me.

I wonder if Kieran goes around smashing weaving machines in his spare time? And then this one:

Richard

9 Hours ago

For ordinary home broadband users it’s pretty meaningless. It’s not as if anyone needs to download “44 HD films in a second” . Is anyone’s life so busy that they can’t spare a half hour or so, to download what they need?

Those are “editor’s picks”, too! And some clown actually wrote this – on an online comments system, remember:

I have never used the internet and I never will.

Ah well. I’ll just stick with my good old Virgin Media connection, which was automatically upgraded this week, and let the Luddites and senile Daily Mail readers carry on. Here’s my current speed:Virgin Media speed test

I can download a 1gb file in less than a minute, so I’m not complaining (that would be less than 5 minutes for a whole film). And I get the same result (apart from the ping) if I run the test on a Frankfurt server.

Contact Lens Monitors Glucose Levels

This story on the Beeb reports that Google is testing a “smart” contact lens which can help detect glucose levels in tear fluid.

If left at that, it sounds like a good idea. But the report adds:

The firm said it is also working on integrating tiny LED lights that could light up to indicate that glucose levels have crossed certain thresholds.

Google really can’t help itself, sometimes. I guess we should be grateful that technology isn’t yet advanced enough for the things to contain a camera – though I will lay odds that Google is already looking to integrate this with Google Glass, which would mean it DOES have a camera capability. I can also think of at least one crackpot in America who will be at the front of the queue to be a beta tester.

I wonder how long it will be before your contact lenses start sending you spam based on what you’ve been looking at?

Fridge Caught Sending Spam

The headline of this one made me smile. More and more appliances are being built so they can connect to the internet, and although I’m as techy as they come, I have never been able to fathom why you’d want something like a toaster, a kettle… or a fridge to be able to connect to the web.

I mean, why on earth does a fridge need to have that feature? TVs have this dubious capability these days, and although in the case of these there is a half a good reason to be able to do it (downloading firmware updates, and maybe downloading content), the fact that the damned things can autonomously connect and start pumping data out without your knowledge is of far more benefit to others than it is to the owner. LG, for example, has been coming over all Google and has been caught harvesting data it really shouldn’t have. Apple has been doing it for ages. And I won’t even try and list the numerous separate occasions on which Google has been caught spying on people – sending you emails about things you’ve looked at is just the tip of the iceberg, and most people will remember the Google Maps cars harvesting private Wi-Fi signals.

But the idea of a fridge sending out spam is as funny as it is sinister.

Removing Phantom Network Entries In Windows 7

Playing around with my Raspberry Pi I encountered an annoying problem on my PC. After deciding to do a clean install on the Pi in order to try some new things, the second time around I gave the Pi a different name. The new entity showed up in the network list all right – but so did the old one, even though it simply didn’t exist anymore.

Nothing I did would get rid of it, and after searching the web it became clear that no one seemed to know how to do it. Every time the question was asked, the “experts” answering defaulted to talking about network cards or entire networks, which is not the same thing! The problem I – and apparently a lot of other people – were having was that network nodes didn’t disappear when the device on that node did. There was no “delete” option on right click, or anywhere else.

Anyway, to cut a long story short, I got rid of mine by simply dragging the phantom item to the waste bin. I deleted and redetected the whole network first, and I’m not sure if that is relevant, but the phantom entry is now gone. I hope that helps someone somewhere.

Raspberry Pi Computer – And Barometers

The Raspberry Pi was released about 18 months ago, and I was fascinated by it all the way up to that release. I had one pre-ordered, and it arrived late last summer (2012). For anyone who doesn’t know, it is a tiny, single-board computer which was designed to sell for $25 (or $35 for the higher-spec version). The photo below is misleading – it looks huge, but the board is only 8.5cm long, which is not much bigger than a credit card.The Raspberry Pi mainboard

It is British-designed, and the main purpose of the registered charity behind it was to help teaching computers in schools. As of October 2013, 1.75m Pi boards have been sold – 1m of which were made in the UK.

Now, as I’ve explained before, I am a gadget freak. For me, owning a gadget is about 80-90% (maybe a bit more) as satisfying as actually using it. To that end, my Raspberry Pi has remained in its original packaging since I got it last year waiting for me to get the necessary urge to take it to the next level.

Changing the subject for a moment, over Christmas I was searching the web for a suitable barometer which would interface with my normal PC so that I could log the data. I BMP085 Moduledidn’t want a full weather station – I’m not that big an anorak – just a barometer. But I couldn’t find one.

Next, I had the idea that there might be a module I could buy and tinker with. And there was – the BMP085. It contains pressure, altitude, and temperature sensors. Things were a bit confusing for a while, because the name “Arduino” kept cropping up. Of course, after I actually looked it up, I realised that it  is a single board microcontroller (actually, there are various models), developed in Italy, which is used to experiment with and prototype electronic systems. All of a sudden, the prospect of a nice little nerd project started to grab me by the throat, and I began to curse myself for not looking into this before Christmas because of the delayed post I would now have to live with. But after a few moments at the very shallow end of the Arduino pool, it suddenly occurred to me: I wonder if my Raspberry Pi could do this? And it turns out, it can. So it was time to get it up and running…

Step 1 – The Parts

These are just to get the Raspberry Pi up – the barometer will come later (after I get the extra bits delivered):

  • Raspberry Pi
  • USB keyboard
  • USB mouse
  • SDHC card
  • HDMI cable
  • Power supply unit
  • Ethernet cable

I already had all the parts (I bought the PSU at the same time as the Pi). I connected everything up except for the SDHC card, Ethernet, and PSU at this stage, using one of the free HDMI ports on my TV for display purposes.

Step 2 – The Operating System

The Pi has no permanent storage on-board – no disk drives or anything (though it (Version B) does have 512MB of RAM). The SDHC card is the storage medium, and when you get it it is effectively blank (or contains old stuff if it’s been sitting in your box of bits like mine has). It has to be formatted properly, and then have an OS installed on to it. There is a useful guide on Adafruit which explains how to do this. Adafruit provides an easy way – there are plenty of others which revel in command line Linux commands, but that probably explains why the forums are full of people complaining their Pi doesn’t work.My Pi in its swanky new case

First of all, I downloaded the SD Association formatter to my PC and installed it. I put my card into my reader and formatted it as explained in this document on the Raspberry Pi site.

Next, I downloaded NOOBS (offline and network install), extracted the files, and copied them on to the SDHC card, all as explained in this link. Then I put the card back into the Raspberry Pi’s card port. The card now contains a bootable image which allows the OS to be installed.

I connected the power cable and the Pi booted up first time. Following the instructions in the last link I selected Raspbian as the preferred OS and it installed flawlessly (took about 20 minutes). After rebooting, I followed the instructions in this link to set it up the way I wanted it (I especially made sure I enabled SSH so I could talk to the PI from my PC). After rebooting again, it launched into a desktop similar to Windows.

Next, I connected the Ethernet cable to link the Pi to my Virgin Media Superhub. Again, it immediately connected to the internet (and the system time corrected itself).

Note: Using PuTTY on my PC, having enabled SSH meant that I could log into my Pi using its IP address and use the command line interface from there.

Step 3 – Making the Pi’s IP Address Static

Referring to this link, I set my Pi to have a static IP address (i.e. one that doesn’t change).

Step 4 – Installing a Remote Desktop Function

This is so I can control my Pi visually from my PC, which will avoid having to have the keyboard and mouse connected to such a tiny computer. I used this tutorial to set it up – but only the part where XRDP is installed on the Pi. Windows 7 already has a Remote Desktop program, and by running this and entering my Pi’s login details I connected immediately. The Pi desktop as it appeared on my PC is shown below:Raspberry Pi desktop as seen on PC

Note that there are limitations  – I couldn’t carry out the next step remotely and had to do it directly on the Pi. Leafpad just didn’t want to open remotely.

Step 5 – Networking

At this stage, although the Pi could connect to the internet via the Superhub (that’s why I could download the necessary programs referred to above), it wasn’t visible as part of the network from my Windows PC. It pinged OK, but that’s all. The Pi needs to have a Server Message Block protocol installed, and I found this link to Samba which provides that. Again, I followed the instructions and it worked first time. The only change I made was to set public=yes so that I didn’t have to use a password to access Pi from my PC each time. Now, I can see the entire Pi file set on the SD card via the network on my PC.

The reason I did this was that I plan to write the barometer reading to a file on a regular basis and I want to be able to pick it up on my PC.

Next Steps

At the moment I have done as much as I can until the new parts arrive. I’ll write an update when they do. The case has already arrived, and the picture above shows my Pi inside it.

Incidentally, the Raspberry Pi is roughly equivalent to a P2 300MHz (circa 1997) in terms of power, but with better graphics. It certainly looks groovy when you’re using a 50” plasma TV as a monitor. It’s great fun to play with.

Cheques: Too Little, Too Late!

Note that this is an old article. iZettle let me down badly and I switched to PayPal in 2015. Apart from that, the comments are still valid.


Back in September I wrote that I had acquired the ability/facility to take take credit and debit card payments from pupils in the car, thanks to my iZettle chip & pin Sending cheques by phonecard reader. It has been a real boon, and has saved me a lot of money in various ways. In an earlier article, I explained how I nearly went for the PayPal reader, but sent it back because PayPal couldn’t make up their mind how the system worked, and so convinced me the service was next to useless.

Being able to take card payments was something I’d wanted to do for the last ten years or so, but until this new – and long overdue – series of devices became available the cost was just too prohibitive, and the services far from convenient.

When it comes to taking payments from people, by far the biggest pain in the neck for the sole trader is the cheque. These have been used since the 17th Century (there is evidence that similar systems were in use as far back as 300BC). The problem is that the method of honouring a cheque has hardly changed in all that time. They are cumbersome and – if one bounces – a major headache. For me, the worst part was having to go and pay them in to a physical bank. The fact that it had to be MY physical bank was just as bad, as was the length of time they took to clear.

It made me smile, therefore, when I saw this story on the BBC’s website. There are plans – well, proposals – to allow you to take a photo of your cheque using your smartphone, and send it in electronically. Cheques will clear in two days rather than the current six. The thing is, they COULD make cheques clear in two days right now – something which should have been implemented years ago.

Apparently, this system of using smartphones has been possible in the USA for the last decade. I didn’t know that, and it makes the situation over here even more annoying. Britain seems to deliberately want to keep itself in the dark ages with some things, which is evidenced by the apparent u-turn on abolishing cheques altogether as a result of “public opposition” (read: “from the Luddites”).

Barclays is going to be trialling the service from early in 2014. But there are already rumblings from people about branch closures as a result.

People in this country need to get a grip and stop keep rattling on about the past. Banks are a major pain in the backside and always have been. As far as I am concerned, you either put money in or take money out, and that takes a few minutes at the most (which could be a few seconds if banks weren’t so bloody inefficient). But unless you’re the only one in there, every other customer is guaranteed to be a total prat who will keep the cashier occupied for 15 minutes over something stupid.

We should be going for instant money transfer systems, and a merger of individual financial systems so that you can access your account anywhere.

Thankfully, the days of the cheque are gone for me. Anyone who has a cheque book will have a chip & pin card, so they can pay me using that through my iZettle.

Windows 7 And Folders Which Don’t Exist

I’ve had an annoying problem on one of my disks for some time now. It all started when I was trialling a newsgroup aggregator and it created some very deeply nested folder trees.

At first, when I tried to delete the top-level folder it appeared to be locked – that’s usually when the file or folder is effectively held open by another (badly written) application, which means that Windows can’t remove it. Some applications are so poorly written that files are not closed properly, and can appear to be held open even when they aren’t. When that happens, a free utility called UnLock IT comes in handy. It effectively forces the “open” file to close so that it can be deleted.

But this particular folder simply refused to be deleted even after running UnLock IT. Even after I had deleted as much of the nested stuff as possible by hand, Windows just ended up warning me that one of the sub-folders was no longer in the location specified – even though it was clearly showing up in Windows Explorer. I was stuck.

But then I discovered this function you can run from CMD.EXE:

RD/s h:\foldername\

The h: is the disk drive where the folder is located, and “\foldername\” is the full path to the folder you want to remove. It asks you to confirm Y/N, but it got rid of it immediately.

It’s funny how something can drive you nuts for months, and yet once you put your mind to it you can find the answer in a couple of minutes!

Cyclist Safety Is… A Laser Beam

As the previous story shows, cyclist road safety is a hot topic at the moment. So it should come as no surprise that people are trying to cash in on it.

Green laser lightThis BBC story tells of an apparently “hi-tech” solution “invented” by a woman from a company called Blaze. It isn’t hi-tech at all – not unless you class everything incorporating a laser as hi-tech.

What it does is project a cycle symbol on to the road ahead. That is, if it’s adjusted properly. If it isn’t, the cycle symbol will be projected into the air, or anywhere else the Neanderthal on the bike chooses to aim it. There’s also no mention of what happens to the projected light when it hits a puddle or bus shelter. We scientists would know that as something called “reflection”, and God only knows what is likely to happen if a bright green laser is reflected off a bus shelter into the eyes of a passing motorist, or off a puddle into the eyes of a pedestrian.

The spreading infestation on our roads of people on two wheels who only think of themselves means that badly adjusted hi-brightness white LED lamps is already a growing safety issue. A badly adjusted laser is going to be a hundred times worse.

Quite how the people responsible for this dangerous toy think it will improve safety is anyone’s guess. Because when some jackass ignores every safety guideline going and tries to cut up an 18-wheeler attempting to turn left on the inside, I can’t imagine having a laser torch will make much difference to the outcome. And if you’re in an HGV (or any other vehicle) and you see ten of these things flashing away at you from all angles on the road, confusion is the most likely outcome – not safety.

The About page on the Blaze website says it all:

Cycling is about independence. But it’s also about community. It’s different things to different people. A dawn riser racing to work to get her adrenaline fix. A student saving up for a weekend gig. A nature-lover doing his bit for the environment.

Currently, urban cycling favours the brave, the reckless even, the ones willing to fight for their place on the road. But it doesn’t have to be this way.

I couldn’t have written a better reason for introducing mandatory IQ tests for cyclists if I tried.

The best thing London’s councillors could do is ban this thing before too many are sold. It needs proper safety testing by independent testers – not by pro-cycling commercial groups.