From whjackson at gmail.com Sat Mar 1 09:22:08 2008 From: whjackson at gmail.com (Whitney Jackson) Date: Sat, 1 Mar 2008 11:22:08 -0600 Subject: [Chicago-talk] Trouble compiling DBD::Oracle for Fedora core 8 In-Reply-To: <49d805d70802292106r33d19a0es75b4b9411f40ed5e@mail.gmail.com> References: <4E140ED1-7781-4248-8C52-370AF703390E@invisiblestreams.com> <49d805d70802292106r33d19a0es75b4b9411f40ed5e@mail.gmail.com> Message-ID: I tried building DBD::Oracle on a Fedora 8 box and it went pretty smoothly. Here's what I did: - Installed these rpms: oracle-instantclient-basic-11.1.0.1-1 oracle-instantclient-sqlplus-11.1.0.1-1 oracle-instantclient-devel-11.1.0.1-1 libaio-0.3.106-3.2 - From the untarred DBD-Oracle-1.20 dir: $ export LD_LIBRARY_PATH=/usr/lib/oracle/11.1.0.1/client/lib # so sqlplus can work $ perl Makefile.PL -m /usr/share/oracle/11.1.0.1/client/demo.mk -h /usr/include/oracle/11.1.0.1/client $ make *successful build output* A few things to note: - My box has all updates applied and is running perl-5.8.8. - I'm no Oracle expert but it seems like build information can be included in the .mk file. You may want to review the .mk file that is being used to ensure that any build information is correct. - I didn't run any tests since I don't have an Oracle server here. I just went as far as the successful build. Whitney From cmlong at invisiblestreams.com Mon Mar 3 10:39:42 2008 From: cmlong at invisiblestreams.com (chris long) Date: Mon, 3 Mar 2008 12:39:42 -0600 Subject: [Chicago-talk] Trouble compiling DBD::Oracle for Fedora core 8 In-Reply-To: References: <4E140ED1-7781-4248-8C52-370AF703390E@invisiblestreams.com> <49d805d70802292106r33d19a0es75b4b9411f40ed5e@mail.gmail.com> Message-ID: <11536512-630B-4D3E-945F-C84718E2F263@invisiblestreams.com> I followed your instructions. Make does seem to generate *successful build output*. However, when I try 'make test' or 'make install' I receive the same error output that I indicated in my first post, regarding "_crypt_struct' errors.. I also tried a test script to : use DBD::Oracle; The terminal replies: Can't locate DBD/Oracle.pm in @INC so doest that indicate that DBD:Oracle is not installed? Thanks-Chris On Mar 1, 2008, at 11:22 AM, Whitney Jackson wrote: > I tried building DBD::Oracle on a Fedora 8 box and it went pretty > smoothly. Here's what I did: > > - Installed these rpms: > > oracle-instantclient-basic-11.1.0.1-1 > oracle-instantclient-sqlplus-11.1.0.1-1 > oracle-instantclient-devel-11.1.0.1-1 > libaio-0.3.106-3.2 > > - From the untarred DBD-Oracle-1.20 dir: > > $ export LD_LIBRARY_PATH=/usr/lib/oracle/11.1.0.1/client/lib # so > sqlplus can work > $ perl Makefile.PL -m /usr/share/oracle/11.1.0.1/client/demo.mk -h > /usr/include/oracle/11.1.0.1/client > $ make > *successful build output* > > A few things to note: > > - My box has all updates applied and is running perl-5.8.8. > > - I'm no Oracle expert but it seems like build information can be > included in the .mk file. > You may want to review the .mk file that is being used to ensure > that any build information > is correct. > > - I didn't run any tests since I don't have an Oracle server here. I > just went as far as the > successful build. > > Whitney > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/chicago-talk/attachments/20080303/81e4db72/attachment.html From me at heyjay.com Mon Mar 3 13:39:46 2008 From: me at heyjay.com (Jay Strauss) Date: Mon, 3 Mar 2008 15:39:46 -0600 Subject: [Chicago-talk] [job ad: Perl Developer Description] Message-ID: I can't remember the protocol, nonetheless maybe someone is interested Love Jay ---------- Forwarded message ---------- From: Forman, Stephanie Date: Mon, Mar 3, 2008 at 2:53 PM Subject: Perl Developer Description Hey Jay, The description is below. Let me know if you know anyone. Thanks! The chosen candidate will join a committed and energetic software development team to: -Develop, maintain and enhance sites -Develop, test, implement and maintain application layer of web based applications -Design, develop and maintain HTML to be used in both site and email content Qualifications for the position: BA/BS degree in computer science, engineering or a related field or equivalent experience, a minimum of three years experience with the following technologies Perl, Oracle, HTML, JavaScript, shell scripting, Apache, mod_perl and a strong familiarity with UNIX/Linux. Required Skills / Qualifications: -5+ years of proven experience in designing, developing and deploying complex n-tier systems. -Proficiency in Perl / Mod-Perl is required -Experience developing and deploying under UNIX, especially Linux. -Experience with Perforce or other version control systems. -Strong business analysis experience. -Strong knowledge of Object Oriented Methodologies / Programming. -Demonstrated ability to ship quality products on time. -Enthusiasm for creating and evolving rational, effective, high-performance systems. -Strong research, investigation and evaluation skills. -Strong written and verbal communication skills. -Team lead experience is a plus, but not required -Bachelors degree in Computer Science or a related engineering field is preferred or equivalent experience. ____________________________________________ Stephanie Forman IT RECRUITER 111 N. CANAL SUITE 105, CHICAGO, IL 60606 T 312.474.5540 M 888.739.5870 F 312.879.1019 EMAIL: stforman at teksystems.com www.teksystems.com ____________________________________________ The greatest compliment to our business is a referral. If you know of someone within the IT or Communications industry who is looking for work, or who is hiring, TEKsystems can be of assistance. Please feel free to pass on our contact information. Thank You. ________________________________ This electronic mail (including any attachments) may contain information that is privileged, confidential, and/or otherwise protected from disclosure to anyone other than its intended recipient(s). Any dissemination or use of this electronic email or its contents (including any attachments) by persons other than the intended recipient(s) is strictly prohibited. If you have received this message in error, please notify us immediately by reply email so that we may correct our internal records. Please then delete the original message (including any attachments) in its entirety. Thank you. From me at heyjay.com Mon Mar 3 16:22:24 2008 From: me at heyjay.com (Jay Strauss) Date: Mon, 3 Mar 2008 18:22:24 -0600 Subject: [Chicago-talk] Trouble compiling DBD::Oracle for Fedora core 8 In-Reply-To: <11536512-630B-4D3E-945F-C84718E2F263@invisiblestreams.com> References: <4E140ED1-7781-4248-8C52-370AF703390E@invisiblestreams.com> <49d805d70802292106r33d19a0es75b4b9411f40ed5e@mail.gmail.com> <11536512-630B-4D3E-945F-C84718E2F263@invisiblestreams.com> Message-ID: First things first when working with DBD::Oracle. I know you installed the instant client, but have you tried connecting to Oracle with sqlplus? You need to get that working first, just by itself. Then once you can successfully connect, do the stuff like setting your PATH, and LD_LIBRARY_PATH, and in DBD::Oracle's case your ORACLE_USERID. I've done this many times (generally on some Debian family distro) and am willing to help. Jay On Mon, Mar 3, 2008 at 12:39 PM, chris long wrote: > I followed your instructions. Make does seem to generate *successful build > output*. However, when I try 'make test' or 'make install' I receive the > same error output that I indicated in my first post, regarding > "_crypt_struct' errors.. > > I also tried a test script to : > > > use DBD::Oracle; > > The terminal replies: > > Can't locate DBD/Oracle.pm in @INC > > so doest that indicate that DBD:Oracle is not installed? > > Thanks-Chris > > > > > On Mar 1, 2008, at 11:22 AM, Whitney Jackson wrote: > I tried building DBD::Oracle on a Fedora 8 box and it went pretty > smoothly. Here's what I did: > > - Installed these rpms: > > oracle-instantclient-basic-11.1.0.1-1 > oracle-instantclient-sqlplus-11.1.0.1-1 > oracle-instantclient-devel-11.1.0.1-1 > libaio-0.3.106-3.2 > > - From the untarred DBD-Oracle-1.20 dir: > > $ export LD_LIBRARY_PATH=/usr/lib/oracle/11.1.0.1/client/lib # so > sqlplus can work > $ perl Makefile.PL -m /usr/share/oracle/11.1.0.1/client/demo.mk -h > /usr/include/oracle/11.1.0.1/client > $ make > *successful build output* > > A few things to note: > > - My box has all updates applied and is running perl-5.8.8. > > - I'm no Oracle expert but it seems like build information can be > included in the .mk file. > You may want to review the .mk file that is being used to ensure > that any build information > is correct. > > - I didn't run any tests since I don't have an Oracle server here. I > just went as far as the > successful build. > > Whitney > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > > > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > From cmlong at invisiblestreams.com Tue Mar 4 13:40:56 2008 From: cmlong at invisiblestreams.com (chris long) Date: Tue, 4 Mar 2008 15:40:56 -0600 Subject: [Chicago-talk] Trouble compiling DBD::Oracle for Fedora core 8 In-Reply-To: References: <4E140ED1-7781-4248-8C52-370AF703390E@invisiblestreams.com> <49d805d70802292106r33d19a0es75b4b9411f40ed5e@mail.gmail.com> <11536512-630B-4D3E-945F-C84718E2F263@invisiblestreams.com> Message-ID: <0CA46A16-8EDF-4E0A-A759-73C73B7F4A00@invisiblestreams.com> Thanks for the replies Jay and Whitney, I was able to get things working. Once I exported the ORACLE_HOME environment variable, I was able to make and install successfully. I am now working with mod_perl and DBD::Oracle !! Cant thank you guys enough for your support. Chris On Mar 3, 2008, at 6:22 PM, Jay Strauss wrote: > First things first when working with DBD::Oracle. > > I know you installed the instant client, but have you tried connecting > to Oracle with sqlplus? You need to get that working first, just by > itself. > > Then once you can successfully connect, do the stuff like setting your > PATH, and LD_LIBRARY_PATH, and in DBD::Oracle's case your > ORACLE_USERID. > > I've done this many times (generally on some Debian family distro) and > am willing to help. > > Jay > > On Mon, Mar 3, 2008 at 12:39 PM, chris long > wrote: >> I followed your instructions. Make does seem to generate >> *successful build >> output*. However, when I try 'make test' or 'make install' I >> receive the >> same error output that I indicated in my first post, regarding >> "_crypt_struct' errors.. >> >> I also tried a test script to : >> >> >> use DBD::Oracle; >> >> The terminal replies: >> >> Can't locate DBD/Oracle.pm in @INC >> >> so doest that indicate that DBD:Oracle is not installed? >> >> Thanks-Chris >> >> >> >> >> On Mar 1, 2008, at 11:22 AM, Whitney Jackson wrote: >> I tried building DBD::Oracle on a Fedora 8 box and it went pretty >> smoothly. Here's what I did: >> >> - Installed these rpms: >> >> oracle-instantclient-basic-11.1.0.1-1 >> oracle-instantclient-sqlplus-11.1.0.1-1 >> oracle-instantclient-devel-11.1.0.1-1 >> libaio-0.3.106-3.2 >> >> - From the untarred DBD-Oracle-1.20 dir: >> >> $ export LD_LIBRARY_PATH=/usr/lib/oracle/11.1.0.1/client/lib # so >> sqlplus can work >> $ perl Makefile.PL -m /usr/share/oracle/11.1.0.1/client/demo.mk -h >> /usr/include/oracle/11.1.0.1/client >> $ make >> *successful build output* >> >> A few things to note: >> >> - My box has all updates applied and is running perl-5.8.8. >> >> - I'm no Oracle expert but it seems like build information can be >> included in the .mk file. >> You may want to review the .mk file that is being used to ensure >> that any build information >> is correct. >> >> - I didn't run any tests since I don't have an Oracle server here. I >> just went as far as the >> successful build. >> >> Whitney >> _______________________________________________ >> Chicago-talk mailing list >> Chicago-talk at pm.org >> http://mail.pm.org/mailman/listinfo/chicago-talk >> >> >> _______________________________________________ >> Chicago-talk mailing list >> Chicago-talk at pm.org >> http://mail.pm.org/mailman/listinfo/chicago-talk >> > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk From joshua.mcadams at gmail.com Wed Mar 5 18:55:43 2008 From: joshua.mcadams at gmail.com (Joshua McAdams) Date: Wed, 5 Mar 2008 20:55:43 -0600 Subject: [Chicago-talk] Flourish Message-ID: <49d805d70803051855u41cc43deg14cf9e26c8b4ea12@mail.gmail.com> I got Chicago.pm a booth at Flourish (http://www.flourishconf.com) so that we could promote the group(s) and promote YAPC a bit. Anyone interested in going to Flourish and talking Perl for a bit? The conference is free, and you don't need to register if all that you'll be doing is hanging out in the booth. From jason at froebe.net Thu Mar 6 14:13:09 2008 From: jason at froebe.net (Jason L. Froebe) Date: Thu, 6 Mar 2008 14:13:09 -0800 (PST) Subject: [Chicago-talk] Flourish Message-ID: <620229.52791.qm@web804.biz.mail.mud.yahoo.com> This is the first I've heard of it. I'll see what the boss (the wife) says. Jason L. Froebe WebBlog http://jfroebe.livejournal.com Tech log http://www.froebe.net/blog Froebe Fibers http://www.froebe-fibers.com ----- Original Message ---- From: Joshua McAdams To: Chicago.pm chatter ; windycity-pm Sent: Wednesday, March 5, 2008 8:55:43 PM Subject: [Chicago-talk] Flourish I got Chicago.pm a booth at Flourish (http://www.flourishconf.com) so that we could promote the group(s) and promote YAPC a bit. Anyone interested in going to Flourish and talking Perl for a bit? The conference is free, and you don't need to register if all that you'll be doing is hanging out in the booth. _______________________________________________ Chicago-talk mailing list Chicago-talk at pm.org http://mail.pm.org/mailman/listinfo/chicago-talk -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/chicago-talk/attachments/20080306/5148f6f8/attachment.html From joshua.mcadams at gmail.com Thu Mar 6 21:07:38 2008 From: joshua.mcadams at gmail.com (Joshua McAdams) Date: Thu, 6 Mar 2008 23:07:38 -0600 Subject: [Chicago-talk] Another round of classes Message-ID: <49d805d70803062107q15dd6800j73acf862452e92d0@mail.gmail.com> We are doing another round of open enrollment Perl training in downtown Chicago from April 14-18. The Hosteling International location seemed to work out well last time and has plenty of nearby transportation options and restaurants. Since these classes are held in a computer lab, you'll need to bring your own computer. If that's not an option for you, let me know and I'll try to wrangle up a spare or two. Though the courses are already discounted, we are cutting the price for Perl Mongers. Here are the rates: Day courses, 9am to 5pm --------------- Learning Perl, April 16-18, $750/person --> $700 for WindyCity.pm Catalyst, April 14-15, $500/person --> $450 for WindyCity.pm Night courses, 6pm to 9pm --------------- Test Driven Dev., April 14-15, $250/person --> $200 for WindyCity.pm For more details, see Stonehenge's open enrollment class page: http://www.stonehenge.com/open_enrollment.html Thanks, Josh From dave at obtiva.com Sun Mar 9 13:19:36 2008 From: dave at obtiva.com (Dave Hoover) Date: Sun, 9 Mar 2008 15:19:36 -0500 Subject: [Chicago-talk] Robust Shell Scripting using Bash 3.x In-Reply-To: <2379dacc0803091311l46b5eacu5b7c5bbc7ee5b0c6@mail.gmail.com> References: <2379dacc0803091311l46b5eacu5b7c5bbc7ee5b0c6@mail.gmail.com> Message-ID: <11c8704e0803091319v6e531fefne1c2e433e91ee4db@mail.gmail.com> Michael Potter has stepped up to talk about Bash at the meeting at IIT in Wheaton on Tuesday night. We'll likely be hearing more from Fred Polgardy about JavaScript in April. You can find directions at http://chicago.pm.org/meetings/#wheaton Robust Shell Scripting using Bash 3.x Tuesday March 11th 2008 Wheaton, Illinois Institute of Technology - Rice Campus, Room 103 ---------------- bash (and scripting languages in general) act as the glue that hold other system components together. This presentation will focus on the underutilized features of bash that are critical to building production quality scripts. Demos will show you how and why to turn these features on. Much of the bash syntax is redundant; I will also explain which syntax to use and which syntax to avoid. Knowledge of any of the common UNIX scripting languages will be sufficient to attend this meeting. ---------------- Michael has been working IT industry since 1989 when he switched from programming automotive embedded systems. Since that time he has been involved in projects related to moving mainframe applications to UNIX and Linux using opensource technologies. Projects have included a CICS emulater written in C, a source code control and configuration system built on top of cvs, a DFSORT like set of utilities that work similar to sed/grep/sort tools on unix, and a JCL to bash conversion scheme. You can reach Michael at michael at potter.name -- Dave Hoover //obtiva: Agility applied. Software delivered. From fasteliteprogrammer at yahoo.com Sun Mar 9 18:36:57 2008 From: fasteliteprogrammer at yahoo.com (Craig Petty) Date: Sun, 9 Mar 2008 18:36:57 -0700 (PDT) Subject: [Chicago-talk] Net::Pcap Prob Message-ID: <547355.38484.qm@web36501.mail.mud.yahoo.com> Here my error message.I useing Net::Pcap-0.14 oot at localhost Net-Pcap-0.16]# perl Makefile.PL looking for -lpcap... yes checking for pcap_lib_version() in -lpcap... yes detecting available functions... ok Writing Makefile for Net::Pcap [root at localhost Net-Pcap-0.16]# make cc -c -Wall -Wwrite-strings -O2 -DVERSION=\"0.16\" -DXS_VERSION=\"0.16\" -fP IC "-I/usr/local/lib/perl5/5.10.0/i686-linux-thread-multi/CORE" -DHAVE_BLANK -D HAVE_PCAP_LIB_VERSION -DHAVE_PCAP_BREAKLOOP -DHAVE_PCAP_COMPILE_NOPCAP -DHAVE_PC AP_DATALINK_NAME_TO_VAL -DHAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION -DHAVE_PCAP_DATA LINK_VAL_TO_NAME -DHAVE_PCAP_DUMP_FILE -DHAVE_PCAP_DUMP_FLUSH -DHAVE_PCAP_FINDAL LDEVS -DHAVE_PCAP_GETNONBLOCK -DHAVE_PCAP_GET_SELECTABLE_FD -DHAVE_PCAP_LIB_VERS ION -DHAVE_PCAP_NEXT_EX -DHAVE_PCAP_OPEN_DEAD -DHAVE_PCAP_SENDPACKET -DHAVE_PCAP _SETNONBLOCK -DHAVE_PCAP_SET_DATALINK Pcap.c In file included from Pcap.xs:43: stubs.inc:187:2: warning: #warning "the function pcap_list_datalinks() is not av ailable" stubs.inc:322:2: warning: #warning "the function pcap_createsrcstr() is not avai lable" stubs.inc:337:2: warning: #warning "the function pcap_parsesrcstr() is not avail able" stubs.inc:352:2: warning: #warning "the function pcap_open() is not available" stubs.inc:373:2: warning: #warning "the function pcap_setbuff() is not available " stubs.inc:388:2: warning: #warning "the function pcap_setuserbuffer() is not ava ilable" stubs.inc:403:2: warning: #warning "the function pcap_setmode() is not available " stubs.inc:418:2: warning: #warning "the function pcap_setmintocopy() is not avai lable" stubs.inc:433:2: warning: #warning "the function pcap_sendqueue_alloc() is not a vailable" stubs.inc:455:2: warning: #warning "the function pcap_sendqueue_destroy() is not available" stubs.inc:469:2: warning: #warning "the function pcap_sendqueue_queue() is not a vailable" stubs.inc:484:2: warning: #warning "the function pcap_sendqueue_transmit() is no t available" stubs.inc:499:2: warning: #warning "the function pcap_event() is not available" stubs.inc:514:2: warning: #warning "the function pcap_setsampling() is not avail able" Pcap.xs: In function ?callback_wrapper?: Pcap.xs:57: warning: pointer targets in passing argument 2 of ?Perl_newSVpv? dif fer in signedness Pcap.xs:62: warning: value computed is not used Pcap.xs:63: warning: value computed is not used Pcap.xs:64: warning: value computed is not used Pcap.xs:65: warning: value computed is not used Pcap.xs: In function ?XS_Net__Pcap_findalldevs_xs?: Pcap.xs:196: warning: value computed is not used Pcap.xs:199: warning: value computed is not used Pcap.xs:202: warning: value computed is not used Pcap.xs:220: warning: value computed is not used Pcap.xs:222: warning: value computed is not used Pcap.xs: In function ?XS_Net__Pcap_next?: Pcap.xs:447: warning: value computed is not used Pcap.xs:448: warning: value computed is not used Pcap.xs:449: warning: value computed is not used Pcap.xs:450: warning: value computed is not used Pcap.xs: In function ?XS_Net__Pcap_next_ex?: Pcap.xs:489: warning: value computed is not used Pcap.xs:490: warning: value computed is not used Pcap.xs:491: warning: value computed is not used Pcap.xs:492: warning: value computed is not used Pcap.xs:494: warning: pointer targets in passing argument 3 of ?Perl_sv_setpvn? differ in signedness Pcap.xs: In function ?XS_Net__Pcap_dump?: Pcap.xs:553: warning: pointer targets in passing argument 3 of ?pcap_dump? diffe r in signedness Pcap.c: In function ?XS_Net__Pcap_strerror?: Pcap.c:1572: warning: assignment discards qualifiers from pointer target type Pcap.xs: In function ?XS_Net__Pcap_stats?: Pcap.xs:742: warning: value computed is not used Pcap.xs:744: warning: value computed is not used Pcap.xs:746: warning: value computed is not used Pcap.xs: In function ?XS_Net__Pcap_sendpacket?: Pcap.xs:963: warning: pointer targets in passing argument 2 of ?pcap_sendpacket? differ in signedness Pcap.c: In function ?boot_Net__Pcap?: Pcap.c:2335: warning: initialization discards qualifiers from pointer target typ e Running Mkbootstrap for Net::Pcap () chmod 644 Pcap.bs rm -f blib/arch/auto/Net/Pcap/Pcap.so LD_RUN_PATH="/usr/lib" cc -shared -O2 -L/usr/local/lib Pcap.o -o blib/arch/aut o/Net/Pcap/Pcap.so \ -lpcap \ chmod 755 blib/arch/auto/Net/Pcap/Pcap.so cp Pcap.bs blib/arch/auto/Net/Pcap/Pcap.bs chmod 644 blib/arch/auto/Net/Pcap/Pcap.bs cp bin/pcapinfo blib/script/pcapinfo /usr/local/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/pcapinfo Manifying blib/man1/pcapinfo.1 Manifying blib/man3/Net::Pcap.3 make test PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00-load..................ok 1/1# Testing Net::Pcap 0.16 under Perl 5.010000 t/00-load..................ok t/01-api...................ok t/02-lookup................ok 23/45 skipped: various reasons t/03-openlive..............ok 4/14 skipped: various reasons t/04-loop..................ok 1/195 Does anyone know what is going on here with the errors? ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping From joshua.mcadams at gmail.com Sun Mar 9 19:52:26 2008 From: joshua.mcadams at gmail.com (Joshua McAdams) Date: Sun, 9 Mar 2008 21:52:26 -0500 Subject: [Chicago-talk] Net::Pcap Prob In-Reply-To: <547355.38484.qm@web36501.mail.mud.yahoo.com> References: <547355.38484.qm@web36501.mail.mud.yahoo.com> Message-ID: <49d805d70803091952v827c690nf313ae484d4d13cb@mail.gmail.com> > Does anyone know what is going on here with the errors? Looks like someone logged a similar issue on RT (http://rt.cpan.org/Public/Bug/Display.html?id=32839). I just glanced at the thread, but it looks like they tried installing older versions and also tried installing as root. From fasteliteprogrammer at yahoo.com Mon Mar 10 02:20:24 2008 From: fasteliteprogrammer at yahoo.com (Craig Petty) Date: Mon, 10 Mar 2008 02:20:24 -0700 (PDT) Subject: [Chicago-talk] Net::Pcap Prob In-Reply-To: <49d805d70803091952v827c690nf313ae484d4d13cb@mail.gmail.com> Message-ID: <280168.1752.qm@web36511.mail.mud.yahoo.com> That what i been doing.Is there a better tool on cpan make your own network sniffer then then Net:Pcap?I even try Net:Pcap with the same prob. --- Joshua McAdams wrote: > > Does anyone know what is going on here with the > errors? > > Looks like someone logged a similar issue on RT > (http://rt.cpan.org/Public/Bug/Display.html?id=32839). > I just glanced > at the thread, but it looks like they tried > installing older versions > and also tried installing as root. > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs From dave at obtiva.com Wed Mar 12 03:20:05 2008 From: dave at obtiva.com (Dave Hoover) Date: Wed, 12 Mar 2008 05:20:05 -0500 Subject: [Chicago-talk] Robust Shell Scripting using Bash 3.x In-Reply-To: <11c8704e0803091319v6e531fefne1c2e433e91ee4db@mail.gmail.com> References: <2379dacc0803091311l46b5eacu5b7c5bbc7ee5b0c6@mail.gmail.com> <11c8704e0803091319v6e531fefne1c2e433e91ee4db@mail.gmail.com> Message-ID: <11c8704e0803120320r1b3141c0n3f805fca454a6006@mail.gmail.com> Thank you Michael Potter for teaching us about the nooks and crannies of bash gotchas and best practices. For anyone who is interested in downloading the slides, visit http://tinyurl.com/34nhrd On Sun, Mar 9, 2008 at 3:19 PM, Dave Hoover wrote: > Michael Potter has stepped up to talk about Bash at the meeting at IIT > in Wheaton on Tuesday night. We'll likely be hearing more from Fred > Polgardy about JavaScript in April. > > You can find directions at http://chicago.pm.org/meetings/#wheaton > > > > > Robust Shell Scripting using Bash 3.x > > Tuesday March 11th 2008 > Wheaton, Illinois Institute of Technology - Rice Campus, Room 103 > > ---------------- > bash (and scripting languages in general) act as the glue that hold other > system components together. This presentation will focus on the underutilized > features of bash that are critical to building production quality scripts. > Demos will show you how and why to turn these features on. > > Much of the bash syntax is redundant; I will also explain which syntax > to use and which syntax to avoid. > > Knowledge of any of the common UNIX scripting languages will be sufficient > to attend this meeting. > ---------------- > > Michael has been working IT industry since 1989 when he > switched from programming automotive embedded systems. > > Since that time he has been involved in projects related > to moving mainframe applications to UNIX and Linux using > opensource technologies. Projects have included a CICS > emulater written in C, a source code control and configuration > system built on top of cvs, a DFSORT like set of utilities > that work similar to sed/grep/sort tools on unix, and > a JCL to bash conversion scheme. > > You can reach Michael at michael at potter.name > > -- > Dave Hoover > //obtiva: Agility applied. Software delivered. From Guangsheng.He at motorola.com Fri Mar 14 09:39:57 2008 From: Guangsheng.He at motorola.com (He Guangsheng-W16844) Date: Fri, 14 Mar 2008 12:39:57 -0400 Subject: [Chicago-talk] Is there a way to simplify including multiple .pm files? In-Reply-To: References: Message-ID: Good day. New to chicago.pm. I have a question: My scripts take a lot of constants, so I defined these constants in several ConstantVar.pm files and include them all. But more and more constant files coming, so I have to add one line 'use ...' to each of my scripts. Is there a better way to manage this? In C, we can make one header include a lot of headers, the only need to maintain changes for this one. Is that similar approach in Perl? Thanks. Joe From joshua.mcadams at gmail.com Fri Mar 14 11:09:56 2008 From: joshua.mcadams at gmail.com (Joshua McAdams) Date: Fri, 14 Mar 2008 13:09:56 -0500 Subject: [Chicago-talk] Is there a way to simplify including multiple .pm files? In-Reply-To: References: Message-ID: <49d805d70803141109y58ed7c8pdccc6ebbdf2bbdb2@mail.gmail.com> > In C, we can make one header include a lot of headers, the only need to > maintain changes for this one. Is that similar approach in Perl? This isn't exactly what you were looking for and I think that it uses source filters, but Toolkit might help out or at least give you some inspiration. http://search.cpan.org/~dconway/Toolkit-0.0.2/ From joshua.mcadams at gmail.com Fri Mar 14 11:20:25 2008 From: joshua.mcadams at gmail.com (Joshua McAdams) Date: Fri, 14 Mar 2008 13:20:25 -0500 Subject: [Chicago-talk] Is there a way to simplify including multiple .pm files? In-Reply-To: <49d805d70803141109y58ed7c8pdccc6ebbdf2bbdb2@mail.gmail.com> References: <49d805d70803141109y58ed7c8pdccc6ebbdf2bbdb2@mail.gmail.com> Message-ID: <49d805d70803141120w42be4967m33a4ea84768f91f2@mail.gmail.com> > http://search.cpan.org/~dconway/Toolkit-0.0.2/ Not sure if I like this solution either, but it works: --(0)> cat x.pl use warnings; use strict; use XY; print $variable_in_x, "\n"; print $variable_in_y, "\n"; --(0)> cat XY.pm package XY; use warnings; use strict; sub import { my ($caller) = caller; eval " package $caller; use X; use Y; 1; " or die $!; } 1; --(0)> cat X.pm package X; use warnings; use strict; our $variable_in_x = 'this came from X.pm'; our @EXPORT = qw($variable_in_x); use base 'Exporter'; 1; --(0)> cat Y.pm package Y; use warnings; use strict; our $variable_in_y = 'this came from Y.pm'; our @EXPORT = qw($variable_in_y); use base 'Exporter'; 1; From frag at ripco.com Fri Mar 14 11:48:37 2008 From: frag at ripco.com (Mike Fragassi) Date: Fri, 14 Mar 2008 13:48:37 -0500 (CDT) Subject: [Chicago-talk] Is there a way to simplify including multiple .pm files? In-Reply-To: References: Message-ID: On Fri, 14 Mar 2008, He Guangsheng-W16844 wrote: > Good day. > > New to chicago.pm. I have a question: > > My scripts take a lot of constants, so I defined these constants in > several ConstantVar.pm files and include them all. But more and more > constant files coming, so I have to add one line 'use ...' to each of > my scripts. Is there a better way to manage this? > > In C, we can make one header include a lot of headers, the only need to > maintain changes for this one. Is that similar approach in Perl? > This won't work with the standard Perl approach, i.e. using Exporter or Exporter::Lite; you'll still have to add 'use ...' to each script or package that needs the constants. If all your scripts really, truly need _all_ the constants from all the .pm files, and it doesn't make sense to dump them all into a single and possibly huge module, you would be better off creating one intermediary pm, that itself uses Exporter. This module could load all the .pm files with the constants, and then export all the constants via @EXPORT or %EXPORT_TAGS. Then, each script would just use this module, and get everything. When it comes time to add a new .pm, you add it in only one place, the new intermediary module, and not in each script. Alternatively, you can do the same kind of thing in an OO style: the intermediate module would give you an object, say $constants, with the other modules as parents via 'use base'. You'd call methods on this object to fetch constants from the parent classes. This avoids having to fiddle with Exporter variables, but if any of your constants are class variables, you will have to write methods to access them. -- Mike F. From jon-chicagotalk at jrock.us Fri Mar 14 13:32:58 2008 From: jon-chicagotalk at jrock.us (Jonathan Rockway) Date: Fri, 14 Mar 2008 15:32:58 -0500 Subject: [Chicago-talk] Is there a way to simplify including multiple .pm files? In-Reply-To: (chicago-talk-owner@pm.org's message of "Fri, 14 Mar 2008 13:29:44 -0700") References: Message-ID: <87wso5f3lx.fsf@bar.jrock.us> * On Fri, Mar 14 2008, He Guangsheng-W16844 wrote: > My scripts take a lot of constants, so I defined these constants in > several ConstantVar.pm files and include them all. But more and more > constant files coming, so I have to add one line 'use ...' to each of > my scripts. Is there a better way to manage this? How about: package Lots::Of::Module; my @modules = ( 'Carp qw/carp confess/', 'Path::Class qw/file dir/', ); sub import { my $caller = caller; eval "package $caller; use $_" for @modules; } Actually... you can do this without eval: package Lots::Of::Modules; use Carp qw/confess cluck/; # modules you want to use use Path::Class qw/file dir/; sub import { my $caller = caller; my $class = shift; *{ $caller. '::'. $_ } = \*{ $class. '::'. $_ } for grep { $_ !~ /(?:BEGIN|import)/ } keys %{ $class. '::' }; } In both cases, you do this: use Lots::Of::Module; confess; cluck; file; dir; # these were all imported Enjoy. Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$" From me at heyjay.com Fri Mar 14 14:06:14 2008 From: me at heyjay.com (Jay Strauss) Date: Fri, 14 Mar 2008 16:06:14 -0500 Subject: [Chicago-talk] Is there a way to simplify including multiple .pm files? In-Reply-To: <87wso5f3lx.fsf@bar.jrock.us> References: <87wso5f3lx.fsf@bar.jrock.us> Message-ID: Hi, Maybe I'm not following, but couldn't you use one of those "config" modules (like Config::General) I think they have provisions for including other config files. Jay From lembark at wrkhors.com Fri Mar 14 14:49:08 2008 From: lembark at wrkhors.com (Steven Lembark) Date: Fri, 14 Mar 2008 17:49:08 -0400 Subject: [Chicago-talk] Is there a way to simplify including multiple .pm files? In-Reply-To: References: Message-ID: <47DAF2D4.80405@wrkhors.com> > My scripts take a lot of constants, so I defined these constants in > several ConstantVar.pm files and include them all. But more and more > constant files coming, so I have to add one line 'use ...' to each of > my scripts. Is there a better way to manage this? > > In C, we can make one header include a lot of headers, the only need to > maintain changes for this one. Is that similar approach in Perl? This will install ANY list of modules into your caller's namespace, in this format it's intended to walk down a list and install them from the "Constants" namespace. # all of your groups of constants are in # Constants::Foo, etc, all of them can # just @EXPORT, whatever. the modules should # probably have an ':all' switch that exports # everything rather than putting it all into # @EXPORT but that's your call. package Constants::All; my @all_modules = qw ( These Those Foo Bar Bletch Blort ); sub import { my $caller = caller; # discard this package. what's left on # the stack is a list of constant modules # to process or nada, which gets them all. # # note that the arguments do not include # the "Constants::" prefix. shift if $_[0] eq __PACKAGE__; for my $module ( @_ ? @_ : @all_modules ) { substr $module, 0, 0, 'Constants::'; # lazy: if you don't want to type a # bunch of source lines then let # Perl do it for you! eval "package $caller; use $module"; # add'l checks for $@, etc, down here. } # avoid data leaks return } 1 __END__ -- Steven Lembark +1 888 359 3508 Workhorse Computing 85-09 90th St lembark at wrkhors.com Woodhaven, NY 11421 From lembark at wrkhors.com Fri Mar 14 14:50:25 2008 From: lembark at wrkhors.com (Steven Lembark) Date: Fri, 14 Mar 2008 17:50:25 -0400 Subject: [Chicago-talk] Is there a way to simplify including multiple .pm files? In-Reply-To: <87wso5f3lx.fsf@bar.jrock.us> References: <87wso5f3lx.fsf@bar.jrock.us> Message-ID: <47DAF321.4030206@wrkhors.com> > *{ $caller. '::'. $_ } = \*{ $class. '::'. $_ } > for grep { $_ !~ /(?:BEGIN|import)/ } keys %{ $class. '::' }; Look up Symbol's qualify_to_ref, it avoids having to dodge strict and is a helluva lot easeir to debug. -- Steven Lembark +1 888 359 3508 Workhorse Computing 85-09 90th St lembark at wrkhors.com Woodhaven, NY 11421 From merlyn at stonehenge.com Fri Mar 14 16:39:23 2008 From: merlyn at stonehenge.com (Randal L. Schwartz) Date: Fri, 14 Mar 2008 16:39:23 -0700 Subject: [Chicago-talk] Is there a way to simplify including multiple .pm files? In-Reply-To: (He Guangsheng-W's message of "Fri, 14 Mar 2008 12:39:57 -0400") References: Message-ID: <86zlt0zxhw.fsf@blue.stonehenge.com> >>>>> "He" == He Guangsheng-W16844 writes: He> My scripts take a lot of constants, so I defined these constants in He> several ConstantVar.pm files and include them all. This seems like a bad design to me. Why would more than one or two sections of your code need to know a bunch of constants? -- 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 d_tassone at yahoo.com Fri Mar 14 18:29:55 2008 From: d_tassone at yahoo.com (Domenico Tassone) Date: Fri, 14 Mar 2008 18:29:55 -0700 Subject: [Chicago-talk] Securing Pages/Files In-Reply-To: References: Message-ID: <023e01c8863c$1722b750$6c01a8c0@SABINA> Hi Folks, Does anybody have any suggestions for a way to use Perl to control access to dynamic pages AND files? Right now we control access to the pages using a cookie-based login system. However, I found that while I could prevent the pages with the link to files from being accessed, I could just cut and paste the URL in a browser. If it was just files, I'd use .htaccess but it's gotten a bit complex. Thx, Domenico From jon-chicagotalk at jrock.us Fri Mar 14 20:57:43 2008 From: jon-chicagotalk at jrock.us (Jonathan Rockway) Date: Fri, 14 Mar 2008 22:57:43 -0500 Subject: [Chicago-talk] Securing Pages/Files In-Reply-To: <87od9gej4f.fsf@bar.jrock.us> (Jonathan Rockway's message of "Fri, 14 Mar 2008 22:55:28 -0500") References: <023e01c8863c$1722b750$6c01a8c0@SABINA> <87od9gej4f.fsf@bar.jrock.us> Message-ID: <87ejacej0o.fsf@bar.jrock.us> Oh yeah, I forgot that I'm still banned. Time for another random address. ;) Here's what I meant to write: * On Fri, Mar 14 2008, Domenico Tassone wrote: > Hi Folks, > > Does anybody have any suggestions for a way to use Perl to control access to > dynamic pages AND files? I think you want to write an Authorization handler in mod_perl: http://perl.apache.org/docs/2.0/user/handlers/http.html#PerlAuthzHandler You write one of these, then put "PerlAuthzHandler Your::Handler" in your Location or Directory blocks. I assume. The docs have all the details. Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$" From brian.d.foy at gmail.com Fri Mar 14 23:04:56 2008 From: brian.d.foy at gmail.com (brian d foy) Date: Fri, 14 Mar 2008 20:04:56 -1000 Subject: [Chicago-talk] Is there a way to simplify including multiple .pm files? In-Reply-To: References: Message-ID: <2715accf0803142304o54f66096mf81411fc8e0413fa@mail.gmail.com> On Fri, Mar 14, 2008 at 6:39 AM, He Guangsheng-W16844 < Guangsheng.He at motorola.com> wrote: > In C, we can make one header include a lot of headers, the only need to > maintain changes for this one. Is that similar approach in Perl? The Exporter module has a special function for this situation. By using export_to_level() instead of import(), you can tell the module to export to levels above you. Here's a small module that requires Fcntl and Socket, each of which defines constants, and then exports the constants to the caller of Constants: package Constants; BEGIN { require Fcntl; require Socket; Fcntl->export_to_level( 1, '', qw(:flock) ); Socket->export_to_level( 1, '', qw(:DEFAULT :crlf) ); } 1; The BEGIN is important: you need the export to happen as soon as possible so Perl knows about the constants when it compiles the rest of the code. -- brian d foy http://www.pair.com/~comdog/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/chicago-talk/attachments/20080314/9fd8285a/attachment.html From Guangsheng.He at motorola.com Sun Mar 16 17:29:33 2008 From: Guangsheng.He at motorola.com (He Guangsheng-W16844) Date: Sun, 16 Mar 2008 20:29:33 -0400 Subject: [Chicago-talk] Is there a way to simplify including multiple .pm files? In-Reply-To: <86zlt0zxhw.fsf@blue.stonehenge.com> References: <86zlt0zxhw.fsf@blue.stonehenge.com> Message-ID: Thanks for all great replies. "TIMTOWTDI" - facts really speaks louder. Here is the background story to share, I am pretty sure you guys can come up some better ideas. I designed and coded one set of scripts for automating our platform releasing. Right now it covers build request checking, building, labeling, releasing, metrics generation, binaries building & releasing as well as other misc. tasks, and now working on SDK releasing too. So far it works perfectly, from historical reason, the scripts were started when only one product was supported. Later on, more and more products came, so I have to keep modify the config file. The users of these scripts have 0 or approx. 0 knowledge about Perl and I don't want to 'waste' time on config changes. To release this burden, I designed a constant .pm template and split the large config file to small pieces, whenever a new product comes or any changes to an existing product, the user needs to populate information to a new .pm file or modify existing .pm file. The benefit to use one .pm file for one product is, one user can screw up his own file only. Here comes the problem I was asking, they need to add 'using ....' to each of the scripts, which is really ugly to me. The OO approach looks more straightforward to me, designing a class with only one data members to hold all constants ... Joe -----Original Message----- From: Randal L. Schwartz [mailto:merlyn at stonehenge.com] Sent: Friday, March 14, 2008 6:39 PM To: He Guangsheng-W16844 Cc: chicago-talk at pm.org Subject: Re: [Chicago-talk] Is there a way to simplify including multiple .pm files? >>>>> "He" == He Guangsheng-W16844 writes: He> My scripts take a lot of constants, so I defined these constants in He> several ConstantVar.pm files and include them all. This seems like a bad design to me. Why would more than one or two sections of your code need to know a bunch of constants? -- 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 fasteliteprogrammer at yahoo.com Sun Mar 16 20:10:52 2008 From: fasteliteprogrammer at yahoo.com (Craig Petty) Date: Sun, 16 Mar 2008 20:10:52 -0700 (PDT) Subject: [Chicago-talk] perl conferences Message-ID: <320694.66664.qm@web36507.mail.mud.yahoo.com> Are there any more perl conferences in the windy city this summer? Craig ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping From joshua.mcadams at gmail.com Sun Mar 16 20:21:30 2008 From: joshua.mcadams at gmail.com (Joshua McAdams) Date: Sun, 16 Mar 2008 22:21:30 -0500 Subject: [Chicago-talk] perl conferences In-Reply-To: <320694.66664.qm@web36507.mail.mud.yahoo.com> References: <320694.66664.qm@web36507.mail.mud.yahoo.com> Message-ID: <49d805d70803162021v652b4cf3m6a5cc622015235c6@mail.gmail.com> > Are there any more perl conferences in the windy city > this summer? Absolutely, we're hosting YAPC::NA 2008 (http://yapc.org/America). Or did you mean other than that one? From frag at ripco.com Sun Mar 16 20:51:21 2008 From: frag at ripco.com (Mike Fragassi) Date: Sun, 16 Mar 2008 22:51:21 -0500 (CDT) Subject: [Chicago-talk] perl conferences In-Reply-To: <320694.66664.qm@web36507.mail.mud.yahoo.com> References: <320694.66664.qm@web36507.mail.mud.yahoo.com> Message-ID: On Sun, 16 Mar 2008, Craig Petty wrote: > > Are there any more perl conferences in the windy city > this summer? Besides YAPC, I think there'll be Stonehenge classes taught downtown sometime next month. -- Mike F. From fasteliteprogrammer at yahoo.com Mon Mar 17 03:10:01 2008 From: fasteliteprogrammer at yahoo.com (Craig Petty) Date: Mon, 17 Mar 2008 03:10:01 -0700 (PDT) Subject: [Chicago-talk] perl conferences In-Reply-To: <49d805d70803162021v652b4cf3m6a5cc622015235c6@mail.gmail.com> Message-ID: <716503.11848.qm@web36514.mail.mud.yahoo.com> Yes i mean the other one. --- Joshua McAdams wrote: > > Are there any more perl conferences in the windy > city > > this summer? > > Absolutely, we're hosting YAPC::NA 2008 > (http://yapc.org/America). Or > did you mean other than that one? > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ From fasteliteprogrammer at yahoo.com Mon Mar 17 08:17:45 2008 From: fasteliteprogrammer at yahoo.com (Craig Petty) Date: Mon, 17 Mar 2008 08:17:45 -0700 (PDT) Subject: [Chicago-talk] perl conferences Message-ID: <292770.54959.qm@web36507.mail.mud.yahoo.com> What going on with Chicago Perl Hackathon? --- Craig Petty wrote: > Yes i mean the other one. > > > > > > > --- Joshua McAdams wrote: > > > > Are there any more perl conferences in the > windy > > city > > > this summer? > > > > Absolutely, we're hosting YAPC::NA 2008 > > (http://yapc.org/America). Or > > did you mean other than that one? > > _______________________________________________ > > Chicago-talk mailing list > > Chicago-talk at pm.org > > http://mail.pm.org/mailman/listinfo/chicago-talk > > > > > > > ____________________________________________________________________________________ > Be a better friend, newshound, and > know-it-all with Yahoo! Mobile. Try it now. > http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ > > > ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ From joshua.mcadams at gmail.com Mon Mar 17 08:24:20 2008 From: joshua.mcadams at gmail.com (Joshua McAdams) Date: Mon, 17 Mar 2008 10:24:20 -0500 Subject: [Chicago-talk] perl conferences In-Reply-To: <292770.54959.qm@web36507.mail.mud.yahoo.com> References: <292770.54959.qm@web36507.mail.mud.yahoo.com> Message-ID: <49d805d70803170824y74b15c00mda9ec9cdbb187af4@mail.gmail.com> > What going on with Chicago Perl Hackathon? I'm not sure if there are any schedule at the moment, other than the one(s) directly before and after YAPC. From fasteliteprogrammer at yahoo.com Mon Mar 17 08:44:19 2008 From: fasteliteprogrammer at yahoo.com (Craig Petty) Date: Mon, 17 Mar 2008 08:44:19 -0700 (PDT) Subject: [Chicago-talk] perl conferences In-Reply-To: <49d805d70803170824y74b15c00mda9ec9cdbb187af4@mail.gmail.com> Message-ID: <945820.94093.qm@web36512.mail.mud.yahoo.com> That the one i want to go to:) --- Joshua McAdams wrote: > > What going on with Chicago Perl Hackathon? > > I'm not sure if there are any schedule at the > moment, other than the > one(s) directly before and after YAPC. > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs From fasteliteprogrammer at yahoo.com Mon Mar 17 09:01:38 2008 From: fasteliteprogrammer at yahoo.com (Craig Petty) Date: Mon, 17 Mar 2008 09:01:38 -0700 (PDT) Subject: [Chicago-talk] wireless application ideas Message-ID: <394576.44333.qm@web36503.mail.mud.yahoo.com> My question is there a good links on makeing a wireless sniffer on the net And has anyone made a wireless sniffer in perl before? I plan to use Net::pcap and socket and gtk2perl for the background. This is my first project i plan to work on. Craig ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ From joshua.mcadams at gmail.com Mon Mar 17 18:26:07 2008 From: joshua.mcadams at gmail.com (Joshua McAdams) Date: Mon, 17 Mar 2008 20:26:07 -0500 Subject: [Chicago-talk] wireless application ideas In-Reply-To: <394576.44333.qm@web36503.mail.mud.yahoo.com> References: <394576.44333.qm@web36503.mail.mud.yahoo.com> Message-ID: <49d805d70803171826r79456b3bjfcbcfbe08985e2e8@mail.gmail.com> > My question is there a good links on makeing a > wireless sniffer on the net And has anyone made a > wireless sniffer in perl before? I haven't... looks like there might be one that you can look at though: http://sourceforge.net/projects/wellenreiter/ From joshua.mcadams at gmail.com Tue Mar 18 19:13:16 2008 From: joshua.mcadams at gmail.com (Joshua McAdams) Date: Tue, 18 Mar 2008 21:13:16 -0500 Subject: [Chicago-talk] Meeting on the 25th Message-ID: <49d805d70803181913g765463bcieb98fd3abedef984@mail.gmail.com> Our regular meeting date is on the 25th. Has anyone already offered to give a presentation? From joshua.mcadams at gmail.com Wed Mar 19 21:29:07 2008 From: joshua.mcadams at gmail.com (Joshua McAdams) Date: Wed, 19 Mar 2008 23:29:07 -0500 Subject: [Chicago-talk] Chicago.pm Meeting Tuesday March 25th @ Performics Message-ID: <49d805d70803192129p4a42f015i3592be2358827d8@mail.gmail.com> I'm not sure if everyone has heard, but it is moose season here at Chicago.pm. Our next meeting, on March 25th 2008, will feature Jonathon Rockway talking about the Moose framework, an extension of the Perl 5 object system that makes OO programming in Perl easy, fast, compact, and fun. If you haven't RSVP'd for a Chicago.pm meeting for a while, you might want to send in an email to me, joshua dot mcadams at gmail dot com, so that you can easily get in the door. Also, we'll be doing a small amount of YAPC planning before and after the meeting. See you there, Josh McAdams From joshua.mcadams at gmail.com Wed Mar 19 21:33:06 2008 From: joshua.mcadams at gmail.com (Joshua McAdams) Date: Wed, 19 Mar 2008 23:33:06 -0500 Subject: [Chicago-talk] Summer of Perl -- call for student proposals In-Reply-To: <349627440803192112x2b5f2b8dv751d55336ec81468@mail.gmail.com> References: <349627440803192112x2b5f2b8dv751d55336ec81468@mail.gmail.com> Message-ID: <49d805d70803192133r2105879ha947721578659087@mail.gmail.com> Below is a Message from Eric Wilhelm regarding TPF's participation in Google's SOC #### The Perl Foundation is participating in Google's 2008 Summer of Code(tm) and we have a lot of capable, willing mentors looking forward to working with some talented, driven students. So, we would like you to help find those students (and quickly -- the students must apply before March 31st.) This is a rare opportunity for students to get a chance to get a paid summer of hacking on exciting projects like Parrot, Perl 6, Moose, Jifty, SVK, Catalyst, or their very own Perl modules or applications. It also brings new talent into the community and gives the student a hefty "real world" experience with a knowledgable mentor. Further, employers love to see this sort of demonstration of teamwork, handling deadlines, communication skills, resourcefulness and etc. We're looking for promising students who are interested in open source (or maybe you know someone who *should* be interested in open source.) Knowledge of Perl is optional if the project is Parrot-related. The student doesn't need to be an expert in the problem domain (after all, learning is part of the process), but should bring a big pile of creativity, problem-solving skills, and determination. Students should review the page of suggested projects, but are encouraged to bring their own proposals (those are often the best.) The most important first step is getting in touch with the community and discussing their project idea with potential mentors. http://www.perlfoundation.org/perl5/index.cgi?gsoc2008_projects Additional information and links can be found here. http://www.perlfoundation.org/perl5/index.cgi?gsoc2008 Google has posted some flyers if you happen to have a university bulletin board or hallway handy: http://code.google.com/p/google-summer-of-code/wiki/GsocFlyers Additional info: http://code.google.com/soc/2008/ http://code.google.com/soc/2008/faqs.html (Note that google has particular requirements to do with the fact that they are paying the students. The student must be able to show their eligibility regarding enrollment and employability.) Remember, the Perl community draws talent from many fields, so if you came to Perl from a non-computer-science major and still have contacts in that department from your university, it is probably worth mentioning to them. From frag at ripco.com Thu Mar 20 09:29:38 2008 From: frag at ripco.com (Mike Fragassi) Date: Thu, 20 Mar 2008 11:29:38 -0500 (CDT) Subject: [Chicago-talk] baby camel at Lincoln Park zoo Message-ID: http://chicagoist.com/2008/03/20/camel_calf_at_t.php -- Mike F. From joshua.mcadams at gmail.com Sat Mar 22 17:37:05 2008 From: joshua.mcadams at gmail.com (Joshua McAdams) Date: Sat, 22 Mar 2008 19:37:05 -0500 Subject: [Chicago-talk] Google Summer of Code Message-ID: <49d805d70803221737o4de0e37fw373716dcdfae9c6c@mail.gmail.com> I'm sure that we have some students on the list, so I want to send out a reminder that the Google Summer of Code is accepting applications from students starting this Monday and will only be accepting applications through the end of the month. This year, Perl got back in the game and is on the list of approved projects. Take this opportunity to get a little bit of cash ($5000) for doing Open Source work. More information can be found at http://use.perl.org/article.pl?sid=08/03/21/2237257 From joshua.mcadams at gmail.com Sat Mar 22 17:41:23 2008 From: joshua.mcadams at gmail.com (Joshua McAdams) Date: Sat, 22 Mar 2008 19:41:23 -0500 Subject: [Chicago-talk] Meeting Reminder Message-ID: <49d805d70803221741i464caec3n180898b084d2fcff@mail.gmail.com> The meeting topics got updated a bit, so I wanted to take the opportunity to send out another Perl Mongers meeting reminder for our meeting... When: Tuesday March 25th 2008 at 7pm Where: Performics Offices at 180 N La Salle on the 12th floor Topics: - Jon Rockway will be talking about the Moose object framework - Mike Fraggasi, who went to Pycon last week, will talk a little about what his experiences were at that conference See you all there, Josh From joshua.mcadams at gmail.com Sat Mar 22 17:44:17 2008 From: joshua.mcadams at gmail.com (Joshua McAdams) Date: Sat, 22 Mar 2008 19:44:17 -0500 Subject: [Chicago-talk] Meeting Reminder In-Reply-To: <49d805d70803221741i464caec3n180898b084d2fcff@mail.gmail.com> References: <49d805d70803221741i464caec3n180898b084d2fcff@mail.gmail.com> Message-ID: <49d805d70803221744m7c3e7939t51bdd800e4bb26aa@mail.gmail.com> One more thing... brian bought a bulk shipment of the new 'Catalyst' book out from Packt and I'll be brining a few copies to the meeting. If you want one, they are $25 each (price he paid), which is $15 less than what any of the book seller selling them for. On Sat, Mar 22, 2008 at 7:41 PM, Joshua McAdams wrote: > The meeting topics got updated a bit, so I wanted to take the > opportunity to send out another Perl Mongers meeting reminder for our > meeting... > > When: Tuesday March 25th 2008 at 7pm > Where: Performics Offices at 180 N La Salle on the 12th floor > Topics: > > - Jon Rockway will be talking about the Moose object framework > - Mike Fraggasi, who went to Pycon last week, will talk a little about > what his experiences were at that conference > > See you all there, > Josh > From brian.d.foy at gmail.com Sun Mar 23 04:09:38 2008 From: brian.d.foy at gmail.com (brian d foy) Date: Sun, 23 Mar 2008 06:09:38 -0500 Subject: [Chicago-talk] [WindyCity-pm] Meeting Reminder In-Reply-To: <49d805d70803221744m7c3e7939t51bdd800e4bb26aa@mail.gmail.com> References: <49d805d70803221741i464caec3n180898b084d2fcff@mail.gmail.com> <49d805d70803221744m7c3e7939t51bdd800e4bb26aa@mail.gmail.com> Message-ID: <2715accf0803230409w39935982w6df952337438c238@mail.gmail.com> On Sat, Mar 22, 2008 at 7:44 PM, Joshua McAdams wrote: > One more thing... brian bought a bulk shipment of the new 'Catalyst' > book out from Packt and I'll be brining a few copies to the meeting. > If you want one, they are $25 each (price he paid), which is $15 less > than what any of the book seller selling them for. I've also left Josh with several copies of "Extending and Embedding Perl" that Tim Jenness gave me last week. Josh will figure out how to give those out, but typically we've given first shot of the good stuff to people who give lightning talks. Otherwise, I'm going to miss all of the meetings until after YAPC::NA. I'm here for a couple weeks in April (don't forget our open enrollment Catalyst, Testing, and Learning Perl courses http://www.stonehenge.com/open_enrollment.html), then after that it's my European Tour. Some of that should show up on Perlcast. Going the other way, I set up a Slideshare group for Windy City (http://www.slideshare.net/group/windy-city-perl-mongers). Josh, Kent, and I have uploaded a bunch of talks. You can see them in the flash-y player without an account. If you give a talk, please upload them. If you don't want to make an account, send them to me and I'll upload them for you. I'm bummed that I'm going to miss Jon's Moose talk. :( From michael at potter.name Mon Mar 24 10:35:14 2008 From: michael at potter.name (Michael Potter) Date: Mon, 24 Mar 2008 12:35:14 -0500 Subject: [Chicago-talk] search utility Message-ID: <2379dacc0803241035o2f2debeau695d28bcf8eedc84@mail.gmail.com> Chicago Perl Mongers, I have a need for a very simple search engine for a directory of documents (pdf, html, ps, source code, xml, ...). The size is several GB of data. I am just guessing that there is a some perl module/program that will do this for me. That is: listen to a port for attachments from a browser, then serve out a page that has a text box to type a query string, then return links to the documents. I am hoping this has two parts: 1) a perl program that build an index, and 2) a perl program that is the server. If you guys tells me that this does not exist, then what modules would you recommend I look at and glue together to create such an animal. -- Michael Potter -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/chicago-talk/attachments/20080324/4f033f3a/attachment.html From Andy_Bach at wiwb.uscourts.gov Mon Mar 24 10:43:39 2008 From: Andy_Bach at wiwb.uscourts.gov (Andy_Bach at wiwb.uscourts.gov) Date: Mon, 24 Mar 2008 12:43:39 -0500 Subject: [Chicago-talk] search utility In-Reply-To: <2379dacc0803241035o2f2debeau695d28bcf8eedc84@mail.gmail.com> Message-ID: > I have a need for a very simple search engine for a directory of documents (pdf, html, ps, source code, xml, ...). The size is several GB of data. htdig is nice, htdig.org though not made of perl. But there's more to that process than just a couple of modules bolted together, I'd think. a ------------------- Andy Bach Systems Mangler Internet: andy_bach at wiwb.uscourts.gov Voice: (608) 261-5738 Fax: 264-5932 "It's true that I've driven through a number of red lights. But on the other hand, I've stopped at a lot of green ones I've never gotten credit for" Glen Gould From wiggins at danconia.org Mon Mar 24 11:14:07 2008 From: wiggins at danconia.org (Wiggins d'Anconia) Date: Mon, 24 Mar 2008 12:14:07 -0600 Subject: [Chicago-talk] search utility In-Reply-To: <2379dacc0803241035o2f2debeau695d28bcf8eedc84@mail.gmail.com> References: <2379dacc0803241035o2f2debeau695d28bcf8eedc84@mail.gmail.com> Message-ID: <47E7EF6F.4010901@danconia.org> Michael Potter wrote: > Chicago Perl Mongers, > > I have a need for a very simple search engine for a directory of documents > (pdf, html, ps, source code, xml, ...). The size is several GB of data. > > I am just guessing that there is a some perl module/program that will do > this for me. That is: listen to a port for attachments from a browser, then > serve out a page that has a text box to type a query string, then return > links to the documents. > > I am hoping this has two parts: > 1) a perl program that build an index, and > 2) a perl program that is the server. > > If you guys tells me that this does not exist, then what modules would you > recommend I look at and glue together to create such an animal. > See: http://swish-e.org/ http://danconia.org From andy at petdance.com Mon Mar 24 11:38:30 2008 From: andy at petdance.com (Andy Lester) Date: Mon, 24 Mar 2008 13:38:30 -0500 Subject: [Chicago-talk] search utility In-Reply-To: <47E7EF6F.4010901@danconia.org> References: <2379dacc0803241035o2f2debeau695d28bcf8eedc84@mail.gmail.com> <47E7EF6F.4010901@danconia.org> Message-ID: On Mar 24, 2008, at 1:14 PM, Wiggins d'Anconia wrote: > See: http://swish-e.org/ Also look into KinoSearch. -- Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance From frag at ripco.com Mon Mar 24 12:50:12 2008 From: frag at ripco.com (Mike Fragassi) Date: Mon, 24 Mar 2008 14:50:12 -0500 (CDT) Subject: [Chicago-talk] search utility In-Reply-To: References: <2379dacc0803241035o2f2debeau695d28bcf8eedc84@mail.gmail.com> <47E7EF6F.4010901@danconia.org> Message-ID: And there's plucene, a port of Java's Lucene: http://www.perl.com/pub/a/2004/02/19/plucene.html From andy at petdance.com Mon Mar 24 12:51:39 2008 From: andy at petdance.com (Andy Lester) Date: Mon, 24 Mar 2008 14:51:39 -0500 Subject: [Chicago-talk] search utility In-Reply-To: References: <2379dacc0803241035o2f2debeau695d28bcf8eedc84@mail.gmail.com> <47E7EF6F.4010901@danconia.org> Message-ID: <10CB5880-A99E-43C5-BCA9-6F00D5AEB7D9@petdance.com> On Mar 24, 2008, at 2:50 PM, Mike Fragassi wrote: > > And there's plucene, a port of Java's Lucene: > > http://www.perl.com/pub/a/2004/02/19/plucene.html Yes, but Plucene has nothing to recommend it other than happening to be pure Perl. It's VERY slow, so unless you can't compile C code, there's no reason to use it. xoxo, Andy -- Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance From jon-chicagotalk at jrock.us Mon Mar 24 17:47:05 2008 From: jon-chicagotalk at jrock.us (Jonathan Rockway) Date: Mon, 24 Mar 2008 19:47:05 -0500 Subject: [Chicago-talk] search utility In-Reply-To: <10CB5880-A99E-43C5-BCA9-6F00D5AEB7D9@petdance.com> (Andy Lester's message of "Mon, 24 Mar 2008 14:51:39 -0500") References: <2379dacc0803241035o2f2debeau695d28bcf8eedc84@mail.gmail.com> <47E7EF6F.4010901@danconia.org> <10CB5880-A99E-43C5-BCA9-6F00D5AEB7D9@petdance.com> Message-ID: <87prtjiq9i.fsf@bar.jrock.us> * On Mon, Mar 24 2008, Andy Lester wrote: > On Mar 24, 2008, at 2:50 PM, Mike Fragassi wrote: >> >> And there's plucene, a port of Java's Lucene: >> >> http://www.perl.com/pub/a/2004/02/19/plucene.html > > Yes, but Plucene has nothing to recommend it other than happening to > be pure Perl. It's VERY slow, so unless you can't compile C code, > there's no reason to use it. Yup, even the original author says not to use it. Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$" From frag at ripco.com Tue Mar 25 10:59:15 2008 From: frag at ripco.com (Mike Fragassi) Date: Tue, 25 Mar 2008 12:59:15 -0500 (CDT) Subject: [Chicago-talk] search utility In-Reply-To: <87prtjiq9i.fsf@bar.jrock.us> References: <2379dacc0803241035o2f2debeau695d28bcf8eedc84@mail.gmail.com> <47E7EF6F.4010901@danconia.org> <10CB5880-A99E-43C5-BCA9-6F00D5AEB7D9@petdance.com> <87prtjiq9i.fsf@bar.jrock.us> Message-ID: On Mon, 24 Mar 2008, Jonathan Rockway wrote: > Yup, even the original author says not to use it. Gah, where?? You'd think that would be in the POD or something. -- Mike F. From michael at potter.name Tue Mar 25 11:04:13 2008 From: michael at potter.name (Michael Potter) Date: Tue, 25 Mar 2008 13:04:13 -0500 Subject: [Chicago-talk] search utility In-Reply-To: References: <2379dacc0803241035o2f2debeau695d28bcf8eedc84@mail.gmail.com> <47E7EF6F.4010901@danconia.org> <10CB5880-A99E-43C5-BCA9-6F00D5AEB7D9@petdance.com> <87prtjiq9i.fsf@bar.jrock.us> Message-ID: <2379dacc0803251104i636fbab6g2fdc2236ccb5c04c@mail.gmail.com> Mike, I dont know about what the original author says, but here are some benchmarks: http://www.kinosearch.com/kinosearch/benchmarks.html On Tue, Mar 25, 2008 at 12:59 PM, Mike Fragassi wrote: > > > On Mon, 24 Mar 2008, Jonathan Rockway wrote: > > > Yup, even the original author says not to use it. > > Gah, where?? You'd think that would be in the POD or something. > > -- Mike F. > > > > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > From mikeferrari8 at yahoo.com Wed Mar 26 08:02:57 2008 From: mikeferrari8 at yahoo.com (Mike Ferrari) Date: Wed, 26 Mar 2008 10:02:57 -0500 Subject: [Chicago-talk] Regex and the whitespace before it. Message-ID: <40d606460803260802r13b76557h9a739d1086b41ecc@mail.gmail.com> Hi Everyone I want to thank everyone for the good discussion on this list recently, and Mike Fragassi for his help last year with XML::Parser. I have another stumper i am dealing with and need a little help. My regex skills are weak, but i am reading up on regex like a madman. I have data like this... Tree : This is a sentence, and a statement, about how great trees are. Sky : This, on the other hand, is something cool about the sky, sometimes blue, or not. AIR : AIR is sometime breathable or not depending on where you are BlueBirds : Are cool little birds with blue feathers. And it goes on and on.. maybe not with the cool summertime content.. but you get my drift.. essentially its .. subject : description of a subject. subject : description of a subject. subject : description of a subject. etc etc I need to parse this and break it out into individual strings so i can print it to a csv file for easy spreadsheet reading. subject : description of a subject. Sky : This, on the other hand, is something cool about the sky, sometimes blue, or not. I can split the data by : but that leaves the subject word "out" .. and the next subject word "in", .. not every description ends with a period either.. and commas and other junk are interspersed haphazardly in the description .. How can i split the string by the whitespace one word before the : ? I have been playing with $` but not getting what i need. Any ideas. Thanks Mike F -- /dev/mike0 http://www.mikeferrari.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/chicago-talk/attachments/20080326/9969bf71/attachment.html From imranjj at gmail.com Wed Mar 26 08:41:30 2008 From: imranjj at gmail.com (imran javaid) Date: Wed, 26 Mar 2008 10:41:30 -0500 Subject: [Chicago-talk] Regex and the whitespace before it. In-Reply-To: <40d606460803260802r13b76557h9a739d1086b41ecc@mail.gmail.com> References: <40d606460803260802r13b76557h9a739d1086b41ecc@mail.gmail.com> Message-ID: Assuming your subjects are unique, you can do this: my $data = "Tree : This is a sentence, and a statement, about how great trees are. Sky : This, on the other hand, is something cool about the sky, sometimes blue, or not. AIR : AIR is sometime breathable or not depending on where you are BlueBirds : Are cool little birds with blue feathers."; my %hash = (); %hash = ($data =~ m/(\w+)\s:\s(.*?)(?=(?:\w+\s:\s)|$)/g); -imran On 3/26/08, Mike Ferrari wrote: > Hi Everyone > > I want to thank everyone for the good discussion on this list recently, and > Mike Fragassi for his help last year with XML::Parser. > > I have another stumper i am dealing with and need a little help. My regex > skills are weak, but i am reading up on regex like a madman. > > I have data like this... > > Tree : This is a sentence, and a statement, about how great trees are. Sky : > This, on the other hand, is something cool about the sky, sometimes blue, or > not. AIR : AIR is sometime breathable or not depending on where you are > BlueBirds : Are cool little birds with blue feathers. > > And it goes on and on.. maybe not with the cool summertime content.. but you > get my drift.. essentially its .. > > subject : description of a subject. subject : description of a subject. > subject : description of a subject. etc etc > > I need to parse this and break it out into individual strings so i can print > it to a csv file for easy spreadsheet reading. > > subject : description of a subject. > Sky : This, on the other hand, is something cool about the sky, sometimes > blue, or not. > > I can split the data by : but that leaves the subject word "out" .. and the > next subject word "in", .. not every description ends with a period > either.. and commas and other junk are interspersed haphazardly in the > description .. > > How can i split the string by the whitespace one word before the : ? > > I have been playing with $` but not getting what i need. > > Any ideas. > > Thanks > Mike F > > > > -- > /dev/mike0 > > http://www.mikeferrari.com > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > From frag at ripco.com Wed Mar 26 10:24:59 2008 From: frag at ripco.com (Mike Fragassi) Date: Wed, 26 Mar 2008 12:24:59 -0500 (CDT) Subject: [Chicago-talk] Regex and the whitespace before it. In-Reply-To: <40d606460803260802r13b76557h9a739d1086b41ecc@mail.gmail.com> References: <40d606460803260802r13b76557h9a739d1086b41ecc@mail.gmail.com> Message-ID: Mike -- You're welcome for the help. Hopefully this will help with the current problem: split /(\w+)\s*:/ Capturing parentheses in the split regex will return that portion of the match in the output. my $string =< I think this is very close to what you want, except the first line of the output. -> cat tmp.txt Tree : This is a sentence, and a statement, about how great trees are. Sky : This, on the other hand, is something cool about the sky, sometimes blue, or not. AIR : AIR is sometime breathable or not depending on where you are BlueBirds : Are cool little birds with blue feathers. -> perl -072 -ne 's/\n/ /gms; s/(\S+)(\s*:\s*)$/"\n\1,"/; print ' tmp.txt " Tree," This is a sentence, and a statement, about how great trees are. " Sky," This, on the other hand, is something cool about the sky, sometimes blue, or not. " AIR," AIR is sometime breathable or not depending on where you are " ----- Original Message ---- From: Mike Ferrari To: Chicago.pm chatter Sent: Wednesday, March 26, 2008 10:02:57 AM Subject: [Chicago-talk] Regex and the whitespace before it. Hi Everyone I want to thank everyone for the good discussion onthis list recently, and Mike Fragassi for his help last year withXML::Parser. I have another stumper i am dealing with and need alittle help. My regex skills are weak, but i am reading up on regexlike a madman. I have data like this... Tree : This is a sentence, and astatement, about how great trees are. Sky : This, on the other hand, issomething cool about the sky, sometimes blue, or not. AIR : AIR issometime breathable or not depending on where you are BlueBirds : Arecool little birds with blue feathers. And it goes on and on.. maybe not with the cool summertime content.. but you get my drift.. essentially its .. subject : description of a subject. subject : description of a subject. subject : description of a subject. etc etc I need to parse this and break it out into individual strings so i can print it to a csv file for easy spreadsheet reading. subject : description of a subject. Sky : This, on the other hand, is something cool about the sky, sometimes blue, or not. I can split the data by : but that leaves the subject word "out" ..and the next subject word "in", .. not every description ends with aperiod either.. and commas and other junk are interspersed haphazardly in thedescription .. How can i split the string by the whitespace one word before the : ? I have been playing with $` but not getting what i need. Any ideas. Thanks Mike F -- /dev/mike0 http://www.mikeferrari.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/chicago-talk/attachments/20080326/57252afa/attachment.html From tigerpeng2001 at yahoo.com Wed Mar 26 10:58:24 2008 From: tigerpeng2001 at yahoo.com (tiger peng) Date: Wed, 26 Mar 2008 10:58:24 -0700 (PDT) Subject: [Chicago-talk] Regex and the whitespace before it. Message-ID: <785927.92486.qm@web58705.mail.re1.yahoo.com> add condition for remove the bad line: perl -072 -ne 'if ($. == 1){s/(\S+)(\s*:\s*)$/\1,"/; print} else {s/\n/ /gms; s/(\S+)(\s*:\s*)$/"\n\1,"/; print} ' tmp.txt ----- Original Message ---- From: tiger peng To: Chicago.pm chatter Sent: Wednesday, March 26, 2008 12:51:39 PM Subject: Re: [Chicago-talk] Regex and the whitespace before it. I think this is very close to what you want, except the first line of the output. -> cat tmp.txt Tree : This is a sentence, and a statement, about how great trees are. Sky : This, on the other hand, is something cool about the sky, sometimes blue, or not. AIR : AIR is sometime breathable or not depending on where you are BlueBirds : Are cool little birds with blue feathers. -> perl -072 -ne 's/\n/ /gms; s/(\S+)(\s*:\s*)$/"\n\1,"/; print ' tmp.txt " Tree," This is a sentence, and a statement, about how great trees are. " Sky," This, on the other hand, is something cool about the sky, sometimes blue, or not. " AIR," AIR is sometime breathable or not depending on where you are " ----- Original Message ---- From: Mike Ferrari To: Chicago.pm chatter Sent: Wednesday, March 26, 2008 10:02:57 AM Subject: [Chicago-talk] Regex and the whitespace before it. Hi Everyone I want to thank everyone for the good discussion onthis list recently, and Mike Fragassi for his help last year withXML::Parser. I have another stumper i am dealing with and need alittle help. My regex skills are weak, but i am reading up on regexlike a madman. I have data like this... Tree : This is a sentence, and astatement, about how great trees are. Sky : This, on the other hand, issomething cool about the sky, sometimes blue, or not. AIR : AIR issometime breathable or not depending on where you are BlueBirds : Arecool little birds with blue feathers. And it goes on and on.. maybe not with the cool summertime content.. but you get my drift.. essentially its .. subject : description of a subject. subject : description of a subject. subject : description of a subject. etc etc I need to parse this and break it out into individual strings so i can print it to a csv file for easy spreadsheet reading. subject : description of a subject. Sky : This, on the other hand, is something cool about the sky, sometimes blue, or not. I can split the data by : but that leaves the subject word "out" ..and the next subject word "in", .. not every description ends with aperiod either.. and commas and other junk are interspersed haphazardly in thedescription .. How can i split the string by the whitespace one word before the : ? I have been playing with $` but not getting what i need. Any ideas. Thanks Mike F -- /dev/mike0 http://www.mikeferrari.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/chicago-talk/attachments/20080326/5bfc3cd7/attachment-0001.html From tigerpeng2001 at yahoo.com Wed Mar 26 11:02:23 2008 From: tigerpeng2001 at yahoo.com (tiger peng) Date: Wed, 26 Mar 2008 11:02:23 -0700 (PDT) Subject: [Chicago-talk] Regex and the whitespace before it. Message-ID: <804059.52968.qm@web58701.mail.re1.yahoo.com> short version -> perl -072 -pe 'if ($. == 1){s/(\S+)(\s*:\s*)$/\1,"/} else {s/\n/ /gms; s/(\S+)(\s*:\s*)$/"\n\1,"/} ' tmp.txt ----- Original Message ---- From: tiger peng To: Chicago.pm chatter Sent: Wednesday, March 26, 2008 12:58:24 PM Subject: Re: [Chicago-talk] Regex and the whitespace before it. add condition for remove the bad line: perl -072 -ne 'if ($. == 1){s/(\S+)(\s*:\s*)$/\1,"/; print} else {s/\n/ /gms; s/(\S+)(\s*:\s*)$/"\n\1,"/; print} ' tmp.txt ----- Original Message ---- From: tiger peng To: Chicago.pm chatter Sent: Wednesday, March 26, 2008 12:51:39 PM Subject: Re: [Chicago-talk] Regex and the whitespace before it. I think this is very close to what you want, except the first line of the output. -> cat tmp.txt Tree : This is a sentence, and a statement, about how great trees are. Sky : This, on the other hand, is something cool about the sky, sometimes blue, or not. AIR : AIR is sometime breathable or not depending on where you are BlueBirds : Are cool little birds with blue feathers. -> perl -072 -ne 's/\n/ /gms; s/(\S+)(\s*:\s*)$/"\n\1,"/; print ' tmp.txt " Tree," This is a sentence, and a statement, about how great trees are. " Sky," This, on the other hand, is something cool about the sky, sometimes blue, or not. " AIR," AIR is sometime breathable or not depending on where you are " ----- Original Message ---- From: Mike Ferrari To: Chicago.pm chatter Sent: Wednesday, March 26, 2008 10:02:57 AM Subject: [Chicago-talk] Regex and the whitespace before it. Hi Everyone I want to thank everyone for the good discussion onthis list recently, and Mike Fragassi for his help last year withXML::Parser. I have another stumper i am dealing with and need alittle help. My regex skills are weak, but i am reading up on regexlike a madman. I have data like this... Tree : This is a sentence, and astatement, about how great trees are. Sky : This, on the other hand, issomething cool about the sky, sometimes blue, or not. AIR : AIR issometime breathable or not depending on where you are BlueBirds : Arecool little birds with blue feathers. And it goes on and on.. maybe not with the cool summertime content.. but you get my drift.. essentially its .. subject : description of a subject. subject : description of a subject. subject : description of a subject. etc etc I need to parse this and break it out into individual strings so i can print it to a csv file for easy spreadsheet reading. subject : description of a subject. Sky : This, on the other hand, is something cool about the sky, sometimes blue, or not. I can split the data by : but that leaves the subject word "out" ..and the next subject word "in", .. not every description ends with aperiod either.. and commas and other junk are interspersed haphazardly in thedescription .. How can i split the string by the whitespace one word before the : ? I have been playing with $` but not getting what i need. Any ideas. Thanks Mike F -- /dev/mike0 http://www.mikeferrari.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/chicago-talk/attachments/20080326/c11556a7/attachment.html From mikeferrari8 at yahoo.com Wed Mar 26 11:21:46 2008 From: mikeferrari8 at yahoo.com (Mike Ferrari) Date: Wed, 26 Mar 2008 13:21:46 -0500 Subject: [Chicago-talk] Regex and the whitespace before it. In-Reply-To: <40d606460803261119u19b0dda2h325f1e9f8392e7a4@mail.gmail.com> References: <40d606460803260802r13b76557h9a739d1086b41ecc@mail.gmail.com> <40d606460803261119u19b0dda2h325f1e9f8392e7a4@mail.gmail.com> Message-ID: <40d606460803261121n43286206m2626d4b5fe376a0@mail.gmail.com> Awesome, thanks for all your help everyone, i will try this stuff out tonight.. :-) when i see this.. " my @aa = map {s/\n//g;$_} split /(\w+)\s*:\s*/, $string; " my eyes glaze over.. sort of like Homer Simpson when he sees doughnuts.. hehehe Thanks Mike On Wed, Mar 26, 2008 at 1:19 PM, Mike Ferrari wrote: > Awesome, thanks for all your help everyone, i will try this stuff out > tonight.. :-) > > when i see this.. " my @aa = map {s/\n//g;$_} split /(\w+)\s*:\s*/, > $string; " > > my eyes glaze over.. sort of like Homer Simpson when he sees doughnuts.. > > hehehe > > Thanks > Mike > > > On Wed, Mar 26, 2008 at 12:24 PM, Mike Fragassi wrote: > > > > > Mike -- > > > > You're welcome for the help. Hopefully this will help with the current > > problem: > > > > split /(\w+)\s*:/ > > > > Capturing parentheses in the split regex will return that portion of > > the match in the output. > > > > my $string =< > subject1 : description of a subject. subject2 : description of a > > subject. > > subject3 : description of a subject. etc etc > > STRING > > my @aa = split /(\w+)\s*:\s*/, $string; > > $,="\n"; > > print @aa; > > > > Of course, this assumes that colons don't naturally occur in the > > descriptions, and that the subject is never more than one word. > > > > If your descriptions wrap across lines and you want to quickly get rid > > of the internal newlines, you can just put a map block between the = and > > the split, like this: > > > > my @aa = map {s/\n//g;$_} split /(\w+)\s*:\s*/, $string; > > > > -- Mike F. > > > > _______________________________________________ > > Chicago-talk mailing list > > Chicago-talk at pm.org > > http://mail.pm.org/mailman/listinfo/chicago-talk > > > > > > -- > /dev/mike0 > > http://www.mikeferrari.com > -- /dev/mike0 http://www.mikeferrari.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/chicago-talk/attachments/20080326/08a2dc0a/attachment.html From frag at ripco.com Wed Mar 26 11:54:11 2008 From: frag at ripco.com (Mike Fragassi) Date: Wed, 26 Mar 2008 13:54:11 -0500 (CDT) Subject: [Chicago-talk] Regex and the whitespace before it. In-Reply-To: <40d606460803261121n43286206m2626d4b5fe376a0@mail.gmail.com> References: <40d606460803260802r13b76557h9a739d1086b41ecc@mail.gmail.com> <40d606460803261119u19b0dda2h325f1e9f8392e7a4@mail.gmail.com> <40d606460803261121n43286206m2626d4b5fe376a0@mail.gmail.com> Message-ID: On Wed, 26 Mar 2008, Mike Ferrari wrote: > when i see this.. " my @aa = map {s/\n//g;$_} split /(\w+)\s*:\s*/, > $string; " > > my eyes glaze over.. sort of like Homer Simpson when he sees doughnuts.. Without using map, which is tricky, you could do it like this: my @aa = split /(\w+)\s*:\s*/, $string; for (@aa) { s/\n//g; } It's the same thing, really. -- Mike F. From lembark at wrkhors.com Wed Mar 26 13:22:08 2008 From: lembark at wrkhors.com (Steven Lembark) Date: Wed, 26 Mar 2008 16:22:08 -0400 Subject: [Chicago-talk] Regex and the whitespace before it. In-Reply-To: References: <40d606460803260802r13b76557h9a739d1086b41ecc@mail.gmail.com> Message-ID: <47EAB070.1010605@wrkhors.com> Mike Fragassi wrote: > Mike -- > > You're welcome for the help. Hopefully this will help with the current > problem: > > split /(\w+)\s*:/ > > Capturing parentheses in the split regex will return that portion of > the match in the output. > > my $string =< subject1 : description of a subject. subject2 : description of a subject. > subject3 : description of a subject. etc etc > STRING > my @aa = split /(\w+)\s*:\s*/, $string; > $,="\n"; > print @aa; If you can force the entries onto single lines then newlines become reasonable delimeters and you can break them up that way: for( split "\n", $string ) { my ( $subject, $contents ) = split m{ \s*:\s* }x, $_, 2; # whatever... push @found, [ $subjet, $contents ] } Otherwise, if the descriptions slop over then you know that subjects start at offset zero with word followed by optinal space and a colon: my $sub = ''; my $data = ''; for( split "\n", $string ) { if( ( $sub, $data ) = m{ ^ (\S+) \s+ : \s+ (.+) }x ) { push @found, [ $sub, $data ]; } else { $found[-1][-1] .= $_; } } If the stuff is aligned and delimted SOMEhow then you can use split, regexes, or index + substr to get the data out (that I can think of sitting here). If you can't even guarantee that the stuff is left- aligned or that extra colon char's won't appear in the data anywhere then you don't have delimited data and had better find a nice, solid AI parser that can correctly determine the grammitical context of the titles in order to pick them out. -- Steven Lembark +1 888 359 3508 Workhorse Computing 85-09 90th St lembark at wrkhors.com Woodhaven, NY 11421 From joshua.mcadams at gmail.com Mon Mar 31 21:28:25 2008 From: joshua.mcadams at gmail.com (Joshua McAdams) Date: Mon, 31 Mar 2008 23:28:25 -0500 Subject: [Chicago-talk] Chicago Perl Seminar Message-ID: <49d805d70803312128n7a1dfb19i6b0a7dfbdae80626@mail.gmail.com> In light of the recent DoubleClick and Google merger, the planning for the Chicago Perl Seminar is on hold (since DoubleClick was going to sponsor speaker travel). I'll keep you all updated if anything changes or if we want to try to find another sponsor or pull it off without a sponsor, I'll gladly help out. From joshua.mcadams at gmail.com Mon Mar 31 21:31:00 2008 From: joshua.mcadams at gmail.com (Joshua McAdams) Date: Mon, 31 Mar 2008 23:31:00 -0500 Subject: [Chicago-talk] Flourish Message-ID: <49d805d70803312131r382e518eqc9369efbb46a11a5@mail.gmail.com> I'm booked up Friday during Flourish (http://www.flourishconf.com) and will only be able to stand in at the Chicago.pm, ChiPy, Chicago Ruby Users booth Friday later in the day and Saturday. Will anyone be around the conference on Friday? Better yet, will anyone willing to man the booth or at least straighten up the handouts on occasion be available? Thanks, Josh