From NStowe at TheTTGroup.com Thu Dec 1 07:44:04 2005 From: NStowe at TheTTGroup.com (Stowe, Nola) Date: Thu, 1 Dec 2005 09:44:04 -0600 Subject: [Chicago-talk] Perl IDE Message-ID: I'm an Ultra-Edit fan as well. Very handy. The studio version has some nice features. I wrote up an review/comparison between UltraEdit and UltraEdit Studio at http://codesnipers.com/?q=node/50&&title=Software-Review:-UltraEdit-11-and-U ltraEdit-Studio-5 I do mainly PHP (Yeah yeah, Andy is working on converting me) so I don't know if the features I highlighted for PHP would also apply to perl. -----Original Message----- From: Joshua McAdams [mailto:joshua.mcadams at gmail.com] Sent: Wednesday, November 30, 2005 8:30 PM To: Chicago.pm chatter Subject: Re: [Chicago-talk] Perl IDE > My entire Perl life (10 years now), I've been using vim for editing my perl programs. > It's fair to say I've written a million lines of perl code in vim. > Though I love vim, I don't want to be missing out on things that could > make my life easier. I'm wondering, what do you use for your Perl IDE? > > I've recently started looking at Komodo, Eclipse, and Xcode. Any > thumbs up or down on those? Any pointers in other directions? When on windows, I use UltraEdit. Decent syntax highlighting, SFTP save-as, etc. I think that it's only $35, so it's not too pricey. _______________________________________________ Chicago-talk mailing list Chicago-talk at pm.org http://mail.pm.org/mailman/listinfo/chicago-talk <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> The information in this email and any attachments may contain confidential information that is intended solely for the attention and use of the named addressee(s). This message or any part thereof must not be disclosed, copied, distributed or retained by any person without authorization from the addressee. If you are not the intended addressee, please notify the sender immediately, and delete this message. <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> From Andy_Bach at wiwb.uscourts.gov Thu Dec 1 07:59:28 2005 From: Andy_Bach at wiwb.uscourts.gov (Andy_Bach@wiwb.uscourts.gov) Date: Thu, 1 Dec 2005 09:59:28 -0600 Subject: [Chicago-talk] Perl IDE In-Reply-To: Message-ID: Oh geez, that was worse than I thought - again, my apologies. a Andy Bach, Sys. Mangler Internet: andy_bach at wiwb.uscourts.gov VOICE: (608) 261-5738 FAX 264-5932 "yeah, but does it have a cute little puppy that wags it's tail and scampers around on the screen?" BillG on linux From gdf at speakeasy.net Thu Dec 1 08:08:49 2005 From: gdf at speakeasy.net (Greg Fast) Date: Thu, 1 Dec 2005 10:08:49 -0600 Subject: [Chicago-talk] Perl IDE In-Reply-To: <86u0dto6u3.fsf@blue.stonehenge.com> References: <86u0dto6u3.fsf@blue.stonehenge.com> Message-ID: <20051201100849.A26626@speakeasy.net> On Wed, Nov 30, 2005 at 07:05:08PM -0800, Randal L. Schwartz wrote: > GNU Emacs. +1 on the emacs, the only editor I'm productive in for Perl hacking. I tried out Eclipse's EPIC for a while (since I use it for Java dev -- it has excellent emacs keybindings :). It was pretty impressive, but I was stymied by some annoying @INC issues. But that was for a weirdly structured mixed-language project, and probably isn't representational. Both emacs and eclipse are cross-platform, fwiw. -- Greg Fast gdf at speakeasy.net http://cken.chi.groogroo.com/ From jt at plainblack.com Thu Dec 1 08:47:21 2005 From: jt at plainblack.com (JT Smith) Date: Thu, 01 Dec 2005 10:47:21 -0600 Subject: [Chicago-talk] Perl IDE In-Reply-To: <20051201100849.A26626@speakeasy.net> References: <86u0dto6u3.fsf@blue.stonehenge.com> <20051201100849.A26626@speakeasy.net> Message-ID: > I tried out Eclipse's EPIC for a while (since I use it for Java dev -- > it has excellent emacs keybindings :). It was pretty impressive, but I > was stymied by some annoying @INC issues. But that was for a weirdly > structured mixed-language project, and probably isn't representational. I tried epic but it kept crashing Eclipse. I'm not sure if it's because I was using Eclipse 3.1 and EPIC hasn't put out a release in more than a year so there were incompatibilites or what. So far I think that Komodo is pretty much the big winner, except vim of course. I'm going to try to force myself to use Komodo for a week, but it's so hard since I'm so used to vim. =) And Emacs is for losers. =) Just kidding. JT ~ Plain Black ph: 703-286-2525 ext. 810 fax: 312-264-5382 http://www.plainblack.com I reject your reality, and substitute my own. ~ Adam Savage From warren at warrenandrachel.com Thu Dec 1 09:36:25 2005 From: warren at warrenandrachel.com (warren@warrenandrachel.com) Date: Thu, 1 Dec 2005 11:36:25 -0600 (CST) Subject: [Chicago-talk] Perl IDE In-Reply-To: References: <86u0dto6u3.fsf@blue.stonehenge.com> <20051201100849.A26626@speakeasy.net> Message-ID: <32928.68.74.148.27.1133458585.squirrel@68.74.148.27> Vim + taglist.vim (http://www.vim.org/scripts/script.php?script_id=273) + compiler/perl.vim (:so compiler/perl.vim) + syntax-based folding (:set perl_fold) + basic windowing commands (:sp, ) = reasonable decent perl IDE that can be run locally or on remote servers (I'm really big on that one). From troy at whadda.com Thu Dec 1 12:45:14 2005 From: troy at whadda.com (Troy Denkinger) Date: Thu, 01 Dec 2005 14:45:14 -0600 Subject: [Chicago-talk] Perl IDE In-Reply-To: References: <86u0dto6u3.fsf@blue.stonehenge.com> <20051201100849.A26626@speakeasy.net> Message-ID: <438F60DA.9060105@whadda.com> JT Smith wrote: >I tried epic but it kept crashing Eclipse. I'm not sure if it's because I was using >Eclipse 3.1 and EPIC hasn't put out a release in more than a year so there were >incompatibilites or what. > No problems with latest Eclipse and EPIC 0.3.12, which is the latest "testing" release. It's been at least as stable as UltraEdit, which was my prior editor of choice. As an all-purpose editor, Eclipse is not a good choice, but for an IDE feel on Projects, it has what I need without getting in my way. It's obvious, I'm sure, that my primary work is done on Windows. I like vim, I really do. And I'm sure I'd love to code in it once I bothered to get over the learning hump. Regards, Troy From shawn.c.carroll at gmail.com Thu Dec 1 14:31:21 2005 From: shawn.c.carroll at gmail.com (Shawn Carroll) Date: Thu, 1 Dec 2005 16:31:21 -0600 Subject: [Chicago-talk] Perl IDE In-Reply-To: <438F60DA.9060105@whadda.com> References: <86u0dto6u3.fsf@blue.stonehenge.com> <20051201100849.A26626@speakeasy.net> <438F60DA.9060105@whadda.com> Message-ID: On 12/1/05, Troy Denkinger wrote: > JT Smith wrote: > > >I tried epic but it kept crashing Eclipse. I'm not sure if it's because I was using > >Eclipse 3.1 and EPIC hasn't put out a release in more than a year so there were > >incompatibilites or what. > > > No problems with latest Eclipse and EPIC 0.3.12, which is the latest > "testing" release. It's been at least as stable as UltraEdit, which was > my prior editor of choice. As an all-purpose editor, Eclipse is not a > good choice, but for an IDE feel on Projects, it has what I need without > getting in my way. It's obvious, I'm sure, that my primary work is done > on Windows. > > I like vim, I really do. And I'm sure I'd love to code in it once I > bothered to get over the learning hump. > > Regards, > > Troy I've been using Eclipse/EPIC for over a year now and realy have come to love it. At work, I've got a plug in to the Clearcase repository, built in testing, everything I need. At home, svs and more testing. When the fast fix is need, vim. -- shawn.c.carroll at gmail.com Perl Programmer Soccer Referee From richard at rushlogistics.com Fri Dec 2 07:09:18 2005 From: richard at rushlogistics.com (Richard Reina) Date: Fri, 2 Dec 2005 07:09:18 -0800 (PST) Subject: [Chicago-talk] Anyone help installing a perl module? In-Reply-To: Message-ID: <20051202150918.39347.qmail@web407.biz.mail.mud.yahoo.com> Andy or any charitable soul who will come to my aid. I am having the problem below again. I don't know what to set lib_gd_path to. #find / -name GD.so -print gives me: /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/GD/GD.so /usr/local/src/rushclient/i386-linux-thread/auto/GD/GD.so Any help would be greatly appreciated. Andy Lester wrote: > It compiles perfect but blows up at make test. That's because the compilation doesn't actually load the library to use. It's the test that tries to pull it in. Here's how we build it on our dev server: alester at blitz[/usr/src]$ cat config.GD #!/bin/sh perl Makefile.PL -lib_gd_path="/usr/local/lib" -options="PNG" If you don't keep configs in a config.whatever file in your /usr/src directory, do so. You WILL need them again. xoa -- Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance _______________________________________________ Chicago-talk mailing list Chicago-talk at pm.org http://mail.pm.org/mailman/listinfo/chicago-talk A people that values its privileges above its principles soon loses both. -Dwight D. Eisenhower. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/chicago-talk/attachments/20051202/68e256cb/attachment.html From frag at ripco.com Fri Dec 2 07:09:52 2005 From: frag at ripco.com (Mike Fragassi) Date: Fri, 2 Dec 2005 09:09:52 -0600 (CST) Subject: [Chicago-talk] YAPC is now Tasteless Message-ID: I just saw in the news that the city has issued the events calendar for 2006: http://egov.cityofchicago.org/city/webportal/portalContentItemAction.do?BV_SessionID=@@@@0129516879.1133535517@@@@&BV_EngineID=cccdaddgggfifehcefecelldffhdffn.0&contentOID=536928551&contenTypeName=COC_EDITORIAL&topChannelName=HomePage The Taste of Chicago now starts June 30th, after YAPC. -- Mike F. P.S. I use Xemacs, on Windows as well as *nix, thanks to Cygwin. From andy at petdance.com Fri Dec 2 07:33:08 2005 From: andy at petdance.com (Andy Lester) Date: Fri, 2 Dec 2005 09:33:08 -0600 Subject: [Chicago-talk] Anyone help installing a perl module? In-Reply-To: <20051202150918.39347.qmail@web407.biz.mail.mud.yahoo.com> References: <20051202150918.39347.qmail@web407.biz.mail.mud.yahoo.com> Message-ID: <20051202153308.GC5709@petdance.com> On Fri, Dec 02, 2005 at 07:09:18AM -0800, Richard Reina (richard at rushlogistics.com) wrote: > Andy or any charitable soul who will come to my aid. I am having the problem below again. I don't know what to set lib_gd_path to. It looks like you haven't installed the GD lib. GD.pm is just an interface to that library. xoa -- Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance From tigerpeng2001 at yahoo.com Fri Dec 2 07:35:54 2005 From: tigerpeng2001 at yahoo.com (tiger peng) Date: Fri, 2 Dec 2005 07:35:54 -0800 (PST) Subject: [Chicago-talk] laptop, which brand is good. In-Reply-To: Message-ID: <20051202153554.48507.qmail@web54714.mail.yahoo.com> Hello, I'd like to buy a laptop with Windows XP prof.. Is there any suggestion? I used IBM thinkpad provided by my former employers or clients. It looks like that the commercial companies like to use it, but no retailer carry it. Why? Also, I like the laptop can talk with my Linux (Fedora) desktop. Is there DIY instructions? Thanks, From brian.jameson at pksi.com Fri Dec 2 08:00:07 2005 From: brian.jameson at pksi.com (Brian Jameson) Date: Fri, 02 Dec 2005 10:00:07 -0600 Subject: [Chicago-talk] laptop, which brand is good. In-Reply-To: <20051202153554.48507.qmail@web54714.mail.yahoo.com> References: <20051202153554.48507.qmail@web54714.mail.yahoo.com> Message-ID: <7.0.0.10.0.20051202095905.021f7dc0@pksi.com> I've had good luck with Toshiba and Panasonic ToughBook. At 09:35 AM 12/2/2005 Friday, you wrote: >Hello, > >I'd like to buy a laptop with Windows XP prof.. Is >there any suggestion? > >I used IBM thinkpad provided by my former employers or >clients. It looks like that the commercial companies >like to use it, but no retailer carry it. Why? > >Also, I like the laptop can talk with my Linux >(Fedora) desktop. Is there DIY instructions? > >Thanks, >_______________________________________________ >Chicago-talk mailing list >Chicago-talk at pm.org >http://mail.pm.org/mailman/listinfo/chicago-talk > > > >-- >No virus found in this incoming message. >Checked by AVG Anti-Virus. >Version: 7.1.362 / Virus Database: 267.13.10/190 - Release Date: 12/1/2005 Brian Jameson Pegasus Knowledge Solutions, Inc. www.pksi.com brian.jameson at pksi.com Office: 312-252-7314 Cell: 847-833-8433 Fax: 847-995-1111 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.362 / Virus Database: 267.13.10/190 - Release Date: 12/1/2005 From ijavaid at usa.net Fri Dec 2 08:09:13 2005 From: ijavaid at usa.net (Imran Javaid) Date: Fri, 02 Dec 2005 10:09:13 -0600 Subject: [Chicago-talk] laptop, which brand is good. Message-ID: <763JLBP6f3392S14.1133539753@uwdvg007.cms.usa.net> When it comes to brands, there are several decent (mail-order) brands to choose from (Dell, IBM, Panasonic). Mail-order works better. You get better selection through customization. I would stay away from brick and mortar stores since those are consumer oriented mostly. Make sure the warranty is a good one, unless you are good at repairing laptops. Which laptop to go with depends on your preferences: screen size, performance, weight, style. Personally, I've been using Sony laptop with a 16" screen. I just like working in 1600x1200 res. Do not go with anything less than 512MB RAM. Windows sure becomes slow over time, and the extra memory helps. When connecting to a linux desktop, use Cygwin (and Cygwin-X). Its not too hard to get it working if you follow the instructions. You can run your X-windows apps from your laptop easily with that. Imran ------ Original Message ------ Received: Fri, 02 Dec 2005 09:36:24 AM CST From: tiger peng To: "Chicago.pm chatter" Subject: [Chicago-talk] laptop, which brand is good. > Hello, > > I'd like to buy a laptop with Windows XP prof.. Is > there any suggestion? > > I used IBM thinkpad provided by my former employers or > clients. It looks like that the commercial companies > like to use it, but no retailer carry it. Why? > > Also, I like the laptop can talk with my Linux > (Fedora) desktop. Is there DIY instructions? > > Thanks, > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > From steve at fisharerojo.org Fri Dec 2 10:07:54 2005 From: steve at fisharerojo.org (Steve Peters) Date: Fri, 2 Dec 2005 12:07:54 -0600 Subject: [Chicago-talk] Anyone help installing a perl module? In-Reply-To: <20051202150918.39347.qmail@web407.biz.mail.mud.yahoo.com> References: <20051202150918.39347.qmail@web407.biz.mail.mud.yahoo.com> Message-ID: <20051202180754.GA14268@mccoy.peters.homeunix.org> On Fri, Dec 02, 2005 at 07:09:18AM -0800, Richard Reina wrote: > Andy or any charitable soul who will come to my aid. I am having the problem below again. I don't know what to set lib_gd_path to. > > #find / -name GD.so -print > Try: find / -name "libgd.so*" -print Steve Peters steve at fisharerojo.org From tigerpeng2001 at yahoo.com Fri Dec 2 11:08:45 2005 From: tigerpeng2001 at yahoo.com (tiger peng) Date: Fri, 2 Dec 2005 11:08:45 -0800 (PST) Subject: [Chicago-talk] laptop, which brand is good. In-Reply-To: <7.0.0.10.0.20051202095905.021f7dc0@pksi.com> Message-ID: <20051202190845.77488.qmail@web54702.mail.yahoo.com> I will begin a new short term contract project in Walgreen at Deerfield. When you get chance, stop by and have a cup of coffee around there. Ge --- Brian Jameson wrote: > I've had good luck with Toshiba and Panasonic > ToughBook. > > At 09:35 AM 12/2/2005 Friday, you wrote: > > >Hello, > > > >I'd like to buy a laptop with Windows XP prof.. Is > >there any suggestion? > > > >I used IBM thinkpad provided by my former employers > or > >clients. It looks like that the commercial > companies > >like to use it, but no retailer carry it. Why? > > > >Also, I like the laptop can talk with my Linux > >(Fedora) desktop. Is there DIY instructions? > > > >Thanks, > >_______________________________________________ > >Chicago-talk mailing list > >Chicago-talk at pm.org > >http://mail.pm.org/mailman/listinfo/chicago-talk > > > > > > > >-- > >No virus found in this incoming message. > >Checked by AVG Anti-Virus. > >Version: 7.1.362 / Virus Database: 267.13.10/190 - > Release Date: 12/1/2005 > > > Brian Jameson > Pegasus Knowledge Solutions, Inc. > www.pksi.com > brian.jameson at pksi.com > Office: 312-252-7314 > Cell: 847-833-8433 > Fax: 847-995-1111 > > > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.1.362 / Virus Database: 267.13.10/190 - > Release Date: 12/1/2005 > > > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > From tigerpeng2001 at yahoo.com Fri Dec 2 11:09:07 2005 From: tigerpeng2001 at yahoo.com (tiger peng) Date: Fri, 2 Dec 2005 11:09:07 -0800 (PST) Subject: [Chicago-talk] laptop, which brand is good. In-Reply-To: <7.0.0.10.0.20051202095905.021f7dc0@pksi.com> Message-ID: <20051202190907.28436.qmail@web54706.mail.yahoo.com> --- Brian Jameson wrote: > I've had good luck with Toshiba and Panasonic > ToughBook. > > At 09:35 AM 12/2/2005 Friday, you wrote: > > >Hello, > > > >I'd like to buy a laptop with Windows XP prof.. Is > >there any suggestion? > > > >I used IBM thinkpad provided by my former employers > or > >clients. It looks like that the commercial > companies > >like to use it, but no retailer carry it. Why? > > > >Also, I like the laptop can talk with my Linux > >(Fedora) desktop. Is there DIY instructions? > > > >Thanks, > >_______________________________________________ > >Chicago-talk mailing list > >Chicago-talk at pm.org > >http://mail.pm.org/mailman/listinfo/chicago-talk > > > > > > > >-- > >No virus found in this incoming message. > >Checked by AVG Anti-Virus. > >Version: 7.1.362 / Virus Database: 267.13.10/190 - > Release Date: 12/1/2005 > > > Brian Jameson > Pegasus Knowledge Solutions, Inc. > www.pksi.com > brian.jameson at pksi.com > Office: 312-252-7314 > Cell: 847-833-8433 > Fax: 847-995-1111 > > > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.1.362 / Virus Database: 267.13.10/190 - > Release Date: 12/1/2005 > > > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > From tigerpeng2001 at yahoo.com Fri Dec 2 11:11:52 2005 From: tigerpeng2001 at yahoo.com (tiger peng) Date: Fri, 2 Dec 2005 11:11:52 -0800 (PST) Subject: [Chicago-talk] laptop, which brand is good. In-Reply-To: <20051202190845.77488.qmail@web54702.mail.yahoo.com> Message-ID: <20051202191153.54219.qmail@web54708.mail.yahoo.com> Sorry to bother every one. I just wanted to send Brain only. --- tiger peng wrote: > > I will begin a new short term contract project in > Walgreen at Deerfield. > > When you get chance, stop by and have a cup of > coffee > around there. > > Ge > > --- Brian Jameson wrote: > > > I've had good luck with Toshiba and Panasonic > > ToughBook. > > > > At 09:35 AM 12/2/2005 Friday, you wrote: > > > > >Hello, > > > > > >I'd like to buy a laptop with Windows XP prof.. > Is > > >there any suggestion? > > > > > >I used IBM thinkpad provided by my former > employers > > or > > >clients. It looks like that the commercial > > companies > > >like to use it, but no retailer carry it. Why? > > > > > >Also, I like the laptop can talk with my Linux > > >(Fedora) desktop. Is there DIY instructions? > > > > > >Thanks, > > >_______________________________________________ > > >Chicago-talk mailing list > > >Chicago-talk at pm.org > > >http://mail.pm.org/mailman/listinfo/chicago-talk > > > > > > > > > > > >-- > > >No virus found in this incoming message. > > >Checked by AVG Anti-Virus. > > >Version: 7.1.362 / Virus Database: 267.13.10/190 > - > > Release Date: 12/1/2005 > > > > > > Brian Jameson > > Pegasus Knowledge Solutions, Inc. > > www.pksi.com > > brian.jameson at pksi.com > > Office: 312-252-7314 > > Cell: 847-833-8433 > > Fax: 847-995-1111 > > > > > > -- > > No virus found in this outgoing message. > > Checked by AVG Anti-Virus. > > Version: 7.1.362 / Virus Database: 267.13.10/190 - > > Release Date: 12/1/2005 > > > > > > _______________________________________________ > > 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 richard at rushlogistics.com Fri Dec 2 14:12:40 2005 From: richard at rushlogistics.com (Richard Reina) Date: Fri, 2 Dec 2005 14:12:40 -0800 (PST) Subject: [Chicago-talk] Anyone help installing a perl module? In-Reply-To: <20051202180754.GA14268@mccoy.peters.homeunix.org> Message-ID: <20051202221240.3015.qmail@web402.biz.mail.mud.yahoo.com> Steve, Thanks for the reply. I finally got it solved. Steve Peters wrote: On Fri, Dec 02, 2005 at 07:09:18AM -0800, Richard Reina wrote: > Andy or any charitable soul who will come to my aid. I am having the problem below again. I don't know what to set lib_gd_path to. > > #find / -name GD.so -print > Try: find / -name "libgd.so*" -print Steve Peters steve at fisharerojo.org _______________________________________________ Chicago-talk mailing list Chicago-talk at pm.org http://mail.pm.org/mailman/listinfo/chicago-talk A people that values its privileges above its principles soon loses both. -Dwight D. Eisenhower. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/chicago-talk/attachments/20051202/c8ddfdde/attachment.html From amead at alanmead.org Sun Dec 4 06:50:43 2005 From: amead at alanmead.org (Alan Mead) Date: Sun, 04 Dec 2005 08:50:43 -0600 Subject: [Chicago-talk] Perl IDE In-Reply-To: References: Message-ID: <43930243.40108@alanmead.org> JT, I use vim on Linux or Cygwin and I love it... the syntax highlighting isn't glitch-free but it's good enough to be very helpful. I print using 'enscript -G2rE' which has pretty good Perl syntax highlighting. But I'm completely biased towards the Unix approach of making your own, not-so-integrated "IDE" by using your favorite stand-alone tools... I don't know how much you've already tweaked vim but of course it has so much flexibility and you're already familiar with it ... so optimizing that path might be the best. But I evaluated Komodo to see if I could recommend it for my Windows-centric friends. I think it would be helpful, at the least, in shielding Windows users from using the crippled (IMHO) DOS command line. And I'm sure there are a lot of programmers out there who feel as strongly about IDE's as I do about the "Unix approach". But I'm not convinced that these are always (or generally) big time-savers. -Alan JT Smith wrote: >My entire Perl life (10 years now), I've been using vim for editing my perl programs. >It's fair to say I've written a million lines of perl code in vim. Though I love vim, I >don't want to be missing out on things that could make my life easier. I'm wondering, >what do you use for your Perl IDE? > >I've recently started looking at Komodo, Eclipse, and Xcode. Any thumbs up or down on >those? Any pointers in other directions? > >JT ~ Plain Black >ph: 703-286-2525 ext. 810 >fax: 312-264-5382 >http://www.plainblack.com > >I reject your reality, and substitute my own. ~ Adam Savage >_______________________________________________ >Chicago-talk mailing list >Chicago-talk at pm.org >http://mail.pm.org/mailman/listinfo/chicago-talk > > From adam at jamradar.com Sun Dec 4 21:59:05 2005 From: adam at jamradar.com (Adam) Date: Sun, 4 Dec 2005 23:59:05 -0600 Subject: [Chicago-talk] laptop, which brand is good. References: <20051202153554.48507.qmail@web54714.mail.yahoo.com> Message-ID: <001301c5f961$02e96000$0200a8c0@PANASONIULSWMR> I really like my Panasonic Toughbook. I've had mine for 3 years and it works great. My company uses them and nonone has had any real issues. ----- Original Message ----- From: "tiger peng" To: "Chicago.pm chatter" Sent: Friday, December 02, 2005 9:35 AM Subject: [Chicago-talk] laptop, which brand is good. > Hello, > > I'd like to buy a laptop with Windows XP prof.. Is > there any suggestion? > > I used IBM thinkpad provided by my former employers or > clients. It looks like that the commercial companies > like to use it, but no retailer carry it. Why? > > Also, I like the laptop can talk with my Linux > (Fedora) desktop. Is there DIY instructions? > > Thanks, > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk From andy at petdance.com Tue Dec 6 07:28:19 2005 From: andy at petdance.com (Andy Lester) Date: Tue, 6 Dec 2005 09:28:19 -0600 Subject: [Chicago-talk] Announcing the Perl Foundation Blog Message-ID: <20051206152819.GC25583@petdance.com> The Perl Foundation was established in December 2001, but is a mystery to many people. Today we announce The Perl Foundation Blog at blog.perlfoundation.org. See the blog site for more! xoxo, Andy -- Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance From jason at multiply.org Tue Dec 6 07:48:27 2005 From: jason at multiply.org (Jason Gessner) Date: Tue, 6 Dec 2005 09:48:27 -0600 Subject: [Chicago-talk] Open Source Dynamic Language Holiday Bash? Message-ID: Hi All. What do you think about having a nice big happy cross language social event next week or early the following week? Monk's @ lake & wells was thrown out as an idea, but any place should be fine. John, could you pass this on to the ruby group as well? Thoughts? -jason gessner jason at multiply.org From lembark at wrkhors.com Tue Dec 6 09:10:38 2005 From: lembark at wrkhors.com (Steven Lembark) Date: Tue, 06 Dec 2005 12:10:38 -0500 Subject: [Chicago-talk] laptop, which brand is good. In-Reply-To: <763JLBP6f3392S14.1133539753@uwdvg007.cms.usa.net> References: <763JLBP6f3392S14.1133539753@uwdvg007.cms.usa.net> Message-ID: <4FAF8199934ADBC3657A466B@duke.wrkhors.com> -- Imran Javaid > When it comes to brands, there are several decent (mail-order) brands to > choose from (Dell, IBM, Panasonic). Mail-order works better. You get > better selection through customization. I would stay away from brick and > mortar stores since those are consumer oriented mostly. As a linux user, from now on I'll avoid Dell like the Plague. As they've grown, Dell has followed the same path as Compaq: designing mostly-custom hardware that doesn't have out-of-the-box support from anyone but themselves. As the hardware gets more proprietary even people I know running windows have probelms with it. > When connecting to a linux desktop, use Cygwin (and Cygwin-X). Its not too > hard to get it working if you follow the instructions. You can run your > X-windows apps from your laptop easily with that. Apple makes excellent hardware -- even better if you don't plan to run linux on it :-) I picked up a Dell I8600 for the screen but for a "portable desktop" Apple has larger, cleaner screens with rather nice keyboards availble for decent prices these days. If you are using the thing on-site for a multi-month gig (what I use my machine for) then size is less of an issue than if you haul it to work every day (or home on the plane every week). At that point I'd go for the best-looking screen and cleanest-feeling keyboard/pointer: they are what you really use. -- Steven Lembark 85-09 90th Street Workhorse Computing Woodhaven, NY 11421 lembark at wrkhors.com 1 888 359 3508 From tigerpeng2001 at yahoo.com Tue Dec 6 09:37:15 2005 From: tigerpeng2001 at yahoo.com (tiger peng) Date: Tue, 6 Dec 2005 09:37:15 -0800 (PST) Subject: [Chicago-talk] laptop, which brand is good. In-Reply-To: <4FAF8199934ADBC3657A466B@duke.wrkhors.com> Message-ID: <20051206173715.20309.qmail@web54713.mail.yahoo.com> Thanks everyone for the information. I planed to buy a thinkpad, as I used it for a long time. However, the price they list online just confused me. I called the salesman, and got a different price. I really fell uncomfortable to do the deal with them. I went to CDW http://www.cdw.com/webcontent/land/page/q4savenow.asp; and chose "Acer TM4062WLMi", I hope it is a right choice. Ge --- Steven Lembark wrote: > > > -- Imran Javaid > > > When it comes to brands, there are several decent > (mail-order) brands to > > choose from (Dell, IBM, Panasonic). Mail-order > works better. You get > > better selection through customization. I would > stay away from brick and > > mortar stores since those are consumer oriented > mostly. > > As a linux user, from now on I'll avoid Dell like > the > Plague. As they've grown, Dell has followed the same > path as Compaq: designing mostly-custom hardware > that > doesn't have out-of-the-box support from anyone but > themselves. As the hardware gets more proprietary > even > people I know running windows have probelms with it. > > > When connecting to a linux desktop, use Cygwin > (and Cygwin-X). Its not too > > hard to get it working if you follow the > instructions. You can run your > > X-windows apps from your laptop easily with that. > > Apple makes excellent hardware -- even better if you > don't plan to run linux on it :-) I picked up a Dell > > I8600 for the screen but for a "portable desktop" > Apple has larger, cleaner screens with rather nice > keyboards availble for decent prices these days. > > If you are using the thing on-site for a multi-month > gig (what I use my machine for) then size is less of > > an issue than if you haul it to work every day (or > home on the plane every week). At that point I'd go > for the best-looking screen and cleanest-feeling > keyboard/pointer: they are what you really use. > > > -- > Steven Lembark > 85-09 90th Street > Workhorse Computing > Woodhaven, NY 11421 > lembark at wrkhors.com > 1 888 359 3508 > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > From Andy_Bach at wiwb.uscourts.gov Tue Dec 6 10:42:14 2005 From: Andy_Bach at wiwb.uscourts.gov (Andy_Bach@wiwb.uscourts.gov) Date: Tue, 6 Dec 2005 12:42:14 -0600 Subject: [Chicago-talk] "Higher Order Perl" example question (page 191) Message-ID: Hey folks, Sent this to MJD but he's off in London so ... in the iterator/web spider section, he building up various web page 'walking' iterators. traverse() returns an "Iterator" . Originally the IT creator just took a list of URLs, which it put in a queue. 'kicking' (his term for doing a 'NEXTVAL' on an iterator) the iterator too the first URL off the queue, pushed any URLs it contained (if it is of content-type text/html) on the queue and returned the URL. He then adds a callback as the first param to the traverse() IT generator. This is to let the URL only return 'interesting' (passed by the callback sub) URLs something like: my $top = 'http://perl.plover.com/'; my $interesting = sub { grep /^\Q$top/o, @_ }; and so you'd create a new IT by: my $urls = traverse($interesting, $top); The change to the traverse() sub is: sub traverse { my $interesting_links = sub { @_ }; $interesting_links = shift if ref $_[0] eq 'CODE'; .... push @queue, $interesting_links->(get_links($url, $html)); ## used to be # push @queue, (get_links($url, $html); so, if I *don't* pass a sub ref as the first param, $interesting_links will be a ref to a sub of the list of URLs? How is that going to work w/ get_links()? ... ahh, that's wrong. $interesting_links will be a ref to a sub that returns its own '@_', that is, the URLs returned by get_links() if there's no passed-in call back. I was confused on when that @_ was going to be ... used? invoked? something. Never mind ;-> it is a very interesting book. Its a bit (at page 191) all over the place, but all the places are quite useful and informative, so far. Not easy, by any means, this is not the first example I've had got back over and try and figure out how what he says has happened actually got implemented. That is probably a good thing. a Andy Bach, Sys. Mangler Internet: andy_bach at wiwb.uscourts.gov VOICE: (608) 261-5738 FAX 264-5932 "yeah, but does it have a cute little puppy that wags it's tail and scampers around on the screen?" BillG on linux From andy at petdance.com Tue Dec 6 11:50:01 2005 From: andy at petdance.com (Andy Lester) Date: Tue, 6 Dec 2005 13:50:01 -0600 Subject: [Chicago-talk] MJD replies... Message-ID: <20051206195001.GA30175@petdance.com> Subject: Re: HOP page 191 Date: Tue, 06 Dec 2005 13:47:49 -0500 From: Mark Jason Dominus > Just trying to figure this out: > sub traverse { > my $interesting_links = sub { @_ }; > $interesting_links = shift if ref $_[0] eq 'CODE'; > .... > push @queue, $interesting_links->(get_links($url, $html)); > > so, if I *don't* pass a sub ref as the first param, $interesting links > will be a ref to a sub of the list of URLs? How is that going to work w/ > get_links? $interesting_links is a function that gets a bunch of URLs and returns only the ones that are interesting. By default, it returns everything. If you pass a function as the first argument to traverse(), the default $interesting_links function is replaced with the argument function. The replacement function should still be prepared to accept a list of URLs and to return the ones that are interesting. get_links() returns a list of URLs, which are passed to the interesting_links function. The default interesting_links function returns all the URLs it was passed. ------- End of Forwarded Message ----- End forwarded message ----- -- Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance From bdoty at efs-us.com Tue Dec 6 14:44:25 2005 From: bdoty at efs-us.com (Brad Doty) Date: Tue, 6 Dec 2005 16:44:25 -0600 Subject: [Chicago-talk] laptop, which brand is good. Message-ID: Mail order can work better for selection or customization. But I have to say for support, nothing in my experience has beaten the old Best Buy PSP repair/replacement warranty. Wherever you buy, you should get something like that to protect your investment. I know a computer's a wasting asset, but laptops tend to physically waste away before their value does. I never bought such a thing with mail order or other stores, they might be fine also. I'm a guy who would never consider buying an extended warranty on a car or appliance, but I'm very glad I did at Best Buy, and I continue to do so. There's no better feeling when your laptop screen wears out after a year or two (or you drop your cell phone on the train and there's no visible damage) than when they replace it with the latest equipment for free. It's pricey, it takes a week or more, you have to keep your receipt, and one time they couldn't find it in the company-wide database so I had to go to the store where I got the PC (not my local branch because of, you guessed it, lack of selection), but it beats spending another grand or two, and I've never failed to use one since I started buying them with my first cell phone. Brad Doty Error Free Software braddoty at yahoo.com -----Original Message----- ------------------------------ Message: 3 Date: Tue, 06 Dec 2005 12:10:38 -0500 From: Steven Lembark Subject: Re: [Chicago-talk] laptop, which brand is good. To: "Chicago.pm chatter" Message-ID: <4FAF8199934ADBC3657A466B at duke.wrkhors.com> Content-Type: text/plain; charset=us-ascii -- Imran Javaid > When it comes to brands, there are several decent (mail-order) brands to > choose from (Dell, IBM, Panasonic). Mail-order works better. You get > better selection through customization. I would stay away from brick and > mortar stores since those are consumer oriented mostly. As a linux user, from now on I'll avoid Dell like the Plague. As they've grown, Dell has followed the same path as Compaq: designing mostly-custom hardware that doesn't have out-of-the-box support from anyone but themselves. As the hardware gets more proprietary even people I know running windows have probelms with it. > When connecting to a linux desktop, use Cygwin (and Cygwin-X). Its not too > hard to get it working if you follow the instructions. You can run your > X-windows apps from your laptop easily with that. Apple makes excellent hardware -- even better if you don't plan to run linux on it :-) I picked up a Dell I8600 for the screen but for a "portable desktop" Apple has larger, cleaner screens with rather nice keyboards availble for decent prices these days. If you are using the thing on-site for a multi-month gig (what I use my machine for) then size is less of an issue than if you haul it to work every day (or home on the plane every week). At that point I'd go for the best-looking screen and cleanest-feeling keyboard/pointer: they are what you really use. -- Steven Lembark 85-09 90th Street Workhorse Computing Woodhaven, NY 11421 lembark at wrkhors.com 1 888 359 3508 ------------------------------ Message: 4 Date: Tue, 6 Dec 2005 09:37:15 -0800 (PST) From: tiger peng Subject: Re: [Chicago-talk] laptop, which brand is good. To: "Chicago.pm chatter" Message-ID: <20051206173715.20309.qmail at web54713.mail.yahoo.com> Content-Type: text/plain; charset=iso-8859-1 Thanks everyone for the information. I planed to buy a thinkpad, as I used it for a long time. However, the price they list online just confused me. I called the salesman, and got a different price. I really fell uncomfortable to do the deal with them. I went to CDW http://www.cdw.com/webcontent/land/page/q4savenow.asp; and chose "Acer TM4062WLMi", I hope it is a right choice. Ge --- Steven Lembark wrote: > > > -- Imran Javaid > > > When it comes to brands, there are several decent > (mail-order) brands to > > choose from (Dell, IBM, Panasonic). Mail-order > works better. You get > > better selection through customization. I would > stay away from brick and > > mortar stores since those are consumer oriented > mostly. > > As a linux user, from now on I'll avoid Dell like > the > Plague. As they've grown, Dell has followed the same > path as Compaq: designing mostly-custom hardware > that > doesn't have out-of-the-box support from anyone but > themselves. As the hardware gets more proprietary > even > people I know running windows have probelms with it. > > > When connecting to a linux desktop, use Cygwin > (and Cygwin-X). Its not too > > hard to get it working if you follow the > instructions. You can run your > > X-windows apps from your laptop easily with that. > > Apple makes excellent hardware -- even better if you > don't plan to run linux on it :-) I picked up a Dell > > I8600 for the screen but for a "portable desktop" > Apple has larger, cleaner screens with rather nice > keyboards availble for decent prices these days. > > If you are using the thing on-site for a multi-month > gig (what I use my machine for) then size is less of > > an issue than if you haul it to work every day (or > home on the plane every week). At that point I'd go > for the best-looking screen and cleanest-feeling > keyboard/pointer: they are what you really use. > > > -- > Steven Lembark > 85-09 90th Street > Workhorse Computing > Woodhaven, NY 11421 > lembark at wrkhors.com > 1 888 359 3508 > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > ------------------------------ Message: 5 Date: Tue, 6 Dec 2005 12:42:14 -0600 From: Andy_Bach at wiwb.uscourts.gov Subject: [Chicago-talk] "Higher Order Perl" example question (page 191) To: "PM, Chicago" Cc: mjd-perl-hop at plover.com Message-ID: Content-Type: text/plain; charset="US-ASCII" Hey folks, Sent this to MJD but he's off in London so ... in the iterator/web spider section, he building up various web page 'walking' iterators. traverse() returns an "Iterator" . Originally the IT creator just took a list of URLs, which it put in a queue. 'kicking' (his term for doing a 'NEXTVAL' on an iterator) the iterator too the first URL off the queue, pushed any URLs it contained (if it is of content-type text/html) on the queue and returned the URL. He then adds a callback as the first param to the traverse() IT generator. This is to let the URL only return 'interesting' (passed by the callback sub) URLs something like: my $top = 'http://perl.plover.com/'; my $interesting = sub { grep /^\Q$top/o, @_ }; and so you'd create a new IT by: my $urls = traverse($interesting, $top); The change to the traverse() sub is: sub traverse { my $interesting_links = sub { @_ }; $interesting_links = shift if ref $_[0] eq 'CODE'; .... push @queue, $interesting_links->(get_links($url, $html)); ## used to be # push @queue, (get_links($url, $html); so, if I *don't* pass a sub ref as the first param, $interesting_links will be a ref to a sub of the list of URLs? How is that going to work w/ get_links()? ... ahh, that's wrong. $interesting_links will be a ref to a sub that returns its own '@_', that is, the URLs returned by get_links() if there's no passed-in call back. I was confused on when that @_ was going to be ... used? invoked? something. Never mind ;-> it is a very interesting book. Its a bit (at page 191) all over the place, but all the places are quite useful and informative, so far. Not easy, by any means, this is not the first example I've had got back over and try and figure out how what he says has happened actually got implemented. That is probably a good thing. a Andy Bach, Sys. Mangler Internet: andy_bach at wiwb.uscourts.gov VOICE: (608) 261-5738 FAX 264-5932 "yeah, but does it have a cute little puppy that wags it's tail and scampers around on the screen?" BillG on linux ------------------------------ Message: 6 Date: Tue, 6 Dec 2005 13:50:01 -0600 From: Andy Lester Subject: [Chicago-talk] MJD replies... To: chicago-talk at mail.pm.org, Andy_Bach at wiwb.uscourts.gov Message-ID: <20051206195001.GA30175 at petdance.com> Content-Type: text/plain; charset=us-ascii Subject: Re: HOP page 191 Date: Tue, 06 Dec 2005 13:47:49 -0500 From: Mark Jason Dominus > Just trying to figure this out: > sub traverse { > my $interesting_links = sub { @_ }; > $interesting_links = shift if ref $_[0] eq 'CODE'; > .... > push @queue, $interesting_links->(get_links($url, $html)); > > so, if I *don't* pass a sub ref as the first param, $interesting links > will be a ref to a sub of the list of URLs? How is that going to work w/ > get_links? $interesting_links is a function that gets a bunch of URLs and returns only the ones that are interesting. By default, it returns everything. If you pass a function as the first argument to traverse(), the default $interesting_links function is replaced with the argument function. The replacement function should still be prepared to accept a list of URLs and to return the ones that are interesting. get_links() returns a list of URLs, which are passed to the interesting_links function. The default interesting_links function returns all the URLs it was passed. ------- End of Forwarded Message ----- End forwarded message ----- -- Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance ------------------------------ _______________________________________________ Chicago-talk mailing list Chicago-talk at pm.org http://mail.pm.org/mailman/listinfo/chicago-talk End of Chicago-talk Digest, Vol 29, Issue 7 ******************************************* From adam at jamradar.com Tue Dec 6 17:36:29 2005 From: adam at jamradar.com (Adam) Date: Tue, 6 Dec 2005 19:36:29 -0600 Subject: [Chicago-talk] Django / Rails Event References: <437D4F07.2050906@johnwlong.com> Message-ID: <052401c5face$a8b13580$0200a8c0@PANASONIULSWMR> Did anyone go to this event, what did you think? ----- Original Message ----- From: "John W. Long" To: "Chicago.pm chatter" Sent: Thursday, November 17, 2005 9:48 PM Subject: [Chicago-talk] Django / Rails Event > A date and location have been set for the Django / Rails event. > December 3rd at DePaul. The details are here: > > http://snakesandrubies.com > > This mini-conference is going to be a great opportunity for all the > local users groups to get together and compare web development notes. > It's pretty exciting. Hope to see you there... :-) > > -- > John Long > http://wiseheartdesign.com > > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > From zrusilla at mac.com Wed Dec 7 16:39:36 2005 From: zrusilla at mac.com (zrusilla@mac.com) Date: Wed, 7 Dec 2005 18:39:36 -0600 Subject: [Chicago-talk] Django / Rails Event In-Reply-To: <052401c5face$a8b13580$0200a8c0@PANASONIULSWMR> References: <437D4F07.2050906@johnwlong.com> <052401c5face$a8b13580$0200a8c0@PANASONIULSWMR> Message-ID: <3af8160b53a776903f8490859a44f503@mac.com> It was fun. Very informative. Saw lots of friends. Hit up some people for YAPC sponsorship. See my blog entry: http://www.livejournal.com/users/zrusilla/337117.html On Dec 6, 2005, at 7:36 PM, Adam wrote: > Did anyone go to [Snakes & Rubies], what did you think? From zrusilla at mac.com Wed Dec 7 17:58:29 2005 From: zrusilla at mac.com (zrusilla@mac.com) Date: Wed, 7 Dec 2005 19:58:29 -0600 Subject: [Chicago-talk] Open Source Dynamic Language Holiday Bash? In-Reply-To: References: Message-ID: <4066e5a78ce156bedd10585489415d3d@mac.com> I'm out of town the 12 & 13th. My friend Nola tells me that the Ruby hackfest is Tuesday night. On Dec 6, 2005, at 9:48 AM, Jason Gessner wrote: > Hi All. > > What do you think about having a nice big happy cross language social > event next week or early the following week? > > Monk's @ lake & wells was thrown out as an idea, but any place should > be fine. > > John, could you pass this on to the ruby group as well? > > Thoughts? > > -jason gessner > jason at multiply.org > > > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > > Between thought and expression lies a lifetime. -- "Some Kinda Love," Velvet Underground From joshua.mcadams at gmail.com Wed Dec 7 20:35:32 2005 From: joshua.mcadams at gmail.com (Joshua McAdams) Date: Wed, 7 Dec 2005 22:35:32 -0600 Subject: [Chicago-talk] Django / Rails Event In-Reply-To: <3af8160b53a776903f8490859a44f503@mac.com> References: <437D4F07.2050906@johnwlong.com> <052401c5face$a8b13580$0200a8c0@PANASONIULSWMR> <3af8160b53a776903f8490859a44f503@mac.com> Message-ID: <49d805d70512072035m7a9df356w3b0dbf5ffe817305@mail.gmail.com> > > Did anyone go to [Snakes & Rubies], what did you think? I went and recorded audio for it. It will have to be cleaned up, but expect some audio and video out within a few months. Audio could only take a few weeks, but I bet the video will take longer because of difficulty of editing. Overall the event was pretty good. Django and Rails have two very different takes on what a web development framework should be. David was definitely a more commanding speaker, which tended to sway the conversation toward Rails. Catalyst really needs to catch up and we need an advocate here to compete in the debates. With a Django developer and Rails developer in Chicago, Perl is underrepresented. That's my .02 From jason at multiply.org Wed Dec 7 20:49:25 2005 From: jason at multiply.org (Jason Gessner) Date: Wed, 7 Dec 2005 22:49:25 -0600 Subject: [Chicago-talk] [Chicago] Open Source Dynamic Language Holiday Bash? In-Reply-To: <3096c19d0512071159x6318560do1706ffe20f92a109@mail.gmail.com> References: <3A3528E2-EDE0-4C3E-9EFE-2F09395CE46F@sent.com> <4395BB43.7090603@phaedrusdeinus.org> <3096c19d0512071159x6318560do1706ffe20f92a109@mail.gmail.com> Message-ID: <72831597-7FB2-47B6-80A2-22B62E37B43C@multiply.org> anyone on for tomorrow? -jason On Dec 7, 2005, at 1:59 PM, Chris McAvoy wrote: > Howdy all, > > Sadly, I can't think of any places in Chicago that are smoke-free, and > still easy enough to coordinate a meet up / drink up at. Sorry folks. > > So, I nominate Monks for tomorrow night. That place is usually pretty > not-crowded. How about tomorrow night at 7pm? > > Chris > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago From joshua.mcadams at gmail.com Wed Dec 7 20:52:53 2005 From: joshua.mcadams at gmail.com (Joshua McAdams) Date: Wed, 7 Dec 2005 22:52:53 -0600 Subject: [Chicago-talk] [Chicago] Open Source Dynamic Language Holiday Bash? In-Reply-To: <72831597-7FB2-47B6-80A2-22B62E37B43C@multiply.org> References: <3A3528E2-EDE0-4C3E-9EFE-2F09395CE46F@sent.com> <4395BB43.7090603@phaedrusdeinus.org> <3096c19d0512071159x6318560do1706ffe20f92a109@mail.gmail.com> <72831597-7FB2-47B6-80A2-22B62E37B43C@multiply.org> Message-ID: <49d805d70512072052k6088eeehccc9d437a8dc7a16@mail.gmail.com> > anyone on for tomorrow? I'm in. From zrusilla at mac.com Wed Dec 7 20:57:04 2005 From: zrusilla at mac.com (zrusilla@mac.com) Date: Wed, 7 Dec 2005 22:57:04 -0600 Subject: [Chicago-talk] [Chicago] Open Source Dynamic Language Holiday Bash? In-Reply-To: <49d805d70512072052k6088eeehccc9d437a8dc7a16@mail.gmail.com> References: <3A3528E2-EDE0-4C3E-9EFE-2F09395CE46F@sent.com> <4395BB43.7090603@phaedrusdeinus.org> <3096c19d0512071159x6318560do1706ffe20f92a109@mail.gmail.com> <72831597-7FB2-47B6-80A2-22B62E37B43C@multiply.org> <49d805d70512072052k6088eeehccc9d437a8dc7a16@mail.gmail.com> Message-ID: If you all promise to help me cram for a job interview, I'm in too :-) On Dec 7, 2005, at 10:52 PM, Joshua McAdams wrote: >> anyone on for tomorrow? > > I'm in. > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > > Between thought and expression lies a lifetime. -- "Some Kinda Love," Velvet Underground From jason at multiply.org Wed Dec 7 21:02:46 2005 From: jason at multiply.org (Jason Gessner) Date: Wed, 7 Dec 2005 23:02:46 -0600 Subject: [Chicago-talk] Django / Rails Event In-Reply-To: <49d805d70512072035m7a9df356w3b0dbf5ffe817305@mail.gmail.com> References: <437D4F07.2050906@johnwlong.com> <052401c5face$a8b13580$0200a8c0@PANASONIULSWMR> <3af8160b53a776903f8490859a44f503@mac.com> <49d805d70512072035m7a9df356w3b0dbf5ffe817305@mail.gmail.com> Message-ID: On Dec 7, 2005, at 10:35 PM, Joshua McAdams wrote: >>> Did anyone go to [Snakes & Rubies], what did you think? > > I went and recorded audio for it. It will have to be cleaned up, but > expect some audio and video out within a few months. Audio could only > take a few weeks, but I bet the video will take longer because of > difficulty of editing. > I was also part of our crack av squad and agree with josh on the release of the materials. I am editing the stuff with one of the Django developers in Lawrence, KS. Should be interesting, but hopefully we can get something out soon-ish. > Overall the event was pretty good. Django and Rails have two very > different takes on what a web development framework should be. David > was definitely a more commanding speaker, which tended to sway the > conversation toward Rails. Catalyst really needs to catch up and we > need an advocate here to compete in the debates. With a Django > developer and Rails developer in Chicago, Perl is underrepresented. As anyone who attended the Catalyst/Rails thing in october can attest to, Catalyst is a VERY different beast than Django or rails. Both of those frameworks have really benefited from a single vision for the framework. Catalyst seems to be running on pure adrenaline and is extremely active, but seems kinda schizo. I am still following it very closely, but it is a totally different animal. -jason From joshua.mcadams at gmail.com Wed Dec 7 23:26:19 2005 From: joshua.mcadams at gmail.com (Joshua McAdams) Date: Thu, 8 Dec 2005 01:26:19 -0600 Subject: [Chicago-talk] YAPC::NA::2006 Message-ID: <49d805d70512072326hf2c3c68y80b9dbdf2a7f0b56@mail.gmail.com> Oh Chicago.pm, I challenge the to dream up an idea for a CPAN module called YAPC::NA::2006. Right now, all I can think of is a POD filled module with conference updates, but there has to be more. Possibly a module that checks the YAPC site for updates or a module that connects everyone who is currently using the module? Please, help me think of something cooler than POD to put on CPAN for YAPC. From ijavaid at usa.net Thu Dec 8 06:57:47 2005 From: ijavaid at usa.net (Imran Javaid) Date: Thu, 08 Dec 2005 08:57:47 -0600 Subject: [Chicago-talk] [Chicago] Open Source Dynamic Language Holiday Bash? Message-ID: <451JLHo6v0368S03.1134053867@uwdvg003.cms.usa.net> I'm in too. i'll finally get to meet some of the people in this group. Imran ------ Original Message ------ Received: Wed, 07 Dec 2005 10:49:44 PM CST From: Jason Gessner To: The Chicago Python Users Group , "Chicago.pm chatter" Subject: Re: [Chicago-talk] [Chicago] Open Source Dynamic Language Holiday Bash? > anyone on for tomorrow? > > -jason > > On Dec 7, 2005, at 1:59 PM, Chris McAvoy wrote: > > > Howdy all, > > > > Sadly, I can't think of any places in Chicago that are smoke-free, and > > still easy enough to coordinate a meet up / drink up at. Sorry folks. > > > > So, I nominate Monks for tomorrow night. That place is usually pretty > > not-crowded. How about tomorrow night at 7pm? > > > > Chris > > _______________________________________________ > > Chicago mailing list > > Chicago at python.org > > http://mail.python.org/mailman/listinfo/chicago > > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > From chris.mcavoy at gmail.com Thu Dec 8 07:53:11 2005 From: chris.mcavoy at gmail.com (Chris McAvoy) Date: Thu, 8 Dec 2005 09:53:11 -0600 Subject: [Chicago-talk] [Chicago] Open Source Dynamic Language Holiday Bash? In-Reply-To: References: <3A3528E2-EDE0-4C3E-9EFE-2F09395CE46F@sent.com> <4395BB43.7090603@phaedrusdeinus.org> <3096c19d0512071159x6318560do1706ffe20f92a109@mail.gmail.com> Message-ID: <3096c19d0512080753t2cf2ededqd245fe269bd2c338@mail.gmail.com> On 12/8/05, Michael Tobis wrote: > I will show up and make sure it is a nontrivial turnout. > > You mean this place (205 W Lake)? > > http://centerstage.net/restaurants/monks-pub.html > > At least two people will be there. I'll be there, which makes at least three. Note that I've added Perl and Ruby to the email. The Perl folks seem to have Monk's fever for tonight. Are the Ruby folks on board? Chris From tigerpeng2001 at yahoo.com Thu Dec 8 07:56:11 2005 From: tigerpeng2001 at yahoo.com (tiger peng) Date: Thu, 8 Dec 2005 07:56:11 -0800 (PST) Subject: [Chicago-talk] [Chicago] Open Source Dynamic Language Holiday Bash? In-Reply-To: Message-ID: <20051208155611.73660.qmail@web54707.mail.yahoo.com> It will be ***snowy*** tonight*** :-( A lot of ****** ****** ****** ****** To hack the Perl job interview effectively, read "Effective Perl Programming" and the second chapter of "Object Oriented Perl" for non-OO-Perl --- zrusilla at mac.com wrote: > If you all promise to help me cram for a job > interview, I'm in too :-) > > > On Dec 7, 2005, at 10:52 PM, Joshua McAdams wrote: > > >> anyone on for tomorrow? > > > > I'm in. > > _______________________________________________ > > Chicago-talk mailing list > > Chicago-talk at pm.org > > http://mail.pm.org/mailman/listinfo/chicago-talk > > > > > Between thought and expression lies a lifetime. -- > "Some Kinda Love," > Velvet Underground > > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > From ijavaid at usa.net Thu Dec 8 08:15:11 2005 From: ijavaid at usa.net (Imran Javaid) Date: Thu, 08 Dec 2005 10:15:11 -0600 Subject: [Chicago-talk] [Chicago] Open Source Dynamic Language Holiday Bash? Message-ID: <645JLHqPL6080S10.1134058511@cmsweb10.cms.usa.net> Is the meetup going to be at Monks? What time? ------ Original Message ------ Received: Thu, 08 Dec 2005 08:58:13 AM CST From: Imran Javaid To: "Chicago.pm chatter" Subject: Re: [Chicago-talk] [Chicago] Open Source Dynamic Language Holiday Bash? > I'm in too. i'll finally get to meet some of the people in this group. > > Imran > > ------ Original Message ------ > Received: Wed, 07 Dec 2005 10:49:44 PM CST > From: Jason Gessner > To: The Chicago Python Users Group , "Chicago.pm chatter" > > Subject: Re: [Chicago-talk] [Chicago] Open Source Dynamic Language Holiday > Bash? > > > anyone on for tomorrow? > > > > -jason > > > > On Dec 7, 2005, at 1:59 PM, Chris McAvoy wrote: > > > > > Howdy all, > > > > > > Sadly, I can't think of any places in Chicago that are smoke-free, and > > > still easy enough to coordinate a meet up / drink up at. Sorry folks. > > > > > > So, I nominate Monks for tomorrow night. That place is usually pretty > > > not-crowded. How about tomorrow night at 7pm? > > > > > > Chris > > > _______________________________________________ > > > Chicago mailing list > > > Chicago at python.org > > > http://mail.python.org/mailman/listinfo/chicago > > > > _______________________________________________ > > 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 ehs at pobox.com Thu Dec 8 08:42:47 2005 From: ehs at pobox.com (Edward Summers) Date: Thu, 8 Dec 2005 10:42:47 -0600 Subject: [Chicago-talk] Django / Rails Event In-Reply-To: References: <437D4F07.2050906@johnwlong.com> <052401c5face$a8b13580$0200a8c0@PANASONIULSWMR> <3af8160b53a776903f8490859a44f503@mac.com> <49d805d70512072035m7a9df356w3b0dbf5ffe817305@mail.gmail.com> Message-ID: On Dec 7, 2005, at 11:02 PM, Jason Gessner wrote: > I am still following it very closely, but it is a totally different > animal. Aren't all three essentially MVC web frameworks? I'm that catalyst is different (as RoR and Django are) but isn't it more similar than it is different? //Ed From jason at multiply.org Thu Dec 8 08:49:22 2005 From: jason at multiply.org (Jason Gessner) Date: Thu, 8 Dec 2005 10:49:22 -0600 Subject: [Chicago-talk] [Chicago] Open Source Dynamic Language Holiday Bash? In-Reply-To: <645JLHqPL6080S10.1134058511@cmsweb10.cms.usa.net> References: <645JLHqPL6080S10.1134058511@cmsweb10.cms.usa.net> Message-ID: <8B3F9409-4F94-4A96-9C3D-F443CF36355D@multiply.org> 7pm tonight at monk's. -jason On Dec 8, 2005, at 10:15 AM, Imran Javaid wrote: > Is the meetup going to be at Monks? What time? > > ------ Original Message ------ > Received: Thu, 08 Dec 2005 08:58:13 AM CST > From: Imran Javaid > To: "Chicago.pm chatter" > Subject: Re: [Chicago-talk] [Chicago] Open Source Dynamic Language > Holiday > Bash? > >> I'm in too. i'll finally get to meet some of the people in this >> group. >> >> Imran >> >> ------ Original Message ------ >> Received: Wed, 07 Dec 2005 10:49:44 PM CST >> From: Jason Gessner >> To: The Chicago Python Users Group , "Chicago.pm > chatter" >> >> Subject: Re: [Chicago-talk] [Chicago] Open Source Dynamic Language >> Holiday >> Bash? >> >>> anyone on for tomorrow? >>> >>> -jason >>> >>> On Dec 7, 2005, at 1:59 PM, Chris McAvoy wrote: >>> >>>> Howdy all, >>>> >>>> Sadly, I can't think of any places in Chicago that are smoke- >>>> free, and >>>> still easy enough to coordinate a meet up / drink up at. Sorry >>>> folks. >>>> >>>> So, I nominate Monks for tomorrow night. That place is usually >>>> pretty >>>> not-crowded. How about tomorrow night at 7pm? >>>> >>>> Chris >>>> _______________________________________________ >>>> Chicago mailing list >>>> Chicago at python.org >>>> http://mail.python.org/mailman/listinfo/chicago >>> >>> _______________________________________________ >>> 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 >> > > > > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk From jason at multiply.org Thu Dec 8 09:02:31 2005 From: jason at multiply.org (Jason Gessner) Date: Thu, 8 Dec 2005 11:02:31 -0600 Subject: [Chicago-talk] Django / Rails Event In-Reply-To: References: <437D4F07.2050906@johnwlong.com> <052401c5face$a8b13580$0200a8c0@PANASONIULSWMR> <3af8160b53a776903f8490859a44f503@mac.com> <49d805d70512072035m7a9df356w3b0dbf5ffe817305@mail.gmail.com> Message-ID: yes in the similar, however, catalyst is kinda like frankenstein,cobbled together from the corpses of those long since passed.... IMO, the strength of catalyst lies in excellent controllers and a completely simple way to support multiple technologies for the view. The model part of it suffers a lot in comparison to Django and Rails. In and of themselves, the perl ORMs are not so bad, but none of them integrate into the rest of Catalyst as well as ActiveRecord in rails or the Django bidness. -jason On Dec 8, 2005, at 10:42 AM, Edward Summers wrote: > On Dec 7, 2005, at 11:02 PM, Jason Gessner wrote: >> I am still following it very closely, but it is a totally different >> animal. > > Aren't all three essentially MVC web frameworks? I'm that catalyst is > different (as RoR and Django are) but isn't it more similar than it > is different? > > //Ed > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk From chris.mcavoy at gmail.com Thu Dec 8 13:08:30 2005 From: chris.mcavoy at gmail.com (Chris McAvoy) Date: Thu, 8 Dec 2005 15:08:30 -0600 Subject: [Chicago-talk] Cancel tonight? Message-ID: <3096c19d0512081308m31cb4cces2036fec26add3294@mail.gmail.com> It's awfully snowy outside. Am I being a wimp? Does this make anyone want to cancel? Chris From jbalint at gmail.com Thu Dec 8 13:23:40 2005 From: jbalint at gmail.com (Jess Balint) Date: Thu, 8 Dec 2005 16:23:40 -0500 Subject: [Chicago-talk] Cancel tonight? In-Reply-To: <3096c19d0512081308m31cb4cces2036fec26add3294@mail.gmail.com> Message-ID: <4398a45e.722069f0.4cec.ffff9fe4@mx.gmail.com> Yes, you are being a wimp. We are going to be INSIDE where it's not snowy. :p Jess -----Original Message----- From: chicago-talk-bounces+jbalint=gmail.com at pm.org [mailto:chicago-talk-bounces+jbalint=gmail.com at pm.org] On Behalf Of Chris McAvoy Sent: Thursday, December 08, 2005 4:08 PM To: The Chicago Python Users Group; Chicago.pm chatter Subject: [Chicago-talk] Cancel tonight? It's awfully snowy outside. Am I being a wimp? Does this make anyone want to cancel? Chris _______________________________________________ Chicago-talk mailing list Chicago-talk at pm.org http://mail.pm.org/mailman/listinfo/chicago-talk From chris.mcavoy at gmail.com Thu Dec 8 13:39:59 2005 From: chris.mcavoy at gmail.com (Chris McAvoy) Date: Thu, 8 Dec 2005 15:39:59 -0600 Subject: [Chicago-talk] [Chicago] Cancel tonight? In-Reply-To: <4398A129.5080900@colorstudy.com> References: <3096c19d0512081308m31cb4cces2036fec26add3294@mail.gmail.com> <4398A129.5080900@colorstudy.com> Message-ID: <3096c19d0512081339s6872c831la91c2c3a2f70f107@mail.gmail.com> On 12/8/05, Perl Person Jess Balint wrote: > Yes, you are being a wimp. We are going to be INSIDE where it's not snowy. > :p > > Jess On 12/8/05, Python Person Ian Bicking wrote: > Chris McAvoy wrote: > > It's awfully snowy outside. Am I being a wimp? > > > > Does this make anyone want to cancel? > > I was just going to take the train, so I don't really care about the > weather so much. Ok...I guess I'm being a wimp. I'll be there. Chris From lembark at wrkhors.com Thu Dec 8 13:46:41 2005 From: lembark at wrkhors.com (Steven Lembark) Date: Thu, 08 Dec 2005 16:46:41 -0500 Subject: [Chicago-talk] YAPC::NA::2006 In-Reply-To: <49d805d70512072326hf2c3c68y80b9dbdf2a7f0b56@mail.gmail.com> References: <49d805d70512072326hf2c3c68y80b9dbdf2a7f0b56@mail.gmail.com> Message-ID: <9BED756A6E5F2C40E7457BF0@duke.wrkhors.com> -- Joshua McAdams > Oh Chicago.pm, I challenge the to dream up an idea for a CPAN module > called YAPC::NA::2006. Right now, all I can think of is a POD filled > module with conference updates, but there has to be more. Possibly a > module that checks the YAPC site for updates or a module that connects > everyone who is currently using the module? Please, help me think of > something cooler than POD to put on CPAN for YAPC. Use LWP to snag the data from http://chicago.pm.org/yapc/udpates.html. -- Steven Lembark 85-09 90th Street Workhorse Computing Woodhaven, NY 11421 lembark at wrkhors.com 1 888 359 3508 From lembark at wrkhors.com Thu Dec 8 13:48:39 2005 From: lembark at wrkhors.com (Steven Lembark) Date: Thu, 08 Dec 2005 16:48:39 -0500 Subject: [Chicago-talk] Call it "Acme::YAPC::Yippee" Message-ID: <10CE875C63CBE34D3931780D@duke.wrkhors.com> if( my $hooray = Acme::YAPC::Yippee->query( 'chicago', '2006' ) ) { ... } -- Steven Lembark 85-09 90th Street Workhorse Computing Woodhaven, NY 11421 lembark at wrkhors.com 1 888 359 3508 From joshua.mcadams at gmail.com Thu Dec 8 17:54:08 2005 From: joshua.mcadams at gmail.com (Joshua McAdams) Date: Thu, 8 Dec 2005 19:54:08 -0600 Subject: [Chicago-talk] [Chicago] Open Source Dynamic Language Holiday Bash? In-Reply-To: <8B3F9409-4F94-4A96-9C3D-F443CF36355D@multiply.org> References: <645JLHqPL6080S10.1134058511@cmsweb10.cms.usa.net> <8B3F9409-4F94-4A96-9C3D-F443CF36355D@multiply.org> Message-ID: <49d805d70512081754y730c547eu18e71b3a221ee0f@mail.gmail.com> > 7pm tonight at monk's. I went, walked around the bar a couple of times and didn't see anybody. The place was packed though. Did you end up going somewhere else? From jason at multiply.org Fri Dec 9 07:37:05 2005 From: jason at multiply.org (Jason Gessner) Date: Fri, 9 Dec 2005 09:37:05 -0600 Subject: [Chicago-talk] [Chicago] Open Source Dynamic Language Holiday Bash? In-Reply-To: <49d805d70512081754y730c547eu18e71b3a221ee0f@mail.gmail.com> References: <645JLHqPL6080S10.1134058511@cmsweb10.cms.usa.net> <8B3F9409-4F94-4A96-9C3D-F443CF36355D@multiply.org> <49d805d70512081754y730c547eu18e71b3a221ee0f@mail.gmail.com> Message-ID: bah! Really? We were in the door and around to the left. It was packed, though. We were looking for you, too. Who said that place would be dead? I hate that guy. ;) -jason On Dec 8, 2005, at 7:54 PM, Joshua McAdams wrote: >> 7pm tonight at monk's. > > I went, walked around the bar a couple of times and didn't see > anybody. The place was packed though. Did you end up going somewhere > else? > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk From chris.mcavoy at gmail.com Fri Dec 9 09:47:07 2005 From: chris.mcavoy at gmail.com (Chris McAvoy) Date: Fri, 9 Dec 2005 11:47:07 -0600 Subject: [Chicago-talk] [Chicago] Open Source Dynamic Language Holiday Bash? In-Reply-To: References: <645JLHqPL6080S10.1134058511@cmsweb10.cms.usa.net> <8B3F9409-4F94-4A96-9C3D-F443CF36355D@multiply.org> <49d805d70512081754y730c547eu18e71b3a221ee0f@mail.gmail.com> Message-ID: <3096c19d0512090947w33214a2dw4a37c83218383cc6@mail.gmail.com> On 12/9/05, Jason Gessner wrote: > Who said that place would be dead? I hate that guy. We all hate that guy. > ;) Emoticons don't take away the pain of a knife in the back. Chris "Monk's is always empty" McAvoy From Darren.Young at ChicagoGSB.edu Mon Dec 12 13:27:52 2005 From: Darren.Young at ChicagoGSB.edu (Young, Darren) Date: Mon, 12 Dec 2005 15:27:52 -0600 Subject: [Chicago-talk] Broken Pipe Message-ID: <490F3E9EEF01B04598860AAB71777B4E2BF6A4@GSBEX.gsb.uchicago.edu> Have a script that does an open() for read on a pipe. The particular binary can take a while to run (1-2 hours) and causes the Perl open() to eventually timeout and spew back 'broken pipe'. Can I do something as simple as: $SIG{PIPE} = 'IGNORE'; To get around this? Or, should I be thinking about a different IPC open mechanism (open2, open3, etc)? The actual code that does the open() is: sub store_cleanup { my $cmd; my $start; my $end; my $runtime; if ( $VERBOSE ) { $cmd = "$stored -1 -v 2>&1"; } else { $cmd = "$stored -1"; } debug("cmd: $cmd"); # open it up as a pipe logmsg("Opening stored command pipe"); if ( open(STORED, "$cmd |") ) { $start = time(); logmsg("Pipe opened at " . localtime($start)); while() { chomp(); logmsg($_); } my $end = time(); close(STORED); $runtime = $end - $start; $runtime_min = sprintf("%.1f", $runtime / 60); logmsg(" Start time : " . localtime($start)); logmsg(" End time : " . localtime($end)); logmsg(" Run time : $runtime seconds ( $runtime_min minutes )"); return(0); } else { logmsg("Failed to open stored as a pipe ($!)"); return(0); } return(1); } Anyone have any thoughts? ------------------------------------------------------------- | Darren Young | http://www.chicagogsb.edu | | Senior UNIX Administrator | darren.young at chicagogsb.edu | | University of Chicago GSB | darren.young at gsb.uchicago.edu | ------------------------------------------------------------- From jbalint at gmail.com Mon Dec 12 13:47:54 2005 From: jbalint at gmail.com (Jess Balint) Date: Mon, 12 Dec 2005 16:47:54 -0500 Subject: [Chicago-talk] Broken Pipe In-Reply-To: <490F3E9EEF01B04598860AAB71777B4E2BF6A4@GSBEX.gsb.uchicago.edu> Message-ID: <439df00b.3ec4b108.31e5.fffff4c0@mx.gmail.com> Although it is remotely possible, I have never heard of an implicit timeout on reading (whether from a pipe or anything else). Can you verify that the child process is not exiting abnormally? Can you provide some more detail on the commands you are running and the type of output you are expecting? Open3 would be necessary if you want to capture the out and err streams separately. This might help if your child process is printing error messages that you are unaware of. One thing to try might be using the read() system call instead of the line-oriented input. It is just a way to guarantee that all the data is read. Jess -----Original Message----- From: chicago-talk-bounces at pm.org [mailto:chicago-talk-bounces at pm.org] On Behalf Of Young, Darren Sent: Monday, December 12, 2005 4:28 PM To: chicago-talk at pm.org Subject: [Chicago-talk] Broken Pipe Have a script that does an open() for read on a pipe. The particular binary can take a while to run (1-2 hours) and causes the Perl open() to eventually timeout and spew back 'broken pipe'. Can I do something as simple as: $SIG{PIPE} = 'IGNORE'; To get around this? Or, should I be thinking about a different IPC open mechanism (open2, open3, etc)? The actual code that does the open() is: sub store_cleanup { my $cmd; my $start; my $end; my $runtime; if ( $VERBOSE ) { $cmd = "$stored -1 -v 2>&1"; } else { $cmd = "$stored -1"; } debug("cmd: $cmd"); # open it up as a pipe logmsg("Opening stored command pipe"); if ( open(STORED, "$cmd |") ) { $start = time(); logmsg("Pipe opened at " . localtime($start)); while() { chomp(); logmsg($_); } my $end = time(); close(STORED); $runtime = $end - $start; $runtime_min = sprintf("%.1f", $runtime / 60); logmsg(" Start time : " . localtime($start)); logmsg(" End time : " . localtime($end)); logmsg(" Run time : $runtime seconds ( $runtime_min minutes )"); return(0); } else { logmsg("Failed to open stored as a pipe ($!)"); return(0); } return(1); } Anyone have any thoughts? ------------------------------------------------------------- | Darren Young | http://www.chicagogsb.edu | | Senior UNIX Administrator | darren.young at chicagogsb.edu | | University of Chicago GSB | darren.young at gsb.uchicago.edu | ------------------------------------------------------------- _______________________________________________ Chicago-talk mailing list Chicago-talk at pm.org http://mail.pm.org/mailman/listinfo/chicago-talk From Darren.Young at ChicagoGSB.edu Mon Dec 12 14:17:52 2005 From: Darren.Young at ChicagoGSB.edu (Young, Darren) Date: Mon, 12 Dec 2005 16:17:52 -0600 Subject: [Chicago-talk] Broken Pipe Message-ID: <490F3E9EEF01B04598860AAB71777B4E2BF6A5@GSBEX.gsb.uchicago.edu> > Although it is remotely possible, I have never heard of an > implicit timeout > on reading (whether from a pipe or anything else). Can you > verify that the > child process is not exiting abnormally? Can you provide some > more detail on > the commands you are running and the type of output you are expecting? When run manually, the process works and unless the -v is added, there's no output. This one is part of the iPlanet message server that among other things, cleans out messages that have been flagged as deleted. All I'm expecting back at the moment is a 0 or 1. > > Open3 would be necessary if you want to capture the out and > err streams > separately. This might help if your child process is printing > error messages > that you are unaware of. I'm wondering if there might be something there I'm missing as well, perhaps adding open3 would give some insight. > > One thing to try might be using the read() system call instead of the > line-oriented input. It is just a way to guarantee that all > the data is > read. From lembark at wrkhors.com Mon Dec 12 16:46:10 2005 From: lembark at wrkhors.com (Steven Lembark) Date: Mon, 12 Dec 2005 19:46:10 -0500 Subject: [Chicago-talk] Broken Pipe In-Reply-To: <490F3E9EEF01B04598860AAB71777B4E2BF6A4@GSBEX.gsb.uchicago.edu> References: <490F3E9EEF01B04598860AAB71777B4E2BF6A4@GSBEX.gsb.uchicago.edu> Message-ID: <47E95D97D3CA5222FA3E8394@duke.wrkhors.com> -- "Young, Darren" > Have a script that does an open() for read on a pipe. The particular > binary can take a while to run (1-2 hours) and causes the Perl open() to > eventually timeout and spew back 'broken pipe'. Can I do something as > simple as: > > $SIG{PIPE} = 'IGNORE'; > To get around this? Or, should I be thinking about a different IPC open > mechanism (open2, open3, etc)? You can try open3, but in general you should be able to get by without it. > if ( open(STORED, "$cmd |") ) { A blocking read should sit there forever if necessary. The problem is that $cmd isn't putting out any data and is then closing its stdout. You can try: open my $fh, "$cmd > /var/tmp/thingy.log |" ... and tail -f /var/tmp/thingy.log to -- hopefully -- find out why the command is exiting without sending you any data. You can also try running the command from the command line into a named pipe and reading from the named one into perl (just a regular open my $fh, "< $pipe"). That makes it easier to watch the writing job and see if it spews out any errors: mknod /tmp/named_pipe p; /path/to/cmd --blah 2>&1 > /tmp/named_pipe | tee /tmp/error.log; will show you the stderr output from the command and tee it to a log file for you (not the order of redirections). -- Steven Lembark 85-09 90th Street Workhorse Computing Woodhaven, NY 11421 lembark at wrkhors.com 1 888 359 3508 From Darren.Young at ChicagoGSB.edu Tue Dec 13 16:24:31 2005 From: Darren.Young at ChicagoGSB.edu (Young, Darren) Date: Tue, 13 Dec 2005 18:24:31 -0600 Subject: [Chicago-talk] Script design question Message-ID: <490F3E9EEF01B04598860AAB71777B4E2BF6AF@GSBEX.gsb.uchicago.edu> Looking for some input on a script before I sit down and try to create it. The basic need is to launch 4 system commands (at the same time) and watch each one for completion and when one is done to start another. Basically, it needs to keep 4 child processes running up to a defined end. If that doesn't make sense, here's what it's for. In order to run backups on our mail system we have to use a Sun supplied binary (imsbackup). As an argument this binary takes what are called "groups" to perform a given backup. Those "groups" are defined in another file (backup-groups.conf) and contains lines such as: groupA=a* groupB=b* And so on and so forth until the letter Z. groupA are users that start with the letter a, groupB are the b's, and so on. Now, since these backups take so long to run we're going to run 4 of them in parallel, each one against a different group. So, from the command line I would: imsbackup -i -f- /gsbims/groupA > /export/backups/groupA.bkp & imsbackup -i -f- /gsbims/groupB > /export/backups/groupB.bkp & Do that for groups A-D and let them run. Then, the first one that completed would fall off the "to-do" list and the next letter group will be started (E in this case). Then on to F, G, etc. Testing so far says that an individual group can take up to 2-3 hours to complete so I have to be able to deal with processes that sit and run for a while and produce no output. Not sure what exit codes the imsbackup program gives back, but I'm betting it's just a 0 or 1. Now, if one of them fails all I need to do is log the fact that it did and move on. Additionally, I'd like to keep track of the time it took to perform each group "thread" and log that as well. I'd prefer not to have a script call other scripts as opposed to calling the commands themselves, I've found that I lose tidbits here and there from sub-scripts. While that's a preference, it's certainly not required. The part that I need help with is how to actually spawn each child and watch for their outcome (reliably). The waitpid() call seems to wait for one particular process to complete or am I reading the docs incorrectly? Am I talking about using threads in this case or am I over-engineering what I want done? I've done plenty of whil() stuff previously but only on a single process. Any thoughts on this would be very appreciated. ------------------------------------------------------------- | Darren Young | http://www.chicagogsb.edu | | Senior UNIX Administrator | darren.young at chicagogsb.edu | | University of Chicago GSB | darren.young at gsb.uchicago.edu | ------------------------------------------------------------- From me at heyjay.com Tue Dec 13 18:33:08 2005 From: me at heyjay.com (Jay Strauss) Date: Tue, 13 Dec 2005 20:33:08 -0600 Subject: [Chicago-talk] Script design question In-Reply-To: <490F3E9EEF01B04598860AAB71777B4E2BF6AF@GSBEX.gsb.uchicago.edu> References: <490F3E9EEF01B04598860AAB71777B4E2BF6AF@GSBEX.gsb.uchicago.edu> Message-ID: <200512132033.08254.me@heyjay.com> On Tuesday 13 December 2005 6:24 pm, Young, Darren wrote: > Looking for some input on a script before I sit down and try to create > it. The basic need is to launch 4 system commands (at the same time) and ... > Am I talking about using threads in this case or am I over-engineering > what I want done? I've done plenty of whil() stuff previously but > only on a single process. > > Any thoughts on this would be very appreciated. Sounds like a job for POE. http://search.cpan.org/~rcaputo/POE-0.3202/lib/POE.pm Jay From andy_bach at wiwb.uscourts.gov Tue Dec 13 18:42:32 2005 From: andy_bach at wiwb.uscourts.gov (Andy Bach) Date: Tue, 13 Dec 2005 20:42:32 -0600 Subject: [Chicago-talk] YAPC::NA::2006 In-Reply-To: <490F3E9EEF01B04598860AAB71777B4E2BF6AF@GSBEX.gsb.uchicago.edu> References: <490F3E9EEF01B04598860AAB71777B4E2BF6AF@GSBEX.gsb.uchicago.edu> Message-ID: <439F8698.1020707@wiwb.uscourts.gov> How about a set of queries: who what where when (why?) which'll do searches against the agenda. my $conf = new YAPC::NA::2006; print "Andy is doing: ", $conf->who('lester'), " at ", join(", ", $conf->who('lester')->when() ), "\n"; Or something like that. I'd guess the answer to 'well, which way should it work?' would be 'as many as possible: who(lastname => 'lester') when(lastname => 'lester', subject => 'testing'); what('07/04/06'); why() could return session synopsis or something. Just a WA idea ... a From jbalint at gmail.com Tue Dec 13 18:50:04 2005 From: jbalint at gmail.com (Jess Balint) Date: Tue, 13 Dec 2005 21:50:04 -0500 Subject: [Chicago-talk] Script design question In-Reply-To: <490F3E9EEF01B04598860AAB71777B4E2BF6AF@GSBEX.gsb.uchicago.edu> Message-ID: <439f885d.0ead49c7.021e.1bfa@mx.gmail.com> You could create 4 queues and just watch the queues. You could put all your output in a log and just lock the file. You could use signals as IPC to notify the parent process that something is done, check the queues and start the next job. Shouldn't be too hard. I have done something like this before for a very high volume queuing system and it worked well. You could use threads too, but I don't think they are needed to just sit there and wait for something to finish. Jess -----Original Message----- From: chicago-talk-bounces+jbalint=gmail.com at pm.org [mailto:chicago-talk-bounces+jbalint=gmail.com at pm.org] On Behalf Of Young, Darren Sent: Tuesday, December 13, 2005 7:25 PM To: Chicago.pm chatter Subject: [Chicago-talk] Script design question Looking for some input on a script before I sit down and try to create it. The basic need is to launch 4 system commands (at the same time) and watch each one for completion and when one is done to start another. Basically, it needs to keep 4 child processes running up to a defined end. If that doesn't make sense, here's what it's for. In order to run backups on our mail system we have to use a Sun supplied binary (imsbackup). As an argument this binary takes what are called "groups" to perform a given backup. Those "groups" are defined in another file (backup-groups.conf) and contains lines such as: groupA=a* groupB=b* And so on and so forth until the letter Z. groupA are users that start with the letter a, groupB are the b's, and so on. Now, since these backups take so long to run we're going to run 4 of them in parallel, each one against a different group. So, from the command line I would: imsbackup -i -f- /gsbims/groupA > /export/backups/groupA.bkp & imsbackup -i -f- /gsbims/groupB > /export/backups/groupB.bkp & Do that for groups A-D and let them run. Then, the first one that completed would fall off the "to-do" list and the next letter group will be started (E in this case). Then on to F, G, etc. Testing so far says that an individual group can take up to 2-3 hours to complete so I have to be able to deal with processes that sit and run for a while and produce no output. Not sure what exit codes the imsbackup program gives back, but I'm betting it's just a 0 or 1. Now, if one of them fails all I need to do is log the fact that it did and move on. Additionally, I'd like to keep track of the time it took to perform each group "thread" and log that as well. I'd prefer not to have a script call other scripts as opposed to calling the commands themselves, I've found that I lose tidbits here and there from sub-scripts. While that's a preference, it's certainly not required. The part that I need help with is how to actually spawn each child and watch for their outcome (reliably). The waitpid() call seems to wait for one particular process to complete or am I reading the docs incorrectly? Am I talking about using threads in this case or am I over-engineering what I want done? I've done plenty of whil() stuff previously but only on a single process. Any thoughts on this would be very appreciated. ------------------------------------------------------------- | Darren Young | http://www.chicagogsb.edu | | Senior UNIX Administrator | darren.young at chicagogsb.edu | | University of Chicago GSB | darren.young at gsb.uchicago.edu | ------------------------------------------------------------- _______________________________________________ Chicago-talk mailing list Chicago-talk at pm.org http://mail.pm.org/mailman/listinfo/chicago-talk From easyasy2k at gmail.com Tue Dec 13 19:17:21 2005 From: easyasy2k at gmail.com (Leland Johnson) Date: Tue, 13 Dec 2005 21:17:21 -0600 Subject: [Chicago-talk] Script design question In-Reply-To: <490F3E9EEF01B04598860AAB71777B4E2BF6AF@GSBEX.gsb.uchicago.edu> References: <490F3E9EEF01B04598860AAB71777B4E2BF6AF@GSBEX.gsb.uchicago.edu> Message-ID: <8261E43E-5746-4908-80D1-447985DA3ACA@gmail.com> waitpid is a very thin wrapper over the C function of the same name that can do quite a lot. Check out `man 2 waitpid` on your system. Here's some example code with waitpid(-1, 0) semantics. waitpid(-1, 0) will hang until any child has terminated (returns that child's pid) or there are no more children to wait for (returns -1). I use fork() and exec() here instead of system() or qx// so I can tell the processes apart with the pid that fork() returns. I think this would be the simplest way to solve your problem, but it has the disadvantage of looking a lot like C code. #!perl use strict; use warnings; use POSIX ":sys_wait_h"; # Not sure if you need this. my ($pid1, $pid2); if( ($pid1 = fork()) == 0 ) { sleep 10; print "child 1\n"; exit 69; } if( ($pid2 = fork()) == 0 ) { print "child 2 execs `date`\n"; exec("date") or die "error executing `date`!\n"; # exec never returns on success } my $kid; # Blocking waitpid. while( ($kid = waitpid(-1, 0)) != -1 ) { my $status = $? / 256; if ( $kid == $pid1 ) { print "Child 1 exited with status $status\n"; } elsif ( $kid == $pid2 ) { print "Child 2 exited with status $status\n"; } else { die "Got unexpected child pid. Shouldn't happen.\n"; } } print "No more children.\n"; __END__ On Dec 13, 2005, at 6:24 PM, Young, Darren wrote: > > Looking for some input on a script before I sit down and try to create > it. The basic need is to launch 4 system commands (at the same > time) and > watch each one for completion and when one is done to start another. > Basically, it needs to keep 4 child processes running up to a defined > end. > > If that doesn't make sense, here's what it's for. In order to run > backups on our mail system we have to use a Sun supplied binary > (imsbackup). As an argument this binary takes what are called "groups" > to perform a given backup. Those "groups" are defined in another file > (backup-groups.conf) and contains lines such as: > groupA=a* > groupB=b* > > And so on and so forth until the letter Z. groupA are users that start > with the letter a, groupB are the b's, and so on. Now, since these > backups take so long to run we're going to run 4 of them in parallel, > each one against a different group. So, from the command line I would: > imsbackup -i -f- /gsbims/groupA > /export/backups/groupA.bkp & > imsbackup -i -f- /gsbims/groupB > /export/backups/groupB.bkp & > > Do that for groups A-D and let them run. Then, the first one that > completed would fall off the "to-do" list and the next letter group > will > be started (E in this case). Then on to F, G, etc. Testing so far says > that an individual group can take up to 2-3 hours to complete so I > have > to be able to deal with processes that sit and run for a while and > produce no output. Not sure what exit codes the imsbackup program > gives > back, but I'm betting it's just a 0 or 1. > > Now, if one of them fails all I need to do is log the fact that it did > and move on. Additionally, I'd like to keep track of the time it > took to > perform each group "thread" and log that as well. I'd prefer not to > have > a script call other scripts as opposed to calling the commands > themselves, I've found that I lose tidbits here and there from > sub-scripts. While that's a preference, it's certainly not required. > > The part that I need help with is how to actually spawn each child and > watch for their outcome (reliably). The waitpid() call seems to > wait for > one particular process to complete or am I reading the docs > incorrectly? > Am I talking about using threads in this case or am I over-engineering > what I want done? I've done plenty of whil() stuff previously > but > only on a single process. > > Any thoughts on this would be very appreciated. > > ------------------------------------------------------------- > | Darren Young | http://www.chicagogsb.edu | > | Senior UNIX Administrator | darren.young at chicagogsb.edu | > | University of Chicago GSB | darren.young at gsb.uchicago.edu | > ------------------------------------------------------------- > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk --- Leland Johnson http://protoplasmic.org/ From ijavaid at usa.net Tue Dec 13 19:20:39 2005 From: ijavaid at usa.net (Imran Javaid) Date: Tue, 13 Dec 2005 21:20:39 -0600 Subject: [Chicago-talk] Script design question Message-ID: <751JLNDun1264S06.1134530439@cmsweb06.cms.usa.net> Suggestion 1: First analyze the A-Z list and see which letters have more users and possibly also which letters have users who use more disk space. Then divide those into 4 groups so that total time to backup each of those 4 groups takes roughly the same amount of time. Fork for each of those 4 groups. Suggestion 2: Use threads. Have a control array. Create a thread for an alphabet letter and add to the control array if the array's length is <= 4. If equal to 4, wait for a thread to finish and remove that entry from the control array. Create a new thread, and so forth till you have gone through the alphabet. -imran ------ Original Message ------ Received: Tue, 13 Dec 2005 06:21:50 PM CST From: "Young, Darren" To: "Chicago.pm chatter" Subject: [Chicago-talk] Script design question > > Looking for some input on a script before I sit down and try to create > it. The basic need is to launch 4 system commands (at the same time) and > watch each one for completion and when one is done to start another. > Basically, it needs to keep 4 child processes running up to a defined > end. > > If that doesn't make sense, here's what it's for. In order to run > backups on our mail system we have to use a Sun supplied binary > (imsbackup). As an argument this binary takes what are called "groups" > to perform a given backup. Those "groups" are defined in another file > (backup-groups.conf) and contains lines such as: > groupA=a* > groupB=b* > > And so on and so forth until the letter Z. groupA are users that start > with the letter a, groupB are the b's, and so on. Now, since these > backups take so long to run we're going to run 4 of them in parallel, > each one against a different group. So, from the command line I would: > imsbackup -i -f- /gsbims/groupA > /export/backups/groupA.bkp & > imsbackup -i -f- /gsbims/groupB > /export/backups/groupB.bkp & > > Do that for groups A-D and let them run. Then, the first one that > completed would fall off the "to-do" list and the next letter group will > be started (E in this case). Then on to F, G, etc. Testing so far says > that an individual group can take up to 2-3 hours to complete so I have > to be able to deal with processes that sit and run for a while and > produce no output. Not sure what exit codes the imsbackup program gives > back, but I'm betting it's just a 0 or 1. > > Now, if one of them fails all I need to do is log the fact that it did > and move on. Additionally, I'd like to keep track of the time it took to > perform each group "thread" and log that as well. I'd prefer not to have > a script call other scripts as opposed to calling the commands > themselves, I've found that I lose tidbits here and there from > sub-scripts. While that's a preference, it's certainly not required. > > The part that I need help with is how to actually spawn each child and > watch for their outcome (reliably). The waitpid() call seems to wait for > one particular process to complete or am I reading the docs incorrectly? > Am I talking about using threads in this case or am I over-engineering > what I want done? I've done plenty of whil() stuff previously but > only on a single process. > > Any thoughts on this would be very appreciated. > > ------------------------------------------------------------- > | Darren Young | http://www.chicagogsb.edu | > | Senior UNIX Administrator | darren.young at chicagogsb.edu | > | University of Chicago GSB | darren.young at gsb.uchicago.edu | > ------------------------------------------------------------- > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > From merlyn at stonehenge.com Tue Dec 13 20:34:55 2005 From: merlyn at stonehenge.com (Randal L. Schwartz) Date: 13 Dec 2005 20:34:55 -0800 Subject: [Chicago-talk] Script design question In-Reply-To: <490F3E9EEF01B04598860AAB71777B4E2BF6AF@GSBEX.gsb.uchicago.edu> References: <490F3E9EEF01B04598860AAB71777B4E2BF6AF@GSBEX.gsb.uchicago.edu> Message-ID: <86slswpa8g.fsf@blue.stonehenge.com> >>>>> "Darren" == Young, Darren writes: Darren> If that doesn't make sense, here's what it's for. In order to run Darren> backups on our mail system we have to use a Sun supplied binary Darren> (imsbackup). As an argument this binary takes what are called "groups" Darren> to perform a given backup. Those "groups" are defined in another file Darren> (backup-groups.conf) and contains lines such as: Darren> groupA=a* Darren> groupB=b* Darren> And so on and so forth until the letter Z. groupA are users that start Darren> with the letter a, groupB are the b's, and so on. Now, since these Darren> backups take so long to run we're going to run 4 of them in parallel, Darren> each one against a different group. So, from the command line I would: Darren> imsbackup -i -f- /gsbims/groupA > /export/backups/groupA.bkp & Darren> imsbackup -i -f- /gsbims/groupB > /export/backups/groupB.bkp & Darren> Do that for groups A-D and let them run. Then, the first one that Darren> completed would fall off the "to-do" list and the next letter group will Darren> be started (E in this case). Then on to F, G, etc. Testing so far says Darren> that an individual group can take up to 2-3 hours to complete so I have Darren> to be able to deal with processes that sit and run for a while and Darren> produce no output. Not sure what exit codes the imsbackup program gives Darren> back, but I'm betting it's just a 0 or 1. I know it's not Perl, but in the past, I've done something like this: Set up a GNU Makefile that looks like: OUTPUTS= $(patsubst %, /export/backups/group%.bkp, A B C D E F [upto] Z) all: $(OUTPUTS) /export/backups/%.bkp: imsbackup -i -f- /gsbims/$* >$@ Then execute this with "make -j4 all" (might need gmake or gnumake). The -j4 will keep 4 jobs running at all times, going on to the next one as soon as one finishes. Works real nice. GNU make can also work off loadaverage instead, if that's your real concern. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! From Darren.Young at ChicagoGSB.edu Wed Dec 14 03:51:59 2005 From: Darren.Young at ChicagoGSB.edu (Young, Darren) Date: Wed, 14 Dec 2005 05:51:59 -0600 Subject: [Chicago-talk] Script design question Message-ID: <490F3E9EEF01B04598860AAB71777B4E2BF6B1@GSBEX.gsb.uchicago.edu> > > I know it's not Perl, but in the past, I've done something like this: Doesn't *have* to be Perl, whatever gets the job done. > > Set up a GNU Makefile that looks like: > > OUTPUTS= $(patsubst %, /export/backups/group%.bkp, A B C > D E F [upto] Z) > all: $(OUTPUTS) > /export/backups/%.bkp: > imsbackup -i -f- /gsbims/$* >$@ > > Then execute this with "make -j4 all" (might need gmake or gnumake). > > The -j4 will keep 4 jobs running at all times, going on to the next > one as soon as one finishes. Works real nice. Extremely original idea. I haven't actually written a Makefile in quite some time and never would have thought of this one. Now I'm curious to see how this would work. > GNU make can also work off loadaverage instead, if that's > your real concern. > It's really a tradeoff between time to complete and performance impact, so yes, load average should be accounted for. I'll have to take a look at this option as well and see how that could fit in. I guess as long as the mail user's crontab has a MAILTO in it, we'll get "status" information. I did forget to mention that it'll probably be kicked off from cron. That or as a Tivoli PRESCHEDcmd, haven't decided yet. From frag at ripco.com Wed Dec 14 07:37:56 2005 From: frag at ripco.com (Mike Fragassi) Date: Wed, 14 Dec 2005 09:37:56 -0600 (CST) Subject: [Chicago-talk] Script design question In-Reply-To: <490F3E9EEF01B04598860AAB71777B4E2BF6AF@GSBEX.gsb.uchicago.edu> References: <490F3E9EEF01B04598860AAB71777B4E2BF6AF@GSBEX.gsb.uchicago.edu> Message-ID: On Tue, 13 Dec 2005, Young, Darren wrote: > The basic need is to launch 4 system commands (at the same time) and > watch each one for completion and when one is done to start another. > Basically, it needs to keep 4 child processes running up to a defined > end. This is one of those cases where there is a relatively simple CPAN module that does this exact thing, and it does it well. It's called Parallel::ForkManager. Basically, it works like this: my $forker = new Parallel::ForkManager(4); # The numeric arg = number of simultaneous child processes you want. ## Set up callback functions that are called when each child process ## starts and finishes. $forker->run_on_start( sub { my ($pid) = @_; # Code for logging the start of a new # child process can go here. } ); $forker->run_on_finish( sub { my ($pid, $exit_code) = @_; # Code for logging the end of a # child process can go here. } ); ## Spawn children, keeping 4 running. for my $group (@groups) { my $pid = $forker->start() and next; ## Rest of loop is the code that each forked child ## process should do with its $group. In your case, run the ## imsbackup and get the exit code. ## Let's assume you've stored the imsbackup exit code ## in the variable $exit_code: $forker->finish($exit_code); # closes process } That's it. The whole thing uses waitpid(), but wraps it up so you never have to directly deal with it. In the callbacks, the pid of the child is always passed in, along with whatever variables you pass in to start() or finish(). In the example that's what I've done with $exit_code for finish(). I've been using Parallel::ForkManager for the last few years; if you use it and need help, let me know. POE should work too, but it's much more complicated. -- Mike F. From Darren.Young at ChicagoGSB.edu Wed Dec 14 08:27:15 2005 From: Darren.Young at ChicagoGSB.edu (Young, Darren) Date: Wed, 14 Dec 2005 10:27:15 -0600 Subject: [Chicago-talk] Script design question Message-ID: <490F3E9EEF01B04598860AAB71777B4E2BF6B4@GSBEX.gsb.uchicago.edu> > > This is one of those cases where there is a relatively simple > CPAN module > that does this exact thing, and it does it well. It's called > Parallel::ForkManager. This one look perfect, think I'll start with this. I'd much rather 'buy' rather than build. > > POE should work too, but it's much more complicated. Looked it over, seems like it would but is more than I need for this. Thanks. From andy at petdance.com Thu Dec 15 12:20:30 2005 From: andy at petdance.com (Andy Lester) Date: Thu, 15 Dec 2005 14:20:30 -0600 Subject: [Chicago-talk] Mark your calendars for a special Chicago.PM meeting Message-ID: <20051215202030.GE21323@petdance.com> Mark your calendars for a special Chicago.PM meeting on Febuary 6th, with a special guest speaker. I can't say anything else at this point. But it'll be big. So save the date. xoxo, Andy -- Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance From jason at multiply.org Thu Dec 15 12:23:50 2005 From: jason at multiply.org (Jason Gessner) Date: Thu, 15 Dec 2005 14:23:50 -0600 Subject: [Chicago-talk] Mark your calendars for a special Chicago.PM meeting In-Reply-To: <20051215202030.GE21323@petdance.com> References: <20051215202030.GE21323@petdance.com> Message-ID: <7874008E-591D-4C4E-977F-072D82B586DE@multiply.org> does this mystery meeting have a location? -jason On Dec 15, 2005, at 2:20 PM, Andy Lester wrote: > Mark your calendars for a special Chicago.PM meeting on Febuary 6th, > with a special guest speaker. > > I can't say anything else at this point. But it'll be big. So > save the > date. > > xoxo, > Andy > > -- > Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk From jason at multiply.org Thu Dec 15 12:23:50 2005 From: jason at multiply.org (Jason Gessner) Date: Thu, 15 Dec 2005 14:23:50 -0600 Subject: [Chicago-talk] Mark your calendars for a special Chicago.PM meeting In-Reply-To: <20051215202030.GE21323@petdance.com> References: <20051215202030.GE21323@petdance.com> Message-ID: <7874008E-591D-4C4E-977F-072D82B586DE@multiply.org> does this mystery meeting have a location? -jason On Dec 15, 2005, at 2:20 PM, Andy Lester wrote: > Mark your calendars for a special Chicago.PM meeting on Febuary 6th, > with a special guest speaker. > > I can't say anything else at this point. But it'll be big. So > save the > date. > > xoxo, > Andy > > -- > Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk From tigerpeng2001 at yahoo.com Thu Dec 15 12:31:01 2005 From: tigerpeng2001 at yahoo.com (tiger peng) Date: Thu, 15 Dec 2005 12:31:01 -0800 (PST) Subject: [Chicago-talk] Mark your calendars for a special Chicago.PM meeting In-Reply-To: <7874008E-591D-4C4E-977F-072D82B586DE@multiply.org> Message-ID: <20051215203101.91384.qmail@web54707.mail.yahoo.com> and time? --- Jason Gessner wrote: > does this mystery meeting have a location? > > -jason > > On Dec 15, 2005, at 2:20 PM, Andy Lester wrote: > > > Mark your calendars for a special Chicago.PM > meeting on Febuary 6th, > > with a special guest speaker. > > > > I can't say anything else at this point. But > it'll be big. So > > save the > > date. > > > > xoxo, > > Andy > > > > -- > > Andy Lester => andy at petdance.com => > www.petdance.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 jason at multiply.org Thu Dec 15 12:32:03 2005 From: jason at multiply.org (Jason Gessner) Date: Thu, 15 Dec 2005 14:32:03 -0600 Subject: [Chicago-talk] Mark your calendars for a special Chicago.PM meeting In-Reply-To: <20051215203101.91384.qmail@web54707.mail.yahoo.com> References: <20051215203101.91384.qmail@web54707.mail.yahoo.com> Message-ID: andy must have a magical calendar that knows his secret thoughts..... -jason On Dec 15, 2005, at 2:31 PM, tiger peng wrote: > and time? > > --- Jason Gessner wrote: > >> does this mystery meeting have a location? >> >> -jason >> >> On Dec 15, 2005, at 2:20 PM, Andy Lester wrote: >> >>> Mark your calendars for a special Chicago.PM >> meeting on Febuary 6th, >>> with a special guest speaker. >>> >>> I can't say anything else at this point. But >> it'll be big. So >>> save the >>> date. >>> >>> xoxo, >>> Andy >>> >>> -- >>> Andy Lester => andy at petdance.com => >> www.petdance.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 >> > > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk From ehs at pobox.com Thu Dec 15 12:34:19 2005 From: ehs at pobox.com (Ed Summers) Date: Thu, 15 Dec 2005 14:34:19 -0600 Subject: [Chicago-talk] Mark your calendars for a special Chicago.PM meeting In-Reply-To: References: <20051215203101.91384.qmail@web54707.mail.yahoo.com> Message-ID: How about we vote on who we think it is: damian +1 //Ed From mongers at bsod.net Thu Dec 15 12:39:51 2005 From: mongers at bsod.net (Pete Krawczyk) Date: Thu, 15 Dec 2005 14:39:51 -0600 (CST) Subject: [Chicago-talk] Mark your calendars for a special Chicago.PM meeting In-Reply-To: Message-ID: Subject: Re: [Chicago-talk] Mark your calendars for a special Chicago.PM meeting From: Ed Summers Date: Thu, 15 Dec 2005 14:34:19 -0600 }How about we vote on who we think it is: } }damian +1 I don't think Damian would fly from Australia to Chicago twice in one year (it's pretty darn expensive). -Pete K -- Pete Krawczyk mongers at bsod dot net From shawn.c.carroll at gmail.com Thu Dec 15 12:43:44 2005 From: shawn.c.carroll at gmail.com (Shawn Carroll) Date: Thu, 15 Dec 2005 14:43:44 -0600 Subject: [Chicago-talk] Mark your calendars for a special Chicago.PM meeting In-Reply-To: References: Message-ID: On 12/15/05, Pete Krawczyk wrote: > Subject: Re: [Chicago-talk] Mark your calendars for a special Chicago.PM meeting > From: Ed Summers > Date: Thu, 15 Dec 2005 14:34:19 -0600 > > }How about we vote on who we think it is: > } > }damian +1 > > I don't think Damian would fly from Australia to Chicago twice in one > year (it's pretty darn expensive). > > -Pete K > -- I'd vote for LarryW -- shawn.c.carroll at gmail.com Perl Programmer Soccer Referee From ehs at pobox.com Thu Dec 15 12:44:16 2005 From: ehs at pobox.com (Ed Summers) Date: Thu, 15 Dec 2005 14:44:16 -0600 Subject: [Chicago-talk] Mark your calendars for a special Chicago.PM meeting In-Reply-To: References: Message-ID: > I don't think Damian would fly from Australia to Chicago twice in one > year (it's pretty darn expensive). Yeah, you're probably right, but that wasn't much of a vote, unless it was: damian -1 //Ed From andy at petdance.com Thu Dec 15 12:46:58 2005 From: andy at petdance.com (Andy Lester) Date: Thu, 15 Dec 2005 14:46:58 -0600 Subject: [Chicago-talk] Mark your calendars for a special Chicago.PM meeting In-Reply-To: <7874008E-591D-4C4E-977F-072D82B586DE@multiply.org> References: <20051215202030.GE21323@petdance.com> <7874008E-591D-4C4E-977F-072D82B586DE@multiply.org> Message-ID: <20051215204658.GF21323@petdance.com> On Thu, Dec 15, 2005 at 02:23:50PM -0600, Jason Gessner (jason at multiply.org) wrote: > does this mystery meeting have a location? It'll be out here. It'll have to be. -- Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance From andy at petdance.com Thu Dec 15 12:46:58 2005 From: andy at petdance.com (Andy Lester) Date: Thu, 15 Dec 2005 14:46:58 -0600 Subject: [Chicago-talk] Mark your calendars for a special Chicago.PM meeting In-Reply-To: <7874008E-591D-4C4E-977F-072D82B586DE@multiply.org> References: <20051215202030.GE21323@petdance.com> <7874008E-591D-4C4E-977F-072D82B586DE@multiply.org> Message-ID: <20051215204658.GF21323@petdance.com> On Thu, Dec 15, 2005 at 02:23:50PM -0600, Jason Gessner (jason at multiply.org) wrote: > does this mystery meeting have a location? It'll be out here. It'll have to be. -- Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance From jason at multiply.org Thu Dec 15 12:47:08 2005 From: jason at multiply.org (Jason Gessner) Date: Thu, 15 Dec 2005 14:47:08 -0600 Subject: [Chicago-talk] Mark your calendars for a special Chicago.PM meeting In-Reply-To: References: Message-ID: <98B2BB85-24A4-4E49-AC6E-73D13FD47CB7@multiply.org> randal schwartz -1 guido van rossum +1 larry wall +1 -jason On Dec 15, 2005, at 2:39 PM, Pete Krawczyk wrote: > Subject: Re: [Chicago-talk] Mark your calendars for a special > Chicago.PM meeting > From: Ed Summers > Date: Thu, 15 Dec 2005 14:34:19 -0600 > > }How about we vote on who we think it is: > } > }damian +1 > > I don't think Damian would fly from Australia to Chicago twice in one > year (it's pretty darn expensive). > > -Pete K > -- > Pete Krawczyk > mongers at bsod dot net > > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk From jason at multiply.org Thu Dec 15 12:48:38 2005 From: jason at multiply.org (Jason Gessner) Date: Thu, 15 Dec 2005 14:48:38 -0600 Subject: [Chicago-talk] Mark your calendars for a special Chicago.PM meeting In-Reply-To: <20051215204658.GF21323@petdance.com> References: <20051215202030.GE21323@petdance.com> <7874008E-591D-4C4E-977F-072D82B586DE@multiply.org> <20051215204658.GF21323@petdance.com> Message-ID: <34FA4B84-BA0F-4404-A7BB-DF372792DE04@multiply.org> On Dec 15, 2005, at 2:46 PM, Andy Lester wrote: > On Thu, Dec 15, 2005 at 02:23:50PM -0600, Jason Gessner > (jason at multiply.org) wrote: >> does this mystery meeting have a location? > > It'll be out here. It'll have to be. will it have to be because this giant guest can only fit in McHenry? The big buildings down town wouldn't give him enough room to move? king kong +1 -jason From jason at multiply.org Thu Dec 15 12:48:38 2005 From: jason at multiply.org (Jason Gessner) Date: Thu, 15 Dec 2005 14:48:38 -0600 Subject: [Chicago-talk] Mark your calendars for a special Chicago.PM meeting In-Reply-To: <20051215204658.GF21323@petdance.com> References: <20051215202030.GE21323@petdance.com> <7874008E-591D-4C4E-977F-072D82B586DE@multiply.org> <20051215204658.GF21323@petdance.com> Message-ID: <34FA4B84-BA0F-4404-A7BB-DF372792DE04@multiply.org> On Dec 15, 2005, at 2:46 PM, Andy Lester wrote: > On Thu, Dec 15, 2005 at 02:23:50PM -0600, Jason Gessner > (jason at multiply.org) wrote: >> does this mystery meeting have a location? > > It'll be out here. It'll have to be. will it have to be because this giant guest can only fit in McHenry? The big buildings down town wouldn't give him enough room to move? king kong +1 -jason From frag at ripco.com Thu Dec 15 13:39:36 2005 From: frag at ripco.com (Mike Fragassi) Date: Thu, 15 Dec 2005 15:39:36 -0600 (CST) Subject: [Chicago-talk] Mark your calendars for a special Chicago.PM meeting In-Reply-To: References: <20051215203101.91384.qmail@web54707.mail.yahoo.com> Message-ID: On Thu, 15 Dec 2005, Ed Summers wrote: > How about we vote on who we think it is: MJD +1 Schwern +1 -- Mike F. From fire at dls.net Thu Dec 15 13:51:09 2005 From: fire at dls.net (Bradley Slavik) Date: Thu, 15 Dec 2005 15:51:09 -0600 Subject: [Chicago-talk] Mark your calendars for a special Chicago.PM meeting In-Reply-To: <34FA4B84-BA0F-4404-A7BB-DF372792DE04@multiply.org> References: <20051215202030.GE21323@petdance.com> <7874008E-591D-4C4E-977F-072D82B586DE@multiply.org> <20051215204658.GF21323@petdance.com> <34FA4B84-BA0F-4404-A7BB-DF372792DE04@multiply.org> Message-ID: <20051215215109.76CE796854C@demolition.dls.net> > On Dec 15, 2005, at 2:46 PM, Andy Lester wrote: > > > On Thu, Dec 15, 2005 at 02:23:50PM -0600, Jason Gessner   > > (jason at multiply.org) wrote: > >> does this mystery meeting have a location? > > > > It'll be out here.  It'll have to be. > > > will it have to be because this giant guest can only fit in McHenry?   > The big buildings down town wouldn't give him enough room to move? > > king kong +1 > > -jason Ach! Common sense, me laddy! Obviously, our good friend Andy Lester has contracted someone who really knows Perl to either do some training or development for his workplace. And this poor waif agreed to also talk to us barbarians because the risk of getting in front of this crowd did not sink in when proposed. Understood? Bradley Slavik P.S. You can pump me all you want. I have no idea WHO Andy is talking about, and will not be able to spoil his surprise. I also will NOT ask Andy to reveal it. This kind of surprise is the kind I like. From andy at petdance.com Thu Dec 15 13:57:44 2005 From: andy at petdance.com (Andy Lester) Date: Thu, 15 Dec 2005 15:57:44 -0600 Subject: [Chicago-talk] Mark your calendars for a special Chicago.PM meeting In-Reply-To: <34FA4B84-BA0F-4404-A7BB-DF372792DE04@multiply.org> References: <20051215202030.GE21323@petdance.com> <7874008E-591D-4C4E-977F-072D82B586DE@multiply.org> <20051215204658.GF21323@petdance.com> <34FA4B84-BA0F-4404-A7BB-DF372792DE04@multiply.org> Message-ID: <20051215215744.GG21323@petdance.com> On Thu, Dec 15, 2005 at 02:48:38PM -0600, Jason Gessner (jason at multiply.org) wrote: > will it have to be because this giant guest can only fit in McHenry? > The big buildings down town wouldn't give him enough room to move? > > king kong +1 I said I couldn't tell you anything else. But here's what I'll tell you. * Our special PM meeting will be somewhere out in the NW suburbs, possibly even in beautiful McHenry county. Having it in the city is highly improbable, logistically. * Special PM meeting will be in the evening. In the PM, if you will. * I have not specified that the speaker is male. * I have not specified that the speaker is at all related to Perl, or even open source. It is possible, for example, that the speaker is Steve "Monkey Boy" Ballmer. * The speaker is indeed a primate. However, the speaker is less than 7 feet tall, so King Kong is excluded. * Everything could fall through at this point, which is why I have not yet made an official announcement. xoxo, Andy -- Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance From andy at petdance.com Thu Dec 15 13:57:44 2005 From: andy at petdance.com (Andy Lester) Date: Thu, 15 Dec 2005 15:57:44 -0600 Subject: [Chicago-talk] Mark your calendars for a special Chicago.PM meeting In-Reply-To: <34FA4B84-BA0F-4404-A7BB-DF372792DE04@multiply.org> References: <20051215202030.GE21323@petdance.com> <7874008E-591D-4C4E-977F-072D82B586DE@multiply.org> <20051215204658.GF21323@petdance.com> <34FA4B84-BA0F-4404-A7BB-DF372792DE04@multiply.org> Message-ID: <20051215215744.GG21323@petdance.com> On Thu, Dec 15, 2005 at 02:48:38PM -0600, Jason Gessner (jason at multiply.org) wrote: > will it have to be because this giant guest can only fit in McHenry? > The big buildings down town wouldn't give him enough room to move? > > king kong +1 I said I couldn't tell you anything else. But here's what I'll tell you. * Our special PM meeting will be somewhere out in the NW suburbs, possibly even in beautiful McHenry county. Having it in the city is highly improbable, logistically. * Special PM meeting will be in the evening. In the PM, if you will. * I have not specified that the speaker is male. * I have not specified that the speaker is at all related to Perl, or even open source. It is possible, for example, that the speaker is Steve "Monkey Boy" Ballmer. * The speaker is indeed a primate. However, the speaker is less than 7 feet tall, so King Kong is excluded. * Everything could fall through at this point, which is why I have not yet made an official announcement. xoxo, Andy -- Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance From jim at jimandkoka.com Thu Dec 15 14:05:40 2005 From: jim at jimandkoka.com (Jim Thomason) Date: Thu, 15 Dec 2005 16:05:40 -0600 Subject: [Chicago-talk] Mark your calendars for a special Chicago.PM meeting In-Reply-To: <20051215215744.GG21323@petdance.com> References: <20051215202030.GE21323@petdance.com> <7874008E-591D-4C4E-977F-072D82B586DE@multiply.org> <20051215204658.GF21323@petdance.com> <34FA4B84-BA0F-4404-A7BB-DF372792DE04@multiply.org> <20051215215744.GG21323@petdance.com> Message-ID: <5cfdfaf70512151405y79b34139m195e518e591f72ce@mail.gmail.com> Yeah, well, Andy may not be able to tell you anything else, but I can. Supposedly the talk will be on using perl in embedded systems, such as garbage disposals and thermostats. The speaker is a bit of a germophobe so s/he's afraid of getting close to big cities. Hence, it's in the suburbs. Though, -technically- only the audience will be. It needs to be housed out in McHenry because they're the only office in the area with sophisticated enough VR equipment to properly show the presentation. The actual speaker may not be physically present. I heard that the speaker is going to give us all chocolate bars and sacks of gold. My money's on Bea Arthur. -Jim.... On 12/15/05, Andy Lester wrote: > On Thu, Dec 15, 2005 at 02:48:38PM -0600, Jason Gessner (jason at multiply.org) wrote: > > will it have to be because this giant guest can only fit in McHenry? > > The big buildings down town wouldn't give him enough room to move? > > > > king kong +1 > > I said I couldn't tell you anything else. > > But here's what I'll tell you. > > * Our special PM meeting will be somewhere out in the NW suburbs, > possibly even in beautiful McHenry county. Having it in the city is > highly improbable, logistically. > > * Special PM meeting will be in the evening. In the PM, if you will. > > * I have not specified that the speaker is male. > > * I have not specified that the speaker is at all related to Perl, or > even open source. It is possible, for example, that the speaker is > Steve "Monkey Boy" Ballmer. > > * The speaker is indeed a primate. However, the speaker is less than 7 > feet tall, so King Kong is excluded. > > * Everything could fall through at this point, which is why I have not > yet made an official announcement. > > xoxo, > Andy > > -- > Andy Lester => andy at petdance.com => www.petdance.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 Thu Dec 15 14:17:47 2005 From: andy at petdance.com (Andy Lester) Date: Thu, 15 Dec 2005 16:17:47 -0600 Subject: [Chicago-talk] Mark your calendars for a special Chicago.PM meeting In-Reply-To: <5cfdfaf70512151405y79b34139m195e518e591f72ce@mail.gmail.com> References: <20051215202030.GE21323@petdance.com> <7874008E-591D-4C4E-977F-072D82B586DE@multiply.org> <20051215204658.GF21323@petdance.com> <34FA4B84-BA0F-4404-A7BB-DF372792DE04@multiply.org> <20051215215744.GG21323@petdance.com> <5cfdfaf70512151405y79b34139m195e518e591f72ce@mail.gmail.com> Message-ID: <20051215221747.GH21323@petdance.com> On Thu, Dec 15, 2005 at 04:05:40PM -0600, Jim Thomason (jim at jimandkoka.com) wrote: > My money's on Bea Arthur. I can neither confirm nor deny that the speaker will be Bea Arthur. xoa -- Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance From ehs at pobox.com Thu Dec 15 14:25:17 2005 From: ehs at pobox.com (Ed Summers) Date: Thu, 15 Dec 2005 16:25:17 -0600 Subject: [Chicago-talk] Mark your calendars for a special Chicago.PM meeting In-Reply-To: <20051215221747.GH21323@petdance.com> References: <20051215202030.GE21323@petdance.com> <7874008E-591D-4C4E-977F-072D82B586DE@multiply.org> <20051215204658.GF21323@petdance.com> <34FA4B84-BA0F-4404-A7BB-DF372792DE04@multiply.org> <20051215215744.GG21323@petdance.com> <5cfdfaf70512151405y79b34139m195e518e591f72ce@mail.gmail.com> <20051215221747.GH21323@petdance.com> Message-ID: I know this isn't ohio.pm, but can I vote twice? Andy Lester +1 From perl at cromedome.net Thu Dec 15 14:27:48 2005 From: perl at cromedome.net (Jason A. Crome) Date: Thu, 15 Dec 2005 16:27:48 -0600 Subject: [Chicago-talk] Mark your calendars for a special Chicago.PM meeting In-Reply-To: References: <20051215202030.GE21323@petdance.com> <7874008E-591D-4C4E-977F-072D82B586DE@multiply.org> <20051215204658.GF21323@petdance.com> <34FA4B84-BA0F-4404-A7BB-DF372792DE04@multiply.org> <20051215215744.GG21323@petdance.com> <5cfdfaf70512151405y79b34139m195e518e591f72ce@mail.gmail.com> <20051215221747.GH21323@petdance.com> Message-ID: In the spirit of the Chicago Board of Elections - vote early, vote often! On Dec 15, 2005, at 4:25 PM, Ed Summers wrote: > I know this isn't ohio.pm, but can I vote twice? > > Andy Lester +1 > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > From adam at jamradar.com Thu Dec 15 18:07:55 2005 From: adam at jamradar.com (Adam) Date: Thu, 15 Dec 2005 20:07:55 -0600 Subject: [Chicago-talk] Mark your calendars for a special Chicago.PMmeeting References: <20051215202030.GE21323@petdance.com><7874008E-591D-4C4E-977F-072D82B586DE@multiply.org><20051215204658.GF21323@petdance.com><34FA4B84-BA0F-4404-A7BB-DF372792DE04@multiply.org><20051215215744.GG21323@petdance.com><5cfdfaf70512151405y79b34139m195e518e591f72ce@mail.gmail.com><20051215221747.GH21323@petdance.com> Message-ID: <005401c601e5$8a88af70$0200a8c0@PANASONIULSWMR> McHenry drive-in theatre? ----- Original Message ----- From: "Jason A. Crome" To: "Chicago.pm chatter" Sent: Thursday, December 15, 2005 4:27 PM Subject: Re: [Chicago-talk] Mark your calendars for a special Chicago.PMmeeting > In the spirit of the Chicago Board of Elections - vote early, vote > often! > > On Dec 15, 2005, at 4:25 PM, Ed Summers wrote: > > > I know this isn't ohio.pm, but can I vote twice? > > > > Andy Lester +1 > > _______________________________________________ > > 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 Darren.Young at ChicagoGSB.edu Fri Dec 16 14:30:23 2005 From: Darren.Young at ChicagoGSB.edu (Young, Darren) Date: Fri, 16 Dec 2005 16:30:23 -0600 Subject: [Chicago-talk] Script design question Message-ID: <490F3E9EEF01B04598860AAB71777B4E2BF6CD@GSBEX.gsb.uchicago.edu> Thanks, I've been looking at using one or more of the suggestions here, thanks for the input! Have a few questions though. > #!perl > use strict; > use warnings; > use POSIX ":sys_wait_h"; # Not sure if you need this. > > my ($pid1, $pid2); > > if( ($pid1 = fork()) == 0 ) { > sleep 10; > print "child 1\n"; > exit 69; > } > > if( ($pid2 = fork()) == 0 ) { > print "child 2 execs `date`\n"; > exec("date") or die "error executing `date`!\n"; > # exec never returns on success At this point in the example, using system() wouldn't be a good idea since it does a fork() itself correct Also, how can I deal with grabbing stdout and stderr from what exec() produced? Should I just dup those at the beginning of the script to a logfile as in: open( STDOUT, ">>$LOGFILE" ) or die "Unable to dup STDOUT: ($!)\n"; open( STDIN, "/dev/null" ) or die "Can't read /dev/null: ($!)"; open( STDERR, ">>&STDOUT" ) or die "Can't dup stdout: ($!)"; What if a the command exec()'d exits with values other than just true or false? How could that be reached and passed upstream? In your example, you examined $? in the while($kid) loop, is the '$? / 256' the return value from the exec() call or the command that exec() in fact executed? If it is in fact the return from the exec()'d command, is that because you have no explicit exit() in that portion and $? is set to the value of the last expression (like what happens at the end of a sub)? The perldoc for exec() says: "It fails and returns false only if the command does not exist and it is executed directly instead of via your system's command shell" So, it seems that exec() returns false *only* when that particular condition is met. So if I tried to exec('/foo/bar/cmd') and it doesn't exist, it will come back false. If however, /foo/bar/cmd returns say, 32 exec() still comes back with true. Reason I ask is that I know some of the iPlanet utilities have return codes other than 0 or 1 that indicate "transient" error conditions. What if I used something like open3 inside the fork() to obtain access to STDIN, STDOUT and STDERR individually? Doesn't sound like a good idea to me, but I've never tried it. > } > > my $kid; > # Blocking waitpid. > while( ($kid = waitpid(-1, 0)) != -1 ) { > my $status = $? / 256; > if ( $kid == $pid1 ) { > print "Child 1 exited with status $status\n"; > } > elsif ( $kid == $pid2 ) { > print "Child 2 exited with status $status\n"; > } > else { > die "Got unexpected child pid. Shouldn't happen.\n"; > } > } From easyasy2k at gmail.com Fri Dec 16 19:53:10 2005 From: easyasy2k at gmail.com (Leland Johnson) Date: Fri, 16 Dec 2005 21:53:10 -0600 Subject: [Chicago-talk] Script design question In-Reply-To: <490F3E9EEF01B04598860AAB71777B4E2BF6CD@GSBEX.gsb.uchicago.edu> References: <490F3E9EEF01B04598860AAB71777B4E2BF6CD@GSBEX.gsb.uchicago.edu> Message-ID: Happy to help. I had no idea I'd be applying knowledge from class this quickly. On Dec 16, 2005, at 4:30 PM, Young, Darren wrote: >> if( ($pid2 = fork()) == 0 ) { >> print "child 2 execs `date`\n"; >> exec("date") or die "error executing `date`!\n"; >> # exec never returns on success > > At this point in the example, using system() wouldn't be a good idea > since it does a fork() itself correct Yes. > Also, how can I deal with grabbing stdout and stderr from what exec() > produced? Should I just dup those at the beginning of the script to a > logfile as in: > > open( STDOUT, ">>$LOGFILE" ) or die "Unable to dup STDOUT: ($!) > \n"; > open( STDIN, "/dev/null" ) or die "Can't read /dev/null: ($!)"; > open( STDERR, ">>&STDOUT" ) or die "Can't dup stdout: ($!)"; Yep. I'd dup everything to different files in the child processes (fork() == 0) though. You'd probably want each process writing to a different log file, since they could write lines in any order. Also, using the three argument version of open is almost always a good idea. > What if a the command exec()'d exits with values other than just > true or > false? exec() does not return, unless it fails to execute the command (*not* the command fails). If exec() works, that perl process is overwritten (in memory) with the new process, so no more code in that particular perl process is run. > How could that be reached and passed upstream? You could potentially exit with some odd status code if exec() fails can catch that in the while(waitpid...) loop. > In your example, > you examined $? in the while($kid) loop, is the '$? / 256' the return > value from the exec() call or the command that exec() in fact > executed? $? is "The status returned by the last...successful call to wait() or waitpid()... Thus, the exit value of the subprocess is really ("$? >> 8")". (perlvar) Basically a direct interface to the C call - except C has lots of macros to easily dissect it. The return value meaning the status of the program that waitpid() was waiting on (what exec() executed or the perl process that failed to exec() - they have the same pid). > If it is in fact the return from the exec()'d command, is that because > you have no explicit exit() in that portion and $? is set to the value > of the last expression (like what happens at the end of a sub)? $? wouldn't be set since exec() doesn't make a child process, or do anything else that would change it (see perlvar). > The perldoc for exec() says: "It fails and returns false only if the > command does not exist and it is executed directly instead of via your > system's command shell" > > So, it seems that exec() returns false *only* when that particular > condition is met. So if I tried to exec('/foo/bar/cmd') and it doesn't > exist, it will come back false. If however, /foo/bar/cmd returns > say, 32 > exec() still comes back with true. Reason I ask is that I know some of > the iPlanet utilities have return codes other than 0 or 1 that > indicate > "transient" error conditions. exec() doesn't return. $?/256 will hold the return codes of the $kid child process that just completed/exited/whatever in the while (waitpid...) loop. > What if I used something like open3 inside the fork() to obtain access > to STDIN, STDOUT and STDERR individually? Doesn't sound like a good > idea > to me, but I've never tried it. Looks complicated. I haven't used it either. Using sysread is definitely complicated. I would really avoid this unless the launcher really had to know the output of the log files as its written. There's probably an easier way to do that anyways (named pipe on file system for log files?). --- Leland Johnson http://protoplasmic.org/ From jason at multiply.org Fri Dec 16 20:22:36 2005 From: jason at multiply.org (Jason Gessner) Date: Fri, 16 Dec 2005 22:22:36 -0600 Subject: [Chicago-talk] Chicago Open Source Languages Planet Message-ID: Hi All. I have started top put together a planet (http:// www.planetplanet.org/) feed aggregator for our local user group crews and other local open source hackers. At the moment, this is hosted on my server at http:// chicagoopensource.multiply.org/ I don't like the name, so if anyone has suggestions, please fire them off. Also, the people on there i either didn't need to ask permission from or have emailed me specifically asking to be added. If you have a blog and would like to be added, please reply off list and let me know! Happy blogging! -jason gessner jason at multiply.org From ng at johnwlong.com Sat Dec 17 05:29:53 2005 From: ng at johnwlong.com (John W. Long) Date: Sat, 17 Dec 2005 07:29:53 -0600 Subject: [Chicago-talk] Chicago Open Source Languages Planet In-Reply-To: References: Message-ID: <43A412D1.9030101@johnwlong.com> Jason Gessner wrote: > I don't like the name, so if anyone has suggestions, please fire them > off. What about one of these: chicagodev.org chidev.org chisource.org hackchicago.org opensourcechicago.org or perhaps: snakes-rubies-and-perls-oh-my.com :) -- John From ng at johnwlong.com Sat Dec 17 05:36:26 2005 From: ng at johnwlong.com (John W. Long) Date: Sat, 17 Dec 2005 07:36:26 -0600 Subject: [Chicago-talk] Chicago Open Source Languages Planet In-Reply-To: <43A412D1.9030101@johnwlong.com> References: <43A412D1.9030101@johnwlong.com> Message-ID: <43A4145A.6080407@johnwlong.com> or even: chicagocode.org codechicago.org chicagocoders.org chicagohackers.org chicagohacker.org -- John John W. Long wrote: > Jason Gessner wrote: > > I don't like the name, so if anyone has suggestions, please fire them > > off. > > What about one of these: > > chicagodev.org > chidev.org > chisource.org > hackchicago.org > opensourcechicago.org > > or perhaps: > > snakes-rubies-and-perls-oh-my.com :) > > -- > John > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > From tigerpeng2001 at yahoo.com Sat Dec 17 13:23:27 2005 From: tigerpeng2001 at yahoo.com (tiger peng) Date: Sat, 17 Dec 2005 13:23:27 -0800 (PST) Subject: [Chicago-talk] Chicago Open Source Languages Planet In-Reply-To: <43A4145A.6080407@johnwlong.com> Message-ID: <20051217212327.97902.qmail@web54715.mail.yahoo.com> how about chop-chop.org or chip-chop-go.org? -> 1. perldoc -f chop 2. http://m-w.com/cgi-bin/dictionary?va=chop-chop --- "John W. Long" wrote: > or even: > > chicagocode.org > codechicago.org > chicagocoders.org > chicagohackers.org > chicagohacker.org > > -- > John > > John W. Long wrote: > > Jason Gessner wrote: > > > I don't like the name, so if anyone has > suggestions, please fire them > > > off. > > > > What about one of these: > > > > chicagodev.org > > chidev.org > > chisource.org > > hackchicago.org > > opensourcechicago.org > > > > or perhaps: > > > > snakes-rubies-and-perls-oh-my.com :) > > > > -- > > John > > _______________________________________________ > > 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 lembark at wrkhors.com Mon Dec 19 10:23:01 2005 From: lembark at wrkhors.com (Steven Lembark) Date: Mon, 19 Dec 2005 13:23:01 -0500 Subject: [Chicago-talk] Script design question In-Reply-To: <490F3E9EEF01B04598860AAB71777B4E2BF6AF@GSBEX.gsb.uchicago.edu> References: <490F3E9EEF01B04598860AAB71777B4E2BF6AF@GSBEX.gsb.uchicago.edu> Message-ID: <27919E21786F0E62F38717E6@duke.wrkhors.com> -- "Young, Darren" > > Looking for some input on a script before I sit down and try to create > it. The basic need is to launch 4 system commands (at the same time) and > watch each one for completion and when one is done to start another. > Basically, it needs to keep 4 child processes running up to a defined > end. Look at Schedule::Parallel. You pass in a paralle job count and array of closures. It tracks the stauts and returns the unused portion if any of the jobs returns non-zero (so you can fix the problem or report what went wrong). The closures allow you to pass in arbitray code that has to be run. For the backup you can use a single sub that takes what has to be backed up as an argument and then submit it with something like: use Schedule::Parallel; my @backupz = qw( /path/to/one /path/to/another ... ); my @queue = map { my $path = $_; sub { imbackup $path } } @backupz; runqueue 4, @queue; __END__ S::P will keep track of exit status and report on non-zero exits or signals killing things. -- Steven Lembark 85-09 90th Street Workhorse Computing Woodhaven, NY 11421 lembark at wrkhors.com 1 888 359 3508 From lembark at wrkhors.com Mon Dec 19 10:26:57 2005 From: lembark at wrkhors.com (Steven Lembark) Date: Mon, 19 Dec 2005 13:26:57 -0500 Subject: [Chicago-talk] Script design question In-Reply-To: <490F3E9EEF01B04598860AAB71777B4E2BF6B4@GSBEX.gsb.uchicago.edu> References: <490F3E9EEF01B04598860AAB71777B4E2BF6B4@GSBEX.gsb.uchicago.edu> Message-ID: <1B41386794F46CD53440729B@duke.wrkhors.com> -- "Young, Darren" >> >> This is one of those cases where there is a relatively simple >> CPAN module >> that does this exact thing, and it does it well. It's called >> Parallel::ForkManager. > > This one look perfect, think I'll start with this. I'd much rather 'buy' > rather than build. One advantage in this case for S::P is that the queue can be built up in advance (the array of closures). With P::FM you end up having to incorporate its execution into your loop. P::S grew out of a situation where we had to bzip, gzip, or just move several hundred files per day based on their size and type. Building the queue with a for loop on advance from the paths and just passing it into runque helped simplify the logic. -- Steven Lembark 85-09 90th Street Workhorse Computing Woodhaven, NY 11421 lembark at wrkhors.com 1 888 359 3508 From lembark at wrkhors.com Mon Dec 19 10:29:58 2005 From: lembark at wrkhors.com (Steven Lembark) Date: Mon, 19 Dec 2005 13:29:58 -0500 Subject: [Chicago-talk] Script design question In-Reply-To: <86slswpa8g.fsf@blue.stonehenge.com> References: <490F3E9EEF01B04598860AAB71777B4E2BF6AF@GSBEX.gsb.uchicago.edu> <86slswpa8g.fsf@blue.stonehenge.com> Message-ID: <0BB3C6E6E6DBB6F1BED438CF@duke.wrkhors.com> > I know it's not Perl, but in the past, I've done something like this: > > Set up a GNU Makefile that looks like: > > OUTPUTS= $(patsubst %, /export/backups/group%.bkp, A B C D E F [upto] > Z) all: $(OUTPUTS) > /export/backups/%.bkp: > imsbackup -i -f- /gsbims/$* >$@ > > Then execute this with "make -j4 all" (might need gmake or gnumake). > > The -j4 will keep 4 jobs running at all times, going on to the next > one as soon as one finishes. Works real nice. > > GNU make can also work off loadaverage instead, if that's your real > concern. That or use Schedule::Depend, which will happily dispatch shell or perl without having to wrap everything in shell #!'s. As a heuristic, you can sort the backups from largest to smallest and run them N-way parallel with Schedule::Parallel to get a balanced average runtime. This will also give you a fairly predictable system load. -- Steven Lembark 85-09 90th Street Workhorse Computing Woodhaven, NY 11421 lembark at wrkhors.com 1 888 359 3508 From richard at rushlogistics.com Wed Dec 28 05:24:27 2005 From: richard at rushlogistics.com (Richard Reina) Date: Wed, 28 Dec 2005 05:24:27 -0800 (PST) Subject: [Chicago-talk] how to recreate keystoke lost in cbreak? Message-ID: <20051228132427.41247.qmail@web402.biz.mail.mud.yahoo.com> I have a program that attemps to detect user inactivity with the following code. use Term::Readkey; ReadMode('cbreak'); unless(my $key = ReadkKey(20)) { # no key was pressed. do something } else { # key was pressed ReadMode('normal'); } It works as intedended except for one important defect. The first keystroke that triggers the else gets lost. I've tried adding print $key; after the Readmode('normal') line (in the else) which puts the output on the screen, but this seems to not have the same affect as the keystroke acctually being typed when ReadMode is normal. Does anyone know how I can recreate that lost keystroke. Any help would be greatly appreciated. Happy New Year. Richard A people that values its privileges above its principles soon loses both. -Dwight D. Eisenhower. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/chicago-talk/attachments/20051228/d90fe687/attachment.html From lembark at wrkhors.com Wed Dec 28 10:03:22 2005 From: lembark at wrkhors.com (Steven Lembark) Date: Wed, 28 Dec 2005 13:03:22 -0500 Subject: [Chicago-talk] how to recreate keystoke lost in cbreak? In-Reply-To: <20051228132427.41247.qmail@web402.biz.mail.mud.yahoo.com> References: <20051228132427.41247.qmail@web402.biz.mail.mud.yahoo.com> Message-ID: <6F8E435F4A89A99998F56322@duke.wrkhors.com> -- Richard Reina > > I have a program that attemps to detect user inactivity with the > following code. > > use Term::Readkey; > ReadMode('cbreak'); > unless(my $key = ReadkKey(20)) { Push the scope of $key out of the if-block into the main loop: my $key = ''; unless( $key = ReadKey(...) ) { ... } else { ... } # $key is still available here for # processing. -- Steven Lembark 85-09 90th Street Workhorse Computing Woodhaven, NY 11421 lembark at wrkhors.com 1 888 359 3508 From mongers at bsod.net Wed Dec 28 10:07:10 2005 From: mongers at bsod.net (Pete Krawczyk) Date: Wed, 28 Dec 2005 12:07:10 -0600 (CST) Subject: [Chicago-talk] how to recreate keystoke lost in cbreak? In-Reply-To: <20051228132427.41247.qmail@web402.biz.mail.mud.yahoo.com> Message-ID: Subject: [Chicago-talk] how to recreate keystoke lost in cbreak? From: Richard Reina Date: Wed, 28 Dec 2005 05:24:27 -0800 (PST) }It works as intedended except for one important defect. The first }keystroke that triggers the else gets lost. First of all, please send code that compiles and runs to the list when you're having problems. The module is Term::ReadKey, not Term::Readkey, and it implements a ReadKey function, not ReadkKey. That said, your problem is in your control structure. unless (my $a = sub()) { # $a is in scope here do_stuff(); # $a falls out of scope here } else { # $a is not in scope here } So really, your code has two options: Move the 'my $key' above the unless statement, or make it an if statement and reverse your blocks of code. -Pete K -- Pete Krawczyk mongers at bsod dot net From richard at rushlogistics.com Wed Dec 28 13:21:59 2005 From: richard at rushlogistics.com (Richard Reina) Date: Wed, 28 Dec 2005 13:21:59 -0800 (PST) Subject: [Chicago-talk] how to recreate keystoke lost in cbreak? In-Reply-To: Message-ID: <20051228212159.18328.qmail@web407.biz.mail.mud.yahoo.com> Pete and Steve, Thank you for the very instructive responses. I appreciate it. Have a Happy New Year. Richard Pete Krawczyk wrote: Subject: [Chicago-talk] how to recreate keystoke lost in cbreak? From: Richard Reina Date: Wed, 28 Dec 2005 05:24:27 -0800 (PST) }It works as intedended except for one important defect. The first }keystroke that triggers the else gets lost. First of all, please send code that compiles and runs to the list when you're having problems. The module is Term::ReadKey, not Term::Readkey, and it implements a ReadKey function, not ReadkKey. That said, your problem is in your control structure. unless (my $a = sub()) { # $a is in scope here do_stuff(); # $a falls out of scope here } else { # $a is not in scope here } So really, your code has two options: Move the 'my $key' above the unless statement, or make it an if statement and reverse your blocks of code. -Pete K -- Pete Krawczyk mongers at bsod dot net _______________________________________________ Chicago-talk mailing list Chicago-talk at pm.org http://mail.pm.org/mailman/listinfo/chicago-talk A people that values its privileges above its principles soon loses both. -Dwight D. Eisenhower. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/chicago-talk/attachments/20051228/37310b47/attachment.html