Thursday, 28 August 2008

The six week holiday

As we approach the end of the summer holidays (he's back to school on Tuesday!) I thought it was high time for update for family and friends. I haven't had too much spare time to blog as we were going along so here's the more significant happenings from the last few weeks.

I've embarked on quite a few mini-projects during August (fixing a friend's electrics after a break-in, demolishing another friend's wall and then rushing to hire some Acro-props(!)) but my greatest achievement has been in the field of carpentry. A trailer for the boy to tow behind his new go-kart is the near-perfect product of a borrowed mitre saw, a scientific calculator (with the original batteries that got me through my A-levels) and my unlikely remembering of some fairly complex trigonometry. Pictures will have to follow once I've completed some of the modular decks for carrying children, dogs, BBQ coals etc.

Speaking of dogs, Belle has continued to grow in size and confidence at a frightening rate. Her re-enactment of the Great Escape is repeated frequently at the back fence, although she's yet to make it to freedom. Training is progressing well and she's moved up a class - clever girl! So clever in fact that she can now from time to time open doors, her cage or anything else to which she applies herself. We've distilled a collection of toys that can withstand her chewing and she seems to be thoroughly enjoying herself.

We spent a fantastic weekend with Adrian and family in Bristol to witness the Balloon Fiesta. After meeting up in Shrewsbury on the way down so the girls could visit the QVC Outlet shop (even they had to admit it was a miserable pile of junk), we made a brief stop at the excellent RAF Cosford air museum. Unfortunately the weather in the South West was far too wet, windy and muddy for any balloon watching but this did nothing to spoil the trip. The hotel pool and four hour meals in various restaurants were great fun for all.

Over then Bank Holiday weekend we set an alarm for 1:30am so we could head over to Meadowhall to witness the demise of the Tinsley Towers. The boy and I were joined by another family and 8,000 or so other people who thought being out in the middle of the night was a good idea. Right on schedule at 3am, the towers disappeared into a huge cloud of dust. Once this cleared there were cheers from the crowd for a 100 foot chunk of one of the towers that was refusing to lie down quietly. We headed around via Kimberworth to get a better view (here) and to allow the masses of cars to disperse before we headed home. The nibbler drivers certainly earned their danger money as they razed what was left.

For this last week I've been limping around after tearing my calf muscle. "Just one last time" of launching the boy on his go-kart across the tennis courts in the local park resulted in the classic symptoms (I thought the wife had thrown half a paving stone at the back of my leg!). Thankfully it was only a minor injury with most of the pain subsiding after only a couple of days. Seven days on and it's nothing more than uncomfortable, although stairs are still not my favourite thing.

We're now looking forward to Sunday when the boss and I will become godparents for the first time. Proper bedtimes will then be restored and the countdown to Christmas will begin in earnest.

Wednesday, 13 August 2008

Gmail's half-baked "always secure" offering

I was very happy to see the introduction of an "Always use HTTPS" option in my Gmail settings. For a long time I've been accessing Gmail via https://mail.google.com/ as this caused all traffic to be encrypted (rather than only the sign-in process), a good thing especially when you are away from home.

Unfortunately, enabling this new option breaks the Gmail Notifier application. Rather than release an updated version before offering the new feature, Google ask you to download the original file and apply this patch, actually a Registry file. Poor. And they don't even make this fix easy to find.

Also the S60 Gmail application for my phone is broken by the same setting. This is particularly surprising as a "Always use secure network connections (slower performance)" feature has been available for a long time. There is a workaround (here) but again this is much less than polished.

Come on Google, we expect better!

Sunday, 27 July 2008

Asterisk, TDM400P and reliable Caller ID in the UK

Since my post back in March, I've been quite remiss in keeping my own Asterisk box up to date. As it has been getting significantly more use in the last couple of weeks, I've noticed that I sometimes get external calls appearing to come from "asterisk asterisk" instead of the usual Caller ID information. Delving into the logs, it seems I've been failing to capture the calling party's CID about once in every five calls.

Blindly hoping that a freshened install may help, after having already shamed myself by running code that was over four months old(!), I brought the Zaptel software up to 1.4.11 and Asterisk up to 1.4.21.2. Unfortunately, and very predictably, this didn't alter the CID behaviour.

Reading around the subject I learned that for each incoming call my UK BT line undergoes a polarity reversal, a 300ms delay and then receives a burst of V23 CID information before the first ring. My ATCOM TDM400P clone and the wctdm drivers support the polarity reversal detection. Watching the Asterisk console showed that, on a failed CID capture, a "Got event 2 (Ring/Answered)..." was processed just before the CID information should have been displayed. Some further Googling eventually turned up this 2006 post and the answer.

I had to update chan_zap.c manually and have taken a new diff file that can be found here. To apply it, save the file to the root of your Asterisk source code and from there "patch -p0 <reliable-uk-callerid-1.4.21.diff", compile and install. I've tested this patch successfully on Asterisk 1.4.21, 1.4.21.1 and 1.4.21.2 and now Caller ID information is captured every time.

Friday, 11 July 2008

Progress of the beast

Seven weeks with our new companion seem to have, quite literally, trundled by. I knew having a puppy would be hard work but, to be quite honest, I didn't think it would be quite so tiring. We've been very fortunate I'm sure, managing to have Belle toilet trained almost from the start, sleeping for most of the night in her cage and accepting the same confinement when we have to go out, leaving her behind. She's continued to grow at a frightening rate and we're beginning to wonder just how big she's likely to get.

Last weekend we found the first puppy teeth on the carpet, hopefully signalling the start of the end of the biting. Belle has been responding to our controlled play and whilst she still enjoys a good gnaw on arms and legs if she can get away with it, at least she now has some appreciation of how hard she can bite down and for it still to be fun. Her chewing on the furniture, woodwork and table legs has just about been brought to an end and her barking always seems to have good reason.

The boy should be awarded a "NoBelle!" prize for his attempts to instil some discipline into our girl. It seems she interprets his shorter (than adult) stature as meaning he is more of an equal, seeing this as an invitation to chase, wrestle and bite him. He keeps plugging away reasserting his authority and, sometimes even through teary eyes, I can see he really likes her.

Our back garden has taken a bit of a beating in recent weeks. Belle likes nothing better than depotting the hard work of my green-fingered wife and digging holes in the lawn that seem to be joining up (imagine puppy-scale WWI trenches!). With hindsight, Horiko ("堀子" meaning "digger girl") would not have been a bad choice of name. She doesn't mind getting dirty either and we've had to hose her down more than a couple of times. Sadly, she thinks this is a great game and I'm sure she gets herself dirty just to play it.

Other moments of horror have included finding Belle gently chewing on the "skin" case for my iPod Nano 3G, having somehow removed it from the device all by herself. Amazingly, neither the case nor the iPod had any visible damage but for the thick layer of canine saliva that had to be carefully washed away.

Puppy training will continue this weekend after it was rained off last Sunday. We're going to try to accelerate her learning, particularly her walking to heel which is not quite(!) there yet.

Wednesday, 9 July 2008

XP SP3 won't install? Back to the command line!

After my post back in May reporting no problems with the installation of XP SP3, it was inevitable that I would come across a machine that wouldn't play ball.

A client's XP SP2 machine was reporting errors during the Registry backup phase, complaining of "access denied" to the keys of "HKCR\MsTscAx.MsTscAx" and "HKCR\MsRDP.MsRDP" and some of their numbered duplicates.

The tech had chosen to ignore the errors, so allowing all the file updates to proceed, unfortunately only to be rolled back at the very end of the update process. Thankfully, as he'd also chosen not to take notes of the message details, "%SystemRoot%\svcpack.log" provided me with a full list. Trying to view the errant keys with RegEdit also reported the same error and attempting to repermission them did the same.

There are all sorts of misleading reports on the Web, most of which suggest hacking around while in "safe mode". In fact, Microsoft KB article 949377 provided the answer with its "method 3". Running "subinacl.exe" as suggested on each key solved the problem, allowing SP3 to install itself with no further issues.

Whilst it remains a mystery what caused these keys to become inaccessible, there are a number of discussions on the Web suggesting these particular keys often cause problems. It's amusing that one of MS's own products seems to have caused the difficulty.

Monday, 7 July 2008

RJ25 to DB9 serial port adapter

Hopefully this post will help others in a similar predicament. Recently I needed an APC 990-0144 RJ25 to DB9 serial cable so I could configure one of their Switched Rack PDUs but (rather predictably) the original wire was nowhere to be found. Extensive Googling did not provide many answers so I set about with a multi-meter to make my own. To make a long story short...

The pinouts of the RJ25 socket/plug, the RJ45 plug and the RJ45 socket to DB9F adapter are shown in the following table. The minimum three wires to provide the terminal connection are highlighted in bold. (Note that most of the Cisco adapters only have these three wires connected.)

RJ25My cableRJ45
DB9F
1 - Not connectedBlue


2 - GNDYellow5 - GND5 - GND
3 - RxGreen2 - RX2 - RX
4 - TxRed3 - Tx3 - Tx
5 - CTSBlack

8 - CTS
6 - RTSWhite

7 - RTS

I took a trip to Maplin and picked up a "FCC68 6P6C" (RJ25) IDC plug, one metre of "FCC68 6-core" cable. From my own box of tricks I collected an RJ45 IDC plug and a spare Cisco RJ45 to DB9F adapter (so as to eliminate the need for any soldering). Assembling the cable as per the table above, and shown close-up in the picture, worked first time.

As only pins 2,3 and 4 from the RJ25 are used, if you have a more common and spare RJ11 (6P4C) telephone cable you could chop one end off and terminate it with a RJ45 in a similar way to end up with the same cable.

This cable would appear to have the same pinout as used on, amongst others, some old DEC equipment and IBM FastT200 controllers (the IBM part number for the same cable appears to be FRU 19K1179).

Saturday, 5 July 2008

The sun shines on the righteous

Despite a few showers on the drive down to RAF Waddington air show and the fifteen minute monsoon as we progressed through the checkpoints into the parking area, the boy and I have managed to stay reasonably dry all day. By 11am there was no more than drizzle and by 12:30pm the precipitation had ceased altogether.

We'd followed TomTom's shortest route that brought us into the village from the West and we headed down Mere Road and Manchester Road, maintaining a straight line until we managed to park not 50 yards from the front and bang in the middle of the runway. To our right on the old cross runway was a B-52H and just in front of that was the reason for our trip, the Avro Vulcan XH558 attending her first air show in 15 years after a mammoth restoration project. I couldn't quite believe how lucky we were, having almost the same view as the Vulcan Trust VIP area.

The air show stayed pretty much to schedule and was action packed to say the least. A departing Typhoon, heading for the competing Yeovilton air show, was spectacular even in the rain. The first few displays were limited by the cloud base being not much more than 1500 feet, the Red Arrows being the most noticeable casualties. We had a good scout around in the hangars, found a great example of a British Leyland Allegro and had a clamber around a Shackleton cockpit. By the time we emerged into the daylight once again it was bright and blue was beginning to spread across the sky.

Shock and awe was the order of the afternoon. The French AF Mirage 2000C was stunning, a Chinook followed by a Royal Navy Merlin both did things helicopters just should not be able to do and a second Typhoon accompanied a Spitfire before blasting around the heavens in a superlative demonstration of the meaning of agile. The Spanish CASA 101 display team put on a good show but by then everyone was waiting for the main event.

Almost perfectly on cue, the sun started to shine down from an uninterrupted sky. Vulcan departed in age old style by giving it a huge amount of beans to climb steeply and deafeningly. She lurked in the background as a Lancaster, Spitfire and Hurricane put on a great show. Vulcan then slotted in behind the Lancaster and pursued it on a circuit of the airfield - a scary sight to have in your mirrors! A quick flash over her open bomb-bay doors preceded her signature gear-down go-slow along the display line before once again finding the on switch to lurch skywards in immense fashion. On landing she also managed her usual party trick of decelerating with her nose wheel high off the ground until she was at taxiing speed. Just before shut-down the pilot ran up the engines to 80% with the brakes hard on to give us one last treat and shake. To be honest, it was all a bit too safe and short but I suppose they're wanting to be ultra careful with the old girl, so new from her rebirth.

Many started their journey home once Vulcan was safely down but that was a mistake. They missed a "tactical scenario" enacted by a Chinook, an Apache, an AWACS E-3 Sentry and four utterly terrifying Tornados as they dropped smoke bombs and generally caused sensory mayhem. A Lynx helicopter display followed and to finish, the first Typhoon returned from its other engagement and took advantage of the now clear skies to rampage around without limits.

Amazingly, most of the 1127 photos (3.26GB!) from my DSLR are in focus, reasonably well exposed and actually have a decently sized subject. Admittedly there are a few duplicates in there but I reckon I'll have about 800 keeps. With the snaps from the compacts we had with us, I fear a storage review is going to have to be on the cards.

All in all, a brilliant boys day out. I wonder if I could get away with returning for day two tomorrow...