About us and this newsletter [link]
Previous editions: September 2023
• July 2023
• May 2023
• March 2023
• January 2023
• November 2022
• September 2022
• July 2022
• May 2022
• this is the current edition
Keynote article ...
|Regression testing - via a very short C testing framework|
Code testing is important. Separation of code into separate, managable sections is important. Retesting of code running all the old tests is important when the code sections are enhanced / debugged.
At the end of this week's C course, we wrote a whole series of pieces of logic relating to web server log files - loading data into dynamic (realloc'd arrays of structs, and then extracting data from those structures. And we wrote an initial main routine to run and test from the command line. For initial development, that's great but ...
... the main couldn't remain as we started to build with the logic
... lots of sections / routine groups need testing.
• Rename main to a different name such as test_access and leave it in the original file
• build a tiny test harness that runs each set of tests and correlates the results
• have the test harness send standard output (stdout) within the tests to a file
A rudemintary regression testing system, where each time you add a new set of routines or change something, you can rerun all the tests and get an automated set of replies.
The results of running the test suite look a bit boring:
WomanWithCat:cj16 grahamellis$ ./framework
Failed 1 test(s) out of 4, passed 3
Commented framework source is [here] and tests and routines to be tested [here] and [here].
(this article written on 2016-01-29)
Other articles ...
shell - bash. Writing conditional tests and statements - the options available
Extending your bash shell with aliases, functions and extra commands
What is make? What is gcc?
Bash ... some new scripts to - handling user input
Starting MySQL. ERROR! The server quit without updating PID file - how we fixed it.
or Show all for Linux and Shell Programming
Scons - a build system in Python - building hello world
Web Server Admin - some of those things that happen, and solutions
Public training courses - upcoming dates
Java web application for teaching - now with sessions and clustering / load balancing demonstrations
A Java servlet that is also a stand alone program. And a server that is also a web client.
or Show all for Apache HTTP and Tomcat Servers
Encapsulating logic in functions and structs - the C approach to Object Oriented techniques
String handling in C - new examples of extracting integers from a string
C - why is slow to write and debug) but fast to run?
Allocation of memory for objects in C++ - Stack v Heap
Formatting and outputting your own classes in C++
or Show all for C and C++ Programming
Melksham Chamber of Commerce - my final Presidents report
Melksham trial train service is to be made permanent
Three months in community rail pictures
What do people use the bus for in Wiltshire - survey interim results.
Pretty at the station too
or Show all for Melksham
Python, Tcl, Lua and other Open Source programming courses for 2018
Final day of training at Well House Manor - Python, Lua, Tcl and C/C++ continue at The Spa, Melksham
Course dates - from October 2016 to December 2017
Training Course schedule for summer and autumn 2016
Ruby training, half a world away
or Show all for Training from Well House Consultants
Our best hotel customers help us ... to help them ... be our best customers.
Happy New Year. Our customers are our ambassadors
Saturday morning at Well House Manor
Should we get an AA or Visit Wiltshire hotel assessment?
Four in a Bed - most popular answers
or Show all for Running a training and hotel company
Well House Manor - Still five out of five!
In your room at Well House Manor, Melksham, Wiltshire
A near-empty plate of pastries - sign of a breakfast enjoyed
Japanese and Malaysian food in Melksham
Well House Consultants / Well House Manor - Prices for 2015
or Show all for Well House Manor - Hotel and Training Centre
Pressure selling in the fire safety business
No cold sales calls please - but delighted to hear from others!
Almost so wrong, but perhaps it's right for some?
Effect on external factors on traffic to our web sites - an update
FileMaker Day to Unix Time conversion
or Show all for For the Webmaster, Postmaster and moderator
Regex Reference sheet
Some gems from an introduction to Python
Separating detailed data code from the main application - Ruby example
Easy data to object mapping (csv and Python)
Identifying the first and last records in a sequence
or Show all for General Programming Topics
Image indexer / thumbnail display scripts in PHP
A small teaching program - demonstration of principles only
Caching results in an object for efficiency - avoiding re-calculation
Singleton design pattern - examples and uses
Moving from mysql to mysqli - simple worked example
or Show all for PHP - the language and its application
Using the lead - passing arrays and other collections in Java
Java example - for loop and conditionals from course exercise
Objects - from physical to virtual or abstract - Java
Flexibility in input - read from file, web resource or keyboard
Java Inheritance example - group of classes - step by step
or Show all for Java and the Java Environment
Up and down TransWilts - some pictures off the rails!
Coats of arms - towns and authorities in Wiltshire
Frosty morning, beauty of Wiltshire
A lovely meal in Swindon - just a short walk from the station
Open for the new year - Imber
or Show all for Around, about and nearby to Wiltshire
Obfurscated code - it might work, but is it maintainable?
Perl 6 - a Practical Extraction and Reporting example!
Hungarian, Camel, Snake and Kebab - variable naming conventions
Sorting by key or by comparator - Perl 6
Mapping an array / list without a loop - how to do it in Perl 6
or Show all for The Perl Programming Language and its use
Cascading Style Sheets and formatting your web page
HTML tags uses in these blog articles
Special characters in HTML
The VERY basics of a web page ... and web site
Sharing the user experience - designing a form with the customer in mind
One line scripts - Awk, Perl and Ruby
Ruby testing with RSpec - a new example
Processing data line by line - iterator in Ruby with yield
Reading in XML in Ruby with xmlsimple
Running shell (operating system) commands from within Ruby
or Show all for Ruby and Ruby on Rails
Forgotten / lost MySQL root password
Extracting data from backups to restore selected rows from MySQL tables
Accessing a MySQL database from Python with mysql.connector
Fixing damaged MySQL tables - Error 1712 and Error 2013
Checking MySQL database backups have worked (not failed)
or Show all for SQL and MySQL
Coverage map in Tcl - how many times has each proc been called?
Expect with Ruby - a training example to get you started
Still teaching Tcl in 2016?
What does Tcl do if you try to run a command that is not defined?
Tcl - a new example for data reformatting
or Show all for Tcl, Tcl/Tk and Expect
Lua, Tcl, Python, C and C++ courses - at our Melksham HQ or on your site - forward from July 2017
Learning not just what a program does, but how to design it in the first place.
repeat until in Lua - a one or more rather than a zero or more loop
Classic style OO code - in Lua
Tables with values and code in Lua - looks like an object?
or Show all for Programming in Lua
From and Import in Python - where is the module loaded from?
Conditional operators in Python
Embedding more complex code into a named block
When to check an object type - Python isinstance example
or Show all for Python Programming
2017 - the final six months
Some thoughts on 2017, and looking forward to 2018
Looking forward to the autumn. 
Sale of effects and furniture - 12th and 13th August 2017
Learning how to be a more effective community partner
or Show all for And also ...
GW franchise - my response
Breich Station - current pictures, and future options
Some thoughts on the closure proposal for Breich station
Rotary Talk, 25/7/2017
Learning from travelling further afield
or Show all for Public Transport
Interview conditions,and other instructions to staff
Wiltshire Police - assuming someone is guilty just on the say-so of a member of the public?
Does Santa Claus need a CRB check?
Please do not ask me to be the chair!
On tipping - and the expectation of a tip
or Show all for Fun and Flames
Clustering on Tomcat
Looking ahead to the Autumn season of training and accommodation
Looking for a career change - Physician to Web Site Designer
How to avoid duplicating web page maintainance
November and December Public Course Schedule
or Show all for Keynote Articles
Moving on from Sunnyside and Devizes
Even more images!
Images ... continued
Python examples - updates under way
Reviewing TransWilts performance 2015-16
or Show all for unclassified
A little more about this newsletter ...
At Well House Consultants, we run niche IT training courses ... and we run a hotel for delegates on those courses and other visitors to Melksham too. And we make a lot of friends - have a lot of ambassadors with whom we want to keep in touch. So every day Graham (that's me, writing this piece) puts together an article or two which might include the latest sample programs that I've written during the current course, new information about Well House Manor - our business hotel
, tips on search engine optimisation, announcements of upcoming public courses
, pictures of local places, and even (on occasions) rants and whimsical pieces to keep those friends up to date and in touch. The feeds are available directlt via the Blog - "The Horse's Mouth"
, they're on our Twitter Feed
and you can find me at my LinkedIn profile
. But most people just want to look us up occasionally - every month or two, and then to catch up on the latest news just for their particular subjects of interest
... and that's what this newsletter is about
You'll find above the titles of ALL the new articles written in the last two months, listed by major subject area, and showing as (new)
with their date of publication. You'll find additional articles in each category too - topping each category up to a minimum of five articles. And you'll find a link at the end of each section which lets you expand that section to show the titles of every article that's been published in that section. After all, "the old ones are often the best ones", aren't they?