Posts
295
Comments
27
Trackbacks
206
July 2004 Entries
Ouch Part 2

Funny places hospitals. 10:30 'appointment', and I sit until 11:50 watching a succession of people arrive, be seen and depart. A polite enquiry as to how much more of a delay I can expect gets "we're very busy today". Well, duh. Miraculously I'm called just minutes later, to be seen by a young (Spanish?) girl, busy, bleeper going off, who explains the x-ray.

When the shoulder dislocated the ball pushed out of the socket, breaking off a small chip of bone. It's not lodged in a dangerous place she assures me, after a quick check with the consultant, so as my arm has moderate movement please come back in three weeks for another x-ray. Thank you, bye. I feel sorry for her, it's a non-stop stream of people. I'm happy to accept a quick dismissal; it's a beautiful day, I have some shopping to do, so I make the most of actually being out.

This isn't as daft as it seems. 7 miles may not seem very far from town, but it is if the only thing between you and town is fields. And sheep. The 'bus' service runs 4 times a day, has to be booked in advance and obviously doesn't match my required times. Still, keeps the taxi companies in work I suppose.

posted @ Thursday, July 29, 2004 6:10 PM | Feedback (2)
Ouch

It started on Saturday. Possibly the year before. Well actually, it was three years go, the first in what has become the annual BBQ of some friends. They have several acres in the middle of nowhere and decided to hold a big summer BBQ. Year 1 was glorious weather, I was staying in a local B&B so got gloriously drunk. Year 2 it rained, but was still great. Year 3, more rain, still fun, until I was about 300 yards from home when someone went straight on at a corner and wrote my car off, damaging my left thumb in the process. Still hasn't recovered and looks like it never will.

So, onto this year. Excellent weather, a bit windy perhaps, but sunny. Caught up with some old friends, ate loads, and because I was driving, remained alarmingly sober. Then Paul gets out his 'board - one of those off-road skatebaord things. I generally shy away from things like that, never having been particularly good on skateboards when they were the rage the first time around (I'm older than I look, unless looking from above where the rapidly icreasing bald spot gives the age away). A bunch of us trudge up the hill, and give it a go. I manage a couple of respectable runs (respectable is probably an exaggeration, perhaps I should say they weren't embarassing), but come a cropper on the third run. I was getting complacent, trying to steer, and fell off backwards. Onto grass and not going fast, but directly onto my right shoulder, which instantly goes numb and assumes an odd shape. A shape that definitely isn't shoulder shaped. Not good.

Up the hill I go again, board in left hand, and hunching over my shoulder. I flex my shoulder and click, click, my shoulder clicks back into place and I can feel again. Then the pain hits and I wish it was still numb. I've never dislocated anything before and my advice is don't. It hurts. A lot. I spend the remaining twilight trying to ignore it, and eventually decide it's time to go home. And here's more advice. Don't drive if you've just dislocated your shoulder. I get home, take some aspirin (nothing stronger in the house), and head for bed. Not much sleep as it's so damn painful - every movement jars the shoulder.

Sunday I head off to the hospital via taxi. I take a thick book expecting a long wait in A&E (ER for those across the pond). And it was long; 5 hours of dullness, punctuated by brief moments of activity. It goes like this: register; wait; triage by nurse; wait; doctor; wait; x-ray; wait; docter with x-ray - "you've fractured your shoulder - book an appoinment at the fracture clinic where you can sit around for another 5 hours". He didn't actually say that last bit, I made that up. I actually have no problem about waiting in these places. I understand the order of things. I wasn't in immediate danger, bleeding profusely, or a young child. Next appointment is tomorrow.

What's interesting about this whole affair is the realisation of how much you use your shoulder. You'd be surprised. Luckily I can drink left handed; malt whisky is an excellent sedative - you should try it. Drink enough and you pass out, and then the hangover in the morning takes your mind away from the painful shoulder.

And one final point - Wakey, where the heck were you? We missed you.

posted @ Wednesday, July 28, 2004 6:10 PM | Feedback (2)
Venting frustration

While I wouldn't want his current job (not that he really wants it), Steve does have the luxury of being able to blow things up. Given the frustrations I've had with beta code recently I woudn't mind destroying things with large amounts of high explosives. The odd alpha/beta CD, just to make me feel better.

posted @ Wednesday, July 21, 2004 3:33 PM | Feedback (1)
Painting
My brother suggest I use his painter since I've taken so long to decorate the office. Katie is doing his. I reckon he's right, she'd probably be quicker. If a little messier.
posted @ Tuesday, July 20, 2004 4:27 AM | Feedback (1)
Good end to a bad week

Terrible week work wise, with nothing working, some of which I'll explain in another post. Still the week ended well with a Kathryn Williams gig which was excellent. Been wanting to see her play for a long time, and the highlight being her rendition of Leonard Cohen's Hallelujah - simply breathtaking. Really moving. Stopped in at Dan's on the way home for his house warming, so caught up wit a few people I hadn't seen in a while.

Then I've had a weekend of decorating. The new office is almost finished - just a final coat and the woodwork and it'll be ready for the carpet. About time too.

posted @ Sunday, July 18, 2004 7:50 PM | Feedback (1)
God made integers, all the rest is the work of the devil

So, working with Yukon at the moment and wasn't having a very good week. Finally got some code working , but some of my conversions weren't giving the right values. This is GIS stuff, so I'm dealing with Latitude & Longitude, converting to decimal values, calculating distances etc. I couldn't work out why things weren't right, and spent hours debugging. Finally, with Alex's help, we realised I was using the wrong type - I should have been using decimal to preserve accuracy in calculations.

Now I understand rounding and the instrinsic problems of storing floating point numbers, but it's just so painful having to do lots of type conversions/casting just so you can get accurate numbers. I mean I'm only dealing with a few decimal places so you'd kinda expect things to be accurate, but oh no. As a good example, start a project in VS. Doesn't matter what type, but break into the debugger. View the immediate window and type 9.2-9 - what do you expect? By and large I'm a fairly optimistic guy, and although my maths skills are pretty poor, even I knew it should be 0.2. But I was wrong. Now call me a pedant. Call me stupid. Call me naive, but don't call me wrong for wanting to believe that such a simple calculation should give an incorrect answer. At what level should we expect rounding errors to occur?

On a side note (and perhaps not seriously, but then again perhaps I am serious), why is it that we have rounding errors at all? Why is there any need to store floating point numbers as actual floating point numbers? After all, they could be stored as integers, all calculations could be done on intergers and accuracy would be preserved. The decimal point is really only needed for display purposes. Of course, it would mean radical changes to every computing platform, but heck, there's no gain without large restructing of the world as we know it.

posted @ Sunday, July 18, 2004 3:04 PM | Feedback (2)
Disc/Partition Cloning

I've been holding off on getting a new laptop, but finally went for it - a Dell Inspiron 510m, excellent screen, big disk and lots of memory. And very nice it is to. Since the disk is big I'm going for 3 boot partitions: a stable one running .net 1.1, a .net 2.0 beta 1 partition, and a general test partition (for any other beta stuff that comes along), plus a large partition for data. I've isntalled the stable one and decided to clone it for the others to save some time. I've not used cloning software before, but decided to try Acronis TrueImage; it has a nice Copy Disc option. So it whirs away, I boot into the new partition, generate a new sid and everything looks fine.

However, I go to install VS.NET 2.0 and the default install directory is C:, which is my stable partition. I look at the environment variables and some of them point to C: still, as does almost everything with a full path that's stored in the registry. Hmm, not exactly what I had planned. This disc cloning is great if you don't want the new parition to have a different drive letter. So my options are:

  1. Rename the drives, so that the partition booted into is always C. It's not the way my old laptop was and might confuse me (which isn't that hard to be honest).
  2. Scratch the newly cloned paritions and just repave them as normal.
  3. Edit every path in the registry, which seems pretty desperate since there's no search and replace (for probably sensible reasons).

