From fhew3 at cogeco.ca Thu Sep 9 18:45:22 2004 From: fhew3 at cogeco.ca (Fulko Hew) Date: Thu Sep 9 18:45:25 2004 Subject: [kw-pm] [Fwd: [tpm] lightning talks] Message-ID: <4140EB12.40902@cogeco.ca> -------- Original Message -------- Subject: [tpm] lightning talks Date: Wed, 08 Sep 2004 10:23:54 -0400 A reminder: Sept is the meeting when TPM engages in Lightning Talks :-) This a a popular annual event. This year looks like a great time to participate in the 5 to 15 minute talks that cover any topic that mentions Perl. To date we have offerings as follows: Richard Doing combinatorial work with Perl Indy T.B.D. Pierre mechanize Shawn Shawn's favourite Perl module Nicholas Laboratory Data Collection Fulko Creating Highly Available, Redundant Linux Systems Dan Working with the CPAN Spork module Glenn Catching financial conspirators using Perl Everyone is welcome to present a talk. No previous experience needed. As Chairman I would ask that each presenter supply: - a one line subject title for your talk - a short paragraph that provides an overview of what you intend to talk about. For those not familiar with the Lightning Talk evening, this will give attendees an opportunity to consider what turns the TPM members on. Remember TPM regularly meets on the last Thursday of the month. See our regular TPM meeting announcement. (http://to.pm.org) The Lightning talks will be Thursday, Sept 30. Arrive by 6:30 PM. --- Glenn Chairman for '04 e-mail: gsimpson@mountaincable.net From daniel at coder.com Fri Sep 10 09:05:36 2004 From: daniel at coder.com (Daniel R. Allen) Date: Fri Sep 10 09:11:15 2004 Subject: [kw-pm] September meeting Message-ID: Thursday, September 16, 2004 at the usual location, the U of Waterloo, Davis Centre 2305. 7pm. Lloyd will present "A Puzzle... solved with Perl and Regular Expressions". Daniel will talk about Regexp::Common, a module for easy regular expressions (and yes, it does make complex things easier). Arguile will talk about graphical representation using GraphViz. Linux Journal just published an interesting introduction to what GraphVis iz: http://www.linuxjournal.com/article.php?sid=7275&mode=thread&order=0 ...it's got pretty pictures, but their perl code is 10x longer than it needs to be because they don't use the GraphVis module. So come to our talk and find out the Right Way. :-) -Daniel -- http://coder.com/ - Prescient Code Solutions - (519) 575-3733 da@coder.com From rpjday at mindspring.com Sat Sep 11 05:27:49 2004 From: rpjday at mindspring.com (Robert P. J. Day) Date: Sat Sep 11 05:33:52 2004 Subject: [kw-pm] mint condition o'reilly perl books for sale Message-ID: given my surplus of o'reilly books, i have a number of their perl offerings that i'd be happy to sell. i'm in NC at the moment, driving back sometime this week, and i'll bring back just those books that people say they'd like to buy -- email me offline if you're interested. here are the books, with their retail price and my price, all in canadian dollars: mastering perl/tk 67.95/50.00 mastering algorithms with perl 51.95/35.00 programming the perl dbi 51.95/35.00 perl for web site management 52.95/35.00 perl for system administration 51.95/35.00 CGI programming with perl (2nd ed) 51.95/35.00 perl/tk pocket reference 14.95/10.00 and that's it for the perl offerings. first come, first served. just please don't offer to buy it, get me to bring it back, then change your mind, that's all i ask. :-) rday From daniel at coder.com Sun Sep 12 16:46:45 2004 From: daniel at coder.com (Daniel R. Allen) Date: Sun Sep 12 16:52:40 2004 Subject: [kw-pm] the other kind of cookbook Message-ID: Lloyd, I think you'll appreciate this. http://use.perl.org/~Matts/journal/20837 "Meta: Are there other geeks who like to cook? I am pretty much alone in this at $workplace, but find that cooking is a bit like programming so I'm curious to find like-minded geeks" I've been wondering the same thing. a quick google search didn't find me a "geeks who cook" website (*), so approx. 30 minutes later, I had thrown this together: foodie.coder.com - a wiki for foodies, coders, and those who love us. (*) - there is, of course, http://cookbooks.oreilly.com/food/ , but that's only a cookbook. -- http://coder.com/ - Prescient Code Solutions - (519) 575-3733 da@coder.com From dcarr at sdf.lonestar.org Mon Sep 13 19:28:37 2004 From: dcarr at sdf.lonestar.org (lloyd carr) Date: Mon Sep 13 19:28:47 2004 Subject: [kw-pm] the other kind of cookbook In-Reply-To: References: Message-ID: > Lloyd, I think you'll appreciate this. So what remark did I make or is it just my ample frame that made you think I'm a foodie? :-) - Lloyd PS Yes I am interested, I'm interested in everything, that's why I never get anything done :-( From da at coder.com Wed Sep 15 16:35:08 2004 From: da at coder.com (Daniel R. Allen) Date: Wed Sep 15 16:41:26 2004 Subject: [kw-pm] OT: the other kind of cookbook In-Reply-To: Message-ID: Well, you've expressed interest in all sorts of things social and programmer, and it wasn't a stretch to guess you were into good food. Er, so to speak :-) Apparently slashdot just had an article about cookingforengineers.com, which seems like one engineer's podium to talk about food. He has an interesting graphical recipe format, at least for simple recipes. On Tue, 14 Sep 2004, lloyd carr wrote: > > Lloyd, I think you'll appreciate this. > > So what remark did I make or is it just my ample frame that made you think > I'm a foodie? :-) > > - Lloyd > > PS Yes I am interested, I'm interested in everything, that's why I never > get anything done :-( > _______________________________________________ > kw-pm mailing list > kw-pm@mail.pm.org > http://mail.pm.org/mailman/listinfo/kw-pm > From daniel at coder.com Wed Sep 15 16:36:31 2004 From: daniel at coder.com (Daniel R. Allen) Date: Wed Sep 15 16:42:47 2004 Subject: [kw-pm] reminder: meeting tomorrow. & swag! Message-ID: Thursday, September 16, 2004 7pm at the usual location, the U of Waterloo, Davis Centre 2305. Plus, we have swag: three activestate teeshirts, which just came in the mail. First three people in the door get them. :-) -Daniel From eric at uc.org Fri Sep 17 10:55:28 2004 From: eric at uc.org (Eric - fishbot) Date: Fri Sep 17 10:55:46 2004 Subject: [kw-pm] Mystery code! Message-ID: Lloyd, Enjoyed your presentation last night... I am looking forward to you posting your mystery code. Please let us know when it is up. Without spoiling the mystery for those who failed to attend last night, I had some thoughts about determining non-adjacency. (I had insomnia last night, and got out some paper.) It seems that using a 2D array, it would be fairly easy to determine adjacency... anything that is +-[1|0,1|0] away. If you pushed these adjacencies into an hashofArray, then a simple nested loop can create the regex of non-adjacencies. I figure that this is probably fifteen lines of code to generate the regex which you could spell out manually in one or two... which solution would be more "graceful" is up for discussion. # given %adjacent{$i} is array of numbers adjacent to $i: my @illegal_pairs; for my $i ( 2..9 ) { INNER: for my $j ( 2..9 ) { next INNER if (( $i == $j ) || ( grep { $_ == $j } @{$adjacent{$i}} )); push @illegal_pairs, "$i$j"; } } my $regex = join "|", @illegal_pairs; However, to generate the list of adjacencies, I think that you would pretty much need a triple-nested-loop, which is hard to say is graceful. Perhaps someone can come up with a sexy map{} for the problem? Eric From da at coder.com Fri Sep 17 17:07:29 2004 From: da at coder.com (Daniel R. Allen) Date: Fri Sep 17 17:14:07 2004 Subject: [kw-pm] Mystery code! In-Reply-To: Message-ID: On Fri, 17 Sep 2004, Eric - fishbot wrote: > It seems that using a 2D array, it would be fairly easy to > determine adjacency... anything that is +-[1|0,1|0] away. If you > pushed these adjacencies into an hashofArray, then a [triple] > nested loop can create the regex of non-adjacencies. I'm convinced the right way to show the adjacencies is to just list them outright; for the 3x3 grid we looked at, any generative way is overkill. For bigger grids, the right way is probably the one you just described, but that's got nothing to do with a phone keypad. :-> Another solution would be a finite state machine, but that's REALLY overkill. > # given %adjacent{$i} is array of numbers adjacent to $i: > > my @illegal_pairs; > > for my $i ( 2..9 ) { > INNER: for my $j ( 2..9 ) { > next INNER if (( $i == $j ) || > ( grep { $_ == $j } @{$adjacent{$i}} )); > push @illegal_pairs, "$i$j"; > } > } > > my $regex = join "|", @illegal_pairs; a hash of hashes is just as easy to set up as a hash of arrays, and if %adjacent{$i} is a hash of numbers adjacent to $i, you can get rid of the grep: next INNER if (( $i == $j ) || $adjacent{$i}{$_} )); hm, since you can't stay on the same key twice, shouldn't ($i == $j) be an illegal move also? next INNER if ($adjacent{$i}{$_}); So that collapses to: for my $i (2..9) { for my $j (2..9) { next unless ($adjacent{$i}{$j}); push @illegal_pairs, "$i$j"; } } but wait- that looks like a grep: push @illegal_pairs, grep { ! $adjacent{$i}{$_} } for my $i (2..9); > Perhaps someone can come up with a sexy map{} for the problem? Settle for a sexy grep?... assuming I set it up properly, which is never a sure thing. And now the only messy part is setup. :-) -Daniel -- http://coder.com/ - Prescient Code Solutions - (519) 575-3733 da@coder.com > > Eric From daniel at coder.com Sat Sep 18 01:00:49 2004 From: daniel at coder.com (Daniel R. Allen) Date: Sat Sep 18 01:07:24 2004 Subject: [kw-pm] meeting wrapup In-Reply-To: <414BA0D9.2030102@uc.org> Message-ID: As you can guess, last night we discussed Lloyd's regexp problem, and it was lots of fun. We should do a puzzle again, soon. We ultimately agreed that Regexp::Common, though interesting and usefully solves the problem of reading certain regexes, also solves a problem that doesn't need to be solved by allowing the hackish tied-hash interface $RE{foo}{something}{-parameter}{-otherparameter}. And thus makes code harder to read and less maintainable. Oh well. (What I think we need is for Damian to write a module to actually do everything from perl6's regex engine, for perl5, and be done with it...) We spent an additional bit of time over a pitcher at Heuthers, where we learned the evil things Lloyd does with javascript during his (other) day job. ;-) Mark your calendars; we will next meet on Thursday October 21st: Eric will speak on Perl 6: Twenty Things I Love, Five Things You'll Hate, and Lloyd will speak on Parrot, the virtual machine that will run Perl 5, 6, Python, Java, and other bytecode. Hope you can make it. From dcarr at sdf.lonestar.org Sat Sep 18 01:19:12 2004 From: dcarr at sdf.lonestar.org (lloyd carr) Date: Sat Sep 18 01:19:31 2004 Subject: [kw-pm] meeting wrapup In-Reply-To: References: Message-ID: Lloyd is having a .... time putting the code into a unformatted wiki page. wiki kwiki xyziki all seem to have different simple text formatting rules. I even went to the official kwiki page and they have .perl ... .perl syntax which doesn't work on our kwiki ???? - Lloyd On Sat, 18 Sep 2004, Daniel R. Allen wrote: > Date: Sat, 18 Sep 2004 02:00:49 -0400 (EDT) > From: Daniel R. Allen > To: kw-pm@mail.pm.org > Subject: [kw-pm] meeting wrapup > > As you can guess, last night we discussed Lloyd's regexp problem, and it > was lots of fun. We should do a puzzle again, soon. > > We ultimately agreed that Regexp::Common, though interesting and usefully > solves the problem of reading certain regexes, also solves a problem that > doesn't need to be solved by allowing the hackish tied-hash interface > $RE{foo}{something}{-parameter}{-otherparameter}. And thus makes code > harder to read and less maintainable. Oh well. > > (What I think we need is for Damian to write a module to actually do > everything from perl6's regex engine, for perl5, and be done with it...) > > We spent an additional bit of time over a pitcher at Heuthers, where we > learned the evil things Lloyd does with javascript during his (other) day > job. ;-) > > Mark your calendars; we will next meet on Thursday October 21st: > Eric will speak on Perl 6: Twenty Things I Love, Five Things You'll Hate, > and Lloyd will speak on Parrot, the virtual machine that will run Perl 5, > 6, Python, Java, and other bytecode. > > Hope you can make it. > > _______________________________________________ > kw-pm mailing list > kw-pm@mail.pm.org > http://mail.pm.org/mailman/listinfo/kw-pm > dcarr@sdf.lonestar.org SDF Public Access UNIX System - http://sdf.lonestar.org From rdice at pobox.com Sat Sep 18 07:11:08 2004 From: rdice at pobox.com (Richard Dice) Date: Sat Sep 18 07:11:11 2004 Subject: [kw-pm] meeting wrapup In-Reply-To: References: Message-ID: <414C25DC.60801@pobox.com> > (What I think we need is for Damian to write a module to actually do > everything from perl6's regex engine, for perl5, and be done with it...) Not everything, but it's a start... http://search.cpan.org/~dconway/Perl6-Rules-0.03/Rules.pm http://www.cpan.org/modules/by-module/Perl6/Perl6-Rules-0.03.tar.gz Cheers, Richard From daniel at coder.com Tue Sep 21 09:33:44 2004 From: daniel at coder.com (Daniel R. Allen) Date: Tue Sep 21 09:40:43 2004 Subject: [kw-pm] [tpm] [Fwd: YAPC::NA::2005 Venue Selection] - Toronto Message-ID: ---------- Forwarded message ---------- Date: Tue, 21 Sep 2004 10:36:02 -0400 From: Richard Dice To: tpm@to.pm.org Subject: [tpm] [Fwd: YAPC::NA::2005 Venue Selection] Everyone, Thanks for all your great support in the YAPC::NA 2005 bid and looking forward to even more (much, much more...) over the next 9 months! Announcements to the world-at-large will hit all the usual web sites shortly... Cheers, Richard > Subject: YAPC::NA::2005 Venue Selection > Date: Tue, 21 Sep 2004 10:31:51 -0400 > From: Kevin Meltzer > Reply-To: Kevin Meltzer > To: Richard Dice > > The Perl Foundations Conferences Committee has selected Toronto as the > venue for YAPC::NA::2005. The proposal was submitted by Richard Dice > and the Toronto Perl Mongers. > > Dates: Wed - Fri 22-24 June 2005 > Location: University of Toronto > > We hope for another great YAPC::NA in 2005! Congratulations to Toronto! > > -- > [Writing CGI Applications with Perl - http://perlcgi-book.com] > Not a speck of cereal. > -- Frank Zappa ================================================= This email appears to originate from the Toronto Perl Mongers Listserver. Listserv : tpm@to.pm.org Administrative queries: owner-tpm@to.pm.org From dcarr at sdf.lonestar.org Tue Sep 21 16:34:14 2004 From: dcarr at sdf.lonestar.org (lloyd carr) Date: Tue Sep 21 16:34:23 2004 Subject: [kw-pm] Mystery Problem Message-ID: Daniel and Fishbot have both refactored the Mystery code. Many thanks to both of them :-) Check out the kw.pm wiki under games. - Lloyd dcarr@sdf.lonestar.org SDF Public Access UNIX System - http://sdf.lonestar.org From fhew3 at cogeco.ca Tue Sep 28 16:25:22 2004 From: fhew3 at cogeco.ca (Fulko Hew) Date: Tue Sep 28 16:25:25 2004 Subject: [kw-pm] TPM lightning talks Message-ID: <4159D6C2.8070308@cogeco.ca> The TPM Lightning Talk session is this Thursday, Sept 30. And the presenters are supplying notification of what is on their mind. Here is the lastest information that I have. Quant Finance with Perl Item #2 .. 'Yield Curve' by Richard Testing web pages with Perl by Pierre Getopt::Declare by Shaun Getopt::Declare (by Damian) is yet another command-line argument parser, one which is specifically designed to be powerful but exceptionally easy to use. /Perl (Expert)? Quiz of the Week/ by John A talk on the two mailing lists, /Perl (Expert)? Quiz of the Week/ run by Mark Jason Dominus The talk would describe the two lists, how to join, and show some example quizes from the past 6 months, with a summary of the sort of discussion that arose. Creating Highly Available, Redundant Linux Systems by Fulko Of course the "... using Perl" is a given Automating best testing practices in Class::DBI development by Dan. Dan will be using a CPAN module Spork to prepare his slides so you may get a side topic covering Spork. 21st Century Perl by Micheal Synopsis: Every time a new version of Perl comes out, I salivate over the shiny new syntax features, but I know that because of the demands of backwards compatibility I won't be able to use the features for a long time. But Now I'm making a clean break and refusing to support Perl versions from the last Millenium. Now I get to use with confidence such advanced features as: - autovivifying filehandles - 3 argument open - lexical warnings - the 'our' pragma - can() and isa() - inline foreach Taking a Dump How to perform stack tracing by Fulko Catching financial conspirators using Perl This involves Perl for recreation. The topic will focus on a puzzle published in Dr Dobb's Journal and the use of Perl to aid in solving the puzzle. Listeners are ALWAYS welcome. -- Glenn -- Chairman for the Lightning Talks meeting e-mail: gsimpson@mountaincable.net