Structures are used to hold a whole lot of different pieces of data in a collection - by element name not number. Sometimes, you’ll only want to hold some elements of your structure in specific circumstances - a good example is where you have a whole lot of similar things you’re describing, but ....
This morning, I gave a talk on the "TransWilts" train service - the loss of most trains in 2006 and the campaign for the return of something more appropriate - to the Green Party's Regional meeting in Trowbridge. Here's my presentation, which I'll admit to writing in the few hours ahead of the talk ....
I had a couple of reports recently about web pages from our site being a little slow to load, and my independent spy tells me that they're not bad, but not the world's fastest either. And a little thought lead me to conclude that could be because of the various PHP scripting elements included at t ....
Now this was a mystery. I had two Linux boxes which booted perfectly when used inhouse, but very slowly indeed (10 minutes plus) when in use on a customer site. Very awkward really - we would test out the systems in Melksham and find them fine, but then they would fail in Bristol. Even calling u ....
Utility methods (factorys) are often used to create objects which may be of any of one of a series of different classes, depending on the data passed in. Have a look at this Perl program which reads in data from a log file and creates a list of web site visit objects:
use visit;
open (FH ....
Although Perl 5 doesn't use the words "class", "method" or "object" (or any of the other common OO words), it never the less has a very good OO model indeed - here's the source code of an example, together with the result of running the sample. I'll then give you a few clues!
use train;
use bus;
....
Last Friday afternoon I was set a challenge - to present Python in three hours to a group of 20 very experience programmers who, however, knew nothing about this particular language.
The session was in Central London - my directions started off with "Get off the Tube at Oxford Circus", so Londoners ....
The postcode for Westonbirt Arboretum is GL8 8QS.
Why am I putting that on my blog? Because I was woken this morning - and not for the first time - by a phone call and a voice asking "what's the postcode of the Arboretum?". One of the hazards on having a strong online presence is that you'll co ....
Is the number 7.0 the same as the number 7.00000? A trick question, because it depends on how you look at it. It has the same value, but it is not identical. And if eachof them is held in computer memory, there's no chance at all that they're both the same thing - i.e. held in the same memory loc ....
I've presented some Korn Shell Training over the last couple of days ,,, and I cut and pasted a few snippets which I thought might be of interest.
• Korn Shell - looping through a series of outputs from a command
$ for file in `ls`; do
> echo $file
> done
LinuxBasicsAdmin.book.pdf
Sefas.book ....