From msemtd at yahoo.co.uk Wed Aug 4 06:43:32 2004 From: msemtd at yahoo.co.uk (Michael Erskine) Date: Wed Aug 4 06:43:29 2004 Subject: [Nottingham-pm] All quiet - meeting tonight Message-ID: <200408041243.32344.msemtd@yahoo.co.uk> All, I'll be at the nottlug meeting tonight and I'll be bringing the O'Reilly goodies to hand out. Regards, Michael. From msemtd at yahoo.co.uk Wed Aug 4 06:49:56 2004 From: msemtd at yahoo.co.uk (Michael Erskine) Date: Wed Aug 4 06:49:52 2004 Subject: [Nottingham-pm] The wiki Message-ID: <200408041249.56641.msemtd@yahoo.co.uk> I seem to be the only one playing with the wiki (http://nottingham.pm.org/wiki/wiki.cgi) - have a go! It's all open at the moment - user authentication ideas welcome (e.g. apache htaccess or Twiki). Also, I'd like a nice stylesheet to spruce it up! Regards, Michael. From incandescant at gmail.com Thu Aug 5 02:39:06 2004 From: incandescant at gmail.com (Josh Lock) Date: Thu Aug 5 02:39:14 2004 Subject: [Nottingham-pm] The wiki Message-ID: Hi, Any chance we can get the sites mentioned as hyperlinks? I'm expecially interested in Pagan Linux (cool name!) P.S: I missed the meet last but if you have any of the O Reilly goodies left can I get some put aside with my name on? Not had much chance to play with Perl so still a total newb but hoping to get into web scripting using Perl. Cheers Josh From msemtd at yahoo.co.uk Thu Aug 5 05:56:54 2004 From: msemtd at yahoo.co.uk (Michael Erskine) Date: Thu Aug 5 05:56:55 2004 Subject: [Nottingham-pm] The wiki In-Reply-To: References: Message-ID: <200408051156.55001.msemtd@yahoo.co.uk> On Thursday 05 August 2004 08:39, Josh Lock wrote: > Hi, > > Any chance we can get the sites mentioned as hyperlinks? > I'm expecially interested in Pagan Linux (cool name!) I'm not sure I understand what you want but... the wiki is at http://nottingham.pm.org/wiki/wiki.cgi whereas paganlinux.org hasn't yet been registered (on the todo list - hosting recommendations anyone?) > P.S: I missed the meet last but if you have any of the O Reilly > goodies left can I get some put aside with my name on? Sure, there's a few things left - I'm saving some for James B too since I had to rush out for the bus last night! > Not had much chance to play with Perl so still a total newb but hoping > to get into web scripting using Perl. use CGI; :) Regards, Michael. From incandescant at gmail.com Thu Aug 5 06:14:49 2004 From: incandescant at gmail.com (Josh Lock) Date: Thu Aug 5 06:14:52 2004 Subject: [Nottingham-pm] The wiki In-Reply-To: <200408051156.55001.msemtd@yahoo.co.uk> References: <200408051156.55001.msemtd@yahoo.co.uk> Message-ID: > I'm not sure I understand what you want but... the wiki is at > http://nottingham.pm.org/wiki/wiki.cgi whereas paganlinux.org hasn't yet been > registered (on the todo list - hosting recommendations anyone?) I meant a URL for paganlinux. A host that looks quite good is http://www.ukhost4u.com ?30 a year inc domain! For a bigger rep you could try 1&1 www.oneandone.co.uk And a mate uses blue host www.bluehost.com > Sure, there's a few things left - I'm saving some for James B too since I had > to rush out for the bus last night! Nice one! When/How is the best way to collect them? > use CGI; :) > OK! :) Will look into CGI when I get time to look at Perl, thanks. Cheers Josh From jkg at jimbo.org.uk Thu Aug 5 17:47:35 2004 From: jkg at jimbo.org.uk (James Green) Date: Thu Aug 5 17:47:38 2004 Subject: [Nottingham-pm] The wiki In-Reply-To: <200408051156.55001.msemtd@yahoo.co.uk> References: <200408051156.55001.msemtd@yahoo.co.uk> Message-ID: <20040805224735.GA7319@sapphire.jimbo.org.uk> On Thu, Aug 05, 2004 at 11:56:54AM +0100, Michael Erskine wrote: > I'm not sure I understand what you want but... the wiki is at > http://nottingham.pm.org/wiki/wiki.cgi whereas paganlinux.org hasn't yet been > registered (on the todo list - hosting recommendations anyone?) http://www.blackcatnetworks.co.uk/ - nice people, and competent. Which is nice. James. -- jkg((-.+)?@(|the\.)earth.li|@(jimbo|wonky)\.org\.uk|03u@cs\.nott\.ac\.uk) Work consists of whatever a body is obliged to do. Play consists of whatever a body is not obliged to do. -- Mark Twain -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://mail.pm.org/pipermail/nottingham-pm/attachments/20040805/1ddb90dd/attachment.bin From michael.haber at ntu.ac.uk Sat Aug 7 05:37:03 2004 From: michael.haber at ntu.ac.uk (Haber, Michael) Date: Sat Aug 7 05:36:50 2004 Subject: [Nottingham-pm] The wiki Message-ID: Josh >>Not had much chance to play with Perl so still a total newb but hoping >>to get into web scripting using Perl. Go to Boots library, they've two copies of learning perl by randall schwartz. I've got one of them :-) They're on one week loan, but you'll get it booked out till september, by which time you'll be perl literate. I think the last chapter is on starting CGI. later Mike H -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/ms-tnef Size: 2405 bytes Desc: not available Url : http://mail.pm.org/pipermail/nottingham-pm/attachments/20040807/1eab8ea2/attachment.bin From perl at tecspy.com Sun Aug 8 14:35:49 2004 From: perl at tecspy.com (Michael) Date: Sun Aug 8 14:36:39 2004 Subject: [Nottingham-pm] The wiki In-Reply-To: References: Message-ID: <41168095.7090003@tecspy.com> Haber, Michael wrote: > Go to Boots library, they've two copies of learning perl by randall schwartz. I've got one of them :-) > They're on one week loan, but you'll get it booked out till september, by which time you'll be perl literate. I think the last chapter is on starting CGI. Or howsabout "Beginning Perl" by Simon Cozens. You can read it online for free at http://learn.perl.org/library/beginning_perl/ (also has CGI section) Regards, Michael. From incandescant at gmail.com Mon Aug 9 02:47:53 2004 From: incandescant at gmail.com (Josh Lock) Date: Mon Aug 9 02:47:58 2004 Subject: [Nottingham-pm] The wiki In-Reply-To: <41168095.7090003@tecspy.com> References: <41168095.7090003@tecspy.com> Message-ID: I'll try them both! Thanks for the pointers. Regards Josh From msemtd at yahoo.co.uk Mon Aug 16 07:50:56 2004 From: msemtd at yahoo.co.uk (Michael Erskine) Date: Mon Aug 16 07:50:31 2004 Subject: [Nottingham-pm] Fwd: [Nottingham] Meeting, Wednesday 18th August 2004 Message-ID: <200408161350.56272.msemtd@yahoo.co.uk> perlmongers take note! ---------- Forwarded Message ---------- Subject: [Nottingham] Meeting, Wednesday 18th August 2004 Date: Monday 16 August 2004 10:15 From: Duncan John Fyfe To: nottingham@mailman.lug.org.uk Hello one and all, After a long break our next meeting brings with it the next installation of our Introduction to PERL course including a promise that it involves no cutting up of paprer what so ever. Wed 18 Aug - Introduction to PERL Part 3: Code Re-use or How Not to Re-invent The Wheel... or How To Save Lots of Typing... 19:30 - 20:30 , Doors open 19:15 Broadway Business Centre 32a Stoney Street Just down from the Adams Building and NCP car park. Press the Reception buzzer on the door. Following on (21:00 ish by the time we get out the door) we shall roll onto The Roebuck Inn for a drink or three. Have fun, Duncan -- Duncan John Fyfe X-ray Astronomy Group, Dept. of Physics & Astronomy, Phone +44 116 252 3635 University of Leicester, E-mail djf@star.le.ac.uk University Road, Leicester, LE1 7RH, U.K. _______________________________________________ Nottingham mailing list Nottingham@mailman.lug.org.uk http://mailman.lug.org.uk/mailman/listinfo/nottingham ------------------------------------------------------- From msemtd at yahoo.co.uk Mon Aug 16 08:22:15 2004 From: msemtd at yahoo.co.uk (Michael Erskine) Date: Mon Aug 16 08:21:50 2004 Subject: [Nottingham-pm] This morning's work In-Reply-To: <200408161350.56272.msemtd@yahoo.co.uk> References: <200408161350.56272.msemtd@yahoo.co.uk> Message-ID: <200408161422.15440.msemtd@yahoo.co.uk> This morning I'm writing an interface to a Rohde & Schwarz FSH3 Spectrum Analyser - I quoted two weeks' work but got the guts of it together in about an hour with POE this morning! As a result I've moved onto the important stuff, like a script to get a complete month of dilbert cartoons... Life is good again! #! /usr/bin/perl -w use strict; =for docs Get a month of dilbert cartoons into current directory. I noticed that there was an archive for the previous month or so of dilbert cartoons. The cartoon images have mildly obfuscated names but that's no real challenge for a regex! First I get the archive page from http://www.comics.com/comics/dilbert/archive/ and pull out all the links to each dated page e.g. . Luckily, these urls are quite easy to spot and any duplicates are taken out with a hash hack. This, of course, will all break when the format changes - ah well! =cut use tmstub; use LWP::Simple; use File::Slurp; # Hot file handle magic... select( ( select(STDERR), $| = 1 )[0] ); select( ( select(STDOUT), $| = 1 )[0] ); # Get archive index... my($pageurl, $pagedata) = ('http://www.comics.com/comics/dilbert/archive/'); if(not defined ($pagedata = get($pageurl))){ t "could not get page '$pageurl'"; exit(1); } # Split into lines... my @lines = split /\n/m, $pagedata; # pull out urls to daily pages... my @urls = grep {s[.*][$1]} @lines; # remove dupes... my %h; @h{@urls} = @urls x '1'; @urls = sort keys %h; t "There are ".scalar(@urls)." urls to get..."; foreach(@urls){ # get machine readable date... if(not /dilbert-(\d{8})\.html/){ t "could not establish date from url '$_'"; next; } my $mrd = $1; # don't bother if it looks like we have it already... if(-f "dilbert".$mrd.".gif" or -f "dilbert".$mrd.".jpg"){ t "already got '$mrd' so won't get '$_'"; next; } my($pageurl, $pagedata) = ('http://www.comics.com'.$_); if(not defined ($pagedata = get($pageurl))){ t "could not get page '$pageurl'"; next; } if (not $pagedata =~ m{ ':raw'}, $content ); } From incandescant at gmail.com Mon Aug 16 09:49:02 2004 From: incandescant at gmail.com (Josh Lock) Date: Mon Aug 16 09:49:10 2004 Subject: [Nottingham-pm] This morning's work In-Reply-To: <200408161422.15440.msemtd@yahoo.co.uk> References: <200408161350.56272.msemtd@yahoo.co.uk> <200408161422.15440.msemtd@yahoo.co.uk> Message-ID: Nice! That shows a newb like me just how powerful Perl is! From djf at star.le.ac.uk Wed Aug 18 06:05:40 2004 From: djf at star.le.ac.uk (Duncan John Fyfe) Date: Wed Aug 18 06:05:32 2004 Subject: [Nottingham-pm] NotLug/NotPM Meeting tonight Message-ID: Hello one and all, First sorry for not forwarding the announcement about tonights meeting to the Nottingham Perl Mongers list. Second ahead of tonights meeting I shall be preparing the talk from ~18:15ish in The Cock and Hoop (25-27 High Pavement, Lace Market, Nottingham, Nottinghamshire, NG1 1HF) anyone wishing to help me prepare is welcome to join me. Have fun, Duncan -- Duncan John Fyfe X-ray Astronomy Group, Dept. of Physics & Astronomy, Phone +44 116 252 3635 University of Leicester, E-mail djf@star.le.ac.uk University Road, Leicester, LE1 7RH, U.K. From msemtd at yahoo.co.uk Thu Aug 19 03:23:14 2004 From: msemtd at yahoo.co.uk (Michael Erskine) Date: Thu Aug 19 03:22:55 2004 Subject: [Nottingham-pm] Re: NotLug/NotPM Meeting tonight In-Reply-To: References: Message-ID: <200408190923.14084.msemtd@yahoo.co.uk> Many thanks to Duncan for a good talk last night - I learnt a thing or two that will help me in my day-to-day Perl hackery (e.g. putting coderefs into @INC) and quite a few other taken-for-granted Perlish features were put nicely into perspective. As promised, I'll post my quick config hacks (inc storing and retrieving from XML) later on today. For those interested in "design patterns" (a la Gang of Four) the Perl Design Patterns Wiki is at... http://perldesignpatterns.com/ ...and there's a couple of good articles over at perl.com... http://www.perl.com/pub/a/2003/06/13/design1.html ...and for a fantastic discussion of the design patterns phenomenon from the POV of a Perl guru, see the marvelous M.J.Dominus' "Design Patterns Aren't" at... http://perl.plover.com/yak/design/ . Regards, Michael.