Terence Eden. He has a beard and is smiling.

Terence Eden’s Blog

Theme Switcher:

How Do You Sort Chinese Numbers?

· 1 comment · 700 words · Viewed ~1,563 times


Imagine you have a series of number you wish to sort. Sorting is a well known computer science problem - generally speaking you compare one value to the next and then move the item either up or down a list. With "English" characters, that's fairly easy. When a computer sees the character 1 it's really seeing the Unicode character U+0031. When it sees 2 it's really seeing the character U+0032…

How bad is Scotland's Computer Science Exam?

· 7 comments · 1,600 words · Viewed ~2,790 times


Oh noes! The computer science exams taken by 16 year olds may contain errors! BBC News Technology@BBCTechComputer science exam had coding errors bbc.in/2eHHa0Cbbc.co.ukSQA admits 'coding errors' in computer science examScotland's exam body admits to a series of mistakes in one of this year's computer science tests.❤️ 23💬 1🔁 007:14 - Mon 17 October 2016 As a professional computerist, I was intrig…

Why can't you send email to a Chinese address?

· 4 comments · 450 words · Viewed ~5,097 times


We all know what an email address looks like and how to validate them, right? A few years ago I got the Chinese domain name 莎士比亚.org. You can browse to it, link to it, and send email to it. Or can you? When I tried two years ago, none of the major email providers supported sending to non-ASCII email addresses. Today, I tried again with six of the big "Western" webmail providers. How did they…

Debuffs, Enchantment, Equipment, and Players - an RPG Player's Guide to User Stories

· 2 comments · 800 words · Viewed ~479 times


If you've spent any time in a modern design environment, you'll be familiar with the idea of User Stories. As a first-time user, I want to log in with Facebook, so that I don't have to set up a new account. Fairly easy, right? Stick enough of those up on a wall and you've got yourself a party! If you've ever played an RPG or Roguelike game, you'll be familiar with how your character can…

Scaling Is A Human Problem Too

· 1 comment · 450 words · Viewed ~237 times


This morning I received an email which made my heart sink. In order to co-ordinate things better, we'd like to invite you to our exclusive Slack Channel! A variety of rude words danced around my brain. I think this makes the, what, 9th? 10th? Slack that I'm part of. Don't get me wrong, I like Slack as a service - but it only really works if you have One Slack Team To Rule Them All. I've just …

IANA Insanity - or, how I learned to stop .worrying and .love the .new .internet

· 1 comment · 700 words · Viewed ~635 times


Glowing computer text showing dot com dot info etc.

In The Beginning There was the .com and the .org and the .net and it was good. And, I mean, there were probably a few others - but that's all people cared about. Go Forth And Multiply And THE LORD sayeth "Hey, do people want country codes? Like .UK, .FR, .DE?" And the people were all like "Duh! Yeah!" Except for the people of the American United States. For they gnashed their teeth and…

Don't use negative numbers for error codes

· 9 comments · 250 words · Viewed ~2,173 times


A warning to programmers - try to understand how people will use your error codes. This morning, I was confronted with a rather bemusing error message on my WordPress blog: Ok, so this should "never happen" and yet somehow it has. I wonder what on earth the error code means? I selected the error code and Googled it! I just copied and pasted the error message into Google and got back a set …

How *not* to do a password change page

· 3 comments · 200 words · Viewed ~423 times


We've all been faced with this screen, right? You haven't logged in to a website for a while, so it prompts you to change your password. sigh Annoying but probably necessary. The problem was, every time I tried to change my password, it told me that my old password was invalid. The one that I'd just used to log in. I use the incredible LastPass Password Manager - so I knew I wasn't typing…

Why do some WebP Images appear upside down?

· 1 comment · 300 words · Viewed ~272 times


A few years ago, Google introduced a new image format to the world - WebP. It purports to be a superior image format for the web but, like all new toys, it takes a little while for the bugs to be ironed out. I found a curious case where some WebP images are rendered upside down! On the left is Opera for Android, centre is Chrome for Android, and on the right is Firefox for Android. Firefox…

The UK's Digital Driving Licence

· 3 comments · 400 words · Viewed ~1,811 times


I am an idiot. I am a Grade A+, certified, undeniable plonker. The man in the hire car office looked at me with barely concealed contempt. Fair, really. He'd asked for my Driver's Licence and I'd collapsed to my knees at the sudden realisation that the slim plastic card was 1,700 miles away from the Canary Islands. "I am sorry sir, but there is really nothing I can do." My wife was hobbling …

Google's Yellow Is Too Mellow

· 250 words · Viewed ~216 times


The Google Logo.

After much kerfuffle, the world has finally got used to the new Google logo. Well, almost. My eye is continually caught by the poor contrast of the yellow "O" against its background. Take a look... This is Google's default logo on its regular grey background. The contrast ratio between the yellow and grey is 1.50. That fails to meet current accessibility guidelines. This is just awful - I …

Premature Subsetting of Web Fonts

· 500 words · Viewed ~572 times


If you thought Web Fonts were pretty nifty, then you're going to think font subsetting is really cool. No, honestly! It is! As I've written about before you can dramatically reduce the size of your Web Fonts by cutting out characters that you don't need. For example, suppose you don't need to include the русский алфавит - you can immediately drop 66 letters (upper- and lower-case), a whole load…