Sunday, 17 October 2010

Strange (and Strangely Familiar) New Worlds



You may have seen in the news that the mathematician Benoit Mandelbrot has died, aged 85. Most people (myself included) don't know much about the mathematical significance of his work, but are familiar with the pretty pictures derived from the Mandelbrot Set.

When I was a child, I used to spend a lot of time messing around with home computers. You used to get magazines with programs you could type in, and several of them had fractal drawing programs. Unfortunately, home computers weren't anywhere near as powerful as they are today, and a single, relatively low-resolution picture could take hours or even days to draw. I was never that patient.

Fortunately these days you can download software that lets you zoom around the Mandelbrot Set and other fractal sets in real time. Here's a screenshot I took from the xaos program:


Mandelbrot's strange but beautiful world is made from relatively simple looking equations, which is funny considering how complicated some of the equations get which attempt to describe our more familiar surroundings.

Talking about familiar worlds, I've been watching the cult 70's British TV show Blake's Seven.

I vaguely remember it from the first time round. As with so many of these old programmes, I'm surprised that it doesn't look a lot worse. Some of the special effects are a bit ropy, as are some of the plots, but it's still enjoyable. When I was off work the other week with an incurable upper respiratory infection (otherwise known as a cold), I spent a lot of time groggily watching one of the box sets.


The story is about a group of rebels who are fighting the evil Earth Federation. They've got a super hi-tech alien spaceship called the Liberator which is equipped with a teleport device - something that the Federation don't have.

Most of the planets look strangely like Earth. To be more precise, they look just like quarries, beaches and forests that you'd find in Britain. All of the inhabitants of these planets speak with British accents. I'm sure that this has nothing to do with the fact that this was a low budget British TV production, but just that this is what you'd expect the future to be like.

The planets are generally inhabited by humans because they are part of the Federation's Empire. It's not unreasonable to assume that such an empire would start in Britain - after all, the British are historically the world's experts when it comes to empires. And it's not unreasonable to suppose that humans would settle on Earth-like planets, with temperate climates. Just like in Britain.

The implausible part of all this is the teleport. It's a bit like the Star Trek one - the crew teleport to and from remote locations by standing in a special device that beams their atoms around like radio waves. In Blake's Seven they have to wear teleport bracelets, which also have communicators on them.

I'd imagine that if scientists ever perfect teleport technology (and they are working on it), you'd have to beam from one teleport machine to another, a bit like sending a fax. The idea that you'd want to send your atoms to some random location seems a little dodgy. For starters, how do they get reassembled at their location without another machine? How do you make sure that you end up standing on something, such as the ground or a floor, rather than ending up in mid-air? And it gets worse. How do you avoid teleporting into someone's bathroom, or some other potentially embarrassing situation?

The other problem that the Blake's Seven lot have is getting themselves teleported back up in an emergency or embarrassing situation. They have to radio back to the Liberator, and then someone has to be ready by the teleport controls. This is fine in theory, but usually there's some problem on the ship which means that the crew are somehow unable to do this. Until the last minute, of course. So why don't their magic teleport bracelets have a "Shit! Beam me back up now!" button?

Anyway, if you'll excuse me, it's time for me to teleport back to reality and get something to eat. I hope you had a good weekend.

Saturday, 2 October 2010

Driven to Drink

I haven't posted in a while, because I was too busy dying. Which I think you'll agree is a reasonable excuse. Or is it?

I tend to worry about my health, especially when anything happens that I can't explain. I don't visit doctors very often, but when I do, it's usually because I'm afraid that The End is in sight. I realise that this is irrational - after all, if I really am that far gone, they probably won't be able to do anything for me. Nevertheless, rationality does not play much of a part in my health worries.

I have been living a slightly healthier lifestyle after discovering that my blood pressure was too high. I've been walking more (though still probably not enough), and drinking quite a bit less. This all went out of the window when I started getting various aches and pains.

