From kevin at binarymojo.net Tue Jun 3 13:06:24 2003 From: kevin at binarymojo.net (Kevin Christopher) Date: Mon Aug 2 21:25:56 2004 Subject: [Buffalo-pm] Notes the 3rd Meeting of BPM, &c. Message-ID: <9212.64.65.247.81.1054663584.squirrel@my.modwest.com> ITEM ONE: NOTES FROM OUR THIRD MEETING ITEM TWO: NEXT MEETING ITEM THREE: FUTURE TALKS - WHAT DO *YOU* WANT? ITEM FOUR: PLEASE, USE THIS MAILING LIST ITEM ONE: Notes from the 3rd Meeting of Buffalo Perl Mongers May 29, 2003 Jim Brandt's talk on Perl's Template Toolkit was an excellent introduction to what is apparently one of the most comprehensive and useful Web development modules in Perl's CPAN arsenal. It's a real shame that only 4 of our 30 list members were able to make it to our third meeting. Fortunately, Jim will be passing along his notes and examples to post at http://buffalo.pm.org where absentees can see what they missed. I'll make sure from now on to send a reminder e-mail the day before our future meetings. Here is a summary of some of the changes and plans for Buffalo PM that we discussed at our 3rd meeting: (1) We will move our meeting date to the ***second Thursday*** of each month. The major motivation was that we wanted to make it easier for our membership to participate in the meetings of the Toronto Perl Mongers, and vice versa. This means that we will meet on Thursday, June 12th, 7:00 p.m., at Alternative Brews on 3488 Sheridan Drive in Amherst ( Take the 1-290 into Amherst and exit at "Millersport South" Turn right at the second light - Sheridan Drive - and you'll see Alternative Brews on your right ). (2) We're adopting an order of business for our meetings: - New people: Anyone new to the group could say who they are an why they're attending. - Perl News (Local Perl news; maybe something interesting someone had done with Perl in the last month) - Main presentation - Suggestions for next presentation - Follow up on business of previous meeting; Open floor to new business. Since talks will generally have AV needs, we'll meet at UB North Campus's Bell Hall. After the main presentation, we can go to Alternative Brews (or some other place we agree on) to unwind and carry on the discussion. (3) We want to get the word out there to more people in the area and draw them to our meetings. To that end we'll expand and improve buffalo.pm.org as a resource for Perl users and those who want to learn more about Perl. Once we get our online resources better established, we'll start efforts in local media to bring BPM to the attention of more programmers, Web developers, and IT professionals in WNY. (4) We're soliciting ideas from BPM members for future talks, see ITEM 3. ITEM TWO: OUR NEXT MEETING To repeat what was mentioned above, we will meet on Thursday, June 12th, at 7:00 p.m. at Alternative Brews on 3488 Sheridan Drive in Amherst ( Take the 1-290 into Amherst and exit at "Millersport South" Turn right at the second light - Sheridan Drive - up the street you'll see Alternative Brews on your right ). We'll be following up on the plans outlined in this post, talk shop, and brainstorm future BPM plans and projects. ITEM THREE: FUTURE TALKS - WHAT DO YOU WANT? A major activity of Perl Mongers Groups is providing members with a regular series of talks discussing Perl, Perl modules, etc. This group is no exception. So what do you want see a talk on? What do you want get out of this group? Maybe there's a module you'd like to use at work or for a personal site and you'd like to hear someone else's experiences using it. Maybe you've got the bare basics of Perl down, but want a live tutorial/discussion on references, building modules, using CPAN, etc. Maybe you're a sysadmin who uses Perl for administration tasks, but want to know more about using it for Web development. Or vice versa. Maybe you've used Perl on *nix for years but would like to find out more about Active State's Perl for Win32 and Active State's Perl development tools. Whatever you'd like to see, send your ideas to me at kevin@binarymojo.net, or come to our June 12 meeting and bring them up. ITEM FOUR: PLEASE, USE THIS LIST Meetings are once a month; this mailing list is 24-7; Use it! Found something interesting in use.perl.org that your fellow BPMers might be interested in? Post it to the list. Got a problem in your code? Post it to the list. Want to know if anyone else has used a module you're thinking of using? Post to the list. That's it for now: hope to see you on June 12! -Kevin From kevin at binarymojo.net Thu Jun 5 21:45:04 2003 From: kevin at binarymojo.net (Kevin Christopher) Date: Mon Aug 2 21:25:56 2004 Subject: [Buffalo-pm] If you've tried to contact me this week... Message-ID: <32813.67.75.59.162.1054867504.squirrel@my.modwest.com> If any of you have tried to contact this week, your mail has probably bounced back or been killed silently its sleep. My original domain name, binarymojo.net, has been out of comission for several days and may not be up and running until Monday morning. Please resend any e-mail to kevin@kevinchristopher.com / ( CC kevincmail@yahoo.com to be safe ) in the mean time. Kevin From bpm at binarymojo.net Wed Jun 11 10:55:58 2003 From: bpm at binarymojo.net (Kevin Christopher) Date: Mon Aug 2 21:25:56 2004 Subject: [Buffalo-pm] Reminder: BPM Meeting Tomorrow 6/12 Message-ID: <5668.64.65.247.81.1055346958.squirrel@my.modwest.com> Reminder: Thursday, June 12, 2003 4th Meeting of the Buffalo Perl Mongers Meeting Place: Alternative Brews 3488 Sheridan Drive Amherst, NY (Direction from 290: Take I-290 to Millersport South Exit, At 2nd light on Millersport, turn right (Sheridan Drive). You'll see Alternative Brews on your right.) Time: 7:00pm - 9:00pm Speaker: General Meeting Agenda: Planning, scheduling talks for upcoming meetings The BPM Web site Using the Mailing List Expanding membership, outreach Floor open to new business From bpm at binarymojo.net Tue Jun 17 21:48:13 2003 From: bpm at binarymojo.net (Kevin Christopher) Date: Mon Aug 2 21:25:56 2004 Subject: [Buffalo-pm] Notes from the 4th Meeting of the Buffalo Perl Mongers Message-ID: <33366.67.75.59.53.1055904493.squirrel@my.modwest.com> Notes from the 4th Meeting of the Buffalo Perl Mongers June 12, 2003 TALKS AND PRESENTATIONS FOR UPCOMING MEETINGS: Thursday, July 10, 2003 242 Bell Hall (subject to change) 7:00 pm UB North Campus Kevin Eye will report in the YAPC::North America conference being held this week at the Florida Atlantic University, Boca Raton, Florida, U.S.A Jason Parker-Burlington will give a presentation on CGI::Application. Thursday, August 14, 2003 242 Bell Hall (subject to change) 7:00 pm UB North Campus Jim Brandt will report on the O'Reilly Open Source Convention being held July 7-11, 2003, in Portland, Oregon. Kevin Eye will give a presentation on mod_perl. This summer, I'll be working on getting some more Perl gurus here in the Fall to speak. EXPANDING MEMBERSHIP AND ATTENDANCE: One suggestion is that we communicate with CS departments at Buff State, RIT, U of Rochester, Niagara University, and other schools in the region, to let them know about our meetings and what we'd like to accomplish. If you have any suggestions of CS instructors, programmers, sysadmins, etc., at WNY institutions other than UB, please forward contact information to me. At UB, we'll contact the Bioinformatics "Center of Excellence" to try to get the Center staff aware of our group's meetings and the value of Perl in bioinformatics and other genetics research. WEB SITE / PROMOTION I'll be developing content to put online and incorporate into a information package for press, etc. I'd also like any suggestions for online/print resources on the history of perl, its use at universities and businesses, statistics, success stories, etc. Also, it seems that there's a lot of bad information about Perl floating around; I'd really be interesting in hearing your anecdotes and experiences with the misconceptions of coworkers, instructors and online sources. On the subject of the site, at the previous (May) meeting Rob Raux volunteered to work on the buffalo.pm.org site during his spare time this summer. -30-30-30- I'll be in touch soon with updates, etc. I hope everyone's having a great summer! - Kevin Christopher From jlf27 at cse.Buffalo.EDU Wed Jun 18 08:35:52 2003 From: jlf27 at cse.Buffalo.EDU (Jesse L Farinacci) Date: Mon Aug 2 21:25:56 2004 Subject: [Buffalo-pm] one liner Message-ID: <20030618133551.GA12342@cse.Buffalo.EDU> hey guys--since i can't make it to the meetings as i'm not in buffalo for the time being i have been trying to replace my usual exposure to others using perl.. perhaps to increase traffic, and provide more website content, we could start up a weekly thing on the list serv: 'one-liner of the week' ?? i'll contribute something i like to use, and have actually made it an alias on my shell ('pinc') because it's just cool :-) perl -e 'print join("\n", @INC), "\n";' i can't recall seeing this anywhere, but if someone else has seen this on another site i may have witnessed it but can not remember. cheers, -jlf -- print "Just Another Perl Hacker."; Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 185 bytes Desc: not available Url : http://mail.pm.org/pipermail/buffalo-pm/attachments/20030618/47e91b3d/attachment.bin From cbrandt at buffalo.edu Wed Jun 18 10:15:02 2003 From: cbrandt at buffalo.edu (Jim Brandt) Date: Mon Aug 2 21:25:56 2004 Subject: [Buffalo-pm] one liner In-Reply-To: <20030618133551.GA12342@cse.Buffalo.EDU> Message-ID: Sounds like a good idea to me. Might be worth some web searches to see if there are some other one-liner tips or lists out there to start from or expand on. The following is a footnote to the one-liner section in "Programming Perl". "These types of scripts are often referred to as "one-liners". If you ever end up hanging out with other Perl programmers, you'll find that some of us are quite fond of creating intricate one-liners. Perl has occasionally been maligned as a write-only language because of these shenanigans." So, no shenanigans! :) Jim On Wednesday, June 18, 2003, at 09:35 AM, Jesse L Farinacci wrote: > hey guys--since i can't make it to the meetings as i'm not in buffalo > for the time being i have been trying to replace my usual exposure to > others using perl.. perhaps to increase traffic, and provide more > website content, we could start up a weekly thing on the list serv: > 'one-liner of the week' ?? i'll contribute something i like to use, > and have actually made it an alias on my shell ('pinc') because it's > just cool :-) > > perl -e 'print join("\n", @INC), "\n";' > > i can't recall seeing this anywhere, but if someone else has seen this > on another site i may have witnessed it but can not remember. cheers, > > -jlf > > > -- > print "Just Another Perl Hacker."; > > Please avoid sending me Word or PowerPoint attachments. > See http://www.gnu.org/philosophy/no-word-attachments.html > > ========================================== Jim Brandt Administrative Computing Services University at Buffalo From phytar at csh.rit.edu Wed Jun 18 12:12:14 2003 From: phytar at csh.rit.edu (John Resig) Date: Mon Aug 2 21:25:56 2004 Subject: [Buffalo-pm] RIT & Rochester Perl Mongers In-Reply-To: <200306181701.h5IH1Dw18792@mail.pm.org> References: <200306181701.h5IH1Dw18792@mail.pm.org> Message-ID: Hello all, I've been watching the Buffalo PM group for a while now - unfortunately, I haven't been able to attend any of the meeting thus far. I currently go to school at RIT - and am an active Perl developer. I'm in the process of taking control of the Rochester PM group (it has been dead for a couple years now) and bringing it back to life. Now - when this happens - I would like to work very closely with your group in coordinating meetings and events, because I feel that we could work really well together (being in such close proximity). Additionally, at RIT, I'm a member of the Computer Science House. We have a large contingent of members who are interested in Perl/are interested in learning (which is a good thing). I'm hoping that once the school year starts up in the fall I'll be able to convince a couple people to make the drive over to one of your meetings. I look forward to hearing from you soon. John Resig phytar@csh.rit.edu http://csh.rit.edu/~phytar/ From bpm at binarymojo.net Wed Jun 18 13:05:56 2003 From: bpm at binarymojo.net (Kevin Christopher) Date: Mon Aug 2 21:25:56 2004 Subject: [Buffalo-pm] one liner Message-ID: <9888.64.65.247.81.1055959556.squirrel@my.modwest.com> Sorry: I'm resend this so it goes to the list w/o waiting for mailman admin approval... That is a great idea. For one liners, I like http://www.samag.com/documents/s=1334/samtpjoneliners/ It's not really all one-liners, but it's a neat page. That's where I first stumbled on one of my favorite perl command line utilities: perl -de 0 Here's a ST-ish one-liner that I've used sometimes to clear out files I haven't used in, say, over a week: perl -e 'unlink $_->[0] for grep { $_->[1] > 7 } map { [ $_, -A ] } <*>' There might be a short way with rm, but perl is more fun! Jesse: 1-liner #48 at http://www.samag.com/documents/s=1334/samtpjoneliners/ has: perl -e 'print "$_\n" for @INC' an alternative for your 1-liner perl -e 'print join("\n", @INC), "\n";' -Kevin > Sounds like a good idea to me. Might be worth some web searches to see > if there are some other one-liner tips or lists out there to start > from or expand on. > > The following is a footnote to the one-liner section in "Programming > Perl". > > "These types of scripts are often referred to as "one-liners". If you > ever end up hanging out with other Perl programmers, you'll find that > some of us are quite fond of creating intricate one-liners. Perl has > occasionally been maligned as a write-only language because of these > shenanigans." > > So, no shenanigans! :) > > Jim > > > On Wednesday, June 18, 2003, at 09:35 AM, Jesse L Farinacci wrote: > >> hey guys--since i can't make it to the meetings as i'm not in buffalo >> for the time being i have been trying to replace my usual exposure to >> others using perl.. perhaps to increase traffic, and provide more >> website content, we could start up a weekly thing on the list serv: >> 'one-liner of the week' ?? i'll contribute something i like to use, >> and have actually made it an alias on my shell ('pinc') because it's >> just cool :-) >> >> perl -e 'print join("\n", @INC), "\n";' >> >> i can't recall seeing this anywhere, but if someone else has seen >> this on another site i may have witnessed it but can not remember. >> cheers, >> >> -jlf >> >> >> -- >> print "Just Another Perl Hacker."; >> >> Please avoid sending me Word or PowerPoint attachments. >> See http://www.gnu.org/philosophy/no-word-attachments.html >> >> > ========================================== > Jim Brandt > Administrative Computing Services > University at Buffalo > > _______________________________________________ > Buffalo-pm mailing list > Buffalo-pm@mail.pm.org > http://mail.pm.org/mailman/listinfo/buffalo-pm From jasonp at panix.com Wed Jun 18 14:06:14 2003 From: jasonp at panix.com (Jason Parker-Burlingham) Date: Mon Aug 2 21:25:56 2004 Subject: [Buffalo-pm] one liner In-Reply-To: <9888.64.65.247.81.1055959556.squirrel@my.modwest.com> (Kevin Christopher's message of "Wed, 18 Jun 2003 14:05:56 -0400 (EDT)") References: <9888.64.65.247.81.1055959556.squirrel@my.modwest.com> Message-ID: <87k7bj434p.fsf@freezer.burling> "Kevin Christopher" writes: > 1-liner #48 at http://www.samag.com/documents/s=1334/samtpjoneliners/ > has: > perl -e 'print "$_\n" for @INC' > > an alternative for your 1-liner > perl -e 'print join("\n", @INC), "\n";' If I ever find myself typing something like print "$_\n" on the command line I tend to replace it with the equivalent -l idiom: $ perl -le'print for @INC' Although not useful in this case, it's useful in other scripts because of the auto-chomping behavior it gives to filehandle reads. See man perlrun for more information. -- Stay up-to-date on what I'm doing lately: http://www.panix.com/~jasonp From jasonp at panix.com Wed Jun 18 14:49:35 2003 From: jasonp at panix.com (Jason Parker-Burlingham) Date: Mon Aug 2 21:25:56 2004 Subject: [Buffalo-pm] CGI::Application presentation Message-ID: <877k7j414g.fsf@freezer.burling> Subscribers, I see from Kevin's message today that I'm to give a presentation next month. The questions I have for the group regard what, exactly, members might like to see---remember that you don't need to turn up to benefit from the presentation (since I'm hoping to have copies of my materials available afterward). What I have to present is a couple of OO perl modules to model posts to a USENET newsgroup. The database in use is postgres (I'm using a few of the more advanced features such as sequences) with Class::DBI providing a convenient abstraction for record creation, fetching and searching. I have a script which sucks articles from an NNTP server into the database which shows how to use the objects without all the CGI stuff getting in the way. The other half of the application is CGI::Application; I've written a few apps this way now but the example I have for y'all is the most complex one which I'm allowed to show you---the others have been for clients. There's no particularly tricky user-authentication or session tracking required---all the session data is in the URL---but I feel it's a pretty good example of what can be done with cgiapp in a few hours, especially the value of templating and instance scripts. The presentation layer is Template Toolkit, which complicates the cgiapp subclass a bit; this is probably what I'll choose to apply a little spit and polish to before showing it to the world since the templates right now are pretty basic and don't show off the full range of functionality I hope to one day support. In my presentation, I can talk about any one third of this for a reasonable amount of time or I can talk about all three parts---I don't mind which it will be. A few replies to this message will help me to write the presentation for the audience (if you all know Class::DBI to death I don't necessarily want to spend too much time focussed on it). jason, who has other ideas for presentations but this one is probably closest to ready for prime-time -- Stay up-to-date on what I'm doing lately: http://www.panix.com/~jasonp From eye at buffalo.edu Fri Jun 20 13:51:42 2003 From: eye at buffalo.edu (Kevin Eye) Date: Mon Aug 2 21:25:56 2004 Subject: [Buffalo-pm] one liner In-Reply-To: <87k7bj434p.fsf@freezer.burling> Message-ID: <3BC596B9-A350-11D7-8626-000393D1C5F2@buffalo.edu> FYI, the contents of @INC are also printed when you run "perl -V". Also, along the same lines as a one-liner a week, is anyone/everyone here subscribed to Mark Jason Dominus's perl QOTW (quiz of the week) mailing list? Each week there are two problems to be solved with perl (an easy one, and an expert one), some lively discussion, and a very thorough recap of what worked and what didn't. For info, have a peek here: http://perl.plover.com/qotw/ Also, - Kevin On Wednesday, June 18, 2003, at 03:06 PM, Jason Parker-Burlingham wrote: > "Kevin Christopher" writes: > >> 1-liner #48 at http://www.samag.com/documents/s=1334/samtpjoneliners/ >> has: >> perl -e 'print "$_\n" for @INC' >> >> an alternative for your 1-liner >> perl -e 'print join("\n", @INC), "\n";' > > If I ever find myself typing something like > print "$_\n" > on the command line I tend to replace it with the equivalent -l idiom: > $ perl -le'print for @INC' > Although not useful in this case, it's useful in other scripts because > of the auto-chomping behavior it gives to filehandle reads. See > man perlrun for more information. > -- > Stay up-to-date on what I'm doing lately: > http://www.panix.com/~jasonp > _______________________________________________ > Buffalo-pm mailing list > Buffalo-pm@mail.pm.org > http://mail.pm.org/mailman/listinfo/buffalo-pm > -- Kevin Eye Web Applications Developer Creative Services and Marketing University at Buffalo 330 Crofts Hall Buffalo, NY 14260 eye@buffalo.edu phone (716) 645-5000 x1435 fax (716) 645-3765 From bpm at binarymojo.net Fri Jun 20 14:28:10 2003 From: bpm at binarymojo.net (Kevin Christopher) Date: Mon Aug 2 21:25:56 2004 Subject: [Buffalo-pm] (no subject) Message-ID: <5168.64.65.247.81.1056137290.squirrel@my.modwest.com> 1) Jim Brandt's presentation slides (from his May 29 talk on Template Toolkit) are now available in a gzipped tar file at the BPM site (http://buffalo.pm.org - link in "Talks section"). 2) On a humorous intellectual property note, Here's one for Senator Orrin to put in his Hatch: http://www.wired.com/news/politics/0,1283,59305,00.html 3) Here's an interesting discussion from last fall at use.perl.org: http://use.perl.org/article.pl?sid=02/09/16/1448246&mode=thread Ever wonder where wrongheaded ideas about Perl come from? Check out the link at the above URL to "Question of the Week No. 184" at java.sun.com. The claim that Java beats Perl at pattern matching is still there to misinform, despite that fact that Perl hackers on 'use perl' demonstrated all sorts of errors within hours. And the fact that Sun's John Hoffamn admitted that Java had clearly been beaten with a contribution from Brad Choate: http://use.perl.org/comments.pl?sid=8432&op=&threshold=0&commentsort=0&mode=thread&pid=12972#12974 -Kevin From eye at buffalo.edu Fri Jun 20 14:37:00 2003 From: eye at buffalo.edu (Kevin Eye) Date: Mon Aug 2 21:25:56 2004 Subject: [Buffalo-pm] one liner In-Reply-To: <9888.64.65.247.81.1055959556.squirrel@my.modwest.com> Message-ID: <8FBBEC7C-A356-11D7-8626-000393D1C5F2@buffalo.edu> > one of my favorite perl command line utilities: > > perl -de 0 Hang on there - that deserves far more than a passing mention. In fact, I'd go so far as to say that this tiny line, which lets one interactively enter and test code, is almost certainly the most under-appreciated feature of the language. To clarify things, "perl -de 0" (aka. "perl -de0" or "perl -de 1") will invoke the perl debugger on the very short program "0" (or "1", or whatever). This alone is not very interesting, however, the perl debugger is a full-fledged interactive perl interpreter, evaluating anything you enter. It's extremely handy to test a couple lines of code, or see how a built-in function or module will handle a certain input. The debugger's "x" command is also very useful, as it will print out the contents of any complex data structure (e.g. an object, an array of hash refs, etc.). Not being able to leave well-enough alone, I've actually turned this concept into an entire program I call "psh" (perl shell). It lets you enter commands interactively just like the debugger, and uses Data::Dumper to print the results. I can't live without it. I'd love to demo this concept and program at a future meeting if there's time in our schedule. Let me know what you think. - Kevin -- Kevin Eye Web Applications Developer Creative Services and Marketing University at Buffalo 330 Crofts Hall Buffalo, NY 14260 eye@buffalo.edu phone (716) 645-5000 x1435 fax (716) 645-3765 From eye at buffalo.edu Fri Jun 20 14:56:24 2003 From: eye at buffalo.edu (Kevin Eye) Date: Mon Aug 2 21:25:56 2004 Subject: [Buffalo-pm] CGI::Application presentation In-Reply-To: <877k7j414g.fsf@freezer.burling> Message-ID: <4595C9BB-A359-11D7-8626-000393D1C5F2@buffalo.edu> While I'm quite familiar with Class::DBI, I think it's definitely a good topic for part of the talk. Template toolkit is something we just had a talk on from Jim Brandt, so maybe just showing how it ties in with CGI::Application would be the best route to take there. Also, I see I'm scheduled to talk about mod_perl in August. That's not a problem - I can do it, but I stopped using it in place of FastCGI, which is functionally very similar. I'd love to give a talk about the general concept and then comparing the two if that sounds interesting. - Kevin On Wednesday, June 18, 2003, at 03:49 PM, Jason Parker-Burlingham wrote: > Subscribers, > > I see from Kevin's message today that I'm to give a presentation next > month. The questions I have for the group regard what, exactly, > members might like to see---remember that you don't need to turn up to > benefit from the presentation (since I'm hoping to have copies of my > materials available afterward). > > What I have to present is a couple of OO perl modules to model posts > to a USENET newsgroup. The database in use is postgres (I'm using a > few of the more advanced features such as sequences) with Class::DBI > providing a convenient abstraction for record creation, fetching and > searching. I have a script which sucks articles from an NNTP server > into the database which shows how to use the objects without all the > CGI stuff getting in the way. > > The other half of the application is CGI::Application; I've written a > few apps this way now but the example I have for y'all is the most > complex one which I'm allowed to show you---the others have been for > clients. There's no particularly tricky user-authentication or > session tracking required---all the session data is in the URL---but I > feel it's a pretty good example of what can be done with cgiapp in a > few hours, especially the value of templating and instance scripts. > > The presentation layer is Template Toolkit, which complicates the > cgiapp subclass a bit; this is probably what I'll choose to apply a > little spit and polish to before showing it to the world since the > templates right now are pretty basic and don't show off the full range > of functionality I hope to one day support. > > In my presentation, I can talk about any one third of this for a > reasonable amount of time or I can talk about all three parts---I > don't mind which it will be. A few replies to this message will help > me to write the presentation for the audience (if you all know > Class::DBI to death I don't necessarily want to spend too much time > focussed on it). > > jason, who has other ideas for presentations but this one is probably > closest to ready for prime-time > -- > Stay up-to-date on what I'm doing lately: > http://www.panix.com/~jasonp > _______________________________________________ > Buffalo-pm mailing list > Buffalo-pm@mail.pm.org > http://mail.pm.org/mailman/listinfo/buffalo-pm > -- Kevin Eye Web Applications Developer Creative Services and Marketing University at Buffalo 330 Crofts Hall Buffalo, NY 14260 eye@buffalo.edu phone (716) 645-5000 x1435 fax (716) 645-3765 From bpm at binarymojo.net Sun Jun 22 16:59:07 2003 From: bpm at binarymojo.net (Kevin Christopher) Date: Mon Aug 2 21:25:56 2004 Subject: [Buffalo-pm] CGI::Application presentation In-Reply-To: <4595C9BB-A359-11D7-8626-000393D1C5F2@buffalo.edu> References: <877k7j414g.fsf@freezer.burling> <4595C9BB-A359-11D7-8626-000393D1C5F2@buffalo.edu> Message-ID: <1145.67.75.40.126.1056319147.squirrel@my.modwest.com> Jason: I know nothing about Class::DBI, so I'd a appreciate at least a short primer. Kevin: A talk comparing mod_perl and FastCGI sounds like a good idea to me. - Kevin C. > While I'm quite familiar with Class::DBI, I think it's definitely a > good topic for part of the talk. Template toolkit is something we just > had a talk on from Jim Brandt, so maybe just showing how it ties in > with CGI::Application would be the best route to take there. > > Also, I see I'm scheduled to talk about mod_perl in August. That's not > a problem - I can do it, but I stopped using it in place of FastCGI, > which is functionally very similar. I'd love to give a talk about the > general concept and then comparing the two if that sounds interesting. > > - Kevin > > On Wednesday, June 18, 2003, at 03:49 PM, Jason Parker-Burlingham > wrote: > >> Subscribers, >> >> I see from Kevin's message today that I'm to give a presentation next >> month. The questions I have for the group regard what, exactly, >> members might like to see---remember that you don't need to turn up to >> benefit from the presentation (since I'm hoping to have copies of my >> materials available afterward). >> >> What I have to present is a couple of OO perl modules to model posts >> to a USENET newsgroup. The database in use is postgres (I'm using a >> few of the more advanced features such as sequences) with Class::DBI >> providing a convenient abstraction for record creation, fetching and >> searching. I have a script which sucks articles from an NNTP server >> into the database which shows how to use the objects without all the >> CGI stuff getting in the way. >> >> The other half of the application is CGI::Application; I've written a >> few apps this way now but the example I have for y'all is the most >> complex one which I'm allowed to show you---the others have been for >> clients. There's no particularly tricky user-authentication or >> session tracking required---all the session data is in the URL---but I >> feel it's a pretty good example of what can be done with cgiapp in a >> few hours, especially the value of templating and instance scripts. >> >> The presentation layer is Template Toolkit, which complicates the >> cgiapp subclass a bit; this is probably what I'll choose to apply a >> little spit and polish to before showing it to the world since the >> templates right now are pretty basic and don't show off the full range >> of functionality I hope to one day support. >> >> In my presentation, I can talk about any one third of this for a >> reasonable amount of time or I can talk about all three parts---I >> don't mind which it will be. A few replies to this message will help >> me to write the presentation for the audience (if you all know >> Class::DBI to death I don't necessarily want to spend too much time >> focussed on it). >> >> jason, who has other ideas for presentations but this one is probably >> closest to ready for prime-time >> -- >> Stay up-to-date on what I'm doing lately: >> http://www.panix.com/~jasonp >> _______________________________________________ >> Buffalo-pm mailing list >> Buffalo-pm@mail.pm.org >> http://mail.pm.org/mailman/listinfo/buffalo-pm >> > > > -- > Kevin Eye > Web Applications Developer > Creative Services and Marketing > University at Buffalo > 330 Crofts Hall > Buffalo, NY 14260 > eye@buffalo.edu > phone (716) 645-5000 x1435 > fax (716) 645-3765 > > _______________________________________________ > Buffalo-pm mailing list > Buffalo-pm@mail.pm.org > http://mail.pm.org/mailman/listinfo/buffalo-pm From kevin at binarymojo.net Sun Jun 22 16:47:58 2003 From: kevin at binarymojo.net (Kevin Christopher) Date: Mon Aug 2 21:25:56 2004 Subject: [Buffalo-pm] one liner In-Reply-To: <8FBBEC7C-A356-11D7-8626-000393D1C5F2@buffalo.edu> References: <9888.64.65.247.81.1055959556.squirrel@my.modwest.com> <8FBBEC7C-A356-11D7-8626-000393D1C5F2@buffalo.edu> Message-ID: <1141.67.75.40.126.1056318478.squirrel@my.modwest.com> You're right. That command does deserve more attention. I use it quite a bit myself to test bits of code, especially when I tackle something new from "Programming Perl" to quickly make sure I understand a given Perl function or module. It is also incredibly useful for me using Windows at work. "perl -de 0" at a DOS prompt window... next best thing to cygwin, IMHO. Kevin, do you think you'd need a full 1:00hr-1:30 or would this be more on the scale of a "lightning" talk? - Kevin >> one of my favorite perl command line utilities: >> >> perl -de 0 > > Hang on there - that deserves far more than a passing mention. In fact, > I'd go so far as to say that this tiny line, which lets one > interactively enter and test code, is almost certainly the most > under-appreciated feature of the language. > > To clarify things, "perl -de 0" (aka. "perl -de0" or "perl -de 1") will > invoke the perl debugger on the very short program "0" (or "1", or > whatever). This alone is not very interesting, however, the perl > debugger is a full-fledged interactive perl interpreter, evaluating > anything you enter. It's extremely handy to test a couple lines of > code, or see how a built-in function or module will handle a certain > input. The debugger's "x" command is also very useful, as it will print > out the contents of any complex data structure (e.g. an object, an > array of hash refs, etc.). > > Not being able to leave well-enough alone, I've actually turned this > concept into an entire program I call "psh" (perl shell). It lets you > enter commands interactively just like the debugger, and uses > Data::Dumper to print the results. I can't live without it. > > I'd love to demo this concept and program at a future meeting if > there's time in our schedule. Let me know what you think. > > - Kevin > > > -- > Kevin Eye > Web Applications Developer > Creative Services and Marketing > University at Buffalo > 330 Crofts Hall > Buffalo, NY 14260 > eye@buffalo.edu > phone (716) 645-5000 x1435 > fax (716) 645-3765 > > _______________________________________________ > Buffalo-pm mailing list > Buffalo-pm@mail.pm.org > http://mail.pm.org/mailman/listinfo/buffalo-pm From eye at buffalo.edu Mon Jun 23 12:51:30 2003 From: eye at buffalo.edu (Kevin Eye) Date: Mon Aug 2 21:25:56 2004 Subject: [Buffalo-pm] one liner In-Reply-To: Message-ID: <51FDC712-A5A3-11D7-B000-000393D1C5F2@buffalo.edu> Distribute at will: -------------- next part -------------- A non-text attachment was scrubbed... Name: psh Type: application/octet-stream Size: 3910 bytes Desc: not available Url : http://mail.pm.org/pipermail/buffalo-pm/attachments/20030623/d6d8c6f7/psh.obj -------------- next part -------------- Also, I could do a "lightning talk" on this. Maybe 10 or 15 minutes. Certainly not an hour and a half. If it were that complex, it wouldn't be worth using :-) - Kevin On Sunday, June 22, 2003, at 08:59 PM, Matt Beato wrote: > Kevin, > > The "psh" utility sounds great. Is there any way I could get a copy of > it? I have no desire to redistribute it, just utilize it for my > personal use. > > Thanks! > > -- Matt > -- > Matt Beato > > On Friday, June 20, 2003, at 03:37 PM, Kevin Eye wrote: > >>> one of my favorite perl command line utilities: >>> >>> perl -de 0 >> >> Hang on there - that deserves far more than a passing mention. In >> fact, I'd go so far as to say that this tiny line, which lets one >> interactively enter and test code, is almost certainly the most >> under-appreciated feature of the language. >> >> To clarify things, "perl -de 0" (aka. "perl -de0" or "perl -de 1") >> will invoke the perl debugger on the very short program "0" (or "1", >> or whatever). This alone is not very interesting, however, the perl >> debugger is a full-fledged interactive perl interpreter, evaluating >> anything you enter. It's extremely handy to test a couple lines of >> code, or see how a built-in function or module will handle a certain >> input. The debugger's "x" command is also very useful, as it will >> print out the contents of any complex data structure (e.g. an object, >> an array of hash refs, etc.). >> >> Not being able to leave well-enough alone, I've actually turned this >> concept into an entire program I call "psh" (perl shell). It lets you >> enter commands interactively just like the debugger, and uses >> Data::Dumper to print the results. I can't live without it. >> >> I'd love to demo this concept and program at a future meeting if >> there's time in our schedule. Let me know what you think. >> >> - Kevin >> >> >> -- >> Kevin Eye >> Web Applications Developer >> Creative Services and Marketing >> University at Buffalo >> 330 Crofts Hall >> Buffalo, NY 14260 >> eye@buffalo.edu >> phone (716) 645-5000 x1435 >> fax (716) 645-3765 >> >> _______________________________________________ >> Buffalo-pm mailing list >> Buffalo-pm@mail.pm.org >> http://mail.pm.org/mailman/listinfo/buffalo-pm >> >> >> -- Kevin Eye Web Applications Developer Creative Services and Marketing University at Buffalo 330 Crofts Hall Buffalo, NY 14260 eye@buffalo.edu phone (716) 645-5000 x1435 fax (716) 645-3765 From bpm at binarymojo.net Tue Jun 24 10:50:06 2003 From: bpm at binarymojo.net (Kevin Christopher) Date: Mon Aug 2 21:25:56 2004 Subject: [Buffalo-pm] one liner In-Reply-To: <51FDC712-A5A3-11D7-B000-000393D1C5F2@buffalo.edu> References: <51FDC712-A5A3-11D7-B000-000393D1C5F2@buffalo.edu> Message-ID: <10238.64.65.247.81.1056469806.squirrel@my.modwest.com> Kevin: That shell is great!!! I have it up and running right now at my DOS prompt on WinXP at work. Thanks! I really like the way you used Data::Dumper to list out the return. It's nice not have to "print Dumper()" at the prompt. "perl -MShell psh.pl" is not very fun in DOS, but I can hardly wait to try it on my linux box back home! You wouldn't mind if I put it on buffalo.pm.org, right? -Kevin C. From eye at buffalo.edu Tue Jun 24 12:59:51 2003 From: eye at buffalo.edu (Kevin Eye) Date: Mon Aug 2 21:25:56 2004 Subject: [Buffalo-pm] Web site Message-ID: Kevin, I was just hanging out at the site (digging up some info for a prospective member) and realized that you have to go all the way into the mailing list archives to see when our next meeting is. I was thinking it would be a great idea to have a prominent area on the site (maybe on the top of the front page) with up-to-date info on the date, time, location and topics of the next meeting. Maybe it will help out our attendance. - Kevin -- Kevin Eye Web Applications Developer Creative Services and Marketing University at Buffalo 330 Crofts Hall Buffalo, NY 14260 eye@buffalo.edu phone (716) 645-5000 x1435 fax (716) 645-3765 From bpm at binarymojo.net Thu Jun 26 09:53:57 2003 From: bpm at binarymojo.net (Kevin Christopher) Date: Mon Aug 2 21:25:56 2004 Subject: [Buffalo-pm] Stumped on mod_perl problem Message-ID: <6584.64.65.247.81.1056639237.squirrel@my.modwest.com> I am running Mandrake 8.2 on my box at home. I've installed mod_perl and it seems to be working fine, no problems (superficially anyway) with the Apache API. However, I'm having a hell of a time trying to get Mason and or Embperl up and running. No matter how much I fiddle around with three config files ( httpd.conf, http-perl.conf and commonhttpd.conf ), I cannot get the Mason or Emperl config directives to work. The problem seems to hinge on not being able to find mod_perl.so or mod_perl.c. In fact, I can't find these myself in my module directory or anywhere else on my system for that matter. Yet, mod_perl seems to be running fine and I haven't had any problem until attempting to use a dependent module. Has anyone else had an issue like this? BTW installed mod_perl, etc. from RPMs. -Kevin C. From jlf27 at cse.Buffalo.EDU Thu Jun 26 10:04:09 2003 From: jlf27 at cse.Buffalo.EDU (Jesse L Farinacci) Date: Mon Aug 2 21:25:56 2004 Subject: [Buffalo-pm] Stumped on mod_perl problem In-Reply-To: <6584.64.65.247.81.1056639237.squirrel@my.modwest.com> References: <6584.64.65.247.81.1056639237.squirrel@my.modwest.com> Message-ID: <20030626150409.GA2108@cse.Buffalo.EDU> hi kevin, did you try running 'locate mod_perl.so' without any results? you may have to run 'updatedb' beforehand to make sure you've got a recent snapshot of the system. if you are able to find the .so file, you probably need to add it into your LD_LIBRARY_PATH env variable to include this location, or use 'ld' (please consult man pages)..hope this helps, -jlf * Kevin Christopher (bpm@binarymojo.net) wrote: > However, I'm having a hell of a time trying to get Mason and or Embperl up > and running. No matter how much I fiddle around with three config files ( > httpd.conf, http-perl.conf and commonhttpd.conf ), I cannot get the Mason > or Emperl config directives to work. The problem seems to hinge on not > being able to find mod_perl.so or mod_perl.c. In fact, I can't find these > myself in my module directory or anywhere else on my system for that > matter. Yet, mod_perl seems to be running fine and I haven't had any > problem until attempting to use a dependent module. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 185 bytes Desc: not available Url : http://mail.pm.org/pipermail/buffalo-pm/attachments/20030626/da3caa98/attachment.bin From eye at buffalo.edu Thu Jun 26 16:16:06 2003 From: eye at buffalo.edu (Kevin Eye) Date: Mon Aug 2 21:25:56 2004 Subject: [Buffalo-pm] Stumped on mod_perl problem In-Reply-To: <6584.64.65.247.81.1056639237.squirrel@my.modwest.com> Message-ID: <664A3014-A81B-11D7-B000-000393D1C5F2@buffalo.edu> Did you install the mod_perl-devel RPM? It seems like this is a separate package on Mandrake, and will be necessary in order to compile stuff that uses mod_perl. That's essentially what you're doing when you install EmbPerl or Mason. If you can't find mod_perl.c anywhere it's probably because it's in that -devel package. I could be totally wrong, though -- I've never installed mod_perl from an RPM before, and I've never used Mandrake, either. - Kevin On Thursday, June 26, 2003, at 10:53 AM, Kevin Christopher wrote: > I am running Mandrake 8.2 on my box at home. I've installed mod_perl > and > it seems to be working fine, no problems (superficially anyway) with > the > Apache API. > > However, I'm having a hell of a time trying to get Mason and or > Embperl up > and running. No matter how much I fiddle around with three config > files ( > httpd.conf, http-perl.conf and commonhttpd.conf ), I cannot get the > Mason > or Emperl config directives to work. The problem seems to hinge on not > being able to find mod_perl.so or mod_perl.c. In fact, I can't find > these > myself in my module directory or anywhere else on my system for that > matter. Yet, mod_perl seems to be running fine and I haven't had any > problem until attempting to use a dependent module. > > Has anyone else had an issue like this? BTW installed mod_perl, etc. > from > RPMs. > > -Kevin C. > > > _______________________________________________ > Buffalo-pm mailing list > Buffalo-pm@mail.pm.org > http://mail.pm.org/mailman/listinfo/buffalo-pm > -- Kevin Eye Web Applications Developer Creative Services and Marketing University at Buffalo 330 Crofts Hall Buffalo, NY 14260 eye@buffalo.edu phone (716) 645-5000 x1435 fax (716) 645-3765 From bpm at binarymojo.net Fri Jun 27 08:46:31 2003 From: bpm at binarymojo.net (Kevin Christopher) Date: Mon Aug 2 21:25:56 2004 Subject: [Buffalo-pm] (no subject) Message-ID: <10172.64.65.247.81.1056721591.squirrel@my.modwest.com> NOTE: I acted on Kevin Eye's suggestions and have updated the Meetings section on buffalo.pm.org and moved it to the top to be more prominent. -Kevin C.