It's nearly five years since I got involved in "Save the Train" and public transport - mainly by rail - in and across Wiltshire. Although local support has always been near 100%, in those early days we felt we were swimming almost alone against a tide of officialdom, calling for a TransWilts service ....
I still love Perl ...
Wanting to convert a file of lines like this:
<img src=rp_153_track.jpg><br><br>
into lines like this:
rp_153_track.jpg <img src=rp_153_track.jpg><br><br>
The code is as simple as:
/=(.*?)>/;
print "$1 $_";
An ....
Melksham Carnival and Melksham Party in the Park take place this year on Saturday, 17th July ("this year" is 2010).
The whole town comes out on Carnival day! From lunchtime onwards, there are stalls on King George's Fields, and food and entertainment - well organised by the PIP team. Then - late ....
If you want to find out what's going on around you in a Python program, you can uses your system's environment variables via the os.environ module - the keys() method telling you which environment variables are available to you. There's an example [here] from our Python Programming training course. ....
When Java first came out in the mid 1990s, its main focus was on Applets - embedded chunks of applications that ran (and still run!) in a frame within a browser's window in much the same say that an image or flash movie is framed.
Java has progressed. It now has a far bigger 'market' in a whole ra ....
I've been teaching Java Server Programming to newcomers this week ... and here are three example that I wrote today, pulling much of the work together.
1. An example of a JSP (Java Server Page) that opens and reads an entire file into an ArrayList of (in this case) String objects, then performs an ....
Do you want to check (and perhaps set) cookies within a Java Servlet? I was looking around for good, straightforward examples today but found that most of the published code is only snippets rather than complete examples, or is over-complex for what should be a simple demo.
First - do you really w ....
When you create an object with the constructor, you may also set property [attribute] values within it ... or you may follow on with a series of method calls to set the initial values. Then when you pull back values / attributes / properties from your object you return those values, or the results ....
Let me see if I can remember this.
1. I called a number, and went through a series of four menus, looking to speak to someone. In between the various elements of the call, I was told that I could read all about in on the web, and that my call might be recorded for quality purposes. I was then a ....
You get the length of an array, but you ask about the size() of an ArrayList, and you can inquire into the capacity() of a StringBuffer. Aren't they really all the same sort of thing? Which does Java use in which circumstance?
Java uses the word length when you're asking about something that can b ....