<?xml version="1.0" encoding="utf-8"?>
<feed version="0.3" xmlns="http://purl.org/atom/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xml:lang="en">
<title>Horse&apos;s Mouth</title>
<link rel="alternate" type="text/html" href="http://www.wellho.net/horse/" />
<modified>2012-02-12T09:48:39Z</modified>
<tagline>Musing, events and thoughts from Graham Ellis</tagline>
<id>tag:www.wellho.net,2012:/horse/1</id>
<generator url="http://www.movabletype.org/" version="3.01D">Movable Type</generator>
<copyright>Copyright (c) 2012, gje</copyright>
<entry>
<title>Design Patterns - what are they?  Why use them?</title>
<link rel="alternate" type="text/html" href="http://www.wellho.net/archives/2012/02/index.html#003608" />
<modified>2012-02-12T09:48:39Z</modified>
<issued>2012-02-12T09:47:26Z</issued>
<id>tag:www.wellho.net,2012:/horse/1.3608</id>
<created>2012-02-12T09:47:26Z</created>
<summary type="text/plain">Object orientation provides a wonderful bag of components, but they need to be linked together to provide a full set of facilities for data handling. And very often that linking together is in a way which can be standardised -...</summary>
<author>
<name>gje</name>

<email>graham@wellho.net</email>
</author>

