From Tony.Edwardson at commerzbank.com Tue Feb 12 01:10:37 2008 From: Tony.Edwardson at commerzbank.com (Edwardson, Tony) Date: Tue, 12 Feb 2008 09:10:37 -0000 Subject: Getting hold of the current (Sybase) database when using the DBI Message-ID: We have a infrequent error occuring where an Sybase sql statement occasionally reports a database object doesn't exist when it clearly does e.g. [2008/02/07 20:28:34] Sybase.pm DEBUG - 46747 - select runtime from ab_books where book = ? and batch = ? and status = 'FINISHED' order by starttime [2008/02/07 20:28:34] Sybase.pm DEBUG - 46747 - Server message: Message number: 208, Severity 16, State 1, Line 1 Server 'mint' Procedure 'DBD1687' Message String: ab_books not found. Specify owner.objectname or use sp_help to check whether the object exists (sp_help may produce lots of output). [2008/02/07 20:28:34] Sybase.pm ERROR - 46747 - SQL prepare failed: The Perl code producing this frequently switches between databases (with a use statement) and we suspect that the error is caused by a use statement failing silently and so is looking on the wrong database for the object. Anyone know of a way of reliably obtaining the current database context with a DBI database of statement handle ? I have already suggested adding " {syb_show_sql => 1}" to the conenction statement to include the actual sql being run in the DBI::errstr (in case the problem is due to the parameters passed inn the place holders. Cheers Tony -- ********************************************************************** This is a commercial communication from Commerzbank AG. This communication is confidential and is intended only for the person to whom it is addressed. If you are not that person you are not permitted to make use of the information and you are requested to notify immediately that you have received it and then destroy the copy in your possession. Commerzbank AG may monitor outgoing and incoming e-mails. By replying to this e-mail you consent to such monitoring. This e-mail message and any attached files have been scanned for the presence of computer viruses. However, you are advised that you open attachments at your own risk. This email was sent either by Commerzbank AG, London Branch, or by Commerzbank Corporates & Markets, a division of Commerzbank. Commerzbank AG is a limited liability company incorporated in the Federal Republic of Germany. Registered Company Number in England BR001025. Our registered address in the UK is 60 Gracechurch Street, London, EC3V 0HR. We are regulated by the Financial Services Authority for the conduct of investment business in the UK and we appear on the FSA register under number 124920. ********************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/miltonkeynes-pm/attachments/20080212/82fc1bd5/attachment.html From pm at gavinwestwood.co.uk Wed Feb 20 08:05:08 2008 From: pm at gavinwestwood.co.uk (Gavin Westwood) Date: Wed, 20 Feb 2008 16:05:08 +0000 Subject: Meeting: Tuesday 26th February 2008 Message-ID: <47BC4FB4.5070602@gavinwestwood.co.uk> I've taken the baton from Tom regarding organising meetings (as much as a bunch of people choosing to turn up or not can be organised :-p ). That's not to say that you can't arrange an event yourself though if you want to (the more the merrier). On Tuesday 26th February, we'll meet in Wetherspoon's near the railway station (not the one in the snow dome): http://miltonkeynes.openguides.org/?J.D_Wetherspoon%2C_Central_Milton_Keynes Arrive when you want and leave when you want. Anyone planning to bring a Tux (the penguin, not the suit) again (or anything else to play with for that matter)? Gavin From oliver.gorwits at oucs.ox.ac.uk Sun Feb 24 18:30:14 2008 From: oliver.gorwits at oucs.ox.ac.uk (Oliver Gorwits) Date: Mon, 25 Feb 2008 02:30:14 +0000 Subject: Confessions of a Perl hacker Message-ID: <47C22836.1020803@oucs.ox.ac.uk> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 It's 02:30. I have to be up for work at $crack_of_dawn; I have just spent the past few hours having great fun with CatalystX::ListFramework. Will I ever grow out of this idiocy?! - -- Oliver Gorwits, Network and Telecommunications Group, Oxford University Computing Services -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHwig22NPq7pwWBt4RAqeoAJ9P3FPSOtEbaxk9uQy225TxrDVkEACgqzb+ dfIxGspXjUp6wSHYKYfQh2g= =oEg/ -----END PGP SIGNATURE----- From snafu.fans at googlemail.com Mon Feb 25 04:13:59 2008 From: snafu.fans at googlemail.com (Andrew Payne) Date: Mon, 25 Feb 2008 12:13:59 +0000 Subject: Confessions of a Perl hacker In-Reply-To: <47C22836.1020803@oucs.ox.ac.uk> References: <47C22836.1020803@oucs.ox.ac.uk> Message-ID: On Mon, Feb 25, 2008 at 2:30 AM, Oliver Gorwits wrote: > I have just spent the past few hours having great fun with > CatalystX::ListFramework. You have? I'm so glad. Input and ideas are most welcome! Andrew From oliver.gorwits at oucs.ox.ac.uk Tue Feb 26 08:49:58 2008 From: oliver.gorwits at oucs.ox.ac.uk (Oliver Gorwits) Date: Tue, 26 Feb 2008 16:49:58 +0000 Subject: [Fwd: [UKUUG-Announce] UKUUG Spring 2008 - Conference & Tutorials] Message-ID: <47C44336.7080103@oucs.ox.ac.uk> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Time has come around once again to the UKUUG Spring Conference. This year the UK Unix & Open Systems User Group have a Dynamic Languages track to their annual spring conference (Perl and Python). The general theme of the conference is Virtualization. There will be BoF ('Birds of Feather') sessions for Exim and a full one day conference for PostgreSQL. The conference is usually of high quality, and this year is just up the road in Birmingham. Please support the UKUUG by attending if you can. Early Bird rates until the end of the month... http://spring2008.ukuug.org/ http://spring2008.ukuug.org/timetable.html - -- Oliver Gorwits, Network and Telecommunications Group, Oxford University Computing Services -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHxEM12NPq7pwWBt4RAv+HAKC/BhXkGReFwA3cwkN5vVk8OL7wxACcDR00 dXzvKht9M5Rwnzke3wPDkT8= =T/Wo -----END PGP SIGNATURE----- -------------- next part -------------- An embedded message was scrubbed... From: Jane Morrison Subject: [UKUUG-Announce] UKUUG Spring 2008 - Conference & Tutorials Date: Tue, 26 Feb 2008 15:59:32 +0000 Size: 3207 Url: http://mail.pm.org/pipermail/miltonkeynes-pm/attachments/20080226/2a54dbd6/attachment.eml From pm at gavinwestwood.co.uk Tue Feb 26 11:40:45 2008 From: pm at gavinwestwood.co.uk (Gavin Westwood) Date: Tue, 26 Feb 2008 19:40:45 +0000 Subject: Meeting: Tuesday 26th February 2008 In-Reply-To: <47BC4FB4.5070602@gavinwestwood.co.uk> References: <47BC4FB4.5070602@gavinwestwood.co.uk> Message-ID: <47C46B3D.6010506@gavinwestwood.co.uk> On 20/02/2008 16:04, Gavin Westwood wrote: > > On Tuesday 26th February, we'll meet in Wetherspoon's near the railway > station (not the one in the snow dome): > http://miltonkeynes.openguides.org/?J.D_Wetherspoon%2C_Central_Milton_Keynes > > > Arrive when you want and leave when you want. Anyone planning to > bring a Tux (the penguin, not the suit) again (or anything else to > play with for that matter)? Just to remind people that this is tonight. I've not been well all week, so while I am going, I probably won't stay long. Hope to see some of you there. Gavin From peter at dragonstaff.com Wed Feb 27 02:46:53 2008 From: peter at dragonstaff.com (Peter Edwards) Date: Wed, 27 Feb 2008 10:46:53 -0000 Subject: Perl Mova Ukraina Message-ID: <033c01c8792e$26c48910$0401a8c0@DRAGON1> Here are some writeups, photos and video from the Ukraine perl conference I went to in Kyiv: http://tinyurl.com/2nr8gr Google translator Russian-English is your friend :) It was a fun time and cheaper than going to, say, a French or German workshop. Friendly people. They did seem surprised to have speakers from UK/Spain. Regards, Peter http://perl.dragonstaff.co.uk -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/miltonkeynes-pm/attachments/20080227/954faba6/attachment.html From tom at eborcom.com Wed Feb 27 08:02:44 2008 From: tom at eborcom.com (Tom Hukins) Date: Wed, 27 Feb 2008 16:02:44 +0000 Subject: Lost Property Message-ID: <20080227160244.GA15463@eborcom.com> Someone left a grey fleece at the pub last night. Please contact me off-list if it's yours. Tom From Tony.Edwardson at commerzbank.com Thu Feb 28 02:13:39 2008 From: Tony.Edwardson at commerzbank.com (Edwardson, Tony) Date: Thu, 28 Feb 2008 10:13:39 -0000 Subject: FW: Coding Together Message-ID: Here's what I think we should do to get started We start with Log::Dispatch which has some testing already, is fairly simple in concept and several of us use the module already. Below is Tom's analysis of the existing testing. Because several of us have no previous experience of writing testing modules, I suggest choose something simple that needs testing and we all have a go at writing a test for it. We can then compare our various approaches and hopefully learn from the experience. This should not be too daunting for any of us, will start the process of becoming familiar with the module, will make everyone "get their hands wet" on writing tests and will probably highlight our relative experience levels. We can then meet up to discuss our various approaches and assign who is work on what. A quick scan of the current testing setup shows that it uses a test subdirectory "t" convention with tests 00-compile.t and 01-basic.t along with kwalitee.t pod-coverage.t and pod.t. For those who might not know how to proceed, get this file from http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Log-Dispatch-2.21.tar.gz to where you want to test it and extract the tarball chdir to Log-Dispatch-2.21/t create your test file in here (use the ones already there for inspiration) To try it out it prove -v I suggest that we write a test to prove that we can use Log::Dispatch::File to log something to a file Comments on this anyone ? Tony -- -----Original Message----- From: miltonkeynes-pm-bounces+tony.edwardson=commerzbank.com at pm.org [mailto:miltonkeynes-pm-bounces+tony.edwardson=commerzbank.com at pm.org] On Behalf Of Tom Hukins Sent: Thursday, January 10, 2008 1:16 PM To: Milton Keynes Perl Mongers Subject: Re: Coding Together Here's my feedback on Log::Dispatch: On Thu, Dec 20, 2007 at 10:33:10AM -0000, Edwardson, Tony wrote: > * What testing already exists Some limited tests exist. They run through the basics of logging something, but they don't go into much detail for each different type of logging available (Syslog, File, Email, etc.). The tests don't test to see failures occur as they should. > * What the testing coverage is like Numerically, not too bad. With Devel::Cover, the POD coverage does very well, as there's a test for this in the suite, but it's not quite 100%. In general, the coverage works out around 80%. But these numbers only show what code runs, not what different inputs and outputs take place. > * What needs to be done I'd suggest: - Check for failure. Do things go wrong as documented? - Test the different types of logging, probably using Test::MockObject to override unwanted behaviour such as sending mail. - Read through the documentation and write examples based on what's there - Find examples of people using the modules in the wild and codify them as tests. Perlmonks and mailing list archives should help us find such examples. > * How hard it is likely to be I can see plenty of simple things to test for, and I bet we can think of a few tricksy fun things, like how logging to a file deals with a disk filling up. I think this would make a good candidate for us to start out with. Tom _______________________________________________ MiltonKeynes-pm mailing list MiltonKeynes-pm at pm.org http://mail.pm.org/mailman/listinfo/miltonkeynes-pm ********************************************************************** This is a commercial communication from Commerzbank AG. This communication is confidential and is intended only for the person to whom it is addressed. If you are not that person you are not permitted to make use of the information and you are requested to notify immediately that you have received it and then destroy the copy in your possession. Commerzbank AG may monitor outgoing and incoming e-mails. By replying to this e-mail you consent to such monitoring. This e-mail message and any attached files have been scanned for the presence of computer viruses. However, you are advised that you open attachments at your own risk. This email was sent either by Commerzbank AG, London Branch, or by Commerzbank Corporates & Markets, a division of Commerzbank. Commerzbank AG is a limited liability company incorporated in the Federal Republic of Germany. Registered Company Number in England BR001025. Our registered address in the UK is 60 Gracechurch Street, London, EC3V 0HR. We are regulated by the Financial Services Authority for the conduct of investment business in the UK and we appear on the FSA register under number 124920. **********************************************************************