A wiki for your desktop

I have recently been exploring alternative software to OneNote. OneNote works really well for me and it is my main note-taking app. I like how I can easily organise my thoughts into a hierarchical structure that synchronises across all my devices. In fact OneNote has for a long time replaced my own memory. I mainly use it as a 'rough work book' for my own ideas, as well as a collaborative space to work with colleagues. I really like how I can make a new quick note from the taskbar in Windows 10, or from my Windows phone or Android tablet when I am on the move. I can start with a quick idea when I am on my Lumia 950 and then finish the task as a 365 document later on. On my Surface device, the OneNote notebook works very well with the surface pen and feels almost exactly like a fine line pen on paper.

In fact, although this articles will deal with some interesting note-taking applications, I do think that OneNote is the king.

There is Evernote, of course, however I have always thought of this as a poor-man's alternative to OneNote. The free version currently only allows me to use the application on a maximum of two devices at once. This limitation has instantly turned me away from using Evernote and I am very unlikely to ever go back to it.

I have used TreePad a few times. The free version allows you to organise a set of notes as a hierarchical tree structure. Your notes can be exported as HTML for sharing with others. The free version has a look and feel similar to your default text editor albeit with a tree structure for organisation. The paid for versions have more advanced features including a full word-processor style of interface and custom styles amongst many other features.

TreePad Lite (free version) running in Windows 10 showing the tree structure.

TreePad document structure of TreePad PLUS (paid for version) showing custom icons/font and other goodness. 

Treepad files (including the node structures) are plain text files, and so it is fairly easy to generate treepad files programmatically in the language of your choice.

Action Note - note taking in your action center

Another note taking app I use is Action Note for Windows. This is a note taking app that sits in your action center. I use this for taking quick notes on my phone and synchronising with my PC. I have already written a blog post covering Action Note last year.


Zim is a 'wiki for your desktop'. Just like in OneNote and TreePad you maintain your notes as a hierarchical tree structure. Each page can include text and images, with a bunch of plug-ins available including task manager and equation editor.

Zim pages are formatted in a wiki structure that allow links to other pages in the document. Creating a new node is as simple as linking to a non-existent page. Links are maintained in a simple mark-up syntax, such as :Notes:page1 or +newpage.

Zim notebooks can be exported as HTML pages with various pre-set templates. Indeed the Zim website itself was written in Zim.

I have only just discovered Zim, and as such have not got much to show for it, however I can already see that it has many advantages over TreePad most notably the fact that it is a free download; can run across Linux and Windows, not to mention the simple node creation and exporting features. Until discovering Zim, I was considering paying for the full version of TreePad PLUS, however now I don't think I will bother.

The Zim manual, written using Zim.
Video Time

Taping from the radio in 2017

