Inaccurate Clocks

The clock on my Windows Desktop updates the minute hand every minute. Which is fair enough. However, it does this at the end of each minute, which I think is wrong. It means that for the last thirty seconds of each minute the clock is more than 30 seconds wrong. I reckon that the minute hand should move to the nearest minute when it becomes the nearest one.

Or am I just being too pedantic, and should really turn the second hand on? (and then fret about the clock being more than half a second out…)

Meccano Makes Good Programmers

Beetle

When I was a kid I had a Meccano set. I had some Lego too, but at the time all you could make with that was houses and not very realistic vehicles. The Technical Lego and Mindstorms stuff was years away in those days, and besides Lego stuff was too easy to put together, and fell apart too quickly.

Meccano wasn’t like that. Getting the nuts and bolts together could be murder. It was especially unforgiving of mistakes. Picking up the wrong kind of part early in the build often meant you had to spend ages undoing your painstakingly constructed model. The instructions were good, but you often had to use a lot of deduction to work out which bit you needed to use, and how it really fitted. On the other hand, Meccano was tough. It even survived the day that I decided some Meccano roller skates would be a good idea.

I was reminded of all this when I got to play with some Meccano recently. Number one daughter got one first, and I just had to follow suit and get a little Meccano model of my own. And then spend a couple of happy hours putting it together.

When I think about it, this was very good preparation for a programming career. Programming languages and their libraries are not known for tolerating mistakes, and you often end up taking to bits what you have just built, because you get to the point where you discover it just won’t work that way. And with Meccano, as with programming, if it ends up wrong it is pretty much always your fault.  And, just like Meccano, every now and then you build something you really like.

Evil Socks

Fixed the washing machine. Turns out that socks are not always your friends. One of them had managed to get inside the water outlet underneath the drum and blocked it. The reason that we had such poor drainage was that all our washing water was being “sock filtered for extra purity” before being sent into the drain.

Note: You are not allowed to steal this by-line and use it sell bottled water.

I’ve no idea how the sock managed to get there. And I’ve also no idea where the other one is. Perhaps it is up in the loft loosening my ball valves even as I write this.

3462314367

Evil Sock

No, Water Really Will Be the Death of Me

Today the sun shone, the overflow was as dry as a dry thing from a dry desert in a drought, and all seemed well. Of course, the washing machine was taking longer to run, but that could just be down to us using a new “eco friendly” programme. Or could it?

Turns out the washing machine uses water. That is, it takes water in but then, having churned it around for a while, it seems incapable of getting it out again.  So I had more wet hi-jinks as I had to drain the darned thing and see if any of the filters were bunged up. There was some lint here and there, but nothing that should have slowed things down much.

At the moment we are at a kind of impasse. The machine works, in that things come out cleaner than they went in, but it does spend a long time emptying itself. I’m inclined to suspect the pump as not actually doing the pumping thing properly, and so I guess I can look forward to a visit from the repair man and uplifting discussions as to just what is covered by warranty.

I’m starting to wonder when it will all end. I’m turning taps on with the expectation of either a huge bang or nothing. I’ve taken to swimming in my dreams, just in case the house floods at night. Is this how hydrophobia starts?

Water will be the Death of Me

Don’t like water. Getting into the car on the way out today we noticed that the overflow I had “fixed” yesterday was still leaking slightly.  So I left wife and daughter in the car on the drive while I scrambled, cursing, into the loft to bend the valve assembly and make sure that it shut down properly.

I don’t mind working with electricity. I’m not allowed to do gas (thank goodness) but I hate working with water. You can never be sure it won’t start leaking when your back is turned.

Tempting Fate

On 17th Feb at 12:46 I made a singularly ill advised Tweet:

Ha! What do you call it when everything works? Oh yes. Rob is in the house....

Since then everything has broken. Water leaks too numerous to count, a broken heating system that cost a huge amount (wince) to fix. Cars that have needed new bits. And this morning our neighbour appeared on the doorstep with the less than welcome news that water was pouring from our loft.

Oh good.

Turns out that one of the ball valves on the header tank for the heating system was leaking, and the overflow was doing just what it should, which is nice. Fortunately I’m equal to this particular task, and so I went off to buy spares. Since I had to turn the water off, and there are two tanks in the loft, I replaced both ball valves at once. Apparently the practice of having a big tank of water in the loft is a curiously British thing that dates back to the Napoleonic wars, where there was some concern that the French could invade and cut off all our water. Or something. Actually, I heard that in a pub, so it might not be true.

