From fiedlert at gmail.com Sun Jul 1 03:36:14 2007 From: fiedlert at gmail.com (Ted Fiedler) Date: Sun, 1 Jul 2007 06:36:14 -0400 Subject: [ABE.pm] local perlmonger news In-Reply-To: <20070701002525.GA6681@knight.manxome.org> References: <20070701002525.GA6681@knight.manxome.org> Message-ID: <814422ce0707010336x25fb2a7bje7ef1bf420c0fba5@mail.gmail.com> Yes - I am heading to Pittsburgh this year, come hell or high water. I ma even running out of valid excuses: YAPC 2006 - $work forbid me to go. Pittsburgh 2006 - $work was going to pay for me to go, but my $fatherly duties took presedence. YAPC 2007 - I needed to see Bob Dylan, and get my hernia fixed. I am still recovering. Pittsburgh 2007 - Look ma NO EXCUSES! Anyway - My back hurts from lying in bed for three days and $pain_Killer just makes me itch. Ted On 6/30/07, Ricardo SIGNES wrote: > > > So, as I mentioned earlier, I just got back, Thursday, from YAPC in > Houston. > It was a great conference, and I had a swell time. Just the right amount > of > beer, barbeque, and sleep. I learned a few good things and gave some > talks > that I really enjoyed. I might force one of these (very short) on you, > next > Wednesday. > > Faber was there, and can serve as the first non-rjbs ABE.pm member to > report > back on YAPC. Faber! Was it as fun as I've always said? (Did you see > any of > my talks? I can't recall.) > > In other news, Kip is now a father to one more kid! I have no idea > whether > he'll make it next time (and he isn't on the list), so if necessary, I > will > show off photos and act proud on his behalf. > > There's a Perl Workshop in Pittsburgh in October. It's like a 1.5 day > YAPC > held on the weekend. I'm hoping to get out there. Anybody else > interested? > > http://pghpw.org/ppw2007/ > > -- > rjbs > _______________________________________________ > ABE-pm mailing list > ABE-pm at pm.org > http://mail.pm.org/mailman/listinfo/abe-pm > -- The optimist thinks that this is the best of all possible worlds, and the pessimist knows it. -- J. Robert Oppenheimer, "Bulletin of Atomic Scientists" -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/abe-pm/attachments/20070701/08b1b850/attachment.html From faber at linuxnj.com Sun Jul 1 20:14:40 2007 From: faber at linuxnj.com (Faber J. Fedor) Date: Sun, 1 Jul 2007 23:14:40 -0400 Subject: [ABE.pm] local perlmonger news In-Reply-To: <20070701002525.GA6681@knight.manxome.org> References: <20070701002525.GA6681@knight.manxome.org> Message-ID: <20070702031440.GA22199@neptune.faber.nom> On 30/06/07 20:25 -0400, Ricardo SIGNES wrote: > Faber was there, and can serve as the first non-rjbs ABE.pm member to report > back on YAPC. Faber! Was it as fun as I've always said? For you, probably. From my POV, it was okay. The social activites were the highlight for me. Three of the five nights I had people in my apartment 'til the wee hours. The talks were hit or miss. I didn't learn nearly enough as I expected. I was hoping to walk away with techniques that I could use to improve my coding. Maybe I went to the wrong talks, but most weren't as technical as I expected. Don't get me wrong, most were interesting but what I mostly walked away with was simply the name of modules or apps to look into such as Rose::DB and Catalyst. There was a lot of emphasis on Perl 6 and Parrot, neither of which I am interested in. The Lightning Talks on the last day gave me more food for thought than the scheduled talks. The Master Class with Randall was a waste of time and money. (Granted, I missed the first day of class cuz I was up 'til 3 AM the night before but still...) For the first class, he read the slides which were just bullet points of the Best Practices book; there was no value-add that I could see. For the second he went over basic stuff about persistent data (files, databases, etc.) that even I knew; the only thing I got out of that was learning about the existence of Rose::DB and the fact that the audience had alot more practical experience with (enterprise-level) databases than he had. The University of Houston was a disappointment. The young college babes were a pleasure to look at but the place was dead; no coffee shops with interesting conversations, no underground music scene, etc. I would (and will) do it again, but I'm going to temper my expectations next time. > (Did you see any of my talks? I can't recall.) I didn't understand your talks when you explained them at McGrady's, so I wasn't going to magically understand them in Houston. :-) So, no, I didn't attend either of your talks. > There's a Perl Workshop in Pittsburgh in October. It's like a 1.5 day YAPC > held on the weekend. I'm hoping to get out there. Anybody else interested? > > http://pghpw.org/ppw2007/ That looks promising. It's also an excuse to visit the old neighborhood. Let's see what the talks will be about. -- Regards, Faber Fedor President Linux New Jersey, Inc. 908-320-0357 800-706-0701 http://www.linuxnj.com From rjbs-perl-abe at lists.manxome.org Tue Jul 3 15:16:19 2007 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Tue, 3 Jul 2007 18:16:19 -0400 Subject: [ABE.pm] technical talks Message-ID: <20070703221619.GB2098@knight> Remember a few weeks ago, we were talking about hosting some sort of little Perl workshop? This was discussed at YAPC. John C. and I spoke with a bunch of other YAPC and workshop organizers. The current thinking is that Philly and ABE should collaborate on organizing a workshop, the location to be determined. I liked the idea of having it at the same time as the "Frozen Perl" workshop to be held, maybe, in Minneapolis. This is beside the point, though: I think it will get mostly discussed on PHL's list, but I'll let you know if it starts getting some traction. I think that, first, we should try to have one or two tech meetings! I'm happy to do the first presentation or two, on the topic of your choice. Maybe one of you would rather do that! I'm sure I could get someone from Philly to come up and teach us something cool, too. My first question is: where? McG's and MG's are good for social meetings, but there's no whiteboard, projector, or quiet. We used to do tech meetings at Lehigh U, but with our Lehigh members MIA for quite some time, I don't think we can rely on that. Does anyone here have some sort of space they could donate monthly or bimonthly? If nobody has a good idea for this, I can talk to Steve C. at Moravian, where they sometimes have LVLUG meetings. If that doesn't work out either, we can just look for a quieter public place, like a library conference room. -- rjbs From faber at linuxnj.com Tue Jul 3 15:43:08 2007 From: faber at linuxnj.com (Faber Fedor) Date: Tue, 3 Jul 2007 18:43:08 -0400 Subject: [ABE.pm] technical talks In-Reply-To: <20070703221619.GB2098@knight> References: <20070703221619.GB2098@knight> Message-ID: <300ccfa50707031543h66452deao3cab3444893f112d@mail.gmail.com> On 7/3/07, Ricardo SIGNES wrote: > I think that, first, we should try to have one or two tech meetings! Finally! > I'm happy to do the first presentation or two, on the topic of your choice. "Why you should program in Perl." :-) > Maybe one of you would rather do that! I'm sure I could get someone from > Philly to come up and teach us something cool, too. I'd love to give a talk, but I don't think I'm proficient enough to teach this group anything (in Perl, anyway). > If nobody has a good idea for this, I can talk to Steve C. at Moravian, where > they sometimes have LVLUG meetings. If that doesn't work out either, we can > just look for a quieter public place, like a library conference room. My first thought was Moravian but a library could work. You do have libraries in PA, right? -- Faber From fiedlert at gmail.com Tue Jul 3 17:07:23 2007 From: fiedlert at gmail.com (Ted Fiedler) Date: Tue, 3 Jul 2007 20:07:23 -0400 Subject: [ABE.pm] technical talks In-Reply-To: <20070703221619.GB2098@knight> References: <20070703221619.GB2098@knight> Message-ID: <814422ce0707031707k36b9a74bp84dbb464ee7a510c@mail.gmail.com> On 7/3/07, Ricardo SIGNES wrote: > > > Remember a few weeks ago, we were talking about hosting some sort of > little > Perl workshop? This was discussed at YAPC. John C. and I spoke with a > bunch > of other YAPC and workshop organizers. The current thinking is that > Philly and > ABE should collaborate on organizing a workshop, the location to be > determined. > I liked the idea of having it at the same time as the "Frozen Perl" > workshop to > be held, maybe, in Minneapolis. This is beside the point, though: I > think it > will get mostly discussed on PHL's list, but I'll let you know if it > starts > getting some traction. > > I think that, first, we should try to have one or two tech meetings! > > I'm happy to do the first presentation or two, on the topic of your > choice. > Maybe one of you would rather do that! I'm sure I could get someone from > Philly to come up and teach us something cool, too. Id like to find something I could talk about. heterogeneous DB replication perhaps. The problem w/ giving talks to technical people is that most of us are at ( or above in some respects ) the same level with a bit of latitude in either direction. My first question is: where? McG's and MG's are good for social meetings, > but > there's no whiteboard, projector, or quiet. > > We used to do tech meetings at Lehigh U, but with our Lehigh members MIA > for > quite some time, I don't think we can rely on that. Does anyone here have > some > sort of space they could donate monthly or bimonthly? I could try to get us a lab at DeSales University. Now that Im thinking about it - I think its quite possible. If not there, I may be able to speak w/ my employer and see if I can use a conference room after hours. We probably would not be granted INET access. Ted -- The optimist thinks that this is the best of all possible worlds, and the pessimist knows it. -- J. Robert Oppenheimer, "Bulletin of Atomic Scientists" -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/abe-pm/attachments/20070703/83809943/attachment.html From fiedlert at gmail.com Tue Jul 3 17:08:34 2007 From: fiedlert at gmail.com (Ted Fiedler) Date: Tue, 3 Jul 2007 20:08:34 -0400 Subject: [ABE.pm] technical talks In-Reply-To: <300ccfa50707031543h66452deao3cab3444893f112d@mail.gmail.com> References: <20070703221619.GB2098@knight> <300ccfa50707031543h66452deao3cab3444893f112d@mail.gmail.com> Message-ID: <814422ce0707031708i52eeb28eoa5ff463f9f64f5f9@mail.gmail.com> > > > My first thought was Moravian but a library could work. You do have > libraries in PA, right? Whats a library? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/abe-pm/attachments/20070703/9145435b/attachment.html From rjbs-perl-abe at lists.manxome.org Tue Jul 3 17:49:10 2007 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Tue, 3 Jul 2007 20:49:10 -0400 Subject: [ABE.pm] technical talks In-Reply-To: <814422ce0707031707k36b9a74bp84dbb464ee7a510c@mail.gmail.com> References: <20070703221619.GB2098@knight> <814422ce0707031707k36b9a74bp84dbb464ee7a510c@mail.gmail.com> Message-ID: <20070704004910.GC2677@knight.manxome.org> * Ted Fiedler [2007-07-03T20:07:23] > Id like to find something I could talk about. heterogeneous DB replication > perhaps. The problem w/ giving talks to technical people is that most of us > are at ( or above in some respects ) the same level with a bit of latitude > in either direction. I don't think that's a problem: if we're mostly on the same level, we'll be able talk about things that we'll all understand and find useful. > I could try to get us a lab at DeSales University. Now that Im thinking about > it - I think its quite possible. If not there, I may be able to speak w/ my > employer and see if I can use a conference room after hours. We probably > would not be granted INET access. That would be pretty sweet. -- rjbs From rjbs-perl-abe at lists.manxome.org Tue Jul 3 17:49:53 2007 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Tue, 3 Jul 2007 20:49:53 -0400 Subject: [ABE.pm] technical talks In-Reply-To: <814422ce0707031708i52eeb28eoa5ff463f9f64f5f9@mail.gmail.com> References: <20070703221619.GB2098@knight> <300ccfa50707031543h66452deao3cab3444893f112d@mail.gmail.com> <814422ce0707031708i52eeb28eoa5ff463f9f64f5f9@mail.gmail.com> Message-ID: <20070704004953.GD2677@knight.manxome.org> * Ted Fiedler [2007-07-03T20:08:34] > >My first thought was Moravian but a library could work. You do have > >libraries in PA, right? > > Whats a library? Imagine Blockbuster, but mostly with novelizations. -- rjbs From rjbs-perl-abe at lists.manxome.org Tue Jul 10 07:58:54 2007 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Tue, 10 Jul 2007 10:58:54 -0400 Subject: [ABE.pm] reminder: ABE.pm, tomorrow, July 11, McGrady's Message-ID: <20070710145854.GA1628@knight> I feel like it's been ages since we mentioned the reschedule. I will see you guys tomorrow, at McGrady's, around 18:00 or so. -- rjbs From tfreedman at iqep.com Tue Jul 10 08:29:52 2007 From: tfreedman at iqep.com (Tom Freedman) Date: Tue, 10 Jul 2007 11:29:52 -0400 Subject: [ABE.pm] reminder: ABE.pm, tomorrow, July 11, McGrady's In-Reply-To: <20070710145854.GA1628@knight> References: <20070710145854.GA1628@knight> Message-ID: > -----Original Message----- > From: Ricardo SIGNES > Sent: Tuesday, July 10, 2007 10:59 AM > To: abe-pm at pm.org > Subject: [ABE.pm] reminder: ABE.pm, tomorrow, July 11, McGrady's > > > I feel like it's been ages since we mentioned the reschedule. I will see > you guys tomorrow, at McGrady's, around 18:00 or so. > Gah, I had forgotten... I actually won't be able to make it due to a family obligation. My apologies! See you guys August 1st, perhaps... -Tom Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and/or privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender immediately by reply e-mail and destroy all copies of the original message. From fiedlert at gmail.com Tue Jul 10 08:35:48 2007 From: fiedlert at gmail.com (Ted Fiedler) Date: Tue, 10 Jul 2007 11:35:48 -0400 Subject: [ABE.pm] Off topic ETL tool Message-ID: <814422ce0707100835o279cbfe8icb22d41d90521495@mail.gmail.com> Has anyone else seen this little gem? F*$#&ing amazing stuff. http://kettle.pentaho.org/ Ted -- The optimist thinks that this is the best of all possible worlds, and the pessimist knows it. -- J. Robert Oppenheimer, "Bulletin of Atomic Scientists" -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/abe-pm/attachments/20070710/badfde83/attachment.html From faber at linuxnj.com Tue Jul 10 08:57:24 2007 From: faber at linuxnj.com (Faber Fedor) Date: Tue, 10 Jul 2007 11:57:24 -0400 Subject: [ABE.pm] Off topic ETL tool In-Reply-To: <814422ce0707100835o279cbfe8icb22d41d90521495@mail.gmail.com> References: <814422ce0707100835o279cbfe8icb22d41d90521495@mail.gmail.com> Message-ID: <300ccfa50707100857o7d15d5b7sf8a54bce9a82ae40@mail.gmail.com> On 7/10/07, Ted Fiedler wrote: > Has anyone else seen this little gem? F*$#&ing amazing stuff. > > http://kettle.pentaho.org/ Interesting, but I skipped the first step and start at the data warehouse. :-) BTW, this software is free, Free and OS, right? I can't seem to find a direct statement of that. The first indication I came across was in the FAQ "How is the Pentaho BI Project different from other Open Source BI or Reporting projects?" which implies it's FOSS. Too bad it's in Java. -- Regards, Faber Fedor President Linux New Jersey, Inc. 908-320-0357 800-706-0701 http://www.linuxnj.com From fiedlert at gmail.com Tue Jul 10 10:01:23 2007 From: fiedlert at gmail.com (Ted Fiedler) Date: Tue, 10 Jul 2007 13:01:23 -0400 Subject: [ABE.pm] reminder: ABE.pm, tomorrow, July 11, McGrady's In-Reply-To: <20070710145854.GA1628@knight> References: <20070710145854.GA1628@knight> Message-ID: <814422ce0707101001v33c13dbr46b9efbdb9fc21d@mail.gmail.com> Ill be there. On 7/10/07, Ricardo SIGNES wrote: > > > I feel like it's been ages since we mentioned the reschedule. I will see > you > guys tomorrow, at McGrady's, around 18:00 or so. > > -- > rjbs > _______________________________________________ > ABE-pm mailing list > ABE-pm at pm.org > http://mail.pm.org/mailman/listinfo/abe-pm > -- The optimist thinks that this is the best of all possible worlds, and the pessimist knows it. -- J. Robert Oppenheimer, "Bulletin of Atomic Scientists" -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/abe-pm/attachments/20070710/9e77eb7e/attachment.html From faber at linuxnj.com Tue Jul 10 14:18:50 2007 From: faber at linuxnj.com (Faber J. Fedor) Date: Tue, 10 Jul 2007 17:18:50 -0400 Subject: [ABE.pm] YAML module? Message-ID: <20070710211850.GB21302@neptune.faber.nom> If I want to store some config data in YAML format, which module do I use? The YAML module says that it's buggy and I couldn't find a YAML::Lite. I think I just want the Load and maybe the Dump feature; seems silly to load two modules for a function each though. -- Regards, Faber Fedor President Linux New Jersey, Inc. 908-320-0357 800-706-0701 http://www.linuxnj.com From rjbs-perl-abe at lists.manxome.org Tue Jul 10 14:41:28 2007 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Tue, 10 Jul 2007 17:41:28 -0400 Subject: [ABE.pm] YAML module? In-Reply-To: <20070710211850.GB21302@neptune.faber.nom> References: <20070710211850.GB21302@neptune.faber.nom> Message-ID: <20070710214128.GA2145@knight> * "Faber J. Fedor" [2007-07-10T17:18:50] > If I want to store some config data in YAML format, which module do I > use? The YAML module says that it's buggy and I couldn't find a > YAML::Lite. YAML::Syck or YAML::LibYAML. YAML::Syck is more mature, YAML::LibYAML should be more correct. If you're just using a very simple subset of YAML, YAML::Tiny is as a start fine. > I think I just want the Load and maybe the Dump feature; seems silly to > load two modules for a function each though. What ever suggests using two different modules? -- rjbs From faber at linuxnj.com Tue Jul 10 15:05:58 2007 From: faber at linuxnj.com (Faber Fedor) Date: Tue, 10 Jul 2007 18:05:58 -0400 Subject: [ABE.pm] YAML module? In-Reply-To: <20070710214128.GA2145@knight> References: <20070710211850.GB21302@neptune.faber.nom> <20070710214128.GA2145@knight> Message-ID: <300ccfa50707101505t50e7b265o635a1c6fdb9e23ba@mail.gmail.com> On 7/10/07, Ricardo SIGNES wrote: > If you're just using a very simple subset of YAML, YAML::Tiny is as a start > fine. That will prolly work for me. Now why didn't I see it when I searched CPAN? > > I think I just want the Load and maybe the Dump feature; seems silly to > > load two modules for a function each though. > > What ever suggests using two different modules? YAML::Load and YAML::Dump mentioned in the YAML docs, of course. -- Faber From rjbs-perl-abe at lists.manxome.org Tue Jul 10 17:09:21 2007 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Tue, 10 Jul 2007 20:09:21 -0400 Subject: [ABE.pm] YAML module? In-Reply-To: <300ccfa50707101505t50e7b265o635a1c6fdb9e23ba@mail.gmail.com> References: <20070710211850.GB21302@neptune.faber.nom> <20070710214128.GA2145@knight> <300ccfa50707101505t50e7b265o635a1c6fdb9e23ba@mail.gmail.com> Message-ID: <20070711000921.GA3224@knight.manxome.org> * Faber Fedor [2007-07-10T18:05:58] > > What ever suggests using two different modules? > > YAML::Load and YAML::Dump mentioned in the YAML docs, of course. Those are subroutines, not modules. my @data = YAML::Load($yaml_string); my $yaml = YAML::Dump(@data); Those call the Load and Dump subs in the YAML package, respectively. -- rjbs From rjbs-perl-abe at lists.manxome.org Tue Jul 10 17:28:48 2007 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Tue, 10 Jul 2007 20:28:48 -0400 Subject: [ABE.pm] perl 5.10 rules! - pluggable regex engines Message-ID: <20070711002848.GA2256@knight> Okay, this is probably the last thing I'll write about with regard to perl 5.10, at least as far as I can predict from where I'm sitting now. It's also the one I've put off the longest, because it's fairly advanced and esoteric. Rather than get into the scary esoteric bits (at least right off the bat), let's just see what I mean and what it can do for you. Everybody who programs Perl (or even PERL) has probably written something like this: $line =~ /your (face|belly) is very round/; $part = $1; punch_in_the($part); There is nothing mysterious about this, I hope. We match a string against a pattern, make use of part of the captured data in the match, and that's that. The semantics of Perl regular expressions are pretty well defined, and are often considered some of the best (due to both power and relative ease of use) around. That doesn't mean, though, that they're the only semantics you ever need to use. Perl is great for generating lots of text based on a little text. Sometimes we call it templating. One of the ways I use this is in configuration generation. I provide just a little data to perl and it generates a big verbose config file for me. Let's assume that part of the config you're outputting is regular expressions. You have code something like this: sub mail_from_re { my ($sender) = @_; my $regex = ...; return $regexs } That code returns a string that goes into the config file, where it's used as a regex. It's easy to write automated tests for this code, right? You can write a test that does: my $re_string = mail_from_re($sender); like($whatever, qr/$re_string/, "the returned regex matches!"); Now you can test that all your regex are going to work the way you think. There's just one problem... the tool you're writing for uses POSIX regex, not Perl regex. You can't just test with that tool, because it does Stuff that you can't just do without consequences. Anyway, it's a pain. The pluggable regex engine of 5.10 to the rescue! Now you can write: my $re_string = mail_from_re($sender); { use re::engine::POSIX; like($whatever, qr/$re_string/, "the returned regex matches!"); } ...and like that, you're using POSIX regex. Or Plan9. Or PCRE. Or JavaScript. Or Perl6. Or whatever! The reverse works, too. my $re_string = read_from_external_config_file; my $regex; { use re::engine::PCRE; $regex = qr/$re_string/; } if ($string =~ $regex) { ... } Now you can read in the regex from external sources, written for other forms of regex evaluation, and use them correctly in your perl program. If these applications don't excite you, and you want to do something really fun, why not write your own regex engine? It's easy with re::engine::Plugin, which lets you write new regex engines in Perl. I think we'll see a lot of applications of this for all manner of shortcut: use re::engine::Subnet; if ('10.1.2.15' =~ m{10.1.2.0/18}) { # executed if ip is in described netblock } The API for writing your own engines is still pretty young, and I'm still a real novice with it, so I won't get into it here. It's on the CPAN: http://search.cpan.org/dist/re-engine-Plugin/ I'm really looking forward to seeing this put to powerful and fun uses, especially the implementation of Perl 6 Grammars in Perl 5. More on that another time! -- rjbs From faber at linuxnj.com Tue Jul 10 18:44:12 2007 From: faber at linuxnj.com (Faber Fedor) Date: Tue, 10 Jul 2007 21:44:12 -0400 Subject: [ABE.pm] YAML module? In-Reply-To: <20070711000921.GA3224@knight.manxome.org> References: <20070710211850.GB21302@neptune.faber.nom> <20070710214128.GA2145@knight> <300ccfa50707101505t50e7b265o635a1c6fdb9e23ba@mail.gmail.com> <20070711000921.GA3224@knight.manxome.org> Message-ID: <300ccfa50707101844y1ad004b4ud6b745655b62378d@mail.gmail.com> On 7/10/07, Ricardo SIGNES wrote: > * Faber Fedor [2007-07-10T18:05:58] > > > What ever suggests using two different modules? > > > > YAML::Load and YAML::Dump mentioned in the YAML docs, of course. > > Those are subroutines, not modules. > > my @data = YAML::Load($yaml_string); > my $yaml = YAML::Dump(@data); > > Those call the Load and Dump subs in the YAML package, respectively. >From the docs "The real work is done by the modules YAML::Dumper and YAML::Loader." That's where I got the idea. Anywho, even YAML is going to be overkill for this script; I'm just going to create an array. -- Faber From rjbs-perl-abe at lists.manxome.org Tue Jul 10 20:07:59 2007 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Tue, 10 Jul 2007 23:07:59 -0400 Subject: [ABE.pm] YAML module? In-Reply-To: <300ccfa50707101844y1ad004b4ud6b745655b62378d@mail.gmail.com> References: <20070710211850.GB21302@neptune.faber.nom> <20070710214128.GA2145@knight> <300ccfa50707101505t50e7b265o635a1c6fdb9e23ba@mail.gmail.com> <20070711000921.GA3224@knight.manxome.org> <300ccfa50707101844y1ad004b4ud6b745655b62378d@mail.gmail.com> Message-ID: <20070711030759.GA3512@knight.manxome.org> * Faber Fedor [2007-07-10T21:44:12] > > > YAML::Load and YAML::Dump mentioned in the YAML docs, of course. > > > > Those are subroutines, not modules. > > > > my @data = YAML::Load($yaml_string); > > my $yaml = YAML::Dump(@data); > > > > Those call the Load and Dump subs in the YAML package, respectively. > > From the docs "The real work is done by the modules YAML::Dumper and > YAML::Loader." That's where I got the idea. Right: so you don't need to use two modules, you use two subroutines, which have their guts spread over different files. It's dangerous to say, "I think two modules are overkill!" because it's just a question of how the author decided to organize HIS code. Some authors use 5 small files and some use 1 gigantic one. > Anywho, even YAML is going to be overkill for this script; I'm just > going to create an array. I do a lot of config with Config::INI::Reader. :) Some people like Config::General, too. It's too big for me. Time to crash, I think. -- rjbs From rjbs-perl-abe at lists.manxome.org Wed Jul 11 21:10:49 2007 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Thu, 12 Jul 2007 00:10:49 -0400 Subject: [ABE.pm] notes from post-meeting Message-ID: <20070712041049.GA5044@knight.manxome.org> The White Stripes are a divorced couple: http://www.gloriousnoise.com/?pg=white_stripes_divorced.php You should read Ted Chiang's book "Stories of Your Life and Others." -- rjbs From fiedlert at gmail.com Thu Jul 12 05:43:49 2007 From: fiedlert at gmail.com (Ted Fiedler) Date: Thu, 12 Jul 2007 08:43:49 -0400 Subject: [ABE.pm] notes from post-meeting In-Reply-To: <20070712041049.GA5044@knight.manxome.org> References: <20070712041049.GA5044@knight.manxome.org> Message-ID: <814422ce0707120543t510812bbg1c24ff5c74e032b3@mail.gmail.com> And LVM snapshots: http://tldp.org/HOWTO/LVM-HOWTO/snapshots_backup.html On 7/12/07, Ricardo SIGNES wrote: > > > The White Stripes are a divorced couple: > http://www.gloriousnoise.com/?pg=white_stripes_divorced.php > > You should read Ted Chiang's book "Stories of Your Life and Others." > > -- > rjbs > _______________________________________________ > ABE-pm mailing list > ABE-pm at pm.org > http://mail.pm.org/mailman/listinfo/abe-pm > -- The optimist thinks that this is the best of all possible worlds, and the pessimist knows it. -- J. Robert Oppenheimer, "Bulletin of Atomic Scientists" -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/abe-pm/attachments/20070712/2fd81e07/attachment.html From faber at linuxnj.com Thu Jul 12 06:58:58 2007 From: faber at linuxnj.com (Faber J. Fedor) Date: Thu, 12 Jul 2007 09:58:58 -0400 Subject: [ABE.pm] notes from post-meeting In-Reply-To: <20070712041049.GA5044@knight.manxome.org> References: <20070712041049.GA5044@knight.manxome.org> Message-ID: <20070712135858.GC25149@neptune.faber.nom> If I had learned stuff like this at YAPC, I would've liked it more: I just discovered that this: my %f; foreach $fieldname ( keys %{$Messages{$id}} ) { $f{$fieldname} = $Messages{$id}{$fieldname}; } can be written as my %f = %{$Messages{$id}}; Is this what you call a hash slice? -- Regards, Faber Fedor President Linux New Jersey, Inc. 908-320-0357 800-706-0701 http://www.linuxnj.com From rjbs-perl-abe at lists.manxome.org Thu Jul 12 07:49:24 2007 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Thu, 12 Jul 2007 10:49:24 -0400 Subject: [ABE.pm] notes from post-meeting In-Reply-To: <20070712135858.GC25149@neptune.faber.nom> References: <20070712041049.GA5044@knight.manxome.org> <20070712135858.GC25149@neptune.faber.nom> Message-ID: <20070712144924.GA5573@knight.manxome.org> * "Faber J. Fedor" [2007-07-12T09:58:58] > > my %f = %{$Messages{$id}}; > > Is this what you call a hash slice? Nope, that's just plain ol' list assignment to a hash. You can always write this: my %hash = ( one => 1, two => 2, ); That's a nice way to format: my %hash = ("one", 1, "two", 2); ...because when you assign a list of values to a hash, it makes each pair of entries into a key/value pair. (That's why you'd get a warning if you assigned an odd set like this: %hash = (1, 2, 3, 4, 5).) In list context, a hash evaluates to its names and values. So: my %hash = (one => 1, two => 2); my @array = %hash; Now @array is ("one", 1, "two", 2); Put these two together and you can say: %new_hash = %old_hash; and it does what you probably mean. Note that it replaces ALL content currently in %new_hash. A hash slice represents a subset of the values of the hash: my %hash = ( one => 1, two => 2, tre => 3, ); my @values = @hash{ "one", "two" }; Now @values contains (1, 2); Note that the % on %hash becomes a @ for a slice, not a $ like a single-value lookup. You can assign to slices: @hash{ "four", "five" } = (4, 5); ...and now your hash has five entries, because the entries for one, two, tre are not replaced. That's a large way in which assigning to a slice differs from assigning to the whole hash. -- rjbs From rjbs-perl-abe at lists.manxome.org Thu Jul 12 10:22:58 2007 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Thu, 12 Jul 2007 13:22:58 -0400 Subject: [ABE.pm] notes from post-meeting In-Reply-To: <814422ce0707120543t510812bbg1c24ff5c74e032b3@mail.gmail.com> References: <20070712041049.GA5044@knight.manxome.org> <814422ce0707120543t510812bbg1c24ff5c74e032b3@mail.gmail.com> Message-ID: <20070712172258.GA32682@zodiac.codesimply.com> * Ted Fiedler [2007-07-12T08:43:49] > And LVM snapshots: > http://tldp.org/HOWTO/LVM-HOWTO/snapshots_backup.html And you were going to share a Pandora station. -- rjbs From fiedlert at gmail.com Thu Jul 12 10:34:55 2007 From: fiedlert at gmail.com (Ted Fiedler) Date: Thu, 12 Jul 2007 13:34:55 -0400 Subject: [ABE.pm] notes from post-meeting In-Reply-To: <20070712172258.GA32682@zodiac.codesimply.com> References: <20070712041049.GA5044@knight.manxome.org> <814422ce0707120543t510812bbg1c24ff5c74e032b3@mail.gmail.com> <20070712172258.GA32682@zodiac.codesimply.com> Message-ID: <814422ce0707121034l505962d5j5841bb61c39736dd@mail.gmail.com> http://www.pandora.com/?sc=sh108597054086784956 On 7/12/07, Ricardo SIGNES wrote: > > * Ted Fiedler [2007-07-12T08:43:49] > > And LVM snapshots: > > http://tldp.org/HOWTO/LVM-HOWTO/snapshots_backup.html > > And you were going to share a Pandora station. > > -- > rjbs > _______________________________________________ > ABE-pm mailing list > ABE-pm at pm.org > http://mail.pm.org/mailman/listinfo/abe-pm > -- The optimist thinks that this is the best of all possible worlds, and the pessimist knows it. -- J. Robert Oppenheimer, "Bulletin of Atomic Scientists" -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/abe-pm/attachments/20070712/113ff872/attachment.html From rjbs-perl-abe at lists.manxome.org Mon Jul 23 08:26:10 2007 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Mon, 23 Jul 2007 11:26:10 -0400 Subject: [ABE.pm] programming erlang Message-ID: <20070723152610.GA29155@knight> We received a free copy of Mastering Perl from O'Reilly this week. I'm working my way through it. So far, it's good. I'll post a review ASAP. O'Reilly is going to be sending us a review copy of Programming Erlang, which I'm really looking forward to: http://en.wikipedia.org/wiki/Erlang_%28programming_language%29 Let me know if you're interested in either. Ted: I still have your copy of the Haskell book. Let me know whenever you want it back. I'm only occasionally making any progress in it. It's quite good! -- rjbs From faber at linuxnj.com Mon Jul 23 09:40:15 2007 From: faber at linuxnj.com (Faber J. Fedor) Date: Mon, 23 Jul 2007 12:40:15 -0400 Subject: [ABE.pm] programming erlang In-Reply-To: <20070723152610.GA29155@knight> References: <20070723152610.GA29155@knight> Message-ID: <20070723164015.GA10110@neptune.faber.nom> On 23/07/07 11:26 -0400, Ricardo SIGNES wrote: > > We received a free copy of Mastering Perl from O'Reilly this week. I'm working > my way through it. So far, it's good. I'll post a review ASAP. I'd be interested in reading that. -- Regards, Faber Fedor President Linux New Jersey, Inc. 908-320-0357 800-706-0701 http://www.linuxnj.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From rjbs-perl-abe at lists.manxome.org Tue Jul 24 15:53:07 2007 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Tue, 24 Jul 2007 18:53:07 -0400 Subject: [ABE.pm] see you all on august 4th Message-ID: <20070724225307.GA5318@knight> That's a week from tomorrow. Let's go into this one with an AGENDA! Let's plan a tech meeting. I'm just sending this email off-the-cuff, but we'll want to decide: * is this instead of, or in addition to, a beer outing in its month? * desired topics? * frequency of future talks? this relates to first point! * volunteers? -- rjbs From waltman at pobox.com Tue Jul 24 16:03:18 2007 From: waltman at pobox.com (Walt Mankowski) Date: Tue, 24 Jul 2007 19:03:18 -0400 Subject: [ABE.pm] programming erlang In-Reply-To: <20070723152610.GA29155@knight> References: <20070723152610.GA29155@knight> Message-ID: <20070724230318.GA26066@mawode.com> On Mon, Jul 23, 2007 at 11:26:10AM -0400, Ricardo SIGNES wrote: > O'Reilly is going to be sending us a review copy of Programming Erlang, which > I'm really looking forward to: > > http://en.wikipedia.org/wiki/Erlang_%28programming_language%29 > > Let me know if you're interested in either. If you're interested in Erlang, someone's going to be speaking about it twice over the next couple of months at the Philadelphia Linux User's Group. The schedule is online at http://www.phillylinux.org/meetings.html These are at satellite groups in the northern suburbs, so they're a shorter drive from ABE than going all the way into the city. I missed Toby when he gave this talk to the city group, so I'll probably be going to one of these. I heard from those that did make it that it was a pretty good talk. Walt From faber at linuxnj.com Tue Jul 24 17:25:29 2007 From: faber at linuxnj.com (Faber J. Fedor) Date: Tue, 24 Jul 2007 20:25:29 -0400 Subject: [ABE.pm] see you all on august 4th In-Reply-To: <20070724225307.GA5318@knight> References: <20070724225307.GA5318@knight> Message-ID: <20070725002529.GA18252@neptune.faber.nom> On 24/07/07 18:53 -0400, Ricardo SIGNES wrote: > > That's a week from tomorrow. > > Let's go into this one with an AGENDA! Let's plan a tech meeting. I'm just > sending this email off-the-cuff, but we'll want to decide: > > * is this instead of, or in addition to, a beer outing in its month? I say have both on the same night; have a tech talk scheduled for, say an hour, hour and a half and then head to a nearby joint for refreshments afterwards. The tech talk can be for the general (programming) public and the drink/dinners afterwards for anyone who wants to attend. It will make for a late evening or thos of us who have to drive for an hour but it could be worth it. Aren't there some local colleges that teach computers/programming? How about reaching out to those kids for the tech talk? I'll bet they're not being taught Perl and real-world programming. > * desired topics? I'm going out on a limb here, but something about Perl programming? I feel my coding is sub-par and I'd like to improve it but I don't know how. How about a "technique night" or "problem-solving night" where we bring in real world problems or projects and work on them. I'm *not* talking the YAPC Hackathon. Here's an example: I've got to ftp/scp data in various text-based formats, possibly munge the code, and load it into a database. Should I write a different program for every data source? Should I write one program that takes different configurations for each data source, and how do I do the data-munging differently for each configuration? Is it better to do a ORM or should we do a LOAD DATA FILE and munge the data on the database server? What's the best way of doing that in Perl? I would love to see the difference between rjbs' and Ted's approaches since they would be coming at it from two different perspectives; one more of a programmer and the other more of a DBA. What I'm envisioning is more technical talks as opposed to topical talks Another topic: "What tools do you use and how do you use them?" with demonstrations. > * frequency of future talks? this relates to first point! > * volunteers? If I thought I had anything to teach you guys, I'd be first up, but alas... -- Regards, Faber Fedor President Linux New Jersey, Inc. 908-320-0357 800-706-0701 http://www.linuxnj.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From rjbs-perl-abe at lists.manxome.org Fri Jul 27 07:12:04 2007 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Fri, 27 Jul 2007 10:12:04 -0400 Subject: [ABE.pm] Perl survey Message-ID: <20070727141204.GA9831@knight> Kirrily "Skud" Robert is doing a Perl survey. It seems like maybe it could possibly provide interesting data. She'd appreciate it if you all took some time to take her survey. > Take part in the 2007 Perl Survey! > > The Perl Survey is an attempt to capture a picture of the Perl community in > all its diversity. No matter what sort of Perl programmer you are, we'd love > to hear from you. > > The survey can be found at: http://perlsurvey.org > > It only takes about 5 minutes to complete. > > The survey will be open until September 30th, 2007. After that, we'll be > reporting on the results and making the data freely available. -- rjbs From rjbs-perl-abe at lists.manxome.org Sat Jul 28 19:55:57 2007 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Sat, 28 Jul 2007 22:55:57 -0400 Subject: [ABE.pm] see you all on august 4th In-Reply-To: <20070724225307.GA5318@knight> References: <20070724225307.GA5318@knight> Message-ID: <20070729025557.GA16498@knight.manxome.org> * Ricardo SIGNES [2007-07-24T18:53:07] > That's a week from tomorrow. > > Let's go into this one with an AGENDA! Let's plan a tech meeting. I'm just > sending this email off-the-cuff, but we'll want to decide: ...oh, and how about a venue? McGrady's? Mach's Gute? Other preferences? -- rjbs From tfreedman at iqep.com Sun Jul 29 20:46:04 2007 From: tfreedman at iqep.com (Tom Freedman) Date: Sun, 29 Jul 2007 23:46:04 -0400 Subject: [ABE.pm] see you all on august 4th Message-ID: I vote for Mach's Gute... I find McGrady's too loud, and I think it might make a planning session painful. -Tom -----Original Message----- From: Ricardo SIGNES Sent: Saturday, July 28, 2007 22:57 To: abe-pm at pm.org Subject: Re: [ABE.pm] see you all on august 4th * Ricardo SIGNES [2007-07-24T18:53:07] > That's a week from tomorrow. > > Let's go into this one with an AGENDA! Let's plan a tech meeting. I'm just > sending this email off-the-cuff, but we'll want to decide: ...oh, and how about a venue? McGrady's? Mach's Gute? Other preferences? -- rjbs _______________________________________________ ABE-pm mailing list ABE-pm at pm.org http://mail.pm.org/mailman/listinfo/abe-pm Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and/or privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender immediately by reply e-mail and destroy all copies of the original message. From rjbs-perl-abe at lists.manxome.org Mon Jul 30 06:29:55 2007 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Mon, 30 Jul 2007 09:29:55 -0400 Subject: [ABE.pm] mastering perl (was programming erlang) In-Reply-To: <20070723164015.GA10110@neptune.faber.nom> References: <20070723152610.GA29155@knight> <20070723164015.GA10110@neptune.faber.nom> Message-ID: <20070730132955.GA19359@knight.manxome.org> * "Faber J. Fedor" [2007-07-23T12:40:15] > On 23/07/07 11:26 -0400, Ricardo SIGNES wrote: > > > > We received a free copy of Mastering Perl from O'Reilly this week. I'm > > working my way through it. So far, it's good. I'll post a review ASAP. > > I'd be interested in reading that. I posted my review last night: http://use.perl.org/~rjbs/journal/33917 I will try to remember to bring this with me on Wednesday. -- rjbs From faber at linuxnj.com Mon Jul 30 08:38:38 2007 From: faber at linuxnj.com (Faber J. Fedor) Date: Mon, 30 Jul 2007 11:38:38 -0400 Subject: [ABE.pm] see you all on august 4th In-Reply-To: <20070724225307.GA5318@knight> References: <20070724225307.GA5318@knight> Message-ID: <20070730153838.GA29773@neptune.faber.nom> On 24/07/07 18:53 -0400, Ricardo SIGNES wrote: > > That's a week from tomorrow. I just realized, you meant August 1st. -- Regards, Faber Fedor President Linux New Jersey, Inc. 908-320-0357 800-706-0701 http://www.linuxnj.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From rjbs-perl-abe at lists.manxome.org Mon Jul 30 09:20:42 2007 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Mon, 30 Jul 2007 12:20:42 -0400 Subject: [ABE.pm] see you all on august FIRST! that's THIS wednesday Message-ID: <20070730162042.GA21329@knight.office.icgroup.com> I'm an idiot, Faber is smart. I misread my calendar. This week we're meeting on August 1st, which is Wednesday. I figure you all knew that, since we always meet on Wednesdays. Cool? Current votes are for Brew Works and for Mach's Gute. Seconds? -- rjbs From rjbs-perl-abe at lists.manxome.org Tue Jul 31 19:58:59 2007 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Tue, 31 Jul 2007 22:58:59 -0400 Subject: [ABE.pm] see you all on august FIRST! that's THIS wednesday In-Reply-To: <20070730162042.GA21329@knight.office.icgroup.com> References: <20070730162042.GA21329@knight.office.icgroup.com> Message-ID: <20070801025859.GA695@knight.manxome.org> * Ricardo SIGNES [2007-07-30T12:20:42] > This week we're meeting on August 1st, which is Wednesday. I figure you all > knew that, since we always meet on Wednesdays. Cool? > > Current votes are for Brew Works and for Mach's Gute. With no other votes, I declare my tie-breaker vote for Mach's Gute. Brew Works is okay, but we'll get way more for the money at MG. See you guys there tomorrow at 18:00. -- rjbs