A quick look on Wikipedia confirmed my worst fears - it was almost certainly something major and life-threatening. So I started to get worried. I started to go through my DVD collection to work out which ones I needed to watch first, and which ones might be better viewed through a morphine-induced haze near The End (I'm saving the remake of The Taking of Pelham 123 till last, having twice failed to get past the first 10 minutes). Staying at home reading blogs just made me more aware of my aches, so I went to the pub more.

When I finally got round to booking an appointment with the doctor, he was very reassuring. It was nothing major. I should avoid doing any heavy lifting, and stop worrying. However, he did take two armfuls of blood for a range of tests just in case. You might think I'm exaggerating, but they started on my right arm and it dried up before they had enough. Why can't the NHS be more like Star Trek where they just wave a whirring scanner over you?

The nurses' uniforms are better, too

My brush with death still wasn't over. I was told I'd have to go back to the doctor because some of the tests had failed. Or passed, or whatever. I arranged for a doctor to phone (it was a Friday), but I managed to miss the call. I spent the weekend nervously sorting through my DVDs.

I went in on Monday. "I hear you've got some bad news", I said. "I wouldn't say that. Have you been drinking too much recently?", was his reply. "Well, actually, yes." He told me to drink less and go back to have another armful of blood checked out in a few weeks time.

So, reassured, I'm back to my more temperate ways - ODing on lemon juice rather than alcohol, and just going to the pub once or twice a week. Hopefully the next blood test will reflect this.

However, during my brief period of daily drinking, the pub had a Jack Daniels promotion. I've never really liked JD, but you could win all sorts of great prizes, allegedly to celebrate Mr Daniel's birthday. I was only after a T-shirt, but I had to get through several doubles to achieve this, winning badges and a hat along the way.

Whether I succumb to a fatal illness next week or next century, this is quite possibly the only time you'll see me wearing a hat - I really can't stand them.


Have a good weekend.

Sunday, 5 September 2010

View from the Sofa


This weekend has been lazier than most - I have hardly moved from my sofa, except for trips to the kitchen to top up on lemon infused soda water, and of course to go to bed.

I'm not ill, and nor have I broken any bones. After a busy week at work and without any childcare duties (Helena stayed at home as she wasn't feeling well), it's great to spend a couple of days doing very little.

However much rest the body gets, the mind refuses to remain inactive, so here's a list of the exciting things I've been up to. For completeness, I've also added the unexciting ones as well. I'll leave you to decide which are which.

Reading a book

