Nice flight

It was a surprisingly nice day. Actually, I hadn’t noticed it was going to be a nice day until I was reading Information Echo, where he was opining how he was going to miss the flying day due to family commitments. I quickly hit F12 to bring up the Dashboard, where the Aviation Weather widget showed me that the only clouds forecast were high cirrus. Ok, not exactly sunny, but extremely good VFR throughout the region.
Continue reading “Nice flight”

Friday the 13th: A good day to fly

I finally got up flying today.  It wasn’t perfect weather conditions – there were low scattered clouds around the airport, and a solid overcast up at 20,000 feet to deprive me of the sunny day I craved.  It was a bit hazy and there was a definite wind shear around 2,000 feet, with the consequent small amount of turbulence.  But it was warm enough that I didn’t have to pre-heat, and thanks to our getting cheap hangar space this winter, no messing around with wing and cabin covers.  And the weather is supposed to utterly suck this weekend, so it was now or “never”.
Continue reading “Friday the 13th: A good day to fly”

How dare life get in the way of flying!

I’ve been waiting for months for good weather so I can go out and get re-acquainted with the sky.  It had gotten to the point where I was resolved to blow off work on the first sunny day.  But wouldn’t you know, today was a sunny day, but I had an important meeting at 10:00am, another one at 1:00pm, and a doctor’s appointment at 3:30pm.  Didn’t leave much of a gap for getting out to fly, especially considering the time it takes to get a plane ready before and put it away afterwards.  Even after the doctor’s appointment, there isn’t much time before the sun goes down, so I went to Best Buy to get my XM radio and iPod adaptor installed.

Tomorrow is supposed to be sunny as well, but there is supposed to be a strong windshear at 2,000 feet.  (I think that’s what Canadian weather briefers refer to that as a low level jet.)  That can mean difficult landings and lots of turbulence.  Not ideal conditions for a fun flight.  But we’ll see.

Baby’s first AJAX

I’ve enhanced my CoPilot Waypoint Database Generator to do a bit of AJAX-like coding.

Formerly, after you’d entered all your parameters it would fire off a background task, and then continually refresh a page that would look at the background task’s log file and tell you how many records it had put in the file already.

Now, the refresh page is still there, but if you have Javascript active, it does a window.location= to redirect to an html page which has some javascript that uses the XMLHttpRequest or ActiveXObject to call a perl script that generates a very small XML file that only has the progress, and sets the appropriate div in the page to visible and sets some values in appropriate spans.

It seems to work very nicely, but what a convoluted mess. Between the HTML, the CSS, the Perl, and the Javascript, I’ve got language fatigue. Javascript is not turning out to be my favourite language. I’ve never been able to understand why Sun didn’t sue Netscape over the intentional confusion between Java and Javascript, but now I’m even more confused.

All the other craptacular syntax and bogus object model aside, what Javascript really needs is a simple way to turn a simple bit of XML into an associative array. And don’t talk to me about JSON – even if I wrote both the client and the server, I just don’t feel right about having the client eval a string passed to it by the server – I just know there’s got to be a security exploit waiting to happen. So instead I’ve got all this

var tStatus = xmlDoc.getElementsByTagName("status")[0].firstChild.data;
var tOtherURL = xmlDoc.getElementsByTagName("otherurl")[0].firstChild.data;
var tRows = xmlDoc.getElementsByTagName("rows")[0].firstChild.data;

That's just ugly.

Getting there

When the Google Maps API was announced, David Megginson publically challenged me and other programmers to come up with a decent flight planning application that used it. Well, it’s not here yet, but RunwayFinder – a flight planning tool for pilots is getting closer. At least it’s a decent substitute for the “Nearest Airports” search in AirNav – you put in an airport id and it shows the ones in the neighbourhood as well.