We have good availability on upcoming courses this summer - after a hectic spring, things are slightly quieter on the training side. So it's a very good time for you to come along and be part of a small group - learning a new language, or perhaps coming on a more advanced course such and getting i ....
If you already have programming experience and want to learn a new language, we have the following public courses coming up over the summer: [individual course links here].
C and C++ programming - starts 17th June 2014
Ruby programming - starts 8th July
Python programming - 15th July
PHP program ....
This post has been prepared on behalf of the Melksham Chamber of Commerce and Industry, as resolved at their meeting on May 20th 2014.
The Department for Transport is consulting with stakeholders about how train services should be run in the South West of England and South Wales from 2015 to 2020 ....
Scenario ...
* I wish to provide a button on my page that signals when it's pressed back to the server
* I wish the server to log the button press (a vote, perhaps) but not refresh the page
* I wish to change the text on the page to give visual feedback that the button has been pressed
Easy enoug ....
The traditional day out by train from Swindon to Weymouth is once again available on Sundays from 18th May until early September. The train leaves Swindon at 09:26 (09:21 on some dates), and passengers get to Weymouth at 11:54. Returning from Weymouth at 17:56, passengers will be back in Swindon a ....
We're coming up to elections for the European Parliament, though looking up the streets you won't see (m)any election postsers. And looking a year ahead, there's a general election to happen with parties already tussling for position. Talk on the radio yesterday was of how civil servants in some de ....
Lua is a small language - and so for some elements of its functionallity it uses wrappers around underlying C functions rather than re-implementing and duplicating logic. A good example is the string.format function which in essence is a wrapper around sprintf.
For example:
thing = st ....
When do I use a dot and when do I use a colon in referencing a table member in Lua? It's a good question and one that we answer (and demonstrate to help make clear) on our Lua Programming Course.
Dot refers to a table member. So if I write
source.read()
I am saying "run the read func ....
If you use the word or in an expression in Lua, the expression to the right of the word will only be evaluated and returned of the value to the left is nil. So a very common idiom is:
stuff = stuff or {}
which means "if stuff already has a value, leave it alone - otherwise make it an em ....
You can comment your Lua program in two ways.
a) using comments that start -- , in which case they run to the end of the line - so that's a line comment
b) starting --[[ , in which case they run through to the next ]] which may be in the same line, or a number of lines later - so that's a block co ....