It shouldn’t be this difficult

August 10th, 2009

Why is it that jobs that seem like they ought to be easy take ages to do? As a recent example I had to put up a new rotary clothes line in the back garden so I got hold of a support that can be screwed into the ground. Takes 30 seconds to install it said on the packaging and I can believe it… if you haven’t got a back garden like ours appears to be. It seems that after building the house the builders spread about 6 inches of top soil on top of rubble and then turfed it. When I tried to screw this thing into the ground I got it about 6-8 inches in before it stopped. In the end I had to dig a hole to remove the large stones and then repack the earth back in. So a job that should have taken about a minute ended up taking most of an evening.

A similar thing happens with software especially when the final system cannot be properly simulated. We put email support into two projects and it went in without a hitch; it pretty much worked out of the box. We then copied the same code over into another project and it took days to get it going. It worked a treat in QA but once in Production it wouldn’t work. Same setup, same servers as the other projects and it just didn’t want to work. In the end it turned out we had been given an incorrect email address and we had got a TCL list incorrect but because it was a production system it took a while to find this out.

Sometimes you just have to get someone else to give the code a quick look see. Several times colleagues have asked me to check their code and the fault just sticks out like a sore thumb; the difficulty then is to try not to act all superior because sometime the places will be swapped over and I’ll be the one who can’t see the fault in my own code and be banging my head on the desk thinking…’It should be this difficult’

Y not

June 27th, 2009

I took this with my new toy, a Sony Alpha 200 DSLR.

Contrails crossing in a Y

Contrails crossing in a Y

The Theory of Quantum Sermons

March 21st, 2009

This theory was developed during a blether with my brother in law that started to get sillier the more we unpacked it. This is as far as we got. Please feel free to enhance the theory with your own observations :)

The theory is that a sermon, as delivered by a preacher/minister, can be considered to be quantised. A sermon consists of one or more points so each point can be considered a quanta. The generally held principle is that a sermon consists of three points all with an equal lifetime; some sermons break this principle and consist of lots of points with a short lifetime or one single point that has an apparent infinite lifetime. Points can either be negative or positive. A negative point will depress the congregation and a positive point will lift the spirits of the congregation. If a sermon has an equal number of negative and positive points then it can be considered to have no point. If the minister is speaking and it is not possible to quantise what is being said, then it is no longer a sermon but can be considered a ramble.

This brings us onto the equivalent of the Schrodinger’s cat experiment. If a minister is locked into a church building with no congregation it is not possible to determine if he is delivering a sermon or a ramble. Opening the door to find out will cause the minister to collapse in shock that someone has come to hear him speak.

Google Calendar

March 2nd, 2009

Ok, so I know Google calendar has been around for ages but I’ve just got around to playing with it. More specifically I’ve started to play around with the API so that I can create events programatically. I’m using TCL, for no other reason than because it is the language that I use at work. Like most modern scripting languages it has all of the packages needed (http, tls) to be able to connect up to the calendar API so its just been a matter of following the instructions / examples in the Google documentation and working out where I had gone wrong! My initial attempts produced a ‘ prolog cannot contain data’ error which I eventually sussed out was caused by my assuming that the XML message containing the event needed to be encoded; it didn’t. Once I’d got that fixed then my code would write events quite nicely. The next bit of code I want to write will allow events to be read, modified and deleted. Once thats done I’ll release it for the world to play with.

A New Year, a new(ish) OS and a reinstall

January 11th, 2009

The title is not strictly true since the change happened in December last year but I’m now using Vista on my work laptop. The old Dell laptop went back to the company and I got a new Lenovo Thinkpad with Vista Enterprise on. And I have to say that it works. I’d heard all sorts of stuff about Vista being a pile of rubbish that shouldn’t be allowed on a PC but I’ve not had any issues with it. Having said all that it isn’t doing much other than running some Oracle databases and allowing me to read email, view the web and develop TCL code. The main issues I have had have been getting used to SAPs corporate environment.

So would I buy a copy of Vista? Well I did, sort of. My wife has got a new laptop for her business and it came with Vista Business installed as well as the Windows XP disk for up/down grading (Delete as appropriate). And so far she has been running Vista because I couldn’t be bothered down the change and Vista has worked for me and seems to be working for her. She has also got Office 2007 which took her a few moments to get used to but I think if I tried to get her to use any earlier version I would have a fight on my hands. I’ve got to agree. Apart from a few oddities (Open, Save) the Office ribbon works well.

On the other systems, the server is still going strong with Centos 5. The only change there has been to encrypt the database partition in case it goes walkies. The family PC has just been reformatted and XP put back on along with Ubuntu 8.10. The Ubuntu installation has got to be the smoothest I have ever had with Ubuntu; the installation recognised that the video card was using the DVI port (rather than the VGA port) and even found the Belkin USB wireless card. In fact I was on the internet quicker with Ubuntu than XP!