Either way, there is nothing quite like spending your holiday banging your head against beams in the loft, whilst balanced perilously on a joist and trying to both tighten a leaking connector and avoid putting your foot through the ceiling.

While I was out buying valves I thought I’d get a replacement bath plug, because the one we have is looking a bit elderly. This way I could add some value to the day, and come out of it slightly ahead. The new one was very well packed, in a bag, in a bag, in a bag with tape wrapped all round it. I spent several careful minutes removing all the layers and throwing them away. Then I found the plug was the wrong size.  I’m never going to Tweet again.

Memory Upgrades and New Hard Disks

What do you do if you have sworn off working with computers for a while?

Go up town, buy some memory and a hard disk and spend the day upgrading stuff.

My little MacBook, which has all my music and media on it, has just about filled up its little 120G hard disk. It could do with something a little larger. And my Advent Netbook, although wonderful with Windows 7, does chug a bit when I run more than a couple of programs alongside each other. And so, since this is not technically programming as such, it was off to the shops and out with the debit card.

The Advent 4211 upgrade was simple enough, once I’d got all the screws out and unclipped the back. The memory went straight in and then, after a kind of “reverse tussle” to get the back clipped on again we were in business. Windows 7 noticed the upgrade straight away, and seems a lot happier. The good news about a move like this is that you don’t double the memory from 1G to 2G, you have a much bigger effect than that, since the operating system takes up a good chunk of the original memory. I reckon that I now have around three or four times the original space for running programs.

The Apple upgrade took a bit longer, what with having to copy all the files off the original disk onto the new one, but it was actually a very smooth process. I put the old disk in a USB caddy and then restored the old contents onto my newly installed operating system, which worked a treat.

All in all, a successful day, but not perhaps as far away from computers as I originally planned.

XNA Network and Hair Restoring

If you can’t solve a problem, just go to bed. I should have done that yesterday (although it would have meant I was in bed at 11:30 in the morning I suppose).

Anyhoo, I got up, had breakfast, and then made XNA networking work perfectly.

It turns out that there is something in the WiFi configuration at my house that stops network gameplay from working. I had connected all the devices by wires, but had left the WiFi turned on, which seemed to confuse matters. Replace wireless connections with wires everywhere and everything works.

I now have a working lobby system, proper host and client gameplay, sample programs and a completed Chapter 16. And, since that is the last chapter in the book, I guess that means that I can return to real life and start doing other things that have been piling up a bit. But I think I’ll have some time off the computer for a bit.

Going to Live There

I find that when I’m trying to write stuff I have to “Go and Live There” for a while. “There” being what the book is actually about. This doesn’t make me particularly good company, but it seems to be the only way to do it. Today I was mostly in Chapter 15, which is coming along nicely at the moment.

I really like working with XNA, and I’ve been playing with just what you can do with the Zune device, which is actually rather a lot.

Live Code at the Humber Bridge

The clocks changed on Sunday morning. In the UK we started British Summer Time, which meant that a sinister government plot resulted in 60 minutes of my life being stolen overnight. We had to put the clocks forward of course. One year I tried to assert my independence from this time base tyranny, but it didn’t work that well, and I was late for everything (or early, I forget).

Anyhoo, many years ago I wrote some software for the Humber Bridge that is part of their toll management system (Ian and Nicky did the rest) and my bit is in charge of making sure that the clocks get put forward and back. Because the software had to go quite quickly I implemented a little look-up table with the dates hard wired into the code. And then I forgot all about it.

Of course this weekend my little table ran out, and today I got a call from Neil at the bridge because their system was living in the past. So it was out with the Windows 95 system that I used to create the software, a quick extension of the table and down to the bridge to install it.

We use a system by Siemens to talk to PLC machines in the Toll Booths. It has a wonderful ability to let you update the code while everything is running. This is because the software is designed for process control, where you sometimes can’t turn everything off just to put new versions out there. So I was able to add the new code (which I’d already tested on my laptop) and then watch as the clock pinged forward to the correct hour.

