From jhannah at mutationgrid.com Fri Oct 1 08:17:03 2010 From: jhannah at mutationgrid.com (Jay Hannah) Date: Fri, 1 Oct 2010 10:17:03 -0500 Subject: [Omaha.pm] Question: ODLUG.org and SOAP with PERL In-Reply-To: References: Message-ID: We used SOAP::Lite quite a bit a few years back, but RESTy XML / JSON interfaces seem to be more trendy nowadays? At the time the SOAP::Lite POD was sufficient to get our stuff running. I'm not directly familiar with that Perl SOAP guide (or any other), sorry. In my experience SOAP interfaces often aren't very SOAPy at all, they just expose a method or two dumping XML payloads, and that's it. Maybe in a .NET or J2EE universe those exposures are more complete? ("I clicked the 'enable SOAP' button!" -grin-) Anyone doing any hardcore SOAP via any platform in Omaha? For SOAP::Lite specifically, looks like this is the place to be: http://tech.groups.yahoo.com/group/soaplite/ Rearding your specific error below, SOAP::Transport::HTTP seems to be part of SOAP::Lite on CPAN, so if you have SOAP::Lite installed it should find that module. http://search.cpan.org/~mkutter/SOAP-Lite-0.712/ To install: cpan SOAP::Lite Does that help? Jay Hannah Software Architect jhannah at mutationgrid.com | http://mutationgrid.com | 1-402-598-7782 On Sep 30, 2010, at 7:47 PM, Matt Payne wrote: > Jay -- I've been away from PERL for a while. Is > http://guide.soaplite.com/ a good tutorial? Seems like SOAP library > is not installed. Is there a SOAP library that comes out of the box? > I'd like to stand up a small SOAP server to front graphviz's dot > utility. > > Thanks! --Matt Payne > > payne at li109-243:~/public_html$ perl hibye.cgi > Can't locate SOAP/Transport/HTTP.pm in @INC (@INC contains: > /usr/local/lib/perl5/site_perl/5.12.2/i686-linux > /usr/local/lib/perl5/site_perl/5.12.2 > /usr/local/lib/perl5/5.12.2/i686-linux /usr/local/lib/perl5/5.12.2 .) > at hibye.cgi line 5. > BEGIN failed--compilation aborted at hibye.cgi line 5. > payne at li109-243:~/public_html$ From sirloxelroy at gmail.com Sat Oct 2 14:12:21 2010 From: sirloxelroy at gmail.com (Chris Brandstetter) Date: Sat, 02 Oct 2010 16:12:21 -0500 Subject: [Omaha.pm] Randall Shwartz just tweeted this Message-ID: <1286053941.1282.15.camel@Excaliber> A new MMORPG written entirely in Perl... play free for now: http://bit.ly/cNb0Gm -- Chris Brandstetter -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCS/IT d+(-) s++:++ a C++++$ UBLISXC*++++$ P++++$ L+++$ E-- W+++ N+ o K- w-- O M++$ V PS- PE Y+ PGP++ t++ 5+++ X+ R- tv-- b+>+++ DI D+ G+ e+ h++ r y? ------END GEEK CODE BLOCK------ To Decode: http://www.ebb.org/ungeek/ From jhannah at mutationgrid.com Thu Oct 7 16:41:49 2010 From: jhannah at mutationgrid.com (Jay Hannah) Date: Thu, 7 Oct 2010 18:41:49 -0500 Subject: [Omaha.pm] Randall Shwartz just tweeted this In-Reply-To: <1286053941.1282.15.camel@Excaliber> References: <1286053941.1282.15.camel@Excaliber> Message-ID: <36888530-7407-4481-86AA-D7070BF5CBFA@mutationgrid.com> On Oct 2, 2010, at 4:12 PM, Chris Brandstetter wrote: > A new MMORPG written entirely in Perl... play free for > now: http://bit.ly/cNb0Gm I tried to check it out, alas: http://community.lacunaexpanse.com/forums/support/captcha-is-broken#tgllNq9rs0SGFP9TAAQiig Hopefully fixed soon. :) Jay Hannah Software Architect jhannah at mutationgrid.com | http://mutationgrid.com | 1-402-598-7782 From jay at jays.net Thu Oct 7 17:00:25 2010 From: jay at jays.net (Jay Hannah) Date: Thu, 7 Oct 2010 19:00:25 -0500 Subject: [Omaha.pm] Randall Shwartz just tweeted this In-Reply-To: <36888530-7407-4481-86AA-D7070BF5CBFA@mutationgrid.com> References: <1286053941.1282.15.camel@Excaliber> <36888530-7407-4481-86AA-D7070BF5CBFA@mutationgrid.com> Message-ID: On Oct 7, 2010, at 6:41 PM, Jay Hannah wrote: > Hopefully fixed soon. :) Huh, fixed. As you were. Now if only I had a bunch of "free time" to play games... :) j From iceburn at dangerzone.com Fri Oct 8 11:45:46 2010 From: iceburn at dangerzone.com (Tim) Date: Fri, 8 Oct 2010 14:45:46 -0400 Subject: [Omaha.pm] Larry Wall speaking in Pittsburgh today Message-ID: Seeing as how this the omaha pm list, I doubt that [m]any of you are in pittsburgh, pa today. But just in case, you can apparently just show up to this talk by Larry Wall. -tim SCS Special Presentation --Hosted in conjunction with The Pittsburgh Perl Workshop ( http://pghpw.org/ppw2010/) Friday, 8 October 2010 4:30 pm Rashid Auditorium - Gates&Hillman 4401 Open to all. Conference registration still possible (great deep discounts for students) LARRY WALL Creator of the Perl Programming Language (and more...) Studies in the Ballistic Arts Abstract: The design of the Computer Language Perl was influenced by mathematics, linguistics, chemistry, music....and ballistics. Come find out why computer programming is a ballistic art. Bio: Larry Wall was educated at various places including the Cornish School of Music, the Seattle Youth Symphony, Seattle Pacific University, Multnomah School of the Bible, SIL International, U.C. Berkeley, and UCLA. Though trained primarily in music, chemistry, and linguistics, Larry has been working with computers for the last 35 years or so. He is most famous for writing _rn_, _patch_, and the Perl programming language, but prefers to think of himself as a cultural hacker whose vocation in life is to bring a bit of joy into the dreary existence of programmers. For various definitions of "work for", Larry has worked for Seattle Pacific, MusiComedy Northwest, System Development Corporation, Burroughs, Unisys, the NSA, Telos, ConTel, GTE, JPL, NetLabs, Seagate, Tim O'Reilly, the Perl Foundation, and himself. Larry is currently employed by NetLogic Microsystems in Santa Clara, California, because they think he knows something about pattern matching. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jhannah at mutationgrid.com Tue Oct 12 10:32:40 2010 From: jhannah at mutationgrid.com (Jay Hannah) Date: Tue, 12 Oct 2010 12:32:40 -0500 Subject: [Omaha.pm] Meeting: Tuesday October 12, 7pm In-Reply-To: <23F5A905-E713-479D-A6D6-8F6DC5AD4C33@mutationgrid.com> References: <23F5A905-E713-479D-A6D6-8F6DC5AD4C33@mutationgrid.com> Message-ID: <52946A46-5BAE-4F2B-B8A5-CD5DB41CA088@mutationgrid.com> Don't forget our meeting tonight! In addition to Selenium I can also show some of the MongoDB (noSQL) and AJAXy prototyping I worked on over the weekend. j On Oct 7, 2010, at 8:01 AM, Jay Hannah wrote: > http://odlug.org/ > > Tuesday October 12 2010, 7pm > UNO's Peter Kiewit Institute (PKI) > Room PKI 276 > 1110 South 67th Street > > Here's my proposal for the upcoming meeting: > > Pizza* at 7pm, merged with the Omaha Maker Group that meets every Tuesday 2 doors down from our room: > > http://home.omahamakergroup.org/ > > This gives us an excuse to visit our neighbors who share our exact same time slot and see what they're up to. > > At 7:30 we split back out again, and I present some of my recent fun with the Selenium web site testing scraping system and the very cool Firefox plugin "Selenium IDE". > > http://blogs.perl.org/users/jhannah_mutation_grid/2010/10/perl-selenium-and-aspnet.html > > I use Perl** to control Selenium, but you can control it via C#, Java, PHP, Python, Ruby, and others if you prefer. > > Thoughts? Thanks, > > Jay Hannah > Software Architect > jhannah at mutationgrid.com | http://mutationgrid.com | 1-402-598-7782 > > > * Nick: I know you volunteered to buy the pizza next week. I'm happy to pay half since this was my bright idea to double the mouths to feed. :) > ** Surprise, surprise. :) > > From jhannah at mutationgrid.com Wed Oct 20 07:03:54 2010 From: jhannah at mutationgrid.com (Jay Hannah) Date: Wed, 20 Oct 2010 09:03:54 -0500 Subject: [Omaha.pm] Survey: Can you ping odlug.org? Message-ID: <968EF8E0-6B62-458E-98D2-051D77845742@mutationgrid.com> Weird. My primary linode node is fine. But from my office this morning (Cox business) I can't route to odlug.org. But when I ssh to UNO gettting to odlug.org works fine. Can you ping odlug.org this morning? Send a traceroute and your ISP? Thanks, Jay Hannah Software Architect jhannah at mutationgrid.com | http://mutationgrid.com | 1-402-598-7782 From jhannah at mutationgrid.com Wed Oct 20 07:21:26 2010 From: jhannah at mutationgrid.com (Jay Hannah) Date: Wed, 20 Oct 2010 09:21:26 -0500 Subject: [Omaha.pm] Survey: Can you ping odlug.org? In-Reply-To: References: <968EF8E0-6B62-458E-98D2-051D77845742@mutationgrid.com> Message-ID: On Oct 20, 2010, at 9:07 AM, Nick Wertzberger wrote: > 2 <1 ms <1 ms 1 ms core-pki-secondarycore-rtr.unomaha.edu [137.48.239.102] > 7 15 ms 11 ms 14 ms se-4-0-11.hsa1.denver1.level3.net [209.245.16.61] Thanks. Working fine from Level3 (UNO) and Sprint... I'm going to harass Cox. If this was a customer box it would be very uncool that suddenly parts of the Internet can't get there. :/ Thanks, Jay Hannah Software Architect jhannah at mutationgrid.com | http://mutationgrid.com | 1-402-598-7782 From jay at jays.net Wed Oct 20 07:54:13 2010 From: jay at jays.net (Jay Hannah) Date: Wed, 20 Oct 2010 09:54:13 -0500 Subject: [Omaha.pm] Survey: Can you ping odlug.org? In-Reply-To: References: <968EF8E0-6B62-458E-98D2-051D77845742@mutationgrid.com> Message-ID: <08B9431D-7952-4430-81A9-F1DB369B222E@jays.net> Fascinating. OS X reboot cleared the routing problem (netstat -rn was lying to me). I only have to punt to a reboot of OS X once a year or so, so I tend to forget and get burned. Sorry for the off topic false alarm. :) j From mkolakow at yahoo.com Thu Oct 21 05:21:27 2010 From: mkolakow at yahoo.com (Michael Kolakowski) Date: Thu, 21 Oct 2010 05:21:27 -0700 (PDT) Subject: [Omaha.pm] Code retreat of Omaha In-Reply-To: <08B9431D-7952-4430-81A9-F1DB369B222E@jays.net> Message-ID: <621225.20619.qm@web54201.mail.re2.yahoo.com> Hi, A couple of us are organizing a code retreat. I do believe this is Omaha's first. Anyhow, please sign up here if you are interested: http://coderetreat.ning.com/events/coderetreat-omaha Let me know if you have any questions. Cheers, Michael Kolakowski From mkolakow at yahoo.com Thu Oct 21 05:21:27 2010 From: mkolakow at yahoo.com (Michael Kolakowski) Date: Thu, 21 Oct 2010 05:21:27 -0700 (PDT) Subject: [Omaha.pm] Code retreat of Omaha In-Reply-To: <08B9431D-7952-4430-81A9-F1DB369B222E@jays.net> Message-ID: <621225.20619.qm@web54201.mail.re2.yahoo.com> Hi, A couple of us are organizing a code retreat. I do believe this is Omaha's first. Anyhow, please sign up here if you are interested: http://coderetreat.ning.com/events/coderetreat-omaha Let me know if you have any questions. Cheers, Michael Kolakowski From jhannah at mutationgrid.com Thu Oct 21 07:32:32 2010 From: jhannah at mutationgrid.com (Jay Hannah) Date: Thu, 21 Oct 2010 09:32:32 -0500 Subject: [Omaha.pm] (?:pattern) Message-ID: Huh. Why bother with the ?: chars here? foreach $service (@services) { my ($service_name, $i) = split(/,/, $service); $error .= &validate($service_name,$i,%in) if ($service_name =~ /^(?:INS_(?:CHC|CRS|PLV))$/); } http://perldoc.perl.org/perlre.html Since the author isn't using the backreferences anyway, why not just /^INS_(CHC|CRS|PLV)$/ Isn't that the same thing and easier to read? I should probably write some little programs to test it, but I'm feeling lazy. :) Jay Hannah Software Architect jhannah at mutationgrid.com | http://mutationgrid.com | 1-402-598-7782 From andy at petdance.com Thu Oct 21 07:37:56 2010 From: andy at petdance.com (Andy Lester) Date: Thu, 21 Oct 2010 09:37:56 -0500 Subject: [Omaha.pm] (?:pattern) In-Reply-To: References: Message-ID: <5B3B9187-29E3-45E1-9FBB-680832F9EA62@petdance.com> On Oct 21, 2010, at 9:32 AM, Jay Hannah wrote: > Since the author isn't using the backreferences anyway, why not just > > /^INS_(CHC|CRS|PLV)$/ > > Isn't that the same thing and easier to read? > > I should probably write some little programs to test it, but I'm feeling lazy. :) There's presumably a speed-up because it's not dumping the match into $1. You'd have to benchmark to find out just how much it's saving. The bigger change is getting rid of the outer grouping parens which are not even needed for grouping. xoox, Andy -- Andy Lester => andy at petdance.com => www.techworklove.com => AIM:petdance From jhannah at mutationgrid.com Thu Oct 21 08:48:25 2010 From: jhannah at mutationgrid.com (Jay Hannah) Date: Thu, 21 Oct 2010 10:48:25 -0500 Subject: [Omaha.pm] (?:pattern) In-Reply-To: <5B3B9187-29E3-45E1-9FBB-680832F9EA62@petdance.com> References: <5B3B9187-29E3-45E1-9FBB-680832F9EA62@petdance.com> Message-ID: <5649028C-AE40-4397-B298-E11EDEA04B3C@mutationgrid.com> On Oct 21, 2010, at 9:37 AM, Andy Lester wrote: > There's presumably a speed-up because it's not dumping the match into $1. You'd have to benchmark to find out just how much it's saving. > > The bigger change is getting rid of the outer grouping parens which are not even needed for grouping. I think any speed-ups are being lost in my hours of debugging CGI like this: my ($title, $count, $color, $abbr, $alias, $ins, $notes, $order_type, $PackageID, $default, $prefilled) = @_; ... my $service = &$alias($title,$i,$color,$alias,$PackageID,$prefilled); Ooof! -sigh- :) Jay Hannah Software Architect jhannah at mutationgrid.com | http://mutationgrid.com | 1-402-598-7782 From andy at petdance.com Thu Oct 21 09:07:34 2010 From: andy at petdance.com (Andy Lester) Date: Thu, 21 Oct 2010 11:07:34 -0500 Subject: [Omaha.pm] (?:pattern) In-Reply-To: <5649028C-AE40-4397-B298-E11EDEA04B3C@mutationgrid.com> References: <5B3B9187-29E3-45E1-9FBB-680832F9EA62@petdance.com> <5649028C-AE40-4397-B298-E11EDEA04B3C@mutationgrid.com> Message-ID: On Oct 21, 2010, at 10:48 AM, Jay Hannah wrote: > I think any speed-ups are being lost in my hours of debugging CGI like this: I've been posting a lot on StackOverflow in response to people worrying about the "fastest" or "efficient" way to write some code, and I point out that the cost of an hour of machine time is dwarfed, by orders of magnitude, by the cost of an hour of programmer time. xoxo, Andy -- Andy Lester => andy at petdance.com => www.techworklove.com => AIM:petdance From jhannah at mutationgrid.com Thu Oct 21 10:15:06 2010 From: jhannah at mutationgrid.com (Jay Hannah) Date: Thu, 21 Oct 2010 12:15:06 -0500 Subject: [Omaha.pm] "MongoDB is web scale" Message-ID: <7255F4E9-1D5D-453D-A09F-B0D04239B36B@mutationgrid.com> Warning: Lots of course language in these videos. A little over-the-top humor as I continue to embrace NoSQL for new projects where aggregation performance isn't important: http://www.xtranormal.com/watch/6995033/ :) This is a direct take off the now-classic "iPhone4 vs. HTC Evo": http://www.youtube.com/watch?v=FL7yD-0pqZg Yes, I bought an HTC Evo partly due to that video. :) On Oct 19, 2010, at 10:15 AM, Glen VanMilligan wrote: > The python library stuff installed correctly. I was able to create a couple of entries in a mongodb table. Glen: We should do a little demo on odlug.org where I read/write MongoDB data in Perl (Catalyst) while you read/write the same data in Python. (Looks like the drivers use BSON, a "binary-encoded serialization of JSON-like documents." http://www.mongodb.org/display/DOCS/BSON) Jay Hannah Software Architect jhannah at mutationgrid.com | http://mutationgrid.com | 1-402-598-7782 From mkolakow at yahoo.com Thu Oct 21 19:01:29 2010 From: mkolakow at yahoo.com (Michael Kolakowski) Date: Thu, 21 Oct 2010 19:01:29 -0700 (PDT) Subject: [Omaha.pm] Can you post a little more detail about the format of the event? In-Reply-To: Message-ID: <717114.91444.qm@web54202.mail.re2.yahoo.com> For the benefit of everyone, I'm posting to the list. Below is a question I received. Code retreats can vary widely in how they are run. There's not a 'set' way of doing them. Without getting too verbose, here are the main details of ours: 1. Language agnostic, so if you like Perl, Java, Erlang, it's all good. 2. Bring your laptop, we are not providing workstations. 3. Count on doing code paring sessions. 4. We will probably have a single problem to solve, work on it with a partner for 45 minutes or so, then switch partners and start from scratch. 5. This can be done 3-4 times in the morning. Break for lunch, with maybe a lightning talk, kata, or some other beneficial activity. Then do it again 3-4 times in the afternoon. 6. The idea is not necessarily to solve it, but to explore the problem space, work with others, and open your mind to new ideas. 7. Breakfast and lunch will, of course, be provided. The event is free! Does that answer most of your questions? Please sign up, there are still many open seats! http://coderetreat.ning.com/events/coderetreat-omaha Cheers, Michael --- On Thu, 10/21/10, Scott Hickey wrote: > From: Scott Hickey > Subject: Can you post a little more detail about the format of the event? > To: mkolakow at yahoo.com > Date: Thursday, October 21, 2010, 9:13 AM > I'm not familar with code retreat > events, but I been to barcamps and > open spaces events. > > It would be helpful if you provide a little more detail > about > structure/flow of the event, thanks. > > Scott Hickey > From mgbarcomb at gmail.com Thu Oct 21 19:40:01 2010 From: mgbarcomb at gmail.com (Matthew Barcomb) Date: Thu, 21 Oct 2010 22:40:01 -0400 Subject: [Omaha.pm] Can you post a little more detail about the format of the event? In-Reply-To: <717114.91444.qm@web54202.mail.re2.yahoo.com> References: <717114.91444.qm@web54202.mail.re2.yahoo.com> Message-ID: Here is a link with a bunch more info on what a coderetreat is and how I will be running it :) http://www.coderetreat.com/how-it-works.html As Michael mentioned, this codereteat is BYO laptop and will be language agnostic. Please let me know if you have any questions. Cheers, -Matt -- *Mobile:* 402.957.1354 *LinkedIn:* mgbarcomb *Twitter:* @78mgb *Blog: *Syllogizomai On Thu, Oct 21, 2010 at 10:01 PM, Michael Kolakowski wrote: > For the benefit of everyone, I'm posting to the list. Below is a question > I received. > > Code retreats can vary widely in how they are run. There's not a 'set' way > of doing them. Without getting too verbose, here are the main details of > ours: > > 1. Language agnostic, so if you like Perl, Java, Erlang, it's all good. > > 2. Bring your laptop, we are not providing workstations. > > 3. Count on doing code paring sessions. > > 4. We will probably have a single problem to solve, work on it with a > partner for 45 minutes or so, then switch partners and start from scratch. > > 5. This can be done 3-4 times in the morning. Break for lunch, with maybe > a lightning talk, kata, or some other beneficial activity. Then do it again > 3-4 times in the afternoon. > > 6. The idea is not necessarily to solve it, but to explore the problem > space, work with others, and open your mind to new ideas. > > 7. Breakfast and lunch will, of course, be provided. The event is free! > > > Does that answer most of your questions? > > Please sign up, there are still many open seats! > > http://coderetreat.ning.com/events/coderetreat-omaha > > Cheers, > Michael > > > > > --- On Thu, 10/21/10, Scott Hickey wrote: > > > From: Scott Hickey > > Subject: Can you post a little more detail about the format of the event? > > To: mkolakow at yahoo.com > > Date: Thursday, October 21, 2010, 9:13 AM > > I'm not familar with code retreat > > events, but I been to barcamps and > > open spaces events. > > > > It would be helpful if you provide a little more detail > > about > > structure/flow of the event, thanks. > > > > Scott Hickey > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jhannah at mutationgrid.com Tue Oct 26 11:40:24 2010 From: jhannah at mutationgrid.com (Jay Hannah) Date: Tue, 26 Oct 2010 13:40:24 -0500 Subject: [Omaha.pm] http://bigthink.com/larrywall Message-ID: <5F1F3951-AAA2-4391-8009-FC2A6ECB9A1F@mutationgrid.com> http://bigthink.com/larrywall I object to the "scripting language" intro, but got less offended after that. :) Thanks, Jay Hannah Software Architect jhannah at mutationgrid.com | http://mutationgrid.com | 1-402-598-7782 From jhannah at mutationgrid.com Wed Oct 27 07:35:07 2010 From: jhannah at mutationgrid.com (Jay Hannah) Date: Wed, 27 Oct 2010 09:35:07 -0500 Subject: [Omaha.pm] http request - perl vs. java Message-ID: A comparison of making a simple http request with basic/digest authentication in perl and java. http://gist.github.com/648423 :) Jay Hannah Software Architect jhannah at mutationgrid.com | http://mutationgrid.com | 1-402-598-7782 From dan at linder.org Fri Oct 29 08:11:11 2010 From: dan at linder.org (Dan Linder) Date: Fri, 29 Oct 2010 10:11:11 -0500 Subject: [Omaha.pm] Intermittent Perl error... Message-ID: I've got a Perl CGI script that runs fine 99% of the time. Occasionally we'll get this error in the web browser: Status: 500 Content-type: text/html Software error: Undefined subroutine &main::MySubroutine called at MyCGI.cgi line 123 The subroutine "MySubroutine" is defined in an included Perl module, and just two lines before the script used another subroutine from the same perl module. I'm asking my server admin to send me the Apache log files (it's a remote server I don't have access to) - is there anything else to look at? This is either a RedHat or Solaris system - if we suspect RAM or CPU load may be the root cause, what additional logging tools can I use to monitor Apache and/or the Perl CGIs themselves? If it's Solaris 10, I might have him use some of the DTrace facilities, but unsure about similar tracing on RedHat. Thanks, DanL -- ***************** ************* *********** ******* ***** *** ** "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 jhannah at mutationgrid.com Fri Oct 29 09:47:29 2010 From: jhannah at mutationgrid.com (Jay Hannah) Date: Fri, 29 Oct 2010 11:47:29 -0500 Subject: [Omaha.pm] Intermittent Perl error... In-Reply-To: References: Message-ID: <429BE050-59A0-4F1B-93E6-EB2260A6C4A2@mutationgrid.com> On Oct 29, 2010, at 10:11 AM, Dan Linder wrote: > Status: 500 Content-type: text/html > Software error: > Undefined subroutine &main::MySubroutine called at MyCGI.cgi line 123 > > I'm asking my server admin to send me the Apache log files (it's a remote server I don't have access to) - is there anything else to look at? Is it vanilla CGI (perl is executed for every page hit)? mod_perl? fastcgi? other? I'd write a little WWW::Mechanize program to hit it 1000 times and see how many times the error occurs. If you think it's load related somehow (really? eek) then you could use Apache Benchmark (ab) to nail the heck out of it and see if load does indeed cause a problem. Do you have another server with the same software to compare results? HTH, Jay Hannah Software Architect jhannah at mutationgrid.com | http://mutationgrid.com | 1-402-598-7782 From evaddnomaid at gmail.com Fri Oct 29 12:44:23 2010 From: evaddnomaid at gmail.com (Dave Burchell) Date: Fri, 29 Oct 2010 14:44:23 -0500 Subject: [Omaha.pm] Persistent data store for a prototype Message-ID: I'm working on a prototype web app. I plan to use Amazon S3 and/or SimpleDB in production. What's a good choice for the prototype? -- Dave Burchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From sterling at hanenkamp.com Fri Oct 29 13:53:51 2010 From: sterling at hanenkamp.com (Sterling Hanenkamp) Date: Fri, 29 Oct 2010 15:53:51 -0500 Subject: [Omaha.pm] Intermittent Perl error... In-Reply-To: <429BE050-59A0-4F1B-93E6-EB2260A6C4A2@mutationgrid.com> References: <429BE050-59A0-4F1B-93E6-EB2260A6C4A2@mutationgrid.com> Message-ID: Do any of the subs do some sort of conditional import into main or muck with the symbol table? For example: use 5.12.1; sub foo { say 'test' } if (rand > 0.5) { undef *{foo}; } foo(); 50% of the time will print "test" and the other 50% will print: Undefined subroutine &main::foo called at test.pl line 8. On Fri, Oct 29, 2010 at 11:47 AM, Jay Hannah wrote: > On Oct 29, 2010, at 10:11 AM, Dan Linder wrote: > > Status: 500 Content-type: text/html > > Software error: > > Undefined subroutine &main::MySubroutine called at MyCGI.cgi line 123 > > > > I'm asking my server admin to send me the Apache log files (it's a remote > server I don't have access to) - is there anything else to look at? > > Is it vanilla CGI (perl is executed for every page hit)? mod_perl? fastcgi? > other? > > I'd write a little WWW::Mechanize program to hit it 1000 times and see how > many times the error occurs. If you think it's load related somehow (really? > eek) then you could use Apache Benchmark (ab) to nail the heck out of it and > see if load does indeed cause a problem. > > Do you have another server with the same software to compare results? > > HTH, > > Jay Hannah > Software Architect > jhannah at mutationgrid.com | http://mutationgrid.com | 1-402-598-7782 > > > > > > _______________________________________________ > Omaha-pm mailing list > Omaha-pm at pm.org > http://mail.pm.org/mailman/listinfo/omaha-pm > -- Andrew Sterling Hanenkamp sterling at hanenkamp.com 785.370.4454 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jhannah at mutationgrid.com Fri Oct 29 14:52:42 2010 From: jhannah at mutationgrid.com (Jay Hannah) Date: Fri, 29 Oct 2010 16:52:42 -0500 Subject: [Omaha.pm] Persistent data store for a prototype In-Reply-To: References: Message-ID: On Oct 29, 2010, at 2:44 PM, Dave Burchell wrote: > I'm working on a prototype web app. I plan to use Amazon S3 and/or SimpleDB in production. What's a good choice for the prototype? I've played around with Amazon EC2 Linux nodes, but I haven't used their storage engines. For development, Micro EC2 Linux nodes are basically free ($0.02/hour), especially if you shut them down overnight (whenever you're not coding). Or, perhaps you prefer literally free: http://aws.amazon.com/free/ I'd launch an EC2 instance (Debian Linux), stick Catalyst and Template Toolkit on top of that, and go to town. Searching CPAN for "amazon s3" and "amazon simpledb" seems to show various options. Did that help? Jay Hannah Software Architect jhannah at mutationgrid.com | http://mutationgrid.com | 1-402-598-7782 From evaddnomaid at gmail.com Fri Oct 29 15:02:09 2010 From: evaddnomaid at gmail.com (Dave Burchell) Date: Fri, 29 Oct 2010 17:02:09 -0500 Subject: [Omaha.pm] Persistent data store for a prototype In-Reply-To: References: Message-ID: Great suggestions, thanks Jay. However, I'm looking for something with local storage so I can code/test/demo the app while I'm away from the net (e.g., on a plane or at my mom's house). Maybe something like gdbm is a good option? But there are a bunch of Berkley DB-derived libraries; how do I choose? (I was hoping someone knew of a slick module that would let me abstract away the storage mechanism and switch from local to net-based storage arbitrarily.) - djb On Fri, Oct 29, 2010 at 4:52 PM, Jay Hannah wrote: > On Oct 29, 2010, at 2:44 PM, Dave Burchell wrote: > > I'm working on a prototype web app. I plan to use Amazon S3 and/or > SimpleDB in production. What's a good choice for the prototype? > > I've played around with Amazon EC2 Linux nodes, but I haven't used their > storage engines. > > For development, Micro EC2 Linux nodes are basically free ($0.02/hour), > especially if you shut them down overnight (whenever you're not coding). Or, > perhaps you prefer literally free: http://aws.amazon.com/free/ > > I'd launch an EC2 instance (Debian Linux), stick Catalyst and Template > Toolkit on top of that, and go to town. Searching CPAN for "amazon s3" and > "amazon simpledb" seems to show various options. > > Did that help? > > Jay Hannah > Software Architect > jhannah at mutationgrid.com | http://mutationgrid.com | 1-402-598-7782 > > > > > > _______________________________________________ > Omaha-pm mailing list > Omaha-pm at pm.org > http://mail.pm.org/mailman/listinfo/omaha-pm > -- Dave Burchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From jhannah at mutationgrid.com Fri Oct 29 15:14:05 2010 From: jhannah at mutationgrid.com (Jay Hannah) Date: Fri, 29 Oct 2010 17:14:05 -0500 Subject: [Omaha.pm] Persistent data store for a prototype In-Reply-To: References: Message-ID: <5259B6BF-AB96-4739-A78B-0DBD7C8A5127@mutationgrid.com> On Oct 29, 2010, at 5:02 PM, Dave Burchell wrote: > Great suggestions, thanks Jay. However, I'm looking for something with local storage so I can code/test/demo the app while I'm away from the net (e.g., on a plane or at my mom's house). Maybe something like gdbm is a good option? But there are a bunch of Berkley DB-derived libraries; how do I choose? > > (I was hoping someone knew of a slick module that would let me abstract away the storage mechanism and switch from local to net-based storage arbitrarily.) http://simplerdb.rubyforge.org/ ? Google++ There are Ruby folks over at odlug.org if you aren't already on that mailing list. You could also tell the author whether or not Perl drivers work with his Ruby simulator. :) Jay Hannah Software Architect jhannah at mutationgrid.com | http://mutationgrid.com | 1-402-598-7782 From dan at linder.org Sat Oct 30 09:43:27 2010 From: dan at linder.org (Dan Linder) Date: Sat, 30 Oct 2010 11:43:27 -0500 Subject: [Omaha.pm] Intermittent Perl error... In-Reply-To: References: <429BE050-59A0-4F1B-93E6-EB2260A6C4A2@mutationgrid.com> Message-ID: Here is the code from the cgi with line numbers: 39 use MyPackages::Local; ... 1965 unless(*check_if_config_file_exists*('datafile.cfg')) { 1966 print "The file does not exist. \n"; 1967 } 1968 unless(*check_if_config_file_readable*('datafile.cfg ')) { 1969 print "The file is unreadable.\n"; 1970 } The error message is always pointing to line 1968. Both of the *check_if_config_file_** subroutines are defined in the same module included earlier in the CGI script, and are only used in this section. There are no undef commands going on.** Here?s a few snippets of the MyPackages::Local file. (Don't laugh - I haven't maintained this module code, so there are a lot of Perl-Golf code refactoring I'd like to do...) [Some names have been changed to protect the innocent... :-) ] === begin === 3 package MyPackages::Local; ... 14 use Exporter; 15 @ISA = qw(Exporter); 16 @EXPORT = qw( 17 check_if_config_file_exists 18 check_if_config_file_readable ... 43 ); ... 142 sub check_if_config_file_exists { 143 my ($target) = @_; 144 if (-e "$fl{$target}") { 145 return 1; 146 } 147 else { 148 return 0; 149 } 150 } 151 152 sub check_if_config_file_readable { 153 my ($target) = @_; 154 if (-r "$fl{$target}") { 155 return 1; 156 } 157 else { 158 return 0; 159 } 160 161 } ... 916 # Make use/require happy 917 # 918 1; === end === So, nothing much there that I can see, especially considering this exact same code on the same server will work fine for weeks, then give the "Undefined subroutine" error for a few minutes in a row, then continue to work. I'll keep plugging and double check with the user who reported it. Thanks, Dan 2010/10/29 Sterling Hanenkamp > Do any of the subs do some sort of conditional import into main or muck > with the symbol table? > > For example: > > use 5.12.1; > sub foo { say 'test' } > > if (rand > 0.5) { > undef *{foo}; > } > > foo(); > > 50% of the time will print "test" and the other 50% will print: > > Undefined subroutine &main::foo called at test.pl line 8. > > On Fri, Oct 29, 2010 at 11:47 AM, Jay Hannah wrote: > >> On Oct 29, 2010, at 10:11 AM, Dan Linder wrote: >> > Status: 500 Content-type: text/html >> > Software error: >> > Undefined subroutine &main::MySubroutine called at MyCGI.cgi line 123 >> > >> > I'm asking my server admin to send me the Apache log files (it's a >> remote server I don't have access to) - is there anything else to look at? >> >> Is it vanilla CGI (perl is executed for every page hit)? mod_perl? >> fastcgi? other? >> >> I'd write a little WWW::Mechanize program to hit it 1000 times and see how >> many times the error occurs. If you think it's load related somehow (really? >> eek) then you could use Apache Benchmark (ab) to nail the heck out of it and >> see if load does indeed cause a problem. >> >> Do you have another server with the same software to compare results? >> >> HTH, >> >> Jay Hannah >> Software Architect >> jhannah at mutationgrid.com | http://mutationgrid.com | 1-402-598-7782 >> >> >> >> >> >> _______________________________________________ >> Omaha-pm mailing list >> Omaha-pm at pm.org >> http://mail.pm.org/mailman/listinfo/omaha-pm >> > > > > -- > Andrew Sterling Hanenkamp > sterling at hanenkamp.com > 785.370.4454 > > _______________________________________________ > Omaha-pm mailing list > Omaha-pm at pm.org > http://mail.pm.org/mailman/listinfo/omaha-pm > -- ***************** ************* *********** ******* ***** *** ** "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 jhannah at mutationgrid.com Sat Oct 30 10:39:42 2010 From: jhannah at mutationgrid.com (Jay Hannah) Date: Sat, 30 Oct 2010 12:39:42 -0500 Subject: [Omaha.pm] Intermittent Perl error... In-Reply-To: References: <429BE050-59A0-4F1B-93E6-EB2260A6C4A2@mutationgrid.com> Message-ID: On Oct 30, 2010, at 11:43 AM, Dan Linder wrote: > So, nothing much there that I can see, especially considering this exact same code on the same server will work fine for weeks, then give the "Undefined subroutine" error for a few minutes in a row, then continue to work. You've said Apache, but I don't think you've said anything else about how this is deployed. Is it just a "cgi-script" Apache directive (vanilla CGI)? or mod_perl? fastcgi? other? Linux, right? Jay Hannah Software Architect jhannah at mutationgrid.com | http://mutationgrid.com | 1-402-598-7782 From dan at linder.org Sat Oct 30 13:29:21 2010 From: dan at linder.org (Dan Linder) Date: Sat, 30 Oct 2010 15:29:21 -0500 Subject: [Omaha.pm] Intermittent Perl error... In-Reply-To: References: <429BE050-59A0-4F1B-93E6-EB2260A6C4A2@mutationgrid.com> Message-ID: > On Sat, Oct 30, 2010 at 12:39, Jay Hannah wrote: > On Oct 30, 2010, at 11:43 AM, Dan Linder wrote: > > So, nothing much there that I can see, especially considering this exact > same code on the same server will work fine for weeks, then give the > "Undefined subroutine" error for a few minutes in a row, then continue to work. > > You've said Apache, but I don't think you've said anything else about how this > is deployed. Is it just a "cgi-script" Apache directive (vanilla CGI)? or > mod_perl? fastcgi? other? > > Linux, right? Sorry, meant to include that. It's a vanilla CGI on a Solaris 10 (Sparc) box. My engineer said that he might have been using the "wrong link" -- I won't know exactly what he meant until I work with him next week. (Either way, the script shouldn't be dying with that error since the code isn't changing...) If we're still stumped, I'm hoping to enlist a co-worker who has experience with Dtrace so we may go that route. I'm hoping we can log memory, swap, or process related errors. 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 jhannah at mutationgrid.com Sun Oct 31 06:00:06 2010 From: jhannah at mutationgrid.com (Jay Hannah) Date: Sun, 31 Oct 2010 08:00:06 -0500 Subject: [Omaha.pm] Intermittent Perl error... In-Reply-To: References: <429BE050-59A0-4F1B-93E6-EB2260A6C4A2@mutationgrid.com> Message-ID: On Oct 30, 2010, at 3:29 PM, Dan Linder wrote: > It's a vanilla CGI on a Solaris 10 (Sparc) box. Huh. Ya, with vanilla CGI (all Perl re-interpretted from scratch on every single web hit) I don't know how that error is possible if the source code isn't changing. :( > If we're still stumped, I'm hoping to enlist a co-worker who has experience with Dtrace so we may go that route. I'm hoping we can log memory, swap, or process related errors. If it's only happening every few weeks graphing out your long term system trends (memory, process count, etc.) might show a correlation? http://www.cacti.net/ Make sure to tell us what you figure out. :) HTH, Jay Hannah Software Architect jhannah at mutationgrid.com | http://mutationgrid.com | 1-402-598-7782