I’m hoping to get some non work related code written this year. More of this on the next post.

Head Hunted

November 5th, 2008

I got a phone call from an old work colleague who said that someone was looking for me and wanted to offer me a job and would it be ok if they called me. It sounded interesting and so I said that yes. So I get this phone call from one of the directors of asking if I would like to come down to see them and talk about the possibility of me doing some work for them. The company makes mass spectrometers which is where I originally started coding and I have often thought of going back to the mass spec world. Anyway I took my last day of holiday and went down to see the company. The trip itself took about 5 1/2 hours and involved four trains, or it would have done if the last train hadn’t been cancelled. After a quick phone call the company aranged for a taxi to pick me up and take me to the factory.

The meeting I had there went really well and we seemed to be in agreement about me going to work there. I have to admit it felt good learning that they had been looking for me for about a year. It was also good to be able to go into a discussion about being employed knowing that I didn’t need a new job.

After another 5 1/2 hour trip home I was still pretty fired up and expected to receive an offer of employment quite soon. The offer arrived on Wednesday last week and I then spent a few days wondering whether to take it. In the end I decided not to. The main reason being the distance between where I’m living and the factory. The initial bit of software that needed writing was the calculations routine which could easily be done remotely. The later bits would involve doing instrument control and for that you can’t beat having an instrument easily available. Its bad enough trying to bug fix software on an instrument that you are not next to; I didn’t fancy trying to develop software the same way.

So I didn’t take on the chance to do something that I would really like to do. Hopefully there could still be a job there for me if I need it, but at the moment I don’t. Fortunately!

Changes

November 5th, 2008

Its been a while since I’ve posted and quite a bit has happened. We (the family that is) have moved to a new house about 500 yards away from the old one. Why move such a short distance? Well our previous landlord wasn’t doing much to keep the place up and it was costing a fortune to heat. So we’ve moved into a newer place (about 10 years old) which is smaller than the old place but has a fourth bedroom/office and a garage.

Not much ITish in that you might say and you would be right. Except that I work from home and so doing a house move also involves moving the business phone line and broadband. And I have to say it has all gone very smoothly. BT did a fine job of getting things sorted. I stopped using the broadband on Friday in the old house and a BT engineer arrived on Monday morning at the new house to connect the phone line up. After about an hour they had me up and running on a new phone number and on Tuesday morning they swapped the new number back to the number I had at the previous house. And it all worked. Brilliant.

One other thing is that during my converstions with BT they convinced me to sign up for BT Fusion which gives you a mobile phone and a wireless router as part of the broadband package. The thing about the phone is that when it is in range of the router it gives you free calls to 01, 02 and 07 phone numbers using VOIP. I have to say that it seems to work pretty well. The call quality is reasonable and since most of my business calls are to 01, 02 and 07 numbers it should save my employers some money.

Stretching the brain

September 4th, 2008

I’m currently working my way through the problems Project Euler as a way of stretching my brain and also refreshing my C++. The actual problems can be solved in pretty much any language and judging by the forum they have been. I’m using C++ not because it is the best language for the job, which it isn’t, but because my coding skills in it are getting a bit rusty. I’ve spent most of my time over the last 3 years coding in TCL with some brief forays in to Java. But before that I was a C++ coder for over 5 years and I don’t really want to let the skills slip away….you never know when it might come in handy!

On a related note I met up with a colleague from the place where I used to do the C++ coding and it was good to catch up with him and hear what had happened to everybody. Sometimes I wonder if I could go back there and use the knowledge I have acquired since leaving to update the software. I would love to be able to incorporate a scripting language like TCL or Python into the main application and use scripts to drive it. The application was for controlling a high performance mass spectrometer and I actually wrote a sort of scripting language to provide some high level control of the sample introduction and data measurements. It was horrendously complex under the hood and was also multi threaded which meant that not many people could work out how to use it. With hindsight it didn’t need to be multi-threaded except in maybe one or two cases and even these could be handled by a single threaded script.

Who knows…may be one day I’ll get to do it. Until then I’ll keep the brain ticking over trying to remember ‘A’ level maths.

The dragon is back

August 13th, 2008

I finally got around to scanning in the dragons that my dad drew for me and have put one of them on the header. Hopefully I can get around to doing some work on the template behind this site. :)

You will be assimilated

August 8th, 2008

Well I’ve not posted anything for ages, partly through being busy and also we’ve been on holiday. On a more software based note the company that I work for has been bought out…again. So far in my career in software I have worked out of two different buildings for I think it is 8 different employers. Actually one of those employers was myself :)

My new employers are SAP (www.sap.com) and so I’ve gone from being part of a company of ~300 employees to one with more than 51,400. Its the largest company I’ve ever worked for! It will be interesting to see how we get assimilated into a huge corporate culture especially as the application I work on is not core SAP.

I’ll try and keep posted about how things are going.