From mathin at mathin.com Thu Nov 4 11:01:19 2004 From: mathin at mathin.com (Dan Ebert) Date: Thu Nov 4 11:01:21 2004 Subject: SPUG: Splice Message-ID: OK, this is an easy one. I just need a sanity check. splice(@array,0); does the same thing as @array = (); right? Dan. ---------------------------------------------------------- Immigration is the sincerest form of flattery. - Unknown ---------------------------------------------------------- From sthoenna at efn.org Thu Nov 4 11:27:37 2004 From: sthoenna at efn.org (Yitzchak Scott-Thoennes) Date: Thu Nov 4 11:27:37 2004 Subject: SPUG: Splice In-Reply-To: References: Message-ID: <20041104172737.GA7588@efn.org> On Thu, Nov 04, 2004 at 09:01:19AM -0800, Dan Ebert wrote: > > OK, this is an easy one. I just need a sanity check. > > splice(@array,0); > > does the same thing as > > @array = (); > > right? Almost: $ perl -wle'@array=1..3;print splice(@array,0); print "after:@array"' 123 after: sthoenna@DHX98431 ~ $ perl -wle'@array=1..3;print(@array=()); print "after:@array"' after: From krahnj at telus.net Thu Nov 4 14:06:55 2004 From: krahnj at telus.net (John W. Krahn) Date: Thu Nov 4 14:07:11 2004 Subject: SPUG: Splice In-Reply-To: References: Message-ID: <418A8BDF.4060001@telus.net> Dan Ebert wrote: > OK, this is an easy one. I just need a sanity check. > > splice(@array,0); > > does the same thing as > > @array = (); > > right? Not quite. $ perl -le'@x = qw/a b c d e/; @y = splice @x, 0; print "\@x = " . @x . " \@y = " . @y' @x = 0 @y = 5 $ perl -le'@x = qw/a b c d e/; @y = @x = (); print "\@x = " . @x . " \@y = " . @y' @x = 0 @y = 0 splice returns the contents of the spliced array while assignment returns the result of the assignment. BTW, the following all do the same thing: splice @array; splice @array, 0; splice @array, 0, @array; splice @array, 0, @array, (); John -- use Perl; program fulfillment From sthoenna at efn.org Thu Nov 4 14:23:24 2004 From: sthoenna at efn.org (Yitzchak Scott-Thoennes) Date: Thu Nov 4 14:23:27 2004 Subject: SPUG: Splice In-Reply-To: <418A8BDF.4060001@telus.net> References: <418A8BDF.4060001@telus.net> Message-ID: <20041104202323.GA7700@efn.org> On Thu, Nov 04, 2004 at 12:06:55PM -0800, "John W. Krahn" wrote: > BTW, the following all do the same thing: > > splice @array; > splice @array, 0; > splice @array, 0, @array; > splice @array, 0, @array, (); splice @array, -@array; splice @array, -@array, @array; splice @array, -@array, @array, (); From lmzaldivar at mac.com Fri Nov 5 15:00:32 2004 From: lmzaldivar at mac.com (Luis Medrano) Date: Fri Nov 5 15:00:35 2004 Subject: SPUG: robot (spider) Message-ID: <5203834.1099688432080.JavaMail.lmzaldivar@mac.com> List, I'm trying to build a spider. Can somebody explain how it will be the easy way to do it. Thanks, Luis From davidinnes at chicagoscience.com Fri Nov 5 18:17:50 2004 From: davidinnes at chicagoscience.com (David Innes (CSG)) Date: Fri Nov 5 18:18:02 2004 Subject: SPUG: robot (spider) In-Reply-To: <5203834.1099688432080.JavaMail.lmzaldivar@mac.com> Message-ID: <200411051617839.SM01800@Float> Hi Luis, O'Reilly has an interesting book called "Spidering Hacks." It's got 100 articles showing different ways to spider everything from individual pages to whole websites. Although it's part of their "Hacks" series everything in it is based on Perl. I don't have a specific spidering script, though. (I haven't finished the book.) -- David Innes -----Original Message----- From: spug-list-bounces@mail.pm.org [mailto:spug-list-bounces@mail.pm.org] On Behalf Of Luis Medrano Sent: Friday, November 05, 2004 1:01 PM To: spug-list@mail.pm.org Subject: SPUG: robot (spider) List, I'm trying to build a spider. Can somebody explain how it will be the easy way to do it. Thanks, Luis _____________________________________________________________ Seattle Perl Users Group Mailing List POST TO: spug-list@mail.pm.org http://spugwiki.perlocity.org/ ACCOUNT CONFIG: http://mail.pm.org/mailman/listinfo/spug-list MEETINGS: 3rd Tuesdays, Location: Amazon.com Pac-Med WEB PAGE: http://seattleperl.org/ The information contained in this e-mail message may be privileged, confidential, and protected from disclosure. If you are not the intended recipient, any further disclosure or use, dissemination, distribution, or copying of this message or any attachment is strictly prohibited. If you think that you have received this e-mail message in error, please delete it and notify the sender. From cjcollier at colliertech.org Tue Nov 9 17:57:42 2004 From: cjcollier at colliertech.org (CJ Collier) Date: Tue Nov 9 17:57:48 2004 Subject: SPUG: robot (spider) In-Reply-To: <5203834.1099688432080.JavaMail.lmzaldivar@mac.com> References: <5203834.1099688432080.JavaMail.lmzaldivar@mac.com> Message-ID: <1100044662.10282.65.camel@cjcoll.desktop.amazon.com> Be sure to implement reading of robots.txt Use LWP::UserAgent to read the pages Use HTML::Parser to find the links Create a breadth-first recursive function to follow links. Create a global hash to keep track of the links that have already been followed. You could accept a boolean argument to the worker object constructor that forces the spider to stay on the same domain. I've got more ideas if you'd like to hear them. C.J. On Fri, 2004-11-05 at 13:00 -0800, Luis Medrano wrote: > List, > > I'm trying to build a spider. Can somebody explain how it will be the easy way to do it. > > Thanks, > Luis > > _____________________________________________________________ > Seattle Perl Users Group Mailing List > POST TO: spug-list@mail.pm.org http://spugwiki.perlocity.org/ > ACCOUNT CONFIG: http://mail.pm.org/mailman/listinfo/spug-list > MEETINGS: 3rd Tuesdays, Location: Amazon.com Pac-Med > WEB PAGE: http://seattleperl.org/ > From andrew at sweger.net Wed Nov 10 13:08:16 2004 From: andrew at sweger.net (Andrew Sweger) Date: Wed Nov 10 13:08:38 2004 Subject: SPUG: Meeting REMINDER -- Mason - 16 November 2004 Message-ID: November Seattle Perl Users Group (SPUG) Meeting ================================================ Title: Mason Speaker: Jonathan Swartz Meeting Date: Tuesday, November 16, 2004 Meeting Time: 7:00 - 9:00 p.m. (networking 6:30 - 7:00) Location: Amazon.com Pac-Med Building Cost: Admission is free and open to the general public Info: http://seattleperl.org/ =========================================== Below are more details on Jonthan's presentation next week. You've heard a lot of people say that you really need try Mason and you hear grumbles that it's all a lot of hard work. Come find out the truth next Tuesday. It may be just what you were looking for. We have access to the Internet in the meeting room! So, feel free to bring your laptop so you can follow references from the presentation or write real-time commentary on IRC or (I hate to use the word) blog it. Several wired stations will be available and I'll bring a 802.11g WiFi hub. Note that it's okay to park in the carpool parking spaces on the North side of the building. This is, by far, the sweetest location at which SPUG members have had the pleasure of meeting. Easy access, centrally located, ample parking, a swank meeting room with a professional projection system and Internet access. And just think, it doesn't cost you a thing (well, it costs you your time, but how much is that really worth in the end?). So, don't blow this opportunity. If you want to exchange PGP/GnuPG signatures, please contact me directly with your public key (now!) and I'll bring fingerprint checklists for participants. Contact me if you want to know more. Here's what's in store for you at our next meeting: Mason ===== About Jonathan Swartz --------------------- Jonathan Swartz is the original author of Mason and a current Amazon.com employee. About the Presentation ---------------------- Mason is a popular Perl-based framework for developing web sites. Its component-based architecture allows the developer to break up websites into reusable parts, and it includes an extensive set of features for dealing with every-day web development problems. Mason is used by thousands of websites including Amazon.com, Salon.com, and AvantGo. Jonathan will: * give a short introduction to Mason * talk about the benefits and challenges of using Mason/Perl at Amazon * summarize the latest Mason features (including changes inspired at Amazon) * ponder Mason's future in the rapidly maturing web development world ================================================================ DIRECTIONS ========== These directions are relatively usable. I (or someone) will try to refine these over time with experience. I-5 (from North or South) ========================= On I-5, take the S Dearborn St exit and turn West on Dearborn (I-5 Southbound: turn right; I-5 Northbound: turn left) and proceed approximately one or two blocks. Turn right on 8th Ave S (the first light) and proceed North for three blocks. Turn right on S King St and proceed East for approximately five blocks. You will pass under I-5. Turn right on 12th Ave S and proceed South for approximately five blocks. Along this way, you will cross over the Dr. Jose P. Rizal bridge and you should see the Pac-Med tower directly ahead. At this point, notice that you have been going in a circle. Skip to Pac-Med Building below. I-90 (from East) ================ On I-90, take the Rainier Ave S (hwy 900) exit Northbound and proceed approximately six blocks. Turn left on S King St and proceed West for approximately two blocks. Turn left on 12th Ave S and proceed South for approximately five blocks. Along this way, you will cross over the Dr. Jose P. Rizal bridge and you should see the Pac-Med tower directly ahead. Pac-Med Building ================ Turn right at Charles St (the light after the bridge). The Amazon.com Pac-Med building is visible ahead and on the left as you make the turn and proceed South on Charles (Charles borders the West side of the building). The North parking lot entrance will be the second driveway on the left (the first has a Do Not Enter sign). The parking lot is on the left just past the parking attendant booth. The "carpool only" spaces should be okay to park in after 6:30. Walk to the South entrance of the tower. There is stair next to the parking garage structure that leads to a convenient path that goes around the building to the main entrance on the South side of the building. Enter building and go to the security desk. Sign in and wait to be escorted to the meeting room (just like when we met at Safeco in the U-district, more or less). From haircut at gmail.com Wed Nov 10 18:25:08 2004 From: haircut at gmail.com (Adam Monsen) Date: Wed Nov 10 18:25:14 2004 Subject: SPUG: robot (spider) In-Reply-To: <5203834.1099688432080.JavaMail.lmzaldivar@mac.com> References: <5203834.1099688432080.JavaMail.lmzaldivar@mac.com> Message-ID: <9ebd651104111016251705dd5e@mail.gmail.com> On Fri, 05 Nov 2004 13:00:32 -0800, Luis Medrano wrote: > I'm trying to build a spider. Can somebody explain how it will be the easy way to do it. Check out WWW::Mechanize. http://search.cpan.org/perldoc?WWW::Mechanize -- Adam Monsen http://adammonsen.com/ From andrew at sweger.net Fri Nov 12 20:54:29 2004 From: andrew at sweger.net (Andrew Sweger) Date: Fri Nov 12 20:54:36 2004 Subject: SPUG: JOB: Performance QA Software Development Engineer in Test for Isilon Systems in Seattle, WA Message-ID: COMPANY: Isilon Systems POSITION: Performance QA Software Development Engineer in Test http://www.isilon.com/careers/qa_perf_engineer.html LOCATION: Seattle, WA DATE: 11/11/04 Isilon(r) is the premier provider of intelligent clustered storage systems for digital content. Isilon's products are designed for data-intensive businesses and clustered computing environments such as those in media and entertainment, digital imaging, life sciences and oil and gas, which all produce, analyze or distribute large amounts of digital content. Isilon helps world-class companies such as Paramount, Corbis, and Technicolor meet the demands of their rapidly-growing digital content environments and accelerate the digital workflow. Check out our open Positions: PERFORMANCE QA SOFTWARE DEVELOPMENT ENGINEER IN TEST Experience Level: 5+ Yrs Isilon Systems is actively seeking a highly motivated, self-starting QA Engineer with a Performance Testing background to help quantify and calibrate our clustered storage products. This position will be responsible for the following: * Testing large cluster (14TB+) scenarios and conducting regression tests against clusters of various sizes. * Test Planning and Test Case design for large cluster, longevity and various hardware configuration scenarios. * Performance Testing various configurations and acquisition of publishable performance throughput numbers. * Conducting longevity testing and analysis of stress, usage, fault recovery and other factors. * Administration of managed switches a la Cisco, Foundry, Extreme Networks and Force10. * Test automation development as assigned. Position requirements include: * 2 years experience Performance testing systems products. * Comprehensive knowledge and application of Software Quality Assurance methodologies. * Advanced experience in Perl, Python or C++. * Experience testing in mixed Linux (*nix) and Windows environments required. * Experience shipping customer facing products required, multiple lifecycles preferred. * Experience with both software and hardware product lines preferred. * Intermediate hardware, networking, test lab management skills, lifting up to 70 lbs. * Strong written and verbal communication skills. * CS Degree or equivalent experience. So come join our great team! If you have the experience and knowledge, we'll provide the opportunity of the decade! Please send your resume to jobs@isilon.com (subject: QA Performance Test Engineer job) . A non-disclosure agreement must be signed prior to an interview. Isilon Systems is an equal opportunity employer. Relocation Available Forwards OK / Direct Hires Only Beth Kester Senior Recruiter Isilon Systems | Intelligent Storage for Digital Content 220 W. Mercer St. | Suite 501 | Seattle, WA 98119 From andrew at sweger.net Fri Nov 12 20:54:34 2004 From: andrew at sweger.net (Andrew Sweger) Date: Fri Nov 12 20:54:41 2004 Subject: SPUG: JOB: QA Software Development Engineer in Test for Isilon Systems in Seattle, WA Message-ID: COMPANY: Isilon Systems POSITION: QA Software Development Engineer in Test http://www.isilon.com/careers/qa_engineer.html LOCATION: Seattle, WA DATE: 11/11/04 Isilon(r) is the premier provider of intelligent clustered storage systems for digital content. Isilon's products are designed for data-intensive businesses and clustered computing environments such as those in media and entertainment, digital imaging, life sciences and oil and gas, which all produce, analyze or distribute large amounts of digital content. Isilon helps world-class companies such as Paramount, Corbis, and Technicolor meet the demands of their rapidly-growing digital content environments and accelerate the digital workflow. Check out our open Positions: QA SOFTWARE DEVELOPMENT ENGINEER IN TEST Experience Level: 3+ Yrs Isilon Systems is seeking a highly motivated, self-starting QA Engineer to help expand our test coverage. Position requirements and responsibilities include: * Detailed test case design experience required. * Experience with Perl, Python required. * Experience testing in mixed Linux (*nix) and Windows environments required. * Experience shipping customer facing products required, multiple lifecycles preferred. * Experience with both software and hardware product lines preferred. * Basic hardware, networking, test lab management skills. * Performance testing experience a big plus. * Strong written and verbal communication skills. * CS Degree or equivalent experience. We have several openings for experienced software test engineers that desire a challenging position testing distributed file systems. So come join our great team! If you have the experience and knowledge, we'll provide the opportunity of the decade! Please send your resume to jobs@isilon.com (subject: QA Test Engineer job). A non-disclosure agreement must be signed prior to an interview. Isilon Systems is an equal opportunity employer. Relocation Available Forwards OK / Direct Hires Only Beth Kester Senior Recruiter Isilon Systems | Intelligent Storage for Digital Content 220 W. Mercer St. | Suite 501 | Seattle, WA 98119 From andrew at sweger.net Fri Nov 12 20:54:39 2004 From: andrew at sweger.net (Andrew Sweger) Date: Fri Nov 12 20:54:46 2004 Subject: SPUG: JOB: QA Test Lead for Isilon Systems in Seattle, WA Message-ID: COMPANY: Isilon Systems POSITION: QA Test Lead http://www.isilon.com/careers/qa_test_lead.html LOCATION: Seattle, WA DATE: 11/11/04 Isilon(r) is the premier provider of intelligent clustered storage systems for digital content. Isilon's products are designed for data-intensive businesses and clustered computing environments such as those in media and entertainment, digital imaging, life sciences and oil and gas, which all produce, analyze or distribute large amounts of digital content. Isilon helps world-class companies such as Paramount, Corbis, and Technicolor meet the demands of their rapidly-growing digital content environments and accelerate the digital workflow. Check out our open Positions: QA TEST LEAD Experience Level: 6+ Yrs Isilon Systems is seeking a highly motivated, self-starting QA Engineer with leadership and mentoring skills to help expand our product certification and test automation processes. Position requirements and responsibilities include: * Test planning, scheduling and detailed Test Case design. * Performance testing, test design, analysis and presentation of results. * Multi-client, distributed test automation development experience. * Proficiency in Perl, Python, C, or C++. * Experience in mixed Linux (*nix) and Windows environments. * Experience shipping customer facing products (software and hardware), multiple lifecycles preferred. * Experience managing and mentoring 2-5 testers on a daily basis. * Basic hardware, networking, test lab management skills. * Strong written and verbal communication skills. * CS Degree or equivalent experience. This is a lead position for an experienced Software Test Lead with a background in performance testing and test automation. This is a hands-on technical position leading a small team of test developers, thus previous project planning, scheduling, cost analysis and management experience is required. If you have the above experience and skills, we provide a unique opportunity to work with bleeding edge technology testing our multi-terabyte and multi-gigabit fileserver products! Applicants should send their resume to jobs@isilon.com (subject: QA Test Lead job). A non-disclosure agreement must be signed prior to an interview. Isilon Systems is an equal opportunity employer. Relocation Available Forwards OK / Direct Hires Only Beth Kester Senior Recruiter Isilon Systems | Intelligent Storage for Digital Content 220 W. Mercer St. | Suite 501 | Seattle, WA 98119 From cjcollier at colliertech.org Mon Nov 15 03:37:14 2004 From: cjcollier at colliertech.org (C.J. Collier) Date: Mon Nov 15 03:37:19 2004 Subject: SPUG: some code Message-ID: Hey all, I've got code for a few of the web sites I've worked on sitting on my web server. If anyone has lots of extra time and want to look at someone else's code, you can feel free to grab it here. Note that colliertech.org code is out of date; colliertech.org is now running on Apache 2.0, so I had to rewrite my mason components to use Apache::RequestRec instead of Apache::Request. If anyone wants to see it though, let me know and I'll package it up :) Also there is my code for a GTK+ 3d modeler. Well, the building blocks at least. I never got it to do more than load, display, and rotate the model. I intend to rewrite it in C# one of these days. Anyhow, have at it: http://colliertech.org/~cjcollier/src/ C.J. From andrew at sweger.net Mon Nov 15 13:25:30 2004 From: andrew at sweger.net (Andrew Sweger) Date: Mon Nov 15 13:25:38 2004 Subject: SPUG: LAST Meeting REMINDER -- Mason - 16 November 2004 Message-ID: November Seattle Perl Users Group (SPUG) Meeting ================================================ Title: Mason Speaker: Jonathan Swartz Meeting Date: Tuesday, November 16, 2004 Meeting Time: 7:00 - 9:00 p.m. (networking 6:30 - 7:00) Location: Amazon.com Pac-Med Building Cost: Admission is free and open to the general public Info: http://seattleperl.org/ =========================================== Below are more details on Jonthan's presentation next week. You've heard a lot of people say that you really need try Mason and you hear grumbles that it's all a lot of hard work. Come find out the truth next Tuesday. It may be just what you were looking for. We have access to the Internet in the meeting room! So, feel free to bring your laptop so you can follow references from the presentation or write real-time commentary on IRC or (I hate to use the word) blog it. Several wired stations will be available and I'll bring a 802.11g WiFi hub. Note that it's okay to park in the carpool parking spaces on the North side of the building. This is, by far, the sweetest location at which SPUG members have had the pleasure of meeting. Easy access, centrally located, ample parking, a swank meeting room with a professional projection system and Internet access. And just think, it doesn't cost you a thing (well, it costs you your time, but how much is that really worth in the end?). So, don't blow this opportunity. If you want to exchange PGP/GnuPG signatures, please contact me directly with your public key (now!) and I'll bring fingerprint checklists for participants. Contact me if you want to know more. Here's what's in store for you at our next meeting: Mason ===== About Jonathan Swartz --------------------- Jonathan Swartz is the original author of Mason and a current Amazon.com employee. About the Presentation ---------------------- Mason is a popular Perl-based framework for developing web sites. Its component-based architecture allows the developer to break up websites into reusable parts, and it includes an extensive set of features for dealing with every-day web development problems. Mason is used by thousands of websites including Amazon.com, Salon.com, and AvantGo. Jonathan will: * give a short introduction to Mason * talk about the benefits and challenges of using Mason/Perl at Amazon * summarize the latest Mason features (including changes inspired at Amazon) * ponder Mason's future in the rapidly maturing web development world ================================================================ DIRECTIONS ========== These directions are relatively usable. I (or someone) will try to refine these over time with experience. I-5 (from North or South) ========================= On I-5, take the S Dearborn St exit and turn West on Dearborn (I-5 Southbound: turn right; I-5 Northbound: turn left) and proceed approximately one or two blocks. Turn right on 8th Ave S (the first light) and proceed North for three blocks. Turn right on S King St and proceed East for approximately five blocks. You will pass under I-5. Turn right on 12th Ave S and proceed South for approximately five blocks. Along this way, you will cross over the Dr. Jose P. Rizal bridge and you should see the Pac-Med tower directly ahead. At this point, notice that you have been going in a circle. Skip to Pac-Med Building below. I-90 (from East) ================ On I-90, take the Rainier Ave S (hwy 900) exit Northbound and proceed approximately six blocks. Turn left on S King St and proceed West for approximately two blocks. Turn left on 12th Ave S and proceed South for approximately five blocks. Along this way, you will cross over the Dr. Jose P. Rizal bridge and you should see the Pac-Med tower directly ahead. Pac-Med Building ================ Turn right at Charles St (the light after the bridge). The Amazon.com Pac-Med building is visible ahead and on the left as you make the turn and proceed South on Charles (Charles borders the West side of the building). The North parking lot entrance will be the second driveway on the left (the first has a Do Not Enter sign). The parking lot is on the left just past the parking attendant booth. The "carpool only" spaces should be okay to park in after 6:30. Walk to the South entrance of the tower. There is stair next to the parking garage structure that leads to a convenient path that goes around the building to the main entrance on the South side of the building. Enter building and go to the security desk. Sign in and wait to be escorted to the meeting room (just like when we met at Safeco in the U-district, more or less). From andrew at sweger.net Tue Nov 16 00:42:12 2004 From: andrew at sweger.net (Andrew Sweger) Date: Tue Nov 16 00:42:20 2004 Subject: SPUG: LAST Meeting REMINDER -- Mason - 16 November 2004 In-Reply-To: Message-ID: On Mon, 15 Nov 2004, Andrew Sweger wrote: > Below are more details on Jonthan's presentation next week. Of course, I meant tomorrow. Not next week. TOMORROW!!! -- Andrew B. Sweger -- The great thing about multitasking is that several things can go wrong at once. From andrew at sweger.net Wed Nov 17 00:39:29 2004 From: andrew at sweger.net (Andrew Sweger) Date: Wed Nov 17 00:39:37 2004 Subject: SPUG: The SPUG Report, 16 November 2004 Message-ID: We had a good turnout at the meeting tonight with about 28 folks (with approximately 8 of those from Amazon.com). Jonathan Swartz is an excellent presenter and has me thinking of taking a closer look at Mason as another tool in my arsenal of Perl munitions. I gave away five copies of The Perl Review summer 2004 print edition sent to us courtesy of brian d foy [1] (the publisher). If anyone was disappointed that I did not hold an auction or raffle to raise money for The Perl Foundation, you can still do so at: http://donate.perlfoundation.org/ For those wishing to see about getting their own dead-tree subscription, please see The Perl Review website at: http://theperlreview.com/ If you happen to go to theperlreview.org, that seems to be a different site with a message about brian being on US Army active duty in Iraq. I'm not sure what that's about. I created a Meetup.com group for SPUG a few months ago. But there were some problems with this particular meetup group and the Meetup.com application which is now fixed. I have configured the group's meetup time to coincide with our regular monthly meetings. If folks find the Meetup.com reminders helpful, feel free to join the group there. I have been making a point of putting meeting information there (as well as the list and website) figuring that the Meetup.com format might be convenient for some folks. http://perl.meetup.com/86/ If the Meetup.com thing becomes wildly popular, perhaps we can use it to get a forecast on how many people will be showing up at the meeting so we can make building security happy. Thanks to all those who showed up and made the meeting happen tonight. It helps remind me that Perl is not dead. -- Andrew B. Sweger -- The great thing about multitasking is that several things can go wrong at once. From hotscripts at thingk.net Wed Nov 17 12:52:04 2004 From: hotscripts at thingk.net (John) Date: Wed Nov 17 12:52:14 2004 Subject: SPUG: Help with DBI/ppm/ppd/mysql? Message-ID: <6.1.2.0.2.20041117103855.053428a0@mail.thingk.net> >Unsupported driver MT::ObjectDriver::DBI::mysql: DBI object version 1.45 >does not match $DBI::VERSION 1.40 at C:/Perl/lib/DynaLoader.pm line 253 I migrated to a new W2k advanced server machine and have never been able to restore my Movable Type v2.51 installation. I loaded Activestate's 5.8.4, the new DBI doesn't match the old MT perl code which requires 5.0005 (or later?) and dbi 1.40. That is...after using ppm install dbi I see an error about how the code is calling for dbi-1.40 and doesn't match the dbi-1.45 just installed. This is a windows 2000 advanced server and I always get DBI-1.45 no matter what repository I point to. I'm over my head, but I think I may need to back peddle to an older version of perl and dbi to get this old MT system to work. I'm looking to hire a consultant for the solution if I don't get a "stupid-simple" (me) answer via email soon. Any takers? Yours truly, John Marston (253) 472-2986 From andrew at sweger.net Wed Nov 17 13:58:43 2004 From: andrew at sweger.net (Andrew Sweger) Date: Wed Nov 17 13:58:50 2004 Subject: SPUG: The SPUG Report, 16 November 2004 (fwd) Message-ID: ---------- Forwarded message ---------- From: Tim Maher To: Andrew Sweger Cc: Seattle Perl Users Group Date: Wed, 17 Nov 2004 00:07:02 -0800 Subject: Re: SPUG: The SPUG Report, 16 November 2004 X-spam-level: On Tue, Nov 16, 2004 at 10:39:29PM -0800, Andrew Sweger wrote: > We had a good turnout at the meeting tonight with about 28 folks (with > approximately 8 of those from Amazon.com). Jonathan Swartz is an excellent > presenter and has me thinking of taking a closer look at Mason as another > tool in my arsenal of Perl munitions. Sadly/happily, I was experiencing a rare bout of "writer's revenge" (as in Montezuma's) this evening, the opposite of the dreaded "writer's block", and had to take full advantage of it. Consequently, I couldn't attend tonight's meeting. But I'd be grateful if somebody could tell me how Mason and the Template Toolkit compare in features, speed, support, "coolosity", etc. I recall seeing a table addressing this issue in an article on the web sometime back, but it was for older versions of both tools, and will therefore not be very useful nowadays. -Tim *--------------------------------------------------------------------------* | Tim Maher, PhD (206) 781-UNIX (866) DOC-PERL (866) DOC-UNIX | | tim(AT)Consultix-Inc.Com http://TeachMePerl.Com http://TeachMeUnix.Com | *+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-* | Watch for my upcoming book: "Minimal Perl for Shell Users & Programmers" | | Classes! 11/30: Perl Programming and Modules 12/6: Shell & Utilities | *--------------------------------------------------------------------------* From hotscripts at thingk.net Wed Nov 17 15:18:43 2004 From: hotscripts at thingk.net (John) Date: Wed Nov 17 15:18:45 2004 Subject: SPUG: more Help with DBI/ppm/ppd/mysql? In-Reply-To: <6.1.2.0.2.20041117103855.053428a0@mail.thingk.net> References: <6.1.2.0.2.20041117103855.053428a0@mail.thingk.net> Message-ID: <6.1.2.0.2.20041117131606.05da9990@mail.thingk.net> Do you understand this repository business? What about uninstalling perl 5.8.4 and reinstalling 5.0005 and that dbi1.40? That would recreate the environment this ran on in the old machine. I've got nothing to lose by trying it. I can uninstall everything and start over - done that a few times :) ! At least we've got mysql running now and can see the data from a command line. That part is OK. Not sure where to get a binary of 5.0005 or how to install any other way. I've downloaded the DBI1.40 tar.gz file and unzipped it to a local directory, then edited the ppd file to point to that local directory. Then I created this "local" repository and turned off the default (Activestate) ones. then I see Error: no suitable installation target found for package dbi I think that either means that 5.8.4 wont take the dbi1.4....or that I don't have a "package" whatever that is. Isn't the package the unzip files in that directory? The blog system definitely craps out with the error Unsupported driver MT::ObjectDriver::DBI::mysql: DBI object version 1.45 does not match $DBI::VERSION 1.40 at C:/Perl/lib/DynaLoader.pm line 253. When I've got dbi1.45 loaded. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/archives/spug-list/attachments/20041117/bc9a16d8/attachment.htm From sthoenna at efn.org Thu Nov 18 01:03:36 2004 From: sthoenna at efn.org (Yitzchak Scott-Thoennes) Date: Thu Nov 18 01:03:43 2004 Subject: SPUG: more Help with DBI/ppm/ppd/mysql? In-Reply-To: <6.1.2.0.2.20041117131606.05da9990@mail.thingk.net> References: <6.1.2.0.2.20041117103855.053428a0@mail.thingk.net> <6.1.2.0.2.20041117131606.05da9990@mail.thingk.net> Message-ID: <20041118070336.GA2764@efn.org> On Wed, Nov 17, 2004 at 01:18:43PM -0800, John wrote: > Do you understand this repository business? No, but you might try asking at: http://perlmonks.org/?node=Seekers%20of%20Perl%20Wisdom You may get a greater variety of expertise there. Be sure to be as explicit as possible about the problem you originally had. Your: > after using ppm install dbi I see about how the code is calling for > dbi-1.40 and doesn't match the dbi-1.45 just installed. doesn't say what exactly the error was or what you were doing when you got it. From davidinnes at chicagoscience.com Thu Nov 18 09:30:30 2004 From: davidinnes at chicagoscience.com (David Innes (CSG)) Date: Thu Nov 18 09:30:47 2004 Subject: SPUG: more Help with DBI/ppm/ppd/mysql? In-Reply-To: <6.1.2.0.2.20041117131606.05da9990@mail.thingk.net> Message-ID: <200411180730924.SM01844@Float> Hi John, I have MovableType running on one of my Win2K servers. I've found a number of compatibility issues between ActiveState's versions 5.6 and 5.8 versions of Perl when it comes to modules you can get from their PPM repositories. While I use 5.8 on my personal machine I've been sticking with 5.6 on my servers. I suggest you try uninstalling 5.8.4 and installing their latest 5.6.x distribution instead. They maintain separate PPM repositories for the different versions and that version of DBI appears to be compatible with Movable Type. For what it's worth the version I'm successfully using is ActiveState build 633, which has Version 5.6.1. If the most recent build of 5.6 doesn't cut it you can always download that instead. It's been driving all websites on that server for years. Another possibility: The full version of MT includes all necessary Perl modules. I don't know if the installation script adds them to your Perl distribution or not but it's worth looking into. If you email me directly I'll be happy to help you troubleshoot. As SPUG's token Windows Perl use it's in my interest to help you get this resolved. :-) -- David Innes ___________________________________ The information contained in this e-mail message may be privileged, confidential, and protected from disclosure. If you are not the intended recipient, any further disclosure or use, dissemination, distribution, or copying of this message or any attachment is strictly prohibited. If you think that you have received this e-mail message in error, please delete it and notify the sender. _____ From: spug-list-bounces@mail.pm.org [mailto:spug-list-bounces@mail.pm.org] On Behalf Of John Sent: Wednesday, November 17, 2004 1:19 PM To: spug-list@mail.pm.org Subject: SPUG: more Help with DBI/ppm/ppd/mysql? Do you understand this repository business? What about uninstalling perl 5.8.4 and reinstalling 5.0005 and that dbi1.40? That would recreate the environment this ran on in the old machine. I've got nothing to lose by trying it. I can uninstall everything and start over - done that a few times :) ! At least we've got mysql running now and can see the data from a command line. That part is OK. Not sure where to get a binary of 5.0005 or how to install any other way. I've downloaded the DBI1.40 tar.gz file and unzipped it to a local directory, then edited the ppd file to point to that local directory. Then I created this "local" repository and turned off the default (Activestate) ones. then I see Error: no suitable installation target found for package dbi I think that either means that 5.8.4 wont take the dbi1.4....or that I don't have a "package" whatever that is. Isn't the package the unzip files in that directory? The blog system definitely craps out with the error Unsupported driver MT::ObjectDriver::DBI::mysql: DBI object version 1.45 does not match $DBI::VERSION 1.40 at C:/Perl/lib/DynaLoader.pm line 253. When I've got dbi1.45 loaded. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/archives/spug-list/attachments/20041118/09a91f2f/attachment.htm From jay at scherrer.com Thu Nov 18 13:29:35 2004 From: jay at scherrer.com (Jay Scherrer) Date: Thu Nov 18 13:29:43 2004 Subject: SPUG: SPC Message-ID: <200411181129.35066.jay@scherrer.com> Andrew, Is the SPC still in effect? I am asking the SPC or any interested spuger, if they would like to work on a project involving databasing the sec's EDGARS system. I was just notified today that this project is open for bidding with the IRS. This seems like a great job for Perl. Anyone interested in applying for this bid with me? Jay Scherrer From tim at consultix-inc.com Thu Nov 18 14:09:30 2004 From: tim at consultix-inc.com (Tim Maher) Date: Thu Nov 18 14:09:47 2004 Subject: SPUG: SPC In-Reply-To: <200411181129.35066.jay@scherrer.com> References: <200411181129.35066.jay@scherrer.com> Message-ID: <20041118200930.GA2065@jumpy.consultix-inc.com> On Thu, Nov 18, 2004 at 11:29:35AM -0800, Jay Scherrer wrote: > Andrew, > Is the SPC still in effect? > > I am asking the SPC or any interested SPUGer, if they would like to > work on a project involving databasing the sec's EDGARS system. > Jay Scherrer That's "EDGAR", and interested parties can learn more about it at: http://www.sec.gov/edgar/aboutedgar.htm > I was just notified today that this project is open for bidding with > the IRS. This seems like a great job for Perl. Hmm.. Why would the IRS be managing the bids for a SEC contract? Can you point us to the RFP ? > Anyone interested in applying for this bid with me? I'm glad to see you're looking for Perl opportunities and that you're excited about this, but in my experience, only established organizations with solid track records tend to get serious consideration for important projects like this, not just a hastily assembled band of hackers, however talented they might be. One avenue might be to enter a bid from SPUG itself, given its 8+ year track record of advocating Open Source (esp. Perlish) solutions, and the impressive resumes of many of its members. I'm sure no User Group has ever received a large government contract before, but who knows, the political wind might just blow our way for a change. Maybe Bill Campbell's "Celestial Software" could be the umbrella organization? He's got that great history of beating all the other bidders for the City of Medina tax assessor's office "storage/retrieval" system to his credit, with the great angle that Bill Gates inadvertently created the competition that ended in all the MSFT-based solutions being soundly trounced by the OSS team. The media would love to seize on that story, given half a chance. Sounds good to me, but what do you think? -Tim *--------------------------------------------------------------------------* | Tim Maher, PhD (206) 781-UNIX (866) DOC-PERL (866) DOC-UNIX | | tim(AT)Consultix-Inc.Com http://TeachMePerl.Com http://TeachMeUnix.Com | *+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-* | Watch for my upcoming book: "Minimal Perl for Shell Users & Programmers" | | Classes! 11/30: Perl Programming and Modules 12/6: Shell & Utilities | *--------------------------------------------------------------------------* From davidinnes at chicagoscience.com Tue Nov 23 08:01:23 2004 From: davidinnes at chicagoscience.com (David Innes (CSG)) Date: Tue Nov 23 08:01:46 2004 Subject: SPUG: Google Zeitgeist -- Most frequent Tech queries Message-ID: <20041123060141.SM01804@Float> I just ran across a Google feature called Google Zeitgeist (http://www.google.com/press/zeitgeist.html.) Among other trends in queries, here's a list of the "Popular Technology Queries - October 2004." The string "perl programming" is #2. 1. software 2. perl programming 3. html 4. aim express 5. linux I tried a quick peek at the monthly Zeitgeist archives looking for trends but it doesn't look like tech queries are a regular feature. -- David Innes -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/archives/spug-list/attachments/20041123/900c9a85/attachment.htm From MichaelRWolf at att.net Tue Nov 23 17:51:29 2004 From: MichaelRWolf at att.net (Michael R. Wolf) Date: Tue Nov 23 17:54:34 2004 Subject: SPUG: CPAN install from CD (i.e. without internet) Message-ID: <1xekcef2.fsf@att.net> As I'm setting up a Perl course, I'd like to carry some CPAN modules in my briefcase into the classroom or customer site. Specifically, I'd like to make sure that I can install DBI and DBM::mysql *without* an internet connection. (Oh, the horror!!! Yes, even though my hotel and all Starbucks *are* connected, there are still customers (or at least training rooms) that are *not*!) I'm used to doing this with an internet connection: perl -MCPAN -e shell > install DBI > install DBD::mysql > quit I especially like that this solution recursively installs needed dependencies, an interation that frustrates me when I do it the manual way (download, unzip, perl Makefile.PL, make, make test, make install). It's so trivally easy to do with an Internet connection that I don't have an idea on how to pre-package (would that be a bundle?) them and stage them on a CD or how to extract them once they're so bundled. Is there a "standard" way to do so? Does it get *all* recursive dependencies? If so, please point me there so that I can read the fine manual myself. If not, how have you gotten around this non-standard piece. I'd like this to work on all OS's, so ppm and ppm3 aren't as useful to me as a truly portable solution would be. Thanks, Michael Wolf P.S. Sorry to have missed the last 3 SPUG meetings. As fate would have it I've been out of town teaching Perl classes. Fortunately, the next Perl course does *not* collide, so I look forward to seeing you all face-to-face in December. -- Michael R. Wolf All mammals learn by playing! MichaelRWolf@att.net From jmates at sial.org Tue Nov 23 19:29:16 2004 From: jmates at sial.org (Jeremy Mates) Date: Tue Nov 23 19:29:28 2004 Subject: SPUG: Re: CPAN install from CD (i.e. without Internet) In-Reply-To: <1xekcef2.fsf@att.net> References: <1xekcef2.fsf@att.net> Message-ID: <20041124012916.GN6743@darkness.sial.org> * Michael R. Wolf > I'd like this to work on all OS's, so ppm and ppm3 aren't as useful to > me as a truly portable solution would be. Mirror (a portion of) CPAN onto your laptop, then have tested CPAN configurations and a FTP server, so clients can install off of your laptop? (And maybe also build/stash PPM and other packages, for easy install on systems that do support such.) http://www.cpan.org/SITES.html (and look at Private/Local Mirroring) From jay at scherrer.com Tue Nov 23 20:00:03 2004 From: jay at scherrer.com (Jay Scherrer) Date: Tue Nov 23 20:00:12 2004 Subject: SPUG: Re: CPAN install from CD (i.e. without Internet) In-Reply-To: <20041124012916.GN6743@darkness.sial.org> References: <1xekcef2.fsf@att.net> <20041124012916.GN6743@darkness.sial.org> Message-ID: <200411231800.03446.jay@scherrer.com> Michael, How about putting the files you need onto your LAN and update your: $CPAN::Config->{urllist}; Jay Scherrer From michaelrwolf at att.net Tue Nov 23 21:27:30 2004 From: michaelrwolf at att.net (michaelrwolf@att.net) Date: Tue Nov 23 21:27:40 2004 Subject: SPUG: Re: CPAN install from CD (i.e. without Internet) Message-ID: <112420040327.22180.41A3FFA2000439AC000056A42160466648000401999D040A0E080C0703@att.net> > How about putting the files you need onto your LAN and update your: > $CPAN::Config->{urllist}; How can I figure out what files I need? It appears that the "install somemodule" does an iterative, recursive lookup that cannot be figured out at the start. In the worst of cases, I can't even assume a LAN. Can the URL list include something that points to the local CD? From jay at scherrer.com Wed Nov 24 11:57:50 2004 From: jay at scherrer.com (Jay Scherrer) Date: Wed Nov 24 11:57:54 2004 Subject: SPUG: Re: CPAN install from CD (i.e. without Internet) In-Reply-To: <112420040327.22180.41A3FFA2000439AC000056A42160466648000401999D040A0E080C0703@att.net> References: <112420040327.22180.41A3FFA2000439AC000056A42160466648000401999D040A0E080C0703@att.net> Message-ID: <200411240957.50540.jay@scherrer.com> Michael, One good thing about Open Source, You can look to the source. If you keep your cd mounted you should be able to point your configs to your cdrom with out any problem. But like was said earlier, you could copy the cd to a http, ftp or pub directory, then point the CPAN::Config there. Change: 'urllist' => [q[http://www.perl.com/CPAN/]], to point to your localhost: 'urllist' => [q[http://localhost/CPAN/]], Taken from package LWP::Protocol::cpan; ###Section CPAN.pm### unless ($CPAN) { # Try to find local CPAN mirror via $CPAN::Config eval { require CPAN::Config; if($CPAN::Config) { my $urls = $CPAN::Config->{urllist}; if (ref($urls) eq "ARRAY") { my $file; for (@$urls) { if (/^file:/) { $file = $_; last; } } ###End Section### ###Directory Listing located in CPAN::Config### $CPAN::Config = { ### 'urllist' => [q[http://www.perl.com/CPAN/]], } #### Jay Scherrer On Tuesday 23 November 2004 07:27 pm, michaelrwolf@att.net wrote: > > How about putting the files you need onto your LAN and update > > your: $CPAN::Config->{urllist}; > > How can I figure out what files I need? It appears that the > "install somemodule" does an iterative, recursive lookup that > cannot be figured out at the start. > > In the worst of cases, I can't even assume a LAN. > > Can the URL list include something that points to the local CD? > > _____________________________________________________________ > Seattle Perl Users Group Mailing List > POST TO: spug-list@mail.pm.org http://spugwiki.perlocity.org/ > ACCOUNT CONFIG: http://mail.pm.org/mailman/listinfo/spug-list > MEETINGS: 3rd Tuesdays, Location: Amazon.com Pac-Med > WEB PAGE: http://seattleperl.org/ From thane at fastmail.fm Wed Nov 24 12:22:31 2004 From: thane at fastmail.fm (Thane Williams) Date: Wed Nov 24 12:22:45 2004 Subject: SPUG: Installing modules w/o superuser perms Message-ID: <1101320551.25417.209393356@webmail.messagingengine.com> Hello everyone. I hope this question hasn't been done to death. I know how to install a module locally without superuser permissions. I don't know how to do it when the module has dependencies that are only installed locally. I'm trying to install Expect-1.15, which requires a newer version of IO::Pty than this box has. So I have installed IO-Tty-1.02 in my personal perl library dir. Now I can't get the Expect install to recognize that I have it. I installed IO-Tty with PREFIX=/export/home/thane/perllib Now I go to the recently untarred Expect module, and do: perl Makefile.PL PREFIX=/export/home/thane/perllib/ And I get: Warning: prerequisite IO::Pty 1 not found at /usr/local/lib/perl5/5.6.1/ExtUtils/MakeMaker.pm line 343. Warning: prerequisite IO::Tty 1 not found at /usr/local/lib/perl5/5.6.1/ExtUtils/MakeMaker.pm line 343. Writing Makefile for Expect Then I do make, and make test, which returns: PERL_DL_NONLAZY=1 /bin/perl -Iblib/arch -Iblib/lib -I/usr/local/lib/perl5/5.6.1/sun4-solaris -I/usr/local/lib/perl5/5.6.1 test.pl 1..36 IO::Pty version 0.97 required--this is only version 0.01 at blib/lib/Expect.pm line 22. BEGIN failed--compilation aborted at blib/lib/Expect.pm line 22. Compilation failed in require at test.pl line 27. BEGIN failed--compilation aborted at test.pl line 27. make: *** [test_dynamic] Error 255 I also tried making a file that contains the following: PREFIX=/export/home/thane/perllib/ \ INSTALLPRIVLIB=/export/home/thane/perllib/lib/perl5 \ INSTALLSCRIPT=/export/home/thane/perllib/bin \ INSTALLSITELIB=/export/home/thane/perllib/lib/perl5/site_perl \ INSTALLBIN=/export/home/thane/perllib/bin \ INSTALLMAN1DIR=/export/home/thane/perllib/lib/perl5/man \ INSTALLMAN3DIR=/export/home/thane/perllib/lib/perl5/man/man3 and doing: perl Makefile.PL `cat file` This gave the same result. Any suggestions? Thank you for your time, Thane Williams From thane at fastmail.fm Wed Nov 24 14:30:25 2004 From: thane at fastmail.fm (Thane Williams) Date: Wed Nov 24 14:30:42 2004 Subject: SPUG: Installing modules w/o superuser perms In-Reply-To: <1101320551.25417.209393356@webmail.messagingengine.com> References: <1101320551.25417.209393356@webmail.messagingengine.com> Message-ID: <1101328225.6155.209402766@webmail.messagingengine.com> Ok, well, I figure out part of it. I had tried exporting PERL5LIB as "/export/home/thane/perllib". When I export it as: PERL5LIB=/export/home/thane/perllib/lib/5.6.1:/export/home/thane/perllib/lib/site_perl/5.6.1 I get a lot farther. This time "make test" completes successfully... but "make install is still failing: Warning: You do not have permissions to install into /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris at /usr/local/lib/perl5/5.6.1/ExtUtils/Install.pm line 85. Cannot forceunlink /usr/local/lib/perl5/site_perl/5.6.1/Expect.pod: Permission denied at /usr/local/lib/perl5/5.6.1/File/Find.pm line 525 make: *** [pure_site_install] Error 255 From jay at scherrer.com Wed Nov 24 16:36:34 2004 From: jay at scherrer.com (Jay Scherrer) Date: Wed Nov 24 16:36:37 2004 Subject: SPUG: Installing modules w/o superuser perms In-Reply-To: <1101328225.6155.209402766@webmail.messagingengine.com> References: <1101320551.25417.209393356@webmail.messagingengine.com> <1101328225.6155.209402766@webmail.messagingengine.com> Message-ID: <200411241436.34174.jay@scherrer.com> Shane, Before running: make install Can you switch to super user? (su) Looks like this is the requirement. Jay Scherrer On Wednesday 24 November 2004 12:30 pm, Thane Williams wrote: > Ok, well, I figure out part of it. I had tried exporting PERL5LIB > as "/export/home/thane/perllib". When I export it as: > PERL5LIB=/export/home/thane/perllib/lib/5.6.1:/export/home/thane/pe >rllib/lib/site_perl/5.6.1 > > I get a lot farther. This time "make test" completes > successfully... but "make install is still failing: > > > Warning: You do not have permissions to install into > /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris at > /usr/local/lib/perl5/5.6.1/ExtUtils/Install.pm line 85. > Cannot forceunlink /usr/local/lib/perl5/site_perl/5.6.1/Expect.pod: > Permission denied at /usr/local/lib/perl5/5.6.1/File/Find.pm line > 525 make: *** [pure_site_install] Error 255 > _____________________________________________________________ > Seattle Perl Users Group Mailing List > POST TO: spug-list@mail.pm.org http://spugwiki.perlocity.org/ > ACCOUNT CONFIG: http://mail.pm.org/mailman/listinfo/spug-list > MEETINGS: 3rd Tuesdays, Location: Amazon.com Pac-Med > WEB PAGE: http://seattleperl.org/ From jmates at sial.org Wed Nov 24 16:49:20 2004 From: jmates at sial.org (Jeremy Mates) Date: Wed Nov 24 16:49:32 2004 Subject: SPUG: Re: Installing modules w/o superuser perms In-Reply-To: <1101328225.6155.209402766@webmail.messagingengine.com> References: <1101320551.25417.209393356@webmail.messagingengine.com> <1101328225.6155.209402766@webmail.messagingengine.com> Message-ID: <20041124224920.GP6743@darkness.sial.org> I have some notes on User-specific CPAN Configuration at: http://sial.org/howto/perl/life-with-cpan/#s6 I have also had to fiddle with certain ExtUtils::MakeMaker arguments to avoid various platform specific bugs, e.g. to set INSTALLSITEMAN1DIR manually due to it pointing at system locations. An easy way to check is to 'perl Makefile.PL' the module, then grep the resulting Makefile to see if anything still uses a system path instead of one under your home directory. From MichaelRWolf at att.net Thu Nov 25 15:49:01 2004 From: MichaelRWolf at att.net (Michael R. Wolf) Date: Thu Nov 25 15:52:14 2004 Subject: SPUG: Re: CPAN install from CD (i.e. without Internet) In-Reply-To: <200411240957.50540.jay@scherrer.com> References: <112420040327.22180.41A3FFA2000439AC000056A42160466648000401999D040A0E080C0703@att.net> <200411240957.50540.jay@scherrer.com> Message-ID: <6.1.2.0.0.20041125134544.02715400@ipostoffice.worldnet.att.net> At 09:57 AM 11/24/2004, Jay Scherrer wrote: >Michael, > >One good thing about Open Source, You can look to the source. :-) And one good thing about User Groups is they're so full of experienced USERS! Thanks for the pointer to LWP::Protocol::cpan.... Michael R. Wolf All mammals learn by playing! MichaelRWolf@att.net From charles.e.derykus at boeing.com Thu Nov 25 19:15:38 2004 From: charles.e.derykus at boeing.com (DeRykus, Charles E) Date: Thu Nov 25 19:15:53 2004 Subject: SPUG: Installing modules w/o superuser perms Message-ID: <5DF8FDE8DFE8744388602480FDCC0E310346FEDD@xch-nw-23.nw.nos.boeing.com> In addition to tweaking the Makefile just suggested, you might want to install the Module::Builder at the same time for future usage or until MakeMaker gets outfitted with an INSTALLBASE option. It sounds like its "install_base=~" option is a real local install; whereas, MakeMaker's PREFIX isn't. (see p5p note below). -- Charles DeRykus On Tue, Nov 23, 2004 at 09:53:41AM -0800, Justin Mason wrote: > I took a look at Module::Builder a while back, and noted that it > didn't yet support the equivalent of > > perl Makefile.PL PREFIX=$HOME > > to install into non-/usr locations. That's a requirement for > SpamAssassin at least. Has that been fixed? **************************************************************************************** Module::Build has the moral equivalent in install_base. perl Build.PL install_base=~ This is different from PREFIX in that its not going to try and guess how you want things installed based on your system installation. It's just going to plop things into ~/bin, ~/lib, ~/man, etc... This is much saner and easier to predict than PREFIX. *************************************************************************************** Unfortunately, this often means MB will put things in a slightly different location than MM does. You can exactly control where MB puts things (as you can with MM) by passing various explicit install_* parameters so it matches exactly where MM puts its stuff. Meanwhile, MM is going to have INSTALLBASE added to it to emulate MB. Also there are plans afoot to have a .modulebuildrc file which stores your default Build settings so you don't have to keep passing them in on the command line. MB has the capability of generating a Makefile.PL wrapper (see Module::Build::Compat). Unfortunately this does not understand PREFIX, the logic is too hairy to emulate. Ken and I are working on getting that working. -- Michael G Schwern schwern@pobox.com http://www.pobox.com/~schwern/ If you got the wax out of your ears you could hear the twister picking up the trailer park of your future! -----Original Message----- From: Thane Williams [mailto:thane@fastmail.fm] Sent: Wednesday, November 24, 2004 12:30 PM To: spug-list@pm.org Subject: Re: SPUG: Installing modules w/o superuser perms Ok, well, I figure out part of it. I had tried exporting PERL5LIB as "/export/home/thane/perllib". When I export it as: PERL5LIB=/export/home/thane/perllib/lib/5.6.1:/export/home/thane/perllib/lib/site_perl/5.6.1 I get a lot farther. This time "make test" completes successfully... but "make install is still failing: Warning: You do not have permissions to install into /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris at /usr/local/lib/perl5/5.6.1/ExtUtils/Install.pm line 85. Cannot forceunlink /usr/local/lib/perl5/site_perl/5.6.1/Expect.pod: Permission denied at /usr/local/lib/perl5/5.6.1/File/Find.pm line 525 make: *** [pure_site_install] Error 255 _____________________________________________________________ Seattle Perl Users Group Mailing List POST TO: spug-list@mail.pm.org http://spugwiki.perlocity.org/ ACCOUNT CONFIG: http://mail.pm.org/mailman/listinfo/spug-list MEETINGS: 3rd Tuesdays, Location: Amazon.com Pac-Med WEB PAGE: http://seattleperl.org/ From charles.e.derykus at boeing.com Thu Nov 25 19:28:28 2004 From: charles.e.derykus at boeing.com (DeRykus, Charles E) Date: Thu Nov 25 19:28:45 2004 Subject: SPUG: Installing modules w/o superuser perms Message-ID: <5DF8FDE8DFE8744388602480FDCC0E3106CF0FD7@xch-nw-23.nw.nos.boeing.com> The name is Module::Build though rather than Module::Builder... http://search.cpan.org/~kwilliams/Module-Build-0.2604/ -- Charles DeRykus -----Original Message----- From: DeRykus, Charles E Sent: Thursday, November 25, 2004 5:16 PM To: Thane Williams; spug-list@pm.org Subject: RE: SPUG: Installing modules w/o superuser perms In addition to tweaking the Makefile just suggested, you might want to install the Module::Builder at the same time for future usage or until MakeMaker gets outfitted with an INSTALLBASE option. It sounds like its "install_base=~" option is a real local install; whereas, MakeMaker's PREFIX isn't. (see p5p note below). -- Charles DeRykus On Tue, Nov 23, 2004 at 09:53:41AM -0800, Justin Mason wrote: > I took a look at Module::Builder a while back, and noted that it > didn't yet support the equivalent of > > perl Makefile.PL PREFIX=$HOME > > to install into non-/usr locations. That's a requirement for > SpamAssassin at least. Has that been fixed? **************************************************************************************** Module::Build has the moral equivalent in install_base. perl Build.PL install_base=~ This is different from PREFIX in that its not going to try and guess how you want things installed based on your system installation. It's just going to plop things into ~/bin, ~/lib, ~/man, etc... This is much saner and easier to predict than PREFIX. *************************************************************************************** Unfortunately, this often means MB will put things in a slightly different location than MM does. You can exactly control where MB puts things (as you can with MM) by passing various explicit install_* parameters so it matches exactly where MM puts its stuff. Meanwhile, MM is going to have INSTALLBASE added to it to emulate MB. Also there are plans afoot to have a .modulebuildrc file which stores your default Build settings so you don't have to keep passing them in on the command line. MB has the capability of generating a Makefile.PL wrapper (see Module::Build::Compat). Unfortunately this does not understand PREFIX, the logic is too hairy to emulate. Ken and I are working on getting that working. -- Michael G Schwern schwern@pobox.com http://www.pobox.com/~schwern/ If you got the wax out of your ears you could hear the twister picking up the trailer park of your future! -----Original Message----- From: Thane Williams [mailto:thane@fastmail.fm] Sent: Wednesday, November 24, 2004 12:30 PM To: spug-list@pm.org Subject: Re: SPUG: Installing modules w/o superuser perms Ok, well, I figure out part of it. I had tried exporting PERL5LIB as "/export/home/thane/perllib". When I export it as: PERL5LIB=/export/home/thane/perllib/lib/5.6.1:/export/home/thane/perllib/lib/site_perl/5.6.1 I get a lot farther. This time "make test" completes successfully... but "make install is still failing: Warning: You do not have permissions to install into /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris at /usr/local/lib/perl5/5.6.1/ExtUtils/Install.pm line 85. Cannot forceunlink /usr/local/lib/perl5/site_perl/5.6.1/Expect.pod: Permission denied at /usr/local/lib/perl5/5.6.1/File/Find.pm line 525 make: *** [pure_site_install] Error 255 _____________________________________________________________ Seattle Perl Users Group Mailing List POST TO: spug-list@mail.pm.org http://spugwiki.perlocity.org/ ACCOUNT CONFIG: http://mail.pm.org/mailman/listinfo/spug-list MEETINGS: 3rd Tuesdays, Location: Amazon.com Pac-Med WEB PAGE: http://seattleperl.org/ _____________________________________________________________ Seattle Perl Users Group Mailing List POST TO: spug-list@mail.pm.org http://spugwiki.perlocity.org/ ACCOUNT CONFIG: http://mail.pm.org/mailman/listinfo/spug-list MEETINGS: 3rd Tuesdays, Location: Amazon.com Pac-Med WEB PAGE: http://seattleperl.org/ From MichaelRWolf at att.net Fri Nov 26 16:16:45 2004 From: MichaelRWolf at att.net (Michael R. Wolf) Date: Fri Nov 26 16:19:52 2004 Subject: SPUG: DBI bind_param in MySQL Message-ID: When I try this, I get a literal (e.g. "first_name") in the output, not the value of the field. my $sth = $dbh->prepare("SELECT ? FROM bod") or die "Cannot create sth: $DBI::errstr"; # my @fields = qw/ # first_name # middle_name # last_name # suffix # title # company # image_file # /; $sth->bind_param(1, "first_name"); $sth->execute() or die "Cannot execute statement: $DBI::errstr"; Am I missing something important, or is this feature unavailable with MySQL? -- Michael R. Wolf All mammals learn by playing! MichaelRWolf@att.net From cmeyer at helvella.org Fri Nov 26 16:53:51 2004 From: cmeyer at helvella.org (Colin Meyer) Date: Fri Nov 26 16:53:53 2004 Subject: SPUG: DBI bind_param in MySQL In-Reply-To: References: Message-ID: <20041126225350.GB16157@funpox.helvella.org> On Fri, Nov 26, 2004 at 02:16:45PM -0800, Michael R. Wolf wrote: > > When I try this, I get a literal (e.g. "first_name") in the output, > not the value of the field. > > my $sth = $dbh->prepare("SELECT ? FROM bod") > or die "Cannot create sth: $DBI::errstr"; > > $sth->bind_param(1, "first_name"); > > $sth->execute() > or die "Cannot execute statement: $DBI::errstr"; > > Am I missing something important, or is this feature unavailable with > MySQL? Every relational database that I have used (including MySQL) only lets you use placeholders for values, not for identifiers (e.g. column or table names). You could, for example: my $sth = $dbh->prepare( <<'End_of_SQL' ); SELECT first_name FROM bod WHERE first_name LIKE ? End_of_SQL $sth->execute( 'Mi%' ); -Colin. From ivandh at comcast.net Fri Nov 26 18:13:51 2004 From: ivandh at comcast.net (Ivan Heffner) Date: Fri Nov 26 18:13:47 2004 Subject: SPUG: DBI bind_param in MySQL In-Reply-To: <20041126225350.GB16157@funpox.helvella.org> References: <20041126225350.GB16157@funpox.helvella.org> Message-ID: <6.1.0.6.0.20041126155613.0370b858@mail.comcast.net> To kind of follow up on what Colin said, what you are actually sending over the pipe to MySQL is: SELECT 'first_name' FROM bod which most likely not what you want. Say you have a list of columns that you want to select: my @columns = qw( first_name middle_name last_name suffix title company image_file ); You can dynamically build your query, but not by using bind params: my $query = 'select '.join(', ', @columns).' from bod'; You use the bind params in the WHERE clause of you query so that you can prepare a query once and execute it multiple times with different values to the WHERE section. $query .= ' where first_name = ? and last_name = ?'; my $sth = $dbh->prepare($query); my $results = []; for my $fname (qw(Mike Joe John)) { for my $lname (qw(Jones Smith Brown Doe)) { $sth->execute($fname, $lname); my $r = $sth->fetchall_arrayref(); push @$results, @$r; } } __END__ Ivan At 11/26/2004 02:53 PM, Colin Meyer wrote: >On Fri, Nov 26, 2004 at 02:16:45PM -0800, Michael R. Wolf wrote: > > > > When I try this, I get a literal (e.g. "first_name") in the output, > > not the value of the field. > > > > my $sth = $dbh->prepare("SELECT ? FROM bod") > > or die "Cannot create sth: $DBI::errstr"; > > > > $sth->bind_param(1, "first_name"); > > > > $sth->execute() > > or die "Cannot execute statement: $DBI::errstr"; > > > > Am I missing something important, or is this feature unavailable with > > MySQL? > >Every relational database that I have used (including MySQL) only lets >you use placeholders for values, not for identifiers (e.g. column or >table names). > >You could, for example: > > my $sth = $dbh->prepare( <<'End_of_SQL' ); > SELECT first_name > FROM bod > WHERE first_name LIKE ? > End_of_SQL > > $sth->execute( 'Mi%' ); > >-Colin. >_____________________________________________________________ >Seattle Perl Users Group Mailing List >POST TO: spug-list@mail.pm.org http://spugwiki.perlocity.org/ >ACCOUNT CONFIG: http://mail.pm.org/mailman/listinfo/spug-list >MEETINGS: 3rd Tuesdays, Location: Amazon.com Pac-Med >WEB PAGE: http://seattleperl.org/ From andrew at sweger.net Mon Nov 29 11:15:36 2004 From: andrew at sweger.net (Andrew Sweger) Date: Mon Nov 29 11:15:52 2004 Subject: SPUG: Meeting Announcement -- Randal Schwartz - 21 December 2004 Message-ID: December Seattle Perl Users Group (SPUG) Meeting ================================================ Title: Perl: Past, Present, and Future Speaker: Randal Schwartz Meeting Date: Tuesday, December 21, 2004 Meeting Time: 7:00 - 9:00 p.m. (networking 6:30 - 7:00) Location: Amazon.com Pac-Med Building Cost: Admission is free and open to the general public Info: http://seattleperl.org/ =========================================== Randal Schwartz has offered to to share this presentation with us next month. The details are still in the works, but most folks familiar with Randal's other presentations already know it will be time well spent. If you want to exchange PGP/GnuPG signatures, please contact me directly with your public key (now!) and I'll bring fingerprint checklists for participants. Contact me if you want to know more. Oh, and you have to show up at the meeting to exchange ID's and all that, please. Otherwise this whole key exchange thing doesn't work. Here's what's in store for you at our next meeting: About Randal Schwartz --------------------- You're kidding right? Everyone knows Randal. Well, I'll try to put something meaningful here in a future update. About the Presentation ---------------------- Randal will give his "Perl: Past, Present, and Future" presentation. Details to follow. ================================================================ DIRECTIONS ========== These directions are relatively usable. I (or someone) will try to refine these over time with experience. I-5 (from North or South) ========================= On I-5, take the S Dearborn St exit and turn West on Dearborn (I-5 Southbound: turn right; I-5 Northbound: turn left) and proceed approximately one or two blocks. Turn right on 8th Ave S (the first light) and proceed North for three blocks. Turn right on S King St and proceed East for approximately five blocks. You will pass under I-5. Turn right on 12th Ave S and proceed South for approximately five blocks. Along this way, you will cross over the Dr. Jose P. Rizal bridge and you should see the Pac-Med tower directly ahead. At this point, notice that you have been going in a circle. Skip to Pac-Med Building below. I-90 (from East) ================ On I-90, take the Rainier Ave S (hwy 900) exit Northbound and proceed approximately six blocks. Turn left on S King St and proceed West for approximately two blocks. Turn left on 12th Ave S and proceed South for approximately five blocks. Along this way, you will cross over the Dr. Jose P. Rizal bridge and you should see the Pac-Med tower directly ahead. Pac-Med Building ================ Turn right at Charles St (the light after the bridge). The Amazon.com Pac-Med building is visible ahead and on the left as you make the turn and proceed South on Charles (Charles borders the West side of the building). The North parking lot entrance will be the second drive way on the left (the first has a Do Not Enter sign). The parking lot is on the left just past the parking attendant booth. The "carpool only" spaces should be okay to park in after 6:30. Walk to the South entrance of the tower. There is stair next to the parking garage structure that leads to a convenient path that goes around the building to the main entrance on the South side of the building. Enter building and go to the security desk. Sign in and wait to be escorted to the meeting room (just like when we met at Safeco in the U-district, more or less). Yahoo! Maps: http://us.rd.yahoo.com/maps//maps/extmap/*-http://maps.yahoo.com//maps_result?csz=Seattle%2C+WA+98144-2712&state=WA&uzip=98144&ds=n&name=&desc=&ed=uVHuJep_0TqNClJbk4iFOtDnYtddbn81hKmaNuXswR2pUy1qXnoKfGK_rtqkypGYq5f_zb5ghVDwhYc8gzs3td4sOl73q3BVDyr7btbB3VI4IrVR&zoomin=yes&BFKey=&mag=9 MapQuest: http://www.mapquest.com/maps/map.adp?country=US&countryid=US&addtohistory=&searchtab=address&searchtype=address&address=1200+12th+ave+s&city=&state=&zipcode=98144&search=++Search++ From andrew at sweger.net Mon Nov 29 11:22:50 2004 From: andrew at sweger.net (Andrew Sweger) Date: Mon Nov 29 11:22:59 2004 Subject: SPUG: Pre- & Post- meeting venues Message-ID: Does anyone want to get together for dinner before the next meeting? There are great places to eat and talk in the International District (aka Chinatown). After the last meeting, some folks went to "Garage Billiards[1] for a quick pitcher and plate of limp fries". Can anyone give a report on that? Got information that would help others decide if they should schedule time after the meeting to join others? -- Andrew B. Sweger -- The great thing about multitasking is that several things can go wrong at once. From andrew at sweger.net Mon Nov 29 11:43:05 2004 From: andrew at sweger.net (Andrew Sweger) Date: Mon Nov 29 11:43:16 2004 Subject: SPUG: attendance at meeting Message-ID: Our last meeting had 28 folks show up. With the normal room configuration, we can accommodate maybe another 15 or 20 people (I forget the rated capacity of the room). Considering that Randal will be speaking at our next meeting, it's fair to guess that we'll probably have a pretty good turnout at this pre-holiday meeting (who's to say). Our group's policy has always been that meetings are open and free to the public. But we have to consider our very generous hosts too. A sudden surge in attendance has two impacts on the nice folks at Amazon.com: 1) security has to prepare, beforehand, special visitor badges for each attendee, and 2) the room might need to be reconfigured to accommodate a larger number of visitors. I know it's hard for several folks to predict whether they will be making it to the meeting (all sorts of things come up). So I propose an experiment that I think will help make sure we not caught totally off guard at next month's meeting: If you personally feel that you have a 50% or better chance of showing up at the meeting, please RSVP. Toward that end, I have setup a Perl Meetup.com group, http://perl.meetup.com/86/ Please consider signing up and joining the SPUG meetup.com group. Through the website, you may manage your RSVP for the meeting and request automatic reminders be emailed to you personally. If that won't work for you, you may email me directly and I will try to keep tract of the responses. Thanks for helping make SPUG a success. -- Andrew B. Sweger -- The great thing about multitasking is that several things can go wrong at once. From andrew at sweger.net Mon Nov 29 12:15:18 2004 From: andrew at sweger.net (Andrew Sweger) Date: Mon Nov 29 12:15:29 2004 Subject: SPUG: Pre- & Post- meeting venues In-Reply-To: Message-ID: On Mon, 29 Nov 2004, Andrew Sweger wrote: > After the last meeting, some folks went to "Garage Billiards[1] for a > quick pitcher and plate of limp fries". Can anyone give a report on that? > Got information that would help others decide if they should schedule time > after the meeting to join others? Oops. Forgot the link. [1] - http://garagebilliards.com/ -- Andrew B. Sweger -- The great thing about multitasking is that several things can go wrong at once. From james at banshee.com Mon Nov 29 14:07:33 2004 From: james at banshee.com (James Moore) Date: Mon Nov 29 14:07:41 2004 Subject: SPUG: Pre- & Post- meeting venues In-Reply-To: Message-ID: <200411292006.iATK6i204261@server2.chocolatelust.com> I was one of the Garage post-meeting folk, and I'd say it's not optimal. It's a good place in general, but: 1. Not really set up for groups of people not playing pool. There were lots of booths good for 4, but tricky with substantially more than that. Possibly the other side of the building has a different setup, but I didn't go over there. 2. Distance. It'd be nice to have something closer to the meeting. Capitol Hill isn't really the same neighborhood. - James From bill at celestial.com Mon Nov 29 14:18:54 2004 From: bill at celestial.com (Bill Campbell) Date: Mon Nov 29 14:19:03 2004 Subject: SPUG: Pre- & Post- meeting venues In-Reply-To: <200411292006.iATK6i204261@server2.chocolatelust.com> References: <200411292006.iATK6i204261@server2.chocolatelust.com> Message-ID: <20041129201854.GA25919@alexis.mi.celestial.com> On Mon, Nov 29, 2004, James Moore wrote: >I was one of the Garage post-meeting folk, and I'd say it's not optimal. >It's a good place in general, but: > >1. Not really set up for groups of people not playing pool. There were >lots of booths good for 4, but tricky with substantially more than that. >Possibly the other side of the building has a different setup, but I didn't >go over there. >2. Distance. It'd be nice to have something closer to the meeting. >Capitol Hill isn't really the same neighborhood. Back in the days that the Seattle Unix Group met at Seattle University, we would get together at Bill's Off Broadway after the meetings for pizza and beer. There are probably good places close by in the International district, perhaps the House of Hong on Jackson street which has a bar area which would seat a fair number of people, or regular tables if the TV is disturbing. Bill -- INTERNET: bill@Celestial.COM Bill Campbell; Celestial Software LLC UUCP: camco!bill PO Box 820; 6641 E. Mercer Way FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 URL: http://www.celestial.com/ ``If ye love wealth greater than liberty, the tranquillity of servitude greater than the animating contest for freedom, go home from us in peace. We seek not your consul, nor your arms. Crouch down and lick the hand that feeds you. May your chains set lightly upon you; and may posterity forget ye were our countrymen.'' -- Samuel Adams (American Patriot) From tallpeak at hotmail.com Tue Nov 30 14:17:09 2004 From: tallpeak at hotmail.com (Aaron W. West) Date: Tue Nov 30 14:18:07 2004 Subject: SPUG: Anagram finder in perl Message-ID: Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: anagram.c Type: application/octet-stream Size: 8770 bytes Desc: not available Url : http://mail.pm.org/archives/spug-list/attachments/20041130/4a96a6d2/anagram.obj From tallpeak at hotmail.com Tue Nov 30 14:18:49 2004 From: tallpeak at hotmail.com (Aaron W. West) Date: Tue Nov 30 14:19:03 2004 Subject: SPUG: Re: Anagram finder in perl Message-ID: Ha! Oops! So much for not releasing the source of the C program. ----- Original Message ----- From: Aaron W. West To: spug-list@mail.pm.org Sent: Tuesday, November 30, 2004 12:17 PM Subject: Anagram finder in perl Scrabble/Literati players: This is a fun tool to find 7 & 8 letter words. It can find smaller ones, but you need to enter the letters. I wrote a more powerful one in C, but don't feel like releasing the source. Note that this implementation is slow for more than about two blanks, due to trying every combination for those blanks, in the line below: for my $wild ( 'a' x $wildcount .. 'z' x $wildcount ) { Just imagine 'aaaa' to 'zzzz' ... I think I pressed control-C the time I tried four blanks. -------------- next part -------------- A non-text attachment was scrubbed... Name: anagram.pl Type: application/x-perl Size: 3169 bytes Desc: not available Url : http://mail.pm.org/archives/spug-list/attachments/20041130/295ee2f2/anagram.bin