From richard at rushlogistics.com Sat Sep 12 06:37:13 2009 From: richard at rushlogistics.com (Richard Reina) Date: Sat, 12 Sep 2009 09:37:13 -0400 (EDT) Subject: [Chicago-talk] string operator question. Message-ID: <20090912133714.16B6E3CB9@theseus.xo.com> I have a program that reads each line of a file. The last line of the file may contain a number. I am trying to find a way to isolate the number within that line to give it value so it is a number and only a number and not a line of the file. I can do: $number = $_; # lets say the number is 83848; print $number; and print number gives me: 83848 However when I try to do something with this number like pass it along to an external subroutine with process_number($number) The subroutine can't interpret it. Do I need to strip the number down some how? I tried to play with chomp() with no luck. Any help would be greatly appreciated as solving this would allow me to spend some time with my wife and kids. From andy at petdance.com Sat Sep 12 06:38:53 2009 From: andy at petdance.com (Andy Lester) Date: Sat, 12 Sep 2009 08:38:53 -0500 Subject: [Chicago-talk] string operator question. In-Reply-To: <20090912133714.16B6E3CB9@theseus.xo.com> References: <20090912133714.16B6E3CB9@theseus.xo.com> Message-ID: On Sep 12, 2009, at 8:37 AM, Richard Reina wrote: > However when I try to do something with this number like pass it > along to an external subroutine with process_number($number) The > subroutine can't interpret it. It should be able to handle that number just fine. Give us more specifics of "can't interpret it". -- Andy Lester => andy at petdance.com => www.theworkinggeek.com => AIM:petdance From richard at rushlogistics.com Sat Sep 12 06:52:25 2009 From: richard at rushlogistics.com (Richard Reina) Date: Sat, 12 Sep 2009 09:52:25 -0400 (EDT) Subject: [Chicago-talk] string operator question. In-Reply-To: <20090912133714.16B6E3CB9@theseus.xo.com> Message-ID: <20090912135225.DF63719D1@bellona.xo.com> require "/usr/src/laundpad/ORD_processor.pl"; my $result = process($number); snip #!/usr/bin/perl -w # ORD_processor.pl sub process { print "I will attempt to process " . $number . "\n"; chomp (my $XX = ); } $number does not print From andy at petdance.com Sat Sep 12 06:53:56 2009 From: andy at petdance.com (Andy Lester) Date: Sat, 12 Sep 2009 08:53:56 -0500 Subject: [Chicago-talk] string operator question. In-Reply-To: <20090912135225.DF63719D1@bellona.xo.com> References: <20090912135225.DF63719D1@bellona.xo.com> Message-ID: <34757508-C00E-4401-B246-EAB12C674595@petdance.com> On Sep 12, 2009, at 8:52 AM, Richard Reina wrote: > require "/usr/src/laundpad/ORD_processor.pl"; > my $result = process($number); > > > snip > > #!/usr/bin/perl -w > # ORD_processor.pl > > sub process { > > print "I will attempt to process " . $number . "\n"; > chomp (my $XX = ); > > } You're not taking number as the arg to process(). You need my $number = shift; xoxo, Andy -- Andy Lester => andy at petdance.com => www.theworkinggeek.com => AIM:petdance From richard at rushlogistics.com Sat Sep 12 07:05:33 2009 From: richard at rushlogistics.com (Richard Reina) Date: Sat, 12 Sep 2009 10:05:33 -0400 (EDT) Subject: [Chicago-talk] string operator question. In-Reply-To: <20090912135225.DF63719D1@bellona.xo.com> Message-ID: <20090912140533.C1B663E9A@courageux.xo.com> Thank you very much Andy. Problem solved. ---- Chicago.pm chatter wrote: > > > On Sep 12, 2009, at 8:52 AM, Richard Reina wrote: > > > require "/usr/src/laundpad/ORD_processor.pl"; > > my $result = process($number); > > > > > > snip > > > > #!/usr/bin/perl -w > > # ORD_processor.pl > > > > sub process { > > > > print "I will attempt to process " . $number . "\n"; > > chomp (my $XX = ); > > > > } > > You're not taking number as the arg to process(). You need > > my $number = shift; > > xoxo, > Andy > > -- > Andy Lester => andy at petdance.com => www.theworkinggeek.com => AIM:petdance > > > > > > > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > From andy at petdance.com Sat Sep 12 07:27:02 2009 From: andy at petdance.com (Andy Lester) Date: Sat, 12 Sep 2009 09:27:02 -0500 Subject: [Chicago-talk] string operator question. In-Reply-To: <20090912140533.C1B663E9A@courageux.xo.com> References: <20090912140533.C1B663E9A@courageux.xo.com> Message-ID: On Sep 12, 2009, at 9:05 AM, Richard Reina wrote: > Thank you very much Andy. Problem solved. In general, you should always have "use warnings" and "use strict". It would have steered you in the right direction. -- Andy Lester => andy at petdance.com => www.theworkinggeek.com => AIM:petdance From richard at rushlogistics.com Sat Sep 12 07:42:17 2009 From: richard at rushlogistics.com (Richard Reina) Date: Sat, 12 Sep 2009 10:42:17 -0400 (EDT) Subject: [Chicago-talk] string operator question. In-Reply-To: <20090912140533.C1B663E9A@courageux.xo.com> Message-ID: <20090912144217.B3A211990@bellona.xo.com> I think I've got it now. I found this: $mystring = "[2004/04/13] The date of this article."; if($mystring =~ m/(\d+)/) { print "The first number is $1."; } in a tutorial at http://www.somacon.com/p127.php and hacked it up so that my number gets the value of $number = $1 and it works. However, I am confused by the representation of the scalar $1 I have never seen that before. Can someone explain $1. Or is it something that should not be explained but instead accepted at face value? ---- Chicago.pm chatter wrote: > > Thank you very much Andy. Problem solved. > ---- Chicago.pm chatter wrote: > > > > > > On Sep 12, 2009, at 8:52 AM, Richard Reina wrote: > > > > > require "/usr/src/laundpad/ORD_processor.pl"; > > > my $result = process($number); > > > > > > > > > snip > > > > > > #!/usr/bin/perl -w > > > # ORD_processor.pl > > > > > > sub process { > > > > > > print "I will attempt to process " . $number . "\n"; > > > chomp (my $XX = ); > > > > > > } > > > > You're not taking number as the arg to process(). You need > > > > my $number = shift; > > > > xoxo, > > Andy > > > > -- > > Andy Lester => andy at petdance.com => www.theworkinggeek.com => AIM:petdance > > > > > > > > > > > > > > _______________________________________________ > > Chicago-talk mailing list > > Chicago-talk at pm.org > > http://mail.pm.org/mailman/listinfo/chicago-talk > > > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > From kent at c2group.net Sat Sep 12 08:15:35 2009 From: kent at c2group.net (Kent Cowgill) Date: Sat, 12 Sep 2009 10:15:35 -0500 Subject: [Chicago-talk] string operator question. In-Reply-To: <20090912144217.B3A211990@bellona.xo.com> References: <20090912144217.B3A211990@bellona.xo.com> Message-ID: On Sep 12, 2009, at 9:42 AM, Richard Reina wrote: > I think I've got it now. I found this: > > $mystring = "[2004/04/13] The date of this article."; > if($mystring =~ m/(\d+)/) { > print "The first number is $1."; > } > > in a tutorial at http://www.somacon.com/p127.php > > and hacked it up so that my number gets the value of > > $number = $1 > > and it works. > > However, I am confused by the representation of the scalar $1 I have > never seen that before. Can someone explain $1. Or is it something > that should not be explained but instead accepted at face value? It says on that page, right above your example: Prints "The first digit is 2." In order to designate a pattern for extraction, one places parenthesis around the pattern. If the pattern is matched, it is returned in the Perl special variable called $1. If there are multiple parenthesized expressions, then they will be in variables $1, $2, $3, etc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard at rushlogistics.com Sat Sep 12 08:42:16 2009 From: richard at rushlogistics.com (Richard Reina) Date: Sat, 12 Sep 2009 11:42:16 -0400 (EDT) Subject: [Chicago-talk] string operator question. In-Reply-To: <20090912144217.B3A211990@bellona.xo.com> Message-ID: <20090912154216.8D3921990@bellona.xo.com> Thank you Kent. Obviously I missed that. > > Chicago.pm chatter wrote: > On Sep 12, 2009, at 9:42 AM, Richard Reina wrote: > > I think I've got it now. I found this: > > > if($mystring =~ m/(\d+)/) { > ? ?print "The first number is $1."; > } > > in a tutorial at http://www.somacon.com/p127.php > > and hacked it up so that my number gets the value > of > > $number = $1 > > and it works. > > However, I am confused by the representation of the > scalar $1 I have never seen that before. ?Can someone > explain $1. ?Or is it something that should not be > explained but instead accepted at face value? It says on that page, right above your example: > > Prints "The first digit is 2." In order to designate > a pattern for extraction, one places parenthesis around > the pattern. If the pattern is matched, it is returned > in the Perl special variable called $1. If there are > multiple parenthesized expressions, then they will > be in variables $1, $2, $3, etc. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pcmantz at gmail.com Mon Sep 14 21:00:24 2009 From: pcmantz at gmail.com (Paul Mantz) Date: Mon, 14 Sep 2009 23:00:24 -0500 Subject: [Chicago-talk] Fwd: Hackathon! September In-Reply-To: <42f28fe0909142013p74e7c5c8wa6970edfa7a21c1e@mail.gmail.com> References: <42f28fe0909142013p74e7c5c8wa6970edfa7a21c1e@mail.gmail.com> Message-ID: <42f28fe0909142100k2a7d9bafj28f9becb50ceb583@mail.gmail.com> ---------- Forwarded message ---------- From: Paul Mantz Date: Mon, Sep 14, 2009 at 10:13 PM Subject: Hackathon! September To: pumping-station-one-public at googlegroups.com Hey guys, We had excellent success the hackathon last month, so we're going to do it again. ?On Saturday, the 26th--from 8pm to 12pm the next day--drag your software and other coding projects out of their mothballs and prepare to hack up a storm. ?We're going to see what we can push out the door. This is a great event for newcomers to see what we're about--I want to see terminals flying with activity and inspiration. ?Bring your friends, write a command-line utility. ?Chug a Red Bull and finish off your website. ?Let's get to hacking. Details are posted at the wiki page--http://pumpingstationone.org/wiki//index.php?title=Hackathon . Add your project, correct my grammar, and stir up a fuss. ?Let's see some coding! Adios, -- Paul Mantz http://www.mcpantz.org BackupPC - Network Backup with De-Duplication http://www.backuppc.com Zmanda - Open source backup and recovery http://www.zmanda.com/ -- Paul Mantz http://www.mcpantz.org BackupPC - Network Backup with De-Duplication http://www.backuppc.com Zmanda - Open source backup and recovery http://www.zmanda.com/ From joshua.mcadams at gmail.com Wed Sep 16 20:47:50 2009 From: joshua.mcadams at gmail.com (Joshua) Date: Wed, 16 Sep 2009 22:47:50 -0500 Subject: [Chicago-talk] Time for a Perl Mongers meeting? Message-ID: <49d805d70909162047s5c878229k3e447171f7442cae@mail.gmail.com> Tuesday September 22nd is the 4th Tuesday of the month. Anyone up for a PM meeting? I don't know that we have any talks lined up yet... any volunteers? From brian.d.foy at gmail.com Thu Sep 17 09:05:56 2009 From: brian.d.foy at gmail.com (brian d foy) Date: Thu, 17 Sep 2009 11:05:56 -0500 Subject: [Chicago-talk] Free beer, free pizza, & Effective Perl Programming Message-ID: <2715accf0909170905tdc7da91hd1faf781eacc198e@mail.gmail.com> Josh and I want to buy you pizza and beer on friday the 25th, say, 7ish. In return, you get to criticize us, just like Elliot does for free already (you can have free pizza too, though). Not only that, but everyone who helps gets their name in the book. It's a lot more than you get for answering questions on mailing lists. :) We'll announce the venue later, but it's going to be near an El stop. We're working on the next edition of Effective Perl Programming, and we want your input and what we've done so far. We can show you in person, but we're not releasing this development sources to the interwebs like I've done with my previous books. We have a different sort of workflow going on. If you can't make it but still want to help, we might be able to work something out. We can give a limited number of people access to the sources beforehand, so we're limiting this to people who we think will give us feedback and not put our fledging book on an eastern european warez site (like all of my other books). You don't get the free pizza that way though. -- brian d foy http://www.pair.com/~comdog/ From lembark at wrkhors.com Sat Sep 19 10:52:40 2009 From: lembark at wrkhors.com (Steven Lembark) Date: Sat, 19 Sep 2009 13:52:40 -0400 Subject: [Chicago-talk] Free beer, free pizza, & Effective Perl Programming In-Reply-To: <2715accf0909170905tdc7da91hd1faf781eacc198e@mail.gmail.com> References: <2715accf0909170905tdc7da91hd1faf781eacc198e@mail.gmail.com> Message-ID: <20090919135240.07cca2d2lembark@wrkhors.com@wrkhors.com> On Thu, 17 Sep 2009 11:05:56 -0500 brian d foy wrote: If you can send, say, a PDF I'd be happy to read it. I'll even buy my own pizza :-) -- Steven Lembark 85-09 90th St. Workhorse Computing Woodhaven, NY, 11421 lembark at wrkhors.com +1 888 359 3508 From brian.d.foy at gmail.com Mon Sep 21 14:31:20 2009 From: brian.d.foy at gmail.com (brian d foy) Date: Mon, 21 Sep 2009 16:31:20 -0500 Subject: [Chicago-talk] [WindyCity-pm] Time for a Perl Mongers meeting? In-Reply-To: <874oqwaszy.fsf@bar.jrock.us> References: <49d805d70909162047s5c878229k3e447171f7442cae@mail.gmail.com> <874oqwaszy.fsf@bar.jrock.us> Message-ID: <2715accf0909211431i291acb2ctdcfc25ea89a0c646@mail.gmail.com> On Mon, Sep 21, 2009 at 4:27 PM, Jonathan Rockway wrote: > * On Wed, Sep 16 2009, Joshua wrote: >> Tuesday September 22nd is the 4th Tuesday of the month. ?Anyone up for >> a PM meeting? > > How about we skip the talks this month and just meet up for beer/food? Chris Nandor is going to be in town on Wednesday night. How about we do beer and food that night instead of Tuesday? He's staying at the W Hotel, so something near there would be good. I told him that I would meet him at 6:30ish. -- brian d foy http://www.pair.com/~comdog/ From jtk at depaul.edu Mon Sep 21 14:56:49 2009 From: jtk at depaul.edu (John Kristoff) Date: Mon, 21 Sep 2009 16:56:49 -0500 Subject: [Chicago-talk] [WindyCity-pm] Time for a Perl Mongers meeting? In-Reply-To: <2715accf0909211431i291acb2ctdcfc25ea89a0c646@mail.gmail.com> References: <49d805d70909162047s5c878229k3e447171f7442cae@mail.gmail.com> <874oqwaszy.fsf@bar.jrock.us> <2715accf0909211431i291acb2ctdcfc25ea89a0c646@mail.gmail.com> Message-ID: <20090921215649.GC407@condor.depaul.edu> On Mon, Sep 21, 2009 at 04:31:20PM -0500, brian d foy wrote: > Chris Nandor is going to be in town on Wednesday night. How about we > do beer and food that night instead of Tuesday? He's staying at the W > Hotel, so something near there would be good. I told him that I would > meet him at 6:30ish. I won't be able to make it at that time, but I'm very interested in brian's latest project. At the risk of hijacking the thread, if anyone wants to give a 30 min or so talk to some impressionable students related to the subect of Network Protocols, I think that would be great. See here for some background on the class: A few of them are hungry for some basic coding exposure, most don't have it, but they have a fairly decent grasp of TCP/IP (or should :-) so anything that could help them become more useful netadmin or netsec types would be of high value. I would definitely open for a beer or two after class if anyone can wait that long. John From joshua.mcadams at gmail.com Mon Sep 21 19:27:57 2009 From: joshua.mcadams at gmail.com (Joshua) Date: Mon, 21 Sep 2009 21:27:57 -0500 Subject: [Chicago-talk] [WindyCity-pm] Time for a Perl Mongers meeting? In-Reply-To: <874oqwaszy.fsf@bar.jrock.us> References: <49d805d70909162047s5c878229k3e447171f7442cae@mail.gmail.com> <874oqwaszy.fsf@bar.jrock.us> Message-ID: <49d805d70909211927n76e3b81bs972d1bb511fdca3b@mail.gmail.com> +1 on skipping the talks and just doing a social meetup. On Mon, Sep 21, 2009 at 4:27 PM, Jonathan Rockway wrote: > * On Wed, Sep 16 2009, Joshua wrote: >> Tuesday September 22nd is the 4th Tuesday of the month. ?Anyone up for >> a PM meeting? > > How about we skip the talks this month and just meet up for beer/food? > > (We could do Clark St. Ale House again, if that is OK with everyone > else.) > > Regards, > Jonathan Rockway > > -- > print just => another => perl => hacker => if $,=$" > From sean at blanton.com Mon Sep 21 19:38:44 2009 From: sean at blanton.com (Sean Blanton) Date: Mon, 21 Sep 2009 21:38:44 -0500 Subject: [Chicago-talk] [WindyCity-pm] Time for a Perl Mongers meeting? In-Reply-To: <49d805d70909211927n76e3b81bs972d1bb511fdca3b@mail.gmail.com> References: <49d805d70909162047s5c878229k3e447171f7442cae@mail.gmail.com> <874oqwaszy.fsf@bar.jrock.us> <49d805d70909211927n76e3b81bs972d1bb511fdca3b@mail.gmail.com> Message-ID: +1 on the wed beer/food meetup. Since Brian and Josh have something, no need to double up for a meeting.+1 on Clark St Ale House Still being tossed around in the wake of school starting - hope to make it. I volunteer to host the October meetup. On Mon, Sep 21, 2009 at 9:27 PM, Joshua wrote: > +1 on skipping the talks and just doing a social meetup. > > On Mon, Sep 21, 2009 at 4:27 PM, Jonathan Rockway wrote: > > * On Wed, Sep 16 2009, Joshua wrote: > >> Tuesday September 22nd is the 4th Tuesday of the month. Anyone up for > >> a PM meeting? > > > > How about we skip the talks this month and just meet up for beer/food? > > > > (We could do Clark St. Ale House again, if that is OK with everyone > > else.) > > > > Regards, > > Jonathan Rockway > > > > -- > > print just => another => perl => hacker => if $,=$" > > > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kent at c2group.net Mon Sep 21 20:11:49 2009 From: kent at c2group.net (Kent Cowgill) Date: Mon, 21 Sep 2009 22:11:49 -0500 Subject: [Chicago-talk] [WindyCity-pm] Time for a Perl Mongers meeting? In-Reply-To: <49d805d70909211927n76e3b81bs972d1bb511fdca3b@mail.gmail.com> References: <49d805d70909162047s5c878229k3e447171f7442cae@mail.gmail.com> <874oqwaszy.fsf@bar.jrock.us> <49d805d70909211927n76e3b81bs972d1bb511fdca3b@mail.gmail.com> Message-ID: <26EAAF14-B99F-45E7-A76F-9E24F9BBCAB1@c2group.net> I'm in favor of Wednesday this week, and I'm indifferent about having a talk. On Sep 21, 2009, at 9:27 PM, Joshua wrote: > +1 on skipping the talks and just doing a social meetup. > > On Mon, Sep 21, 2009 at 4:27 PM, Jonathan Rockway > wrote: >> * On Wed, Sep 16 2009, Joshua wrote: >>> Tuesday September 22nd is the 4th Tuesday of the month. Anyone up >>> for >>> a PM meeting? >> >> How about we skip the talks this month and just meet up for beer/ >> food? >> >> (We could do Clark St. Ale House again, if that is OK with everyone >> else.) >> >> Regards, >> Jonathan Rockway >> >> -- >> print just => another => perl => hacker => if $,=$" >> > _______________________________________________ > WindyCity-pm mailing list > WindyCity-pm at pm.org > http://mail.pm.org/mailman/listinfo/windycity-pm > From joshua.mcadams at gmail.com Tue Sep 22 08:53:10 2009 From: joshua.mcadams at gmail.com (Joshua) Date: Tue, 22 Sep 2009 10:53:10 -0500 Subject: [Chicago-talk] [WindyCity-pm] Time for a Perl Mongers meeting? In-Reply-To: References: <49d805d70909162047s5c878229k3e447171f7442cae@mail.gmail.com> <874oqwaszy.fsf@bar.jrock.us> <49d805d70909211927n76e3b81bs972d1bb511fdca3b@mail.gmail.com> Message-ID: <49d805d70909220853g296b9bedi7733a6061e2c7a9f@mail.gmail.com> Sounds like a plan. No meeting today. Social meeting tomorrow On Mon, Sep 21, 2009 at 9:38 PM, Sean Blanton wrote: > +1 on the wed beer/food meetup. Since Brian and Josh have something, no need > to double up for a meeting. > +1 on Clark St Ale House > > Still being tossed around in the wake of school starting - hope to make it. > I volunteer to host the October meetup. > > On Mon, Sep 21, 2009 at 9:27 PM, Joshua wrote: >> >> +1 on skipping the talks and just doing a social meetup. >> >> On Mon, Sep 21, 2009 at 4:27 PM, Jonathan Rockway wrote: >> > * On Wed, Sep 16 2009, Joshua wrote: >> >> Tuesday September 22nd is the 4th Tuesday of the month. ?Anyone up for >> >> a PM meeting? >> > >> > How about we skip the talks this month and just meet up for beer/food? >> > >> > (We could do Clark St. Ale House again, if that is OK with everyone >> > else.) >> > >> > Regards, >> > Jonathan Rockway >> > >> > -- >> > print just => another => perl => hacker => if $,=$" >> > >> _______________________________________________ >> Chicago-talk mailing list >> Chicago-talk at pm.org >> http://mail.pm.org/mailman/listinfo/chicago-talk > > > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > From brian.d.foy at gmail.com Tue Sep 22 09:26:29 2009 From: brian.d.foy at gmail.com (brian d foy) Date: Tue, 22 Sep 2009 11:26:29 -0500 Subject: [Chicago-talk] [WindyCity-pm] Time for a Perl Mongers meeting? In-Reply-To: <26EAAF14-B99F-45E7-A76F-9E24F9BBCAB1@c2group.net> References: <49d805d70909162047s5c878229k3e447171f7442cae@mail.gmail.com> <874oqwaszy.fsf@bar.jrock.us> <49d805d70909211927n76e3b81bs972d1bb511fdca3b@mail.gmail.com> <26EAAF14-B99F-45E7-A76F-9E24F9BBCAB1@c2group.net> Message-ID: <2715accf0909220926o24134c8fn286590273a497a6f@mail.gmail.com> Okay, I'm declaring that Clark Street Ale House on Wednesday at 7. I'll meet Chris at his hotel and get him there. For those that might not know Chris Nandor, he's the guy who runs Use.perl, which is a slashdot knockoff. He also works for Slashdot. :) He's the author of Mac::Carbon, has done a lot with MacPerl (you younguns probably never heard of it :), and lots of other Mac stuff. You may have seen him singing one of his songs for the CNN GOP debates From andy at petdance.com Tue Sep 22 09:58:08 2009 From: andy at petdance.com (Andy Lester) Date: Tue, 22 Sep 2009 11:58:08 -0500 Subject: [Chicago-talk] [WindyCity-pm] Time for a Perl Mongers meeting? In-Reply-To: <2715accf0909220926o24134c8fn286590273a497a6f@mail.gmail.com> References: <49d805d70909162047s5c878229k3e447171f7442cae@mail.gmail.com> <874oqwaszy.fsf@bar.jrock.us> <49d805d70909211927n76e3b81bs972d1bb511fdca3b@mail.gmail.com> <26EAAF14-B99F-45E7-A76F-9E24F9BBCAB1@c2group.net> <2715accf0909220926o24134c8fn286590273a497a6f@mail.gmail.com> Message-ID: On Sep 22, 2009, at 11:26 AM, brian d foy wrote: > For those that might not know Chris Nandor, he's the guy who runs > Use.perl, which is a slashdot knockoff. He also works for Slashdot. :) He's also just a swell guy in general. What's he in town for? xoa -- Andy Lester => andy at petdance.com => www.theworkinggeek.com => AIM:petdance From shlomif at iglu.org.il Wed Sep 23 01:55:00 2009 From: shlomif at iglu.org.il (Shlomi Fish) Date: Wed, 23 Sep 2009 11:55:00 +0300 Subject: [Chicago-talk] [WindyCity-pm] Time for a Perl Mongers meeting? In-Reply-To: <2715accf0909220926o24134c8fn286590273a497a6f@mail.gmail.com> References: <49d805d70909162047s5c878229k3e447171f7442cae@mail.gmail.com> <26EAAF14-B99F-45E7-A76F-9E24F9BBCAB1@c2group.net> <2715accf0909220926o24134c8fn286590273a497a6f@mail.gmail.com> Message-ID: <200909231155.00377.shlomif@iglu.org.il> On Tuesday 22 Sep 2009 19:26:29 brian d foy wrote: > Okay, I'm declaring that Clark Street Ale House on Wednesday at 7. > I'll meet Chris at his hotel and get him there. > > For those that might not know Chris Nandor, he's the guy who runs > Use.perl, which is a slashdot knockoff. He also works for Slashdot. :) > He's the author of Mac::Carbon, has done a lot with MacPerl (you > younguns probably never heard of it :), and lots of other Mac stuff. > You may have seen him singing one of his songs for the CNN GOP debates In case it's not too late for all of you to read it: 1. First of all, please thank Chris (a.k.a pudge) for his maintenance of Slashdot, Slash and use.perl.org as well as for his songs - two of which I have downloaded including the incredibly funny and original "Osama Bin Laden - You've Ruined My Birthday". 2. Can you ask Chris when he is going to revamp use.perl.org: http://perl.net.au/wiki/User:Shlomif/use.perl.org_Problems (Any additions are welcome). And other people may have voiced other concerns about use.perl.org on their use.perl.org blogs that may be found using some web searching. Right now many people have moved their blogs elsewhere and many more want to move them as well. I originally intended to set up a Drupal-based site for discussing Perl, but ended up deciding against this idea due to lack of motivation for constant maintenance of the site, and due to technical difficulties in Drupal (lack of backwards compatibility between versions, many plugins I needed not working, and other stuff like that.) Right now, Altreus and I have been working on http://www.ohloh.net/p/catable , which is a Catalyst-based blog engine similar to WordPress or MovableType. We've been making slow progress lately, but we're motivated to work on it. It's still not in a usable state, and git has been causing me tons of obscure problems which slowed me down considerably (and github has been very slow lately). But the proof of concept functionality is already there and I hope to move my blogging to a few Catable-based blogs soon. And, naturally, all contributions are welcome - feel free to fork/clone/etc. the github repository. Regards, Shlomi Fish -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ "The Human Hacking Field Guide" - http://shlom.in/hhfg Chuck Norris read the entire English Wikipedia in 24 hours. Twice. From michael at potter.name Thu Sep 24 12:09:31 2009 From: michael at potter.name (Michael Potter) Date: Thu, 24 Sep 2009 15:09:31 -0400 Subject: [Chicago-talk] automated creation of media wiki pages Message-ID: <2379dacc0909241209j2b8feccaj9dc0ad5faf3b7ca9@mail.gmail.com> Mongers, I have been called upon to create about 500 new media wiki pages on a company intranet. The information is tabled information; I know how to create media wiki markup for what I want. My question is: how can I automate the creation of the pages and the populating of the pages with my content? We chose media wiki because it is already setup. -- Michael Potter From andy at petdance.com Thu Sep 24 12:13:30 2009 From: andy at petdance.com (Andy Lester) Date: Thu, 24 Sep 2009 14:13:30 -0500 Subject: [Chicago-talk] automated creation of media wiki pages In-Reply-To: <2379dacc0909241209j2b8feccaj9dc0ad5faf3b7ca9@mail.gmail.com> References: <2379dacc0909241209j2b8feccaj9dc0ad5faf3b7ca9@mail.gmail.com> Message-ID: <5E54E5DB-6F39-4305-9C6C-BA5248FA54D7@petdance.com> On Sep 24, 2009, at 2:09 PM, Michael Potter wrote: > I have been called upon to create about 500 new media wiki pages on a > company intranet. I believe there's a tool for creating MediaWiki pages that comes with MediaWiki, maybe in the utility directory. Also, the mediawiki wiki is pretty well stocked on stuff like this. But you are certainly not the first person to have faced this. xo, Andy -- Andy Lester => andy at petdance.com => www.theworkinggeek.com => AIM:petdance From zrusilla at mac.com Thu Sep 24 12:17:29 2009 From: zrusilla at mac.com (Elizabeth Cortell) Date: Thu, 24 Sep 2009 12:17:29 -0700 Subject: [Chicago-talk] automated creation of media wiki pages In-Reply-To: <2379dacc0909241209j2b8feccaj9dc0ad5faf3b7ca9@mail.gmail.com> References: <2379dacc0909241209j2b8feccaj9dc0ad5faf3b7ca9@mail.gmail.com> Message-ID: <4ABBC5C9.7080600@mac.com> You're in luck. MediaWiki has an external API. You interact with it with values on the query string, and can receive output back in a number of handy formats. Here's some light bedside reading: http://en.wikipedia.org/wiki/Wikipedia:Creating_a_bot http://www.mediawiki.org/wiki/API Hope that's a start. Liz Michael Potter wrote: > Mongers, > > I have been called upon to create about 500 new media wiki pages on a > company intranet. > > The information is tabled information; I know how to create media wiki > markup for what I want. > > My question is: how can I automate the creation of the pages and the > populating of the pages with my content? > > We chose media wiki because it is already setup. > > From pcmantz at gmail.com Thu Sep 24 12:59:21 2009 From: pcmantz at gmail.com (Paul Mantz) Date: Thu, 24 Sep 2009 14:59:21 -0500 Subject: [Chicago-talk] automated creation of media wiki pages In-Reply-To: <4ABBC5C9.7080600@mac.com> References: <2379dacc0909241209j2b8feccaj9dc0ad5faf3b7ca9@mail.gmail.com> <4ABBC5C9.7080600@mac.com> Message-ID: <42f28fe0909241259g4970ab92n11ef21f0f00aedc1@mail.gmail.com> My company does something like this for formatting man pages for web (see http://wiki.zmanda.com/man/amanda.8.html) off of a subversion hook. I can ask our build manager how exactly he does this. On Thu, Sep 24, 2009 at 2:17 PM, Elizabeth Cortell wrote: > You're in luck. ?MediaWiki has an external API. ?You interact with it with > values on the query string, and can receive output back in a number of handy > formats. > > Here's some light bedside reading: > > http://en.wikipedia.org/wiki/Wikipedia:Creating_a_bot > http://www.mediawiki.org/wiki/API > > Hope that's a start. > > Liz > > > Michael Potter wrote: >> >> Mongers, >> >> I have been called upon to create about 500 new media wiki pages on a >> company intranet. >> >> The information is tabled information; I know how to create media wiki >> markup for what I want. >> >> My question is: how can I automate the creation of the pages and the >> populating of the pages with my content? >> >> We chose media wiki because it is already setup. >> >> > > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > -- Paul Mantz http://www.mcpantz.org BackupPC - Network Backup with De-Duplication http://www.backuppc.com Zmanda - Open source backup and recovery http://www.zmanda.com/ From jim.jacobus at gmail.com Wed Sep 30 11:28:22 2009 From: jim.jacobus at gmail.com (Jim Jacobus) Date: Wed, 30 Sep 2009 13:28:22 -0500 Subject: [Chicago-talk] Create PDF Recommendation Message-ID: <1864628e0909301128t5f676c2bs5f976334e0da45e8@mail.gmail.com> Can anyone recommend an easy way to create PDFs? I want to supply a report to customers as either a HTML for or PDF. File I am creating is simple, no graphics, single column, monospaced characters. I was going to use PDF-Create-1.04 , but with it I have to do a lot of work like keeping track of page breaks and such. I've done that before, but I was hoping there would be something easier since I can start with an HTML. Ideally, it would work like the print preview in the Firefox browser--in other words it would work like a print driver. Any ideas? Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at potter.name Wed Sep 30 18:05:49 2009 From: michael at potter.name (Michael Potter) Date: Wed, 30 Sep 2009 21:05:49 -0400 Subject: [Chicago-talk] Create PDF Recommendation In-Reply-To: <1864628e0909301128t5f676c2bs5f976334e0da45e8@mail.gmail.com> References: <1864628e0909301128t5f676c2bs5f976334e0da45e8@mail.gmail.com> Message-ID: <2379dacc0909301805l27bbcdfs4fbaa46a9e37b11b@mail.gmail.com> Jim, I have used a combination of these two tools to format mainframe print output into pdfs: psf by Tony Field and ps2pdf psf was a good choice for us because it has options to tell it how many columns and lines to put on each page and whether to output landscape of portrait. psf only outputs .ps, hence the need for ps2pdf to format it as a .pdf. This this page for links to those two tools: http://replatformtech.com/Services/Downloads/Downloads.html be aware that if you google for psf you will likely find a different sw package, so follow the link off the above page. -- Michael Potter On Wed, Sep 30, 2009 at 2:28 PM, Jim Jacobus wrote: > Can anyone recommend an easy way to create PDFs? I want to supply a report > to customers as either a HTML for or PDF. File I am creating is simple, no > graphics, single column, monospaced characters. > I was going to use PDF-Create-1.04 , but with it I have to do a lot of work > like keeping track of page breaks and such. I've done that before, but I was > hoping there would be something easier since I can start with an HTML. > Ideally, it would work like the print preview in the Firefox browser--in > other words it would work like a print driver. Any ideas? Thanks in advance. > > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > From leland at protoplasmic.org Wed Sep 30 18:33:34 2009 From: leland at protoplasmic.org (Leland Johnson) Date: Wed, 30 Sep 2009 18:33:34 -0700 Subject: [Chicago-talk] Create PDF Recommendation Message-ID: If it's just monospace plain text, you'd be best off starting with that instead of the HTML. enscript does a decent job of outputting monospace text to postscript. Use pstopdf or an equivalent to get the postscript to PDF. You can also customize enscript's header and footer extensively, or just use --fancy-header. I've looked into making PDFs in Perl a while ago and discovered two options: layout the content yourself with a module, or shell out to something that does coversion for you. LaTeX, subpar HTML -> PDF converters, etc. Things might have changed by now; a converter based on WebKit would be worth investigating. From the shell: enscript --header "The Novel" --output - novel.txt | ps2pdf - novel.pdf In Perl: use strict; use warnings; use IPC::Run (); my $content = "All work and no play make Jack a dull boy.\n" x 100; my $header = 'The Novel'; my $pdf; my $enscript_cmd = ['enscript', '--header', $header, '--output', '-']; my $ps2pdf_cmd = ['ps2pdf', '-', '-']; IPC::Run::run($enscript_cmd, \$content, '|', $ps2pdf_cmd, \$pdf); print $pdf; Leland Johnson On Sep 30, 2009, at 11:28 AM, Jim Jacobus wrote: > Can anyone recommend an easy way to create PDFs? I want to supply a > report to customers as either a HTML for or PDF. File I am creating > is simple, no graphics, single column, monospaced characters. > I was going to use PDF-Create-1.04 , but with it I have to do a lot > of work like keeping track of page breaks and such. I've done that > before, but I was hoping there would be something easier since I can > start with an HTML. Ideally, it would work like the print preview in > the Firefox browser--in other words it would work like a print > driver. Any ideas? Thanks in advance. > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk