From print.crimes at yatterings.com Sun Aug 5 06:24:44 2007 From: print.crimes at yatterings.com (Iain Emsley) Date: Sun, 05 Aug 2007 14:24:44 +0100 Subject: [Thamesvalley-pm] Next meeting In-Reply-To: References: Message-ID: <46B5CF9C.5060502@yatterings.com> Raf wrote: In the mean time, I'm curious whether August 16th/17th sounds reasonable? My preference is actually for 17th August? Has anything been decided on this at all or the next date? Occasional weekends are good for me. Raf, if it is a weekend and you'd like a lift, let me know - I've lost your phone number. I'm working on a couple of things but am unsure if they'll be ready to present in the next two months though. Iain > From Rafiq.Ismail at MorganStanley.com Wed Aug 8 06:26:03 2007 From: Rafiq.Ismail at MorganStanley.com (Ismail, Rafiq (IT)) Date: Wed, 8 Aug 2007 14:26:03 +0100 Subject: [Thamesvalley-pm] Next Meeting Message-ID: <9AAEAC62B4C72240931E69AB66005DA916C3F7@LNWEXMB58.msad.ms.com> All, Apologies for my silence. Holidays, resting and a new job have kind of distracted me, however I hoped that we might be able to come to some agreement as to when we can have our next meet. I'm hoping that we can still keep things vibrant. My preference has changed somewhat. Since I'm now working in London, should we decide on a weekday ( pref. 17th August ), I would be keener on a late start (>= 19:00/20:00). A weekend meet is unconventional but does carry my preference, although I'll have to get Will to confirm that our venue can still accommodate us on a Saturday. Opinions? Raf -------------------------------------------------------- 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/20070808/e59e425e/attachment.html From adam.trickett at iredale.net Thu Aug 9 02:28:27 2007 From: adam.trickett at iredale.net (Dr Adam J Trickett) Date: Thu, 9 Aug 2007 10:28:27 +0100 Subject: [Thamesvalley-pm] Next Meeting In-Reply-To: <9AAEAC62B4C72240931E69AB66005DA916C3F7@LNWEXMB58.msad.ms.com> References: <9AAEAC62B4C72240931E69AB66005DA916C3F7@LNWEXMB58.msad.ms.com> Message-ID: <20070809092827.GC28994@iredale.net> On Wed, 08 Aug 2007 at 02:26:03PM +0100, Ismail, Rafiq (IT) wrote: > My preference has changed somewhat. Since I'm now working in London, > should we decide on a weekday ( pref. 17th August ), I would be keener > on a late start (>= 19:00/20:00). A weekend meet is unconventional but > does carry my preference, although I'll have to get Will to confirm that > our venue can still accommodate us on a Saturday. I don't mind weekend or weekday, I just need enough warning. Much later evening starts are not so good for as the trains home get spaced out if it runs too late and it creates a dead window between the end of work and the start of the meeting. There is always the possibility of sharing some meetings with a LUG on a Saturday - if push comes to shove. -- Adam Trickett Overton, HANTS, UK Yes, I'm bitter and cynical. That does not make me wrong. -- anon From adam.trickett at iredale.net Thu Aug 9 14:26:57 2007 From: adam.trickett at iredale.net (Adam Trickett) Date: Thu, 9 Aug 2007 22:26:57 +0100 Subject: [Thamesvalley-pm] Hosting and Event/meeting at an employer Message-ID: <200708092226.57202.adam.trickett@iredale.net> Hi, I was wondering, for those people who convinced an employer to let them host a technical event such as a LUG/PM meeting on site, what hoops did they have to jump through to be allowed to host the meeting? I assume there was the sign in and sign out and you have to be in attendance at all times, and make sure everything is in order, but what other things did they expect you to do? We have plenty of large meeting rooms at work and we could easily host a Perl Mongers day, we have projectors/screens, plenty of tables and chairs and non-corporate network internet access. I think we can also cordon of the building so the access is restricted. If I did ask I know there would the obvious concerns, but I wondered what was reasonable and what have people put up with? The recent ThamesValley.PM meeting took place in a commercial office space, and I know banks have hosted technical meetings before now for the London.PM. Being based in Basingstoke in north Hampshire may be a useful location for some meetings. -- Adam Trickett Overton, HANTS, UK Like dreams, statistics are a form of wish fulfilment. -- Jean Baudrillard -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://mail.pm.org/pipermail/thamesvalley-pm/attachments/20070809/16830f28/attachment.bin From Rafiq.Ismail at MorganStanley.com Fri Aug 10 03:39:07 2007 From: Rafiq.Ismail at MorganStanley.com (Ismail, Rafiq (IT)) Date: Fri, 10 Aug 2007 11:39:07 +0100 Subject: [Thamesvalley-pm] Hosting and Event/meeting at an employer In-Reply-To: <200708092226.57202.adam.trickett@iredale.net> References: <200708092226.57202.adam.trickett@iredale.net> Message-ID: <9AAEAC62B4C72240931E69AB66005DA916C405@LNWEXMB58.msad.ms.com> Hi Adam, It depends on the mind set. I arranged the previous meeting by speaking with the guy who managed the building itself. I was fortunate in that he was extremely keen to support a bunch of geek who were enthusiastic about Perl. Rare. When I worked with Codix about eight years ago, our manager a geekus himself and willingly offered our facilities for a couple of london.pm meetings. If you can convince them that it's a good idea, it then boils down to: * Health and safety - probably logging in people, might appease. * Security - restricting their access - physically and computationally * Logistics - you can arrange the thing with minimal hastle to them. It's the first two which might prove an issue. One of the selling points for Will was actually the fact that people might follow up and book meeting rooms. Probably not applicable to most tech firms, but you can always point out that it gives the firm some more credibility and makes it better known to the community. Just some stray thoughts. Raf -----Original Message----- From: thamesvalley-pm-bounces+rafiq.ismail=morganstanley.com at pm.org [mailto:thamesvalley-pm-bounces+rafiq.ismail=morganstanley.com at pm.org] On Behalf Of Adam Trickett Sent: 09 August 2007 22:27 To: thamesvalley-pm at pm.org Subject: [Thamesvalley-pm] Hosting and Event/meeting at an employer Hi, I was wondering, for those people who convinced an employer to let them host a technical event such as a LUG/PM meeting on site, what hoops did they have to jump through to be allowed to host the meeting? I assume there was the sign in and sign out and you have to be in attendance at all times, and make sure everything is in order, but what other things did they expect you to do? We have plenty of large meeting rooms at work and we could easily host a Perl Mongers day, we have projectors/screens, plenty of tables and chairs and non-corporate network internet access. I think we can also cordon of the building so the access is restricted. If I did ask I know there would the obvious concerns, but I wondered what was reasonable and what have people put up with? The recent ThamesValley.PM meeting took place in a commercial office space, and I know banks have hosted technical meetings before now for the London.PM. Being based in Basingstoke in north Hampshire may be a useful location for some meetings. -- Adam Trickett Overton, HANTS, UK Like dreams, statistics are a form of wish fulfilment. -- Jean Baudrillard -------------------------------------------------------- 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 adam.trickett at iredale.net Sun Aug 12 06:40:54 2007 From: adam.trickett at iredale.net (Adam Trickett) Date: Sun, 12 Aug 2007 14:40:54 +0100 Subject: [Thamesvalley-pm] Meeting & Talks Message-ID: <200708121441.01913.adam.trickett@iredale.net> Hi, Is there a meeting set this week? I'm prepared to give a talk if anyone is prepared to listen! but I need to know ASAP as I have to write it. I currently don't work on Mondays so I plan to write it tomorrow if there is going to be a meeting this week. Talks I'd give: * Using Perl and SAP in an Enterprise environment. * Why Templating is Evil. * Kwalitee, what is it? How do I improve mine? -- Adam Trickett Overton, HANTS, UK My organ doesn't work properly and emits strange burning smells -- seen on Usenet -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://mail.pm.org/pipermail/thamesvalley-pm/attachments/20070812/20fa2464/attachment.bin From Rafiq.Ismail at MorganStanley.com Mon Aug 13 02:11:46 2007 From: Rafiq.Ismail at MorganStanley.com (Ismail, Rafiq (IT)) Date: Mon, 13 Aug 2007 10:11:46 +0100 Subject: [Thamesvalley-pm] Meeting & Talks In-Reply-To: <200708121441.01913.adam.trickett@iredale.net> References: <200708121441.01913.adam.trickett@iredale.net> Message-ID: <9AAEAC62B4C72240931E69AB66005DA91441F8@LNWEXMB58.msad.ms.com> Hi Adam, I'd ideally like to organise something for this Saturday (AM/Early PM), thus, I'm hoping that you guys would be able to tell me whether it's convenient? Vote? I'm going to try and reach Will to get finalisation on whether this is also practical from the perspective of using our usual venue. Let's try and reach some kind of decision by the end of day. 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 Adam Trickett Sent: 12 August 2007 14:41 To: thamesvalley-pm at pm.org Subject: [Thamesvalley-pm] Meeting & Talks Hi, Is there a meeting set this week? I'm prepared to give a talk if anyone is prepared to listen! but I need to know ASAP as I have to write it. I currently don't work on Mondays so I plan to write it tomorrow if there is going to be a meeting this week. Talks I'd give: * Using Perl and SAP in an Enterprise environment. * Why Templating is Evil. * Kwalitee, what is it? How do I improve mine? -- Adam Trickett Overton, HANTS, UK My organ doesn't work properly and emits strange burning smells -- seen on Usenet -------------------------------------------------------- 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 jacqui.caren at ntlworld.com Mon Aug 13 03:01:48 2007 From: jacqui.caren at ntlworld.com (Jacqui caren) Date: Mon, 13 Aug 2007 11:01:48 +0100 Subject: [Thamesvalley-pm] Meeting & Talks In-Reply-To: <9AAEAC62B4C72240931E69AB66005DA91441F8@LNWEXMB58.msad.ms.com> References: <200708121441.01913.adam.trickett@iredale.net> <9AAEAC62B4C72240931E69AB66005DA91441F8@LNWEXMB58.msad.ms.com> Message-ID: <46C02C0C.8020309@ntlworld.com> Ismail, Rafiq (IT) wrote: > Let's try and reach some kind of decision by the end of day. +1 I failed to make the last meeting but should be able to make this Sat, Jacqui From print.crimes at yatterings.com Mon Aug 13 12:24:48 2007 From: print.crimes at yatterings.com (Iain Emsley) Date: Mon, 13 Aug 2007 20:24:48 +0100 Subject: [Thamesvalley-pm] Thamesvalley-pm Digest, Vol 3, Issue 6 In-Reply-To: References: Message-ID: <46C0B000.8050206@yatterings.com> I should be able to do early PM on Saturday but the morning is sort of out. Iain thamesvalley-pm-request at pm.org wrote: > Send Thamesvalley-pm mailing list submissions to > thamesvalley-pm at pm.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.pm.org/mailman/listinfo/thamesvalley-pm > or, via email, send a message with subject or body 'help' to > thamesvalley-pm-request at pm.org > > You can reach the person managing the list at > thamesvalley-pm-owner at pm.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Thamesvalley-pm digest..." > > > Today's Topics: > > 1. Re: Meeting & Talks (Ismail, Rafiq (IT)) > 2. Re: Meeting & Talks (Jacqui caren) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 13 Aug 2007 10:11:46 +0100 > From: "Ismail, Rafiq \(IT\)" > Subject: Re: [Thamesvalley-pm] Meeting & Talks > To: , "ThamesValley Perl Mongers" > > Message-ID: > <9AAEAC62B4C72240931E69AB66005DA91441F8 at LNWEXMB58.msad.ms.com> > Content-Type: text/plain; charset="us-ascii" > > Hi Adam, > > I'd ideally like to organise something for this Saturday (AM/Early PM), > thus, I'm hoping that you guys would be able to tell me whether it's > convenient? Vote? > > I'm going to try and reach Will to get finalisation on whether this is > also practical from the perspective of using our usual venue. > > Let's try and reach some kind of decision by the end of day. > > 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 > Adam Trickett > Sent: 12 August 2007 14:41 > To: thamesvalley-pm at pm.org > Subject: [Thamesvalley-pm] Meeting & Talks > > Hi, > > Is there a meeting set this week? > > I'm prepared to give a talk if anyone is prepared to listen! but I need > to know ASAP as I have to write it. I currently don't work on Mondays so > I plan to write it tomorrow if there is going to be a meeting this week. > > Talks I'd give: > * Using Perl and SAP in an Enterprise environment. > * Why Templating is Evil. > * Kwalitee, what is it? How do I improve mine? > > -- > Adam Trickett > Overton, HANTS, UK > > My organ doesn't work properly and emits strange burning smells > -- seen on Usenet > -------------------------------------------------------- > > 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. > > > ------------------------------ > > Message: 2 > Date: Mon, 13 Aug 2007 11:01:48 +0100 > From: Jacqui caren > Subject: Re: [Thamesvalley-pm] Meeting & Talks > To: ThamesValley Perl Mongers > Message-ID: <46C02C0C.8020309 at ntlworld.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Ismail, Rafiq (IT) wrote: > >> Let's try and reach some kind of decision by the end of day. >> > > +1 > > I failed to make the last meeting but should be able to make this Sat, > > Jacqui > > > ------------------------------ > > _______________________________________________ > Thamesvalley-pm mailing list > Thamesvalley-pm at pm.org > http://mail.pm.org/mailman/listinfo/thamesvalley-pm > > > End of Thamesvalley-pm Digest, Vol 3, Issue 6 > ********************************************* > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/thamesvalley-pm/attachments/20070813/638ef395/attachment.html From gmatt at nerc.ac.uk Tue Aug 14 05:47:20 2007 From: gmatt at nerc.ac.uk (Greg Matthews) Date: Tue, 14 Aug 2007 13:47:20 +0100 Subject: [Thamesvalley-pm] scripting question Message-ID: <46C1A458.6000404@nerc.ac.uk> Not sure if this is the right place to ask as most of the traffic on this list seems to be about meeting, but here goes... I have a perl script (attached) which runs as a cron job. When I run it as root from the command line it produces a good report but when it is run from cron, the bitdefender statistics never get printed. Its as if the %bitdef and %bitdef_today hashes dont get populated. As far as I can see, the only difference between the bitdefender sections and the other hash sections is the regexp used. Can anyone explain why I get different results when running from cron rather than from the cli? GREG typical log lines for all three AV engines: Aug 14 07:36:43 relay1 MailScanner[30906]: SophosSAVI::INFECTED:: W32/Netsky-P W32/Netsky-P:: ./l7E6aQsg007006/old_photos_mailer-daemon.zip Aug 14 07:36:43 relay1 MailScanner[30906]: ClamAVModule::INFECTED:: Worm.SomeFool.P:: ./l7E6aQsg007006/old_photos_mailer-daemon.zip Aug 14 07:36:47 relay1 MailScanner[30906]: l7E6aQsg007006/old_photos_mailer-daemon.zip=>document.txt .exe:infected: Win32.Netsky.P at mm -- 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. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: virus-today Url: http://mail.pm.org/pipermail/thamesvalley-pm/attachments/20070814/7df9cc4c/attachment.pl From paul at pjcj.net Tue Aug 14 06:01:48 2007 From: paul at pjcj.net (Paul Johnson) Date: Tue, 14 Aug 2007 15:01:48 +0200 Subject: [Thamesvalley-pm] scripting question In-Reply-To: <46C1A458.6000404@nerc.ac.uk> References: <46C1A458.6000404@nerc.ac.uk> Message-ID: <20070814130148.GL5372@pjcj.net> On Tue, Aug 14, 2007 at 01:47:20PM +0100, Greg Matthews wrote: > I have a perl script (attached) which runs as a cron job. When I run it > as root from the command line it produces a good report but when it is > run from cron, the bitdefender statistics never get printed. Its as if > the %bitdef and %bitdef_today hashes dont get populated. Cron problems are almost invariably due to environment or permissions problems. In your case I would tend to be suspicious of the ssh call, in in particular of the permissions of the identify file. > $TMPLOG .= `ssh -l root -i /etc/mail/.ssh/vid $relay "egrep -i :INFECTED: /var/log/maillog" ` -- Paul Johnson - paul at pjcj.net http://www.pjcj.net From Rafiq.Ismail at MorganStanley.com Tue Aug 14 06:26:46 2007 From: Rafiq.Ismail at MorganStanley.com (Ismail, Rafiq (IT)) Date: Tue, 14 Aug 2007 14:26:46 +0100 Subject: [Thamesvalley-pm] Meeting & Talks - announce In-Reply-To: <46C02C0C.8020309@ntlworld.com> References: <200708121441.01913.adam.trickett@iredale.net><9AAEAC62B4C72240931E69AB66005DA91441F8@LNWEXMB58.msad.ms.com> <46C02C0C.8020309@ntlworld.com> Message-ID: <0F354FDFECA12647B75F7B154EC382850749F7A7@LNWEXMB58.msad.ms.com> Quick announcement: Got the room from 11am-1pm on Saturday. * Adam will probably give one of his mentioned talks. * I'm hoping to deliver a talk on HTML::Template * Any other deliveries are welcome? Hope to see you all then. Raf -----Original Message----- From: thamesvalley-pm-bounces+rafiq.ismail=morganstanley.com at pm.org [mailto:thamesvalley-pm-bounces+rafiq.ismail=morganstanley.com at pm.org] On Behalf Of Jacqui caren Sent: 13 August 2007 11:02 To: ThamesValley Perl Mongers Subject: Re: [Thamesvalley-pm] Meeting & Talks Ismail, Rafiq (IT) wrote: > Let's try and reach some kind of decision by the end of day. +1 I failed to make the last meeting but should be able to make this Sat, Jacqui _______________________________________________ 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 gmatt at nerc.ac.uk Tue Aug 14 06:12:36 2007 From: gmatt at nerc.ac.uk (Greg Matthews) Date: Tue, 14 Aug 2007 14:12:36 +0100 Subject: [Thamesvalley-pm] scripting question In-Reply-To: <20070814130148.GL5372@pjcj.net> References: <46C1A458.6000404@nerc.ac.uk> <20070814130148.GL5372@pjcj.net> Message-ID: <46C1AA44.8000505@nerc.ac.uk> Paul Johnson wrote: > Cron problems are almost invariably due to environment or permissions > problems. In your case I would tend to be suspicious of the ssh call, > in in particular of the permissions of the identify file. > >> $TMPLOG .= `ssh -l root -i /etc/mail/.ssh/vid $relay "egrep -i :INFECTED: /var/log/maillog" ` > except that it reports ok on ClamAV and Sophos viruses! it just misses the bitdefender ones. 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 vato at limpid.org.uk Tue Aug 14 09:38:23 2007 From: vato at limpid.org.uk (Ian Dickinson) Date: Tue, 14 Aug 2007 17:38:23 +0100 Subject: [Thamesvalley-pm] Meeting & Talks - announce In-Reply-To: <0F354FDFECA12647B75F7B154EC382850749F7A7@LNWEXMB58.msad.ms.com> References: <200708121441.01913.adam.trickett@iredale.net><9AAEAC62B4C72240931E69AB66005DA91441F8@LNWEXMB58.msad.ms.com> <46C02C0C.8020309@ntlworld.com> <0F354FDFECA12647B75F7B154EC382850749F7A7@LNWEXMB58.msad.ms.com> Message-ID: <46C1DA7F.1000002@limpid.org.uk> Hope it goes well. I shan't be coming to any weekend meetings because my $family > $perl. Ian Ismail, Rafiq (IT) wrote: > Quick announcement: > > Got the room from 11am-1pm on Saturday. > > * Adam will probably give one of his mentioned talks. > * I'm hoping to deliver a talk on HTML::Template > * Any other deliveries are welcome? > > Hope to see you all then. > > Raf From Rafiq.Ismail at MorganStanley.com Tue Aug 14 10:04:53 2007 From: Rafiq.Ismail at MorganStanley.com (Ismail, Rafiq (IT)) Date: Tue, 14 Aug 2007 18:04:53 +0100 Subject: [Thamesvalley-pm] Meeting & Talks - announce In-Reply-To: <46C1DA7F.1000002@limpid.org.uk> References: <200708121441.01913.adam.trickett@iredale.net><9AAEAC62B4C72240931E69AB66005DA91441F8@LNWEXMB58.msad.ms.com> <46C02C0C.8020309@ntlworld.com><0F354FDFECA12647B75F7B154EC382850749F7A7@LNWEXMB58.msad.ms.com> <46C1DA7F.1000002@limpid.org.uk> Message-ID: <0F354FDFECA12647B75F7B154EC382850749F889@LNWEXMB58.msad.ms.com> Hi Ian, Sorry for the inconvenient timing. I think it's important that we try and keep our meetings regular and the group alive. Busy month, my bad. R. -----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 Ian Dickinson Sent: 14 August 2007 17:38 To: ThamesValley Perl Mongers Subject: Re: [Thamesvalley-pm] Meeting & Talks - announce Hope it goes well. I shan't be coming to any weekend meetings because my $family > $perl. Ian Ismail, Rafiq (IT) wrote: > Quick announcement: > > Got the room from 11am-1pm on Saturday. > > * Adam will probably give one of his mentioned talks. > * I'm hoping to deliver a talk on HTML::Template > * Any other deliveries are welcome? > > Hope to see you all then. > > Raf _______________________________________________ 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 ed-pm at s5h.net Tue Aug 14 10:29:24 2007 From: ed-pm at s5h.net (ed) Date: Tue, 14 Aug 2007 18:29:24 +0100 Subject: [Thamesvalley-pm] scripting question In-Reply-To: <46C1AA44.8000505@nerc.ac.uk> References: <46C1A458.6000404@nerc.ac.uk> <20070814130148.GL5372@pjcj.net> <46C1AA44.8000505@nerc.ac.uk> Message-ID: <20070814182924.0ba0f4e4@workstation> On Tue, 14 Aug 2007 14:12:36 +0100 Greg Matthews wrote: > Paul Johnson wrote: > > Cron problems are almost invariably due to environment or > > permissions problems. In your case I would tend to be suspicious > > of the ssh call, in in particular of the permissions of the > > identify file. > >> $TMPLOG .= `ssh -l root -i /etc/mail/.ssh/vid $relay "egrep > >> -i :INFECTED: /var/log/maillog" ` > > > > except that it reports ok on ClamAV and Sophos viruses! it just > misses the bitdefender ones. Might be worth putting something like this into the script: open( F, ">>/tmp/environment" ); foreach( sort keys( %ENV ) ) { print( F "$_ ${ENV{$_}}\n" ); } print( F `id` ); close(F); to compare with what your user has. You can add things over to the environment if there's something important missing. -- The bread crumbs to the stereo is unreliable because of some bitchy farm boy on tatooine. Covad is promising a severance package next week. :: http://www.s5h.net/ :: http://www.s5h.net/gpg -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://mail.pm.org/pipermail/thamesvalley-pm/attachments/20070814/16f76048/attachment.bin From fly at anydata.co.uk Wed Aug 15 23:33:01 2007 From: fly at anydata.co.uk (Fred Youhanaie) Date: Thu, 16 Aug 2007 07:33:01 +0100 Subject: [Thamesvalley-pm] Meeting & Talks - announce In-Reply-To: <0F354FDFECA12647B75F7B154EC382850749F7A7@LNWEXMB58.msad.ms.com> References: <200708121441.01913.adam.trickett@iredale.net><9AAEAC62B4C72240931E69AB66005DA91441F8@LNWEXMB58.msad.ms.com> <46C02C0C.8020309@ntlworld.com> <0F354FDFECA12647B75F7B154EC382850749F7A7@LNWEXMB58.msad.ms.com> Message-ID: <46C3EF9D.8050306@anydata.co.uk> Ismail, Rafiq (IT) wrote: > Quick announcement: > > Got the room from 11am-1pm on Saturday. I assume this is same address/directions as last time, right? I think I should be able to make it this time :-) > * Adam will probably give one of his mentioned talks. >> * Using Perl and SAP in an Enterprise environment. >> * Why Templating is Evil. >> * Kwalitee, what is it? How do I improve mine? > * I'm hoping to deliver a talk on HTML::Template Sounds like we might be having the battle of the templates! or, "Templates: Good, Bad and Evil..." :-() Cheers f. From fly at anydata.co.uk Wed Aug 15 23:45:23 2007 From: fly at anydata.co.uk (Fred Youhanaie) Date: Thu, 16 Aug 2007 07:45:23 +0100 Subject: [Thamesvalley-pm] scripting question In-Reply-To: <46C1A458.6000404@nerc.ac.uk> References: <46C1A458.6000404@nerc.ac.uk> Message-ID: <46C3F283.8060002@anydata.co.uk> Greg Matthews wrote: > Not sure if this is the right place to ask as most of the traffic on > this list seems to be about meeting, but here goes... > > I have a perl script (attached) which runs as a cron job. When I run it > as root from the command line it produces a good report but when it is > run from cron, the bitdefender statistics never get printed. Its as if > the %bitdef and %bitdef_today hashes dont get populated. > > As far as I can see, the only difference between the bitdefender > sections and the other hash sections is the regexp used. Can anyone > explain why I get different results when running from cron rather than > from the cli? Are you capturing the stdout/stderr from the cron job? Any clues there? One word of advice, always include the following two pragmas in your scripts, they will save you a lot of trouble later: use strict; use warnings; BTW, the regexp in your script will not catch the Sophos example below, because of the blank between the two W32/Netsky-P, typo in email copy? HTH Cheers f. > > GREG > > typical log lines for all three AV engines: > > Aug 14 07:36:43 relay1 MailScanner[30906]: SophosSAVI::INFECTED:: > W32/Netsky-P W32/Netsky-P:: ./l7E6aQsg007006/old_photos_mailer-daemon.zip > Aug 14 07:36:43 relay1 MailScanner[30906]: ClamAVModule::INFECTED:: > Worm.SomeFool.P:: ./l7E6aQsg007006/old_photos_mailer-daemon.zip > Aug 14 07:36:47 relay1 MailScanner[30906]: > l7E6aQsg007006/old_photos_mailer-daemon.zip=>document.txt .exe:infected: > Win32.Netsky.P at mm From Rafiq.Ismail at MorganStanley.com Thu Aug 16 03:52:40 2007 From: Rafiq.Ismail at MorganStanley.com (Ismail, Rafiq (IT)) Date: Thu, 16 Aug 2007 11:52:40 +0100 Subject: [Thamesvalley-pm] Meeting & Talks - announce In-Reply-To: <46C3EF9D.8050306@anydata.co.uk> References: <200708121441.01913.adam.trickett@iredale.net><9AAEAC62B4C72240931E69AB66005DA91441F8@LNWEXMB58.msad.ms.com> <46C02C0C.8020309@ntlworld.com><0F354FDFECA12647B75F7B154EC382850749F7A7@LNWEXMB58.msad.ms.com> <46C3EF9D.8050306@anydata.co.uk> Message-ID: <0F354FDFECA12647B75F7B154EC382850765E4B4@LNWEXMB58.msad.ms.com> > -----Original Message----- > To: ThamesValley Perl Mongers > Subject: Re: [Thamesvalley-pm] Meeting & Talks - announce > > Ismail, Rafiq (IT) wrote: > > Quick announcement: > > > > Got the room from 11am-1pm on Saturday. > > I assume this is same address/directions as last time, right? Indeed. > I think I should be able to make it this time :-) Super. > Sounds like we might be having the battle of the templates! > or, "Templates: Good, Bad and Evil..." :-() It's all a matter of taste. Please feel free to contrib. Raf -------------------------------------------------------- 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 john at stumbles.org.uk Thu Aug 16 07:25:22 2007 From: john at stumbles.org.uk (John Stumbles) Date: Thu, 16 Aug 2007 15:25:22 +0100 Subject: [Thamesvalley-pm] scripting question In-Reply-To: <46C3F283.8060002@anydata.co.uk> References: <46C1A458.6000404@nerc.ac.uk> <46C3F283.8060002@anydata.co.uk> Message-ID: <46C45E52.60308@stumbles.org.uk> Fred Youhanaie wrote: > One word of advice, always include the following two pragmas in your > scripts, they will save you a lot of trouble later: > use strict; > use warnings; Personally I wouldn't even bother trying to debug a script unless I were using those. Amazing how much better perl understands Perl than I do :-) -- John Stumbles From adam.trickett at iredale.net Fri Aug 17 10:49:35 2007 From: adam.trickett at iredale.net (Adam Trickett) Date: Fri, 17 Aug 2007 18:49:35 +0100 Subject: [Thamesvalley-pm] Meeting & Talks - announce In-Reply-To: <0F354FDFECA12647B75F7B154EC382850749F7A7@LNWEXMB58.msad.ms.com> References: <200708121441.01913.adam.trickett@iredale.net> <46C02C0C.8020309@ntlworld.com> <0F354FDFECA12647B75F7B154EC382850749F7A7@LNWEXMB58.msad.ms.com> Message-ID: <200708171849.35639.adam.trickett@iredale.net> On Tuesday 14 August 2007 14:26, Ismail, Rafiq (IT) wrote: > Quick announcement: > > Got the room from 11am-1pm on Saturday. > > * Adam will probably give one of his mentioned talks. > * I'm hoping to deliver a talk on HTML::Template > * Any other deliveries are welcome? > Talk done, will be there I hope. -- Adam Trickett Overton, HANTS, UK A man is known by the books he reads. -- Ralph Waldo Emerson From adam.trickett at iredale.net Sun Aug 19 09:21:24 2007 From: adam.trickett at iredale.net (Adam Trickett) Date: Sun, 19 Aug 2007 17:21:24 +0100 Subject: [Thamesvalley-pm] Tech Meeting/Workshop Message-ID: <200708191721.37923.adam.trickett@iredale.net> Hi, Yesterday we had a small meeting in Reading. I mentioned at the meeting that we should try and arrange something like an proper workshop next spring. I know it's hard work to plan and arrange but by picking a date in the future we have time to plan and arrange things and with plenty of warning we could run a proper event. Is there any interest in doing this? I think that with warning we stand a chance of drawing people in from both the immediate vicinity and places further a field. With advertising here, on other PM lists and in near-by LUGs we could get sufficient interest. With us being more widely distributed that the London.pm I'm aware that it's going to be harder for us to maintain momentum than them. I hope that planning for this we could generate a buzz. Fred also mentioned a "Code Repair Shop". Install and fix events are popular in LUGs, and he wondered if there is sufficient interest is trying to organise as part of our next meeting something along the lines of a "Code Repair" session? Obviously it's something we can do on the list too, but it's also an idea for a meeting. I know that Dominus's Red Flags and Repair Shop sessions have proved popular at conferences such as YAPC. -- Adam Trickett Overton, HANTS, UK Deck of Cards: $1.29. "101 Solitaire Variations" book: $6.59. Cheap replacement for the one thing Windows is good at: priceless -- Shane Lazarus -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://mail.pm.org/pipermail/thamesvalley-pm/attachments/20070819/648e1a9f/attachment.bin From cayenneuk at gmail.com Sun Aug 19 09:56:19 2007 From: cayenneuk at gmail.com (Cayenne-uk) Date: Sun, 19 Aug 2007 17:56:19 +0100 Subject: [Thamesvalley-pm] Tech Meeting/Workshop In-Reply-To: <200708191721.37923.adam.trickett@iredale.net> References: <200708191721.37923.adam.trickett@iredale.net> Message-ID: <5f44c7020708190956x2e1944casdcca15ce188e056d@mail.gmail.com> It sounds like yesterday's meeting went well. I would definitely be interested in a workshop. I am a Perl noob so my preference would be towards the beginners end of the spectrum. With enough notice and no other commitments, I could make a weekend meeting. Otherwise, I could make it on Mon - Thursday evenings (but not too early). Kelv -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/thamesvalley-pm/attachments/20070819/d938b719/attachment.html From adam.trickett at iredale.net Mon Aug 20 13:23:35 2007 From: adam.trickett at iredale.net (Adam Trickett) Date: Mon, 20 Aug 2007 21:23:35 +0100 Subject: [Thamesvalley-pm] calling all Perl newbies! Message-ID: <200708202123.58650.adam.trickett@iredale.net> Calling all Perl newbies! What do you want from the PM? How can we help you? I like Perl - in fact I love it and I want to share. Once upon a time, I wrote really bad Perl, but with practice I got better. When I look at my first attempts at Perl I'm a bit embarrassed, but I didn't have the help of a PM or anyone who knew Perl. I don't claim to be a brilliant teacher or Perl wizard but I'm willing to share what I have. I know this list has been a bit "meeting" oriented, so I'm throwing down the gauntlet, "What do you want to know?" No question is too small or too trivial and I promise not to tell you to RTFM - though I reserve the right to tell you on which page look ;-) -- Adam Trickett Overton, HANTS, UK A feature is a bug with seniority. -- anon -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://mail.pm.org/pipermail/thamesvalley-pm/attachments/20070820/563d9c81/attachment.bin From lw at judocoach.com Mon Aug 20 13:36:03 2007 From: lw at judocoach.com (Lance Wicks) Date: Mon, 20 Aug 2007 21:36:03 +0100 Subject: [Thamesvalley-pm] calling all Perl newbies! In-Reply-To: <200708202123.58650.adam.trickett@iredale.net> References: <200708202123.58650.adam.trickett@iredale.net> Message-ID: <4197F70F-21ED-413C-B47F-C8B2CACEF8DA@judocoach.com> Hi Adam/All, It'd be great to have a noob session or two. Or a segment at meetings for noobs. What I have always found difficult is developing a good approach, which is partly down to lack of experience. A mentor system in the PM might be cool? A way of getting hooked up with someone like yourself, who can help guide us newbies in the right direction. Both in terms of Perl itself but also in terms of the wider aspects of development and the community. Like how not to ask dumb questions on Perlmonks and get - XP'd to within an inch of taking up .net :) Just food for thought, Lance Lance Wicks lw at judocoach.com On 20 Aug 2007, at 21:23, Adam Trickett wrote: > Calling all Perl newbies! > > What do you want from the PM? > > How can we help you? > > I like Perl - in fact I love it and I want to share. Once upon a > time, I wrote > really bad Perl, but with practice I got better. When I look at my > first > attempts at Perl I'm a bit embarrassed, but I didn't have the help > of a PM or > anyone who knew Perl. I don't claim to be a brilliant teacher or > Perl wizard > but I'm willing to share what I have. > > I know this list has been a bit "meeting" oriented, so I'm throwing > down the > gauntlet, "What do you want to know?" No question is too small or > too trivial > and I promise not to tell you to RTFM - though I reserve the right > to tell > you on which page look ;-) > > -- > Adam Trickett > Overton, HANTS, UK > > A feature is a bug with seniority. > -- anon > _______________________________________________ > Thamesvalley-pm mailing list > Thamesvalley-pm at pm.org > http://mail.pm.org/mailman/listinfo/thamesvalley-pm -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/thamesvalley-pm/attachments/20070820/9a4e16e5/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 186 bytes Desc: This is a digitally signed message part Url : http://mail.pm.org/pipermail/thamesvalley-pm/attachments/20070820/9a4e16e5/attachment.bin From Rafiq.Ismail at MorganStanley.com Tue Aug 21 01:11:23 2007 From: Rafiq.Ismail at MorganStanley.com (Ismail, Rafiq (IT)) Date: Tue, 21 Aug 2007 09:11:23 +0100 Subject: [Thamesvalley-pm] calling all Perl newbies & an actual [question] on XML::Generator In-Reply-To: <4197F70F-21ED-413C-B47F-C8B2CACEF8DA@judocoach.com> References: <200708202123.58650.adam.trickett@iredale.net> <4197F70F-21ED-413C-B47F-C8B2CACEF8DA@judocoach.com> Message-ID: <0F354FDFECA12647B75F7B154EC382850765ECA2@LNWEXMB58.msad.ms.com> I think that this is a great idea and would second the notion of a mentoring scheme. Adam is also spot on and it would be great to see this list become a useful resource for those subscribed. So, on that note.. I have a rather dumb question which someone might have a quick answer to. I've noticed with XML::Generator version 0.99 that while it appears to have a method for generating XML header declarations ( via xmldecl ), this method doesn't actually seem to do 'anything'. I don't have the option of a later version and wondered whether anyone has tried to use this module for writing XML and found it to be just as flawed in pushing out a simple ? This occurs when invoking $xmlGen->xmldecl( VERSION=>'1.0' ). Any ideas? Apologies for the top post.. outlook. Thanks, Raf ________________________________ From: thamesvalley-pm-bounces+rafiq.ismail=morganstanley.com at pm.org [mailto:thamesvalley-pm-bounces+rafiq.ismail=morganstanley.com at pm.org] On Behalf Of Lance Wicks Sent: 20 August 2007 21:36 To: adam.trickett at iredale.net; ThamesValley Perl Mongers Subject: Re: [Thamesvalley-pm] calling all Perl newbies! Hi Adam/All, It'd be great to have a noob session or two. Or a segment at meetings for noobs. What I have always found difficult is developing a good approach, which is partly down to lack of experience. A mentor system in the PM might be cool? A way of getting hooked up with someone like yourself, who can help guide us newbies in the right direction. Both in terms of Perl itself but also in terms of the wider aspects of development and the community. Like how not to ask dumb questions on Perlmonks and get -XP'd to within an inch of taking up .net :) Just food for thought, Lance Lance Wicks lw at judocoach.com On 20 Aug 2007, at 21:23, Adam Trickett wrote: Calling all Perl newbies! What do you want from the PM? How can we help you? I like Perl - in fact I love it and I want to share. Once upon a time, I wrote really bad Perl, but with practice I got better. When I look at my first attempts at Perl I'm a bit embarrassed, but I didn't have the help of a PM or anyone who knew Perl. I don't claim to be a brilliant teacher or Perl wizard but I'm willing to share what I have. I know this list has been a bit "meeting" oriented, so I'm throwing down the gauntlet, "What do you want to know?" No question is too small or too trivial and I promise not to tell you to RTFM - though I reserve the right to tell you on which page look ;-) -- Adam Trickett Overton, HANTS, UK A feature is a bug with seniority. -- anon _______________________________________________ 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/thamesvalley-pm/attachments/20070821/fae3cd64/attachment-0001.html From gmatt at nerc.ac.uk Tue Aug 21 06:32:41 2007 From: gmatt at nerc.ac.uk (Greg Matthews) Date: Tue, 21 Aug 2007 14:32:41 +0100 Subject: [Thamesvalley-pm] calling all Perl newbies! In-Reply-To: <200708202123.58650.adam.trickett@iredale.net> References: <200708202123.58650.adam.trickett@iredale.net> Message-ID: <46CAE979.8080801@nerc.ac.uk> Adam Trickett wrote: > Calling all Perl newbies! > > What do you want from the PM? > > How can we help you? I subscribed because I have occasion to use perl for scripting as part of my job. Unfortunately, that isnt very often so I've never become completely comfortable just sitting down in front of a #!/usr/bin/perl and getting on with it. Most of what I do with perl is fix other (much older) scripts, written in the dim-and-distant past by some unknown employee, as bit-rot renders them less useful. More occasionally, I write my own stuff such as log scrapers or tweak projects such as logwatch. Time pressures mean I've never built up a solid expertise in perl so I need a forum where I can ask dumb questions when the camel and the cookbook let me down. I have a couple of projects that I turn to when I get a moment but haven't made much progress recently: 1. update our password changing script. This was originally written by an ex-employee, updated a few years ago by me to reflect a change from NIS to LDAP. It now needs a more fundamental rewrite to make it much more robust. 2. We have a mailbox that users can send wrongly tagged spam mail to. i.e. false positives. Users are asked to send these false positives as an attachment in an attempt to keep all the header information intact. At the moment I use mutt to read this mailbox and extract all the correctly attached false postives to a mbox folder which I can then eaily feed through spamassassin to train the Bayes database. The process is scripted apart from the sorting the cruft from the genuine using my own eyeballs and mutt. I did make an attempt to write something that could recognise the correct attachments but it turned out to be much harder then I expected. Translating what seems obvious to me while using mutt into a robust, scripted algorithm proved too difficult. project 1 is much simpler and could probably be done in a week. Project 2 has proved beyond my skills. In my case perl is purely for work so I am unable to devote a lot of time to the list. That said, perhaps listers would like to share examples of code that they are particularly proud of (and presumably be prepared to get shot down in flames!) hth GREG If anyone was wondering, I havent had a chance to look at that virus-check script yet (post: 14/08) and try out some of the proposed debugging. -- 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 si at thinking-security.com Tue Aug 21 06:47:14 2007 From: si at thinking-security.com (Simon Biles) Date: Tue, 21 Aug 2007 14:47:14 +0100 Subject: [Thamesvalley-pm] calling all Perl newbies! In-Reply-To: <200708202123.58650.adam.trickett@iredale.net> References: <200708202123.58650.adam.trickett@iredale.net> Message-ID: I'd really, really like to get a grip on OO Perl ... It is something that has escaped me for years ... And I hear that it is quite effective ... :-P On 8/20/07, Adam Trickett wrote: > Calling all Perl newbies! > > What do you want from the PM? > > How can we help you? > > I like Perl - in fact I love it and I want to share. Once upon a time, I wrote > really bad Perl, but with practice I got better. When I look at my first > attempts at Perl I'm a bit embarrassed, but I didn't have the help of a PM or > anyone who knew Perl. I don't claim to be a brilliant teacher or Perl wizard > but I'm willing to share what I have. > > I know this list has been a bit "meeting" oriented, so I'm throwing down the > gauntlet, "What do you want to know?" No question is too small or too trivial > and I promise not to tell you to RTFM - though I reserve the right to tell > you on which page look ;-) > > -- > Adam Trickett > Overton, HANTS, UK > > A feature is a bug with seniority. > -- anon > > _______________________________________________ > Thamesvalley-pm mailing list > Thamesvalley-pm at pm.org > http://mail.pm.org/mailman/listinfo/thamesvalley-pm > > > -- Simon Biles CISSP, OPSA, BS7799 Lead Auditor, MBCS From rich at phekda.gotadsl.co.uk Tue Aug 21 07:17:42 2007 From: rich at phekda.gotadsl.co.uk (Richard Dawe) Date: Tue, 21 Aug 2007 15:17:42 +0100 Subject: [Thamesvalley-pm] calling all Perl newbies! In-Reply-To: <46CAE979.8080801@nerc.ac.uk> References: <200708202123.58650.adam.trickett@iredale.net> <46CAE979.8080801@nerc.ac.uk> Message-ID: <46CAF406.8040701@phekda.gotadsl.co.uk> Hello. Greg Matthews wrote: [snip] > 2. We have a mailbox that users can send wrongly tagged spam mail to. > i.e. false positives. Users are asked to send these false positives as > an attachment in an attempt to keep all the header information intact. > At the moment I use mutt to read this mailbox and extract all the > correctly attached false postives to a mbox folder which I can then > eaily feed through spamassassin to train the Bayes database. The process > is scripted apart from the sorting the cruft from the genuine using my > own eyeballs and mutt. I did make an attempt to write something that > could recognise the correct attachments but it turned out to be much > harder then I expected. Translating what seems obvious to me while using > mutt into a robust, scripted algorithm proved too difficult. Have you tried using the Email::* modules? They are a lot simpler to use than some of the other modules I've seen. They are part of the Perl Email Project (PEP) -- see: http://emailproject.perl.org/wiki/Main_Page PEP has a pretty friendly mailing list -- I'm sure they could give you some tips on how to get started. I started writing a GUI app to do mailing list management called "subscripto" that uses the Email::* modules. Perhaps you could look at its source, to see how to open up a mailbox and iterate over the messages in it. The source is here (although it needs some time and love spent on it, to be usable): http://homepages.nildram.co.uk/~phekda/richdawe/subscripto/ Oh, and here's a code snippet from another program I wrote that builds a list of Email::Simple objects for messages classified as spam by my e-mail system. NB: I've changed the mail folder path. use strict; use warnings; use Email::Folder; use Email::Simple; my $folder = Email::Folder->new('/path/to/a/thunderbird/mail/folder'); my @spams; foreach ($folder->messages) { push(@spams, $_) if ($_->header('X-Spam-Status') =~ /^Yes,/); } HTH, bye, Rich =] -- Richard Dawe [ http://homepages.nildram.co.uk/~phekda/richdawe/ ] "You just amass stuff while you are alive. It's like stuff washed up on a beach somewhere, and that somewhere is you." -- Damien Hirst From adam.trickett at iredale.net Tue Aug 21 07:18:15 2007 From: adam.trickett at iredale.net (Dr Adam J Trickett) Date: Tue, 21 Aug 2007 15:18:15 +0100 Subject: [Thamesvalley-pm] calling all Perl newbies! In-Reply-To: References: <200708202123.58650.adam.trickett@iredale.net> Message-ID: <20070821141814.GO9035@iredale.net> On Tue, 21 Aug 2007 at 02:47:14PM +0100, Simon Biles wrote: > I'd really, really like to get a grip on OO Perl ... It is something > that has escaped me for years ... > > And I hear that it is quite effective ... OO Perl is easy once the penny has dropped, actually I couldn't believe how easy it is. However it doesn't suit evey solution and it's a bit slower than procedural Perl. I'd be happy to help you get going if you want a talk on the topic, or some online help. > :-P > > On 8/20/07, Adam Trickett wrote: > > Calling all Perl newbies! > > > > What do you want from the PM? > > > > How can we help you? > > > > I like Perl - in fact I love it and I want to share. Once upon a time, I wrote > > really bad Perl, but with practice I got better. When I look at my first > > attempts at Perl I'm a bit embarrassed, but I didn't have the help of a PM or > > anyone who knew Perl. I don't claim to be a brilliant teacher or Perl wizard > > but I'm willing to share what I have. > > > > I know this list has been a bit "meeting" oriented, so I'm throwing down the > > gauntlet, "What do you want to know?" No question is too small or too trivial > > and I promise not to tell you to RTFM - though I reserve the right to tell > > you on which page look ;-) > > > > -- > > Adam Trickett > > Overton, HANTS, UK > > > > A feature is a bug with seniority. > > -- anon > > > > _______________________________________________ > > Thamesvalley-pm mailing list > > Thamesvalley-pm at pm.org > > http://mail.pm.org/mailman/listinfo/thamesvalley-pm > > > > > > > > > -- > Simon Biles > CISSP, OPSA, BS7799 Lead Auditor, MBCS > _______________________________________________ > Thamesvalley-pm mailing list > Thamesvalley-pm at pm.org > http://mail.pm.org/mailman/listinfo/thamesvalley-pm -- Adam Trickett Overton, HANTS, UK The test of the goodness of a thing is its fitness for use. If it fails on this first test, no amount of ornamentation or finish will make it any better, it will only make it more expensive and foolish. -- Frank Pick, lecture to the Design and Industries Assoc, 1916 From adam.trickett at iredale.net Tue Aug 21 07:21:07 2007 From: adam.trickett at iredale.net (Dr Adam J Trickett) Date: Tue, 21 Aug 2007 15:21:07 +0100 Subject: [Thamesvalley-pm] calling all Perl newbies! In-Reply-To: <46CAE979.8080801@nerc.ac.uk> References: <200708202123.58650.adam.trickett@iredale.net> <46CAE979.8080801@nerc.ac.uk> Message-ID: <20070821142107.GP9035@iredale.net> On Tue, 21 Aug 2007 at 02:32:41PM +0100, Greg Matthews wrote: > Adam Trickett wrote: > > Calling all Perl newbies! > > > > What do you want from the PM? > > > > How can we help you? > > I subscribed because I have occasion to use perl for scripting as part > of my job. Unfortunately, that isnt very often so I've never become > completely comfortable just sitting down in front of a #!/usr/bin/perl > and getting on with it. > > Most of what I do with perl is fix other (much older) scripts, written > in the dim-and-distant past by some unknown employee, as bit-rot renders > them less useful. More occasionally, I write my own stuff such as log > scrapers or tweak projects such as logwatch. Time pressures mean I've > never built up a solid expertise in perl so I need a forum where I can > ask dumb questions when the camel and the cookbook let me down. > > I have a couple of projects that I turn to when I get a moment but > haven't made much progress recently: > 1. update our password changing script. This was originally written by > an ex-employee, updated a few years ago by me to reflect a change from > NIS to LDAP. It now needs a more fundamental rewrite to make it much > more robust. > 2. We have a mailbox that users can send wrongly tagged spam mail to. > i.e. false positives. Users are asked to send these false positives as > an attachment in an attempt to keep all the header information intact. > At the moment I use mutt to read this mailbox and extract all the > correctly attached false postives to a mbox folder which I can then > eaily feed through spamassassin to train the Bayes database. The process > is scripted apart from the sorting the cruft from the genuine using my > own eyeballs and mutt. I did make an attempt to write something that > could recognise the correct attachments but it turned out to be much > harder then I expected. Translating what seems obvious to me while using > mutt into a robust, scripted algorithm proved too difficult. > > project 1 is much simpler and could probably be done in a week. Project > 2 has proved beyond my skills. In my case perl is purely for work so I > am unable to devote a lot of time to the list. That said, perhaps > listers would like to share examples of code that they are particularly > proud of (and presumably be prepared to get shot down in flames!) I'm willing to help where I can, I'm not sure how the best way to do it is. I think it's only possible to deal with small chunks of code in a mailing list, looking at larger pieces needs a different mechanism. On Saturday Fred suggested a cding repair shop at a meeting - it's a lot of work on both sides but I'm willing to help. -- Adam Trickett Overton, HANTS, UK This would of course be likely to trigger a real constitutional crisis, but as this Government has done so much to destroy the constitution already, it seems only reasonable for other people to be allowed to join in. -- John Lettice, The Register 2006-01-17 From gmatt at nerc.ac.uk Tue Aug 21 07:32:47 2007 From: gmatt at nerc.ac.uk (Greg Matthews) Date: Tue, 21 Aug 2007 15:32:47 +0100 Subject: [Thamesvalley-pm] calling all Perl newbies! In-Reply-To: <46CAF406.8040701@phekda.gotadsl.co.uk> References: <200708202123.58650.adam.trickett@iredale.net> <46CAE979.8080801@nerc.ac.uk> <46CAF406.8040701@phekda.gotadsl.co.uk> Message-ID: <46CAF78F.1090008@nerc.ac.uk> Richard Dawe wrote: > Have you tried using the Email::* modules? They are a lot simpler to use > than some of the other modules I've seen. They are part of the Perl > Email Project (PEP) -- see: > > http://emailproject.perl.org/wiki/Main_Page I've certainly looked at the PEP site but I must admit I started with the Mail::Tools and in particular MIME::Parser The problem was that the suspect message is tagged as spam and delivered to the user as an attachment to a message (which says something like we believe the attached message to be spam). The users should then forward all of this message as an attachment to particular mailbox. My perl script would have to take each individual message in that mailbox, explode it and find the original message (and any attachments that had) and extract it. I struggled to find a way of identifying the bits of message that I needed to extract/discard to end up with something as close to the original (pre filtration) message. Using mutt and my eyeballs it seems easy - press "v" navigate down to the correct attachment and press "s" to save it in mbox format. My brain is doing some complicated analysis of the arrangement of attachments to pick out the correct one. Turning that into script was what stumped me! The whole thing is complicated by the fact that our users use a variety of mail clients and servers (groupwise, exchange, lotus, outlook, thunderbird, opera etc) which each do odd things (apprently opera cannot forward a message as an attachment for example, Exchange has the annoying habit of stripping almost all headers, and GW is a law unto itself). I'll try it again sometime when I have time and perhaps I'll try the PEP-recommended modules. The job of a sysadmin after all, is to automate everything! G -- 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 Tue Aug 21 07:38:21 2007 From: gmatt at nerc.ac.uk (Greg Matthews) Date: Tue, 21 Aug 2007 15:38:21 +0100 Subject: [Thamesvalley-pm] calling all Perl newbies! In-Reply-To: <20070821142107.GP9035@iredale.net> References: <200708202123.58650.adam.trickett@iredale.net> <46CAE979.8080801@nerc.ac.uk> <20070821142107.GP9035@iredale.net> Message-ID: <46CAF8DD.9010208@nerc.ac.uk> Dr Adam J Trickett wrote: > > I'm willing to help where I can, I'm not sure how the best way to do it is. > > I think it's only possible to deal with small chunks of code in a mailing > list, looking at larger pieces needs a different mechanism. On Saturday > Fred suggested a cding repair shop at a meeting - it's a lot of work on > both sides but I'm willing to help. Agreed. This wasn't a cry for help just yet, it was just a rambling explanation of where I am wrt perl and what I'd like out of the PM list - "help when I get stuck", not "help me with this enormous project". hope this clarifies... here's hoping I get time to "get stuck" soon. G -- 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 rich at phekda.gotadsl.co.uk Tue Aug 21 09:30:52 2007 From: rich at phekda.gotadsl.co.uk (Richard Dawe) Date: Tue, 21 Aug 2007 17:30:52 +0100 Subject: [Thamesvalley-pm] calling all Perl newbies! In-Reply-To: <46CAF78F.1090008@nerc.ac.uk> References: <200708202123.58650.adam.trickett@iredale.net> <46CAE979.8080801@nerc.ac.uk> <46CAF406.8040701@phekda.gotadsl.co.uk> <46CAF78F.1090008@nerc.ac.uk> Message-ID: <46CB133C.9010003@phekda.gotadsl.co.uk> Hi Greg, Greg Matthews wrote: > Richard Dawe wrote: >> Have you tried using the Email::* modules? They are a lot simpler to use >> than some of the other modules I've seen. They are part of the Perl >> Email Project (PEP) -- see: >> >> http://emailproject.perl.org/wiki/Main_Page > > I've certainly looked at the PEP site but I must admit I started with > the Mail::Tools and in particular MIME::Parser > > The problem was that the suspect message is tagged as spam and delivered > to the user as an attachment to a message (which says something like we > believe the attached message to be spam). The users should then forward > all of this message as an attachment to particular mailbox. My perl > script would have to take each individual message in that mailbox, > explode it and find the original message (and any attachments that had) > and extract it. So is the message sent to the user something like this? multipart/mixed +- text/plain part containing the "we think this is spam" text +- message/rfc822 part containing the original (suspected) spam When the user forwards the message, what are you expecting? From the list of clients, I guess it could be anything. Are you hoping for something like this? multipart/mixed +- text/plain part containing whatever text the user added on forwarding +- message/rfc822 +- text/plain part containing the "we think this is spam" text +- message/rfc822 part containing the original (suspected) spam [snip] > The whole thing is complicated by the fact that our users use a variety > of mail clients and servers (groupwise, exchange, lotus, outlook, > thunderbird, opera etc) which each do odd things (apprently opera cannot > forward a message as an attachment for example, Exchange has the > annoying habit of stripping almost all headers, and GW is a law unto > itself). You have my sympathy there. I had to play "guess what the original message headers were" often at $OLD_JOB. > I'll try it again sometime when I have time and perhaps I'll try the > PEP-recommended modules. The job of a sysadmin after all, is to automate > everything! Give me a shout if I can help at all, when you get round to it. Bye, Rich =] -- Richard Dawe [ http://homepages.nildram.co.uk/~phekda/richdawe/ ] "You just amass stuff while you are alive. It's like stuff washed up on a beach somewhere, and that somewhere is you." -- Damien Hirst From gmatt at nerc.ac.uk Wed Aug 22 03:16:17 2007 From: gmatt at nerc.ac.uk (Greg Matthews) Date: Wed, 22 Aug 2007 11:16:17 +0100 Subject: [Thamesvalley-pm] calling all Perl newbies! In-Reply-To: <46CB133C.9010003@phekda.gotadsl.co.uk> References: <200708202123.58650.adam.trickett@iredale.net> <46CAE979.8080801@nerc.ac.uk> <46CAF406.8040701@phekda.gotadsl.co.uk> <46CAF78F.1090008@nerc.ac.uk> <46CB133C.9010003@phekda.gotadsl.co.uk> Message-ID: <46CC0CF1.4010802@nerc.ac.uk> Richard Dawe wrote: > So is the message sent to the user something like this? > > multipart/mixed > +- text/plain part containing the "we think this is spam" text > +- message/rfc822 part containing the original (suspected) spam > > When the user forwards the message, what are you expecting? From the > list of clients, I guess it could be anything. Are you hoping for > something like this? > > multipart/mixed > +- text/plain part containing whatever text the user added on forwarding > +- message/rfc822 > +- text/plain part containing the "we think this is spam" text > +- message/rfc822 part containing the original (suspected) spam > yes, thats what we hope for! The mixture of users' grasp of email and the variety of clients means that we often dont get this. However, there is a project to move our internal collab suite from GW to Exchange which will lower the number of variables but with the side-effect of producing messages with no headers of any use at all! If I can somehow extract the queue identifier and the relay that provided it I could probably arrange to extract the original message from a temporary "quarantine" on the relay. This would be the best of all worlds as I can sidestep the "user problem". However, it is dependent on: a) an upgrade to the relays to provide the extra space required to keep a "quarantine" of maybe a fortnights email. b) being able to extract the required information from the email sent by the user. Exchange is likely to strip anything useful out of the headers but perhaps I can inject it into the spam warning. > You have my sympathy there. I had to play "guess what the original > message headers were" often at $OLD_JOB. ;) > Give me a shout if I can help at all, when you get round to it. I may well do! thanks GREG > > Bye, Rich =] > -- 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 jacqui.caren at ntlworld.com Thu Aug 23 02:14:11 2007 From: jacqui.caren at ntlworld.com (Jacqui caren) Date: Thu, 23 Aug 2007 10:14:11 +0100 Subject: [Thamesvalley-pm] calling all Perl newbies! In-Reply-To: <46CC0CF1.4010802@nerc.ac.uk> References: <200708202123.58650.adam.trickett@iredale.net> <46CAE979.8080801@nerc.ac.uk> <46CAF406.8040701@phekda.gotadsl.co.uk> <46CAF78F.1090008@nerc.ac.uk> <46CB133C.9010003@phekda.gotadsl.co.uk> <46CC0CF1.4010802@nerc.ac.uk> Message-ID: <46CD4FE3.6070408@ntlworld.com> Greg Matthews wrote: >>You have my sympathy there. I had to play "guess what the original >>message headers were" often at $OLD_JOB. I am in the process of designing/writing a sax-like engine for email, The objective is to search for a pattern/s in message headers/content by serially expanding the MIME tree without holding the whole message in memory or files. I expect your reqs are simialr to mine :-) Jacqui p.s. We wen for adiffernet solution - we provided a Webmail -like front end to the quarantine files. Staff can look through thier email and allow it through to thier mbox - resending a message is noddy via Net::SMTP Jacqui From gmatt at nerc.ac.uk Thu Aug 23 03:38:37 2007 From: gmatt at nerc.ac.uk (Greg Matthews) Date: Thu, 23 Aug 2007 11:38:37 +0100 Subject: [Thamesvalley-pm] calling all Perl newbies! In-Reply-To: <46CD4FE3.6070408@ntlworld.com> References: <200708202123.58650.adam.trickett@iredale.net> <46CAE979.8080801@nerc.ac.uk> <46CAF406.8040701@phekda.gotadsl.co.uk> <46CAF78F.1090008@nerc.ac.uk> <46CB133C.9010003@phekda.gotadsl.co.uk> <46CC0CF1.4010802@nerc.ac.uk> <46CD4FE3.6070408@ntlworld.com> Message-ID: <46CD63AD.2050207@nerc.ac.uk> Jacqui caren wrote: > I am in the process of designing/writing a sax-like engine for > email, The objective is to search for a pattern/s in message > headers/content by serially expanding the MIME tree without > holding the whole message in memory or files. interesting, why the requirement to not hold the message in memory? > p.s. We wen for adiffernet solution - we provided a > Webmail -like front end to the quarantine files. > > Staff can look through thier email and allow it through > to thier mbox - resending a message is noddy via Net::SMTP I dont trust the users to know the difference. Its hard enough for them to understand that a message with a subject that starts {SPAM?} is probably spam. "Hey, here's an idea, why dont you set up a filter to move all that marked mail to a junk folder?" oh dear, my cynicism is showing through... and I'm not even the postmaster (thank goodness!) G > > Jacqui > _______________________________________________ > 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.