/Tony Lawrence

About Tony Lawrence

This author has not yet filled in any details.
So far Tony Lawrence has created 47 blog entries.

Javascript setTimeout Problem

2010-05-26T11:28:06+00:00 April 25th, 2005|JavaScript|

A neighbor wanted to run Google ads on his website. It's one of these turnkey things that give you an on-line store that you can add products to. It's all PHP and Javascript driven, but it wasn't too hard to find a place to stick the Google code (which is also Javascript).

Perl Sorting

2010-05-26T11:27:56+00:00 April 25th, 2005|CGI and Perl|

Arrays often need sorting. Perl has built-in ways to help you, but as usual, there's more than one way to do it. To play with the examples shown here, you'll need a file containing a few lines of words.

Perl Input

2010-05-26T11:27:50+00:00 April 25th, 2005|CGI and Perl|

Perl has wonderful I/O capabilities. I'm only going to cover input here: reading from files or standard input. There are two ways to do that (actually a lot more than two, but this is supposed to be introductory material): you can open a specific file, or you can pass files on the command line and either open them individually or just ignore the whole thing and pretend everything is coming from STDIN.

Perl Getopt and GetOptions

2010-05-26T11:28:33+00:00 April 22nd, 2005|CGI and Perl|

Two Perl modules (Getopt and Getoptions::Long) work to extract program flags and arguments much like Getopt and Getopts do for shell programming. The Perl modules, especially GetOptions::Long, are much more powerful and flexible.

Writing and Compiling C programs on Linux

2010-05-26T11:28:40+00:00 April 22nd, 2005|Linux|

Most Linux and Unix programs are written in C. When you download source for a project, it will often be C or C++ source code. You don't necessarily need to know a darn thing about C or anything else to compile the source if you aren't changing it. It may be helpful for you to understand a bit if you are having problems with the compile, but even that isn't really necessary.