I'm currently half-way through Robert Canigel's biography of the early-twentieth century Indian mathematician Ramanujan. Ramanujan had little formal mathemtatical training, and failed to get through college, mainly because they wouldn't let him drop all the subjects that didn't interest him (i.e. all the ones that weren't maths). Whilst pretending to work as a clerk (he spent most of his day working on his maths research) he wrote letters to various eminent British mathematicians, since none of the ones he knew in India could understand any of his theories. One of the Brits, G H Hardy, replied and ultimately Ramanujan came over here to study and work at Cambridge. Never in the best of health, and terribly homesick, he got ill and died at the age of 32, leaving a huge number of theories which no-one understands how he came up with, and becoming one of the most famous mathetmicians and geniuses ever.

Solving all the Sudokus

Someone in the pub showed me a newspaper article about the world's hardest Sudoku puzzle. He thought I might want to have a go at solving it. He was a little surprised when I told him that I'd go off and write a computer program to do it. After all, sudokus are soulless computer generated puzzles, unlike crosswords, and are best dealt with by technology rather than pencil and paper. Another regular in the pub loves solving them, but he had to admit defeat on this one, which I think justifies my approach.

There are plenty of programs out there to solve Sudokus, but I wanted to write my own. It only took a few hours to write, and it solved the puzzle so quickly that I've not been able to measure its speed (less than 5 milliseconds, even on my netbook). Of course, it doesn't just solve that one, but any of them. Though if that puzzle really is the hardest anyone's come up with, it just goes to show what a waste of time they are.

Running my Life from my Netbook

One problem with living on the sofa is that I'm out of reach of my computer. So I've been using the netbook that I bought the last time I was in the US. I'm not finding it too hard to type on the undersized keyboard, and I've set things up so that I can log into my desktop computer to copy files and read my email (I won't bore you with why I want to do the latter). One thing I do find, though, is that it's easy to hit the mousepad whilst typing, which isn't always ideal.

The US keyboard layout is a bit annoying as well, especially when programming. Quite a few of the symbols are in different places. I could just use a UK layout, but that gets confusing if you look down at the keys at all. I have a similar problem with my desktop, since I now have a Greek keyboard which mainly uses the US layout as well.

Looking for Regular Expression Jokes

Regular Expressions are a way of specifying patterns for searching things, mainly in text. I was sure that there must be plenty of jokes based on them, but I couldn't find any. Probably I didn't manage to use the correct regexp. Still as always, xkcd had something just as good.


Falling Asleep

I started watching the next Bond film - You Only Live Twice. Either it was boring, or I was tired, or both, but I didn't manage to stay awake to the end, so I'll have to watch the last half again to find out what happens. No doubt he saves the world. I wonder whether I'll manage to watch the remaining 17.

Getting Out More

Having read all of the above, or even just looking at the pictures, you're probably thinking "He really needs to get out more". And you're probably right. So, whilst this isn't strictly speaking a sofa-based activity, I might just make it to the pub this evening, to give a splendid finale to a wonderfully restful weekend.

I hope your weekend wasn't too hectic either.

Sunday, 22 August 2010

The Name's Bond

Recently I've started watching the James Bond series of films. I've never seen most of them before, which might surprise you, but I don't go to the cinema, since I prefer to watch films in the comfort of my own home, and I only buy DVDs when they're cheap, which means that I sometimes have to wait a while. A few weeks ago I found a box set of all 22 Bond films for £50, reduced from around £200. You can't go wrong at under £2.50 a film, right?


So far, I'm up to 1965 and Thunderball. The evil SPECTRE folks have stolen a NATO aeroplane carrying a couple of nuclear bombs. Luckily for our heroes at British and American Intelligence, they've decided to hide them at an idyllic island in the Bahamas. If they'd chosen somewhere without bikini clad secret agents and a plentiful source of Martinis, 007 would never have found them and Miami would have been nuked. And the world would have been spared from David Caruso's sunglass juggling act.

You don't have to get very far into one of these films to realise that plausibility wasn't given the highest priority by the moviemakers, but even so, I was disturbed by the ending of Thunderball. If you haven't seen the film, you might not want to read any further, as I'm about to reveal the ending.

SPOILER SPACE


ANOTHER SPOILER SPACE


I mean it. I'm going to tell you what happens at the end.


MORE SPOILER SPACE


You would never guess...


YET MORE SPOILER SPACE



...Bond finds the bombs and saves the world.

Anyway, at the end of the film, some random guy appears, tells the Bond girl (Domino - isn't that a bit masculine, or is it some kind of double entendre?) that he's disabled the bomb, and unties her (saving her from the evil baddie's cigar and ice torture routine). Just before the boat that they and 007 are travelling on crashes and blows up, Bond, Domino and Random Guy abandon ship. Random Guy complains that he can't swim, but our ever resourceful hero finds time to hand him a life belt, and come out with a hilarious one-liner as the boat speeds to the crash site.

After the explosion, Bond and Domino get into an inflatable dingy and are rescued. But what happened to Random Guy? The one who disabled the bomb and saved David Caruso? Did he not manage to get far enough away from the boat? This seems unlikely since it was travelling so fast that you'd have thought they sped the film footage up or something. Or is he still bobbing around with his lifebelt in the middle of the ocean?
Three would be a crowd

The person who comes up with the best explanation gets a holiday* to the Bahamas.

*Terms and Conditions

Judge's descision is final. No correspondence will be entered into unless bribes are involved.

Bribe must be provided in full before the judge is prepared to consider any change in winner

Winner must be prepared to participate in publicity for this blog, which may include being photographed with a stupid grin, being prepared to have details of their favourite M&M colour published, and being otherwise publicly embarrassed.

Winner must supply their own holiday

Wednesday, 11 August 2010

Not Giving up the Day Job

Today, Helena and I went on our annual trip to the wildlife park. This is always an opportunity to get some great pictures of the wild, wacky, weird and wondrous world of animals. And we always fail to do so, one way or another. Last year, it rained and I didn't exactly distinguish myself with my impressive photography.

Helena now has a camera as well, so with two of us snapping away nothing could go wrong, right?

The first thing you need to remember, is to remember the cameras. David Bailey didn't get where he was by turning up to Vogue cover shoots without his equipment. On the other hand, they were lacking one vital piece of technology back in his heyday - the mobile phone.

Luckily for you, neither of us forgot our phones, which means that you have some pictures to look at. You have to squint a bit and use your imagination, but they could be worse. All the pictures that appear here were Helena's with the exception of the last one. This is probably because she took over 70 photos, many of which didn't come out well, compared to my carefully composed 9. She's got the better technique. It's like the Vogue cover photographers who take hundreds of pictures, and chuck all but one of them away.

Every time we go to the wildlife park, I'm always struck by the incongruity of seeing camels wandering around Oxfordshire. Not only should there be sand and pyramids instead of grass and trees, but I love the irony of keeping animals specifically designed to go for weeks without water in Britain.


We got lucky with the lions. Usually they're roaming around their very well isolated peice of land, but of course their coats that are intended to camouflage them from their future lunch, which makes them hard to spot. Today, however, instead of lean mean killing machines prowling through the undergrowth, there was a guy with a strimmer. I bet he's very good. I'd be very consciencious if I were him. Because if he did a shoddy job they wouldn't have to worry about filling in lots of paperwork and bureaucracy to fire him, they could just "accidentally" leave one of the doors of the lion house open.

If you look through most of the lion house's windows, you can see cage bars about 4 feet away, with the animals behind those, but there is one window that looks directly in. On the other side, with it's face pressed against the glass was a lioness.

Now I'm sure that the glass is really thick and safe and all that, but I personally didn't feel comfortable inches away from the large cat. Helena on the other hand was happily snapping away. Sadly, the glare on the glass ruined those particular pictures.


There were a couple of new exhibits this year. When you see drawings or models of giraffes, they always look wrong, as if the artist of sculptor wasn't very good. When you see the things in the flesh, you realise that the orignals look wrong too.


The other new thing was the Madagascar exhibition, where you get to walk in amongst the lemurs.


And no trip to the park would be complete without a visit to the penguins.


There were loads of other wonders - scary snakes and spiders, rhinos, monkeys, exotic birds and creepy crocodiles, but sadly not all of the pictures came out very well, so you'll just have to take my word for it. Still, there's always next year.

Saturday, 7 August 2010

Been There, Done That? Or Just Got the T Shirt?

I had to go to the supermarket this afternoon. I was down to my last lemon, and one lemon doesn't last 5 minutes in my flat. Since I've started substituting lemon juice for alcohol, I'm getting through far more of the former than I ever did of the latter. There are no limits to how much citric acid you can have in your blood and still be legally allowed to drive. And unlike vodka, no-one ends up being carted off to a drying-out clinic because they drink it all day. Healthy people even drink fruit juice with their breakfast.

In addition to fruit, the supermarket sells a wealth of other things. In the past, I've bought an all-singing-all-dancing-printer-scanner, a digibox (for the TV), and a salt grinder. Oddly, they don't sell lemon squeezers, though.


I also get most of my clothes from there, which saves me having to go into scary clothes shops. Recently, they've been selling T shirts with "retro" designs on them. At first, I assumed that they were just made-up logos. However, now they've got some old film designs, such as for Star Wars and Back to the Future, which I seem to remember from years ago. Of course, the ones talking about specific events might still be made up.

I used to be wary of wearing anything with a message or a design. After all, people who do are generally expressing themselves in some way or other. I have an Ubuntu T shirt that I wear to work, but I always wonder about people who wear things with oriental writing on them, as I'm sure that they say something insulting about the wearer, or suggest that he's into some kind of bizarre fetish. I suppose you're all right if you don't walk around in South Asia wearing it.

Now, though, I've decided that it's fun to wear things that you don't know anything about. I have a "World Frisbee Championship" T-shirt. Someone even started talking to me about frisbees in the coffee queue at work. I had to admit that I know considerably less about frisbees than Ubuntu. And just look at my latest acquisition:


Isn't it great? The only problem with it is the date, since I look far too young to have attended this particular gig, rave, concert or whatever it was. I can't help wondering about people who did attend, bought the T shirt, and who have lovingly looked after it for 40 years, only wearing it to very special 70's nights. They'll be gutted if they go to the next one and there are ten other people wearing them who picked them up for 6 quid at Sainsbury's.

Still, it makes a nice addition to my collection, which includes among other non-me things, a "NORTH DAKOTA PARK RANGER" shirt. Far better to have the T shirt, without having had to have been there.

Thursday, 29 July 2010

Are We Gluing Coffee Pots? - and Lots of Randomness


My latest parcel of purchases from Greece arrived the other day. This consisted of:

Detective Novels - Two novels by Giannis Maris. He was Greece's answer to Agatha Christie, writing stories prolifically in the 50's, 60's and 70's. His detective is Captain Bekas.

An Audiobook - I've never ever listened to an audiobook, so this is an experiment. The book itself is apparently a classic of early 20th Century Greek literature.

An old Dictionary - This was published in 1969, and is a dictionary of the old formal Greek that was abolished in the 1970s. It might be useful for reading older non-fiction works, though to be honest I mainly got it because I like dictionaries.

The Greeklish Dictionary - This isn't actually a dictionary, but a rather strange book consisting of modern idiomatic Greek phrases literally translated into English. I managed to find some of them (including "Are we gluing coffee pots?") in dictionaries, though you really need to come across them in actual use to understand them properly. Others, such as "Shit high and gaze", I have no idea about.


I was up until 4am last night (or should I say this morning?). Not because I was busy looking up strange Greek phrases, but because I had discovered a random web site. Appropriately named random.org, it is a site that provides randomness. It's run by a computer scientist at Dublin University, and it's the ideal place to go if you want to roll dice, toss coins, pick cards, generate lottery tickets, or run prize draws or electronic gambling (depending on which authority regulates your business).

It all started in 1997, when Mads Haar connected a $10 radio to an old Sun computer and started playing static through it. The radio was deliberately not tuned to any station and had to be cheap because the more expensive models tend to filter out the static. Contrary to what Windows users might believe, computers aren't very good at being random, since they're designed to behave in a predictable manner. If you want your computer to run games where real money is involved (or strip poker), then the last thing you want is any kind of predictability.

These days, he's got six radios and much more powerful servers, and is able to generate the equivalent of 18,000 coin tosses a second. If you go onto his site, you get a million bits free, and a daily top-up of 200,000 bits (up to the million bit limit).

I got the site to shuffle a pack of cards for me. This used up 335 bits. Of course, I then had to do some calculations to work out the least number of bits you need to do such a shuffle. Wouldn't you? I came up with 226, and then spent more time when I should have been sleeping trying to work out what they're doing that uses 335. Actually, if you keep shuffling it uses different amounts - other shuffles produced 322 and 401.

It's only now that I've written all this down that I realise two things. One is how sad all of this makes me sound, and the other is why the reality of computer shuffling might not work like the theory. At which point I'll have to leave this fascinating tale. I've got a card shuffling program to write.

"We'll say them", as they say in Greek...