From cdawson at webiphany.com Fri Oct 3 18:15:07 2003 From: cdawson at webiphany.com (Chris Dawson) Date: Mon Aug 2 21:34:25 2004 Subject: [Pdx-pm] artist/designer recommendation Message-ID: <3F7E02FB.8020205@webiphany.com> Hi all, I know this is not really the list for this type of request, but I hold all of you in such high esteem (no, really I do!) that the opinion here is worth much more than a random opinion somewhere else. I am looking for a graphic artist who might be able to do some logo design work for a small project. I imagine others have occasion to work with contractors in this way since often times perl programmers are working with larger web dev teams. I would like to find someone local and recommended by someone local. Any suggestions, people you really like, or people that really need the work? I am happy to take the responses to my personal address and would be happy to forward on to anyone else who might want the responses; just ask. Thanks, Chris From tcaine at eli.net Tue Oct 7 14:50:54 2003 From: tcaine at eli.net (Todd Caine) Date: Mon Aug 2 21:34:25 2004 Subject: [Pdx-pm] Re: Lightning Talks! In-Reply-To: <20030929175343.GG28325@eli.net> References: <20030929175343.GG28325@eli.net> Message-ID: <20031007195054.GA6503@eli.net> This is just a reminder! We could use a few more talks. You can sign up to give a pdx.pm Lightning Talk at http://pdx.pm.org/kwiki/. Todd On (Mon, Sep 29 10:53), Todd Caine wrote: > > Hi Folks, > > The next Portland Perl Mongers meeting is coming up soon! > > WHAT: pdx.pm Lightning Talks > WHEN: Wed 8 Oct 2003 - 6:30-8:00 > WHERE: Urban Grind Coffee (http://www.urbangrindcoffee.com/) > WHO: http://pdx.pm.org/kwiki/ > > =*=*=*=*= CALL FOR PARTICIPATION =*=*=*=*= > > So far we have 4 5-minute talks scheduled. We need more people to give a brief talk (maximum of 8 minutes) about *anything* Perl related. You can sign up to give a Lightning Talk at http://pdx.pm.org/kwiki/. This is your chance to give something back to the group. We promise not to bite! > > =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* > > Cheers, > Todd From joe at oppegaard.net Wed Oct 8 20:52:25 2003 From: joe at oppegaard.net (Joe Oppegaard) Date: Mon Aug 2 21:34:25 2004 Subject: [Pdx-pm] Re: Lightning Talks! In-Reply-To: <20031007195054.GA6503@eli.net> References: <20030929175343.GG28325@eli.net> <20031007195054.GA6503@eli.net> Message-ID: For any late comers, We are sitting outside the closed coffee shop. We have decided to move to Katie 'O Briens on 28th and Sandy for a social gathering. -Joe Oppegaard On Tue, 7 Oct 2003, Todd Caine wrote: > > This is just a reminder! > > We could use a few more talks. > > You can sign up to give a pdx.pm Lightning Talk at http://pdx.pm.org/kwiki/. > > Todd > > On (Mon, Sep 29 10:53), Todd Caine wrote: > > > > Hi Folks, > > > > The next Portland Perl Mongers meeting is coming up soon! > > > > WHAT: pdx.pm Lightning Talks > > WHEN: Wed 8 Oct 2003 - 6:30-8:00 > > WHERE: Urban Grind Coffee (http://www.urbangrindcoffee.com/) > > WHO: http://pdx.pm.org/kwiki/ > > > > =*=*=*=*= CALL FOR PARTICIPATION =*=*=*=*= > > > > So far we have 4 5-minute talks scheduled. We need more people to give a brief talk (maximum of 8 minutes) about *anything* Perl related. You can sign up to give a Lightning Talk at http://pdx.pm.org/kwiki/. This is your chance to give something back to the group. We promise not to bite! > > > > =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* > > > > Cheers, > > Todd > _______________________________________________ > Pdx-pm-list mailing list > Pdx-pm-list@mail.pm.org > http://mail.pm.org/mailman/listinfo/pdx-pm-list > From jkeroes at eli.net Thu Oct 9 18:06:13 2003 From: jkeroes at eli.net (Joshua Keroes) Date: Mon Aug 2 21:34:25 2004 Subject: [Pdx-pm] Ever been stood up? Message-ID: <20031009230613.GD27402@eli.net> Being stood up on a date is no fun, as many can attest. It's only marginally better when you have some friends there to laugh it off with you. Nevertheless, last night, the Perl Mongers were stood up. Urban Grind Coffee had closed its doors to us last night and without an internet connection, chairs, and coffee, we were left without a technical meeting. About 16 of us went to the nearby pub and had a concillatory beer and made the best of it. I have but two words for what happened: That Sucked. I just got off the phone with the owner of Urban Grind Coffee. As soon as he heard who was calling, he delved into his email and cringed. I could physically hear him cringing on the phone. Apparently, our date reservation never made it from his email to calendar and as a result, the doors were locked and the lights were out. He's offered a pretty heartfelt apology if you guys want it. I'd like to schedule a makeup meeting for the missed one, for one week from yesterday's meeting. ---- Next meeting: LIGHTNING TALKS REDUX 15 Oct 2003 6:30-8:30 Urban Grind Coffee Map: http://snurl.com/2loe Let's try again, shall we? -J From hydo at mac.com Thu Oct 9 18:16:24 2003 From: hydo at mac.com (Clint Moore) Date: Mon Aug 2 21:34:25 2004 Subject: [Pdx-pm] Ever been stood up? In-Reply-To: <20031009230613.GD27402@eli.net> Message-ID: <99F165DA-FAAE-11D7-B42A-000393CD5C76@mac.com> On Thursday, October 9, 2003, at 04:06 PM, Joshua Keroes wrote: > stuff I'll be there. From perl at sonofhans.net Thu Oct 9 18:55:43 2003 From: perl at sonofhans.net (Randall Hansen) Date: Mon Aug 2 21:34:25 2004 Subject: [Pdx-pm] Ever been stood up? In-Reply-To: <20031009230613.GD27402@eli.net> References: <20031009230613.GD27402@eli.net> Message-ID: <20031009165543.53afc847.perl@sonofhans.net> Thus spake Joshua Keroes (on Thu, 9 Oct 2003 16:06:13 -0700 ): > He's offered a pretty heartfelt apology if you guys want it. > > I'd like to schedule a makeup meeting for the missed one, for one > week from yesterday's meeting. No hard feelings from me; Mack's a good guy. I've updated the site. r -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://mail.pm.org/pipermail/pdx-pm-list/attachments/20031009/bde69d21/attachment.bin From merlyn at stonehenge.com Thu Oct 9 18:58:59 2003 From: merlyn at stonehenge.com (Randal L. Schwartz) Date: Mon Aug 2 21:34:25 2004 Subject: [Pdx-pm] Ever been stood up? In-Reply-To: <20031009230613.GD27402@eli.net> References: <20031009230613.GD27402@eli.net> Message-ID: <86brsqyncu.fsf@blue.stonehenge.com> >>>>> "Joshua" == Joshua Keroes writes: Joshua> Next meeting: Joshua> LIGHTNING TALKS REDUX Joshua> 15 Oct 2003 Joshua> 6:30-8:30 Joshua> Urban Grind Coffee Joshua> Map: http://snurl.com/2loe Works for me. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! From dpool at hevanet.com Fri Oct 10 09:44:28 2003 From: dpool at hevanet.com (david pool) Date: Mon Aug 2 21:34:25 2004 Subject: [Pdx-pm] Ever been stood up? References: <20031009230613.GD27402@eli.net> <20031009165543.53afc847.perl@sonofhans.net> Message-ID: <3F86C5CC.30901@hevanet.com> Randall Hansen wrote: > Thus spake Joshua Keroes > (on Thu, 9 Oct 2003 16:06:13 -0700 ): > > >>He's offered a pretty heartfelt apology if you guys want it. >> >>I'd like to schedule a makeup meeting for the missed one, for one >>week from yesterday's meeting. > > > No hard feelings from me; Mack's a good guy. I've updated the site. It's true, I like Mack and Brenda a bunch and I know too well that cringing feeling when one has boneheaded a meeting. Unfortunatly I'll be at my neighborhood association meeting that night til 7:30, but I'll try to stop by afterwards. david From nick2canz at yahoo.com Sun Oct 12 12:45:04 2003 From: nick2canz at yahoo.com (Nick Wehr) Date: Mon Aug 2 21:34:25 2004 Subject: [Pdx-pm] Pictures.... Message-ID: <20031012174504.63506.qmail@web10806.mail.yahoo.com> I remember Joshua talking about posting some pictures from the last meeting so we can make fun of them... what happened? __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From kellert at ohsu.edu Tue Oct 14 12:28:10 2003 From: kellert at ohsu.edu (Thomas Keller) Date: Mon Aug 2 21:34:25 2004 Subject: [Pdx-pm] data munging: line-endings Message-ID: Dear mongers, It's straightforward to filter line endings, but I don't know how to check for a particular line ending without opening the file in BBEdit and using it's page info menu. Is there a kind of stat module that quickly determines the line ending characters and allows them to be filtered automagically? Thanks, Tom K. Tom Keller, Ph.D. http://www.ohsu.edu/core kellert@ohsu.edu 503-494-2442 From poec at yahoo.com Tue Oct 14 12:35:06 2003 From: poec at yahoo.com (Ovid) Date: Mon Aug 2 21:34:25 2004 Subject: [Pdx-pm] Job opening Message-ID: <20031014173506.2668.qmail@web40408.mail.yahoo.com> Hi all, If anyone is interested in work, feel free to forward me your resume. The company is Rentrak (http://www.rentrak.com/) and we're located near the airport. Expert ability in Perl is not a requirement (though our work is almost entirely Perl). Instead, the company's more interested in people who are sharp and learn quickly. I am told that if Perl is the only language on your resume, you are less likely to be considered. Tools we use: * Perl * Mason * Oracle * TDD (test-driven development) Cheers, Ovid ===== Silence is Evil http://users.easystreet.com/ovid/philosophy/indexdecency.htm Ovid http://www.perlmonks.org/index.pl?node_id=17000 Web Programming with Perl http://users.easystreet.com/ovid/cgi_course/ __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From jkeroes at eli.net Tue Oct 14 12:53:39 2003 From: jkeroes at eli.net (Joshua Keroes) Date: Mon Aug 2 21:34:25 2004 Subject: [Pdx-pm] Lightning Talks Redux - tomorrow Message-ID: <57BAD310-FE6F-11D7-A93F-000A95C466EC@eli.net> The rescheduled Lightning Talks are on for tomorrow. WHAT: pdx.pm Lightning Talks WHEN: Wed 15 Oct 2003 - 6:30-8:00 WHERE: Urban Grind Coffee http://www.urbangrindcoffee.com/ WHO: http://pdx.pm.org/kwiki/ See you there, Joshua From ckuskie at dalsemi.com Tue Oct 14 13:14:23 2003 From: ckuskie at dalsemi.com (Colin Kuskie) Date: Mon Aug 2 21:34:25 2004 Subject: [Pdx-pm] data munging: line-endings In-Reply-To: References: Message-ID: <20031014181423.GB18842@dalsemi.com> On Tue, Oct 14, 2003 at 10:28:10AM -0700, Thomas Keller wrote: > It's straightforward to filter line endings, but I don't know how to > check for a particular line ending without opening the file in BBEdit > and using it's page info menu. Is there a kind of stat module that > quickly determines the line ending characters and allows them to be > filtered automagically? I don't think so. To do that, the module would have to know how to analyze the content of each file to recognize lines without using line endings. That's easy for a human, but might be complex based on the format of the line(s). If you're trying to take care of files from DOS and Unix, then this would work: s/\s*$//; which would take care of: \n \r\n Otherwise, if you'd post a little more detail, then it'd be easier to help with a solution. Colin From kellert at ohsu.edu Tue Oct 14 13:48:09 2003 From: kellert at ohsu.edu (Thomas Keller) Date: Mon Aug 2 21:34:25 2004 Subject: [Pdx-pm] data munging: line-endings In-Reply-To: <20031014181423.GB18842@dalsemi.com> Message-ID: On Tuesday, October 14, 2003, at 11:14 AM, Colin Kuskie wrote: > s/\s*$//; This doesn't help for the files I need to process. "$/" needs to be correct for correct line-by-line processing. I've been running them through the following filter, but it requires that I know ahead of time that the input file has DOS type line-endings. I guess that's not too onerous, but if we change the application generating these files, the line-endings may change. But I guess I'll see that immediately and be able to change the specification to the filter script. Here's what I use now (From D. Cross "Data Munging with Perl") # ref: D. Cross, p89. use lib "/Library/Perl"; use strict; (@ARGV == 3) or die "Useage: requires arguments-> filename-to-filter source-format/ (e.g. Win) target-format(e.g. Unix or Mac)."; my ($file, $src, $tgt) = @ARGV; my %conv = ( Mac => "\cM", ## Mac used CR Unix => "\cJ", ## Unix uses LF Win => "\cM\cJ"); ## Windows uses both $src = $conv{$src}; $tgt = $conv{$tgt}; $/ = $src; open F, $file or die "Can't open $file: $!"; while () { s/$src/$tgt/go; print; } close F; From ckuskie at dalsemi.com Tue Oct 14 14:13:45 2003 From: ckuskie at dalsemi.com (Colin Kuskie) Date: Mon Aug 2 21:34:25 2004 Subject: [Pdx-pm] data munging: line-endings In-Reply-To: References: <20031014181423.GB18842@dalsemi.com> Message-ID: <20031014191345.GD18842@dalsemi.com> On Tue, Oct 14, 2003 at 11:48:09AM -0700, Thomas Keller wrote: > > my %conv = ( Mac => "\cM", ## Mac used CR > Unix => "\cJ", ## Unix uses > LF > Win => "\cM\cJ"); ## Windows > uses both I understand. Because of the Mac requirement, you can't rely on \n always being there. In that case, you could build an automatic line ending detector like this: 1) Slurp the entire file in by setting $/ to undef. 2) Starting at the top of the file, go through character by character until you reach something that looks like a line ending. if char eq "\cM" then if next char eq "\cJ" then line_ending = DOS; done else line_ending = MAC; done if char eq "\cJ" then line_ending = UNIX; done 3) Using split, create an array of lines based on line_ending 4) Iterate over the array of lines For large files (think megabytes here), this will be memory intensive since you have two copies of the file (slurped and split). If that is a problem, try using sysread and seek to do the line ending part and after you've determined which kind of file you have, then seek back to the top of the file, set $/ to the appropriate line_ending and keep using good old while(<>) to iterate through the file. Colin From schwern at pobox.com Tue Oct 14 21:08:11 2003 From: schwern at pobox.com (Michael G Schwern) Date: Mon Aug 2 21:34:25 2004 Subject: [Pdx-pm] data munging: line-endings In-Reply-To: References: <20031014181423.GB18842@dalsemi.com> Message-ID: <20031015020811.GF20928@windhund.schwern.org> On Tue, Oct 14, 2003 at 11:48:09AM -0700, Thomas Keller wrote: > On Tuesday, October 14, 2003, at 11:14 AM, Colin Kuskie wrote: > >s/\s*$//; > This doesn't help for the files I need to process. "$/" needs to be > correct for correct line-by-line processing. > I've been running them through the following filter, but it requires > that I know ahead of time that the input file has DOS type > line-endings. I guess that's not too onerous, but if we change the > application generating these files, the line-endings may change. But I > guess I'll see that immediately and be able to change the specification > to the filter script. Detection's pretty simple. Read in some text using read() and look for a line ending. open(FILE, $filename); read(FILE, $text, 1024); close FILE; ($ending) = $text =~ /[\r\n]{1,2}/ the only possible edge case is if there's a blank line which may result in "\n\n" or "\r\r" in which case you just remove duplicates. $ending =~ s/([\r\n])\1/$1/; Now you can set $/ to $ending. -- Michael G Schwern schwern@pobox.com http://www.pobox.com/~schwern/ If the women don't find you handsome, they should at least find you handy. -- Red Green From jkeroes at eli.net Wed Oct 15 17:46:18 2003 From: jkeroes at eli.net (Joshua Keroes) Date: Mon Aug 2 21:34:25 2004 Subject: [Pdx-pm] Fwd: Lightning Talks Redux - today Message-ID: <6441D227-FF61-11D7-A31E-000A95C466EC@eli.net> Just confirmed it. > The Lightning Talks are on for tonight > > WHAT: pdx.pm Lightning Talks > WHEN: Wed 15 Oct 2003 - 6:30-8:00 > WHERE: Urban Grind Coffee http://www.urbangrindcoffee.com/ > WHO: http://pdx.pm.org/kwiki/ > > See you there, > Joshua From poec at yahoo.com Thu Oct 16 12:57:15 2003 From: poec at yahoo.com (Ovid) Date: Mon Aug 2 21:34:25 2004 Subject: [Pdx-pm] Resumes sent Message-ID: <20031016175715.90197.qmail@web40405.mail.yahoo.com> Hi all, A couple of days ago, I sent an email regarding a job at the company I work for. I know I didn't respond to everyone personally, but I did forward all resumes directly to the hiring manager, so if you didn't here from me, don't fret! Your resume was sent. Cheers, Curtis ===== Silence is Evil http://users.easystreet.com/ovid/philosophy/indexdecency.htm Ovid http://www.perlmonks.org/index.pl?node_id=17000 Web Programming with Perl http://users.easystreet.com/ovid/cgi_course/ __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From jeff at vpservices.com Mon Oct 20 11:26:08 2003 From: jeff at vpservices.com (Jeff Zucker) Date: Mon Aug 2 21:34:25 2004 Subject: [Pdx-pm] Back copies of 02packages.details.txt Message-ID: <3F940CA0.7000907@vpservices.com> Hi all, In my continuing research for the DBI book I am not being able to find some needed details of history. As far as I can see, backpan is only partial and because it doesn't do symlinks there's no way to find out the dates of the earliest version of all DBD modules (e.g. by browsing the DBD category) other than look in the directories of everyone who's ever written one. The best I have been able to find is old copies of the trusty 02packages.details.txt. I could only find ones for June 1996 and December 1999 on backpan and neither google nor the wayback machine turned up anything further. So HELP! if you have copies of 02packages.details.txt for other years, please send them to me. If you can think of some other way I can find the information I want (history of the names, versions, dates and authors of DBI-related modules 1992-present), please let me know. If I get enough responses to be useful, I'll post the whole lot in an archive or add it to backpan. -- Jeff From schwern at pobox.com Mon Oct 20 19:17:50 2003 From: schwern at pobox.com (Michael G Schwern) Date: Mon Aug 2 21:34:25 2004 Subject: [Pdx-pm] Back copies of 02packages.details.txt In-Reply-To: <3F940CA0.7000907@vpservices.com> References: <3F940CA0.7000907@vpservices.com> Message-ID: <20031021001750.GD7647@windhund.schwern.org> On Mon, Oct 20, 2003 at 09:26:08AM -0700, Jeff Zucker wrote: > In my continuing research for the DBI book I am not being able to find > some needed details of history. As far as I can see, backpan is only > partial and because it doesn't do symlinks there's no way to find out > the dates of the earliest version of all DBD modules (e.g. by browsing > the DBD category) other than look in the directories of everyone who's > ever written one. The best I have been able to find is old copies of > the trusty 02packages.details.txt. I could only find ones for June 1996 > and December 1999 on backpan and neither google nor the wayback machine > turned up anything further. So HELP! if you have copies of > 02packages.details.txt for other years, please send them to me. If you > can think of some other way I can find the information I want (history > of the names, versions, dates and authors of DBI-related modules > 1992-present), please let me know. If I get enough responses to be > useful, I'll post the whole lot in an archive or add it to backpan. I have just the thing. http://backpan.cpan.org/authors/authors-lR.gz That should give you enough information to get the stats you want. Note that it was generated as a one-off at the beginning of October. -- Michael G Schwern schwern@pobox.com http://www.pobox.com/~schwern/ They just don't make any good porn music anymore, do they? - WXDX DJ refering to "More, More, More" From jeff at vpservices.com Mon Oct 20 19:44:48 2003 From: jeff at vpservices.com (Jeff Zucker) Date: Mon Aug 2 21:34:25 2004 Subject: [Pdx-pm] Back copies of 02packages.details.txt In-Reply-To: <20031021001750.GD7647@windhund.schwern.org> References: <3F940CA0.7000907@vpservices.com> <20031021001750.GD7647@windhund.schwern.org> Message-ID: <3F948180.7000709@vpservices.com> > > >I have just the thing. http://backpan.cpan.org/authors/authors-lR.gz >That should give you enough information to get the stats you want. > Thanks much, but that isn't what I need. It helps with the symlink problem I mentioned, but the trouble is that backpan only shows whatever wasn't previously deleted when it was first installed. For example, the earliest DBD::DB2 it shows is version 0.70 from 2000, but the 02packages.details for 1996 shows me a DBD::DB2 0.55. What I need is a snapshot of the full list for at least one month (hopefully the same month) each year. I have a month from each of 1996,1999,2002 (thanks Mark Hartley), and two for 2003 (thanks again Mark). I am constructing a graph of number of authors and number of modules year by year and finding interesting things like the number of modules per author increases fairly dramatically over time. It's also informative to see the rate of growth. I'll put the whole thing up as a searchable database when it's ready. If the situation really truly is that no one has gathered these snapshots before, then we really need to get on it or a big batch of perl history will be, so to speak, history. I'll write to people like Ask and HFB and brian who should all know more I hope, meanwhile, suggestions welcome. -- Jeff From schwern at pobox.com Mon Oct 20 20:22:15 2003 From: schwern at pobox.com (Michael G Schwern) Date: Mon Aug 2 21:34:25 2004 Subject: [Pdx-pm] Back copies of 02packages.details.txt In-Reply-To: <3F948180.7000709@vpservices.com> References: <3F940CA0.7000907@vpservices.com> <20031021001750.GD7647@windhund.schwern.org> <3F948180.7000709@vpservices.com> Message-ID: <20031021012215.GA7941@windhund.schwern.org> On Mon, Oct 20, 2003 at 05:44:48PM -0700, Jeff Zucker wrote: > Thanks much, but that isn't what I need. It helps with the symlink > problem I mentioned, but the trouble is that backpan only shows whatever > wasn't previously deleted when it was first installed. For example, the > earliest DBD::DB2 it shows is version 0.70 from 2000, but the > 02packages.details for 1996 shows me a DBD::DB2 0.55. authors/id/M/MH/MHM: total 1422 -rw-r--r-- 1 500 500 747 May 17 1996 DBD-DB2-0.55.readme -rw-r--r-- 1 500 500 34276 May 17 1996 DBD-DB2-0.55.tar.gz > What I need is a > snapshot of the full list for at least one month (hopefully the same > month) each year. I have a month from each of 1996,1999,2002 (thanks > Mark Hartley), and two for 2003 (thanks again Mark). I am constructing > a graph of number of authors and number of modules year by year and > finding interesting things like the number of modules per author > increases fairly dramatically over time. It's also informative to see > the rate of growth. I'll put the whole thing up as a searchable > database when it's ready. > > If the situation really truly is that no one has gathered these > snapshots before, then we really need to get on it or a big batch of > perl history will be, so to speak, history. I'll write to people like > Ask and HFB and brian who should all know more I hope, meanwhile, > suggestions welcome. Adam Turoff might have them. ziggy@panix.com -- Michael G Schwern schwern@pobox.com http://www.pobox.com/~schwern/ That which stirs me, stirs everything. -- Squonk Opera, "Spoon" From jeff at vpservices.com Mon Oct 20 20:52:24 2003 From: jeff at vpservices.com (Jeff Zucker) Date: Mon Aug 2 21:34:25 2004 Subject: [Pdx-pm] Back copies of 02packages.details.txt In-Reply-To: <20031021012215.GA7941@windhund.schwern.org> References: <3F940CA0.7000907@vpservices.com> <20031021001750.GD7647@windhund.schwern.org> <3F948180.7000709@vpservices.com> <20031021012215.GA7941@windhund.schwern.org> Message-ID: <3F949158.1010206@vpservices.com> Michael G Schwern wrote: >authors/id/M/MH/MHM: >total 1422 >-rw-r--r-- 1 500 500 747 May 17 1996 DBD-DB2-0.55.readme >-rw-r--r-- 1 500 500 34276 May 17 1996 DBD-DB2-0.55.tar.gz > /me Bangs head against wall. Hmm, maybe this does have what I need. Thanks, -- Jeff From ward at c2.com Tue Oct 28 18:24:06 2003 From: ward at c2.com (Ward Cunningham) Date: Mon Aug 2 21:34:25 2004 Subject: [Pdx-pm] string function Message-ID: <34CD10C6-09A6-11D8-958C-0003939371F2@c2.com> I'm having trouble thinking of a good way to compare two strings and find out where they differ. For example, given: "abcdewxyz" "abcvwxyz" I would like to find the number of matching characters starting from the front or back of the strings. These would be, 3 match from the front 4 match from the back There must be some slick way to do this without looking at each individual character in a loop. What am I missing? Thanks -- Ward -- Ward Cunningham 503-245-5633 v mailto:ward@c2.com 503-246-5587 f http://c2.com From tkil at scrye.com Tue Oct 28 19:10:43 2003 From: tkil at scrye.com (Tkil) Date: Mon Aug 2 21:34:25 2004 Subject: [Pdx-pm] string function In-Reply-To: <34CD10C6-09A6-11D8-958C-0003939371F2@c2.com> References: <34CD10C6-09A6-11D8-958C-0003939371F2@c2.com> Message-ID: >>>>> "Ward" == Ward Cunningham writes: Ward> I'm having trouble thinking of a good way to compare two strings Ward> and find out where they differ. Ward> There must be some slick way to do this without looking at each Ward> individual character in a loop. What am I missing? You're basically solving the problem that 'diff' solves: http://search.cpan.org/~nedkonz/Algorithm-Diff-1.15/lib/Algorithm/Diff.pm t. From perl at sonofhans.net Wed Oct 29 19:03:54 2003 From: perl at sonofhans.net (Randall Hansen) Date: Mon Aug 2 21:34:25 2004 Subject: [Pdx-pm] unhappy CPAN on OS X Message-ID: <20332.130.94.160.138.1067475834.squirrel@webmail.pair.com> Fellow Mongers ~ The last few days I've been setting up a new Powerbook. It's all going swimmingly except for one problem with CPAN. It appears to not be able to use LWP or Net::FTP to fetch tarballs, but it takes *forever* to figure this out before it drops to using vanilla ftp. It only does this once per session; after it figures out that LWP and Net::FTP are hosed somehow it doesn't try them again. I installed LWP & Bundle::libnet earlier today and they appear to be fine. "Appear" is important, because I've not used them, but all the tests pass. I'm using the stock perl with OS X 10.3: bananajr |> perl -v This is perl, v5.8.1-RC3 built for darwin-thread-multi-2level (with 1 registered patch, see perl -V for more detail) There's a session dump below; any help would be appreciated. TIA, Randall ------------------------------------ cpan> test Digest::SHA1 CPAN: Storable loaded ok Going to read /Users/Shared/.cpan/Metadata Database was generated on Tue, 28 Oct 2003 13:46:56 GMT Running test for module Digest::SHA1 Running make for G/GA/GAAS/Digest-SHA1-2.06.tar.gz CPAN: LWP::UserAgent loaded ok Fetching with LWP: ftp://cpan.pair.com/pub/CPAN/authors/id/G/GA/GAAS/Digest-SHA1-2.06.tar.gz LWP failed with code[404] message[File 'Digest-SHA1-2.06.tar.gz' not found] Fetching with Net::FTP: ftp://cpan.pair.com/pub/CPAN/authors/id/G/GA/GAAS/Digest-SHA1-2.06.tar.gz Couldn't fetch Digest-SHA1-2.06.tar.gz from cpan.pair.com Issuing "/usr/bin/ftp -n" Connected to cpan.pair.com. 220 cpan.pair.com NcFTPd Server (licensed copy) ready. .... everything's fine from here on out. From rootbeer at redcat.com Wed Oct 29 19:29:53 2003 From: rootbeer at redcat.com (Tom Phoenix) Date: Mon Aug 2 21:34:25 2004 Subject: [Pdx-pm] unhappy CPAN on OS X In-Reply-To: <20332.130.94.160.138.1067475834.squirrel@webmail.pair.com> References: <20332.130.94.160.138.1067475834.squirrel@webmail.pair.com> Message-ID: On Wed, 29 Oct 2003, Randall Hansen wrote: > It appears to not be able to use LWP or Net::FTP to fetch tarballs, but > it takes *forever* to figure this out before it drops to using vanilla > ftp. It sounds as if vanilla FTP is configured to get around your firewall/proxy setup, but Net::FTP and LWP might not be. Maybe? Check out Net::Config, which is used with Net::FTP. Is there something analogous with LWP? --Tom Phoenix From jkeroes at eli.net Wed Oct 29 19:36:57 2003 From: jkeroes at eli.net (Joshua Keroes) Date: Mon Aug 2 21:34:25 2004 Subject: [Pdx-pm] unhappy CPAN on OS X In-Reply-To: <20332.130.94.160.138.1067475834.squirrel@webmail.pair.com> References: <20332.130.94.160.138.1067475834.squirrel@webmail.pair.com> Message-ID: <8C996E0A-0A79-11D8-9065-000A95C466EC@eli.net> On Oct 29, 2003, at 5:03 PM, Randall Hansen wrote: > Fellow Mongers ~ > > The last few days I've been setting up a new Powerbook. It's all going > swimmingly except for one problem with CPAN. It appears to not be > able to > use LWP or Net::FTP to fetch tarballs, but it takes *forever* to figure > this out before it drops to using vanilla ftp. It only does this once > per > session; after it figures out that LWP and Net::FTP are hosed somehow > it > doesn't try them again. > I wasn't able to use the stock perl with CPAN at all - the perl.h file was missing, preventing Good Things from oh, say, working. I rebuilt Perl with the following invocation. Mind you, Perl ought to start faster if staticly linked (viz. useshrplib). ./Configure -des -D prefix=/usr/local/perl581 -D ccflags='-g -pipe' -D ldflags=-Dman3ext=3pm -D useshrplib \ && make test && make install When that's complete, just link any or all binaries from /usr/local/perl581/bin to /usr/local/bin. -J From chiller at eldorado.elsewhere.org Wed Oct 29 19:42:04 2003 From: chiller at eldorado.elsewhere.org (Christopher M. Hiller) Date: Mon Aug 2 21:34:25 2004 Subject: [Pdx-pm] unhappy CPAN on OS X In-Reply-To: <8C996E0A-0A79-11D8-9065-000A95C466EC@eli.net> Message-ID: All the headers get installed if you download & install XCode... bah! -- Christopher Hiller http://chrishiller.net On Wed, 29 Oct 2003, Joshua Keroes wrote: > > On Oct 29, 2003, at 5:03 PM, Randall Hansen wrote: > > > Fellow Mongers ~ > > > > The last few days I've been setting up a new Powerbook. It's all going > > swimmingly except for one problem with CPAN. It appears to not be > > able to > > use LWP or Net::FTP to fetch tarballs, but it takes *forever* to figure > > this out before it drops to using vanilla ftp. It only does this once > > per > > session; after it figures out that LWP and Net::FTP are hosed somehow > > it > > doesn't try them again. > > > > I wasn't able to use the stock perl with CPAN at all - the perl.h file > was missing, preventing Good Things from oh, say, working. > > I rebuilt Perl with the following invocation. Mind you, Perl ought to > start faster if staticly linked (viz. useshrplib). > > ./Configure -des -D prefix=/usr/local/perl581 -D ccflags='-g -pipe' -D > ldflags=-Dman3ext=3pm -D useshrplib \ > && make test && make install > > When that's complete, just link any or all binaries from > /usr/local/perl581/bin to /usr/local/bin. > > -J > > _______________________________________________ > Pdx-pm-list mailing list > Pdx-pm-list@mail.pm.org > http://mail.pm.org/mailman/listinfo/pdx-pm-list > From schwern at pobox.com Wed Oct 29 19:49:36 2003 From: schwern at pobox.com (Michael G Schwern) Date: Mon Aug 2 21:34:25 2004 Subject: [Pdx-pm] unhappy CPAN on OS X In-Reply-To: <8C996E0A-0A79-11D8-9065-000A95C466EC@eli.net> References: <20332.130.94.160.138.1067475834.squirrel@webmail.pair.com> <8C996E0A-0A79-11D8-9065-000A95C466EC@eli.net> Message-ID: <20031030014936.GA1624@localhost.comcast.net> On Wed, Oct 29, 2003 at 05:36:57PM -0800, Joshua Keroes wrote: > I wasn't able to use the stock perl with CPAN at all - the perl.h file > was missing, preventing Good Things from oh, say, working. And you are contestant number one in The Great OS X 10.3 Perl Fuckup! They moved the perl header files from DevSDK to BSDSDK. This not only means you need devtools installed to perform any Perl module (which is how it was with 10.2) but it also means you need to install the optional BSD SDK. So if you install BSD SDK from devtools it should work. Please join me in convincing Apple that it was a bad idea to move the Perl headers to an optional install. Meanwhile, I'm working on removing that perl.h dependency from MakeMaker. -- Michael G Schwern schwern@pobox.com http://www.pobox.com/~schwern/ There is nothing wrong. We have taken control of this sig file. We will return it to you as soon as you are groovy. From schwern at pobox.com Wed Oct 29 19:51:18 2003 From: schwern at pobox.com (Michael G Schwern) Date: Mon Aug 2 21:34:25 2004 Subject: [Pdx-pm] unhappy CPAN on OS X In-Reply-To: References: <20332.130.94.160.138.1067475834.squirrel@webmail.pair.com> Message-ID: <20031030015117.GB1624@localhost.comcast.net> On Wed, Oct 29, 2003 at 05:29:53PM -0800, Tom Phoenix wrote: > > It appears to not be able to use LWP or Net::FTP to fetch tarballs, but > > it takes *forever* to figure this out before it drops to using vanilla > > ftp. > > It sounds as if vanilla FTP is configured to get around your > firewall/proxy setup, but Net::FTP and LWP might not be. Maybe? Specificly, Net::Config::NetConfig{ftp_ext_passive} and ftp_int_passive. Why Net::Config defaults to false for these is beyond me. You can control this without touching the Net::Config source code by setting the FTP_PASSIVE environment variable to 1, > Check out Net::Config, which is used with Net::FTP. Is there something > analogous with LWP? LWP probably just uses Net::Config. -- Michael G Schwern schwern@pobox.com http://www.pobox.com/~schwern/ Don't be a lover, girl, I'd like to shamelessly hump your inner child. From perl at sonofhans.net Wed Oct 29 22:43:50 2003 From: perl at sonofhans.net (Randall Hansen) Date: Mon Aug 2 21:34:25 2004 Subject: [Pdx-pm] unhappy CPAN on OS X In-Reply-To: <20031030015117.GB1624@localhost.comcast.net> References: <20332.130.94.160.138.1067475834.squirrel@webmail.pair.com> <20031030015117.GB1624@localhost.comcast.net> Message-ID: <20693.130.94.160.138.1067489030.squirrel@webmail.pair.com> schwern wrote: > You can control this without touching the Net::Config source code by > setting the FTP_PASSIVE environment variable to 1, sweet; that fixed it. thanks. lucky for me i installed all the developer tools and BSD stuff, just on general principles, so everything else works nicely. r From paull at peak.org Thu Oct 30 00:55:15 2003 From: paull at peak.org (paull@peak.org) Date: Mon Aug 2 21:34:25 2004 Subject: [Pdx-pm] Re: string function Message-ID: <33209.64.28.49.76.1067496915.squirrel@webmail.peak.org> Ward writes: > I'm having trouble thinking of a good way to compare two strings and > find out where they differ. > > For example, given: > > "abcdewxyz" > "abcvwxyz" > > I would like to find the number of matching characters starting from > the front or back of the strings. These would be, > > 3 match from the front > 4 match from the back A-Good-Way is in the eyes of the beholder. Converting 'abcdewxyz' into '^((?:a(?:b(?:c(?:d(?:e(?:w(?:x(?:y(?:z)?)?)?)?)?)?)?)?)?)' and '((?:(?:(?:(?:(?:(?:(?:(?:(?:a)?b)?c)?d)?e)?w)?x)?y)?z)?)$' will yield matches of the appropriate length. If you can amortize the cost of compiling a rex across many matches then perhaps this would even be a performer. It certainly has readability going for it. -pal From tex at off.org Thu Oct 30 02:52:16 2003 From: tex at off.org (Austin Schutz) Date: Mon Aug 2 21:34:25 2004 Subject: [Pdx-pm] unhappy CPAN on OS X In-Reply-To: <20031030015117.GB1624@localhost.comcast.net>; from schwern@pobox.com on Wed, Oct 29, 2003 at 05:51:18PM -0800 References: <20332.130.94.160.138.1067475834.squirrel@webmail.pair.com> <20031030015117.GB1624@localhost.comcast.net> Message-ID: <20031030005216.S24153@gblx.net> On Wed, Oct 29, 2003 at 05:51:18PM -0800, Michael G Schwern wrote: > On Wed, Oct 29, 2003 at 05:29:53PM -0800, Tom Phoenix wrote: > > > It appears to not be able to use LWP or Net::FTP to fetch tarballs, but > > > it takes *forever* to figure this out before it drops to using vanilla > > > ftp. > > > > It sounds as if vanilla FTP is configured to get around your > > firewall/proxy setup, but Net::FTP and LWP might not be. Maybe? > > Specificly, Net::Config::NetConfig{ftp_ext_passive} and ftp_int_passive. > Why Net::Config defaults to false for these is beyond me. > Some (aged) ftp servers don't support passive mode. Active mode is traditionally default. Well, you asked. Err, come to think of it, I guess you didn't. Austin