From dave at dave.org.uk Mon Jun 2 08:45:11 2008 From: dave at dave.org.uk (Dave Cross) Date: Mon, 02 Jun 2008 16:45:11 +0100 Subject: [Thamesvalley-pm] The Perl Journal Message-ID: <20080602164511.s8j43oaqsw8sc440@webmail.mag-sol.com> [ cross-posted, so watch those follow-ups ] Remember The Perl Journal? Or are you one of the many people who has got into Perl since it vanished? Have you never seen an issue of this fabled magazine? A friend of mine has eighteen of the twenty issues which were published. He no longer has a use for them and would like to find a good home for. He has the following issues: * 1996 - volume 1 - numbers 1, 2, 3 & 4 * 1997 - volume 2 - numbers 1, 2, 3 & 4 * 1998 - volume 3 - numbers 1, 2 & 3 * 1999 - volume 4 - numbers 1, 2, 3 & 4 * 2000 - volume 5 - numbers 2, 3 & 4 If you want them (and I mean all of them - splitting the set is not an option) then drop him an email (Frank Wales ) and make him an offer. I've included ThamesValley.pm on this as Frank is in Sunningdale - so you might be able to pop round to pick them up and save on postage. Cheers, Dave... From print.crimes at yatterings.com Wed Jun 4 13:39:12 2008 From: print.crimes at yatterings.com (Iain Emsley) Date: Wed, 04 Jun 2008 21:39:12 +0100 Subject: [Thamesvalley-pm] Fuzzy Search on text Message-ID: <4846FD70.8010206@yatterings.com> Hi, I've been playing around with an algorithm to work out a fuzzy search on a word (as edit distances aren't quite what I need at the moment) but I've not been able to get the print quite there. Currently it prints out the sentence that the fuzzy search matches but I really just want the word matched. Does any one have any ideas on the best way of getting it? MTIA, Iain use strict; use warnings; my $word = "marley"; my @find = map ([split //], $word); my $find_len = length($word); my $fuzzy = 3; while (my $search = ) { chomp $search; $search = [split //, $search]; for my $i ( 0..@$search-$find_len ) { FIND: for my $find ( @find ) { my $misses = 0; for my $j ( 0..$find_len-1 ) { $misses++ if $search->[$i+$j] ne $find->[$j]; next FIND if $misses > $fuzzy; } print "Line $. Match ($misses) at $i, @$search\n"; } } } __DATA__ STAVE I: MARLEY'S GHOST MARLEY was dead: to begin with. There is no doubt whatever about that. The register of his burial was signed by the clergyman, the clerk, the undertaker, and the chief mourner. Scrouge signed it: and Scrooge's name was good upon 'Change, for anything he chose to put his hand to. Old Marley was as dead as a door-nail. Mind! I don't mean to say that I know, of my own knowledge, what there is particularly dead about a door-nail. I might have been inclined, myself, to regard a coffin-nail as the deadest piece of ironmongery in the trade. But the wisdom of our ancestors is in the simile; and my unhallowed hands shall not disturb it, or the Country's done for. You will therefore permit me to repeat, emphatically, that Marley was as dead as a door-nail. Scrooge knew he was dead? Of course he did. How could it be otherwise? Scrooge and he were partners for I don't know how many years. Scrooge was his sole executor, his sole administrator, his sole assign, his sole residuary legatee, his sole friend, and sole mourner. And even Scrooge was not so dreadfully cut up by the sad event, but that he was an excellent man of business on the very day of the funeral, and solemnised it with an undoubted bargain. The mention of Marley's funeral brings me back to the point I started from. There is no doubt that Marley was dead. This must be distinctly understood, or nothing wonderful can come of the story I am going to relate. If we were not perfectly convinced that Hamlet's Father died before the play began, there would be nothing more remarkable in his taking a stroll at night, in an easterly wind, upon his own ramparts, than there would be in any other middle-aged gentleman rashly turning out after dark in a breezy spot--say Saint Paul's Churchyard for instance-- literally to astonish his son's weak mind. Scrooge never painted out Old Marley's name. There it stood, years afterwards, above the warehouse door: Scrooge and Marlie. The firm was known as Scrooge and Marley. Sometimes people new to the business called Scrooge Scrooge, and sometimes Marlee, but he answered to both names. It was all the same to him. From abw at wardley.org Wed Jun 4 23:33:37 2008 From: abw at wardley.org (Andy Wardley) Date: Thu, 05 Jun 2008 07:33:37 +0100 Subject: [Thamesvalley-pm] Fuzzy Search on text In-Reply-To: <4846FD70.8010206@yatterings.com> References: <4846FD70.8010206@yatterings.com> Message-ID: <484788C1.5060304@wardley.org> Iain Emsley wrote: > Does any one have any ideas on the best way of getting it? Unless I'm missing something obvious, you just need to slice the next $find_len characters from @$search, starting at $i. > while (my $search = ) { > chomp $search; > $search = [split //, $search]; > for my $i ( 0..@$search-$find_len ) { > FIND: > for my $find ( @find ) { > my $misses = 0; > for my $j ( 0..$find_len-1 ) { > $misses++ if $search->[$i+$j] ne $find->[$j]; > next FIND if $misses > $fuzzy; > } print "Line $. Match ($misses) at $i, ", join('', @$search[$i..$i+$find_len-1]), "\n"; > } > } > } output: Line 8 Match (1) at 30, Marley Line 12 Match (3) at 36, larly Line 19 Match (1) at 0, Marley Line 23 Match (3) at 30, many y Line 31 Match (1) at 15, Marley Line 32 Match (3) at 13, tarted Line 32 Match (1) at 49, Marley Line 36 Match (3) at 0, Hamlet Line 37 Match (3) at 24, markab Line 37 Match (3) at 27, kable Line 44 Match (1) at 30, Marley Line 46 Match (3) at 18, Marlie Line 47 Match (1) at 12, Marley Line 48 Match (3) at 9, called Line 48 Match (2) at 47, Marlee HTH A From henry.mcguinness at dphpc.ox.ac.uk Thu Jun 5 01:24:33 2008 From: henry.mcguinness at dphpc.ox.ac.uk (Henry McGuinness) Date: Thu, 05 Jun 2008 09:24:33 +0100 Subject: [Thamesvalley-pm] Fuzzy Search on text In-Reply-To: <4846FD70.8010206@yatterings.com> Message-ID: <20080605082433.48EA7EB091@webmail221.herald.ox.ac.uk> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mail.pm.org/pipermail/thamesvalley-pm/attachments/20080605/2822aba6/attachment.pl From Rafiq.Ismail at MorganStanley.com Thu Jun 5 02:21:02 2008 From: Rafiq.Ismail at MorganStanley.com (Gemmail, Rafiq (IT)) Date: Thu, 5 Jun 2008 10:21:02 +0100 Subject: [Thamesvalley-pm] TVPM turns one year old! (was: Re: Social meetup) In-Reply-To: <35AA7F4D68E917459C165ED9558B44454A15@uhclem.uhclemex.firesign.dev> References: <35AA7F4D68E917459C165ED9558B44454A15@uhclem.uhclemex.firesign.dev> Message-ID: In attending to moderator requests, I just noticed that TVPM will be turning 1 year old on 14th June. Although, my baby is likely to show up at any time now, I figure that it would still be good to get the rest of the group together for a social. Would anyone like to wear the mantel of our "PM Responsible for Socials?" Lance, perhaps you'd be up for this? Given our frequency of meetings, it shouldn't be too big a responsibility, if you have the time? I can't guarantee my own attendance, but will try my best to make it. Our Frapper map ( http://s5h.net/u?ba4 ) seems to show TVPM's most northerly member as being in Belfast and most southerly in Rio De Janerio; so I propose that we meet somewhere in the middle of the Atlantic? Or somewhere along the railway line going from Maidenhead to Oxford? Preferred dates? Cheers, Raf > -----Original Message----- > From: thamesvalley-pm-bounces+rafiq.ismail=ms.com at pm.org > [mailto:thamesvalley-pm-bounces+rafiq.ismail=ms.com at pm.org] > On Behalf Of Lance Wicks > Sent: 23 May 2008 07:52 > To: ThamesValley Perl Mongers > Subject: Re: [Thamesvalley-pm] Social meetup > > Okay so, this week seems like it's not going to happen for a > social meetup, lets try for next Friday. > Of course there is a London.pm event on Thursday I think and > Mobile Minibar on Friday if people want to go to London. > > Personally a couple of drinks in Reading appeals to me, so > who else wants to have a quick meetup on Friday 30th? > > Lance > _______________________________________________ > Thamesvalley-pm mailing list > Thamesvalley-pm at pm.org > http://mail.pm.org/mailman/listinfo/thamesvalley-pm > -------------------------------------------------------- NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error. From lw at judocoach.com Thu Jun 5 05:15:24 2008 From: lw at judocoach.com (Lance Wicks) Date: Thu, 5 Jun 2008 13:15:24 +0100 Subject: [Thamesvalley-pm] TVPM turns one year old! (was: Re: Social meetup) In-Reply-To: References: <35AA7F4D68E917459C165ED9558B44454A15@uhclem.uhclemex.firesign.dev> Message-ID: <7494E725-BC7A-49D3-ADBF-3115FFAE6CA6@judocoach.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Raf, I'll take on the PM responsible for socials mantle, no problem. Mid atlantic sounds good! ;-) As for dates and locations... I am flexible, I am pretty far south, so somewhere easy to find suits me. Quick question for everyone, what event management systems do people use, or would prefer to us, if any? Do you use upcoming? Eventful? FaceBook? Maybe simpler just to do it on the wiki? Or just emails? Thoughts? Lance -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (Darwin) iEYEARECAAYFAkhH2NwACgkQLmKOohHXaZeXjACgjAo1lKvQHbBeCQenMSf2CmR0 VpgAn0hP5oR1JQ1qPSgi2IWVrGs5/iu/ =3aLS -----END PGP SIGNATURE----- From tvpm at dreamthought.com Thu Jun 5 15:41:36 2008 From: tvpm at dreamthought.com (Raf) Date: Thu, 5 Jun 2008 22:41:36 +0000 (UTC) Subject: [Thamesvalley-pm] O'Reilly invites you to Mashed 2008 (fwd) Message-ID: <20080605224032.K96844@joshua.dreamthought.com> ---------- Forwarded message ---------- Please send to your members O'Reilly invites you to Mashed 2008 tickets now available and they are free! Mashed - it's Hack Day time again and this year the BBC have got a corker of a weekend planned. Arrive on the Saturday morning and listen to real people from the development world showing you how to build things and how to use the systems that will be available to you through-out the weekend - including a full broadcast TV station with the ability to build and hack your own interactive applications. - see http://backstage.bbc.co.uk/news/archives/2008/05/mashed_2008_tic.html The BBC kindly gave O'Reilly 100 tickets. So please book now on http://mashed08.eventbrite.com/ and make sure that you have a place at the weekend of the year. Date: Saturday, June 21, 2008 at 9:00 am To: Sunday, June 22, 2008 at 6:00 pm Venue: Alexandra Palace Alexandra Palace Way Wood Green London, London N22 7AY United Kingdom My colleague Craig Smith and myself will be there all weekend so please come and talk to us. See you there! If you can't make it send this invitation to a friend. Kindest regards Josette ### Josette Garcia PR/Marketing Manager O'Reilly UK Limited From lw at judocoach.com Fri Jun 6 00:25:21 2008 From: lw at judocoach.com (Lance Wicks) Date: Fri, 6 Jun 2008 08:25:21 +0100 Subject: [Thamesvalley-pm] O'Reilly invites you to Mashed 2008 (fwd) In-Reply-To: <20080605224032.K96844@joshua.dreamthought.com> References: <20080605224032.K96844@joshua.dreamthought.com> Message-ID: <57816445-EB65-44AB-A124-BB842D8F9FC9@judocoach.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 WHo thinks they will be attending Mashed? I have tickets and attended last years Hackday. Hackday was awesome last year so I can really endorse trying to get along to Mashed. Perlhaps we can come up with a TVPM project to work on together? Lance -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (Darwin) iEYEARECAAYFAkhI5mEACgkQLmKOohHXaZcjMQCfTLEQ7tIY3nQwcP1WW9qtZBg1 gtQAn2fy0IXdsUWWDNO3mKds0xy6kd3L =ukT3 -----END PGP SIGNATURE----- From print.crimes at yatterings.com Sat Jun 7 05:34:35 2008 From: print.crimes at yatterings.com (Iain Emsley) Date: Sat, 07 Jun 2008 13:34:35 +0100 Subject: [Thamesvalley-pm] Fuzzy Searching Message-ID: <484A805B.308@yatterings.com> Hi Andy, Thanks. Got it working whilst offline, as you suggested, using a slice. Iain From print.crimes at yatterings.com Sat Jun 7 05:31:50 2008 From: print.crimes at yatterings.com (Iain Emsley) Date: Sat, 07 Jun 2008 13:31:50 +0100 Subject: [Thamesvalley-pm] Fuzzy Searching Message-ID: <484A7FB6.1020204@yatterings.com> Hi Henry, Apologies for slight delay in replying, just been away on a team away day. Oh joy... I've been playing around with it and I quite like it as it makes searching a little easier but I wanted to try something which would just do a brute force search on the text and display all results for a particular word, rather than the entire string so that any differences in a certain range could be exported (once its been cleaned up). Its also the reason why I wasn't using edit distances (Levenshtein, Wagner-Fischer or Blew) since if I have a new set of texts then it is highly possible that I'm not going to know what the final word may be in the search or any variations thereon. Some of this is just experimenting with some ideas from a conversation with a scientist a while back and seeing what is possible. ATB, Iain Iain Emsley From adam.trickett at iredale.net Mon Jun 9 03:33:57 2008 From: adam.trickett at iredale.net (Dr Adam J Trickett) Date: Mon, 9 Jun 2008 11:33:57 +0100 Subject: [Thamesvalley-pm] TVPM turns one year old! (was: Re: Social meetup) In-Reply-To: References: <35AA7F4D68E917459C165ED9558B44454A15@uhclem.uhclemex.firesign.dev> Message-ID: <20080609103357.GF18877@iredale.net> On Thu, 05 Jun 2008 at 10:21:02AM +0100, Gemmail, Rafiq (IT) wrote: > In attending to moderator requests, I just noticed that TVPM will be turning 1 year > old on 14th June. Although, my baby is likely to show up at any time now, I figure > that it would still be good to get the rest of the group together for a social. It would be good. Having just moved house I'm still a little "disorganised" but would like to see people or at least someone again! The Silicon Corridor LUG meet monthy in Reading, perhaps we could gate crash them? -- A From gmatt at nerc.ac.uk Fri Jun 13 04:19:28 2008 From: gmatt at nerc.ac.uk (Greg Matthews) Date: Fri, 13 Jun 2008 12:19:28 +0100 Subject: [Thamesvalley-pm] checking for perl modules Message-ID: <485257C0.1010206@nerc.ac.uk> Is there an easy way to run a check for perl modules at the start of a script so that it can present a friendly/useful message to the user along the lines of: "This script requires the following modules which don't appear to be installed on your system:" rather than crashing out with something like: Can't locate IO/Socket/SSL.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /usr/share/perl5/Net/LDAP.pm line 970, line 1. which is pretty horrendous to the casual user. GREG -- Greg Matthews 01491 692445 Head of UNIX/Linux, iTSS Wallingford -- This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system. From wdhawes at gmail.com Fri Jun 13 04:57:15 2008 From: wdhawes at gmail.com (Will Hawes) Date: Fri, 13 Jun 2008 12:57:15 +0100 Subject: [Thamesvalley-pm] checking for perl modules In-Reply-To: <485257C0.1010206@nerc.ac.uk> References: <485257C0.1010206@nerc.ac.uk> Message-ID: <360eac500806130457y9191b38m7027a4b567339a81@mail.gmail.com> 2008/6/13 Greg Matthews : > Is there an easy way to run a check for perl modules at the start of a > script so that it can present a friendly/useful message to the user > along the lines of: > > "This script requires the following modules which don't appear to be > installed on your system:" > > rather than crashing out with something like: > > Can't locate IO/Socket/SSL.pm in @INC (@INC contains: /etc/perl > /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 > /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 > /usr/local/lib/site_perl .) at /usr/share/perl5/Net/LDAP.pm line 970, > line 1. > > which is pretty horrendous to the casual user. Not something I've ever done, but you could probably do something like (untested, btw): #!/usr/bin/perl BEGIN { my @required_modules = ( qw/ Module1 Module2 / ); foreach( @required_modules ) { eval { require "$_"; }; if( $@ ) { die "You don't appear to have module '$_' installed on your system."; } } } ... rest of script here ... HTH, Will From gmatt at nerc.ac.uk Fri Jun 13 05:20:12 2008 From: gmatt at nerc.ac.uk (Greg Matthews) Date: Fri, 13 Jun 2008 13:20:12 +0100 Subject: [Thamesvalley-pm] checking for perl modules In-Reply-To: <360eac500806130457y9191b38m7027a4b567339a81@mail.gmail.com> References: <485257C0.1010206@nerc.ac.uk> <360eac500806130457y9191b38m7027a4b567339a81@mail.gmail.com> Message-ID: <485265FC.7010702@nerc.ac.uk> Will Hawes wrote: > Not something I've ever done, but you could probably do something like > (untested, btw): thanks Will, I'll give it a crack. G > > #!/usr/bin/perl > > BEGIN { > my @required_modules = ( qw/ Module1 Module2 / ); > foreach( @required_modules ) { > eval { require "$_"; }; > if( $@ ) { > die "You don't appear to have module '$_' installed on your system."; > } > } > } > > ... rest of script here ... > > HTH, Will > _______________________________________________ > Thamesvalley-pm mailing list > Thamesvalley-pm at pm.org > http://mail.pm.org/mailman/listinfo/thamesvalley-pm > -- Greg Matthews 01491 692445 Head of UNIX/Linux, iTSS Wallingford -- This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system. From Rafiq.Ismail at MorganStanley.com Mon Jun 16 08:00:39 2008 From: Rafiq.Ismail at MorganStanley.com (Gemmail, Rafiq (IT)) Date: Mon, 16 Jun 2008 16:00:39 +0100 Subject: [Thamesvalley-pm] Happy Birthday TVPM Message-ID: I won't sing - but congratulations to us all. Following an amazing meet at our outset and very little thereafter on losing our venu, I think that we all deserve a pat on the back for keeping this group alive. Let's hope maturity brings about a revival! Best wishes to all. Rafiq Gemmail Morgan Stanley | Technology 25 Cabot Square | Canary Wharf | Floor 05 London, E14 4QA Phone: +44 20 7677-2923 Rafiq.Ismail at MorganStanley.com BE CARBON CONSCIOUS. PLEASE CONSIDER OUR ENVIRONMENT BEFORE PRINTING THIS E-MAIL. -------------------------------------------------------- NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/thamesvalley-pm/attachments/20080616/78b8d05d/attachment.html From lw at judocoach.com Mon Jun 16 08:21:36 2008 From: lw at judocoach.com (Lance Wicks) Date: Mon, 16 Jun 2008 16:21:36 +0100 Subject: [Thamesvalley-pm] Happy Birthday TVPM Message-ID: :) Lets try another time for a social meetup. what days/dates suit people next month? lance - original message - Subject: [Thamesvalley-pm] Happy Birthday TVPM From: "Gemmail, Rafiq \(IT\)" Date: 16/06/2008 4:01 PM I won't sing - but congratulations to us all. Following an amazing meet at our outset and very little thereafter on losing our venu, I think that we all deserve a pat on the back for keeping this group alive. Let's hope maturity brings about a revival! Best wishes to all. Rafiq Gemmail Morgan Stanley | Technology 25 Cabot Square | Canary Wharf | Floor 05 London, E14 4QA Phone: +44 20 7677-2923 Rafiq.Ismail at MorganStanley.com BE CARBON CONSCIOUS. PLEASE CONSIDER OUR ENVIRONMENT BEFORE PRINTING THIS E-MAIL. -------------------------------------------------------- NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error. _______________________________________________ Thamesvalley-pm mailing list Thamesvalley-pm at pm.org http://mail.pm.org/mailman/listinfo/thamesvalley-pm From print.crimes at yatterings.com Mon Jun 16 13:07:54 2008 From: print.crimes at yatterings.com (Iain Emsley) Date: Mon, 16 Jun 2008 21:07:54 +0100 Subject: [Thamesvalley-pm] Meet up Message-ID: <4856C81A.3050705@yatterings.com> Evening, Meeting up would be great. Lance, have you thought about using Doodle to arrange times: http://www.doodle.ch/main.html Its easy to set up. Iain From fly at anydata.co.uk Mon Jun 16 14:56:40 2008 From: fly at anydata.co.uk (Fred Youhanaie) Date: Mon, 16 Jun 2008 22:56:40 +0100 Subject: [Thamesvalley-pm] [Fwd: Re: OpenGuides 5th anniversary meet, Sat 21 June, Oxford] Message-ID: <4856E198.9000001@anydata.co.uk> In case anyone is interested in celebrating TVPM's birthday with OpenGuides' anniversary. Sadly, I can't make it myself :( cheers f. P.S. For anyone new to OpenGuides, it's a Perl based project - http://openguides.org/page/software Kake L Pugh wrote: > On Sun 18 May 2008, Kake L Pugh wrote: >> On Sun 18 May 2008, Kake L Pugh wrote: >>> Hello. The OpenGuides project was five years old this year, and we're >>> going to celebrate by going to the pub. >>> >>> This will happen on Saturday 21 June, at the Turf Tavern in Oxford, >>> from noon until people need to head home. If you're interested in >>> OpenGuides and/or RGL, please come! It will be fun! >> There's also an Upcoming page for it now: >> http://upcoming.yahoo.com/event/696525/ > > This is this Saturday! See you there? > > Kake > From kake at earth.li Mon Jun 16 15:47:13 2008 From: kake at earth.li (Kake L Pugh) Date: Mon, 16 Jun 2008 23:47:13 +0100 Subject: [Thamesvalley-pm] [Fwd: Re: OpenGuides 5th anniversary meet, Sat 21 June, Oxford] In-Reply-To: <4856E198.9000001@anydata.co.uk> References: <4856E198.9000001@anydata.co.uk> Message-ID: <20080616224713.GA31229@the.earth.li> On Mon 16 Jun 2008, Fred Youhanaie wrote: > In case anyone is interested in celebrating TVPM's birthday with > OpenGuides' anniversary. Yes, do come along! I will personally buy a pint for any TVPM member who turns up. The meet's in the Turf Tavern: http://oxford.openguides.org/wiki/?Turf We'll be there from noon onwards. I'll probably be heading back to London around 10pm-ish. Kake From gmatt at nerc.ac.uk Wed Jun 18 04:24:40 2008 From: gmatt at nerc.ac.uk (Greg Matthews) Date: Wed, 18 Jun 2008 12:24:40 +0100 Subject: [Thamesvalley-pm] [Fwd: Re: OpenGuides 5th anniversary meet, Sat 21 June, Oxford] In-Reply-To: <20080616224713.GA31229@the.earth.li> References: <4856E198.9000001@anydata.co.uk> <20080616224713.GA31229@the.earth.li> Message-ID: <4858F078.4010702@nerc.ac.uk> Kake L Pugh wrote: > The meet's in the Turf Tavern: > http://oxford.openguides.org/wiki/?Turf strange - seems to be edited entirely by cider drinkers... -- Greg Matthews 01491 692445 Head of UNIX/Linux, iTSS Wallingford -- This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system. From dom at earth.li Wed Jun 18 04:30:10 2008 From: dom at earth.li (Dominic Hargreaves) Date: Wed, 18 Jun 2008 12:30:10 +0100 Subject: [Thamesvalley-pm] [Fwd: Re: OpenGuides 5th anniversary meet, Sat 21 June, Oxford] In-Reply-To: <4858F078.4010702@nerc.ac.uk> References: <4856E198.9000001@anydata.co.uk> <20080616224713.GA31229@the.earth.li> <4858F078.4010702@nerc.ac.uk> Message-ID: <20080618113010.GE4772@urchin.earth.li> On Wed, Jun 18, 2008 at 12:24:40PM +0100, Greg Matthews wrote: > Kake L Pugh wrote: > > The meet's in the Turf Tavern: > > http://oxford.openguides.org/wiki/?Turf > > strange - seems to be edited entirely by cider drinkers... They have around 8 hand pumps mostly populated with guest ales so no concerns over that. Maybe we should make the afternoon's goal to provide a top notch Open Guide entry to the place :) Dominic. -- Dominic Hargreaves | http://www.larted.org.uk/~dom/ PGP key 5178E2A5 from the.earth.li (keyserver,web,email) From gmatt at nerc.ac.uk Fri Jun 20 06:31:38 2008 From: gmatt at nerc.ac.uk (Greg Matthews) Date: Fri, 20 Jun 2008 14:31:38 +0100 Subject: [Thamesvalley-pm] password strength check Message-ID: <485BB13A.9040809@nerc.ac.uk> I need to do a password strength check. Is there a perl shortcut (interface to cracklib maybe?) that I can use? I have an old script here that does password strength checking and I'm pretty sure it comes from a perl book but I cant find which one. The main meat of the script is a subroutine called goodenough(). The reason I think its lifted from a book is this comment part way thru the subroutine: # Check for naughty words. :-) # (Add the traditional naughty words to the list sometime # when your mother isn't watching. We didn't want to # print them in a family-oriented book like this one...) If I end up recycling this code, I'd like to check for errata/discussion that may have been published. Does anyone recognise it from this short description? A full grep list of the comments is given below GREG ############################################################### # # # This subroutine is the whole reason for this program. It # # checks for many different kinds of bad password. We don't # # tell people what kind of pattern they MUST have, because # # that would reduce the search space unnecessarily. # # # # goodenough() returns 1 if password passes muster, else 0. # # # ############################################################### # Embedded null can spoof crypt routine. # Same password they just had? # Too much like the old password? # Too short? Get progressively nastier. # Is it in one of the dictionaries? # First check the BADPATS file. # Truncate common suffixes before searching dict. # We'll iterate over several dictionaries. # Do the lookup (dictionary order, case folded) # Now check for two word-combinations. This gets hairy. # We look up everything that starts with the same first # two letters as the password, and if the word matches the # head of the password, we save the rest of the password # in %others to be looked up later. Passwords which have # a single char before or after a word are special-cased. # We take pains to disallow things like "CamelAte", # "CameLate" and "CamElate" but allow things like # "CamelatE" or "CameLAte". # If the password is exactly 8 characters, we also have # to disallow passwords that consist of a word plus the # BEGINNING of another word, such as "CamelFle", which # will warn you about "camel" and "flea". # Check for naughty words. :-) # (Add the traditional naughty words to the list sometime # when your mother isn't watching. We didn't want to # print them in a family-oriented book like this one...) # Does it look like a date? # Login id? # My own name? # My host name? # License plate number? # A function key? (This pattern checks Sun-style fn keys.) # A sequence of closely related ASCII characters? # A sequence of keyboard keys? # Repeated patterns: ababab, abcabc, abcdabcd # Reversed patterns: abccba abcddcba # Some other login name? # A local host name? # Reversed login id? # Previously used? -- Greg Matthews 01491 692445 Head of UNIX/Linux, iTSS Wallingford -- This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system. From mark.robson at surfcontrol.com Fri Jun 20 07:33:39 2008 From: mark.robson at surfcontrol.com (Mark Robson) Date: Fri, 20 Jun 2008 15:33:39 +0100 Subject: [Thamesvalley-pm] password strength check In-Reply-To: <485BB13A.9040809@nerc.ac.uk> References: <485BB13A.9040809@nerc.ac.uk> Message-ID: <1213972419.23151.5.camel@mrobson-dt.mr.mailcontrol.com> On Fri, 2008-06-20 at 14:31 +0100, Greg Matthews wrote: > I need to do a password strength check. Is there a perl shortcut > (interface to cracklib maybe?) that I can use? There is a module which interfaces to Cracklib, available from CPAN, we are using that. I don't know if Cracklib does everything that you want, but it's certainly a start. Mark Protected by Websense Messaging Security -- www.websense.com From tvpm at yaph.org.uk Fri Jun 20 09:13:20 2008 From: tvpm at yaph.org.uk (John TV.pm) Date: Fri, 20 Jun 2008 17:13:20 +0100 Subject: [Thamesvalley-pm] password strength check In-Reply-To: <485BB13A.9040809@nerc.ac.uk> References: <485BB13A.9040809@nerc.ac.uk> Message-ID: <485BD720.7000300@yaph.org.uk> Greg Matthews wrote: > ... Does anyone recognise it from this short > description? Pretty sure that's from the original (Perl 4!) Camel book. Dunno about later editions. -- John Stumbles yaph.org.uk :-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-: From lw at judocoach.com Fri Jun 20 10:53:36 2008 From: lw at judocoach.com (Lance Wicks) Date: Fri, 20 Jun 2008 18:53:36 +0100 Subject: [Thamesvalley-pm] Raf is a Dad!!! Message-ID: Hi all, if Facebook is to believed, our PM leader Rafiq has become a dad! Congrats Raf!!!! lance --- This Email is PGP signed. Why? Because it is a good idea. By signing it I give you the opportunity to be able to verify it is really from me and that it has not been altered. If this email is verified you know it's not from a spammer or evil hacker. Well at least yo know its from this one specifically and not some other guy. Please consider using encryption and signing yourself.. Take a look over at http://gnupg.org/ for some free/open source options and more information. --- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/thamesvalley-pm/attachments/20080620/f38a1178/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 194 bytes Desc: This is a digitally signed message part Url : http://mail.pm.org/pipermail/thamesvalley-pm/attachments/20080620/f38a1178/attachment.bin From gmatt at nerc.ac.uk Mon Jun 23 01:57:47 2008 From: gmatt at nerc.ac.uk (Greg Matthews) Date: Mon, 23 Jun 2008 09:57:47 +0100 Subject: [Thamesvalley-pm] password strength check In-Reply-To: <485BD720.7000300@yaph.org.uk> References: <485BB13A.9040809@nerc.ac.uk> <485BD720.7000300@yaph.org.uk> Message-ID: <485F658B.5020604@nerc.ac.uk> John TV.pm wrote: > Greg Matthews wrote: > >> ... Does anyone recognise it from this short >> description? > > Pretty sure that's from the original (Perl 4!) Camel book. Dunno about > later editions. thats what i was worried about (just realised I hadnt checked the first edition, just 2nd and 3rd!). the fact that its not in either the 2nd or 3rd might suggest: a) theres something wrong with the script b) theres a better way of doing it c) longer scripts were taken out of future editions. d) something else. as long as its not a or b I'll just rework it to fit my new requirements. GREG ps yes a quick check in old pink camel book turned up this script pages 286-302(!) > -- Greg Matthews 01491 692445 Head of UNIX/Linux, iTSS Wallingford -- This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system. From dave at dave.org.uk Mon Jun 23 02:19:01 2008 From: dave at dave.org.uk (Dave Cross) Date: Mon, 23 Jun 2008 10:19:01 +0100 Subject: [Thamesvalley-pm] password strength check In-Reply-To: <485F658B.5020604@nerc.ac.uk> References: <485BB13A.9040809@nerc.ac.uk> <485BD720.7000300@yaph.org.uk> <485F658B.5020604@nerc.ac.uk> Message-ID: <20080623101901.4bg3c3qhccwkco8k@webmail.mag-sol.com> Quoting Greg Matthews : > John TV.pm wrote: >> Greg Matthews wrote: >> >>> ... Does anyone recognise it from this short >>> description? >> >> Pretty sure that's from the original (Perl 4!) Camel book. Dunno about >> later editions. > > thats what i was worried about (just realised I hadnt checked the first > edition, just 2nd and 3rd!). the fact that its not in either the 2nd or > 3rd might suggest: > > a) theres something wrong with the script > b) theres a better way of doing it > c) longer scripts were taken out of future editions. > d) something else. > > as long as its not a or b I'll just rework it to fit my new requirements. > > GREG > > ps yes a quick check in old pink camel book turned up this script pages > 286-302(!) The structure of the Camel book changed radically between the first and second editions. The first (pink) edition had a couple of chapters that were basically just listings of useful Perl programs. By the time the second (blue) edition was being prepared, Perl had grown so much that there wasn't room for these chapters any more. They were therefore spun off into a separate book (The Perl Cookbook). I'm not sure if this particular program made it into the Cookbook, but that would be where I would start looking :) Cheers, Dave... -- Perl training in London http://mag-sol.com/train/public/ From gmatt at nerc.ac.uk Mon Jun 23 03:22:54 2008 From: gmatt at nerc.ac.uk (Greg Matthews) Date: Mon, 23 Jun 2008 11:22:54 +0100 Subject: [Thamesvalley-pm] password strength check In-Reply-To: <20080623101901.4bg3c3qhccwkco8k@webmail.mag-sol.com> References: <485BB13A.9040809@nerc.ac.uk> <485BD720.7000300@yaph.org.uk> <485F658B.5020604@nerc.ac.uk> <20080623101901.4bg3c3qhccwkco8k@webmail.mag-sol.com> Message-ID: <485F797E.3010306@nerc.ac.uk> Dave Cross wrote: > The structure of the Camel book changed radically between the first > and second editions. The first (pink) edition had a couple of chapters > that were basically just listings of useful Perl programs. > > By the time the second (blue) edition was being prepared, Perl had > grown so much that there wasn't room for these chapters any more. They > were therefore spun off into a separate book (The Perl Cookbook). I'm > not sure if this particular program made it into the Cookbook, but > that would be where I would start looking :) not that I can see (1st and 2nd Eds). The cookbook only contains zero, one or two longer programs per chapter. Interestingly, I've been pretty unsuccessful googling for password strength checkers that I could adapt for this usage. I would have thought that there were lots of implementations in all sorts of languages. Perhaps its not an "interesting" enough problem. G ps would anyone be interesting in "auditing" my script? I have the bulk of it done minus the strength checking. > > Cheers, > > Dave... > -- Greg Matthews 01491 692445 Head of UNIX/Linux, iTSS Wallingford -- This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system. From gmatt at nerc.ac.uk Fri Jun 27 06:13:28 2008 From: gmatt at nerc.ac.uk (Greg Matthews) Date: Fri, 27 Jun 2008 14:13:28 +0100 Subject: [Thamesvalley-pm] Equivalent to Term::ReadKey Message-ID: <4864E778.4090001@nerc.ac.uk> Red Hat Enterprise (in its infinite wisdom) chooses not to ship Term::ReadKey with their perl. Is there an equivalent to the following that will be portable to an unmodified RHEL host: ReadMode 'noecho'; $pass0 = ReadLine(0); ReadMode 'normal'; chomp $pass0; print "\n"; exit unless $pass0; many thanks GREG -- Greg Matthews 01491 692445 Head of UNIX/Linux, iTSS Wallingford -- This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system. From dave at dave.org.uk Fri Jun 27 06:27:42 2008 From: dave at dave.org.uk (Dave Cross) Date: Fri, 27 Jun 2008 09:27:42 -0400 Subject: [Thamesvalley-pm] Equivalent to Term::ReadKey In-Reply-To: <4864E778.4090001@nerc.ac.uk> References: <4864E778.4090001@nerc.ac.uk> Message-ID: <20080627092742.nzm6rf5ndwsw4s4k@webmail.mag-sol.com> Quoting Greg Matthews : > Red Hat Enterprise (in its infinite wisdom) chooses not to ship > Term::ReadKey with their perl. Well, given that Term::ReadKey isn't part of the standard Perl distribution, that's not entirely surprising :) > Is there an equivalent to the following > that will be portable to an unmodified RHEL host: > > ReadMode 'noecho'; > $pass0 = ReadLine(0); > ReadMode 'normal'; > chomp $pass0; > print "\n"; > exit unless $pass0; Perhaps you could just grab the code from the Term::ReadKey module and use that? Although that might be harder than it looks as Term::ReadKey has an an XS portion. Looks like RPMForge have a perl-Term-ReadKey rpm available. The path of least resistance might be to install that. http://packages.sw.be/perl-TermReadKey/ Dave... From mark.robson at surfcontrol.com Fri Jun 27 06:28:48 2008 From: mark.robson at surfcontrol.com (Mark Robson) Date: Fri, 27 Jun 2008 14:28:48 +0100 Subject: [Thamesvalley-pm] Equivalent to Term::ReadKey In-Reply-To: <4864E778.4090001@nerc.ac.uk> References: <4864E778.4090001@nerc.ac.uk> Message-ID: <1214573328.3400.4.camel@mrobson-dt.mr.mailcontrol.com> On Fri, 2008-06-27 at 14:13 +0100, Greg Matthews wrote: > Red Hat Enterprise (in its infinite wisdom) chooses not to ship > Term::ReadKey with their perl. Is there an equivalent to the following > that will be portable to an unmodified RHEL host: > > ReadMode 'noecho'; > $pass0 = ReadLine(0); > ReadMode 'normal'; > chomp $pass0; > print "\n"; > exit unless $pass0; You could shell out to "stty -echo" and "stty echo" to disable and enable echo. Or you could install Term::ReadKey from an RPM that you build yourself (building RPMs of perl modules isn't that difficult, rpmforge has many .spec files pre-build) Depends how your deployment process works and how many different distros you need to support. Mark Protected by Websense Messaging Security -- www.websense.com From gmatt at nerc.ac.uk Fri Jun 27 07:15:02 2008 From: gmatt at nerc.ac.uk (Greg Matthews) Date: Fri, 27 Jun 2008 15:15:02 +0100 Subject: [Thamesvalley-pm] Equivalent to Term::ReadKey In-Reply-To: <1214573328.3400.4.camel@mrobson-dt.mr.mailcontrol.com> References: <4864E778.4090001@nerc.ac.uk> <1214573328.3400.4.camel@mrobson-dt.mr.mailcontrol.com> Message-ID: <4864F5E6.8050905@nerc.ac.uk> Mark Robson wrote: > You could shell out to "stty -echo" and "stty echo" to disable and > enable echo. the original version of this script used that technique (designed to work with 5.005) > Or you could install Term::ReadKey from an RPM that you build yourself > (building RPMs of perl modules isn't that difficult, rpmforge has > many .spec files pre-build) yup... been thinking for a while that we ought to have a corporate rpm repo. Think I'll try this route. thanks GREG > > Depends how your deployment process works and how many different distros > you need to support. > > Mark > > > Protected by Websense Messaging Security -- www.websense.com > _______________________________________________ > Thamesvalley-pm mailing list > Thamesvalley-pm at pm.org > http://mail.pm.org/mailman/listinfo/thamesvalley-pm > -- Greg Matthews 01491 692445 Head of UNIX/Linux, iTSS Wallingford -- This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system. From mark.robson at surfcontrol.com Fri Jun 27 07:30:16 2008 From: mark.robson at surfcontrol.com (Mark Robson) Date: Fri, 27 Jun 2008 15:30:16 +0100 Subject: [Thamesvalley-pm] Equivalent to Term::ReadKey In-Reply-To: <4864F5E6.8050905@nerc.ac.uk> References: <4864E778.4090001@nerc.ac.uk> <1214573328.3400.4.camel@mrobson-dt.mr.mailcontrol.com> <4864F5E6.8050905@nerc.ac.uk> Message-ID: <1214577016.3400.7.camel@mrobson-dt.mr.mailcontrol.com> On Fri, 2008-06-27 at 15:15 +0100, Greg Matthews wrote: > yup... been thinking for a while that we ought to have a corporate rpm > repo. Think I'll try this route. We've been evaluating how to get RPMs deployed to our servers, and existing system (e.g. yum) seem to be mostly geared towards updating everything to the latest version, whereas in production we would also need a "roll back" capability to restore earlier versions in case a deployment needed to be reverted. Consider this when proposing adding new software to your build :) Mark Protected by Websense Messaging Security -- www.websense.com From dave at dave.org.uk Fri Jun 27 08:30:00 2008 From: dave at dave.org.uk (Dave Cross) Date: Fri, 27 Jun 2008 11:30:00 -0400 Subject: [Thamesvalley-pm] Equivalent to Term::ReadKey In-Reply-To: <4864F5E6.8050905@nerc.ac.uk> References: <4864E778.4090001@nerc.ac.uk> <1214573328.3400.4.camel@mrobson-dt.mr.mailcontrol.com> <4864F5E6.8050905@nerc.ac.uk> Message-ID: <20080627113000.9xzezsu6so04sg00@webmail.mag-sol.com> Quoting Greg Matthews : > yup... been thinking for a while that we ought to have a corporate rpm > repo. Think I'll try this route. Come to YAPC::Europe in Copenhagen. See my talk "Perl in RPM-Land" http://www.yapceurope2008.org/ye2008/talk/1314 Dave... From gmatt at nerc.ac.uk Mon Jun 30 01:21:36 2008 From: gmatt at nerc.ac.uk (Greg Matthews) Date: Mon, 30 Jun 2008 09:21:36 +0100 Subject: [Thamesvalley-pm] Equivalent to Term::ReadKey In-Reply-To: <1214577016.3400.7.camel@mrobson-dt.mr.mailcontrol.com> References: <4864E778.4090001@nerc.ac.uk> <1214573328.3400.4.camel@mrobson-dt.mr.mailcontrol.com> <4864F5E6.8050905@nerc.ac.uk> <1214577016.3400.7.camel@mrobson-dt.mr.mailcontrol.com> Message-ID: <48689790.5040004@nerc.ac.uk> Mark Robson wrote: > On Fri, 2008-06-27 at 15:15 +0100, Greg Matthews wrote: >> yup... been thinking for a while that we ought to have a corporate rpm >> repo. Think I'll try this route. > > We've been evaluating how to get RPMs deployed to our servers, and > existing system (e.g. yum) seem to be mostly geared towards updating > everything to the latest version, whereas in production we would also > need a "roll back" capability to restore earlier versions in case a > deployment needed to be reverted. agreed to a point. I still use rpm-rollback capability on up2date and yum based systems. However, Redhat have dropped rollback capability, presumably so that they can sell their own system (satellite?). I looked into the possibility of using LVM as a way of rolling back to a snapshot but LVM does not have this functionality inherently. I /think/ EVMS is able to rollback volumes but dont quote me. We only need to provide a tiny number of rpms and version control will initially be manual as we upload new versions of the rpms. There are third party patch management solutions that provide the functionality you require. I really like the look of the most recent Sun solution (how many have they got?!) which they bought up 2 or 3 years ago but it gets very bad press on c.u.solaris. Dave - your talk looks very useful - unfortunately I wont make it to Copenhagen! This topic of rpm/CPAN comes up all the time on the MailScanner mailing list. MailScanner is a large perl-based tool that has wide module requirements. The current method of forcing installation of modules over managed versions is starting to cause problems, particularly for RHEL5 users. GREG > > Consider this when proposing adding new software to your build :) > > Mark > > > Protected by Websense Messaging Security -- www.websense.com > _______________________________________________ > Thamesvalley-pm mailing list > Thamesvalley-pm at pm.org > http://mail.pm.org/mailman/listinfo/thamesvalley-pm > -- Greg Matthews 01491 692445 Head of UNIX/Linux, iTSS Wallingford -- This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system. From dave at dave.org.uk Mon Jun 30 02:14:12 2008 From: dave at dave.org.uk (Dave Cross) Date: Mon, 30 Jun 2008 10:14:12 +0100 Subject: [Thamesvalley-pm] Equivalent to Term::ReadKey In-Reply-To: <48689790.5040004@nerc.ac.uk> References: <4864E778.4090001@nerc.ac.uk> <1214573328.3400.4.camel@mrobson-dt.mr.mailcontrol.com> <4864F5E6.8050905@nerc.ac.uk> <1214577016.3400.7.camel@mrobson-dt.mr.mailcontrol.com> <48689790.5040004@nerc.ac.uk> Message-ID: <4868A3E4.8030502@dave.org.uk> Greg Matthews wrote: > Dave - your talk looks very useful - unfortunately I wont make it to > Copenhagen! Ah well. My slides will be online eventually. I'll probably give it to London.pm at some point if you fancy an evening in London. Alternatively, I can probably be persuaded to come out to one of your meetings if there is enough interest. Dave... From gmatt at nerc.ac.uk Mon Jun 30 02:31:04 2008 From: gmatt at nerc.ac.uk (Greg Matthews) Date: Mon, 30 Jun 2008 10:31:04 +0100 Subject: [Thamesvalley-pm] Equivalent to Term::ReadKey In-Reply-To: <4868A3E4.8030502@dave.org.uk> References: <4864E778.4090001@nerc.ac.uk> <1214573328.3400.4.camel@mrobson-dt.mr.mailcontrol.com> <4864F5E6.8050905@nerc.ac.uk> <1214577016.3400.7.camel@mrobson-dt.mr.mailcontrol.com> <48689790.5040004@nerc.ac.uk> <4868A3E4.8030502@dave.org.uk> Message-ID: <4868A7D8.2000106@nerc.ac.uk> Dave Cross wrote: > Greg Matthews wrote: > >> Dave - your talk looks very useful - unfortunately I wont make it to >> Copenhagen! > > Ah well. My slides will be online eventually. I'll probably give it to > London.pm at some point if you fancy an evening in London. > Alternatively, I can probably be persuaded to come out to one of your > meetings if there is enough interest. any/all of those alternatives sound good! let us know here when your slides are online. thanks GREG > > Dave... > > _______________________________________________ > Thamesvalley-pm mailing list > Thamesvalley-pm at pm.org > http://mail.pm.org/mailman/listinfo/thamesvalley-pm > -- Greg Matthews 01491 692445 Head of UNIX/Linux, iTSS Wallingford -- This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system.