From gerry at osdc.com.au Fri Aug 5 08:11:30 2005 From: gerry at osdc.com.au (Gerry Quinlan) Date: Sat, 06 Aug 2005 01:11:30 +1000 Subject: [Canberra-pm] OSDC 2005 Call For Papers Message-ID: <42F381A2.9090703@osdc.com.au> OSDC (Open Source Developers' Conference) is a grass-roots/low cost conference in the style of a YAPC or PyCon. It's organised for developers, by developers, and we're looking for papers on open source languages, technologies and tools. The conference will be held in Melbourne (Monash University's Caulfield Campus) from the 5th til the 7th of December, 2005. Last years conference had about 160 people and around 60 papers on a range of topics - see http://www.osdc.com.au/papers/2004.html for a list. This list might also be useful if you're looking for ideas on what sort of thing would be appropriate. To submit a proposal, get yourself to the www.osdc.com.au website, and hit the 'Call for papers' link, or go directly to the paper submission website at http://osdc2005.cgpublisher.com/cfp.html Key Dates: Proposals deadline 19th August 2005 Proposal acceptance 12th September 2005 Submission deadline 28th October 2005 Final version for proceedings 15th November 2005 Conference 5th - 7th December 2005 Please feel free to pass this on to any other people or groups you think might be interested in submitting a paper! thanks Hope to see you there! From John.Hockaday at ga.gov.au Thu Aug 11 19:15:14 2005 From: John.Hockaday at ga.gov.au (John.Hockaday@ga.gov.au) Date: Fri, 12 Aug 2005 12:15:14 +1000 Subject: [Canberra-pm] How to flock a file for to ensure only one CGI BIN script process at a time Message-ID: <158ADDBA43E6C748BBD230A469EC6A4D0F00AA@mail.ga.gov.au> Hi Paul, Firstly thanks for the reply to my email. Secondly I apologise for not replying earlier but I have been sick. The information that you sent me was very useful. I didn't want the script to stop working when someone was using it. I just wanted the script to report to the web page that a very CPU expensive sub routine of the script was running and to try again later. Here is part of the code that works well for me. You probably all know this but I thought that I had better show you my solution just in case someone else had the same problem. I have left out the nitty gritty processing and html printing sub-routines: #!/usr/local/bin/perl use CGI; use strict; use Fcntl qw(:DEFAULT :flock); &initialise; my ($query) = new CGI; print $query->header if $DEBUG; if ($query->param('zserver')) { # User has entered zserver parameters. $zserver = $query->param('zserver'); undef $query; # Print the HTML header my ($q) = new CGI; print $q->header; # Check flock if flock send sorry being used wait open (LOCKFILE, "> $lockFile") or die "Can't open the lockfile $lockFile:$!\n" ; if (flock (LOCKFILE, LOCK_EX | LOCK_NB)) { &processSite(); flock (LOCKFILE, LOCK_UN); unlink $lockFile; } else { &printBusy; } undef $q; exit (0); } else { # First time to this page so print HTML form. my ($q) = new CGI; print $q->header; &printInputPage; undef $q; exit (0); } Thanks again for all your help. John > -----Original Message----- > From: Paul Fenwick [mailto:pjf at perltraining.com.au] > Sent: Friday, 29 July 2005 10:55 AM > To: Hockaday John > Cc: canberra-pm at pm.org > Subject: Re: [Canberra-pm] How to flock a file for to ensure > only one CGI BIN script process at a time > > > G'day John, > > John.Hockaday at ga.gov.au wrote: > > [snip] > > > I thought that flock would be the best method to use a lock > file to stop any > > other users from running the script while someone else has > it running. The > > trouble is that the script creates the lockFile and doesn't > delete it. How > > can I get flock to check if the lockFile exists and if so > send a busy message > > to CGI. Otherwise, set the lockFile, flock it and process the site? > > If I understand you correctly, you only want a single copy of > the CGI to be > executing at once. The easy way to do this isn't to create a > separate lockfile, > but to instead lock your program itself. These are described > in MJD's "Locking > Tricks and Traps" that can be found at > http://perl.plover.com/yak/flock/ . > > In a nutshell: > > use Fcntl qw(:flock); > > open(SELF, "< $0") or die "Cannot open $0 - $!\n"; > > flock(SELF, LOCK_EX | LOCK_NB) or die "Already running\n"; > > __END__ > > alternatively: > > flock(DATA, LOCK_EX | LOCK_NB) or die "Already Running\n"; > > # ... > > __DATA__ > > By opening and locking your own source file, you save all the > hassle of trying > to co-ordinate lockfile creation and deletion. > > All this assumes that you're running on a single machine, and > not a farm of > machines. Locking over a network filesystem has other hazards. > > Cheerio, > > Paul > > -- > Paul Fenwick | http://perltraining.com.au/ > Director of Training | Ph: +61 3 9354 6001 > Perl Training Australia | Fax: +61 3 9354 2681 > From bfardig at bigpond.com Thu Aug 11 20:48:43 2005 From: bfardig at bigpond.com (brad) Date: Fri, 12 Aug 2005 13:48:43 +1000 Subject: [Canberra-pm] Interview with Damian Conway about Perl Best Practices book Message-ID: <1123818523.12146.68.camel@localhost.localdomain> Found this interview today with Damian Conway talking about his new book. - enjoy http://www.perlcast.com/audio/Perlcast_Interview_003_Damian_Conway.mp3 -- Brad "A mind is like a parachute, it doesn't work if it isn't open." --Frank Zappa From jarich at perltraining.com.au Tue Aug 23 01:10:25 2005 From: jarich at perltraining.com.au (Jacinta Richardson) Date: Tue, 23 Aug 2005 18:10:25 +1000 Subject: [Canberra-pm] Next(?) meeting: 1st/2nd/3rd November Message-ID: <430AD9F1.6030905@perltraining.com.au> G'day everyone, Far be it from me to prevent you from having further Canberra PM meetings between now and November. However, Paul will be back in Canberra for four days between the 1st and 4th November (teaching Intro and Intermediate Perl) and would love to meet up with you for another meeting. Which night would suit you best? Or should I just pick one? If there's sufficient interest I suspect Paul will be happy to speak at both a Canberra PM meeting and a SAGE-ACT meeting. He'll probably be presenting the two talks he's providing at the System Administrators' Conference 2005, which I expect will please either audience. (For an idea of what I mean see: http://www.sage-au.org.au/conf/sage-au2005/speakers.html#fenwickabs ) Anyway, I've created a section for this discussion on the perl.net wiki. Feel free to add your piece(s). http://perl.net.au/wiki/Canberra_Perl_Mongers All the best, Jacinta -- ("`-''-/").___..--''"`-._ | Jacinta Richardson | `6_ 6 ) `-. ( ).`-.__.`) | Perl Training Australia | (_Y_.)' ._ ) `._ `. ``-..-' | +61 3 9354 6001 | _..`--'_..-_/ /--'_.' ,' | contact at perltraining.com.au | (il),-'' (li),' ((!.-' | www.perltraining.com.au | From sam at vilain.net Wed Aug 24 15:34:11 2005 From: sam at vilain.net (Sam Vilain) Date: Thu, 25 Aug 2005 10:34:11 +1200 Subject: [Canberra-pm] Perl miniconf at LinuxConf.au 2006 [resend] Message-ID: <1124922851.11639.8.camel@localhost.localdomain> Nick Phillips points out that LinuxConf.au 2006, being held at Otago University in Dunedin, NZ is also co-ordinating miniconfs; http://lca2006.linux.org.au/miniconfs.php The main conference runs from Wednesday 25th January to Saturday 28th January 2006. Mini-confs would run on the Monday and Tuesday (23rd & 24th). If there is enough interest, then there would be a strong argument for a Perl mini-conference. So, if you would be interested in attending Perl talks at LinuxConf Australia 2006, please say so now! Please do not cross-post replies to all the .au & .nz Perlmongers lists; reply to your own group's list only, thanks :). Potential speakers have until Monday 5th September to submit talk descriptions; we've got 2 days of talks to make up, and we don't JUST want to hear Damian ;-). Sam. note: apologies if this hits any list twice. I posted to all the .au & .nz Perlmonger lists, but it bounced because of excessive cross-posting :)