Do you get irritated by the volume of spam you get - by email, by telephone, and in the post?
I don't know which is the worst. Phone calls demand your immediate attention and (personally) I find it very hard to get back into coding concentration once I've broken to speak to someone who's just do ....
When the Apache HTTP Server manages its child processes, it needs a way to wake up processes that are listening for new connections. To do this, it sends a simple HTTP request back to itself. This request will appear in the access_log file ... typically from 127.0.0.1 or your server's IP address. F ....
There are times that we want to check the connectivity of all the systems on our subnet - to see which machines are present, and which are not. Pinging them one at a time is a bit slow, but pinging them all at once in a simple script sets up too many connections and the script is likely to fall ove ....
*Something* on our web server has been causing the loading to rocket a couple of times a day recently, and it's been a bit of a problem to find out what that something is. Rather like searching for a needle in a haystack - except that when you find something that you think may be the problem, you c ....
"The AWK utility is a data extraction and reporting tool" - Wikipedia
"Perl was developed as a language to make report processing easier" - Wikipedia
So what's the difference?
Looking through all the lines of a file, report the 6th and 1st fields on each line that contains the string "pix" and re ....
In some ways, Perl and CGI (Common Gateway Interface) is "old hat", but some times it's still just what you need.
Over the last couple of days, I've been working with Perl, with a customer for an intermediate tutorial session on some aspects of the language such as Object Orientation and Regular Ex ....
Taking the dog out for a walk? It's much easier to use a lead than to carry the whole dog.
And ... in a similar vein ... when you're passing some data into a named block of code (a.k.a. sub, subroutine, function, procedure, command, method, macro) when programming, it's much more efficient to pas ....
The Apache httpd server is preconfigured when you download it to define common and combined logging formats - and those are the standards accepted by so many tools. But there's so much more information available if you choose to log it. In order to get a better understanding of metrics of the tr ....
Many of our demonstrations on the Well House Consultants site show individual features of a language - taken in isolaion to show you how they work. However, during a course we usually write further examples to show you how features work in combination to give a total result / solution to an applicat ....
If you want to stop a user interrupt via ^C aborting your program, you can catch a KeyboardInterrupt in Python. There's an example [here] which I wrote earlier today. It also shows how important it might be to use two try/except blocks rather than one - I've specified two inputs in the same block a ....