There are those businesses who will go out of their way to continue to provide a the best service they can in the inclement weather, and there are those who will abandon even their regular customers in the snow - "fair weather friends". It's been interesting to learn who falls into which group this ....
It's somewhat ironic that I left last night's meeting of Melksham Climate Friendly Group in a bit of a blizzard. Many familiar faces, a great deal of knowledge, and a group each of whom is taking a real interest in some aspect of the subject in their own way, with a strong and effective chair pullin ....
You may have heard me talk about "injection attacks" and that having register_globals set to on in PHP makes you liable to be caught by them. Well - that's a little bit dramatic as you can write perfectly safe PHP scripts with the setting on if you're careful. Here's an example of a script which ....
Public Transport Chaos yesterday - the newspaper headlines tell us of the London bus system shut down, and our own status report page on First Great Western's train services show that they too had major issues (but congratulations to them for managing to run even a reduced service).
But our train ....
Want to check what version of OSX is on a particular machine? Use the sw_vers command:
Dorothy:f9php grahamellis$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.5.4
BuildVersion: 9E17
Dorothy:f9php grahamellis$
or in a shell script, with the -productVersion option ...
Dorothy:f9php grahamellis ....
The ++ (increment) operator in PHP (and Perl, and C, and Ruby) adds one to the value held in a variable and saves the result back in the same variable. But you'll see both $n++; and ++$n; in code. What is the difference?
If you write the ++ in front of the variable name, the variable is increme ....
We're a training company, and we believe in getting our staff trained. Today, being a quiet day, Chris and Sharon attended a Health and Safety course run by Switch Training in Malmesbury. Chris called in shortly before the start to confirm that he had found the place ... and said he would let me k ....
I ran a public Python course earlier this week ... and (as I usually do!) wrote a number of short examples during the class to show the delegates not only how something is done, but also how the coding process works and how the particular answers are developed. I can't show you that process here o ....
Our web site logs are getting a lot of requests containing "babycaleb" and "fortunecity" ... looking for URLs such as these:
/resources/ex.php4?item=http://babycaleb.fortunecity.co.uk/picture.htm?
/resources/ex.php4?item=http://64.15.67.17/~artatgig/caleb.htm?
and said to be from an Internet Explore ....
What does THIS mean?
UnboundLocalError: local variable 'taxrate' referenced before assignment
It means that you have tried to modify the value of a variable - perhaps in a function - before you have given it an initial value:
taxrate = 15
def getnet(gross):
taxrate /= 100.
  ....