Views people? What have others done?

[update] Of course, option 1 isn't available as it's the system partition, and thus can't be renamed. Sigh.

posted @ Wednesday, July 14, 2004 2:10 PM | Feedback (2)
Blog box or Frog Blog?
Lou (of frog-box) now has a blog. Should she call it Blog Box or Frog Blog. She can't make up her mind, and both are good.
posted @ Friday, July 09, 2004 2:57 AM | Feedback (1)
Foot Tapping Goodness

If you only ever go see one band in your life make it The Hot Club of Cowtown. Huge amounts of unassuming talent having fun, that's the best way to describe the band. Elana sizzling on the violin, Whit's fingers moving so fast on the guitar, and Jake on the double bass - possibly the coolest person I've ever seen (side note: It's impossible to look uncool while playing double bass.). You get the feeling that if God descended and said "you only have three hours to live, what do you want to do", they'd simply say "Play". I've never seen a band enjoy what they do so much. Their music? Hot jazz and country swing. Go see them, you won't regret it.

posted @ Wednesday, July 07, 2004 11:54 AM | Feedback (1)
Graphic design

My friend Lou has finally joined the throngs of self-employed with her new graphic design service Frog Box. She designed my web site plus business cards, and has come up with some cool stuff for a new Al and Dave design, which we might eventually get time to implement. She's very talented and did get accepted as a storyboard designer for a new film, but turned it down because when you're starting out you can't afford to work for nothing (related news: their previous film, Dan had a hand in). It's funny but when you look at talented designers you realise how much nicer they can make sites look than most of us programmers.

posted @ Tuesday, July 06, 2004 2:19 PM | Feedback (4)
Never too old to learn

I spent 3 days last week on a course at DevTrain, the company I'm going to start doing training for. This was the Web Apps with C# course, aimed at beginners. Now I'm not a beginner but I am going to train this course, so I sat in to see how the current trainer (and author of the course - they are all custom written) did it. It was an interesting time, as I was worried I might be bored. After all the material isn't new to me, and I used to be a trainer years ago - an MCT training VB, SQL, Exchange, NT, etc. It's always interesting to see other presenters. I see plenty at conferences but very few on courses. Actually none on courses, since I don't go on courses. But, you learn things about presenting just from watching others.

I wasn't the least bit bored. Now Steve didn't have an outlandish style, just fairly normal presenting with enough anecdotes to keep us entertained. Careful explanation plus real world examples. I found myself concentrating quite hard and enjoying it much more than I thought I would.

I learned two things.

  1. The first was something that VS.NET could do which I didn't know about; automatically inserting a connection strings (from a SqlConnector) into the appSettings in config.
  2. There's always something in the framework you don't know. A simple example was the ListBox where we were selecting an item in one listbox and clicking a button to move the item to another listbox. The first thing was to check the selected index. The next part of the example was to convert the first listbox into multi select and have the button move all selected items. I naturally dove in with a loop, but you can't change a collection while enumerating over it. Hmm, more thought required. The simple solution is just to change the if statement to a while. So from:
    if (lb.SelectedIndex >= 0) 

    to
    while (lb.SelectedIndex >= 0) 

    The point was to illustrate how you need to know the BCL. I had to admit to the students that I hadn't spotted that trick.

 

posted @ Tuesday, July 06, 2004 2:09 PM | Feedback (4)