How things have changed. Long ago, when I was grass-high to a knee-hopper, I used to record tunes from the radio onto compact cassette (If you are the copyright people reading this, then, no, no I didn't). I would then put the cassettes in my portable stereo and listen to them on the way to geek school. If you were young in the 70s, 80s or early 90s, then it is likely that you did the same.

An actual compact cassette tape actually from back in the actual day

When compact cassettes became obsolete, I didn't miss them. By the mid 90s I had a growing collection CDs and a decent PC hooked into my stereo amplifier in place of a tape deck; and the transition to digital format was seamless, albeit, streaming had replaced recording from the radio.

Today, however,  I found myself doing what I once had always done, except instead of recording tunes from the FM radio onto compact cassette, I was listening on digital radio on my LaMetric Time device. And instead of compact cassette I am using the feature of Cortana on my phone to identify music and then head over to the Groove app to place them into a playlist.

Cortana at work on my Lumia 950
When I said that I don't miss compact cassettes, that is something of a lie. I do. I think that there is something intangible about music on cassette. There is a joy to using them akin to tinkering with a vintage car, or keeping a retro computer alive. It has something to do with the clunk click of the rewind mechanism, or the feel of a chunky plastic cassette in your hands, or maybe it was because you had to write the track listings on a piece of cardboard with a pen. Maybe it was this investment of effort that makes the format enjoyable. If someone gave you a mixtape back in the olden days, then it meant that they really liked you.

I have often considered buying a cassette player to relive my compact cassette days. Unfortunately, apart from a small revival movement amongst some genres of music, compact cassettes are not a viable storage medium beyond the sheer joy of operating them. I have encountered a couple of virtual cassette apps, but they really aren't the same. To the current date I have avoided taping digital radio onto virtual compact cassette, but it really is just a matter of time until I do!

Tape recorder for Windows Phone, available also for Windows 10, and yes, there are a load of cassette apps for Android devices as well, I've looked.
I am not sure what the future will bring. I am hoping for an embedded brain implant that - as soon as someone walks into the room - automatically plays their theme tune into my ear, and plays incidental music so I know when I am in peril.

I can dream.

Well, that's it for now. I will of course post the moment I get a new compact cassette player. Until then, you  might like to read about some more retro computing stuff, or, I don't know, perhaps you just find out your Starwars name or something.

New characters in Have Spell Will Travel

Following some feedback from players, I have implemented some new characters into Have Spell Will Travel (and I intend to add some more soon!).

What is Have Spell Will Travel? Only the best 2D text-based adventure game ever! In #HSWT you can choose one from over two hundred characters in an attempt to complete various quests. You have at your disposal 15 statistics that describe your character. Each challenge will require you to test these statistics, however you are never told how difficult the challenges are. It is up to you to work out how best to tackle a challenge, and up to you to decide whether you will use your magical items to assist you.

Character sheet for a Dwarf Adventurer. Dwarfs are good at 'Endurance' and 'Intuition' based tasks.
Here is an example of a challenge.  The Rabid sheep can be tackled by testing one of five of your stats, but some are more difficult to complete than others. Even though my Dwarf is better at combat than hiding, it may be the case that hiding is easier to complete than combat. Success at Have Spell Will Travel is a careful blend of luck, lateral thinking and extreme violence (well, not the last one).

I have recently added three new characters: The Treant, the Feline and the Robot. Where the Treant is strong and wise, the Feline is a stealthy warrior. The Robot on the other hand is extremely tough and intelligent, however it cannot eat or drink potions; nor can it visit the healer or be turned into a Vampire. This is Have Spell Will Travel the hard mode, because it has not escaped my attention that the robot cannot replenish lost lives in any way. Maybe I will fix this in the next version, with some sort of robot puncture repair kit.

If you have read this far, then it is likely that you will really want to just click this link and play it.

If you enjoy #HaveSpell, then do please let me know (especially if you defeat Warren Fogbender, meet Bert or find the whereabouts of the Armoured Weremole).

Depth First Search in Python

Well, it has been a while since I posted some code onto these pages, so what follows is some Python 3 code for a depth-first search as I taught it to some students today.

The code uses a stack to implement the depth first search. The output shows the nodes visited.

I shall use the following graph as an example. The graph has been coded as an adjacency list using a dictionary where the nodes are assigned integer keys and their value is a list containing the nodes that they are connected to.

A graph representing a maze with ten nodes featuring closed loops. You can ignore the path leading from 9. I have chosen a maze that cannot be solved by following the walls method (it will ignore node 5)

The code:
(Also available as a download from OneDrive because it is highly likely that it won't work well pasted from the browser.)

class mystack:
    def __init__(self, size):
        self.__stack = []
        self.__size = size
        for i in range (size):
        self.__tos = -1

    def peek(self):
        if self.__isEmpty():
            return (self.__stack[ self.__tos ])
    def push(self, item):
        if not(self.__isFull()):
            self.__stack[ self.__tos + 1 ] = item
            self.__tos += 1
            print("STACK OVERFLOW")
    def pop(self):
        if not(self.__isEmpty()):
            self.__tos -= 1
            return self.__stack[self.__tos + 1]
            raise StackEmpty("Stack is empty")
    def __isEmpty(self):
        return (self.__tos == -1)

    def __isFull(self):
        return self.__tos == self.__size-1

    def display(self):
        for i in range (0, self.__tos+1 ):
            print (self.__stack[i], end=", ")

class dfs(object):
    def __init__(self):
        #map is the adjacency list
        #visited keeps track of which nodes have been visited
        #stack is the stack of current nodes under investigation
        self.__map = {0: [1,5,4], 1:[2,0], 2:[3,1,6], 3:[2], 4:[0,8], 5:[0,6,9,8], 6:[2,7,9,5], 7:[6], 8:[4,5,9], 9:[8,5,6]}
        self.__visited = [False, False, False, False, False, False, False, False, False, False]
        self.__stack = mystack(10)

    def main(self):
        start = 0
        current = start
        solved = False
        while not(solved):
                print("exploring node", current, end='')
                if not(self.__completed(current)):
                self.__visited[current] = True
                next = self.__findNextNode(current)
                if next != None:
                    current = next
                    current = self.__stack.pop()
                    print("...deadend...backtracking to", current, end='\n')
            except StackEmpty as e:
                #assume maze is solved
                solved = True
        print("\nMaze fully explored by dfs :-)")

    def __findNextNode(self, p):
        #finds next unvisited node in the adjacency list
        nodes = self.__map[p]
        i = 0
        while i<len(nodes):
            if not(self.__visited[ nodes[i] ]):
                return self.__map[p][ i ]
                i += 1
        return None

    def __completed(self, p):
 #returns true if node p has been fully explored
        nodes = self.__map[p]
        i = 0
        while i<len(nodes):
            if not(self.__visited[ nodes[i] ]):
                return False
                i += 1
        return True


class StackEmpty(Exception):
    def __init__(self, value):
        self.value = value
    def toString(self):
        return self.value

app = dfs()

The output

exploring node 0
exploring node 1
0, 1,
exploring node 2
0, 1, 2,
exploring node 3...deadend...backtracking to 2
0, 1,
exploring node 2
0, 1, 2,
exploring node 6
0, 1, 2, 6,
exploring node 7...deadend...backtracking to 6
0, 1, 2,
exploring node 6
0, 1, 2, 6,
exploring node 9
0, 1, 2, 6, 9,
exploring node 8
0, 1, 2, 6, 9, 8,
exploring node 4...deadend...backtracking to 8
0, 1, 2, 6, 9,
exploring node 8
0, 1, 2, 6, 9, 8,
exploring node 5...deadend...backtracking to 8
0, 1, 2, 6, 9,
exploring node 8...deadend...backtracking to 9
0, 1, 2, 6,
exploring node 9...deadend...backtracking to 6
0, 1, 2,
exploring node 6...deadend...backtracking to 2
0, 1,
exploring node 2...deadend...backtracking to 1
exploring node 1...deadend...backtracking to 0

exploring node 0
Maze fully explored by dfs :-)

This clock is the Internet in a box

I recently bought a LaMetric Time.

What is it?

LaMetric Time is an Internet connected clock with a difference. I like to think of it as a smart watch in clock form. A smart watch for your desktop. It has just three buttons (forwards, backwards and 'action') and a cheerful LED display. Although it is a clock, it differs from your current wall or desk clock with one phrase: 'App store'.

The LED technology in the LaMetric Time defeats all ut my best attempts at capturing a good image on my cameras. See the links for better images. The display scrolls like those you see in airports or shops, or whilst waiting for your doctor's appointment. I can't stress enough how the display actually looks much better than shown in the image captured on my cheap Samsung camera above.

Setting up

Getting going with LaMetric is painless. You simply pair it with your Android device and point it at your WiFi connection. As with such devices there is a usually a software update, which it performed fairly quickly although there was no indication of how long this would take. Ultimately, it it not take long. The device picks up the correct time from time servers on the Internet and you are good to go.

LaMetric Time is a clock...durr!

As you would expect, the date and time are displayed in big bold chunky 8-bit-style characters. There are also apps for stop-clocks, calendars, timers, alarm clocks and count-downs. You can set LaMetric so that it displays just the time, or a single app, or you can have it cycle through all the apps. You can even customize for how long the apps display on screen.

One really nice feature is the sunset and sunrise time. I like having this information on my desktop. It also shows the number of hours of sunshine (important as we move from our vitamin-D deficient UK winter into the ever-so slightly brighter months of summer). You can also choose to show the moon phase, which keeps me happy, and could help avoid any unpleasant entanglements with werewolves. Again.

LaMetric Time is a Radio

Initially I was disappointed with the 5 preset radio stations my LaMetric came with. That was until I found the 'plus' button which lets you add from over 3000 Internet radio stations including those you also might expect to also get on FM radio. There is an audio-out socket at the back and I have mine hooked up to my stereo pre-amp. The sound quality is really rather good.

Message Board

This app turns your device into one of those scrolling display tickers you see in shop windows. If you feel like you need one of these in your life, then maybe you are a shop window, or you own one. I haven't found a use for this yet. I am not sure why I would want to display a scrolling message to myself, however I guess this app is for people you want the LaMetric to be a public-facing device.

The LaMetric companion app interface running on my Samsung GT-N5110. Just press the plus button for more apps!

All the other apps...

Although not supported quite as well as other smart products on the market, there is an app store full of all-sorts of stuff for you to personalise your desk clock. One of my favourites is the hugely pointless 'Coffee Counter', which tracks how many coffees have been consumed by LaMetric users (actually it keeps track of how many times someone has pressed the action button whilst using the app, but close enough). Somehow this helps you feel closer to other coffee drinkers.

The Asteroid Today app shows you how close we as a planet came to a collective inhalation today. Phew. Most of them miss.

Scrolling through the apps in the app store I can see dozens of apps both for productivity and entertainment: News headlines, motivational quotes, Facebook fan counters, Chuck Norris jokes, London Underground status and Weather to name just a few.

Furthermore you can connect your LaMetric time to other Internet of Things such as the Amazon Echo or Hue lights. Or you may just wish to use it to stream music from your phone through the Bluetooth speakers.

The really cool part.

LaMetric gets really interesting when you connect it to your IFTTT account. If you didn't know, IFTTT lets you connect all your favourite online services (well, perhaps not all of them, but more are arriving all the time).

With IFTTT you can create 'applets' or 'recipes'. Litterally, if this happens, then that should happen. There are two ways this can play with your LaMetric. This first is so you can receive notifications on your LaMetric in the form of a notification sound, icon and short message, and the other is through the IFTTT indicator app. This leaves a permanent message appearing on your device (until the next message appears). You can also use your LaMetric device as an IFTTT 'do' button, should you so desire.

I have found it most useful to receive notifications whenever new YouTube videos have been uploaded onto my favourite channels. I wouldn't want to miss the next Lindybeige.

I have other applets set up to inform me of new tweets, mentions or followers on Twitter and other social media including Yo. I get a notification whenever the International Space station passes overhead along with news and weather from Mars. I even have a notification telling me when my bedtime is (it was twenty minutes ago).

In fact, there really is no end to what you can do with your LaMetric once you have IFTTT working with it. I suggest you head over and buy one now. They really are an awesome tech toys.

Don't believe me? Perhaps this video from Techmoan will be of interest to you.

Or, perhaps you would listen to the Elders of the Internet?

That's all from me for today. +1 geek experience point for LaMetric Time (even though the calendar app does get the date format wrong!)

PS. If you enjoyed this post, then you might like my RSS news ticker for Raspberry Pi.

Can you use a BBC Micro as your main computer?

Well, the short answer is no, (but I have been trying)...

For a computer to be of any use, I figure that it must be able to do the following well:

  • Connect to the Internet and have a fast, secure browser.
  • Provide applications for work flow.
  • Provide applications for playing media files.
We'll look at these in turn, but first some information about the BBC Microcomputer.

A Graphical User Interface for the Beeb

The BBC micro, (or 'Beeb') was an 8-bit microcomputer commissioned by the BBC and built by Acorn in 1981. It was highly popular in education in the UK and survives today in the hands of enthusiasts such as myself. If you need to get your beeb 'fix' then there are a number of emulators available, including browser-based, and desktop (I recommend BeebEm). There is, however, nothing like running a vintage machine for the full experience. I recommend Retroclinic for all your BBC computer needs, including the datacentre (more about that later).

The Internet

While Acorn produced Econet, their own version of LAN connectivity for the BBC microcomputer, in the modern world this is not going to get you very far. It is possible to connect a modem to a BBC micro computer, however you must keep in mind that this machine was build before the World Wide Web was invented. You will be very disappointed if you need to upload your duck faces to Instagram on a beeb. You will find that you must keep your Twitter-rants to yourself and it will be virtually impossible to see what everyone is having for dinner on Facebook.

As a main computer, the BBC micro falls at the first hurdle. This was a pre-Internet machine and sadly, you will need a modern computer to experience the modern Internet.

That should be enough to kill anyone's dreams of using the BBC micro as a main computer, however there are two other critical points of failure:

Work flow

Whatever your job, business or hobby, you will likely need to run some Office software, or other such desktop publishing or productivity tools. If these are mission-critical to you, then switching to a 35-year old computer is not an option. The Beeb doesn't fall flat completely, however. Most BBC computers were packing work-flow software, and although they seem primitive now, you can get stuff done. My BBC Master computer has a word processor, spreadsheet and text editor built into ROM, and thanks to the Retroclinic datacentre it is possible to transfer files from the beeb onto my Windows 10 PC.

That being said, and despite having some, albeit ancient productivity tools, the beeb cannot replace my PC as a productivity machine (however I will talk about what it CAN do later).

Media center

I am currently typing away on a modern laptop, and streaming music on a chromebook which is plugged into my amplifier. I have a library of music, movies and photographs stretching back nearly two decades stored on a network drive, and if any computer is going to be my main computer, then it will need to handle my entertainment needs. For a while, I used a Raspberry Pi as my main music jukebox, although I now use Microsoft's Groove app. Whatever your media needs, your BBC microcomputer is not going to do it. 8 bit machines simply do not have the codecs required to play audio and other media files. Although digital cameras were available for the BBC, they are nothing compared to their modern counterparts.

So, it seems like the BBC computer cannot be used as a main computer. 

If, however, you accept these limitations, then the beeb still has a lot going for it. In the rest of this post I shall talk about some of the cool things my beeb does for me.


My computer is a Master series with 128K RAM and a second processor. The caps were replace about a year ago, so there is no danger of the power supply failing anytime soon. The battery for the CMOS RAM is also in good condition having been replace fairly recently. I have a dual-drive disk drive, however the main way of storing files is using the Retroclinic datacentre. This little device provides four virtual RAM disks, a small non-volatile 64K RAM disk and it also has 2GB compact-flash cards which provide four 500MB hard disk drives. There is a USB flash drive sticking out of the front storing literally hundreds of disk images which can be transferred into RAM in just a few seconds.

My microcomputer has 'pride of place' on my desk and supports a 32 inch monitor. When I first got it I promised myself that I would use it as an 'everyday' machine in order to justify its position on the desk.

I often use the BBC as a notebook. The EDIT program built into ROM is always available, and I use this to write notes to myself as well as my diary and other documents. I didn't go as far as writing this blog post on it, however I just realised that I could have done, and now I wish I had. I also use the spreadsheet program to help manage my accounts, as well as other diverse tasks including calculating the most cost effective pizza as well as helping calculate options in online games. The Beeb performs all of these tasks admirably and there really is no need for a modern computer. I am waiting for the time a colleague requests some trivial or not critical information from me, expecting an email, but instead, as I am a mischievous soul I will provide them with a text file on a portable USB disk drive. Mwah ha ha ha HAAAA!

Although the BBC was not well-know for it's games, this computer did have an extensive library of titles available for it, and the beeb was no slouch when it came to graphics and sound, for it's time. Most games are available to download online from such sites as Stairway to Hell. The best experience can be had from games with a focus on gameplay rather than graphics. Classic games such as chess, backgammon, connect-four, patience, solitaire, UNO, Yahtzee, NIM, Mastermind, draughts, reversi and cribbage all work very well on a BBC. There really is no need for a modern PC to play these games as the beeb will be a very challenging opponent.

Being beaten at Minesweeper on the Beeb (again).
Armies of programmers have over the years written countless applications for the beeb. I often trawl through the disk images that came with magazines in the eighties to find apps that are still useful today.

Here is an app for finding the next few phases of the moon.

This app calculates the dates of future eclipses and even shows a graphic of what the Earth's shadow will look like over the moon.
Okay, it's not quite Google Earth...

The beeb has a (very good) version of BASIC held in ROM. For this reason it is very easy to write your applications for the beeb. You can read about my early attempts here. I currently have applications for telling me the time and date, as well as useful stopwatches, countdowns and alarms (yes, I use it to help me cook my dinner). I have a perpetual calendar application and a calculator. All of which get regular use. I am currently working on a dictionary program.

My very useful calendar/clock app.
So, in summary, can you use a BBC microcomputer as your main computer? No, but it does make a very handy, and tremendously fun second computer.

If you are still awake and for some reason you liked this post then you might like to read about my other BBC micro posts, or even my adventures with the Raspberry Pi. Perhaps you just want to know how many floppy disks would be needed to store all of Google Maps?

Either way, I hope you liked this post. Please come back soon for more geeky stuff.

Life hack 03

It is quite possible that this one doesn't count as a life hack because it is actually a little-known design featured added by many manufacturers, however this will make your life easier, and of the two people I asked, neither had heard of it before (scientific, I know).  When I said it was a 'little-known' feature I think it is safe to assume that you don't know about this trick. If you do, then award yourself one geek experience point and move onto something else.

The problem
You will be aware of the frustration that accompanies the use of kitchen foil, cling film or any other such product that comes on a cardboard tube inside a cardboard box. The roll move often than not just comes out of the box whenever you try to grab a length of it. With cling film this is even more frustrating as the vexatious stuff has a tendency to stick to itself.

Push the tabs in. What do you mean, you've never read the side of the box before?!

The solution:
Are you aware that manufactures place two flaps at the side of the box? These are designed to be pushed in through ninety degrees. They act like an axle through the ends of the tube which makes pulling a length of product from the tube much easier.

Usually when the party is REALLY swinging, I get my collection of packets out to show off.
If that has left you dazed in wonderment, then you might like to explore some more life hacks, or perhaps you came here for the Tabloid Headline Generator or you just want to know how many floppy disks it would take to store all of Google Maps.

You're writing dates wrong, probably

I've been having this argument with people recently. We write dates wrong.  Here's why:

Today is the 18th day of the second month of 2017 (unless of course, you are reading this in the future, in which case, how long did you have to wait for hover-skateboards and what do teleporters feel like, and does anybody in the future remember those couple of months when American had President Trump?).

Most people will say that today's date is "The 18th of February 2017" and will sign documents with digits 18/2/17, or 18/02/17 (or if in America, the even more horrible 02/18/17).  The problem is of course the confusion here as to what the digits mean. Is it the 18th day, or the 2nd day, or the 17th day of the 18th month of year 2....?

When you stop to think about it, writing dates in either British or American formats is deeply confusing and fundamentally illogical.

Much better to write the date as 2017-02-18.

That's YYYY-MM-DD.

There are a number of reasons for this.  Firstly, documents date stamped in this way will automatically be sorted into chronological order. Someone sent me a document today from a recent meeting. The filename was DD MM YY. I can only imagine what a mess their 'my documents' folder looks like. Perhaps they like having all files written on the first day of every month next to each other? Or maybe they are The Doctor, from Doctor Who? You see, time is not a big ball of wibbly-wobbly timey-wimey 'stuff'. It is a strict line.

Fun, but wrong!
Secondly, we have always written time in the same way. Currently, looking at my clock, it is 11:47 in the morning. My accurate clock tells me that it is 12 seconds into the 47th minute.  That is 11:47:12, or HH:mm:ss.  That means that the current position in time could be written as:

2017-02-18 11:47:12

Notice that the largest unit of time is on the left. As you move through the digits, the units of time become progressively smaller, from years to months to days to hours to minutes.

Is there anywhere else that we also apply this logic?  Consider the number "three hundred and forty nine".

It would seem logical to write this as "349", with the largest unit on the left, getting progressively smaller.  It would be very silly to write it as "493", or even "49 and 300", or "four hundred minus fifty-one".

How about your postal address? You probably also write it in order of size:

Little person
Some house
A Street
In a little town
Your massive planet

Of course, I am only talking about written dates here. I think it is perfectly acceptable to say "Saturday the eighteenth of February", or "it is nearly ten past two" in spoken English.

In fact, you shouldn't be surprised to discover that there is an international standard for date formats (and it makes incredible sense to adopt it all in written documents). It is basically what I have been banging on about in this rant.

No longer should you accept the problem of interpreting a date written as 04/05/11 as being the fifth of April in the late Roman period, or possibly the eleventh of May, or possibly April, in, um, in year 4, or maybe 5. Oh, my brain!

Right now! I mean, just then....no, it's gone.

If you enjoyed this rant, then you probably want to take a long hard look at yourself, however you might also like to read about why Americans drive on the wrong side of the road or perhaps you would like these articles about calendars.

See you for some more nerdy stuff in the future......

Life hack 002

I've just discovered this really effective  use for cardboard tubes.  No longer will your drawers be a tangle of loose wires. Simply post one or two loosely folded wires inside the tube and hey-presto! Tidy wires. You will also get a warm fuzzy feeling from recycling household waste (unless you recycle anyway, which, of course, you should, in which case you get a warm fuzzy feeling from knowing that your wires are safely stored tangle-free).

Should you like this post, then you might like all of our life hacks, or maybe you just want to play a 2D, text-based adventure game.

Quiz Magic

Quiz Magic is a program I wrote a few years ago for some teachers who wanted to be able to set custom-made starter and plenary activities in their lessons based on key-words. 

Quiz Magic simply takes a keyword, or sentence and allows you to perform up to four actions:

  1. Remove vowels, eg: "SUPERDECADE GAMES" to "SPRDCD GMS".
  2. Mixup, eg: "SUPERDECADE GAMES" to "SUACRPDDEEE GAEMS". This scrambles the middle letters of the words, but leaves the first and last the same. This sort of anagram is weirdly easy to read so long as the word in question is know to the reader.
  3. Anagram, eg: "SUPERDECADE GAMES" to "DEAUESRDCPE MEGSA". This turns all the words into anagrams and is much more difficult to work out.
  4. Substitution, eg: "SUPERDECADE GAMES" to "5UP3RD3C4D3 G4M35".

All of the functions can be chained one after the other, for example to create an anagram with the vowels removed.

If this is something that you need in your life then the executable and source code is available on my OneDrive by either clicking the image or following the link.

Should I ever decide to work on this app again then I shall either add functionality to allow bulk uploading of words from a spreadsheet, or indeed, make it available as a web app.

If you are still with us, then you might like to read about my Dementia Day Clock, or other vaguely education-related posts.

How many floppy disks would it take to store all of Google Maps?

So, in a moment of boredom today I decided to do a back-of-the-envelope calculation. I wanted to know what size of floppy disk mountain it would take to store all of Google Maps. And by 'back of the envelope', I mean that I fired up my trusty BBC microcomputer and booted into the ViewSheet spread sheet.

There is surprisingly little information on the size of Google Maps online, however I found a source that quoted 20 Petabytes from 2012. I estimate that this is about one million times the amount of 'data' sent by the US postal service each day, or about one thousands times the volume of data that Facebook deals with each day. Armed with this information, and the capacity of a floppy disk I went to work.

Now there is some confusion in the computing industry as to whether MB and KB are base 10 or base 2 prefixes. Sometimes they seem to be used interchangeably when they are clearly different number bases, however for arguments sake I have taken a 1.44MB disk capacity to be 1457664 bytes. For simplicity I have ignored any capacity used by the disk filing system allocation table.

There is little argument as to the height of a floppy disk: 3mm.

So if you stored all of Google Maps onto floppy disk, how high would your floppy disk mountain be?

Well, by my calculations you will create a stack that extents four-thousand, eight-hundred times higher than Mount Everest, or 11% of the distance to the moon.

My own floppy disk mountain. This doesn't even come close.
Do please take time to check my calculations and then come back to me if I have gone wrong somewhere.

Either way come back soon for some new nerdy stuff, or if you are still here, you might like to read about the Adventures of Sir Eric the Unready, or just hack some BASIC code together.

#floppy disks
#Mount Everest

This blog is also available on floppy disk. Please send a self-addressed envelope...

Where's your petrol cap?

My car recently broke down leaving me stranded and awaiting recovery. Following a freezing cold wait by the side of the road (for two and a half hours) I was picked up and the car and I were taken to the nearest car dealership, which just happened to be where I bought the car from in the first place. Following a heated discussion I was finally supplied with a courtesy car.

So I found myself driving an unfamiliar Hyundai with a bare trickle of petrol in the tank. I promptly went to the nearest petrol station to fill up (my American colleagues call it 'gaaas'). As I joined the queue I was hit by the sudden panicked thought that I did not know which side the petrol cap was located.

Rather than trying to peer out of the window to see if the cap was indeed behind me on the driver's side, or jump out into the cold and run around the car looking like a fool, I remembered a rumour I had heard that the dashboard of modern cars indicate the location of the petrol cap.

Look for the little arrow on you dashboard located near the petrol gauge. The arrow indicates the position of the cap. Here it is pointing left, so the cap is on the passenger side.

Petrol cap side indicating passenger side (in a UK car).
The other arrow in this image shows an estimate of the number of miles I can travel before requiring another top-up. This is only an estimate, and it is fun watching the number change as your fuel efficiency changes. You will get more miles to the gallon when travelling at a constant cruising speed in fifth gear than when idling in city traffic.

My American or European readers might be surprised to discover that here in Britain we drive on the left (by which I mean the 'right' or 'correct' side of the road).  Why is the left the best side of the road to drive?  The number one reason that reason on the left-hand side of the road is perfect for the right-handed driver is that it keeps your strongest arm on the wheel freeing your weaker arm to operate the gears/hand brake/entertainment system. This allows you to be more responsive when making unexpected maneuvers.

Don't believe me? You just need to look at road-traffic deaths by country. Countries that drive on the left have fewer fatal accidents.

Road traffic fatalities by country. The lighter the colour, the safer the roads.

Log of base 2 calculator

Simply because I found myself needing to work out the log of base 2 for a series of numbers whilst studying and comparing several 'divide and conquer' algorithms, I decided to write a simple log of base 2 calculator. You can try it by following the link below.

Log of base 2 calculator running on my Lumia 950
As you can see from the screenshot, the applet keeps a record of all of your calculations until you refresh the page and the results are returned with 15 decimal places accuracy.

It is hoped that the page will be of use to students of computer science, mathematics, or any of the natural sciences that require logs of base 2. It is also hoped that the app will be of use to anyone who simply loves their powers of 2 (and who doesn't?).

Stuff I use my microcomputer for #01 Chess

Avid readers of this blog will be well aware that I am a retro computer hobbyist, with my favourite machines being those produced by Acorn in the 1980s. You see, the 1980s were not only the days of Rubik's Cube, Ghostbusters, Tiffany, dreadful fashion and Margret Thatcher (oh, I've made myself sad) - for the 80s was also the time of the BBC microcomputer (yay, happy again!).

So, I've decided to start a series of posts about what I still use my BBC microcomputer for. Or, at the very least, a series of things that I would like to do more of.


Acornsoft Chess

Acornsoft Chess running on vintage hardware
Acornsoft Chess is a pretty decent chess program, all things considered. It features all legal chess moves including en passant and minor promotions. Moves are entered using pure coordinates, as shown in the image above. The software also has and 'edit' mode to explore different game positions and solve 'mate in two' type puzzles. Most importantly for the game's longevity is a 'save' feature, because leaving a microcomputer switched on permanently is not really an option.

There are ten levels of play, and as I consider myself to be of fairly average ability I have recently moved up to level 5, and as you can see from the image I am holding my own in this epic three-hour battle.

Acornsoft chess is not as speedy as a modern implementation, but this matters not because, for one thing, what do you expect from a 6502 processor with 32K RAM? The other thing is it is about as fast, if not better than an average game of online postal chess.

Well, that's it for today on pre-Internet Chess. I also play on Chess Time, so any readers who want to challenge me, my user name is superdecade and my current chess rating is 'very poor'. Please, if you do send me a challenge, keep the move limit four days or longer.

Well, must dash, it's my move.