From shild at sbcglobal.net Sun Jan 2 11:55:47 2005 From: shild at sbcglobal.net (Scott T. Hildreth) Date: Sun Jan 2 11:55:37 2005 Subject: [Chicago-talk] OT wish.. Message-ID: <1104688547.551.2.camel@localhost> Hope everyone had a great Holiday. -- Scott T. Hildreth From shawn.c.carroll at gmail.com Mon Jan 3 11:31:21 2005 From: shawn.c.carroll at gmail.com (Shawn Carroll) Date: Mon Jan 3 11:31:24 2005 Subject: [Chicago-talk] Can the hoplites please send patches to Sean Burke? In-Reply-To: <20041231225459.GA8908@petdance.com> References: <20041231225459.GA8908@petdance.com> Message-ID: Has anyone done this yet? If not, I'll see if I can get svn to give me a patch this evening. On Fri, 31 Dec 2004 16:54:59 -0600, Andy Lester wrote: > I know that there's always more to do on Phalanx, but aren't there a > large number of changes that you guys have done that could get sent to > Sean Burke? It would be swell if he could incorporate them and get out > a new release. > > xoxo, > Andy > > -- > Andy Lester => andy@petdance.com => www.petdance.com => AIM:petdance > _______________________________________________ > Chicago-talk mailing list > Chicago-talk@mail.pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > -- shawn.c.carroll@gmail.com Perl Programmer Soccer Referee From andy at petdance.com Mon Jan 3 11:37:45 2005 From: andy at petdance.com (Andy Lester) Date: Mon Jan 3 11:37:47 2005 Subject: [Chicago-talk] Can the hoplites please send patches to Sean Burke? In-Reply-To: References: <20041231225459.GA8908@petdance.com> Message-ID: <20050103173745.GA25151@petdance.com> On Mon, Jan 03, 2005 at 11:31:21AM -0600, Shawn Carroll (shawn.c.carroll@gmail.com) wrote: > Has anyone done this yet? If not, I'll see if I can get svn to give > me a patch this evening. So far as I know, no. Please post to sburke at cpan.org, and here. Thanks, xoxo, Andy -- Andy Lester => andy@petdance.com => www.petdance.com => AIM:petdance From frag at ripco.com Mon Jan 3 15:56:55 2005 From: frag at ripco.com (Mike Fragassi) Date: Mon Jan 3 15:57:03 2005 Subject: [Chicago-talk] next meeting? Message-ID: If it's going to be tomorrow, I need to know ASAP. -- Mike F. From andy at petdance.com Mon Jan 3 16:01:57 2005 From: andy at petdance.com (Andy Lester) Date: Mon Jan 3 16:01:59 2005 Subject: [Chicago-talk] next meeting? In-Reply-To: References: Message-ID: <20050103220157.GC27514@petdance.com> On Mon, Jan 03, 2005 at 03:56:55PM -0600, Mike Fragassi (frag@ripco.com) wrote: > > If it's going to be tomorrow, I need to know ASAP. Nope, not tomorrow. -- Andy Lester => andy@petdance.com => www.petdance.com => AIM:petdance From shawn.c.carroll at gmail.com Mon Jan 3 19:29:01 2005 From: shawn.c.carroll at gmail.com (Shawn Carroll) Date: Mon Jan 3 21:10:51 2005 Subject: [Chicago-talk] Can the hoplites please send patches to Sean Burke? In-Reply-To: <20050103173745.GA25151@petdance.com> References: <20041231225459.GA8908@petdance.com> <20050103173745.GA25151@petdance.com> Message-ID: Okay, attached is a patch for HTML-Tree. It's a diff against 3.18, Sean please review for submission. Chi.pm: This was accomplished by a svn diff -r18:127 --old trunk I couldn't get svn to give a diff of \releases\3.18 and \trunk maybe someone else can show me the magic to accomplish that. --Shawn On Mon, 3 Jan 2005 11:37:45 -0600, Andy Lester wrote: > On Mon, Jan 03, 2005 at 11:31:21AM -0600, Shawn Carroll (shawn.c.carroll@gmail.com) wrote: > > Has anyone done this yet? If not, I'll see if I can get svn to give > > me a patch this evening. > > So far as I know, no. Please post to sburke at cpan.org, and here. > > Thanks, > xoxo, > Andy > > -- > Andy Lester => andy@petdance.com => www.petdance.com => AIM:petdance > _______________________________________________ > Chicago-talk mailing list > Chicago-talk@mail.pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > -- shawn.c.carroll@gmail.com Perl Programmer Soccer Referee -------------- next part -------------- A non-text attachment was scrubbed... Name: patch Type: application/octet-stream Size: 31847 bytes Desc: not available Url : http://mail.pm.org/pipermail/chicago-talk/attachments/20050103/e4a0959b/patch-0001.obj From flateyjarbok at yahoo.com Fri Jan 7 14:10:23 2005 From: flateyjarbok at yahoo.com (Richard Solberg) Date: Fri Jan 7 14:10:28 2005 Subject: [Chicago-talk] Reading PDF files In-Reply-To: <20041231225459.GA8908@petdance.com> Message-ID: <20050107201023.71325.qmail@web50506.mail.yahoo.com> Can anyone tell me if there are good modules for reading PDF files? I am thinking that there should be a way to get output from a PDF file like LWP when getting a webpage. From there I could extract data using regex. Or better yet if there are also modules that would work on a PDF and put data in table formats, something like the results from HTML::TableExtract. I have looked on CPAN for PDF::stuff and it none of it seems to do the above. There were things more like creating PDF files or copying several pages to a new PDF file. Any help appreciated. Rich Solberg __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From thomasoniii at gmail.com Fri Jan 7 14:15:48 2005 From: thomasoniii at gmail.com (Jim Thomason) Date: Fri Jan 7 14:15:51 2005 Subject: [Chicago-talk] Reading PDF files In-Reply-To: <20050107201023.71325.qmail@web50506.mail.yahoo.com> References: <20041231225459.GA8908@petdance.com> <20050107201023.71325.qmail@web50506.mail.yahoo.com> Message-ID: <5cfdfaf7050107121553b68474@mail.gmail.com> PDF::API2 is more or less the gold standard for perl PDF modules. The newer beta releases are production quality, so you can even use one of those. However, I don't know how much data you can get out of a pdf. AFAIK, there's no good way to get output from a PDF. PDF was long ago nicknamed the "roach motel" data format - data goes in, it doesn't come out. Adobe has supposedly been making strides to rectify that with the newer versions, but I haven't kept up on it. If anything can do it, it'd be PDF::API2. There's a mailing list specifically for it over on yahoo somewhere. I'd recommend asking over there. The author is also -highly- responsive to questions/suggestions/issues/etc. -Jim..... On Fri, 7 Jan 2005 12:10:23 -0800 (PST), Richard Solberg wrote: > Can anyone tell me if there are good modules for > reading PDF files? I am thinking that there should be > a way to get output from a PDF file like LWP when > getting a webpage. From there I could extract data > using regex. Or better yet if there are also modules > that would work on a PDF and put data in table > formats, something like the results from > HTML::TableExtract. > > I have looked on CPAN for PDF::stuff and it none of it > seems to do the above. There were things more like > creating PDF files or copying several pages to a new > PDF file. > > Any help appreciated. > > Rich Solberg > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > _______________________________________________ > Chicago-talk mailing list > Chicago-talk@mail.pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > From lembark at wrkhors.com Tue Jan 11 08:00:59 2005 From: lembark at wrkhors.com (Steven Lembark) Date: Tue Jan 11 08:02:30 2005 Subject: [Chicago-talk] Oddity in 5.8.5, anyone seen this before? Message-ID: Executing line 114 of the code fragment below seems to add keys into %$ident2id. Checking the defined operator, it should not be modifying its terms. All of the added keys (586001 - 528446 = 57555 of them) have undef values. DB<4> x scalar keys %$ident2id 0 528446 DB<5> x scalar grep { ! defined $ident2id->{$_} } keys %$ident2id 0 0 DB<6> l 114==> my @expire = grep { defined } @{$ident2id}{@gonnerz}; 115 116: $ident2id->{$_} = 0 for @expire; DB<6> c 116 Cognia::Taxid::Transform::delnodes(/sandbox/lembark/etl/ncbi-species/lib/Cognia/Taxid/Transform.pm:116): 116: $ident2id->{$_} = 0 for @expire; DB<7> x scalar keys %$ident2id 0 586001 -- Steven Lembark 85-09 90th Street Workhorse Computing Woodhaven, NY 11421 lembark@wrkhors.com 1 888 359 3508 From lembark at wrkhors.com Tue Jan 11 08:04:19 2005 From: lembark at wrkhors.com (Steven Lembark) Date: Tue Jan 11 08:05:42 2005 Subject: [Chicago-talk] PS: quick fix to grep { ! defined $a->{$_} } Message-ID: <86C189A42432A8C59E9A6E18@[192.168.200.4]> Map is, as always, your friend: my @expire = map { $ident2id->{$_} || () } @gonnerz; -- Steven Lembark 85-09 90th Street Workhorse Computing Woodhaven, NY 11421 lembark@wrkhors.com 1 888 359 3508 From easyasy2k at gmail.com Tue Jan 11 10:35:16 2005 From: easyasy2k at gmail.com (Leland Johnson) Date: Tue Jan 11 10:35:31 2005 Subject: [Chicago-talk] My accomplishment for 2004 - WWW::Mechanize in the new Google Hacks Message-ID: <2df270ef05011110351b1fb01a@mail.gmail.com> Well, I think the best book in the world is now _Google Hacks 2nd Edition_, despite Andy's claims to the contrary. You still should check out _Spidering Hacks_ though - it's really good. You can check out my new hack in the book, or download the hack from O'Reilly's website: http://www.oreilly.com/catalog/googlehks2/chapter/hack84.pdf You can download the code from my website, since copying it from the PDF is a real pain: http://protoplasmic.org/code/adwords_worth.pl.txt For those of you that are interested, a somewhat short development story (I've been writing too much lately) and tips on using WWW::Mechanize follow. Andy passed[1] the job to me back in October of 2004. I started work on it immediately, since I didn't want to do my schoolwork at the time. Here's a few things I discovered about WWW::Mechanize when fleshing out the hack: 'autocheck => 1' works quite well in hacks like this. It does not work well if your script must try its hardest to succeed. I used WWW::Mechanize::Shell to generate the code initially for the hack. I should have used HTTP::Recorder, but I've been using WWW::Mechanize since 2002 and I haven't figured out how to use the new fangled stuff yet. If the site your are interface with WWW::Mechanize contains javascript, keep an eye out for what it does. Sometimes it does something that your script doesn't and if you don't look at the javascript, you won't have a clue about why it is failing. If the javascript does form validation, check what happens when you send a blank/unchanged form or invalid input. If the site is smart, you won't have any real problems that you can't deal with a a line like 'die "X failed!" if $mech->content() =~ m/failed/i'. In my hack, Google handles the country page just fine without me having to touch the form, even though the javascript would complain if you did the same thing in a web browser. I still don't really know how I'd set a country. I ended up learning a lot about grep and map to filter the table that was on the final results page. If you want to be a perl expert, you should really learn when and how to use map and grep - they are very powerful. I sent my copy of the script off to Rael after I had tested it on 3 different platforms and 2 versions of perl. Both of our responses were something like "holy crap... it works". I had a scare for a while when my script stopped working - I thought maybe Google had decided to block the script and that it may not be published. If a script that uses WWW::Mechanize stops working, check a few things first: Did the website you are interfacing change? Is the website you are interfacing broken? Check both of these with a /real/ web browser, not WWW::Mechanize::Shell or lynx. In my case, Google's AdWords site was returning zeros for all keywords, no matter who or where you were. The site returned to normal in a day and my script still worked. If you are still interested, I wrote the code and Rael wrote the article. I mentioned some ideas for "Hacking the Hack" and how Crypt::SSLeay might be a problem for windows users, but that's about it for my contributions to the text of the hack. Anyways, I'm glad that it's all over. I am now a hundrediare and I get something actually computer related to put on my resum?. I want to thank Andy publicly for referring the job to me and helping me out with map and grep. I'd also like to note that you should try to resist sending inane comments about your development thus far to a client with instant messenger - I succumbed to that temptation. Luckily, my client was understanding. Thanks for reading the whole thing! I hope you got something out of it other than me tooting my own horn. 1. "A+++ WOULd take another referred job again!!!1!" It just goes to show you that most jobs come from personal contacts - just as Andy said in his "getting a job" presentation. I had even met Rael (in person) before this job at OSCON. -- Leland Johnson http://protoplasmic.org From me at heyjay.com Sun Jan 16 19:18:55 2005 From: me at heyjay.com (Jay Strauss) Date: Sun Jan 16 19:18:07 2005 Subject: [Chicago-talk] Can't install/compile Date::Calc Message-ID: <41EB2E9F.9090709@heyjay.com> Hi, I'm trying to install Date::Calc on a Debian "testing" box and I'm receiving: cp Calc.pm blib/lib/Date/Calc.pm /usr/bin/perl /usr/share/perl/5.8/ExtUtils/xsubpp -typemap /usr/share/perl/5.8/ExtUtils/typemap -typemap typemap Calc.xs > Calc.xsc && mv Calc.xsc Calc.c cc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"5.4\" -DXS_VERSION=\"5.4\" -fPIC "-I/usr/lib/perl/5.8/CORE" Calc.c cc: installation problem, cannot exec `cc1': No such file or directory make: *** [Calc.o] Error 1 /usr/bin/make -- NOT OK Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible Anyone have any suggestions of what I should do? (been a'googling to no avail) Thanks Jay From wjackson at laughingman.net Sun Jan 16 20:45:16 2005 From: wjackson at laughingman.net (Whitney Jackson) Date: Sun Jan 16 20:45:47 2005 Subject: [Chicago-talk] Can't install/compile Date::Calc In-Reply-To: <41EB2E9F.9090709@heyjay.com> References: <41EB2E9F.9090709@heyjay.com> Message-ID: <1105937116.10196.13.camel@pc326.laughingman.net> On my non-Debian system it looks like cc1 is part of the cpp package: $ rpm -qf /usr/libexec/gcc/i386-redhat-linux/3.4.2/cc1 cpp-3.4.2-6.fc3 Do you have the cpp package? Whitney On Sun, 2005-01-16 at 21:18 -0600, Jay Strauss wrote: > Hi, > > I'm trying to install Date::Calc on a Debian "testing" box and I'm > receiving: > > cp Calc.pm blib/lib/Date/Calc.pm > /usr/bin/perl /usr/share/perl/5.8/ExtUtils/xsubpp -typemap > /usr/share/perl/5.8/ExtUtils/typemap -typemap typemap Calc.xs > > Calc.xsc && mv Calc.xsc Calc.c > cc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN > -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE > -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"5.4\" -DXS_VERSION=\"5.4\" > -fPIC "-I/usr/lib/perl/5.8/CORE" Calc.c > cc: installation problem, cannot exec `cc1': No such file or directory > make: *** [Calc.o] Error 1 > /usr/bin/make -- NOT OK > Running make test > Can't test without successful make > Running make install > make had returned bad status, install seems impossible > > > Anyone have any suggestions of what I should do? (been a'googling to no > avail) > > Thanks > Jay > _______________________________________________ > Chicago-talk mailing list > Chicago-talk@pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk From me at heyjay.com Sun Jan 16 21:04:55 2005 From: me at heyjay.com (Jay Strauss) Date: Sun Jan 16 21:04:04 2005 Subject: [Chicago-talk] Can't install/compile Date::Calc In-Reply-To: <1105937116.10196.13.camel@pc326.laughingman.net> References: <41EB2E9F.9090709@heyjay.com> <1105937116.10196.13.camel@pc326.laughingman.net> Message-ID: <41EB4777.3090401@heyjay.com> Whitney Jackson wrote: > On my non-Debian system it looks like cc1 is part of the cpp package: > > $ rpm -qf /usr/libexec/gcc/i386-redhat-linux/3.4.2/cc1 > cpp-3.4.2-6.fc3 > > Do you have the cpp package? > > Whitney Thanks Whitney, Yeah I've got it installed, weirder part is it installs on (what I thought) was an identical system I'll continue messing with it Thank Jay From warren at warrenandrachel.com Mon Jan 17 07:17:43 2005 From: warren at warrenandrachel.com (warren@warrenandrachel.com) Date: Mon Jan 17 07:17:59 2005 Subject: [Chicago-talk] Can't install/compile Date::Calc In-Reply-To: <41EB4777.3090401@heyjay.com> References: <41EB2E9F.9090709@heyjay.com> <1105937116.10196.13.camel@pc326.laughingman.net> <41EB4777.3090401@heyjay.com> Message-ID: <59939.216.90.111.178.1105975063.squirrel@216.90.111.178> >From packages.debian.org, cc1 is installed as part of the gcc-2.95 package. If gcc cannot execute cc1, then you probably have some weird package problem. Can you compile other apps? > Whitney Jackson wrote: >> On my non-Debian system it looks like cc1 is part of the cpp package: >> >> $ rpm -qf /usr/libexec/gcc/i386-redhat-linux/3.4.2/cc1 >> cpp-3.4.2-6.fc3 >> >> Do you have the cpp package? >> >> Whitney > > Thanks Whitney, > > Yeah I've got it installed, weirder part is it installs on (what I > thought) was an identical system > > I'll continue messing with it > > Thank > Jay > _______________________________________________ > Chicago-talk mailing list > Chicago-talk@pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > > From Andy_Bach at wiwb.uscourts.gov Tue Jan 18 13:27:35 2005 From: Andy_Bach at wiwb.uscourts.gov (Andy_Bach@wiwb.uscourts.gov) Date: Tue Jan 18 13:30:43 2005 Subject: [Chicago-talk] An angry Andy Lester in the news? Message-ID: Info week's last page: http://www.informationweek.com/story/showArticle.jhtml?articleID=57300598 mentions a letter from Andy Lester: While Andy's opening sentence did a pretty good job of expectation-setting, I still somehow managed to disappoint: "I don't always expect computer journalism to be of the highest quality, but Bob Evans' column in the Dec. 20 issue of InformationWeek has turned into the print equivalent of a talk-radio show about spam, providing a non-critical platform for any old idea in the guise of public forum." a Andy Bach, Sys. Mangler Internet: andy_bach@wiwb.uscourts.gov VOICE: (608) 261-5738 FAX 264-5932 "Bugs happen. A bug is a test case you haven't written yet." Mark Pilgrim From andy at petdance.com Tue Jan 18 13:43:30 2005 From: andy at petdance.com (Andy Lester) Date: Tue Jan 18 13:43:40 2005 Subject: [Chicago-talk] An angry Andy Lester in the news? In-Reply-To: References: Message-ID: <20050118214330.GA21454@petdance.com> On Tue, Jan 18, 2005 at 03:27:35PM -0600, Andy_Bach@wiwb.uscourts.gov (Andy_Bach@wiwb.uscourts.gov) wrote: > Info week's last page: > http://www.informationweek.com/story/showArticle.jhtml?articleID=57300598 > > mentions a letter from Andy Lester: He never pointed back to my original blog entry at oreillynet: http://www.oreillynet.com/pub/wlg/6149 He did, however, offer me a column. xoxo, Andy -- Andy Lester => andy@petdance.com => www.petdance.com => AIM:petdance From thomasoniii at gmail.com Tue Jan 18 13:53:42 2005 From: thomasoniii at gmail.com (Jim Thomason) Date: Tue Jan 18 13:53:51 2005 Subject: [Chicago-talk] An angry Andy Lester in the news? In-Reply-To: <20050118214330.GA21454@petdance.com> References: <20050118214330.GA21454@petdance.com> Message-ID: <5cfdfaf705011813531831bf75@mail.gmail.com> "This Lester guy could be a problem. How do we deal with it?" "Let's whack him!" "No, no, too obvious. Let's make him one of us!" "I'll offer him a column immediately." -Jim..... On Tue, 18 Jan 2005 15:43:30 -0600, Andy Lester wrote: > On Tue, Jan 18, 2005 at 03:27:35PM -0600, Andy_Bach@wiwb.uscourts.gov (Andy_Bach@wiwb.uscourts.gov) wrote: > > Info week's last page: > > http://www.informationweek.com/story/showArticle.jhtml?articleID=57300598 > > > > mentions a letter from Andy Lester: > > He never pointed back to my original blog entry at oreillynet: > http://www.oreillynet.com/pub/wlg/6149 > > He did, however, offer me a column. > > xoxo, > Andy > > -- > Andy Lester => andy@petdance.com => www.petdance.com => AIM:petdance > _______________________________________________ > Chicago-talk mailing list > Chicago-talk@pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > From Andy_Bach at wiwb.uscourts.gov Tue Jan 18 13:58:19 2005 From: Andy_Bach at wiwb.uscourts.gov (Andy_Bach@wiwb.uscourts.gov) Date: Tue Jan 18 14:03:13 2005 Subject: [Chicago-talk] An angry Andy Lester in the news? In-Reply-To: <20050118214330.GA21454@petdance.com> Message-ID: He did actually, not that its obvious - the link under "resource-rich reply" goes there. Are you going to take the column offer? a Andy Bach, Sys. Mangler Internet: andy_bach@wiwb.uscourts.gov VOICE: (608) 261-5738 FAX 264-5932 "Bugs happen. A bug is a test case you haven't written yet." Mark Pilgrim From andy at petdance.com Tue Jan 18 14:22:16 2005 From: andy at petdance.com (Andy Lester) Date: Tue Jan 18 14:22:25 2005 Subject: [Chicago-talk] An angry Andy Lester in the news? In-Reply-To: References: <20050118214330.GA21454@petdance.com> Message-ID: <20050118222216.GA22117@petdance.com> On Tue, Jan 18, 2005 at 03:58:19PM -0600, Andy_Bach@wiwb.uscourts.gov (Andy_Bach@wiwb.uscourts.gov) wrote: > He did actually, not that its obvious - the link under "resource-rich > reply" goes there. > > Are you going to take the column offer? Not sure. We're discussing. -- Andy Lester => andy@petdance.com => www.petdance.com => AIM:petdance From easyasy2k at gmail.com Tue Jan 18 14:45:48 2005 From: easyasy2k at gmail.com (Leland Johnson) Date: Tue Jan 18 14:45:57 2005 Subject: [Chicago-talk] An angry Andy Lester in the news? In-Reply-To: References: Message-ID: <2df270ef05011814452de1b09f@mail.gmail.com> What, this isn't Hurricane Lester from a few months ago? He was pummeling Mexico... On Tue, 18 Jan 2005 15:27:35 -0600, Andy_Bach@wiwb.uscourts.gov wrote: > Info week's last page: > http://www.informationweek.com/story/showArticle.jhtml?articleID=57300598 > > mentions a letter from Andy Lester: > While Andy's opening sentence did a pretty good job of > expectation-setting, I still somehow managed to disappoint: "I don't > always expect computer journalism to be of the highest quality, but Bob > Evans' column in the Dec. 20 issue of InformationWeek has turned into the > print equivalent of a talk-radio show about spam, providing a non-critical > platform for any old idea in the guise of public forum." > > a > > Andy Bach, Sys. Mangler > Internet: andy_bach@wiwb.uscourts.gov > VOICE: (608) 261-5738 FAX 264-5932 > > "Bugs happen. A bug is a test case you haven't written yet." > Mark Pilgrim > _______________________________________________ > Chicago-talk mailing list > Chicago-talk@pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > -- Leland Johnson http://protoplasmic.org From andy at petdance.com Wed Jan 19 13:14:53 2005 From: andy at petdance.com (Andy Lester) Date: Wed Jan 19 13:15:01 2005 Subject: [Chicago-talk] What's next for Chicago.PM? Message-ID: <20050119211453.GC4736@petdance.com> I heard some rumblings about there being February content, but no details. I wanted to pull together a just-social gathering, but didn't do that. Anyone else got anything? Place? Content? It's hard for me to coordinate nothing. :-) xoxo, Andy -- Andy Lester => andy@petdance.com => www.petdance.com => AIM:petdance From andy at petdance.com Fri Jan 21 09:11:44 2005 From: andy at petdance.com (Andy Lester) Date: Fri Jan 21 09:11:53 2005 Subject: [Chicago-talk] Phalanx article on perl.com Message-ID: <20050121171144.GD6345@petdance.com> There's an article on Phalanx on perl.com. http://www.perl.com/pub/a/2005/01/13/phalanx.html xoa -- Andy Lester => andy@petdance.com => www.petdance.com => AIM:petdance From jason at multiply.org Fri Jan 21 16:38:37 2005 From: jason at multiply.org (Jason Gessner) Date: Fri Jan 21 16:38:47 2005 Subject: [Chicago-talk] What's next for Chicago.PM? In-Reply-To: <20050119211453.GC4736@petdance.com> References: <20050119211453.GC4736@petdance.com> Message-ID: On Jan 19, 2005, at 3:14 PM, Andy Lester wrote: > I heard some rumblings about there being February content, but no > details. I wanted to pull together a just-social gathering, but didn't > do that. > > Anyone else got anything? Place? Content? It's hard for me to > coordinate nothing. :-) > I am working on a corporate space downtown. My company is moving so the room is not actually finished being constructed yet. :) Our CTO is helping me work out the details, but hopefully everything comes together for march. Our new floor will be finished next week, but not everything will be settled for an early february meeting. I will keep the list posted about location. -jason gessner jason@multiply.org From me at heyjay.com Fri Jan 21 22:01:56 2005 From: me at heyjay.com (Jay Strauss) Date: Sat Jan 22 11:27:54 2005 Subject: [Chicago-talk] Proper encapsulation Message-ID: <41F1EC54.4010400@heyjay.com> Hi, I'm using Class::Accessor, it provides a method ->mk_accessors (which ironically creates setters and getters for your class). Anyway, I think typically you'd invoke this from the class, but you can do it from the code that instatiates the class. Like: #!/usr/bin/perl use 5.006; use strict; use warnings; package SomeClass; use base qw/Class::Accessor/; package main; SomeClass->mk_accessors(qw/cache/); my $o = SomeClass->new; $o->cache("data"); print $o->cache,"\n"; My question is: does creating the accessors from outside the class violate OO principles, or is acceptable since the functionality is provided? Thanks Jay From thomasoniii at gmail.com Sat Jan 22 11:54:38 2005 From: thomasoniii at gmail.com (Jim Thomason) Date: Sat Jan 22 11:54:50 2005 Subject: [Chicago-talk] Proper encapsulation In-Reply-To: <41F1EC54.4010400@heyjay.com> References: <41F1EC54.4010400@heyjay.com> Message-ID: <5cfdfaf7050122115435f04a2@mail.gmail.com> It completely 100% utterly totally absolutely violates encapsulation. Attributes should be defined within the class period, end of discussion. Think about it - if you're defining attributes outside of the class, then they're not really encapsulated inside anything, are they? :-) Now then, there are still some novel things that can be done with defining attributes outside of the class, so I'm not going to discourage them completely because there is reason to do it. I would probably frown upon it, though, but I can be persuaded of its uses. And hey, this is perl, we can play fast and loose with the rules. But if you know what the attributes are going to be in advance (and 99.9% of the time you will) and you don't want to add new ones (and 99.9% of the tiem you won't), you should always define them in advance inside the class. -Jim.... On Sat, 22 Jan 2005 00:01:56 -0600, Jay Strauss wrote: > Hi, I'm using Class::Accessor, it provides a method ->mk_accessors > (which ironically creates setters and getters for your class). Anyway, > I think typically you'd invoke this from the class, but you can do it > from the code that instatiates the class. > > Like: > > #!/usr/bin/perl > > use 5.006; > use strict; > use warnings; > > package SomeClass; > > use base qw/Class::Accessor/; > > package main; > > SomeClass->mk_accessors(qw/cache/); > > my $o = SomeClass->new; > $o->cache("data"); > > print $o->cache,"\n"; > > My question is: does creating the accessors from outside the class > violate OO principles, or is acceptable since the functionality is provided? > > Thanks > Jay > _______________________________________________ > Chicago-talk mailing list > Chicago-talk@pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > From me at heyjay.com Sat Jan 22 19:07:04 2005 From: me at heyjay.com (Jay Strauss) Date: Sat Jan 22 19:06:24 2005 Subject: [Chicago-talk] Proper encapsulation In-Reply-To: <5cfdfaf7050122115435f04a2@mail.gmail.com> References: <41F1EC54.4010400@heyjay.com> <5cfdfaf7050122115435f04a2@mail.gmail.com> Message-ID: <41F314D8.6070805@heyjay.com> Jim Thomason wrote: > It completely 100% utterly totally absolutely violates encapsulation. > Attributes should be defined within the class period, end of > discussion. Think about it - if you're defining attributes outside of > the class, then they're not really encapsulated inside anything, are > they? :-) > > Now then, there are still some novel things that can be done with > defining attributes outside of the class, so I'm not going to > discourage them completely because there is reason to do it. I would > probably frown upon it, though, but I can be persuaded of its uses. > And hey, this is perl, we can play fast and loose with the rules. > > But if you know what the attributes are going to be in advance (and > 99.9% of the time you will) and you don't want to add new ones (and > 99.9% of the tiem you won't), you should always define them in advance > inside the class. > > -Jim.... > Ok, thanks Jay From andy at petdance.com Sat Jan 22 19:47:11 2005 From: andy at petdance.com (Andy Lester) Date: Sat Jan 22 19:47:20 2005 Subject: [Chicago-talk] Leland's book is on the shelves Message-ID: <20050123034710.GA22795@petdance.com> Google Hacks, 2nd edition is on the shelves at Borders. It's got the little bio of Leland and everything. I should be getting a copy to give away at the next meeting. Whoo! xoa -- Andy Lester => andy@petdance.com => www.petdance.com => AIM:petdance From andy at petdance.com Mon Jan 24 07:36:14 2005 From: andy at petdance.com (Andy Lester) Date: Mon Jan 24 07:36:25 2005 Subject: [Chicago-talk] YAPC::NA 2005 Call For Papers Message-ID: <20050124153614.GA21736@petdance.com> [This is reposted from the YAPC site. I encourage anyone interested to get their submissions in. It's a great way to get started speaking. -- Andy] YAPC::NA 2005 (Yet Another Perl Conference, North America) has just released its call-for-papers; potential and aspiring speakers can submit a presentation proposal via: http://yapc.org/America/cfp-2005.shtml The dates of the conference are Monday - Wednesday 27-29 June 2005. The location will be in downtown Toronto, Ontario, Canada. (Note that a different date block was previously announced, but has been moved to accomodate venue availability.) The close of the call-for-papers is April 18, 2005 at 11:59 pm. If you have any questions regarding the call-for-papers or speaking at YAPC::NA 2005 please email na-author@yapc.org We would love to hear from potential sponsors. Please contact the organizers at na-sponsor@yapc.org to learn about the benefits of sponsorship. Other information regarding the conference (e.g. venue, registration specifics) will be announced soon. We look forward to your submissions and a great conference! -- Andy Lester => andy@petdance.com => www.petdance.com => AIM:petdance From richard at rushlogistics.com Wed Jan 26 11:40:48 2005 From: richard at rushlogistics.com (Richard Reina) Date: Wed Jan 26 11:41:02 2005 Subject: [Chicago-talk] CRON Jobs for the paranoid Message-ID: <20050126194048.12864.qmail@web202.biz.mail.re2.yahoo.com> Due to lack of trust my office network is not hooked up to the internet. This means I (if I remeber) manually set the time on ntp server once per week so that the other computers can get the correct time. I am cosidering writing a short perl script that when executed askes me for the time and resets the time on the ntp server. However, if I have cron execute the script how can interrupt (get my attention) whatever I am doing when I am logged in. Any suggestions are appreceiated. Thanks, Richard. From warren at warrenandrachel.com Wed Jan 26 14:07:34 2005 From: warren at warrenandrachel.com (Warren Smith) Date: Wed Jan 26 14:07:52 2005 Subject: [Chicago-talk] CRON Jobs for the paranoid In-Reply-To: <20050126194048.12864.qmail@web202.biz.mail.re2.yahoo.com> References: <20050126194048.12864.qmail@web202.biz.mail.re2.yahoo.com> Message-ID: <41F814A6.9040909@warrenandrachel.com> Scenario A -- This is a desktop machine running X Generally, X is run on display :0.0 of localhost. So, in your crontab script, you can set DISPLAY=:0.0 and do things normally. However, with most X distributions, local security is enabled, so you would have to run xhost +localhost when you start X -- either by configuring your desktop environment or putting it in .Xsession. Scenario B -- This is a server machine without X If you are the sole user, you can have your crontab script execute wall, which will broadcast a message to all users. Otherwise, you can use write to accomplish amore directed approach, but write gets confused if you are logged in more than once. Richard Reina wrote: >Due to lack of trust my office network is not hooked >up to the internet. This means I (if I remeber) >manually set the time on ntp server once per week so >that the other computers can get the correct time. I >am cosidering writing a short perl script that when >executed askes me for the time and resets the time on >the ntp server. However, if I have cron execute the >script how can interrupt (get my attention) whatever I >am doing when I am logged in. > >Any suggestions are appreceiated. > >Thanks, Richard. >_______________________________________________ >Chicago-talk mailing list >Chicago-talk@pm.org >http://mail.pm.org/mailman/listinfo/chicago-talk > > >