About Me
Thursday, 14 August 2008
The danger of superfluity
This dialog is very useful, it stops the GUI bombing out totally and presents the user with the sad news that something has gone wrong and allows them to report such an error. If you are a developer it even lets you enter debugging land. Today however I came across a subtle issue with this dialog that I believe has been there for several years. The dialog is headlined with the phrase "Unknown Error".
"Unknown Error?" "What's wrong with that?" I hear you cry. Well, we're all accustomed to seeing such messages, indeed I believe this text appears in this dialog because someone (possibly even me) saw it in other examples, and I wouldn't bother to post here if this problem wasn't one that extended beyond the domain of a commercial app in a very limited market. My issue is this, what is the value of the word "Unknown"?
Does it reassure the user? No, quite the opposite.
Does it distinguish the error case? No, if it were a known error then we should either have handled it of at least linked the user back to some information about the bug (for various reasons this isn't possible in the real world scenario for this application). In practice if a user reports this bug however they will often find out that this really is a "known error" from the support staff.
So what does the word "Unknown" get us? At best it adds nothing, at worst it scares the users and can even be plain wrong. Perhaps we would all do well to think a little more about what we say to the users
Friday, 4 July 2008
On the subject of Bill Gates retirement
However you feel about the man however he is one of the defining figures of his generation and as an economic entity he has the power to change the world, and I'm glad to say in his retirement he intends to spend more time using his fortune to rid the world of some of it's real problems through the Gates Foundation.
As for the computer industry, well the era of Microsoft's domination is slowly ebbing away, but I'll leave it to Richard Stallman as ever to present the ethical compass for the industry in this rather nice piece at the BBC:
http://news.bbc.co.uk/1/hi/technology/7487060.stm
Thursday, 3 July 2008
(defun list-monospace-truetype-fonts ()
"Provide a list of available monospaced truetype fonts on this
machine"
(interactive)
(set-buffer (get-buffer-create "Monospaced Fonts"))
(call-process-shell-command "fc-list :spacing=mono:scalable=true family | sort" nil t)
(setq buffer-read-only t)
(switch-to-buffer-other-window (current-buffer)))
You can set these fonts in a number of ways, currently I am getting the most joy using this form:
(defun safe-set-initial-font (fontstring)
"Set the default frame font"
(interactive "s")
(setq initial-frame-alist
`((font . ,fontstring)
(background-color . ,(face-background 'default))
(foreground-color . ,(face-foreground 'default))
(horizontal-scroll-bars . nil)
(vertical-scroll-bars . nil)
(menu-bar-lines . 0)
(height . 40)
(width . 80)
(cursor-color . "red")
(mouse-color . "green")))
(setq default-frame-alist (copy-alist initial-frame-alist)))
That's pretty nasty, but it gets round a bug where opening a new frame results in a different font being used.
Wednesday, 2 July 2008
Things that happened yesterday


Hmmm I am aware that I should put more technical content here, trouble is I don't have much to say at the moment. Work is dragging on with the same old problems with different hardware. Outside work I am actively working on something (smallish) using Erlang to get my skills in that area up to scratch before starting something else (still smallish, but bigger).
Monday, 30 June 2008
The defiant one.
This weekend was Silke's birthday.
I took time out from writing webstore code in Erlang using YAWS to take some photos.
Tuesday, 24 June 2008
A bug's life
It starts with the Aphids. When we put our plants on the balcony this year those dastardly greenfly hit them with a vengance.
We tried a natural remedy, based on soaked nettles.. but without success we were left with no other option but to pray for ladybird or hover fly lavae. Just when we thought we would never get any luck we spotted the first ladybird lavae. They're ugly little critters but with plenty of aphids to munch on they soon grew big and strong.
One day they were looking very sleepy and hanging out on the leaves of a lavendar bush. The next morning they had turned into little pupae stuck to the undersides of the leaves. Just over a day later the world had some brand new ladybirds, ready to build a new generation of aphid munching predators. Hooray ladybirds!
Monday, 23 June 2008
Geoff embraces his new life
Nic seems to specialise in taking shots of me in compromising positions.
Here I am at the local Biergarten (Lochham) , drinking König Lüdwig dunkels bier (my favourite German beer) and supporting Germany in the match against Portugal.
For some reason it looks like my ear was bleeding, it wasn't.
Role on Turkey.. probably not one to be in the center of München for given the reaction of the Turkish population here following their victory the following night.