From jay at jays.net Mon May 24 18:17:28 2004 From: jay at jays.net (Jay Hannah) Date: Mon Aug 2 21:33:58 2004 Subject: [Omaha.pm] Mtg 5/25 @ 7pm (tomorrow), new books, etc Message-ID: <861C9EE6-ADD8-11D8-8A74-000A95E317B8@jays.net> If you haven't noticed, the pm.org server was destroyed last Thr or Fri. They're still rebuilding all the groups homepages. Ours remains down for now. Hopefully this fancy new mailing list (we've moved from Majordomo to MailMan) is working... As previously announced (a week and a half ago?) we'll be having a meeting at Reboot The User (RTU) tomorrow night at 7pm. http://www.reboottheuser.com/ http://www.reboottheuser.com/store_hours.html The good folk @ O'Reilly sent us 5 new books. I'll bring them tomorrow and add them to our book borrowing library: - Perl CD Bookshelf v4.0 - Perl in a Nutshell 2nd Edition - Perl Debugger Pocket Reference - Perl Template Toolkit - Perl Cookbook 2nd Edition If youu haven't picked up your T-shirt(s) yet, come get them at the meeting, or swing by RTU any time they're open. At the meeting we'll discuss using WWW::Mechanize to hit Yahoo (see previous post), the stuff I've been working on lately (FixedWidth.pm, an OO fixed-width file manipulator), and whatever else anyone fancies... Time to send this thing and see if it actually works. -laugh- Cya tomorrow, j 578-3976 From mlist at asesoft.ro Tue May 25 01:36:09 2004 From: mlist at asesoft.ro (MailingList) Date: Mon Aug 2 21:33:58 2004 Subject: [Omaha.pm] (no subject) Message-ID: <00b301c44222$907a9350$7560a8c0@asesoft.intl> -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/omaha-pm/attachments/20040525/9b1d4043/attachment.htm From jay at jays.net Wed May 26 09:57:04 2004 From: jay at jays.net (Jay Hannah) Date: Mon Aug 2 21:33:58 2004 Subject: [Omaha.pm] Re: [olug] DBD::Pg compile error In-Reply-To: <33456.68.15.239.248.1085544864.squirrel@www2.neonramp.com> References: <33456.68.15.239.248.1085544864.squirrel@www2.neonramp.com> Message-ID: If other suggestions and all else fails, you may want to try a very detailed post to dbi-users: http://lists.perl.org/showlist.cgi?name=dbi-users That's what I do when I get *really* stuck with DBD::* installs. The gurus of each DBD hang out on that list pretty regularly. I did a groups.google.com search for `XS_DBD__Pg__db_lo_import' undeclared and didn't see anyone else w/ the same problem yet. The dbi-users mailing list is fed to Usenet, so your solution/thread will be Google-able by others in the future. j On May 25, 2004, at 11:14 PM, jman@neonramp.com wrote: > I have been pulling my hair out trying to get the perl module DBD::Pg > to > compile on RDFC2. Below is only a partial of a much larger series of > similar errors. > > I would appreciated any help on this > > John > > I have run the prerequisite perl installs and each time I am returned > with: > > Pg.c:1639: error: `XS_DBD__Pg__db_lo_import' undeclared (first use in > this > function) > Pg.c:1640: error: `XS_DBD__Pg__db_lo_export' undeclared (first use in > this > function) > Pg.c:1641: error: `XS_DBD__Pg__db_putline' undeclared (first use in > this > function) > Pg.c:1642: error: `XS_DBD__Pg__db_getline' undeclared (first use in > this > function) > Pg.c:1643: error: `XS_DBD__Pg__db_endcopy' undeclared (first use in > this > function) > Pg.c:1644: error: `XS_DBD__Pg__db__pg_type_info' undeclared (first use > in > this function) > Pg.xsi:18: error: `items' undeclared (first use in this function) > Pg.xsi:19: error: `DBISTATE_INIT' undeclared (first use in this > function) > Pg.xsi:21: error: `imp_drh_t' undeclared (first use in this function) > Pg.xsi:22: error: `imp_dbh_t' undeclared (first use in this function) > Pg.xsi:23: error: `imp_sth_t' undeclared (first use in this function) > Pg.xsi:24: error: `DBIS' undeclared (first use in this function) > Pg.c:1680: error: `XSRETURN_YES' undeclared (first use in this > function) > make: *** [Pg.o] Error 1 > /usr/bin/make -- NOT OK > Running make test > Can't test without successful make > Running make install > make had returned bad status, install seems impossible > From jay at jays.net Mon May 24 21:45:13 2004 From: jay at jays.net (Jay Hannah) Date: Mon Aug 2 21:33:58 2004 Subject: [Omaha.pm] Fwd: [pm_groups] pm.org reconstruction Message-ID: <8C1477E6-ADF5-11D8-9F73-000A95E317B8@jays.net> Yay! Our web site is back up... Chatting now if you're an IRC geek... j Begin forwarded message: > From: Wayne Walker > > I'm online as wwalker on irc.freenode.net. > > I've create #pmorg. > > I've set the topic to things I need help with. Anyone that wants, just > drop into the channel and then /msg wwalker and I'll see that you're > there. > > I quit managing web servers about 3 years ago, so right now, I'd like > someone to maybe help with webdav setup. and suexec under apache > 2.0.40. From jay at jays.net Fri May 28 14:17:23 2004 From: jay at jays.net (Jay Hannah) Date: Mon Aug 2 21:33:58 2004 Subject: [Omaha.pm] OT: Small stakes Poker? Message-ID: To my surprise, interest was expressed @ our last Perl Mongers meeting in small stakes poker. If you're interested in informal 7-card Texas hold-em w/ a buy-in of $10 email me OFF LIST and I'll add you to my little informal notification list. We may have a game tomorrow night. I live halfway to Lincoln (see map below). -grin- RSVP to me OFF LIST if interested (for tomorrow or future). j 578-3976 Begin forwarded message: > From: Jay Hannah > Date: May 28, 2004 2:12:33 PM CDT > Subject: Poker Saturday Night? 7pm? My house? > > > Who's up for poker Saturday night? > > Eli has given up on organizing games, so I've taken over (I haven't > given up yet) -laugh- > > My house: > http://jays.net/images/house2/map.html > > I've got 1000 brand new 11.5 gram poker chips in a big, shiny > briefcase off eBay. They need some breaking in. I'll buy pizza, beer, > whatever. > > RSVP to me so I can get a head-count. > > j > 578-3976 > > From jay at jays.net Fri May 28 18:22:28 2004 From: jay at jays.net (Jay Hannah) Date: Mon Aug 2 21:33:58 2004 Subject: [Omaha.pm] Re: [olug] Report Generator In-Reply-To: <40B663E6.9060903@olug.org> References: <40B265C1.7090703@olug.org> <40B663E6.9060903@olug.org> Message-ID: On May 27, 2004, at 4:55 PM, Eric Penne wrote: > I started out with html. I created an HTML file with the sizes of the > pictures correct for the margins that I wanted to use in the document. > I centered them and closed the html file out. I then opened the html > document in OpenOffice and saved it as MSWord. The pictures don't > hold the resizing that I need for the margins so I dropped that path. I thought your desired end result was .pdf? If so, why go through MSWord format at all? > I could not find a Perl->Word Hmmm... Haven't used Win32::OLE, but here are a couple examples? http://www.wellho.net/solutions/1480965085.html http://www.znark.com/tech/resumeword.html > or Perl->OOWriter interface. http://search.cpan.org/~jmgdoc/OpenOffice-OODoc-1.106/OODoc/Intro.pod > Even if I did I would then have to learn Perl. Ya. It's good for you. http://www.oreilly.com/catalog/lperl3/index.html http://omaha.pm.org > I did find some things with Python but I haven't had the time to check > them out. I would like to learn Python because I've seen that it has > an interface for some GPIB instrumentation that I would like to use to > automate some testing. Again I would have to learn Python first. Perly GPIB? http://search.cpan.org/~jeffmock/GPIB_0_30/GPIB.pm I just joined the Python mailing list, as I remain curious after meeting Guido @ OSCON 2003. Looks like only 2 posts to the mailing list this year -- about the same number as the Perl Mongers if you don't include my posts. -laugh- > I barely know the basics of bash scripting and html so almost any > language would be a ground up learning experience for me. Oh but the carpal tunnel will be your forever. > I also need a script that will generate the correct directory > structure for all of this to work nicely. The documents are all on a > Win2k server and I'm the only person with bash. I write about 50% of > the reports so I'm not that worried about interoperabilty with my co > workers yet. I'd Samba mount the Win box and whack the directories from Linux under whatever language you prefer perl. Good luck! j From jay at jays.net Fri May 28 18:51:43 2004 From: jay at jays.net (Jay Hannah) Date: Mon Aug 2 21:33:58 2004 Subject: [Omaha.pm] Quick shorter code tip: for() {} Message-ID: This came up at work this week... j BEFORE: while (($item_code,$enabled,$descript) = $sth->fetchrow_array) { $item_code =~ s/[^ -~]//g; $item_code =~ s/\s+$//; $enabled =~ s/[^ -~]//g; $enabled =~ s/\s+$//; $descript =~ s/[^ -~]//g; $descript =~ s/\s+$//; AFTER my @row; while (@row = $sth->fetchrow_array) { for (@row) { s/[^ -~]//g; s/\s+$//; } ($item_code,$enabled,$descript) = @row; From jay at jays.net Fri May 28 18:58:12 2004 From: jay at jays.net (Jay Hannah) Date: Mon Aug 2 21:33:58 2004 Subject: [Omaha.pm] Re: Welcome to the "Omaha-pm" mailing list In-Reply-To: References: Message-ID: On May 24, 2004, at 12:45 AM, omaha-pm-request@pm.org wrote: > Welcome to the Omaha-pm@pm.org mailing list! I assume everyone got these. Mailman is kind of neat, that you can admin everything via the web: > http://www.pm.org/mailman/listinfo/omaha-pm This link will always be on our homepage. > Normally, Mailman will remind you of your pm.org mailing list > passwords once every month, although you can disable this if you > prefer. This reminder will also include instructions on how to > unsubscribe or change your account options. There is also a button on > your options page that will email your current password to you. I find these monthly password reminders annoying, so I disabled those. If you forget/lose yours, you can always have MailMan send it to you again from the link above. Just FYI, j From jay at jays.net Fri May 28 19:36:19 2004 From: jay at jays.net (Jay Hannah) Date: Mon Aug 2 21:33:58 2004 Subject: [Omaha.pm] Re: [olug] Report Generator In-Reply-To: <40B7D31F.6050608@olug.org> References: <40B265C1.7090703@olug.org> <40B663E6.9060903@olug.org> <40B7D31F.6050608@olug.org> Message-ID: <340E8624-B108-11D8-9FDA-000A95E317B8@jays.net> On May 28, 2004, at 7:02 PM, Eric Penne wrote: > The plot generated by the scanning software are in PDF. The > individual test values measured are also included in that plot. I > need to extract that data from the PDF. There's one billion + 1 PDF read/write packages for Perl: http://search.cpan.org/search?query=pdf&mode=all > The final customer report is done in MSWord and saved. Then it is > printed to PDF with Acrobat4. With Acrobat4 we sign it and send it. > > I need to get everything to MSWord first so that it can be put > together for final output in PDF. Sorry I'm so slow -- I still don't see the point in the MSWord step. You can string anything you want straight from whatever format into .pdf... Missing something as usual, -grin- j From dark_house_666 at yahoo.com Sat May 29 16:12:53 2004 From: dark_house_666 at yahoo.com (Ted Kat.) Date: Mon Aug 2 21:33:58 2004 Subject: [Omaha.pm] Quick shorter code tip: for() {} In-Reply-To: Message-ID: <20040529211253.39038.qmail@web40503.mail.yahoo.com> nice! but which has less overhead? --- Jay Hannah wrote: > > This came up at work this week... > > j > > > BEFORE: > > while (($item_code,$enabled,$descript) = $sth->fetchrow_array) > { > $item_code =~ s/[^ -~]//g; > $item_code =~ s/\s+$//; > $enabled =~ s/[^ -~]//g; > $enabled =~ s/\s+$//; > $descript =~ s/[^ -~]//g; > $descript =~ s/\s+$//; > > AFTER > > my @row; > while (@row = $sth->fetchrow_array) > { > for (@row) { > s/[^ -~]//g; > s/\s+$//; > } > ($item_code,$enabled,$descript) = @row; > > _______________________________________________ > Omaha-pm mailing list > Omaha-pm@pm.org > http://www.pm.org/mailman/listinfo/omaha-pm ===== Ted Katseres ---------------- ------------------------ -------------------------------- __________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ From mat at phpconsulting.com Sun May 30 12:25:54 2004 From: mat at phpconsulting.com (Mat Caughron) Date: Mon Aug 2 21:33:59 2004 Subject: [Omaha.pm] a perl "table of operators" In-Reply-To: References: Message-ID: Hi Perl-ists: One look at this nice pdf and you'll just have to pass it along... http://www.ozonehouse.com/mark/blog/code/PeriodicTable.pdf Mat From jay at jays.net Mon May 31 12:29:00 2004 From: jay at jays.net (Jay Hannah) Date: Mon Aug 2 21:33:59 2004 Subject: [Omaha.pm] Quick shorter code tip: for() {} In-Reply-To: <20040529211253.39038.qmail@web40503.mail.yahoo.com> References: <20040529211253.39038.qmail@web40503.mail.yahoo.com> Message-ID: <00D77E82-B328-11D8-9BD6-000A95E317B8@jays.net> Iterating over @row is additional "overhead," but not enough that you'd ever notice. The most efficient code on the planet is also the least readable/maintainable, so you have to strike a balance wherever you're comfortable. j On May 29, 2004, at 4:12 PM, Ted Kat. wrote: > nice! > > but which has less overhead? > > > --- Jay Hannah wrote: >> >> This came up at work this week... >> >> j >> >> >> BEFORE: >> >> while (($item_code,$enabled,$descript) = $sth->fetchrow_array) >> { >> $item_code =~ s/[^ -~]//g; >> $item_code =~ s/\s+$//; >> $enabled =~ s/[^ -~]//g; >> $enabled =~ s/\s+$//; >> $descript =~ s/[^ -~]//g; >> $descript =~ s/\s+$//; >> >> AFTER >> >> my @row; >> while (@row = $sth->fetchrow_array) >> { >> for (@row) { >> s/[^ -~]//g; >> s/\s+$//; >> } >> ($item_code,$enabled,$descript) = @row; >> >> _______________________________________________ >> Omaha-pm mailing list >> Omaha-pm@pm.org >> http://www.pm.org/mailman/listinfo/omaha-pm > From jay at jays.net Mon May 31 14:29:14 2004 From: jay at jays.net (Jay Hannah) Date: Mon Aug 2 21:33:59 2004 Subject: [Omaha.pm] WWW::Mechanize & http://screen.yahoo.com/stocks.html Message-ID: Last meeting we talked about Dean's attempt to spider Yahoo. It wasn't quite working. I figured it out. Here's the solution: http://jays.net/tmp/j.pl.txt (Program and output) I believe the problem was this: $agent->follow_link(text => "Next 20", n => 240) That syntax asks WWW::Mechanize to follow the 240th link labelled "Next 20". That's not right, of course. There's only one link labelled "Next 20". And the link actually is /Next \d\d/, so I changed the syntax to this: $agent->follow_link(text_regex => qr/Next \d\d/) Looks like it's working. Pretty slick. Enjoy! j