From jay at jays.net Wed Apr 1 05:54:25 2009 From: jay at jays.net (Jay Hannah) Date: Wed, 1 Apr 2009 07:54:25 -0500 Subject: [Omaha.pm] PDF::TextBlock Message-ID: <0339CA3D-0C3F-4B11-9308-36A0B2C4A504@jays.net> woot! http://search.cpan.org/~jhannah/PDF-TextBlock-0.01/lib/PDF/TextBlock.pm j From dan at linder.org Wed Apr 1 06:36:35 2009 From: dan at linder.org (Dan Linder) Date: Wed, 1 Apr 2009 08:36:35 -0500 Subject: [Omaha.pm] Regional VBScript programmers mailing list? Message-ID: <3e2be50904010636k69f1c2f3je8fd6ef50ae58ca@mail.gmail.com> I'm working on a project at work and have to update the VBScript portion to run on Windows 2008 and Vista. Due to some of the changes in Win2K8, the data I'm looking for is no longer present at their old locations. (Specifically Windows service pack and hotfix information details that use to be under "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\HotFix" - that branch doesn't exist anymore. From what I can see, the new method is to use WMI calls and query the "Win32_QuickFixEngineering" portion, but that only contains part of the data.) Now to my question... :-) I know these lists (OLUG and Perl Mongers) are definately not the correct mailing list for this sort of thing, but what other local (i.e. Omaha Nebraska and/or regional) lists can others recommend? Thanks in advance, Dan -- "Quis custodiet ipsos custodes?" (Who can watch the watchmen?) -- from the Satires of Juvenal "I do not fear computers, I fear the lack of them." -- Isaac Asimov (Author) ** *** ***** ******* *********** ************* -------------- next part -------------- An HTML attachment was scrubbed... URL: From jay at jays.net Wed Apr 1 07:57:03 2009 From: jay at jays.net (Jay Hannah) Date: Wed, 1 Apr 2009 09:57:03 -0500 Subject: [Omaha.pm] Regional VBScript programmers mailing list? In-Reply-To: <3e2be50904010636k69f1c2f3je8fd6ef50ae58ca@mail.gmail.com> References: <3e2be50904010636k69f1c2f3je8fd6ef50ae58ca@mail.gmail.com> Message-ID: <881173DC-A5BA-4DFA-8F92-CB7611EA916D@jays.net> On Apr 1, 2009, at 8:36 AM, Dan Linder wrote: > I know these lists (OLUG and Perl Mongers) are definately not the > correct mailing list for this sort of thing, but what other local > (i.e. Omaha Nebraska and/or regional) lists can others recommend? OmahaMTG.com? http://jays.net/wiki/Omaha_User_Groups j From rob.townley at gmail.com Sun Apr 5 04:45:29 2009 From: rob.townley at gmail.com (Rob Townley) Date: Sun, 5 Apr 2009 06:45:29 -0500 Subject: [Omaha.pm] [OT] PCI authorize without actual posting Message-ID: <7e84ed60904050445g6bcee5fax3fb221745b07b1af@mail.gmail.com> PCI for this convo isn't Peripheral Component Interconnect, but Payment Card Industry. There should be a few pros on the list considering this is Omaha. There are authorizations to withdraw money and a few days later, the actual withdrawal - termed a post. Pay a bill online Friday morning and it shows up Friday morning via your banks website immediately. Saturday, the transaction disappears from your online account. Monday you wonder if you actually paid the bill. Tuesday, it appears again and the money is actually withdrawn. Have any of you had low level experience with a merchant processing system platform? gnucash may be an example, maybe. My banker said that sometimes the authorization goes through, but the merchant system does not go back and do a successful post to actually take the money out. I find that a little hard to believe - i mean there are bugs and then there is giving money away. Capitalism makes that bug impossible. The battery backup could die, but the transaction processing would fix it later, boss. Consider some frat boys renting a hotel room. The hotel may require a credit card and request authorization to withdraw for a hefty room deposit. This creates some kind of authorization number that usually goes unused. The frat boys check out Sunday morning calmly thinking management won't notice the hole in the wall and the missing faucet. Sunday afternoon, the cleaning lady reports the damage. Management cashes in that deposit authorization number, effectively converting it to a sale. I can see that authorizations and capturing a previous authorization would be two different steps, but nobody ever forgets that second step, right? No website is that dumb, right? For more info, do a search for tran_type on the following page. http://secure.netbilling.com/public/docs/merchant/public/directmode/directmode3protocol.html i have been up far too many hours ... sorry for the rambling. From samuel.tesla at gmail.com Tue Apr 7 23:18:56 2009 From: samuel.tesla at gmail.com (Samuel Tesla) Date: Wed, 8 Apr 2009 01:18:56 -0500 Subject: [Omaha.pm] April 14th Meeting: Double Feature Message-ID: <4bd555f70904072318y407e7797vebe0be1fc52efe44@mail.gmail.com> Next week's meeting of the Omaha Dynamic Language User Group is going to be an awesome one. We have not one, but two speakers in from out of town. It's a dynamic language double feature. Randal Schwartz will be presenting the talk he's giving at Infotec, "Seaside: your next web framework." Come learn about this exciting framework that lets you bring the power of the smalltalk IDE to bear on modern web application development. Andy Lester will be giving his popular talk "Get Out Of Technical Debt Now!" We all have technical debt in our projects: documentation that doesn't get written, bugs that get forgotten, broken tests that get ignored. Andy has a strategy for cleaning it up, and convincing your management to let you do it. Next week's meeting will be sponsored by the good folks at Tek Systems, and they'll be providing pizza and pop. http://odynug.kicks-ass.org Meeting location is UNO's Peter Kiewit Institute (PKI) building 1110 South 67th Street Omaha, NE -- Samuel From jay at jays.net Wed Apr 8 05:34:43 2009 From: jay at jays.net (Jay Hannah) Date: Wed, 8 Apr 2009 07:34:43 -0500 Subject: [Omaha.pm] Google Code Search Message-ID: <93403BDD-DF39-4A63-A82A-59E0FA5F898B@jays.net> Google Code Search is fascinating (and NOT the same thing as code.google.com). I have 86 hits so far: http://www.google.com/codesearch?hl=en&lr=&q=%22jay+hannah% 22&sbtn=Search "Andy Lester" has "about 5,000" hits. :) Strangely, while it seems to love github, it doesn't seem to like indexing our SVN server at UNO: https://clabsvn.ist.unomaha.edu/anonsvn/CLAB/ https://clabsvn.ist.unomaha.edu/anonsvn/user/jhannah j From jay at jays.net Wed Apr 8 06:17:54 2009 From: jay at jays.net (Jay Hannah) Date: Wed, 8 Apr 2009 08:17:54 -0500 Subject: [Omaha.pm] [odynug] April 14th Meeting: Double Feature In-Reply-To: <4bd555f70904072318y407e7797vebe0be1fc52efe44@mail.gmail.com> References: <4bd555f70904072318y407e7797vebe0be1fc52efe44@mail.gmail.com> Message-ID: <26805FC8-BA56-43D3-84D0-BF409978A93E@jays.net> Can somebody update the web site? :) http://odynug.blainebuxton.net/ http://odynug.kicks-ass.org/ j On Apr 8, 2009, at 1:18 AM, Samuel Tesla wrote: > Next week's meeting of the Omaha Dynamic Language User Group is going > to be an awesome one. We have not one, but two speakers in from out of > town. It's a dynamic language double feature. > > Randal Schwartz will be presenting the talk he's giving at Infotec, > "Seaside: your next web framework." Come learn about this exciting > framework that lets you bring the power of the smalltalk IDE to bear > on modern web application development. > > Andy Lester will be giving his popular talk "Get Out Of Technical Debt > Now!" We all have technical debt in our projects: documentation that > doesn't get written, bugs that get forgotten, broken tests that get > ignored. Andy has a strategy for cleaning it up, and convincing your > management to let you do it. > > Next week's meeting will be sponsored by the good folks at Tek > Systems, and they'll be providing pizza and pop. > > http://odynug.kicks-ass.org > > Meeting location is UNO's Peter Kiewit Institute (PKI) building > 1110 South 67th Street > Omaha, NE > From robert.fulkerson at gmail.com Wed Apr 8 06:38:18 2009 From: robert.fulkerson at gmail.com (Robert Fulkerson) Date: Wed, 8 Apr 2009 08:38:18 -0500 Subject: [Omaha.pm] [odynug] April 14th Meeting: Double Feature In-Reply-To: <26805FC8-BA56-43D3-84D0-BF409978A93E@jays.net> References: <4bd555f70904072318y407e7797vebe0be1fc52efe44@mail.gmail.com> <26805FC8-BA56-43D3-84D0-BF409978A93E@jays.net> Message-ID: <6cb6eebc0904080638oe1c9e28l79edd2a4ecfaf842@mail.gmail.com> Holy &%^!! If I can figure out how to squeeze my remaining lecture material into just one night instead of two, is there room for a class of about 25-30 Perl students to come crash the party?! -- b On Wed, Apr 8, 2009 at 8:17 AM, Jay Hannah wrote: > Can somebody update the web site? :) > > http://odynug.blainebuxton.net/ > http://odynug.kicks-ass.org/ > > j > > > On Apr 8, 2009, at 1:18 AM, Samuel Tesla wrote: > >> Next week's meeting of the Omaha Dynamic Language User Group is going >> to be an awesome one. We have not one, but two speakers in from out of >> town. It's a dynamic language double feature. >> >> Randal Schwartz will be presenting the talk he's giving at Infotec, >> "Seaside: your next web framework." Come learn about this exciting >> framework that lets you bring the power of the smalltalk IDE to bear >> on modern web application development. >> >> Andy Lester will be giving his popular talk "Get Out Of Technical Debt >> Now!" We all have technical debt in our projects: documentation that >> doesn't get written, bugs that get forgotten, broken tests that get >> ignored. Andy has a strategy for cleaning it up, and convincing your >> management to let you do it. >> >> Next week's meeting will be sponsored by the good folks at Tek >> Systems, and they'll be providing pizza and pop. >> >> http://odynug.kicks-ass.org >> >> Meeting location is UNO's Peter Kiewit Institute (PKI) building >> 1110 South 67th Street >> Omaha, NE >> >> _______________________________________________ > Omaha-pm mailing list > Omaha-pm at pm.org > http://mail.pm.org/mailman/listinfo/omaha-pm > -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy at petdance.com Wed Apr 8 06:48:22 2009 From: andy at petdance.com (Andy Lester) Date: Wed, 8 Apr 2009 08:48:22 -0500 Subject: [Omaha.pm] [odynug] April 14th Meeting: Double Feature In-Reply-To: <6cb6eebc0904080638oe1c9e28l79edd2a4ecfaf842@mail.gmail.com> References: <4bd555f70904072318y407e7797vebe0be1fc52efe44@mail.gmail.com> <26805FC8-BA56-43D3-84D0-BF409978A93E@jays.net> <6cb6eebc0904080638oe1c9e28l79edd2a4ecfaf842@mail.gmail.com> Message-ID: <2D5A25E0-57B3-4208-99C1-5A80F4181546@petdance.com> On Apr 8, 2009, at 8:38 AM, Robert Fulkerson wrote: > If I can figure out how to squeeze my remaining lecture material > into just one night instead of two, is there room for a class of > about 25-30 Perl students to come crash the party?! When is your Perl students class? Do you meet on Thursday? I could probably come talk to you guys on Thursday if you wanted. -- Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance From robert.fulkerson at gmail.com Wed Apr 8 06:55:40 2009 From: robert.fulkerson at gmail.com (Robert Fulkerson) Date: Wed, 8 Apr 2009 08:55:40 -0500 Subject: [Omaha.pm] [odynug] April 14th Meeting: Double Feature In-Reply-To: <2D5A25E0-57B3-4208-99C1-5A80F4181546@petdance.com> References: <4bd555f70904072318y407e7797vebe0be1fc52efe44@mail.gmail.com> <26805FC8-BA56-43D3-84D0-BF409978A93E@jays.net> <6cb6eebc0904080638oe1c9e28l79edd2a4ecfaf842@mail.gmail.com> <2D5A25E0-57B3-4208-99C1-5A80F4181546@petdance.com> Message-ID: <6cb6eebc0904080655s152a230fve1d532bf302ec70d@mail.gmail.com> Nope, we meet on Tuesdays, too. So it would be a field trip down the hall ... if I just hadn't canceled class last week, this would be easier to juggle. :) On Wed, Apr 8, 2009 at 8:48 AM, Andy Lester wrote: > > On Apr 8, 2009, at 8:38 AM, Robert Fulkerson wrote: > > If I can figure out how to squeeze my remaining lecture material into just >> one night instead of two, is there room for a class of about 25-30 Perl >> students to come crash the party?! >> > > > When is your Perl students class? Do you meet on Thursday? I could > probably come talk to you guys on Thursday if you wanted. > > -- > Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance > > > > > _______________________________________________ > Omaha-pm mailing list > Omaha-pm at pm.org > http://mail.pm.org/mailman/listinfo/omaha-pm > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rob.townley at gmail.com Wed Apr 8 08:04:42 2009 From: rob.townley at gmail.com (Rob Townley) Date: Wed, 8 Apr 2009 10:04:42 -0500 Subject: [Omaha.pm] [odynug] April 14th Meeting: Double Feature In-Reply-To: <4bd555f70904072318y407e7797vebe0be1fc52efe44@mail.gmail.com> References: <4bd555f70904072318y407e7797vebe0be1fc52efe44@mail.gmail.com> Message-ID: <7e84ed60904080804x31b197f6ub2c51205c03f26e9@mail.gmail.com> is that THE Randall Schwartz of Perl? On 4/8/09, Samuel Tesla wrote: > > Next week's meeting of the Omaha Dynamic Language User Group is going > to be an awesome one. We have not one, but two speakers in from out of > town. It's a dynamic language double feature. > > Randal Schwartz will be presenting the talk he's giving at Infotec, > "Seaside: your next web framework." Come learn about this exciting > framework that lets you bring the power of the smalltalk IDE to bear > on modern web application development. > > Andy Lester will be giving his popular talk "Get Out Of Technical Debt > Now!" We all have technical debt in our projects: documentation that > doesn't get written, bugs that get forgotten, broken tests that get > ignored. Andy has a strategy for cleaning it up, and convincing your > management to let you do it. > > Next week's meeting will be sponsored by the good folks at Tek > Systems, and they'll be providing pizza and pop. > > http://odynug.kicks-ass.org > > Meeting location is UNO's Peter Kiewit Institute (PKI) building > 1110 South 67th Street > Omaha, NE > > -- Samuel > > --~--~---------~--~----~------------~-------~--~----~ > You received this message because you are subscribed to the Google Groups > "Omaha Dynamic Language User Group" group. > To post to this group, send email to odynug at googlegroups.com > To unsubscribe from this group, send email to > odynug+unsubscribe at googlegroups.com > For more options, visit this group at > http://groups.google.com/group/odynug?hl=en > -~----------~----~----~----~------~----~------~--~--- > > From andy at petdance.com Wed Apr 8 08:07:32 2009 From: andy at petdance.com (Andy Lester) Date: Wed, 8 Apr 2009 10:07:32 -0500 Subject: [Omaha.pm] [odynug] April 14th Meeting: Double Feature In-Reply-To: <7e84ed60904080804x31b197f6ub2c51205c03f26e9@mail.gmail.com> References: <4bd555f70904072318y407e7797vebe0be1fc52efe44@mail.gmail.com> <7e84ed60904080804x31b197f6ub2c51205c03f26e9@mail.gmail.com> Message-ID: <87BEF97F-A969-4C38-BAB7-BFC865005A59@petdance.com> On Apr 8, 2009, at 10:04 AM, Rob Townley wrote: > is that THE Randall Schwartz of Perl? Like there's another one? -- Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance From samuel.tesla at gmail.com Wed Apr 8 13:19:22 2009 From: samuel.tesla at gmail.com (Samuel Tesla) Date: Wed, 8 Apr 2009 15:19:22 -0500 Subject: [Omaha.pm] [odynug] April 14th Meeting: Double Feature In-Reply-To: <6cb6eebc0904080638oe1c9e28l79edd2a4ecfaf842@mail.gmail.com> References: <4bd555f70904072318y407e7797vebe0be1fc52efe44@mail.gmail.com> <26805FC8-BA56-43D3-84D0-BF409978A93E@jays.net> <6cb6eebc0904080638oe1c9e28l79edd2a4ecfaf842@mail.gmail.com> Message-ID: <4bd555f70904081319w4c0aef0es57a861eed24f2bce@mail.gmail.com> It might be only standing room, but you're more than welcome. We're up in PKI 269 (which I omitted from the original announcement, oops), and we usually have between 15 and 20 people at the meetings. 2009/4/8 Robert Fulkerson : > Holy &%^!! > > If I can figure out how to squeeze my remaining lecture material into just > one night instead of two, is there room for a class of about 25-30 Perl > students to come crash the party?! > > -- b > > On Wed, Apr 8, 2009 at 8:17 AM, Jay Hannah wrote: >> >> Can somebody update the web site? ?:) >> >> ? http://odynug.blainebuxton.net/ >> ? http://odynug.kicks-ass.org/ >> >> j >> >> >> On Apr 8, 2009, at 1:18 AM, Samuel Tesla wrote: >>> >>> Next week's meeting of the Omaha Dynamic Language User Group is going >>> to be an awesome one. We have not one, but two speakers in from out of >>> ?town. It's a dynamic language double feature. >>> >>> Randal Schwartz will be presenting the talk he's giving at Infotec, >>> "Seaside: your next web framework." Come learn about this exciting >>> framework that lets you bring the power of the smalltalk IDE to bear >>> on modern web application development. >>> >>> Andy Lester will be giving his popular talk "Get Out Of Technical Debt >>> Now!" We all have technical debt in our projects: documentation that >>> doesn't get written, bugs that get forgotten, broken tests that get >>> ignored. Andy has a strategy for cleaning it up, and convincing your >>> management to let you do it. >>> >>> Next week's meeting will be sponsored by the good folks at Tek >>> Systems, and they'll be providing pizza and pop. >>> >>> http://odynug.kicks-ass.org >>> >>> Meeting location is UNO's Peter Kiewit Institute (PKI) building >>> 1110 South 67th Street >>> Omaha, NE >>> >> _______________________________________________ >> Omaha-pm mailing list >> Omaha-pm at pm.org >> http://mail.pm.org/mailman/listinfo/omaha-pm > > > _______________________________________________ > Omaha-pm mailing list > Omaha-pm at pm.org > http://mail.pm.org/mailman/listinfo/omaha-pm > From samuel.tesla at gmail.com Wed Apr 8 13:20:42 2009 From: samuel.tesla at gmail.com (Samuel Tesla) Date: Wed, 8 Apr 2009 15:20:42 -0500 Subject: [Omaha.pm] April 14th Meeting: Double Feature In-Reply-To: <4bd555f70904072318y407e7797vebe0be1fc52efe44@mail.gmail.com> References: <4bd555f70904072318y407e7797vebe0be1fc52efe44@mail.gmail.com> Message-ID: <4bd555f70904081320w4c4150b0l3fa1436ecec989d8@mail.gmail.com> I realized that I omitted the room number from the announcement. We're in room 269, which is all the way at the end of the northwest hallway on the second floor. -- Samuel On Wed, Apr 8, 2009 at 1:18 AM, Samuel Tesla wrote: > Next week's meeting of the Omaha Dynamic Language User Group is going > to be an awesome one. We have not one, but two speakers in from out of > ?town. It's a dynamic language double feature. > > Randal Schwartz will be presenting the talk he's giving at Infotec, > "Seaside: your next web framework." Come learn about this exciting > framework that lets you bring the power of the smalltalk IDE to bear > on modern web application development. > > Andy Lester will be giving his popular talk "Get Out Of Technical Debt > Now!" We all have technical debt in our projects: documentation that > doesn't get written, bugs that get forgotten, broken tests that get > ignored. Andy has a strategy for cleaning it up, and convincing your > management to let you do it. > > Next week's meeting will be sponsored by the good folks at Tek > Systems, and they'll be providing pizza and pop. > > http://odynug.kicks-ass.org > > Meeting location is UNO's Peter Kiewit Institute (PKI) building > 1110 South 67th Street > Omaha, NE > > -- Samuel > From samuel.tesla at gmail.com Mon Apr 13 20:34:12 2009 From: samuel.tesla at gmail.com (Samuel Tesla) Date: Mon, 13 Apr 2009 22:34:12 -0500 Subject: [Omaha.pm] April 14th Meeting: Double Feature In-Reply-To: <4bd555f70904081320w4c4150b0l3fa1436ecec989d8@mail.gmail.com> References: <4bd555f70904072318y407e7797vebe0be1fc52efe44@mail.gmail.com> <4bd555f70904081320w4c4150b0l3fa1436ecec989d8@mail.gmail.com> Message-ID: <4bd555f70904132034n2895daf9m6acffdff5647a9d@mail.gmail.com> In an effort to accommodate both Bob Fulkerson's perl class and the usual suspects that show up to the group, we're going to be moving the meeting to room 252. I'll put up a sign on the door at 269. Bob's going to try and wrap up his class early so we can come in at 6:30 and do our socializing like usual. -- Samuel On Wed, Apr 8, 2009 at 3:20 PM, Samuel Tesla wrote: > I realized that I omitted the room number from the announcement. > > We're in room 269, which is all the way at the end of the northwest > hallway on the second floor. > > -- Samuel > > On Wed, Apr 8, 2009 at 1:18 AM, Samuel Tesla wrote: >> Next week's meeting of the Omaha Dynamic Language User Group is going >> to be an awesome one. We have not one, but two speakers in from out of >> ?town. It's a dynamic language double feature. >> >> Randal Schwartz will be presenting the talk he's giving at Infotec, >> "Seaside: your next web framework." Come learn about this exciting >> framework that lets you bring the power of the smalltalk IDE to bear >> on modern web application development. >> >> Andy Lester will be giving his popular talk "Get Out Of Technical Debt >> Now!" We all have technical debt in our projects: documentation that >> doesn't get written, bugs that get forgotten, broken tests that get >> ignored. Andy has a strategy for cleaning it up, and convincing your >> management to let you do it. >> >> Next week's meeting will be sponsored by the good folks at Tek >> Systems, and they'll be providing pizza and pop. >> >> http://odynug.kicks-ass.org >> >> Meeting location is UNO's Peter Kiewit Institute (PKI) building >> 1110 South 67th Street >> Omaha, NE >> >> -- Samuel >> > From andy at petdance.com Mon Apr 13 20:35:35 2009 From: andy at petdance.com (Andy Lester) Date: Mon, 13 Apr 2009 22:35:35 -0500 Subject: [Omaha.pm] [odynug] Re: April 14th Meeting: Double Feature In-Reply-To: <4bd555f70904132034n2895daf9m6acffdff5647a9d@mail.gmail.com> References: <4bd555f70904072318y407e7797vebe0be1fc52efe44@mail.gmail.com> <4bd555f70904081320w4c4150b0l3fa1436ecec989d8@mail.gmail.com> <4bd555f70904132034n2895daf9m6acffdff5647a9d@mail.gmail.com> Message-ID: <4C168C0C-1CB9-4C4B-9FBF-AA0F6657E5E7@petdance.com> On Apr 13, 2009, at 10:34 PM, Samuel Tesla wrote: > > In an effort to accommodate both Bob Fulkerson's perl class and the > usual suspects that show up to the group, we're going to be moving the > meeting to room 252. And no Perl to be discussed! :-) Noted on my printouts & maps. Headin' out tomorrow at 0900. xoa -- Andy Lester => andy at petdance.com => www.theworkinggeek.com => AIM:petdance From jay at jays.net Tue Apr 14 05:21:02 2009 From: jay at jays.net (Jay Hannah) Date: Tue, 14 Apr 2009 07:21:02 -0500 Subject: [Omaha.pm] Padre + Catalyst Message-ID: I'm a vi guy myself, but if you're into fat development clients, check out Padre: http://onionstand.blogspot.com/2009/04/padre-catalyst.html j From jhannah at omnihotels.com Wed Apr 15 15:40:12 2009 From: jhannah at omnihotels.com (Jay Hannah) Date: Wed, 15 Apr 2009 17:40:12 -0500 Subject: [Omaha.pm] POE catches the jhannah bug Message-ID: <396CEDAA86B38646ACE2FEAA22C3FBF101A88774@l3exchange.omnihotels.net> Yikes! I've infected another open source project! Can't anyone stop me? http://poe.perl.org/ j ------------------------------------------------------------------------ r2523 | bingosnet | 2009-04-15 17:32:14 -0500 (Wed, 15 Apr 2009) | 1 line Changed paths: M /trunk/poe/lib/POE/Session.pm Typo in object_states POD, spotted by Jay Hannah ------------------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From jay at jays.net Fri Apr 17 09:00:14 2009 From: jay at jays.net (Jay Hannah) Date: Fri, 17 Apr 2009 11:00:14 -0500 Subject: [Omaha.pm] Perl 5.10.0 has 78,883 core tests. Ruby? Message-ID: <49E8A78E.3030603@jays.net> Oh, snap! 3 snaps, Z-shaped! Laugh, j http://use.perl.org/~Ovid/journal/38818 From Tim Bunce's Perl 5 Myths talk: Perl 5.10.0 has 78,883 core tests. Ruby has about 1,400. 1,400. So Perl 5 core test suite has about 50 times as many tests as Ruby. So who has the testing culture again? It's not entirely a fair comparison because it's not asserting how many features each language has, but I doubt that Ruby is so feature poor to justify Perl having more than 50 tests for every 1 of Ruby's. Hello, core Ruby developers! You've got an awesome language there. Could you start testing, please? Your community seems to do OK. Why not you? From dan at linder.org Sun Apr 19 15:42:31 2009 From: dan at linder.org (Dan Linder) Date: Sun, 19 Apr 2009 17:42:31 -0500 Subject: [Omaha.pm] Perl, fork, and waitpid() Message-ID: <3e2be50904191542r314c81ddpe212d54dcef2a5b8@mail.gmail.com> I'm trying to speed up some processing in a script. Currently, the script has a set of subroutines it runs through in sequence, some take only a second to run, others can run for minutes. Meanwhile the multi-core system is only using one CPU and the others are idle. What I'd like to do is have the parent process fork a number of children processes and wait for one to complete, then start another child to work on the next remaining subroutine. I've got the forking routine down and I can get multiple children running at one time, but waiting for any one of them to complete has me stumped. I've tried using "waitpid(-1,WNOHANG)" thinking that would return the PID of the last child to die, or "-1" if none had died since last checking, but that seems to just hang _waiting_ for the next death to happen... I did a "waitpid($pid_of_a_child, 0)" but tha just waits until that specific child dies. Anyone have any example code that can do this? Thanks, Dan "Quis custodiet ipsos custodes?" (Who can watch the watchmen?) -- from the Satires of Juvenal "I do not fear computers, I fear the lack of them." -- Isaac Asimov (Author) ** *** ***** ******* *********** ************* -------------- next part -------------- An HTML attachment was scrubbed... URL: From georgen at neillnet.com Sun Apr 19 20:07:27 2009 From: georgen at neillnet.com (George Neill) Date: Sun, 19 Apr 2009 22:07:27 -0500 Subject: [Omaha.pm] Perl, fork, and waitpid() In-Reply-To: <3e2be50904191542r314c81ddpe212d54dcef2a5b8@mail.gmail.com> References: <3e2be50904191542r314c81ddpe212d54dcef2a5b8@mail.gmail.com> Message-ID: Dan, 2009/4/19 Dan Linder : > I'm trying to speed up some processing in a script.? Currently, the script > has a set of subroutines it runs through in sequence, some take only a > second to run, others can run for minutes.? Meanwhile the multi-core system > is only using one CPU and the others are idle. > > What I'd like to do is have the parent process fork a number of children > processes and wait for one to complete, then start another child to work on > the next remaining subroutine.? I've got the forking routine down and I can > get multiple children running at one time, but waiting for any one of them > to complete has me stumped. > > I've tried using "waitpid(-1,WNOHANG)" thinking that would return the PID of > the last child to die, or "-1" if none had died since last checking, but > that seems to just hang _waiting_ for the next death to happen...?? I did a > "waitpid($pid_of_a_child, 0)" but tha just waits until that specific child > dies. > > Anyone have any example code that can do this? Well if you are indeed hooked on perl, you could probably something via async signals ... signal the parent from the child stating you are done. (or just make sure you catch the one it already sends when the child exits). With a quick google search I found this, http://kobesearch.cpan.org/htdocs/Parallel-Fork-BossWorkerAsync/Parallel/Fork/BossWorkerAsync.html On a non-perl related note ... perhaps you might find the xargs command useful here. HTH, George From jay at jays.net Mon Apr 20 17:42:12 2009 From: jay at jays.net (Jay Hannah) Date: Mon, 20 Apr 2009 19:42:12 -0500 Subject: [Omaha.pm] Perl, fork, and waitpid() In-Reply-To: <3e2be50904191542r314c81ddpe212d54dcef2a5b8@mail.gmail.com> References: <3e2be50904191542r314c81ddpe212d54dcef2a5b8@mail.gmail.com> Message-ID: <238502E5-0A61-41EC-BB56-155020D6FFF1@jays.net> On Apr 19, 2009, at 5:42 PM, Dan Linder wrote: > I've tried using "waitpid(-1,WNOHANG)" thinking that would return > the PID of the last child to die, or "-1" if none had died since > last checking, but that seems to just hang _waiting_ for the next > death to happen... I did a "waitpid($pid_of_a_child, 0)" but tha > just waits until that specific child dies. > > Anyone have any example code that can do this? We use POE for things like this. Specifically, this cookbook recipe: http://poe.perl.org/?POE_Cookbook/Child_Processes_3 There's a pretty active IRC channel that can help if you get stuck (irc.perl.org #poe). I'm sure there's mailing lists too. I got somebody started from scratch last week and he seemed to take to it pretty quickly. HTH, j POE::Wheel::Run for the win! :) From evaddnomaid at gmail.com Mon Apr 20 18:03:07 2009 From: evaddnomaid at gmail.com (Dave Burchell) Date: Mon, 20 Apr 2009 20:03:07 -0500 Subject: [Omaha.pm] Perl, fork, and waitpid() In-Reply-To: <3e2be50904191542r314c81ddpe212d54dcef2a5b8@mail.gmail.com> References: <3e2be50904191542r314c81ddpe212d54dcef2a5b8@mail.gmail.com> Message-ID: <6e25cf310904201803j4d5b9685ne8e43adcd73a7b3a@mail.gmail.com> 2009/4/19 Dan Linder > What I'd like to do is have the parent process fork a number of children > processes and wait for one to complete, then start another child to work on > the next remaining subroutine. So you'd like to have x child processes running at any given time? Will all the child processes be doing the same sort of work? I would think "wait" (rather than "waitpid") should fit the bill, as "wait" should return the PID of whatever child exited most recently, right? -- Dave Burchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From georgen at neillnet.com Mon Apr 20 19:16:44 2009 From: georgen at neillnet.com (George Neill) Date: Mon, 20 Apr 2009 21:16:44 -0500 Subject: [Omaha.pm] Perl, fork, and waitpid() In-Reply-To: <238502E5-0A61-41EC-BB56-155020D6FFF1@jays.net> References: <3e2be50904191542r314c81ddpe212d54dcef2a5b8@mail.gmail.com> <238502E5-0A61-41EC-BB56-155020D6FFF1@jays.net> Message-ID: On Mon, Apr 20, 2009 at 7:42 PM, Jay Hannah wrote: > On Apr 19, 2009, at 5:42 PM, Dan Linder wrote: >> >> I've tried using "waitpid(-1,WNOHANG)" thinking that would return the PID >> of the last child to die, or "-1" if none had died since last checking, but >> that seems to just hang _waiting_ for the next death to happen... ? I did a >> "waitpid($pid_of_a_child, 0)" but tha just waits until that specific child >> dies. >> >> Anyone have any example code that can do this? > > We use POE for things like this. Specifically, this cookbook recipe: > > http://poe.perl.org/?POE_Cookbook/Child_Processes_3 > > There's a pretty active IRC channel that can help if you get stuck > (irc.perl.org #poe). I'm sure there's mailing lists too. > > I got somebody started from scratch last week and he seemed to take to it > pretty quickly. POE looks pretty nifty Jay. If you want to be lazy (like me), here's a simple/quick xargs example to demonstrate how one could tackle the problem, gneill at blackfoot:~$ cat test.input 10 9 8 7 6 5 4 3 2 1 cat test.input | xargs --max-procs=4 --replace=timeout perl -e 'print "starting timeout\n"; sleep(timeout); print "finished timeout\n";' running 4 ways parallel, gneill at blackfoot:~$ time cat test.input | xargs --max-procs=4 --replace=timeout perl -e 'print "starting timeout\n"; sleep(timeout); print "finished timeout\n";' starting 10 starting 9 starting 8 starting 7 finished 7 starting 6 finished 8 starting 5 finished 9 starting 4 finished 10 starting 3 finished 3 starting 2 finished 4 starting 1 finished 5 finished 6 finished 1 finished 2 real 0m15.034s user 0m0.048s sys 0m0.016s running serial (aka, no --max-procs) gneill at blackfoot:~$ time cat test.input | xargs --replace=timeout perl -e 'print "starting timeout\n"; sleep(timeout); print "finished timeout\n";' starting 10 finished 10 starting 9 finished 9 starting 8 finished 8 starting 7 finished 7 starting 6 finished 6 starting 5 finished 5 starting 4 finished 4 starting 3 finished 3 starting 2 finished 2 starting 1 finished 1 real 0m55.087s user 0m0.036s sys 0m0.016s Later, George From robert.fulkerson at gmail.com Mon Apr 20 19:29:22 2009 From: robert.fulkerson at gmail.com (Robert Fulkerson) Date: Mon, 20 Apr 2009 21:29:22 -0500 Subject: [Omaha.pm] Yup, it's Student Lightning Talk Time in Omaha Again! Message-ID: <6cb6eebc0904201929x46eddca8jfd22100e33b10540@mail.gmail.com> Greetings everyone, It's that time of year again. :) The Spring 2009 UNO CSCI 2850 (Programming on the Internet) class invites you to an evening of lightning talks on Perl programming, the Firefox web browser and other (mostly) web-related topics. Lightning Talks are no longer than 5 minutes and can be about anything: a new idea, an evaluation, an observation, a story, a complaint, an explanation, a suggestion, a report of success or failure, a call to action, a description of a technique, technology, or a lament. Usually we split the talks over two nights, but this semester it's going to be one, big solid night of talks. - Where: Peter Kiewit Institute, Room 252 ( http://tinyurl.com/5g83cb ) - When: Tuesday, April 28th, 2009 - Time: 5:30 PM until 8:10 PM We hope to see you there! -- raf The list of topics: 1. Yahoo! Pipes 2. The Perl Debugger 3. Perl Newsfeeds 4. Controlling Amarok with DCOP::Amarok::Player 5. Hyper-V in Windows Server 2008/Vista 6. Using Business::PayPal::API 7. ?CGI is Dead; mod_perlite is Alive!? 8. Perl vs. PHP 9. Using Perl to do cool chemistry things! 10. XAMPP 11. Why Perl is better than a girlfriend 12. gskinner Regex Checker 13. IO::Socket 14. Difficulties in Development of Closed Source Perl projects 15. Google Chrome 16. Home-brew text-based game written in Perl 17. How Perl is used at ConAgra Foods 18. NoScript extension for Firefox 19. One-time PAD Crypto in Perl 20. Perl 6 ? Junctions 21. MySQL prepared statements in PHP 22. Amazon's Whispernet : Why Some Kindles Should Not Have It 23. Bio::DB::Fasta 24. Web Scraping for Guitar Tabs 25. Programming Ebay with Perl 26. Perltidy 27. Mouseless browsing extension for Firefox 28. Perl 6 29. Contexts in Perl 30. Using a web server to control lights 31. ?Five Features Perl Needs Now? -------------- next part -------------- An HTML attachment was scrubbed... URL: From dan at linder.org Mon Apr 20 20:38:57 2009 From: dan at linder.org (Dan Linder) Date: Mon, 20 Apr 2009 22:38:57 -0500 Subject: [Omaha.pm] Perl, fork, and waitpid() In-Reply-To: References: <3e2be50904191542r314c81ddpe212d54dcef2a5b8@mail.gmail.com> <238502E5-0A61-41EC-BB56-155020D6FFF1@jays.net> Message-ID: <3e2be50904202038i66cc781fi67253fc40fab6ce2@mail.gmail.com> Thanks for the pointers to POE and xargs. Unfortunately I'm restricted to using Perl core modules (and probably back to Perl 5.001 from 1995). DaveB wrote: > I would think "wait" (rather than "waitpid") should fit the bill, as "wait" > should return the PID of whatever child exited most recently, right? *slaps forehead* So, after a few minutes of re-reading the wait() manpage and some hacking, here's a script that demonstrates what I was looking for: ##### begin ##### #!/usr/bin/perl use strict; my @array = qw(AA BB CC DD EE FF GG); my $sleep = 10; my %children; for my $A (0..scalar(@array)-1) { my $pid = fork(); if ($pid) { # parent $children{$pid}=@array[$A]; } elsif ($pid == 0) { # child my $X = $sleep*rand(); my $now = localtime(); printf "$now Executing %s for %5.3f seconds.\n", at array[$A],$X; sleep $X; exit(0); } else { die "couldn't fork: $!\n"; } } my $exited; while (($exited = wait()) && ($exited > 0 )) { my $now = localtime(); printf "$now EXITED: $exited(%s)", $children{$exited}; delete $children{$exited}; if (scalar %children > 0 ) { printf ", waiting for"; foreach my $B (sort keys(%children)) { printf ": %5i(%s) ",$B, $children{$B}; } } printf "\n"; } ##### end ##### And here's some output (YMMV due to the rand() call): $ perl A0006.pl Mon Apr 20 22:36:25 2009 Executing AA for 0.356 seconds. Mon Apr 20 22:36:25 2009 Executing BB for 9.797 seconds. Mon Apr 20 22:36:25 2009 Executing CC for 4.411 seconds. Mon Apr 20 22:36:25 2009 Executing DD for 7.816 seconds. Mon Apr 20 22:36:25 2009 Executing EE for 5.170 seconds. Mon Apr 20 22:36:25 2009 Executing FF for 8.632 seconds. Mon Apr 20 22:36:25 2009 Executing GG for 6.502 seconds. Mon Apr 20 22:36:25 2009 EXITED: 12343(AA), waiting for: 12344(BB) : 12345(CC) : 12346(DD) : 12347(EE) : 12348(FF) : 12349(GG) Mon Apr 20 22:36:29 2009 EXITED: 12345(CC), waiting for: 12344(BB) : 12346(DD) : 12347(EE) : 12348(FF) : 12349(GG) Mon Apr 20 22:36:30 2009 EXITED: 12347(EE), waiting for: 12344(BB) : 12346(DD) : 12348(FF) : 12349(GG) Mon Apr 20 22:36:31 2009 EXITED: 12349(GG), waiting for: 12344(BB) : 12346(DD) : 12348(FF) Mon Apr 20 22:36:32 2009 EXITED: 12346(DD), waiting for: 12344(BB) : 12348(FF) Mon Apr 20 22:36:33 2009 EXITED: 12348(FF), waiting for: 12344(BB) Mon Apr 20 22:36:34 2009 EXITED: 12344(BB) Thanks for the kick in the pants to re-read the wait() function. :-) Dan "Quis custodiet ipsos custodes?" (Who can watch the watchmen?) -- from the Satires of Juvenal "I do not fear computers, I fear the lack of them." -- Isaac Asimov (Author) ** *** ***** ******* *********** ************* On Mon, Apr 20, 2009 at 21:16, George Neill wrote: > On Mon, Apr 20, 2009 at 7:42 PM, Jay Hannah wrote: > > On Apr 19, 2009, at 5:42 PM, Dan Linder wrote: > >> > >> I've tried using "waitpid(-1,WNOHANG)" thinking that would return the > PID > >> of the last child to die, or "-1" if none had died since last checking, > but > >> that seems to just hang _waiting_ for the next death to happen... I > did a > >> "waitpid($pid_of_a_child, 0)" but tha just waits until that specific > child > >> dies. > >> > >> Anyone have any example code that can do this? > > > > We use POE for things like this. Specifically, this cookbook recipe: > > > > http://poe.perl.org/?POE_Cookbook/Child_Processes_3 > > > > There's a pretty active IRC channel that can help if you get stuck > > (irc.perl.org #poe). I'm sure there's mailing lists too. > > > > I got somebody started from scratch last week and he seemed to take to it > > pretty quickly. > > POE looks pretty nifty Jay. > > If you want to be lazy (like me), here's a simple/quick xargs example > to demonstrate how one could tackle the problem, > > gneill at blackfoot:~$ cat test.input > 10 > 9 > 8 > 7 > 6 > 5 > 4 > 3 > 2 > 1 > > cat test.input | xargs --max-procs=4 --replace=timeout perl -e 'print > "starting timeout\n"; sleep(timeout); print "finished timeout\n";' > > running 4 ways parallel, > > gneill at blackfoot:~$ time cat test.input | xargs --max-procs=4 > --replace=timeout perl -e 'print "starting timeout\n"; sleep(timeout); > print "finished timeout\n";' > starting 10 > starting 9 > starting 8 > starting 7 > finished 7 > starting 6 > finished 8 > starting 5 > finished 9 > starting 4 > finished 10 > starting 3 > finished 3 > starting 2 > finished 4 > starting 1 > finished 5 > finished 6 > finished 1 > finished 2 > > real 0m15.034s > user 0m0.048s > sys 0m0.016s > > > running serial (aka, no --max-procs) > > gneill at blackfoot:~$ time cat test.input | xargs --replace=timeout perl > -e 'print "starting timeout\n"; sleep(timeout); print "finished > timeout\n";' > starting 10 > finished 10 > starting 9 > finished 9 > starting 8 > finished 8 > starting 7 > finished 7 > starting 6 > finished 6 > starting 5 > finished 5 > starting 4 > finished 4 > starting 3 > finished 3 > starting 2 > finished 2 > starting 1 > finished 1 > > real 0m55.087s > user 0m0.036s > sys 0m0.016s > > Later, > George > _______________________________________________ > Omaha-pm mailing list > Omaha-pm at pm.org > http://mail.pm.org/mailman/listinfo/omaha-pm > -------------- next part -------------- An HTML attachment was scrubbed... URL: From georgen at neillnet.com Mon Apr 20 21:00:11 2009 From: georgen at neillnet.com (George Neill) Date: Mon, 20 Apr 2009 23:00:11 -0500 Subject: [Omaha.pm] Perl, fork, and waitpid() In-Reply-To: <238502E5-0A61-41EC-BB56-155020D6FFF1@jays.net> References: <3e2be50904191542r314c81ddpe212d54dcef2a5b8@mail.gmail.com> <238502E5-0A61-41EC-BB56-155020D6FFF1@jays.net> Message-ID: Jay, On Mon, Apr 20, 2009 at 7:42 PM, Jay Hannah wrote: > On Apr 19, 2009, at 5:42 PM, Dan Linder wrote: >> >> I've tried using "waitpid(-1,WNOHANG)" thinking that would return the PID >> of the last child to die, or "-1" if none had died since last checking, but >> that seems to just hang _waiting_ for the next death to happen... ? I did a >> "waitpid($pid_of_a_child, 0)" but tha just waits until that specific child >> dies. >> >> Anyone have any example code that can do this? > > We use POE for things like this. Specifically, this cookbook recipe: > > http://poe.perl.org/?POE_Cookbook/Child_Processes_3 > > There's a pretty active IRC channel that can help if you get stuck > (irc.perl.org #poe). I'm sure there's mailing lists too. > > I got somebody started from scratch last week and he seemed to take to it > pretty quickly. Do you know the POE internals? # Detect the CHLD signal as each of our children exits. sub sig_child { my ( $heap, $sig, $pid, $exit_val ) = @_[ HEAP, ARG0, ARG1, ARG2 ]; my $details = delete $heap->{$pid}; # warn "$$: Child $pid exited"; } ... got me thinking about the back-end. I am guessing POE might give some weird results on the old sysV signal implementations as SIGCHLD has different semantics there. Later, George From jay at jays.net Tue Apr 21 05:57:21 2009 From: jay at jays.net (Jay Hannah) Date: Tue, 21 Apr 2009 07:57:21 -0500 Subject: [Omaha.pm] Perl, fork, and waitpid() In-Reply-To: References: <3e2be50904191542r314c81ddpe212d54dcef2a5b8@mail.gmail.com> <238502E5-0A61-41EC-BB56-155020D6FFF1@jays.net> Message-ID: On Apr 20, 2009, at 9:16 PM, George Neill wrote: > cat test.input | xargs --max-procs=4 --replace=timeout perl -e 'print > "starting timeout\n"; sleep(timeout); print "finished timeout\n";' Oh, neat! I had no idea xargs did that. I use xargs all the time, but hadn't seen --max-procs before. Thanks! :) On Apr 20, 2009, at 10:38 PM, Dan Linder wrote: > Thanks for the pointers to POE and xargs. Unfortunately I'm > restricted to using Perl core modules (and probably back to Perl > 5.001 from 1995). How so? root is handy, but you don't need root to build you own perl + POE (or anything CPAN). You can do it all in your home directory if root isn't playing ball. On Apr 20, 2009, at 11:00 PM, George Neill wrote: > Do you know the POE internals? > > # Detect the CHLD signal as each of our children exits. > > sub sig_child { > my ( $heap, $sig, $pid, $exit_val ) = @_[ HEAP, ARG0, ARG1, > ARG2 ]; > my $details = delete $heap->{$pid}; > # warn "$$: Child $pid exited"; > } > > ... got me thinking about the back-end. I am guessing POE might give > some weird results on the old sysV signal implementations as SIGCHLD > has different semantics there. I am not versed in POE internals. From a users perspective, everything is driven by POE::Kernel sig_child(): http://search.cpan.org/~rcaputo/POE-1.005/lib/POE/ Kernel.pm#sig_child_PROCESS_ID_[,_EVENT_NAME] Internally it appears POE::Resource::Signals is the place where waitpid() is called in two different places: sub _data_sig_handle_poll_event { ... # Reap children for as long as waitpid(2) says something # interesting has happened. my $pid; while ($pid = waitpid(-1, WNOHANG)) { # waitpid(2) returned a process ID. Emit an appropriate SIGCHLD # event and loop around again. if ((RUNNING_IN_HELL and $pid < -1) or ($pid > 0)) { if (RUNNING_IN_HELL or WIFEXITED($?) or WIFSIGNALED($?)) { if (TRACE_SIGNALS) { _warn(" POE::Kernel detected SIGCHLD (pid=$pid; exit= $?)"); } ... ### End-run leak checking. sub _data_sig_finalize { ... unless (RUNNING_IN_HELL) { local $!; local $?; until ((my $pid = waitpid( -1, 0 )) == -1) { _warn( "!!! Child process PID:$pid reaped: $!\n" ) if $pid; $finalized_ok = 0; } } I see no mention anywhere in the tarball of "sys v" or "sysv" (case insensitive). j From jay at jays.net Tue Apr 21 06:08:08 2009 From: jay at jays.net (Jay Hannah) Date: Tue, 21 Apr 2009 08:08:08 -0500 Subject: [Omaha.pm] Yup, it's Student Lightning Talk Time in Omaha Again! In-Reply-To: <6cb6eebc0904201929x46eddca8jfd22100e33b10540@mail.gmail.com> References: <6cb6eebc0904201929x46eddca8jfd22100e33b10540@mail.gmail.com> Message-ID: <0E7B3749-EFC7-4F69-8D24-F5797A3D234B@jays.net> On Apr 20, 2009, at 9:29 PM, Robert Fulkerson wrote: > It's that time of year again. :) > > The Spring 2009 UNO CSCI 2850 (Programming on the Internet) class > invites you to an evening of lightning talks on Perl programming, > the Firefox web browser and other (mostly) web-related topics. Excellent!! Thanks for the invite! My wife's in Denver that week. I assume it's OK if my 12 year-old son tags along with me? > Why Perl is better than a girlfriend Perl *is* my girlfriend. :) Did you end up doing anything with Catalyst or another web framework this semester? I don't think I heard back from you, and I missed my chance to bug you last Tuesday (you're too quick exiting). :) j From dan at linder.org Tue Apr 21 06:51:38 2009 From: dan at linder.org (Dan Linder) Date: Tue, 21 Apr 2009 08:51:38 -0500 Subject: [Omaha.pm] Differences to expect when using flock() on different OS and Filesystems. Message-ID: <3e2be50904210651n44cd6956r96425f7c0f136965@mail.gmail.com> As an off-shoot of my fork()/wait() discussion, I began researching the flock() function so I can ensure that the processes don't step on each other if they try to update the same file. In our code, 90% of the file updates in the section I'm working on are not going to conflict. In the remaining code, there are a couple files that will expose a race condition, so some sort of file locking will be needed. A co-worker cast a vague warning that the flock() implementation varies widely based on the OS and filesystem it's working on. I Googled quite a bit last night and I can't find any specific examples of other warnings (and work-arounds). This code is gonig to run on Unix based systems (Solaris, RedHat, SUSE, HPUX, AIX, etc) and the only OS-based Perl warnings I can find are related to how Perl reacts on Windows when compared to Unix. Has anyone run into examples of flock() failing subiltly (or not-so subtily) between various flavors of Unix and/or filesystems? Thanks, Dan "Quis custodiet ipsos custodes?" (Who can watch the watchmen?) -- from the Satires of Juvenal "I do not fear computers, I fear the lack of them." -- Isaac Asimov (Author) ** *** ***** ******* *********** ************* -------------- next part -------------- An HTML attachment was scrubbed... URL: From TELarson at west.com Tue Apr 21 07:14:51 2009 From: TELarson at west.com (Larson, Timothy E.) Date: Tue, 21 Apr 2009 09:14:51 -0500 Subject: [Omaha.pm] Differences to expect when using flock() on different OS and Filesystems. In-Reply-To: <3e2be50904210651n44cd6956r96425f7c0f136965@mail.gmail.com> References: <3e2be50904210651n44cd6956r96425f7c0f136965@mail.gmail.com> Message-ID: <226316B3E1F749498E28ACA66321D5BA14CBE78F@oma00cexmbx03.corp.westworlds.com> > A co-worker cast a vague warning that the flock() implementation varies > widely based on the OS and filesystem it's working on. I Googled quite a > bit last night and I can't find any specific examples of other warnings > (and work-arounds). The underlying implementation of Perl's flock() may differ widely based on OS (maybe flock(), lockf(), or fcntl()) but I'd think that Larry and co. would be careful enough to make sure the Perl version works everywhere. One huge advantage of Perl disappears if you can't abstract away those OS differences. Tim -- Tim Larson??????? AMT2 Unix Systems Administrator ??? InterCall, a division of West Corporation Be always sure you are right, then go ahead. - David Crockett From jharr at ist.unomaha.edu Tue Apr 21 13:13:46 2009 From: jharr at ist.unomaha.edu (James Harr) Date: Tue, 21 Apr 2009 15:13:46 -0500 Subject: [Omaha.pm] Differences to expect when using flock() on different OS and Filesystems. In-Reply-To: <226316B3E1F749498E28ACA66321D5BA14CBE78F@oma00cexmbx03.corp.westworlds.com> References: <3e2be50904210651n44cd6956r96425f7c0f136965@mail.gmail.com> <226316B3E1F749498E28ACA66321D5BA14CBE78F@oma00cexmbx03.corp.westworlds.com> Message-ID: It wouldn't be the first time perl didn't (or couldn't) hide a scary OS behavior from the programmer. If you can't find anything on the subject, just write a test program to hammer flock() for a while and see if it grants two mutual locks on the same file. Win32:: might also have something that'd work for you and behaves better on that platform. -----Original Message----- From: omaha-pm-bounces+jharr=ist.unomaha.edu at pm.org [mailto:omaha-pm-bounces+jharr=ist.unomaha.edu at pm.org] On Behalf Of Larson, Timothy E. Sent: Tuesday, April 21, 2009 9:15 AM To: Perl Mongers of Omaha, Nebraska USA Subject: Re: [Omaha.pm] Differences to expect when using flock() on different OS and Filesystems. > A co-worker cast a vague warning that the flock() implementation varies > widely based on the OS and filesystem it's working on. I Googled quite a > bit last night and I can't find any specific examples of other warnings > (and work-arounds). The underlying implementation of Perl's flock() may differ widely based on OS (maybe flock(), lockf(), or fcntl()) but I'd think that Larry and co. would be careful enough to make sure the Perl version works everywhere. One huge advantage of Perl disappears if you can't abstract away those OS differences. Tim -- Tim Larson??????? AMT2 Unix Systems Administrator ??? InterCall, a division of West Corporation Be always sure you are right, then go ahead. - David Crockett _______________________________________________ Omaha-pm mailing list Omaha-pm at pm.org http://mail.pm.org/mailman/listinfo/omaha-pm From dan at linder.org Tue Apr 21 19:56:07 2009 From: dan at linder.org (Dan Linder) Date: Tue, 21 Apr 2009 21:56:07 -0500 Subject: [Omaha.pm] Differences to expect when using flock() on different OS and Filesystems. In-Reply-To: References: <3e2be50904210651n44cd6956r96425f7c0f136965@mail.gmail.com> <226316B3E1F749498E28ACA66321D5BA14CBE78F@oma00cexmbx03.corp.westworlds.com> Message-ID: <3e2be50904211956t2488d211g8654792adb73fe8d@mail.gmail.com> On Tue, Apr 21, 2009 at 15:13, James Harr wrote: > It wouldn't be the first time perl didn't (or couldn't) hide a scary OS behavior from the programmer. > If you can't find anything on the subject, just write a test program to hammer flock() for a while and > see if it grants two mutual locks on the same file. Yup, that's my plan. When I get the green light after some other projects come up I might send my test script out to the list and let others test it on their systems. (Thankfully for me, I just have to test a handfull of UNIX variants...multiplied times the common filesystems...ouch!) > Win32:: might also have something that'd work > for you and behaves better on that platform. Yeah, my worst fear is that someone will say "Sure, this app will run on Windows ME with FAT-32 drives!" and expect me to support it... :-O :-D Dan "Quis custodiet ipsos custodes?" (Who can watch the watchmen?) -- from the Satires of Juvenal "I do not fear computers, I fear the lack of them." -- Isaac Asimov (Author) ** *** ***** ******* *********** ************* -------------- next part -------------- An HTML attachment was scrubbed... URL: From jay at jays.net Mon Apr 27 15:10:56 2009 From: jay at jays.net (Jay Hannah) Date: Mon, 27 Apr 2009 17:10:56 -0500 Subject: [Omaha.pm] I've been syndicated! Message-ID: <4875EA78-8A71-4B78-B5C0-7317BE57F686@jays.net> In response to mst's obscenity laden blogging challenge (http:// xrl.us/beptq9) I blogged and poof! I've been syndicated: http://ironman.enlightenedperl.org/ Woot! j From jay at jays.net Mon Apr 27 18:35:54 2009 From: jay at jays.net (Jay Hannah) Date: Mon, 27 Apr 2009 20:35:54 -0500 Subject: [Omaha.pm] My first core perl patch in git Message-ID: <24C3F14B-B866-4DCF-82CE-DEC7585FD729@jays.net> I think this is my first core Perl patch since they moved to git: http://perl5.git.perl.org/perl.git/commit/bb23f8d1 :) j From jay at jays.net Tue Apr 28 05:48:09 2009 From: jay at jays.net (Jay Hannah) Date: Tue, 28 Apr 2009 07:48:09 -0500 Subject: [Omaha.pm] Fwd: Send a newbie References: Message-ID: That's a neat idea. :) j --------------- From: L?on Brocard Date: April 28, 2009 3:27:23 AM CDT To: pm_groups at pm.org Subject: [pm_groups] Send a newbie [Sending on for Edmund, seems a worthwhile cause] Hello, Please could you pass this email on to your PM group if you think it would be of interest to them. The Send-a-Newbie project is raising money for young Perl programmers to attend YAPC::Europe this year in Lisbon, Portugal. http://www.send-a-newbie.com/ So far they've raised 965 Euros - which will be enough to send at least two people. However there are 21 applicants for funding so more donations are needed. If you're able to donate please do so. By getting people into the community earlier they'll contribute more and we'll all benefit. It'll also demonstrate to the outside world that the Perl community is alive, vibrant and supportive (we all know this of course). Please also help by spreading the word. You can do this by adding a link in your email signature, blogging and so on. Especially useful would be to forward this email to internal mailing lists to reach people who might not read the main lists. The more people we reach the more we can help. Thank you, Edmund. -- Help Perl newbies: * http://www.send-a-newbie.com/ * http://twitter.com/send_a_newbie -- From jhannah at omnihotels.com Wed Apr 29 18:23:19 2009 From: jhannah at omnihotels.com (Jay Hannah) Date: Wed, 29 Apr 2009 20:23:19 -0500 Subject: [Omaha.pm] Catalyst book #2 coming soon Message-ID: <396CEDAA86B38646ACE2FEAA22C3FBF101A887AC@l3exchange.omnihotels.net> The Definitive Guide to Catalyst: Writing Extendable, Scalable and Maintainable Perl-Based Web Applications http://www.apress.com/book/view/1430223650 j -------------- next part -------------- An HTML attachment was scrubbed... URL: From jhannah at omnihotels.com Wed Apr 29 18:58:10 2009 From: jhannah at omnihotels.com (Jay Hannah) Date: Wed, 29 Apr 2009 20:58:10 -0500 Subject: [Omaha.pm] Text::FixedWidth 0.05 Message-ID: <396CEDAA86B38646ACE2FEAA22C3FBF101A887AE@l3exchange.omnihotels.net> Version 0.05 released: http://search.cpan.org/~jhannah/Text-FixedWidth-0.05/lib/Text/FixedWidth.pm 2 bug fixes. I wonder if anyone anywhere is using it? (Besides me.) :) j -------------- next part -------------- An HTML attachment was scrubbed... URL: From tedkat at gmail.com Thu Apr 30 06:51:56 2009 From: tedkat at gmail.com (Theodore Katseres) Date: Thu, 30 Apr 2009 08:51:56 -0500 Subject: [Omaha.pm] Catalyst book #2 coming soon In-Reply-To: <396CEDAA86B38646ACE2FEAA22C3FBF101A887AC@l3exchange.omnihotels.net> References: <396CEDAA86B38646ACE2FEAA22C3FBF101A887AC@l3exchange.omnihotels.net> Message-ID: 2009/4/29 Jay Hannah > The Definitive Guide to Catalyst: Writing Extendable, Scalable and > Maintainable Perl?Based Web Applications > > http://www.apress.com/book/view/1430223650 > > j > > > > _______________________________________________ > Omaha-pm mailing list > Omaha-pm at pm.org > http://mail.pm.org/mailman/listinfo/omaha-pm > how soon? -- Ted Katseres ||=O=|| -------------- next part -------------- An HTML attachment was scrubbed... URL: From jay at jays.net Thu Apr 30 07:24:08 2009 From: jay at jays.net (Jay Hannah) Date: Thu, 30 Apr 2009 09:24:08 -0500 Subject: [Omaha.pm] Catalyst book #2 coming soon In-Reply-To: References: <396CEDAA86B38646ACE2FEAA22C3FBF101A887AC@l3exchange.omnihotels.net> Message-ID: http://www.apress.com/book/view/1430223650 On Apr 30, 2009, at 8:51 AM, Theodore Katseres wrote: > how soon? I don't know. I see no release date rumors in a quick scan of my irc.perl.org #catalyst log. j From jay at jays.net Thu Apr 30 13:53:10 2009 From: jay at jays.net (Jay Hannah) Date: Thu, 30 Apr 2009 15:53:10 -0500 Subject: [Omaha.pm] ohloh.net perl repo Message-ID: <49FA0FB6.2010007@jays.net> Woot! A 2 line POD patch to core perl (which lives in git nowadays): https://www.ohloh.net/p/perl/commits/43816977 Apparently ohloh clones repos from all over the world and generates statistics and history for self-congratulatory ego maniacs. :) It's neat to spot typos, nopaste patches into IRC, and watch the universe improve. All thanks to me. Laugh, j