The table now works to 2012. I’ve set an appointment in my diary to remind me to get in touch with them well before then, so that it doesn’t happen again.

One Hundred Followers on Twitter. But Why?

I now have 100 followers on my Twitter account. I’ve no idea why. I still don’t fully “get” Twitter. I only follow 4 people, and two of them hardly tweet anything. The other two are quite chatty, and I have bother keeping up with everything they put out there.

Some people follow thousands of other Twitterers, which begs the question “How do they keep up?”. The answer must be they don’t. I think they use some filtering stuff so that certain words in Tweets cause those to bubble to the surface. This means that lots of tweets go un-noticed and ignored. That bothers me for two reasons. One is that when I’m having a conversation with someone I think it is bad manners not to listen to what they say. I wouldn’t feel right following someone and then ignoring them. The second reason is that I’d hate for any of my deathless prose to be ignored by anyone else.

Perhaps I’m reading too much into the whole thing, but at the moment I kind of regard Twitter as the digital equivalent of standing on top of a bus and shouting things out. And we know what we think of people who do that kind of thing.

Anyhoo, I’m going to keep putting the odd (and I do mean odd) tweet out there. Just as I’ve found that writing a regular blog has vastly improved my writing style (you might disagree) perhaps regular tweeting will improve my “Shouting on a bus” technique.

Treasure Hunt Kit

3387309822

If you want to have a Tag Treasure Hunt like the one we had at our Mad March Bash you can now download the tag designs and the question and answer sheets from here.

I printed out the tags on my Polaroid Pogo printer and then stuck them around the department, gave the question sheet out and then watched as people whizzed around trying to find the tags and solve the clues. They seemed to have fun.

If you do this though, a note of warning – the glue on the sticky prints seems to get much harder over time. Don’t stick them on any painted surfaces and try to take them off as soon as you can. Otherwise they can be a bit tricky to remove.

Spring is in the Air. And in my Sofa.

A week or so back I sat down rather more heavily than usual and there was a loud twang from underneath me. One of the springs in our Ikea Ektorp sofa had broken. I checked the interweb and apparently this furniture has a lifetime guarantee. Unfortunately this does not cover springs, cushions or covers or anything else likely to break or wear out.  Such is life.

Fortunately the interweb also took me to http://upholsterysupplyman.co.uk/ where I could buy a replacement spring (you need a 23 inch serpentine/zigzag spring for the Ektorp) for only two quid. I got four in case I decide to sit down heavily again, along with a bunch of clips to hold them in place.

The springs arrived yesterday, and so today I had the fun and games of fitting one. Turned out to be quite easy, although what I really want is a staple gun to pin the fabric back onto the frame properly. I’ve used such things in Doom, and they seem to work quite well.

One handyman success a day is usually enough for me, but then, last thing at night I got the “chance to shine” again, when the power shower suddenly became a lot less powerful. And much, much colder. Having just spent the price of a really nice camera (and I mean *really* nice) on replacing big chunks of the water heating system I was less than happy at this point. So it was off with my socks and hello to an evening of standing in the bath swearing while I tried to dismantle chunks of plumbing.

After a while skimming my knuckles and reflecting that it might be time to call in a plumber again I had a kind of breakthrough when the piece I was pulling at came off in my hand. Turns out that something was blocking the hot water inlet filter. Feeling a bit like a chap in CSI I bagged it for further investigation, put the shower back together and it all worked perfectly. I think something must have got left in the replacement heating tank and found its way into the part of the system that would cause me the most bother. There wasn’t enough of the sample to get a DNA trace, but foul play is not suspected at this point. Just dumb bad luck.

After that it was time for a shower and bed, at the end of a slightly shorter but on the whole successful day.

Tag Treasure Hunt

Spend all evening setting up a Tag Treasure Hunt for our Mad March Bash tomorrow. I’m using these new fangled tags from Microsoft that let you use pretty much any mobile phone which has a camera and a network connection to read a printed tag.

The phone hooks up with the tag server which delivers a message, a business card or a web link. We’ve come up with 26 clues to 26 websites and 26 tag stickers. The idea is that you match the clue to the tag.

As an example, one clue was

"640K should be enough for anyone" But he claims he never said it

And the answer….

 

Tomorrow I’m going to print out the tags on the Pogo printer and then stick them around the department for the students to find. Should be fun.