<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.wellho.net/horse/">
<![CDATA[<p>Object orientation provides a wonderful bag of components, but they need to be linked together to provide a full set of facilities for data handling.  And very often that linking together is in a way which can be standardised - along the lines of <i>"you normally do it this way"</i>.   Such standardised methodologies are known as <b>Design Patterns</b></p>

<p>When teaching Object Orientation, we go through the mechanisms of the language, and application design (see <a href=http://www.wellho.net/mouth/3607_Designing-your-application-using-UML-techniques.html>"Designing your applications using UML techniques"</a>).   And I cover a little - a very little - about design patterns.  Delegates need to be aware of them, but a course that included a deep study of design methodology and patterns would be extended from what we currently offer by at least a day, with delegates who are <i>converting</i> from another OO language finding that the extra time was mostly revision.</p>

<p>However, last week's <a href=http://www.wellho.net/course/phfull.html>PHP Course</a> ran quickly - bright delegates, all starting with more experience that our stated prerequisites, and in the training room 30 from 30 minutes before class officially started each morning.    So we got on to the mechanisms of OO programming in PHP on the final afternoon of the main course, rather than starting it in the official way on the Friday morning.  Which gave me time to talk about UML techniques in more detail, and to add in some more coverage of Design Patterns than is usual.</p>

<p>In a new source code example (<a href=http://www.wellho.net/resources/ex.php4?item=q908/uml2.php>[here]</a>), you'll find a number of design patterns in use - some being commonly accepted / named ones, others which are our / my own patterns.</p>

<p>There's a <b>factory</b> pattern which takes raw data and creates an object from it. A factory differs from a constructor in that it often has to do preliminary work on the data, and indeed it can return objects of different types depending on the data actually passed in, and indeed it can return an array / list / hash / dictionary of objects.  A factory method is a static method, provided within a class to place the logic of interpretting the incoming data source into objects, even prior to the creation of any objects.</p>

<p>There's a <b>comparator</b> pattern, which compares two objects.  Static (class) methods can work on the data for <i>all</i> objects in a class, dynamic (object) methods work on a single object.   Yet so often you want to compare two objects.  Which is the larger?   Which is the older?   And that's where you'll use a comparator design pattern.</p>

<p>As an extension of the comparator, we often use a standard (static) pattern to find the larg<b>est</b> or old<b>est</b> - no formal name for this one, but you'll find an example called "longest" in the source example.</p>

<p>We've also got an example of a very simple <b>getter</b> pattern to retreive a property, but this particular example didn't use some of the other common design patterns such as <b>setter</b> and <b>singleton</b>.   That's fairly typical - you'll use design patterns for the standard stuff, and then your own (or modified) code beyond that to add the functionallity that's unique to your data and the application thereof.</p>

<p>I spoke earlier about the decision we've had to take at Well House Consultants as to how far we go along teaching design methodologies and design patterns in our programming language courses.  I believe we have the mix about right for most delegates who come on public courses.  But if you're looking to learn about object orientation in Perl, PHP, Python, Ruby or C++, and would like an extra day or two covering the topics I describle in this article, <b>please ask</b>.  We can usually (diary permitting) add an extra day onto the end of our courses to cover the subjects.  Typically, it will be a private course - and we'll only charge you as if it was another day on the public course.  <b>A bargain way to learn about designing your application, and learn about it in the language that you'll be using!</b></p>]]>

</content>
</entry>
<entry>
<title>Designing your application - using UML techniques</title>
<link rel="alternate" type="text/html" href="http://www.wellho.net/archives/2012/02/index.html#003607" />
<modified>2012-02-11T10:20:17Z</modified>
<issued>2012-02-11T10:18:48Z</issued>
<id>tag:www.wellho.net,2012:/horse/1.3607</id>
<created>2012-02-11T10:18:48Z</created>
<summary type="text/plain">When you&apos;re planning to write an application, you shouldn&apos;t just start writing code - you should think about what you&apos;re going to do and plan ahead. But how do you plan ahead? How do you ensure that you&apos;ve thought of...</summary>
<author>
<name>gje</name>

<email>graham@wellho.net</email>
</author>

<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.wellho.net/horse/">
<![CDATA[<p>When you're planning to write an application, you shouldn't just start writing code - you should think about what you're going to do and plan ahead. But <i>how</i> do you plan ahead?  How do you ensure that you've thought of things from various angles?</p>

<p>UML (Unified Modelling Language) is a way of drawing (modelling) a system through a series of diagrams of different types - there are 7 basic types - and there are various software packages that can help you.   But to go the whole hog and use them all on a small system is overkill, and on courses I often suggest to delegates it's far more practical to think things through and to know that you <i>could</i> draw the diagrams, rather than to draw them all with all the formally designated shapes and symbols.  For an application I specified and started to write yesterday, I drew some example diagrams, which I'll share with you here.</p>

<p>The application requirement is to analyse a day's web server log files and extract information from them about the types and lengths of visits (a typically woolly or fluffy initial spec).   Let's draw some diagrams ...</p>

<p><img src=http://www.wellho.net/pix/uml12_usecase.jpg align=left hspace=5 width=450>The <b>Use Case</b> diagram.  "Where does the data come from, where does it go, and who provides it / who requires the answers".  Where "who" is a job role, rather than an individual's name. The application that I started to write is indicated by the red arrow - taking the log files and provding a management / decision helping report.<br clear=all></p>

<p><img src=http://www.wellho.net/pix/uml12_object.jpg align=left hspace=5 width=450>The <b>Object</b> diagrams. For each of the data types (objects), we're defining what the contain - what other objects, how many of them, etc.   In this example, we're defining a "visit" as containing one or more "requests".  Each visit will contain one "browser" object and one "ip" object.<br clear=all></p>

<p><img src=http://www.wellho.net/pix/uml12_class.jpg align=left hspace=5 width=450><b>Class</b> diagrams. Where data types have subclasses / other subsidiary types, you'll need to work out your interitance tree.  In this example, website access requests within a visit are divided into "request" objects which are specifically requested by a visiting user, and "require" objects which are called up within a page by a request - that's accesses for things like style sheets and embedded images.<br clear=all></p>

<p><img src=http://www.wellho.net/pix/uml12_sequence.jpg align=left hspace=5 width=450><b>Sequence</b> diagrams. When the application (or a part of it) is run, what actually happens?  In this example diagram, a browser calls up a web server via the http protocol.  The server application may call up an SQL database, or it may use data it already has (cached?) on the local disc and not use the database stage.  <i>This diagram helps you spot bottlenecks, and provides you with a route to finding what's happened if the application fails to run to completion.</i><br clear=all></p>

<p><img src=http://www.wellho.net/pix/uml12_deployment.jpg align=left hspace=5 width=450>The <b>Deployement</b> diagram. This shows you all the tools that you need, how you go from test and development system through to pre-production systems, the live system, and on to backups.  It will include things like the source code control system that you use, and provide you with an indication of how you can roll back if some thing goes wrong, and an assurance that (if you follow the diagrams) that you really do have a backup of everything so that you can roll back.<br clear=all></p>

<p><img src=http://www.wellho.net/pix/uml12_state.jpg align=left hspace=5 width=450><b>State</b> diagrams. For each type of object - what creates it, and what happens when it's finished with.  And what happens in between.  If calculations are done, is that as the object is set up, or as the results are needed? Are results cached? ... for more complex objects (such as sessions in a shopping cart), what's the page the object owner - shopper - is currently on?<br clear=all></p>

<p><img src=http://www.wellho.net/pix/uml12_procedural.jpg align=left hspace=5 width=450><b>Procedural</b> diagrams. Also known as "flow charts" ;-) ... a diagram of the operation of each method.   Procedural diagrams can be converted to actual code on some of the more sophisticated UML tools.<br clear=all></p>

<p>When you're learning Object Oriented Programming, you really need to learn the syntax and principles of the language elements, and also how to design to make best use of those elements.  These diagrams - informally or formally - provide you help with the design.</p>

<p>There's a code example - a first (and incomplete) example showing code to support some of the diagrams above <a href=http://www.wellho.net/resources/ex.php4?item=q908/umli.php>[here]</a> from yesterday's <a href=http://www.wellho.net/course/pofull.html>Object Oriented Programming in PHP course</a>.</p>]]>

</content>
</entry>
<entry>
<title>Gypsy and Billy enjoy the snow</title>
<link rel="alternate" type="text/html" href="http://www.wellho.net/archives/2012/02/index.html#003606" />
<modified>2012-02-10T17:56:43Z</modified>
<issued>2012-02-10T17:51:36Z</issued>
<id>tag:www.wellho.net,2012:/horse/1.3606</id>
<created>2012-02-10T17:51:36Z</created>
<summary type="text/plain">I know my feet would get cold - so we careful about taking the dogs out for too long in the snow. Yet on our brief walk this morning, they really let off steam. The field that backs onto the...</summary>
<author>
<name>gje</name>

<email>graham@wellho.net</email>
</author>

<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.wellho.net/horse/">
<![CDATA[<p>I know my feet would get cold - so we careful about taking the dogs out for too long in the snow.  Yet on our brief walk this morning, they really let off steam.  </p>

<p><img src=http://www.wellho.net/pix/snowdogs.jpg align=left hspace=5 width=450>The field that backs onto the Spa houses is enjoyed by many dog walkers.  It was quiet at 07:30, but tracks in the snow showed us that we were far from the first.<br clear=all></p>

<p><img src=http://www.wellho.net/pix/snowgypsy.jpg align=left hspace=5 width=450>That's Gypsy<br clear=all></p>

<p><img src=http://www.wellho.net/pix/snowbilly.jpg align=left hspace=5 width=450>and that's Billy!<br clear=all></p>]]>

</content>
</entry>
<entry>
<title>Snow comes to Melksham, Wiltshire - pictures</title>
<link rel="alternate" type="text/html" href="http://www.wellho.net/archives/2012/02/index.html#003605" />
<modified>2012-02-10T07:33:53Z</modified>
<issued>2012-02-10T07:27:24Z</issued>
<id>tag:www.wellho.net,2012:/horse/1.3605</id>
<created>2012-02-10T07:27:24Z</created>
<summary type="text/plain">Last night, I travelled home from Uni (City University, Islington) late in the evening ... Even in London, some snow was settling Chippenham Station at Mindinght-10 ... a delayed 22:15 from Paddington drops off passengers on a slippery platform The...</summary>
<author>
<name>gje</name>

<email>graham@wellho.net</email>
</author>

<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.wellho.net/horse/">
<![CDATA[<p>Last night, I travelled home from Uni (City University, Islington) late in the evening ...</p>

<p><img src=http://www.wellho.net/pix/snow12_0.jpg align=left hspace=5 width=450>Even in London, some snow was settling<br clear=all></p>

<p><img src=http://www.wellho.net/pix/snow12_1.jpg align=left hspace=5 width=450>Chippenham Station at Mindinght-10 ... a delayed 22:15 from Paddington drops off passengers on a slippery platform<br clear=all></p>

<p><img src=http://www.wellho.net/pix/snow12_2.jpg align=left hspace=5 width=450>The station car park - vehicles of the stragglers, and perhaps of those who have decided to stay in town overnight<br clear=all></p>

<p><img src=http://www.wellho.net/pix/snow12_3.jpg align=left hspace=5 width=450>The A350 - the road to Melksham - as you don't usually see it<br clear=all></p>

<p>It's now daylight, and snow is still settled.   A quick check reassures me that our team, even through the snow, made it to work on time and breakfast will already be served in a toast room at <a href=http://www.wellhousemanor.co.uk>Well House Manor</a> - our delegate, business and leisure guest hotel here in Melksham.</p>]]>

</content>
</entry>
<entry>
<title>Melksham Campus - a blog you can read, and a place you can comment</title>
<link rel="alternate" type="text/html" href="http://www.wellho.net/archives/2012/02/index.html#003604" />
<modified>2012-02-08T15:19:10Z</modified>
<issued>2012-02-08T15:15:31Z</issued>
<id>tag:www.wellho.net,2012:/horse/1.3604</id>
<created>2012-02-08T15:15:31Z</created>
<summary type="text/plain">I&apos;m a member of the SCOB - the Shadow Campus Operations Board - and last night I attended a meeting to learn about the uses that are being made of current facilities, from their users, about their current concerns, and...</summary>
<author>
<name>gje</name>

<email>graham@wellho.net</email>
</author>

<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.wellho.net/horse/">
<![CDATA[<p>I'm a member of the SCOB - the Shadow Campus Operations Board - and last night I attended a meeting to learn about the uses that are being made of current facilities, from their users, about their current concerns, and about what they would liek to see for the future.   I can't possibly be knowledgable about everything - so I have to learn, and to help (with other members of the SCOB) gather views, requirements and desires, so that we can come up with something which best meets the needs of Melksham for future years.</p>

<p>This SCOB membership makes me intensely busy - we met in full last week and will do so again next week.  I have a meeting on Saturday afternoon, another on Monday evening and that one I mentioned yesterday (Tuesday).  And I'll be at a meeting with a SCOB element tonight too.  It's been like this for a while, and will continue to be so.  BUT questions like "What is the SCOB?" and statements like "Never heard of you" are all too common. And that's not really a surprise - after all, how do you reach everyone?</p>

<p>To make it far easier for people to find out what's going on, and for people to be able to make inputs, the SCOB is starting a website, in the format of a blog where all the SCOB members can post.  Comments will be accepted - and indeed encouraged - to allow inputs from anyone, and we'll be providing "Open question" posts so that anyone can raise anything they wish.   Of course, it's not "one size fits all".  The website is at <a href=http://www.melkshamcampus-scob.org.uk/>http://www.melkshamcampus-scob.org.uk/</a>. There is already information being provided to users at some existing sites and to groups and individuals who are interested, the press is being informed (and we have excelllent local press in Melksham), and more will follow.</p>

<p>My answer to the person who said "Never heard of you" is "you have now" ... that's good. It's even better because we're able to start a conversation - we have a route through which we can reach you, and a route through which you can make comments and ask questions.</p>]]>

</content>
</entry>
<entry>
<title>Another cold night</title>
<link rel="alternate" type="text/html" href="http://www.wellho.net/archives/2012/02/index.html#003603" />
<modified>2012-02-03T23:19:19Z</modified>
<issued>2012-02-03T23:16:06Z</issued>
<id>tag:www.wellho.net,2012:/horse/1.3603</id>
<created>2012-02-03T23:16:06Z</created>
<summary type="text/plain"><![CDATA[I got home late tonight - that's two nights in a row. And it's another cold one, with the temperature down to -7&deg;C already. Tomorrow morning will be brisk, like the last two....]]></summary>
<author>
<name>gje</name>

<email>graham@wellho.net</email>
</author>

<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.wellho.net/horse/">
<![CDATA[<p>I got home late tonight - that's two nights in a row.  And it's another cold one, with the temperature down to -7&deg;C already.   Tomorrow morning will be brisk, like the last two.</p>

<p><img src=http://www.wellho.net/pix/coldoak.jpg align=left width=450><br clear=all></p>

<p><img src=http://www.wellho.net/pix/coldfield.jpg align=left width=450><br clear=all></p>]]>

</content>
</entry>
<entry>
<title>Emerging proposals for land to the east of Spa Road, Melksham</title>
<link rel="alternate" type="text/html" href="http://www.wellho.net/archives/2012/02/index.html#003602" />
<modified>2012-02-04T09:43:30Z</modified>
<issued>2012-02-03T14:22:17Z</issued>
<id>tag:www.wellho.net,2012:/horse/1.3602</id>
<created>2012-02-03T14:22:17Z</created>
<summary type="text/plain">Letter - to be hand delivered within the immediate area of Melksham Spa. Copies of the letter and one of the map pages to be attached. Available via links in my blog - Graham 3rd February 2012 404, The Spa,...</summary>
<author>
<name>gje</name>

<email>graham@wellho.net</email>
</author>

<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.wellho.net/horse/">
<![CDATA[<p><i>Letter - to be hand delivered within the immediate area of Melksham Spa</i>. Copies of the letter and one of the map pages to be attached.  Available via links in my blog - Graham</p>

<p>3rd February 2012</p>

<p>404, The Spa,<br />
Melksham,<br />
Wiltshire,<br />
SN12 6QL.</p>

<p>Dear Neighbour,</p>

<p>I've received a letter, forwarded to me by the secretary of the Melksham Chamber of Commerce, concerning plans for "Land to the east of Spa Road, Melksham", and talking of it as "the most appropriate locations for up to 400 dwellings". As the letter is an open one, I've put in on my website at:<br />
&nbsp;&nbsp;<a href=http://www.wellho.net/graham/Hallam.pdf>http://www.wellho.net/graham/Hallam.pdf</a></p>

<p>Trying to work out the limits of the land, I believe that they're talking about "site 265" in Wiltshre Council's Strategic housing land availability assessment. That document is online at:<br />
&nbsp;&nbsp;<a href=http://www.wiltshire.gov.uk/planninganddevelopment/planningpolicy/strategichousinglandavailabilityassessment.htm>http://www.wiltshire.gov.uk/planninganddevelopment/planningpolicy/strategichousinglandavailabilityassessment.htm</a><br />
with the maps for Melksham at:<br />
&nbsp;&nbsp;<a href=http://www.wiltshire.gov.uk/planning-shlaa-2011-dec-appendix-3-melksham.pdf>http://www.wiltshire.gov.uk/planning-shlaa-2011-dec-appendix-3-melksham.pdf</a></p>

<p>The letter invites the community to attend an exhibition on 16th February - I'm writing to you today to make sure you're aware of it and can attend too if you wish, as I hadn't heard of it otherwise even though the plans have land adjoining our property shown as part of the potential site. And please feel free to circulate this letter.</p>

<p><b>Graham Ellis</b></p>

<p>Please feel free to email me (graham@wellho.net), call (01225 708225), drop a note through our door or pop round if you would like filling in on what I have researched.   If you don't want to have to type in these horrid long web page names, this letter with links is at <a href=http://wellho.info/3602>http://wellho.info/3602</a></p>]]>

</content>
</entry>
<entry>
<title>Rail Travel - has it become more unreliable?</title>
<link rel="alternate" type="text/html" href="http://www.wellho.net/archives/2012/02/index.html#003601" />
<modified>2012-02-04T09:41:53Z</modified>
<issued>2012-02-02T16:27:24Z</issued>
<id>tag:www.wellho.net,2012:/horse/1.3601</id>
<created>2012-02-02T16:27:24Z</created>
<summary type="text/plain">It times it almost seems like railway travel to the West of London is like travel in the wild west. When I started a thread on the &quot;First Great Western Coffee Shop&quot; this morning, commenting on all the people moaning...</summary>
<author>
<name>gje</name>

<email>graham@wellho.net</email>
</author>

<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.wellho.net/horse/">
<![CDATA[<p>It times it almost seems like railway travel to the West of London is like travel in the wild west. When I started a thread on the "First Great Western Coffee Shop" this morning, commenting on all the people moaning about train problems, I knew I was traveling up to London and back later in the day.  <a href=http://www.firstgreatwestern.info/coffeeshop/index.php?topic=10262.0 target=zzz>[here]</a></p>

<p>But did I expect it would turn into something that <b>I</b> could grouch about from the start.  Well - frankly - yes.  For I'm traveling from Melksham, and for my 18:30 appointment in London, I would have had to catch the 07:17 train and would have arrived some 9 hours early. So instead I drove up to Chippenham, from where I had a prebooked ticket for the 15:55.  For those of you who don't know the area, Melksham is a town with a population of around 24,000 and Chippenham has around 35,000.  Melksham has two trains per day in each direction; Chippenham has two trains per hour in each direction. </p>

<p>I paid the usual leg and two arms to park at Chippenham Station.  Did you realise that in the Western region of the UK, Car Parking and refreshments account for 12% of the Train Operator's income (it's just 7.5% in the next area across)?  I mused that my 7.10 is far easier money for the train operators than running a train to Melksham - much cheaper for them to provide a patch of tarmac than a train, after all, and they charge the same.  Smart business.</p>

<p>Anyway - my ticket was prebooked and waiting for me in the Ticket Vending Machine, which I successfully negotiated - with about 15 minutes to spare.  Yes - tickets and seat reservations for the 15:55.   Then I heard an announcement that the delayed 15:25 had just arrived in and, glancing up at the departure board, was shocked to see that the 15:55 showed as <i>cancelled</i>.  <b>That's right - I had just seconds before been issued with a train-specific ticket for a train that wasn't running.</b></p>

<p>A quick dash over the bridge (pushing through the crowds coming towards me, and probably appearing terribly rude and thoughtless) and I got onto the platform as the station staff were closing the doors. "I have an advanced ticket for the 15:55 that's cancelled - please may I use this train?" and the uniformed station person held the door open for me and I got on.   I'm now seated on the train, either 15 minutes late or 15 early depending on how you like to think of it and ...</p>

<p>... Train Manager has just come by and checked tickets.  I was slightly nervous bearing in mind the dire threats about being on the wrong train that I hear and read so often.  However, he was "nice as pie" about it - helped that there was obviously some joined up data around and he knew the train behind wasn't running!</p>

<p>It's very curious this business of tickets that are for a fixed train, of course.  If we (the customers) miss the train - even if it's because a bus run by the same company was late - we loose our money.  But if the train operator cancels the train, he can just laugh it off and put us (usually) on the following service.  The words "level playing field" come to my mind, but with a heavy dose of irony attached.</p>

<hr>

<p>I didn't expect to start this post with a tale of things going wrong today - but I was going to comment on how I travel between Melksham and the west of England and many other parts of the country by train ... and how it always seems to be the Western legs that are "eventful"  [I'm still writing on the train, and we have lurched over the points onto the slow lines ... what <i>now</i>, I wonder ...]</p>]]>

</content>
</entry>
<entry>
<title>Visa, MasterCard and American Express - changing payment profiles</title>
<link rel="alternate" type="text/html" href="http://www.wellho.net/archives/2012/02/index.html#003600" />
<modified>2012-02-04T09:37:59Z</modified>
<issued>2012-02-01T13:02:37Z</issued>
<id>tag:www.wellho.net,2012:/horse/1.3600</id>
<created>2012-02-01T13:02:37Z</created>
<summary type="text/plain">Well House Consultants opened for business in 1995. And in the early days, payment for courses was almost exclusively made by cheque. My goodness - how things have changed! We added Visa and MasterCard in December 2000, and in June...</summary>
<author>
<name>gje</name>

<email>graham@wellho.net</email>
</author>

<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.wellho.net/horse/">
<![CDATA[<p>Well House Consultants opened for business in 1995.  And in the early days, payment for courses was almost exclusively made by cheque. My goodness - how things have changed!  We added Visa and MasterCard in December 2000, and in June 2008 (and, I will admit reluctantly) American Express. </p>

<table width=100%><tr><td width=33% align=center><img src=http://www.wellho.net/wellimg/visa1_60x38_a.gif></td><td width=33% align=center><img src=http://www.wellho.net/wellimg/amex60x38.gif></td><td width=33% align=center><img src=http://www.wellho.net/wellimg/mc060a.gif></td></tr></table>

<p>Payment by cheque has faded, to be largely replaced by BACS transfers, and the use of credit and debit cards has grown.  MasterCard, American Express and Visa each represents a significant part of our business now. Each of the credit card companies has differences in its schemes, and as merchants some of these differences used to have a big effect on which we preferred.  But I'm delighted to report that this imbalance of features and charges has now shrunk and balanced out, and we truly welcome payment on any of these cards.</p>

<p><img src=http://www.wellho.net/pix/cash.jpg align=right hspace=5 width=150>You'll note little mention of cash.  Yes, of course people who drop in to Well House Manor for a cup of coffee at &pound;1.50 (open every day!) will typically pay by cash, and occasionally people will pay cash for <a href=http://www.wellhousemanor.co.uk/>Hotel Rooms</a> too - but it's very rare indeed for a <a href=http://www.wellho.net/course/index.html>training course</a> to be paid for with cash - I'm not saying it hasn't happened, but the few occasions are memorable ones.<br clear=all></p>]]>

</content>
</entry>
<entry>
<title>Seeing how Melksham has changed over the years, via an iPad</title>
<link rel="alternate" type="text/html" href="http://www.wellho.net/archives/2012/01/index.html#003599" />
<modified>2012-02-04T09:31:49Z</modified>
<issued>2012-01-30T23:24:16Z</issued>
<id>tag:www.wellho.net,2012:/horse/1.3599</id>
<created>2012-01-30T23:24:16Z</created>
<summary type="text/plain"><![CDATA[I&nbsp;spent some time over the weekend working my way into iPad and iPhone programming, using XCode, and already I've written a "toy" application which lets me drag a slider and move through overlaid maps of Melksham to see how the...]]></summary>
<author>
<name>gje</name>

<email>graham@wellho.net</email>
</author>

<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.wellho.net/horse/">
<![CDATA[<p><img src=http://www.wellho.net/pix/mmap_1888.jpg align=left hspace=5>I&nbsp;spent some time over the weekend working my way into iPad and iPhone programming, using XCode, and already I've written a "toy" application which lets me drag a slider and move through overlaid maps of Melksham to see how the town has grown over the years.<br clear=all></p>

<p><img src=http://www.wellho.net/pix/mmap_fader.jpg align=left hspace=5>The&nbsp;original map is dated 1888, and the overlay that's starting to burst through here is more or less up to date. It's very interesting to see how the course of the river was adjusted when the bypass was built ...<br clear=all></p>

<p>Without bundling up all the source images and much more, I can't publish the full application development resources here - but I HAVE included <a href=http://www.wellho.net/resources/ex.php4?item=c501/timeline_ViewController.h>the view controller header file</a> and <a href=http://www.wellho.net/resources/ex.php4?item=c501/timeline_ViewController.m>the view controller source</a> in our resources.</p>

<p><img src=http://www.wellho.net/pix/iphone.jpg align=right hspace=5>A couple of days ago, I was looking for a couple of people to learn with me / help me check my understanding of iPad programming in a few weeks time - see <a href=http://www.wellho.net/mouth/3596_Want-to-learn-iPad-and-iPhone-programming-Come-along-and-learn-with-me-for-free-.html>[here]</a>.  Looks like we're on for the weekend of 10th and 11th March, with a group of four of us shaking out XCode and Objective C, and making sure we've got a thorough understanding.  That weekend's going to have quite an advanced starting level.  It should leave me well prepared for iPad programming, with (perhaps) an ability to show others how to do so more formally later in the year.</p>

<p>iPhone programming is very similar to iPad programming - in fact you can choose to write Universal applications that run on both.  Screen layout / resolution need to be considered, of course - but then that's the case even with iPhone alone where you have the original resolution and the newer, higher "retina" resolution.  Here's another simulator screen capture, this time showing a simple iPhone text entry screen, with feedback of the text entered via labels modified by the controller.  The View Controller Header file is <a href=http://www.wellho.net/resources/ex.php4?item=c501/helloipad_ViewController.h>[here]</a> and the View Controller source in Objective C is <a href=http://www.wellho.net/resources/ex.php4?item=c501/helloipad_ViewController.m>[here]</a>.  Although I used IB (the Interface Builder) to create the layout rather than coding it directly, I have also included the interface design XML in my sample sources - it's <a href=http://www.wellho.net/resources/ex.php4?item=c501/helloipad_ViewController.xib>[here]</a>.<br clear=all></p>]]>

</content>
</entry>
<entry>
<title>Melksham Civic Awards - report and pictures</title>
<link rel="alternate" type="text/html" href="http://www.wellho.net/archives/2012/01/index.html#003598" />
<modified>2012-02-04T09:45:13Z</modified>
<issued>2012-01-29T12:26:15Z</issued>
<id>tag:www.wellho.net,2012:/horse/1.3598</id>
<created>2012-01-29T12:26:15Z</created>
<summary type="text/plain">Friday Night was the Mayor&apos;s Reception - an event to which all the dignitaries from neighbouring towns are invited (and they turn up in full regalia), and at which civic awards are handed out. I received an invite and attended...</summary>
<author>
<name>gje</name>

<email>graham@wellho.net</email>
</author>

<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.wellho.net/horse/">
<![CDATA[<p><img src=http://www.wellho.net/pix/mrec1.jpg align=left hspace=5 width=450>Friday Night was the Mayor's Reception - an event to which all the dignitaries from neighbouring towns are invited (and they turn up in full regalia), and at which civic awards are handed out.  I received an invite and attended as a representative of the Melksham Chamber of Commerce and Industry.  Whilst I was delighted to be invited, and to accept and represent The Chamber, I will admit to not being a great fan of events that go on late into the evening with music - however good - that drowns out talk, and dancing which - with two left feet - I really can't get pleasure personally from.</p>

<p>However, I was very agreeably surprised by the event.  It was well organised, it provided a good opportunity to honour some of the people and groups who have quietly done really good things for the town over the past year, and it provided a needed chance to catch up with some of the people we don't see often, and to meet new people for the (hopefully) common good into the future.<br clear=all></p>

<p><img src=http://www.wellho.net/pix/mrec3.jpg align=right hspace=5 width=450>One of the Civic Awards was made to the Melksham Railway Development Group - with the Mayor (Councilor Rod Eaton) describing how the group promoted rail travel last year, with really successful trains to the seaside at Weymouth in the summer, and a trip with Santa in the lead up to Christmas. The award was accepted by one of the stalwarts of the group - Sion Bretton, who's their secretary (and I would like to add a mention of honour for the group's chairman, Peter Blackburn and for John Money their appropriately named treasurer).</p>

<p>Because of a personal interest, I'm very much aware of just how much the rail groups have achieved in the last year.  I have no doubt that each of the other 7 award recipients has also done a very great deal in their field - that's a strength of Melksham.  I am going to mention Andrew Morgan, too, who has been deputy Town Clerk for several years.  Andrew's moving to Cornwall and Friday was his last evening.   Staff are not eligible for awards, and so it was really good to see Rod giving a special "Thank You" to Andrew who will be a very hard act to follow.  Andrew - all the best for the future.<br clear=all></p>

<p><img src=http://www.wellho.net/pix/mrec2.jpg align=left hspace=5 width=450>It&nbsp;must be very difficult to get the balance right when planning an event such as this.  Many of the attendees were guests of honour, and the Civic Award winners were also honoured guests, which means that it would be rather cheeky to ask them to pay (and indeed, chances are that many would elect not to attend).  But on the other hand, costs can be high for an event with a meal, wine, a band, hall hire and the rest, and if it's not being paid for by the honoured guests, then either the remaining guests or the organisers (the Town Council, funded by the local taxpayers) must pay. And I have misgivings about the taxpayer funding a "jolly".</p>

<p>It must be difficult to get the balance right - but I think the Town Council team <b>did</b> get it right.  The hall in which the event was held was their own. The food was a Hog Roast, followed by a simple cake and cream - excellent food, but pork in a bun followed by a slice of cake isn't like giving away a full meal which would be more traditional for a dinner / dance type event. And although drinks were provided to accompany the main course, the pay bar was open for supplements. And non-honoured guests *did* pay &pound;15.00 for their places at the event.<br clear=all></p>

<p><img src=http://www.wellho.net/pix/mrec0.jpg align=right hspace=5 width=450>Come mid-evening, the lights were lowered, the band struck up, and (sorry !) all chance of conversation ceased. I like music - but not that loud - each to his or her own taste.  But if that's what it takes to pull in the people who are needed to make the earlier business part of the evening, so be it.</p>

<p>With two anxious dogs at home (Billy is still settling in and shouldn't be left for too long), we made our apologies and left - wishing everyone else a good time through to carriages at midnight.  I would have said "we left quietly", except that we had to run the gauntlet of smokers clustering around the front door and, interestingly, continuing their networking.  But we feel very much amongst friends who know us here, and really there's no need for us to sneak out.  Our friends are very much aware of our "lark" rather than "owl" lifestyles, and know that we're up at the crack of dawn to walk the dogs.<br clear=all></p>]]>

</content>
</entry>
<entry>
<title>Niche businesses in Melksham.  From glass painting to Tcl and Lua courses.</title>
<link rel="alternate" type="text/html" href="http://www.wellho.net/archives/2012/01/index.html#003597" />
<modified>2012-02-04T08:19:29Z</modified>
<issued>2012-01-29T10:39:34Z</issued>
<id>tag:www.wellho.net,2012:/horse/1.3597</id>
<created>2012-01-29T10:39:34Z</created>
<summary type="text/plain"> Melksham has a number of excellent shops and other establishments selling niche products and services - things that you won&apos;t find in other nearby towns or (in some cases) in any other towns at all. Do you know what...</summary>
<author>
<name>gje</name>

<email>graham@wellho.net</email>
</author>

<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.wellho.net/horse/">
<![CDATA[<p><a href=http://www.wellho.net/pix/fairies0.jpg target=zzz><img src=http://www.wellho.net/pix/fairies0.jpg align=right width=220 border=0 hspace=5></a> Melksham has a number of excellent shops and other establishments selling niche products and services - things that you won't find in other nearby towns or (in some cases) in any other towns at all.   Do you know what is behind each of the shop fronts?  Do you walk into the new shops to see what's there?  </p>

<p><a href=http://www.wellho.net/pix/angels0.jpg target=zzz><img src=http://www.wellho.net/pix/angels0.jpg align=left width=220 border=0 hspace=5></a>Some places such as the image to the right are ... right in our Shopping Centre - the "High Street".  <a href=http://www.fairieswearbootsdesigns.co.uk target=zzz>Fairies Wear Boots Designs</a> - right on the roundabout at the entrance to Sainsbury's, make original painted and engraved glassware.  Their business card says <b>"Fine Art, Handpainted &amp; engraved glass, gifts for special occasions, weddings and corporate events"</b>. <i>Why not pop in and see them if you're local - I certainly learned something new about our High Street yesterday when I popped in there</i>, and although I (personally, at present) don't have a requirement for their product, I may do in the future - and I can tell people about them too.  </p>

<p>The image on the left is our own Hotel / Training centre.   We have niche products too - we're one of the very few <a href=http://www.wellho.net/course/tcl-tk.html>providers of Tcl/Tk training courses</a> in Europe, and of <a href=http://www.wellho.net/course/lua.html>Lua courses</a> worldwide.  We're NOT in the town centre - we're about 200 yards from the Market Square, in an area where we have been able to provide plenty of free parking for our customers on site.  And we offer many other products that are less niche too like <a href=http://www.wellhousemanor.co.uk>High standard hotel and business conference accommodation</a>. We too welcome people to walk in - we'll happily chat and show you around ... and did you know that we're open, 7 days a week, for bean to cup coffee, light snacks, and the rest.  You'll always get a warm welcome.</p>

<p>A web page such as this one <i>cannot</i> give full show to all the wonderful products - be they an original painting of Lacock Abbey, a Perl course, bespoke engraved glassware with a unicorn theme, or tutorship in how to write and distribute applications for mobile phones and tablets. It can just hint at what's available. It's a taster.  We may be able to tempt you further with more pictures ...<br clear=all></p>

<p><a href=http://www.wellho.net/pix/fairies1.jpg target=zzz><img src=http://www.wellho.net/pix/fairies1.jpg width=220 border=0 vspace=5 hspace=5></a> <a href=http://www.wellho.net/mouth/3549_Well-House-Manor-perhaps-the-best-hotel-rooms-in-Melksham.html target=zzz><img src=http://www.wellho.net/pix/angels1.jpg width=220 border=0 vspace=5 hspace=5></a> <a href=http://www.wellho.net/pix/fairies2.jpg target=zzz><img src=http://www.wellho.net/pix/fairies2.jpg width=220 border=0 vspace=5 hspace=5></a> <a href=http://www.wellho.net/pix/angels2.jpg target=zzz><img src=http://www.wellho.net/pix/angels2.jpg width=220 border=0 vspace=5 hspace=5></a> </p>

<p>... and we may <font color=magenta>persuade you to click on those images</font> to see them larger (as will happen with most images on this page) or to take you to more detailed pages which will tell you much more about the product (which will happen with one or two of them), and perhaps let you purchase online.</p>

<p>Hotel rooms certainly CAN be booked online (<a href=https://lightning.he.net/~wellho/hotel/reservation.php>[via this link]</a>), and we're delighted to offer immediate confirmation of availability, and best prices.  Training course are also bookable on line <a href=https://lightning.he.net/~wellho/coursebooking/index.php>[via this link]</a>, though we prefer to check with each individual by email first to make sure that they're buying the most appropriate course to meet their needs.  And in the case of both hotel and courses, we look forward to meeting you in Melksham in due course.</p>

<p>With physical products rather than person-to-person services (such as those from Fairies Wear Boots Designs), you may wish to visit their shop - meet the owners, choose want you want ... but you may also live a long way away and for purely practical reasons wish to look through their web site, contact them through that (link <a href=http://www.fairieswearbootsdesigns.co.uk/>[here]</a>), and order and have your product shipped without ever setting foot in Wiltshire.  And that's welcomed and cared for business too.</p>

<p><i>Melksham has a number of niche suppliers.  Lisa and I were amazed to come up with some 200 retail product or service outlets when we came up with a map a couple of years ago.  And we know that many of them are selling far and wide beyond the town via the Web.  That's wonderful news for them, and for Melksham.  Long may it be fostered, and continue to grow.</i></p>]]>

</content>
</entry>
<entry>
<title>Want to learn iPad and iPhone programming? Come along and learn with me for free.</title>
<link rel="alternate" type="text/html" href="http://www.wellho.net/archives/2012/01/index.html#003596" />
<modified>2012-01-28T15:26:01Z</modified>
<issued>2012-01-28T15:21:53Z</issued>
<id>tag:www.wellho.net,2012:/horse/1.3596</id>
<created>2012-01-28T15:21:53Z</created>
<summary type="text/plain">I&apos;m learning Objective C. The language itself doesn&apos;t look too difficult, nor do the elements of how it&apos;s used on the iPad and iPhone for App programming. But there&apos;s an awful lot of content to those elements - a lot...</summary>
<author>
<name>gje</name>

<email>graham@wellho.net</email>
</author>

<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.wellho.net/horse/">
<![CDATA[<p><img src=http://www.wellho.net/pix/guineapig.jpg align=left hspace=5>I'm learning Objective C. The language itself doesn't look too difficult, nor do the elements of how it's used on the iPad and iPhone for App programming.  But there's an awful lot of content to those elements - a lot of putting together to see the complete picture.  My target is to end up knowing Objective C, and the whole iOS / Xcode environment in which it is used, well enough to be easily able to specify and write my own applications, and to assist others as they learn how to do so.  </p>

<p>Some time in mid to late February, or early March, I'm going to take a day or two to check and see how I'm doing.  And I'm going to check my knowledge by explaining to one or two former delegates / friends how it works - it's a real chance for them to learn with me, to be my guinea pigs if you like.  <b>If you would like to get into App writing for Apple products, <u>and have a strong background in programming (including OO - principles at least)</u>, please let me know.</b> (This is not going to be a beginner's session)</p>

<p>This is a real opportunity for <b>you</b> and <b>me</b> to help each other get really into this exciting field.  I'm motivated - are <i>you?</i> <font color=brown>Email me, or get in touch via <a href=http://www.wellho.net/net/alaska.php>our contact page</a>.</font></p>

<p>[Venue - Melksham, Wiltshire.  Hotel rooms available <a href=http://www.wellhousemanor.co.uk>[here]</a>.  No charge at all for being my guinea pigs - but if you need to stay, we can't do the rooms for free as well - &pound;72.00 per room per night which is our lowest delegate rate]<br clear=all></p>]]>

</content>
</entry>
<entry>
<title>Looking up</title>
<link rel="alternate" type="text/html" href="http://www.wellho.net/archives/2012/01/index.html#003595" />
<modified>2012-01-27T10:54:33Z</modified>
<issued>2012-01-27T10:50:58Z</issued>
<id>tag:www.wellho.net,2012:/horse/1.3595</id>
<created>2012-01-27T10:50:58Z</created>
<summary type="text/plain">You can walk through a city and see the street ... and you can glance upwards too and see far more than the street - some incredible architecture, both old and modern. Click on any image to see it larger....</summary>
<author>
<name>gje</name>

<email>graham@wellho.net</email>
</author>

<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.wellho.net/horse/">
<![CDATA[<p>You can walk through a city and see the street ... and you can glance upwards too and see far more than the street - some incredible architecture, both old and modern.  Click on any image to see it larger.</p>

<p><a href=http://www.wellho.net/pix/l21_1.jpg target=zzz><img src=http://www.wellho.net/pix/l21_1.jpg border=0 width=225 hspace=2 vspace=5></a> <a href=http://www.wellho.net/pix/l21_2.jpg target=zzz><img src=http://www.wellho.net/pix/l21_2.jpg border=0 width=225 hspace=2 vspace=5></a> <a href=http://www.wellho.net/pix/l21_3.jpg target=zzz><img src=http://www.wellho.net/pix/l21_3.jpg border=0 width=225 hspace=2 vspace=5></a> <a href=http://www.wellho.net/pix/l21_4.jpg target=zzz><img src=http://www.wellho.net/pix/l21_4.jpg border=0 width=225 hspace=2 vspace=5></a> <a href=http://www.wellho.net/pix/l21_5.jpg target=zzz><img src=http://www.wellho.net/pix/l21_5.jpg border=0 width=225 hspace=2 vspace=5></a> <a href=http://www.wellho.net/pix/l21_0.jpg target=zzz><img src=http://www.wellho.net/pix/l21_0.jpg border=0 width=225 hspace=2 vspace=5></a></p>

<p>London, late afternoon and early evening yesterday</p>]]>

</content>
</entry>
<entry>
<title>Back to Uni</title>
<link rel="alternate" type="text/html" href="http://www.wellho.net/archives/2012/01/index.html#003594" />
<modified>2012-01-28T09:10:22Z</modified>
<issued>2012-01-26T22:47:11Z</issued>
<id>tag:www.wellho.net,2012:/horse/1.3594</id>
<created>2012-01-26T22:47:11Z</created>
<summary type="text/plain">We&apos;re trainers so we should be (and we are) advocates of training courses. And that means attending appropriate training, as well as giving it. Those readers who&apos;ve been on our courses may well have heard me talk about how I...</summary>
<author>
<name>gje</name>

<email>graham@wellho.net</email>
</author>

<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.wellho.net/horse/">
<![CDATA[<p><img src=http://www.wellho.net/pix/tcu1.jpg align=left hspace=5>We're trainers so we should be (and we are) advocates of training courses.  And that means attending appropriate training, as well as giving it.   Those readers who've been on our courses may well have heard me talk about how I have traveled far and wide to learn from the people at the heart of Perl, PHP, Python and more - traveling to places as far apart as Alaska, Colorado, Venice and Izmir in the process. And on the less technical side, you'll know I completed an Emergency First Aid course last week.</p>

<p>I'm studying again at present - not locally, but not at one of the more exotic locations - I'm back at the University where I took my degree course, graduating some 36 years ago. It's rather an odd feeling.  I'm learning a new operating system - ios - and specifically programming under it.   That will get me much more up to speed on iPad and iPhone programming.  The course is spread over 10 evenings over as many weeks, and from my first attendance today I know it's very much lecture style, with the tutor covering a huge amount of ground in 2 hours, and all his students needing to find time before the following week to revise, practise, and come up with questions for the following week.</p>

<p><img src=http://www.wellho.net/pix/tcu2.jpg align=right hspace=5>Why this departure from server side programming?  Because the world is wider than server side programming.  And it turns out that, hidden under the layers of apple and pastry, is a container that's based on a GUI (Graphic User Interface) with much the same concepts as Tk, and a language in Objective C that's object oriented just as C++ or Python, with a widget interface that's reminiscent of Swing (Java) or wX [Python].  And with some bits of the language, I'm thinking "goodness - that's almost like Tcl or Lua".</p>

<p>The best way for me to learn is for me to write notes - "what if I was telling someone else how to do this" - and that's what I'm planning to do.   And I'll be hoping to go deep enough to be able to answer corollaries such as "what have I missed / why didn't it work" and "how do I xxx" where xxx is something a bit different.  You'll see the fruits of my learning in a few months, I expect.  We have a couple of iPad applications in mind, and one of the things that I've already learned today is that with care you can write an application for both the iPhone and the iPad.  The two headlines to bear in mind are (1) the different aspect ratio and (2) if you build the two as one, you can't sell them twice to someone who wants them for both device types, nor have a differential pricing scheme.  Well - that's what we were told.  I'm going to suggest that screen size makes a significant difference too.   Over the past couple of weeks, I've been tailoring web content for iPhone and iPad - and that's something that I've already learned to be very significant.</p>

<p>It rather looks like this isn't the big departure for us that you might have imagined.  Rather a gentle introduction of a new track.  Objective C's actually a rather nice language ...</p>]]>

</content>
</entry>

</feed>
