A Circuit at Lee

View from the captain's seat
View from the captain’s seat

Lee Tower has informed me that there is another plane in the circuit on its downwind leg. I give the base and final legs a good scan and I can see no one is there. I open the throttle and the PA-28 I’m sat in slowly trundles out onto runway two-three. I’m flying in G-BOHA – my favourite of Phoenix Aviation’s small fleet of Piper Warriors. Sat on my right is my flight instructor and in the back is my Dad – who is also learning to fly. I position Hotel Alpha onto the centre line and I roll over the big numbers two-three at the end of the runway. Happy with my positioning I take a deep breath and push forward the small black throttle.

G-BOHA in the rising sun
G-BOHA in the rising sun

The engine roars, the plane vibrates and the tyres rumble over concrete and we’re moving. The speed begins to tick along. Ten, twenty, thirty, forty knots. I give the rudder a quick kick to keep myself on the centreline. Another glance at the speed I’m at fifty-five knots; I pull the yoke back and the plane responds, laboriously at first. I can hear my instructor in my ear: “It will fly!”. He isn’t wrong. In seconds we are up in the air.

Up, up and away: the hangars outside shrink; the planes turn to miniature and ground is falling away. I make some corrections to the plane and peer over the cowling to make sure I am flying along the runway. On either side there are flats and houses that don’t appreciate being buzzed early on a Saturday morning – that’s a quick and easy route to an angry noise complaint. Soon I am crossing the beach and over the Solent. Now I am aloft I am climbing through two hundred feet and I have trimmed myself to climb at eighty knots. I do a quick after take-off check: flaps are up; engine temperature and pressures are green; carb heat is off. Another look at my altimeter and I am almost at four hundred feet.

At five hundred feet I turn to the crosswind leg. But before turning I survey the sky. To my left I can see Portsmouth Harbour and the sun rising above it, the solent forts are black smudges on the sea. Through the whirring propeller I see the Isle of Wight, Cowes is shrouded in an early morning mist but the green hills are rising above it. To my right I can see clouds forming from the tip of the chimney at Fawley power station. Beyond that and through a light haze Southampton and its harbour sprawls out into the distance. And above all of this there isn’t another plane in the sky. I begin a smooth climbing turn to my right.

As I fly along Lee-On-Solent and Hill Head beaches my height closes in on one thousand feet. At nine hundred and fifty feet I make preparations to bring the plane level: I push the nose forward and watch the vertical speed bleed to zero; my airspeed rises to one hundred and ten knots and I throttle back to two thousand four hundred RPM; I trim to maintain my pitch and speed. Damn! I over shot one thousand feet by another fifty! It’s not the end of the world, but I need to get better at that.

Below me and to the right is the mouth of the River Meon. Marked by a harbour and a small navy of boats the river thins and stretches into the distance. Alongside the river and a bit further inland sits a small triangular forest of trees; a helpful landmark; I rotate the plane and fly towards it. Now I’m flying parallel to the runway and skirting Stubbington village – if I get too close that’s another easy way to get a noise complaint. With the wind behind me things start to happen quickly.

The Solent with the River Meon in the bottom right
The Solent with the River Meon in the bottom right

In seconds I am abeam of the numbers zero-five on the runway and I make a call to Lee Radio: “Golf Hotel Alpha, downwind” an instant later I hear back “Golf Hotel Alpha, Roger”. After the brief exchange I am now a quarter of the way down the runway and I need to get on with my downwind checks.

The downwind checks can be shortened to this very memorable acronym: BUMFICHH. I was being sarcastic, but it does actually roll off the tongue. So, I start working my way through my checks: Brakes, off; Undercarriage, down; Mixture, rich; Fuel, both tanks look similar so we’re good here; Instruments, engine temperatures and pressures are good; Carb Heat, hot for 5 seconds; Harnesses, everyone is strapped in tightly; Hatches, all closed and locked. In no time I am above a group of green houses used as a turning landmark. After a sweep of the skies to check for traffic I turn my plane and point towards the Spinnaker tower in Portsmouth Harbour.

Now time is even more precious and I need to start on the landing configuration: Carb Heat to hot; RPM down to fifteen hundred RPM; two stages of flap; I wait for the speed to fall to seventy-five knots and drop the nose whilst maintaining the speed. Very quickly I fall through nine hundred, eight hundred and then seven hundred feet. I roll the yoke to the right and turn over the solar farm and the light dances over each panel below us. As I’m turning I make a call on the radio: “Golf Hotel Alpha, final for touch and go”. Almost instantly I hear “Golf Hotel Alpha, final for touch and go surface wind seven knots at two three zero” and I acknowledge the message “Golf Hotel Alpha”.

The view on base leg
The view on base leg

I’m lined up with the runway but a bit too high. I bring down the third, and final, stage of flaps and I increase my rate of descent. Keeping at seventy-five knots. I seem to be getting a bit low now so I give the throttle a quick push and the plane rises a tad. I cross the road joining Stubbington and Peel Common passing over cars below. I can’t count the number of times I have walked along that road with my Dad and watched the planes fly over us, now we’re the people in those planes and it makes me excited.

I’ve crossed the boundary to the airfield and over the big clump of bushes. I’m high enough to make it to the runway without any throttle so I cut it and glide the final distance across the threshold and the big twenty-three.

This is is the tricky part, as I descend to twenty feet I’m supposed to bring the nose up and fly along the runway and gracefully touch down on my main wheels and then bring the front nose down. What happens next doesn’t quite match that. I misjudge twenty feet by about fifteen feet and carry on down the runway whilst nosing up. My speed is disappearing but my height not so much. The stall warning kicks in and starts to whine away, next thing I know I am down with a thud. Still counts! Once again I’m trundling along the runway. With a kick of rudder I put myself back on the centre line, retract the flaps and push the throttle to open and around I go again.

Input Validator – Android Library

Over the weekend I have been working on a small library to help validating the input into form fields in Android. I have open sourced it on Github and I am in the process of deploying it to Maven.

Why?

This library was born from some self-inflicted validation frustration in a project at work and jealousy at one of my colleagues better solution in the iOS department.

What does it do?

The library provides a class named InputValidator that can be wrapped around any object that extends from TextView. The InputValidator will validate the value of the input against a set of Validators attached to it. The InputValidator sets an OnFocusListener that validates the input when the user leaves the input and it uses a TextWatcher to remove the error when the user has started typing again.

The Validator is a simple interface with two methods. The first is boolean validate(String) this is where any validation logic will happen and will return true if the input is valid and false if it is invalid. The second method if String getValidationMessage() which returns a message to display if there has been a validation error.

A basic jQuery plugin

jQuery is an extremely popular Javascript library that simplifies cross-browser Javascript into an easy to use API. As of May 2014, 50.1% of the top 1 million websites use jQuery in one for or another to help enhance their websites. For the same month 66.8% of the top 100,000 website and 78.5% of the top 10,000 websites use jQuery. Those stats can be found here. The popularity of the jQuery library means that as a developer you will likely encounter and work with jQuery.

You can develop with jQuery the same as if it were any bit of Javascript: write your code in an external .js file and include it onto your webpage. However, jQuery allows you to create plugins that extend jQuery and therefore can be reused through out a number of websites. jQuery plugins should be modular; it does one thing and one thing only. Similar to how a class in any programming language or CSS should only do one thing, creating reusable code.

To give you a head start with developing jQuery plugins below is a small template that you can use to build your jQuery plugin around.

The above is a compilation of these two tutorials provided on the jQuery website:

Relevant links: