From lembark at wrkhors.com Thu Apr 1 01:58:03 2004 From: lembark at wrkhors.com (Steven Lembark) Date: Mon Aug 2 21:28:10 2004 Subject: [Chicago-talk] Sendmail Cookbook review Message-ID: <29220000.1080806283@[192.168.200.3]> sendmail Cookbook [notypo: "s"] Craig Hunt O'Reilly Press, 2004 Summary: Nice book. More? Ok... If anyone else has read the "bat book" they'll appreciate this one; anyone who enjoyed it can stop reading this now. sendmail's flexability makes it a wonderful tool when it works right. Getting it there can be serious hike in the manuals. The m4 configuration system made things a whole lot better, but the number of options can easily be confusing. Instead of trying to describe sendmail's capabilities, Craig Hunt starts with what you want it to do and how to get there. The "recepies" begin with a situation: you want to have all the mail sent through a server, management wants the sales people immune from spam filtering, LDAP is the company standard for user ID's. Each situation is followed by a short description of how to get there using the m4 configuration options. After the quick-and-dirty portion is a pratical discussion of what the configuration section does, more-or-less how it works, and (best of all) how to test it. The whole book is arranged this way into a series of vingettes, each group getting further into the details of how sendmail is set up. Early chapters deal with how to configure and install sendmail, what the basic files are for, and simple tests. Further in are issues of masquerading, envelope manglement, relaying, forwarding, and delivery. Towards the end are security and dealing with long-ish queues in heavily loaded systems. Examples later in the book use earlier ones as a base. This shortens the later ones to relavant sections. By explicitly listing the earlier ones, Hunt makes the proces of referring back to them painless. There are also plenty of good references into the bat book and sendmail doc's. The book uses the current (8.9.12) sendmail for its examples. As an expirament I grabbed this from sendmail.org and installed it on a client and server. The client fowrards all of the non-local mail to a "smart host", the server masquerades all of the mail comming in to the domain. Afer going through the configuration examples, strange to say, it all worked: the updates updated, the deletes they deleted, the inquires inquired and the closings completed... er, sorry... The detailed sections are useful even if you are not going to configure sendmail any time soon. The tests shown are nice, specific, useful examples for general troubleshooting. The are specific to the recipies, and the recipies progress through stages of complexity. This makes the examples a nice sequence for looking at how to test various sendmail issues -- from telnet through 'sendmail -bt'. The recipies and exmaples would also make a good general introduction to mail handling. Going through the cases and tests makes a good introduction to the care and feeding of sendmail. The style is also readable. Hunt includes some humor, realistic descriptions of the instanities mail admin's go through, and descriptive prose to keep the text moving. The cookbook won't replace Dashiel Hammett on your nightstand, but does a good job in handling a pretty dry subject. Dry, that is, until the mail doesn't get through. At which point you'll probably be happy to have read the book. -- Steven Lembark 2930 W. Palmer Workhorse Computing Chicago, IL 60647 +1 888 359 3508 From sgnoe at sbcglobal.net Fri Apr 2 16:09:40 2004 From: sgnoe at sbcglobal.net (Stephan Noe) Date: Mon Aug 2 21:28:10 2004 Subject: [Chicago-talk] Piping from perl to perl under win2k -- correct syntax? Message-ID: <20040402220940.57154.qmail@web80702.mail.yahoo.com> I have a question re: the proper method / syntax to the output of one perl process into a second process in the windows 2k cmd shell. I have 2 large apache logs which I am merging with logresolvemerge.pl (from awstats) then attempting to pipe into my custom log parser, i.e. perl logresolvemerge.pl big_file_a big_file_b | perl myparser.pl (outputs an excel spreadsheet, 'cuz thats what the executives want) Running the above command generates an empty output file, so obviously isn't correct (if I split the commands and generate a temporary file everything works ok, but I cannot do this in production as the temp file theoretically could run up to 6-12 GB in size). this fails with an empty output file as well: perl myparser.pl < perl logresolvemerge.pl big_file_a big_file_b I realize this is very shell 101 but what am I missing here? Stephan Noe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/chicago-talk/attachments/20040402/b60913de/attachment.htm From ehs at pobox.com Fri Apr 2 17:14:55 2004 From: ehs at pobox.com (Ed Summers) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] NEXT MTG: Alan de Smet on UniqueID (2004.04.06) Message-ID: <20040402231455.GA4974@chloe.inkdroid.org> UniqueID - or - How I learned to stop worrying and love the bless. 2004.04.06 @ 7PM The UniqueID identifier number software [1] started life as a trivial experiment in Perl and CGI programming for Alan De Smet in the mid-90s. As Alan's understanding of programming and Perl have grown and been refined, so has that software grown and been refined. Alan's plan is talk about how his fascination with unique ids took hold, the UniqueId project, and what Perl has taught one hacker over the years. Alan [2] will be travelling down from Wisconsin where he currently works on the Condor Project [3] at wisc.edu. Please join us in "the pit" at BDI at 7PM next Tuesday. New folks are welcome, and directions are available on the website [4]. There should be some books to give away as well. [1] http://www.highprogrammer.com/alan/numbers/ [2] http://www.highprogrammer.com/alan/ [3] http://www.cs.wisc.edu/condor/ [4] http://chicago.pm.org/wdi-directions.html From flateyjarbok at yahoo.com Fri Apr 2 17:28:01 2004 From: flateyjarbok at yahoo.com (Richard Solberg) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] WWW::Mechanize In-Reply-To: <20040402231455.GA4974@chloe.inkdroid.org> Message-ID: <20040402232801.637.qmail@web14712.mail.yahoo.com> All, Struggling with my newly installed WWW::Mechanize and would appreciate some help on forms. Does this get me to the page after the form submit or do I still need to press submit? $m->submit_form( form_number => 1, fields => { user_id => "user", password => "pw", }, ); Also when I am at a page on a web site are there commands in mechanize to show me: 1) A list of all the forms 2) Which one is current 3) What the field names are of each of the forms? Thanks much. Richard Solberg __________________________________ Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway http://promotions.yahoo.com/design_giveaway/ From andy at petdance.com Fri Apr 2 17:32:30 2004 From: andy at petdance.com (Andy Lester) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] WWW::Mechanize In-Reply-To: <20040402232801.637.qmail@web14712.mail.yahoo.com> References: <20040402231455.GA4974@chloe.inkdroid.org> <20040402232801.637.qmail@web14712.mail.yahoo.com> Message-ID: <20040402233230.GB30487@petdance.com> > Does this get me to the page after the form submit or > do I still need to press submit? > > $m->submit_form( > form_number => 1, > fields => { > user_id => "user", > password => "pw", > }, > ); submit_form() actually does the submit. > Also when I am at a page on a web site > are there commands in mechanize to show me: You can call $mech->forms() to get a list of the forms. Mech also installs (optionally) a tool called mech-dump that shows you all the forms and fields on the page. $ mech-dump http://use.perl.org/ GET http://use.perl.org/search.pl query= = Go (submit) GET http://search.cpan.org/search mode=module (option) [*module/Module|dist/Distribution|author/Author|doc/Documentation] query= =Search (submit) POST http://use.perl.org/users.pl unickname= returnto=/ (hidden) op=userlogin (hidden) upasswd= (password) login_temp= (checkbox) [*/off|yes/Public Terminal] userlogin=Log in (submit) GET http://use.perl.org/pollBooth.pl qid=17 (hidden) section=index (hidden) aid= (radio) [1/Web development|2/System administration|3/End-user application development|4/Bioinformatics|5/Data processing|6/More than one of the above|7/Something else] =Vote (submit) It also has flags for all the images and links, too. xoa -- Andy Lester => andy@petdance.com => www.petdance.com => AIM:petdance From lembark at wrkhors.com Fri Apr 2 18:47:56 2004 From: lembark at wrkhors.com (Steven Lembark) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] Piping from perl to perl under win2k -- correct syntax? In-Reply-To: <20040402220940.57154.qmail@web80702.mail.yahoo.com> References: <20040402220940.57154.qmail@web80702.mail.yahoo.com> Message-ID: <7320000.1080953276@[192.168.200.3]> > Running the above command generates an empty output file, so obviously > isn't correct (if I split the commands and generate a temporary file > everything works ok, but I cannot do this in production as the temp file > theoretically could run up to 6-12 GB in size). > this fails with an empty output file as well: > perl myparser.pl < perl logresolvemerge.pl big_file_a big_file_b Should be foo | bar. if: bar > a; foo < a > b; produces the proper output then bar | foo > b; should work also. What happens if you run the downstream stage in the perl debuger: foo | perl -d bar > b; see what the input loop is doing -- or print the lines as they are read. It may be a logic error in handling of ^Z's. -- Steven Lembark 2930 W. Palmer Workhorse Computing Chicago, IL 60647 +1 888 359 3508 From Andy_Bach at wiwb.uscourts.gov Fri Apr 2 21:23:28 2004 From: Andy_Bach at wiwb.uscourts.gov (Andy_Bach@wiwb.uscourts.gov) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] Piping from perl to perl under win2k -- correct syntax? Message-ID: An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/chicago-talk/attachments/20040402/7753c4ae/attachment.htm From flateyjarbok at yahoo.com Fri Apr 2 21:52:12 2004 From: flateyjarbok at yahoo.com (Richard Solberg) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] WWW::Mechanize In-Reply-To: <20040402233230.GB30487@petdance.com> Message-ID: <20040403035212.36400.qmail@web14710.mail.yahoo.com> Andy, Thanks for the help. I have some more questions and comments below. Richard --- Andy Lester wrote: > > Does this get me to the page after the form submit > or > > do I still need to press submit? > > > > $m->submit_form( > > form_number => 1, > > fields => { > > user_id => "user", > > password => "pw", > > }, > > ); > > submit_form() actually does the submit. Okay. Thx. > > > Also when I am at a page on a web site > > are there commands in mechanize to show me: > > You can call $mech->forms() to get a list of the > forms. I have this working now to get the number of forms. Thx. Mech also > installs (optionally) a tool called mech-dump that > shows you all the > forms and fields on the page. I am not sure if that is installed. Would it be inside Mechanize.pm that I can search for, or something stand alone like mech-dump.pm ? > > $ mech-dump http://use.perl.org/ > GET http://use.perl.org/search.pl > query= > = Go (submit) > Not sure how to use $ mech-dump http://use.perl.org/ Is that like "my $VAR = mech-dump($url);" Where can I read more about it? I looked at mech-dump.t but I don't see how to execute mech-dump in that code. > xoa > > -- > Andy Lester => andy@petdance.com => www.petdance.com > => AIM:petdance Appreciate the help Richard > _______________________________________________ > Chicago-talk mailing list > Chicago-talk@mail.pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk __________________________________ Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway http://promotions.yahoo.com/design_giveaway/ From andy at petdance.com Fri Apr 2 23:08:42 2004 From: andy at petdance.com (Andy Lester) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] WWW::Mechanize In-Reply-To: <20040403035212.36400.qmail@web14710.mail.yahoo.com> References: <20040402233230.GB30487@petdance.com> <20040403035212.36400.qmail@web14710.mail.yahoo.com> Message-ID: <20040403050842.GA31112@petdance.com> > I am not sure if that is installed. Would it be > inside Mechanize.pm that I can search for, or > something stand alone like mech-dump.pm ? How did you install the module? Did you do the standard: perl Makefile.PL make make test sudo make install Or did you do something else? What platform are you on? xoa -- Andy Lester => andy@petdance.com => www.petdance.com => AIM:petdance From lembark at wrkhors.com Sat Apr 3 01:46:55 2004 From: lembark at wrkhors.com (Steven Lembark) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] Piping from perl to perl under win2k -- correct syntax? In-Reply-To: References: Message-ID: <19850000.1080978415@[192.168.200.3]> >> but I cannot do this in production as the temp file >> theoretically could run up to 6-12 GB in size). split. I know it exists on cygwin; if you don't have it the C is extremely short. If you're not used to the split command, it turns a large file into many small fixed line/byte/block count files with names like "aaa", "aab"... Its original use with with uucp for sending over-large uuencoded files (anyone else rememer bang paths?). For your purpose you'd have to double the file size temporarily: cd /tmpdir; split -blah /inputfile; you now have a few zillion, say, 1MB files. > I believe dos/winx handles pipes via tmp files anyways (try it while on a > read-only drive)so you may still have this problem, regardless. That or grab a dos-ified version of dd to handle the input and output buffering. You could fix the i/o size into blocks the O/S can gracefully handle. -- Steven Lembark 2930 W. Palmer Workhorse Computing Chicago, IL 60647 +1 888 359 3508 From mike at oobak.org Sat Apr 3 03:24:20 2004 From: mike at oobak.org (Mike Pastore) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] WWW::Mechanize In-Reply-To: <20040403035212.36400.qmail@web14710.mail.yahoo.com> References: <20040403035212.36400.qmail@web14710.mail.yahoo.com> Message-ID: <1080984260.5752.2.camel@rythm.oobak.org> On Fri, 2004-04-02 at 21:52, Richard Solberg wrote: > > $ mech-dump http://use.perl.org/ > > GET http://use.perl.org/search.pl > > query= > > = Go (submit) > > > > Not sure how to use > $ mech-dump http://use.perl.org/ > > Is that like "my $VAR = mech-dump($url);" Richard, I think Andy meant that mech-dump is installed as a command line utility, and can be run from your shell prompt. Just to clarify. -- Mike Pastore mike@oobak.org From flateyjarbok at yahoo.com Sat Apr 3 06:44:28 2004 From: flateyjarbok at yahoo.com (Richard Solberg) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] WWW::Mechanize In-Reply-To: <20040403050842.GA31112@petdance.com> Message-ID: <20040403124428.8770.qmail@web14711.mail.yahoo.com> --- Andy Lester wrote: > > I am not sure if that is installed. Would it be > > inside Mechanize.pm that I can search for, or > > something stand alone like mech-dump.pm ? > > How did you install the module? Did you do the > standard: > > perl Makefile.PL > make > make test > sudo make install > > Or did you do something else? What platform are you > on? Andy, I am on Windows 98. I manually replaced the Mechanize.pm file in the perl/site/lib/WWW directory, upgrading to 7.2 from 4.x. Richard > > xoa > > -- > 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 __________________________________ Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway http://promotions.yahoo.com/design_giveaway/ From flateyjarbok at yahoo.com Sat Apr 3 06:45:53 2004 From: flateyjarbok at yahoo.com (Richard Solberg) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] WWW::Mechanize In-Reply-To: <1080984260.5752.2.camel@rythm.oobak.org> Message-ID: <20040403124553.93280.qmail@web14716.mail.yahoo.com> --- Mike Pastore wrote: > On Fri, 2004-04-02 at 21:52, Richard Solberg wrote: > > > $ mech-dump http://use.perl.org/ > > > GET http://use.perl.org/search.pl > > > query= > > > = Go (submit) > > > > > > > Not sure how to use > > $ mech-dump http://use.perl.org/ > > > > Is that like "my $VAR = mech-dump($url);" > > Richard, > > I think Andy meant that mech-dump is installed as a > command line > utility, and can be run from your shell prompt. Just > to clarify. Mike, Is that just for UNIX users? I am on Windows 98. > > -- > Mike Pastore > mike@oobak.org > > _______________________________________________ > Chicago-talk mailing list > Chicago-talk@mail.pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk __________________________________ Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway http://promotions.yahoo.com/design_giveaway/ From andy at petdance.com Sat Apr 3 08:34:06 2004 From: andy at petdance.com (Andy Lester) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] WWW::Mechanize In-Reply-To: <20040403124428.8770.qmail@web14711.mail.yahoo.com> References: <20040403050842.GA31112@petdance.com> <20040403124428.8770.qmail@web14711.mail.yahoo.com> Message-ID: <20040403143406.GA32216@petdance.com> > I am on Windows 98. I manually replaced the > Mechanize.pm file in the perl/site/lib/WWW directory, > upgrading to 7.2 from 4.x. I don't know what "7.2" you mean. Unless you mean Mechanize 0.72. The way that you are installing modules is harder than it needs to be, and it's not the correct way to do it. Please look at the Perl FAQ for "how do I install modules." It may be slightly different on Windows, so you may have to check for something like "installing modules on Windows." After you install the modules correctly, you'll have a program called mech-dump that you can run from the command line: C:\> mech-dump http://use.perl.org xoa -- Andy Lester => andy@petdance.com => www.petdance.com => AIM:petdance From ehs at pobox.com Sat Apr 3 08:52:38 2004 From: ehs at pobox.com (Ed Summers) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] Sendmail Cookbook review In-Reply-To: <29220000.1080806283@[192.168.200.3]> References: <29220000.1080806283@[192.168.200.3]> Message-ID: <20040403145238.GA16519@chloe.inkdroid.org> On Thu, Apr 01, 2004 at 01:58:03AM -0600, Steven Lembark wrote: > More? Ok... Ok, it's been added to the site in CVS which will go live the next time the website is refreshed. Nice review by the way... //Ed From lembark at wrkhors.com Sat Apr 3 12:40:37 2004 From: lembark at wrkhors.com (Steven Lembark) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] Sendmail Cookbook review In-Reply-To: <20040403145238.GA16519@chloe.inkdroid.org> References: <29220000.1080806283@[192.168.200.3]> <20040403145238.GA16519@chloe.inkdroid.org> Message-ID: <39140000.1081017637@[192.168.200.3]> > Ok, it's been added to the site in CVS which will go live the next time > the website is refreshed. Nice review by the way... Thanks. It's easier to handle the good books. Next up is hardware hacks. -- Steven Lembark 2930 W. Palmer Workhorse Computing Chicago, IL 60647 +1 888 359 3508 From chimcentral at yahoo.com Mon Apr 5 10:25:06 2004 From: chimcentral at yahoo.com (matt boex) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] Re: stock charts with perl Message-ID: <20040405152506.10669.qmail@web40806.mail.yahoo.com> Ed, Do you have an example of a script that can produce a chart of open, high, low, close data? i have searched for some time through cpan and google with no luck. i have found Finance::Shares but it seems to be overkill and very difficult to figure out. it also creates postscript files. i am at the point that i am considering building my own. any pointers towards doing this as in modules to start with? matt On Tue, Dec 30, 2003 at 02:21:00PM -0800, matt boex wrote: > any opinion as to what modules i should use to build stock charts with. > i am looking to build open, high, low, close, with possibly volume at the > bottom. I've had good success with GD::Graph [1] at a previous job, and at my current job we've used Chart [2], which has a somewhat cleaner look. Unfortunately (as of 3 months ago) GD::Graph appeared to be more actively maintained than Chart, since we submitted a patch for some legend placement options, and never heard back. Also GD::Graph has better support for TrueType fonts. While it's name doesn't reflect it, Chart uses GD just as GD::Graph does, but in a perhaps more elegant way. Chart comes with some very nice PDF documentation however, which is pretty useful for this sort of module. //Ed [1] http://search.cpan.org/perldoc?GD::Graph [2] http://search.cpan.org/perldoc?Chart --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/chicago-talk/attachments/20040405/d23b8aa5/attachment.htm From ehs at pobox.com Mon Apr 5 11:13:54 2004 From: ehs at pobox.com (Ed Summers) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] Re: stock charts with perl In-Reply-To: <20040405152506.10669.qmail@web40806.mail.yahoo.com> References: <20040405152506.10669.qmail@web40806.mail.yahoo.com> Message-ID: <20040405161354.GB18171@chloe.inkdroid.org> On Mon, Apr 05, 2004 at 08:25:06AM -0700, matt boex wrote: > Do you have an example of a script that can produce a chart of open, > high, low, close data? i have searched for some time through cpan and > google with no luck. i have found Finance::Shares but it seems to be > overkill and very difficult to figure out. it also creates postscript > files. Do you mean a yahoo-like graph [1]? Alas, I'm not very familiar with financial data, so I probably can't help you very much. If you need a continuous X axis the GDGraph-XY [2] add-on to GD::Graph might help. Otherwise I've been pretty happy with Chart [3] which a coworker discovered when we ran up against some things we didn't like in GD::Graph. It might be worth checking out their documentation, which btw is nice because it's a PDF, and has the examples right there in the docs. Perhaps a session on generating graphics with Perl might be nice somewhere down the road? //Ed [1] http://ichart.yahoo.com/t?s=IBM [2] http://search.cpan.org/dist/GDGraph-XY/ [3] http://search.cpan.org/dist/Chart/ [4] http://search.cpan.org/src/CHARTGRP/Chart-2.3/doc/Documentation.pdf From jason at multiply.org Mon Apr 5 11:54:33 2004 From: jason at multiply.org (jason scott gessner) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] seriouSeries no. 3 Message-ID: From 37Signals' Signal Vs. Noise, this presentation looks pretty good. If you?re in Chicago on April 29, you should attend seriouSeries No. 3. It?s free! Jim Coudal of Coudal Partners / Photoshop Tennis / Jewelboxing, Jason Fried of 37signals / Signal vs. Noise / Basecamp, Naz Hamid from Gapers Block / Absenter and Jake Nickell, Jacob DeHart and Jeffrey Kalmikoff of Skinnycorp / Threadless / Yayhooray will all reveal the secrets to their internet fame and fortune. If they don?t, I do plan to make them fess up in an unapologetical questioning session following their own presentations. Attendees will have a chance to win a Jewelboxing system and a hand-screened Field-Tested books poster, a one-year Basic subscription to Basecamp, poster, pins and other ephemera from Gapers Block and a $50.00 certificate for threadless.com. Find out more and we hope to see you on April 29. -jason scott gessner jason@multiply.org From andy at petdance.com Mon Apr 5 14:14:02 2004 From: andy at petdance.com (Andy Lester) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] Module::Starter released Message-ID: <20040405191402.GA16332@petdance.com> I've just released Module::Starter 0.02, meant as a replacement for h2xs. I think h2xs is very out of date as far as current best practices for modules. It's also very intimidating for people who just want to create a module, and have no need for all the compiler hoohah that h2xs throws at you. Module::Starter is meant to make things much eaiser. Here's a sample run of Module::Starter's command-line program: $ module-starter --module=Foo,Foo::Bar,Foo::Bat \ --email=andy@petdance.com --author="Andy Lester" $ find Foo Foo Foo/.cvsignore Foo/Changes Foo/lib Foo/lib/Foo Foo/lib/Foo/Bar.pm Foo/lib/Foo/Bat.pm Foo/lib/Foo.pm Foo/Makefile.PL Foo/MANIFEST Foo/t Foo/t/00.load.t Foo/t/pod-coverage.t Foo/t/pod.t $ cat Foo/Makefile.PL use strict; use warnings; use ExtUtils::MakeMaker; WriteMakefile( NAME => 'Foo', AUTHOR => 'Andy Lester ', VERSION_FROM => 'lib/Foo.pm', ABSTRACT_FROM => 'lib/Foo.pm', PREREQ_PM => { 'Test::More' => 0, }, dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', }, clean => { FILES => 'Foo-*' }, ); Comments are welcome, and expected. xoa -- ndy Lester => andy@petdance.com => www.petdance.com => AIM:petdance From chimcentral at yahoo.com Mon Apr 5 17:13:36 2004 From: chimcentral at yahoo.com (matt boex) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] stock charts with perl In-Reply-To: <20031230224154.GB5103@chloe.inkdroid.org> Message-ID: <20040405221336.26684.qmail@web40801.mail.yahoo.com> Ed, Do you have an example of a script that can produce a chart of open, high, low, close data? i have searched for some time through cpan and google with no luck. i have found Finance::Shares but it seems to be overkill and very difficult to figure out. it also creates postscript files. i am at the point that i am considering building my own. any pointers towards doing this as in modules to start with? matt On Tue, Dec 30, 2003 at 02:21:00PM -0800, matt boex wrote: > any opinion as to what modules i should use to build stock charts with. > i am looking to build open, high, low, close, with possibly volume at the > bottom. I've had good success with GD::Graph [1] at a previous job, and at my current job we've used Chart [2], which has a somewhat cleaner look. Unfortunately (as of 3 months ago) GD::Graph appeared to be more actively maintained than Chart, since we submitted a patch for some legend placement options, and never heard back. Also GD::Graph has better support for TrueType fonts. While it's name doesn't reflect it, Chart uses GD just as GD::Graph does, but in a perhaps more elegant way. Chart comes with some very nice PDF documentation however, which is pretty useful for this sort of module. //Ed [1] http://search.cpan.org/perldoc?GD::Graph [2] http://search.cpan.org/perldoc?Chart Ed Summers wrote: On Tue, Dec 30, 2003 at 02:21:00PM -0800, matt boex wrote: > any opinion as to what modules i should use to build stock charts with. > i am looking to build open, high, low, close, with possibly volume at the > bottom. I've had good success with GD::Graph [1] at a previous job, and at my current job we've used Chart [2], which has a somewhat cleaner look. Unfortunately (as of 3 months ago) GD::Graph appeared to be more actively maintained than Chart, since we submitted a patch for some legend placement options, and never heard back. Also GD::Graph has better support for TrueType fonts. While it's name doesn't reflect it, Chart uses GD just as GD::Graph does, but in a perhaps more elegant way. Chart comes with some very nice PDF documentation however, which is pretty useful for this sort of module. //Ed [1] http://search.cpan.org/perldoc?GD::Graph [2] http://search.cpan.org/perldoc?Chart _______________________________________________ Chicago-talk mailing list Chicago-talk@mail.pm.org http://mail.pm.org/mailman/listinfo/chicago-talk --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/chicago-talk/attachments/20040405/61758478/attachment.htm From jason at multiply.org Tue Apr 6 13:24:26 2004 From: jason at multiply.org (jason scott gessner) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] burritos? Beer? Message-ID: anyone meeting at say, the burrito place, or portillo's or friday's before the meeting tonight? -jason scott gessner jason@multiply.org From andy at petdance.com Tue Apr 6 13:33:27 2004 From: andy at petdance.com (Andy Lester) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] burritos? Beer? In-Reply-To: References: Message-ID: <20040406183327.GA19501@petdance.com> > anyone meeting at say, the burrito place, or portillo's or friday's > before the meeting tonight? BD's, the Mongolian BBQ place is good, too, if non-cheap. I won't be there tonite, since I'll be going to Minneapolis next week. xoa -- Andy Lester => andy@petdance.com => www.petdance.com => AIM:petdance From ehs at pobox.com Tue Apr 6 13:41:52 2004 From: ehs at pobox.com (Ed Summers) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] burritos? Beer? In-Reply-To: References: Message-ID: <20040406184152.GE18945@chloe.inkdroid.org> > anyone meeting at say, the burrito place, or portillo's or friday's > before the meeting tonight? I'd be open to grabbing a burrito before and a beer afterwards :) //Ed From Andy_Bach at wiwb.uscourts.gov Tue Apr 6 13:43:20 2004 From: Andy_Bach at wiwb.uscourts.gov (Andy_Bach@wiwb.uscourts.gov) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] burritos? Beer? In-Reply-To: <20040406184152.GE18945@chloe.inkdroid.org> Message-ID: What's the path (for us non-IL folks) to Burrito Heaven again? a Andy Bach, Sys. Mangler Internet: andy_bach@wiwb.uscourts.gov VOICE: (608) 261-5738 FAX 264-5932 Rule #7 Don't plug the vacumn cleaner into a UPS From jthomasoniii at yahoo.com Tue Apr 6 14:14:34 2004 From: jthomasoniii at yahoo.com (Jim Thomason) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] burritos? Beer? In-Reply-To: Message-ID: <20040406191435.28416.qmail@web60205.mail.yahoo.com> --- Andy_Bach@wiwb.uscourts.gov wrote: > What's the path (for us non-IL folks) to Burrito > Heaven again? El Famous Burrito it is, then. Directions are quite easy, assuming you know how to get to Vernon Hills for the Tech Meeting (directions are on the chicago.pm.org website) While on Rte 60, head one traffic light west of the meeting place to Hawthorne Parkway. Head north. There's a shopping plaza on your right. At the first light on hawthorn parkway, turn right to enter the plaza. El Famous Burrito is right on the corner there. Also colloquially known as "behind the wendy's". -Jim.... __________________________________ Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway http://promotions.yahoo.com/design_giveaway/ From ehs at pobox.com Tue Apr 6 14:18:10 2004 From: ehs at pobox.com (Ed Summers) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] burritos? Beer? In-Reply-To: References: <20040406184152.GE18945@chloe.inkdroid.org> Message-ID: <20040406191810.GF18945@chloe.inkdroid.org> On Tue, Apr 06, 2004 at 01:43:20PM -0500, Andy_Bach@wiwb.uscourts.gov wrote: > What's the path (for us non-IL folks) to Burrito Heaven again? Here are Jim's directions: http://mail.pm.org/pipermail/chicago-talk/2004-March/001171.html I'll be there around 6PM. Also, Andy dropped off some books for to give away at the meeting. Some good titles including: Essential System Administration Learning Perl Objects & Modules Programming the Perl DBI Hardware Hacking Projects for Geeks Perl Debugger Pocket Reference Mono Kick Start PHP, MySQL and Apache J2EE Security //Ed From me at heyjay.com Tue Apr 6 21:41:20 2004 From: me at heyjay.com (me@heyjay.com) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] Re: stock charts with perl References: <20040405152506.10669.qmail@web40806.mail.yahoo.com> Message-ID: <01b001c41c49$d02e6bb0$6405a8c0@a30> I'm not sure where the beginning of this thread is, but I've been using dbi::chart and it's kinda nice Jay ----- Original Message ----- From: "matt boex" To: Sent: Monday, April 05, 2004 10:25 AM Subject: [Chicago-talk] Re: stock charts with perl > Ed, > > Do you have an example of a script that can produce a chart of open, high, low, close data? i have searched for some time through cpan and google with no luck. i have found Finance::Shares but it seems to be overkill and very difficult to figure out. it also creates postscript files. > > i am at the point that i am considering building my own. any pointers towards doing this as in modules to start with? > > matt > > On Tue, Dec 30, 2003 at 02:21:00PM -0800, matt boex wrote: > > any opinion as to what modules i should use to build stock charts with. > > i am looking to build open, high, low, close, with possibly volume at the > bottom. > > I've had good success with GD::Graph [1] at a previous job, and at my current > job we've used Chart [2], which has a somewhat cleaner look. Unfortunately > (as of 3 months ago) GD::Graph appeared to be more actively maintained than > Chart, since we submitted a patch for some legend placement options, and > never heard back. Also GD::Graph has better support for TrueType fonts. > While it's name doesn't reflect it, Chart uses GD just as GD::Graph does, > but in a perhaps more elegant way. Chart comes with some very nice PDF > documentation however, which is pretty useful for this sort of module. > > //Ed > > [1] http://search.cpan.org/perldoc?GD::Graph > [2] http://search.cpan.org/perldoc?Chart > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Small Business $15K Web Design Giveaway - Enter today ---------------------------------------------------------------------------- ---- > _______________________________________________ > Chicago-talk mailing list > Chicago-talk@mail.pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > From shild at sbcglobal.net Thu Apr 8 22:30:51 2004 From: shild at sbcglobal.net (Scott T. Hildreth) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] Good Post on PerlMonks Message-ID: <1081481450.24086.71.camel@localhost> I'm sure some of you saw this already, but I thought this was a great node on PerlMonks today, http://www.perlmonks.org/index.pl?node_id=343360 STH From lembark at wrkhors.com Fri Apr 9 02:00:14 2004 From: lembark at wrkhors.com (Steven Lembark) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] Good Post on PerlMonks In-Reply-To: <1081481450.24086.71.camel@localhost> References: <1081481450.24086.71.camel@localhost> Message-ID: <613220000.1081494014@[192.168.200.3]> -- "Scott T. Hildreth" > http://www.perlmonks.org/index.pl?node_id=343360 Interesting that noone pointed out Perl is a compiled language -- just like C, C++, and Java. Problem is that most people have no idea what a compiler does. -- Steven Lembark 2930 W. Palmer Workhorse Computing Chicago, IL 60647 +1 888 359 3508 From jthomasoniii at yahoo.com Fri Apr 9 09:18:57 2004 From: jthomasoniii at yahoo.com (Jim Thomason) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] Good Post on PerlMonks In-Reply-To: <613220000.1081494014@[192.168.200.3]> Message-ID: <20040409141857.22461.qmail@web60201.mail.yahoo.com> > Interesting that noone pointed out Perl is a > compiled > language -- just like C, C++, and Java. Problem is > that > most people have no idea what a compiler does. Yeah, well, it's a marketing issue. It doesn't matter that perl is compiled to bytecode before execution, because it's always compiled to bytecode before execution. The bytecode interpreter is being worked on, isn't it? perlcc doesn't count. All the rest of the world's gonna see is that 1) you have perl source and then 2) you run that source. Just screams of being an interpreted language. But I've said for years that Java is basically just perl with better marketing. Perl's just as compiled, can be just as fast, and is more cross platform than java could ever hope to be. No one ever listens, though. -Jim.... __________________________________ Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway http://promotions.yahoo.com/design_giveaway/ From lembark at wrkhors.com Fri Apr 9 11:10:31 2004 From: lembark at wrkhors.com (Steven Lembark) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] Good Post on PerlMonks In-Reply-To: <20040409141857.22461.qmail@web60201.mail.yahoo.com> References: <20040409141857.22461.qmail@web60201.mail.yahoo.com> Message-ID: <625510000.1081527031@[192.168.200.3]> > Yeah, well, it's a marketing issue. It doesn't matter > that perl is compiled to bytecode before execution, > because it's always compiled to bytecode before > execution. So is C. If people as me this I reply by asking what the output of a C compiler, say gcc, is. This usually gets me "object code". bzzzzzzzzzt... care to try again? C compilers output assembly language either for the local CPU (native) or another (cross compiler). The assembler produces relocatable object; the linker produces an executable. Point is that perl[45] and gcc work in the same way: they both compile and then call the assembler as a convienence to the user. The difference between them is that C stores the assembler's output perl runs it immediately and discards it after use. Given the speed of today's processors there is little or no real differeence between these approaches in most realistic situations. For the few times it really matters you can easily push portions of your code into C and use them via something like inline. Perl6 changes that becuase Parrot is language-agnostic and has its own assembly language. At that point perl6's output is parrot assembly that gets assembled to parrot object and stored. Call it "bytecode" or "machine language", they are the same thing: output that directly drives the hardware at the register level. > perlcc doesn't count. Fine, because it has nothing to do with anything. > All the rest of the world's gonna see is that > 1) you have perl source and then > 2) you run that source. > > Just screams of being an interpreted language. Then part of our task is to educate people on the difference between interpreted languages (re-read the for loop 1000 times) and compiled lines like C and Perl (compile the loop once execute it 1000 times). > But I've said for years that Java is basically just > perl with better marketing. Actually, it isn't. The main difference between them is that Perl is a high-level language, Java isn't. Quick: what size integer is necessary to store the offsets for DNA bases in M.musculous hemogloben? Dunno? Second question: why should you have to care in order to utilize the information? What if elephant hemogloben is the next thing you study and it's longer? The normal approach to this in Java is to use container classes. Most of these are based on hashes and end up putting sync points into the code because java hashes have semaphores in them (last time I looked at it at least). Great. So insted of using native types you end up with an extra layer of computation just to avoid stepping on yourself. Try this instead: Perl stores its data in a strongly typed, encapsulated object. The base data type is a highly-optimized, internally supported container. So, instead of worrying how Java container classes integrate with other layers of your code, in Perl you just program with native objects and be done with it. Can't see the downside of better encapsulation, native object support, and -- oh yes -- it's quite fast and more portable. The OO model in Perl is also clener than Java's since it doesn't break the "classes define behavior" rule. In C++ and its derived languages (e.g., Java, Python) classes define data. This is where diamond and single inheritence, interface classes, and the inability to easily copy objects all come from. Because the other languages define data along with behavior, you cannot "rebless" an object. This gets into lots of copy and re-initialize issues if you need to modify behavior on the fly (which is hugely useful in realistic parsing situations). > No one ever listens, though. Keep buying them beer until they do. -- Steven Lembark 2930 W. Palmer Workhorse Computing Chicago, IL 60647 +1 888 359 3508 From Andy_Bach at wiwb.uscourts.gov Fri Apr 9 12:09:23 2004 From: Andy_Bach at wiwb.uscourts.gov (Andy_Bach@wiwb.uscourts.gov) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] Good Post on PerlMonks In-Reply-To: <1081481450.24086.71.camel@localhost> Message-ID: I put in my 2 cents: The Federal courts (in the process of migrating from Solaris x86 to RHE for most applications) run the national "Case Management/Electronic Case Filing" (CM/ECF) system on perl/apache/tomcat. Over 2000 separate perl scripts weighing in at about 1.6 million lines of code. Developed on the national level by a centralized programming staff (lots of consultants), its delievered to nearly every one of the courts across the country (bankruptcy and district) as a package which we admins can then fix/modify to our heart's (and version controled ;-) content. a Andy Bach, Sys. Mangler Internet: andy_bach@wiwb.uscourts.gov VOICE: (608) 261-5738 FAX 264-5932 Rule #7 Don't plug the vacumn cleaner into a UPS From Dooley.Michael at con-way.com Fri Apr 9 13:35:21 2004 From: Dooley.Michael at con-way.com (Dooley, Michael) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] Good Post on PerlMonks Message-ID: mabey I should have called you to find out what was on my record instead of sitting on hold for hours and getting send to 3 different clerks offices to find out the date and judgement. -----Original Message----- From: chicago-talk-bounces@mail.pm.org [mailto:chicago-talk-bounces@mail.pm.org] Sent: Friday, April 09, 2004 12:09 PM To: Chicago.pm chatter Subject: Re: [Chicago-talk] Good Post on PerlMonks I put in my 2 cents: The Federal courts (in the process of migrating from Solaris x86 to RHE for most applications) run the national "Case Management/Electronic Case Filing" (CM/ECF) system on perl/apache/tomcat. Over 2000 separate perl scripts weighing in at about 1.6 million lines of code. Developed on the national level by a centralized programming staff (lots of consultants), its delievered to nearly every one of the courts across the country (bankruptcy and district) as a package which we admins can then fix/modify to our heart's (and version controled ;-) content. a Andy Bach, Sys. Mangler Internet: andy_bach@wiwb.uscourts.gov VOICE: (608) 261-5738 FAX 264-5932 Rule #7 Don't plug the vacumn cleaner into a UPS _______________________________________________ Chicago-talk mailing list Chicago-talk@mail.pm.org http://mail.pm.org/mailman/listinfo/chicago-talk From Andy_Bach at wiwb.uscourts.gov Fri Apr 9 14:16:33 2004 From: Andy_Bach at wiwb.uscourts.gov (Andy_Bach@wiwb.uscourts.gov) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] Good Post on PerlMonks In-Reply-To: Message-ID: *Some* bankruptcy information can be retrieved, cost free via our 800 # and the Voice Case Information System" (VB hack hack on an ODBC/sql connection to the db) or on-line at pacer.wiwb.uscourts.gov. District court cases (criminal and civil - say, if you were to have been tried and/or convicted of a federal crime in Wisconsin) is available at pacer.wiwd.uscourts.gov. Just about every judicial 'district' will have a VCIS line and a version those web sites for the 2 court units (bk and dist ct.) - to decode the unique string; "wiwb" stands for WIsconsin Western Bankruptcy; IL for example has 3 (I believe) districts, North, Central and South - ILN(B|D), ILC(B|D) ILS(B|D). However, on-line info requires a (free) login and 7 cents a page, though they don't charge (at this point) if you are under 10 or 20 bucks per quarter, due to the billing costs etc. You can go to the Pacer Service Center psc.uscourts.gov for more info. As of last Nov. we began redacting SSN info from the on-line systems. a Andy Bach, Sys. Mangler Internet: andy_bach@wiwb.uscourts.gov VOICE: (608) 261-5738 FAX 264-5932 Rule #7 Don't plug the vacumn cleaner into a UPS From lembark at wrkhors.com Fri Apr 9 20:17:43 2004 From: lembark at wrkhors.com (Steven Lembark) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] PAUSE indexer report LEMBARK/Schedule-Depend-1.2.tar.gz (fwd) Message-ID: <663300000.1081559863@[192.168.200.3]> ---------- Forwarded Message ---------- From: PAUSE Subject: PAUSE indexer report LEMBARK/Schedule-Depend-1.2.tar.gz > The following report has been written by the PAUSE namespace indexer. > Please contact modules@perl.org if there are any open questions. > Id: mldistwatch 479 2004-01-04 13:29:05Z k > > User: LEMBARK (Steven Lembark) > Distribution file: Schedule-Depend-1.2.tar.gz > Number of files: 10 > *.pm files: 4 > README: Schedule-Depend-1.2/README > META.yml: Schedule-Depend-1.2/META.yml > Timestamp of file: Fri Apr 9 23:13:06 2004 UTC > Time of this run: Fri Apr 9 23:44:33 2004 UTC > > The following packages (grouped by status) have been found in the distro: > > Status: Successfully indexed > ============================ > > module: Schedule::Depend > version: 1 > in file: Schedule-Depend-1.2/lib/Schedule/Depend.pm > status: indexed > > module: Schedule::Depend::Config > version: 0.4 > in file: Schedule-Depend-1.2/lib/Schedule/Depend/Config.pm > status: indexed > > module: Schedule::Depend::Execute > version: 0.4 > in file: Schedule-Depend-1.2/lib/Schedule/Depend/Execute.pm > status: indexed > > module: Schedule::Depend::Utilities > version: 0.4 > in file: Schedule-Depend-1.2/lib/Schedule/Depend/Utilities.pm > status: indexed > > __END__ ---------- End Forwarded Message ---------- -- Steven Lembark 2930 W. Palmer Workhorse Computing Chicago, IL 60647 +1 888 359 3508 From lembark at wrkhors.com Fri Apr 9 21:24:08 2004 From: lembark at wrkhors.com (Steven Lembark) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] PAUSE indexer report LEMBARK/Schedule-Depend-1.2.tar.gz (fwd) In-Reply-To: <663300000.1081559863@[192.168.200.3]> References: <663300000.1081559863@[192.168.200.3]> Message-ID: <667070000.1081563848@[192.168.200.3]> >> module: Schedule::Depend::Config >> version: 0.4 >> in file: Schedule-Depend-1.2/lib/Schedule/Depend/Config.pm >> status: indexed This is used for managing configuration data between modules. Basic idea starts with a hash: %Schedule::Depend::Execute::defaults = ( global => { foo => 'bar', blah => 'blah', }, Foo => { bletch => [ qw( blort bim bam ) ] blah => 'bletch' }, Bar => { bletch => 'frobnicate', }, ); The global items are, well..., global. They can be overridden within a particular module's data but the keys in it will always be present. The other sections are keyed by module names. In the example above a module in Some::Namespace::Foo would get the merged results of global and Foo (i.e., (split /::/, $caller)[-1] ), another module in Another::Plase::Bar gets the merged results of global and Bar. The results come back as a flat hash, i.e., my $global = $config->{global}; my $module = $config->{$modname}; my $result = { %$global, %$module }; That allows the caller to use something like: my $que = shift; my $config = $que->moduleconfig; my $foo = $config->{foo}; my $bletch = $config->{bletch}; Cute thing is that the module overrides any global setting so that "blah" means something different for the Foo module. This helps solve one of the nasty issues in multi-job scheduling: how to keep the configuration information in one place but allow simple access to it in the various places it's used. The Execute module uses S::D and Config as bases so that the que object carries the configuration data around with it (which also leaves things a bit more graceful across forks). enjoi -- Steven Lembark 2930 W. Palmer Workhorse Computing Chicago, IL 60647 +1 888 359 3508 From ejanev2 at yahoo.com Sat Apr 10 21:01:38 2004 From: ejanev2 at yahoo.com (Emil Janev) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] Problem with installing Curses module In-Reply-To: <01b001c41c49$d02e6bb0$6405a8c0@a30> Message-ID: <20040411020138.42683.qmail@web60905.mail.yahoo.com> Hi, I have tryed to install Curses.pm module for some time on Cygwin, without sucess, and without clue what can be the cause. I am attaching the second half of the output of the "make" into an attachment. There are many lines with warnings, and one with an error: Curses.c:275: error: too few arguments to function `Perl_sv_isa' But I am not sure if that is the main reason. Has everyone expirience with installing it and/or using it? Thanks, Emil __________________________________ Do you Yahoo!? Yahoo! Tax Center - File online by April 15th http://taxes.yahoo.com/filing.html -------------- next part -------------- function 'resetty' found function 'savetty' found function 'getsyx' found function 'getsyx' returns void function 'setsyx' found function 'setsyx' returns void function 'curs_set' found function 'napms' found function 'wmove' found function 'clearok' found function 'idlok' found function 'idlok' returns int function 'idcok' found function 'immedok' found function 'leaveok' found function 'wsetscrreg' found function 'scrollok' found function 'nl' found function 'nl' returns int function 'nonl' found function 'nonl' returns int function 'overlay' found function 'overwrite' found function 'copywin' found function 'newpad' found function 'subpad' found function 'prefresh' found function 'pnoutrefresh' found function 'pechochar' found function 'wrefresh' found function 'wnoutrefresh' found function 'doupdate' found function 'redrawwin' found function 'wredrawln' found function 'scr_dump' found function 'scr_restore' found function 'scr_init' found function 'scr_set' found function 'scroll' found function 'wscrl' found function 'slk_init' found function 'slk_set' found function 'slk_refresh' found function 'slk_noutrefresh' found function 'slk_label' found function 'slk_clear' found function 'slk_restore' found function 'slk_touch' found function 'slk_attron' found function 'slk_attrset' found function 'slk_attr' found function 'slk_attroff' found function 'slk_color' found function 'baudrate' found function 'erasechar' found function 'has_ic' found function 'has_il' found function 'killchar' found function 'termattrs' found function 'termname' found function 'touchwin' found function 'untouchwin' found function 'wtouchln' found function 'is_linetouched' found function 'is_wintouched' found function 'unctrl' found function 'keyname' found function 'filter' found function 'filter' returns void function 'use_env' found function 'putwin' found function 'getwin' found function 'delay_output' found function 'flushinp' found function 'newwin' found function 'delwin' found function 'mvwin' found function 'subwin' found function 'derwin' found function 'mvderwin' found function 'dupwin' found function 'wsyncup' found function 'syncok' found function 'wcursyncup' found function 'wsyncdown' found function 'getmouse' found function 'ungetmouse' found function 'mousemask' found function 'wenclose' found function 'wmouse_trafo' found function 'mouseinterval' found function 'BUTTON_RELEASE' found function 'BUTTON_PRESS' found function 'BUTTON_CLICK' found function 'BUTTON_DOUBLE_CLICK' found function 'BUTTON_TRIPLE_CLICK' found function 'BUTTON_RESERVED_EVENT' found function 'use_default_colors' found function 'assume_default_colors' found function 'define_key' found function 'keybound' found function 'keyok' found function 'resizeterm' found function 'wresize' found function 'getmaxy' found function 'getmaxx' found function 'flusok' NOT found function 'getcap' NOT found function 'touchoverlap' NOT found function 'new_panel' NOT found function 'bottom_panel' NOT found function 'top_panel' NOT found function 'show_panel' NOT found function 'update_panels' NOT found function 'hide_panel' NOT found function 'panel_window' NOT found function 'replace_panel' NOT found function 'move_panel' NOT found function 'panel_hidden' NOT found function 'panel_above' NOT found function 'panel_below' NOT found function 'set_panel_userptr' NOT found function 'panel_userptr' NOT found function 'del_panel' NOT found function 'set_menu_fore' NOT found function 'menu_fore' NOT found function 'set_menu_back' NOT found function 'menu_back' NOT found function 'set_menu_grey' NOT found function 'menu_grey' NOT found function 'set_menu_pad' NOT found function 'menu_pad' NOT found function 'pos_menu_cursor' NOT found function 'menu_driver' NOT found function 'set_menu_format' NOT found function 'menu_format' NOT found function 'set_menu_items' NOT found function 'menu_items' NOT found function 'item_count' NOT found function 'set_menu_mark' NOT found function 'menu_mark' NOT found function 'new_menu' NOT found function 'free_menu' NOT found function 'menu_opts' NOT found function 'set_menu_opts' NOT found function 'menu_opts_on' NOT found function 'menu_opts_off' NOT found function 'set_menu_pattern' NOT found function 'menu_pattern' NOT found function 'post_menu' NOT found function 'unpost_menu' NOT found function 'set_menu_userptr' NOT found function 'menu_userptr' NOT found function 'set_menu_win' NOT found function 'menu_win' NOT found function 'set_menu_sub' NOT found function 'menu_sub' NOT found function 'scale_menu' NOT found function 'set_current_item' NOT found function 'current_item' NOT found function 'set_top_row' NOT found function 'top_row' NOT found function 'item_index' NOT found function 'item_name' NOT found function 'item_description' NOT found function 'new_item' NOT found function 'free_item' NOT found function 'set_item_opts' NOT found function 'item_opts_on' NOT found function 'item_opts_off' NOT found function 'item_opts' NOT found function 'item_userptr' NOT found function 'set_item_userptr' NOT found function 'set_item_value' NOT found function 'item_value' NOT found function 'item_visible' NOT found function 'menu_request_name' NOT found function 'menu_request_by_name' NOT found function 'set_menu_spacing' NOT found function 'menu_spacing' NOT found function 'pos_form_cursor' NOT found function 'data_ahead' NOT found function 'data_behind' NOT found function 'form_driver' NOT found function 'set_form_fields' NOT found function 'form_fields' NOT found function 'field_count' NOT found function 'move_field' NOT found function 'new_form' NOT found function 'free_form' NOT found function 'set_new_page' NOT found function 'new_page' NOT found function 'set_form_opts' NOT found function 'form_opts_on' NOT found function 'form_opts_off' NOT found function 'form_opts' NOT found function 'set_current_field' NOT found function 'current_field' NOT found function 'set_form_page' NOT found function 'form_page' NOT found function 'field_index' NOT found function 'post_form' NOT found function 'unpost_form' NOT found function 'set_form_userptr' NOT found function 'form_userptr' NOT found function 'set_form_win' NOT found function 'form_win' NOT found function 'set_form_sub' NOT found function 'form_sub' NOT found function 'scale_form' NOT found function 'set_field_fore' NOT found function 'field_fore' NOT found function 'set_field_back' NOT found function 'field_back' NOT found function 'set_field_pad' NOT found function 'field_pad' NOT found function 'set_field_buffer' NOT found function 'field_buffer' NOT found function 'set_field_status' NOT found function 'field_status' NOT found function 'set_max_field' NOT found function 'field_info' NOT found function 'dynamic_field_info' NOT found function 'set_field_just' NOT found function 'field_just' NOT found function 'new_field' NOT found function 'dup_field' NOT found function 'link_field' NOT found function 'free_field' NOT found function 'set_field_opts' NOT found function 'field_opts_on' NOT found function 'field_opts_off' NOT found function 'field_opts' NOT found function 'set_field_userptr' NOT found function 'field_userptr' NOT found function 'field_arg' NOT found function 'form_request_name' NOT found function 'form_request_by_name' NOT found variable 'LINES' found variable 'COLS' found variable 'stdscr' found variable 'curscr' found variable 'COLORS' found variable 'COLOR_PAIRS' found typedef 'attr_t' found typedef 'bool' found typedef 'chtype' found typedef 'MEVENT' found typedef 'mmask_t' found typedef 'SCREEN' found gcc -c -I/usr/local/include -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -DUSEIM PORTLIB -O2 -DVERSION=\"1.06\" -DXS_VERSION=\"1.06\" "-I/usr/lib/perl5/5.8.2/ cygwin-thread-multi-64int/CORE" Curses.c In file included from /usr/lib/perl5/5.8.2/cygwin-thread-multi-64int/CORE/perl.h :475, from Curses.c:14: /usr/lib/perl5/5.8.2/cygwin-thread-multi-64int/CORE/embed.h:2894:1: warning: "in str" redefined In file included from c-config.h:9, from Curses.c:11: /usr/include/curses.h:914:1: warning: this is the location of the previous defin ition In file included from /usr/lib/perl5/5.8.2/cygwin-thread-multi-64int/CORE/perl.h :1805, from Curses.c:14: /usr/lib/perl5/5.8.2/cygwin-thread-multi-64int/CORE/handy.h:85:1: warning: "bool " redefined In file included from c-config.h:9, from Curses.c:11: /usr/include/curses.h:137:1: warning: this is the location of the previous defin ition Curses.c: In function `c_sv2field': Curses.c:148: warning: cast to pointer from integer of different size Curses.c: In function `c_sv2form': Curses.c:169: warning: cast to pointer from integer of different size Curses.c: In function `c_sv2item': Curses.c:190: warning: cast to pointer from integer of different size Curses.c: In function `c_sv2menu': Curses.c:212: warning: cast to pointer from integer of different size Curses.c: In function `c_sv2panel': Curses.c:233: warning: cast to pointer from integer of different size Curses.c: In function `c_sv2screen': Curses.c:254: warning: cast to pointer from integer of different size Curses.c: In function `c_sv2window': Curses.c:275: warning: passing arg 1 of `Perl_sv_isa' from incompatible pointer type Curses.c:275: warning: passing arg 2 of `Perl_sv_isa' from incompatible pointer type Curses.c:275: error: too few arguments to function `Perl_sv_isa' Curses.c:276: warning: cast to pointer from integer of different size In file included from Curses.c:344: CursesFun.c: In function `XS_Curses_newterm': CursesFun.c:1279: warning: initialization from incompatible pointer type CursesFun.c:1280: warning: initialization from incompatible pointer type CursesFun.c: In function `XS_Curses_putwin': CursesFun.c:3453: warning: initialization from incompatible pointer type CursesFun.c: In function `XS_Curses_getwin': CursesFun.c:3472: warning: initialization from incompatible pointer type make: *** [Curses.o] Error 1 emil@EPC Curses-1.06$ From me at heyjay.com Sun Apr 11 01:19:46 2004 From: me at heyjay.com (me@heyjay.com) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] What's up with threads not sharing objects Message-ID: <000701c41f8c$fe460260$6405a8c0@a30> What's up with perl threads not being able to share objects and complex data structures? Seems like perl threads are pretty weak. Jay From lembark at wrkhors.com Sun Apr 11 11:46:29 2004 From: lembark at wrkhors.com (Steven Lembark) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] What's up with threads not sharing objects In-Reply-To: <000701c41f8c$fe460260$6405a8c0@a30> References: <000701c41f8c$fe460260$6405a8c0@a30> Message-ID: <747010000.1081701989@[192.168.200.3]> -- me@heyjay.com > What's up with perl threads not being able to share objects and complex > data structures? Seems like perl threads are pretty weak. Why would perl not be able to share objects? Or complex data structures? My copy here (5.8) happily shares hashes, arrays, and referents. -- Steven Lembark 2930 W. Palmer Workhorse Computing Chicago, IL 60647 +1 888 359 3508 From me at heyjay.com Sun Apr 11 12:34:38 2004 From: me at heyjay.com (me@heyjay.com) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] What's up with threads not sharing objects References: <000701c41f8c$fe460260$6405a8c0@a30> <747010000.1081701989@[192.168.200.3]> Message-ID: <003d01c41feb$47063020$6405a8c0@a30> I thought I read that you can't share objects. I'm trying to find where I read that. See if you can share an object and update it with both threads Jay ----- Original Message ----- From: "Steven Lembark" To: "Chicago.pm chatter" Sent: Sunday, April 11, 2004 11:46 AM Subject: Re: [Chicago-talk] What's up with threads not sharing objects > > > -- me@heyjay.com > > > What's up with perl threads not being able to share objects and complex > > data structures? Seems like perl threads are pretty weak. > > Why would perl not be able to share objects? Or complex > data structures? > > My copy here (5.8) happily shares hashes, arrays, and > referents. > > > -- > Steven Lembark 2930 W. Palmer > Workhorse Computing Chicago, IL 60647 > +1 888 359 3508 > _______________________________________________ > Chicago-talk mailing list > Chicago-talk@mail.pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > > From lembark at wrkhors.com Sun Apr 11 18:37:54 2004 From: lembark at wrkhors.com (Steven Lembark) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] What's up with threads not sharing objects In-Reply-To: <003d01c41feb$47063020$6405a8c0@a30> References: <000701c41f8c$fe460260$6405a8c0@a30> <747010000.1081701989@[192.168.200.3]> <003d01c41feb$47063020$6405a8c0@a30> Message-ID: <761770000.1081726674@[192.168.200.3]> -- me@heyjay.com > I thought I read that you can't share objects. I'm trying to find where I > read that. I'll save you some time: you didn't read it anywhere. The perl threading model localizes lexicals, which may be what you're thinking of. Nothing w/in the threading model forces privitazation of blessed referents. Obviously, you have to be careful in handling the shared data structures. But once they are share-able the struct's are common to all threads. You cannot share data structs internally across forks, but evern that can be coverome via shared memory. The separation of data between separate processes forked from the same parent may be what you're thinknig of with the issue on strruct's between threads? > See if you can share an object and update it with both threads Why would you expect that I cannot? Have you read the perlthrtut? -- Steven Lembark 2930 W. Palmer Workhorse Computing Chicago, IL 60647 +1 888 359 3508 From me at heyjay.com Sun Apr 11 20:42:31 2004 From: me at heyjay.com (me@heyjay.com) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] What's up with threads not sharing objects References: <000701c41f8c$fe460260$6405a8c0@a30><747010000.1081701989@[192.168.200.3]><003d01c41feb$47063020$6405a8c0@a30> <761770000.1081726674@[192.168.200.3]> Message-ID: <003101c4202f$6d79d830$6405a8c0@a30> I'm sure I tried (when I had v5.8 installed) sharing a referent, and it didn't work. I'm installing a new machine and try it then Jay ----- Original Message ----- From: "Steven Lembark" To: "Chicago.pm chatter" Sent: Sunday, April 11, 2004 6:37 PM Subject: Re: [Chicago-talk] What's up with threads not sharing objects > > > -- me@heyjay.com > > > I thought I read that you can't share objects. I'm trying to find where I > > read that. > > I'll save you some time: you didn't read it anywhere. > > The perl threading model localizes lexicals, which may > be what you're thinking of. Nothing w/in the threading > model forces privitazation of blessed referents. > > Obviously, you have to be careful in handling the shared > data structures. But once they are share-able the struct's > are common to all threads. > > You cannot share data structs internally across forks, > but evern that can be coverome via shared memory. The > separation of data between separate processes forked > from the same parent may be what you're thinknig of > with the issue on strruct's between threads? > > > > See if you can share an object and update it with both threads > > Why would you expect that I cannot? > > Have you read the perlthrtut? > > > -- > Steven Lembark 2930 W. Palmer > Workhorse Computing Chicago, IL 60647 > +1 888 359 3508 > _______________________________________________ > Chicago-talk mailing list > Chicago-talk@mail.pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > > From lembark at wrkhors.com Sun Apr 11 21:33:09 2004 From: lembark at wrkhors.com (Steven Lembark) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] What's up with threads not sharing objects In-Reply-To: <003101c4202f$6d79d830$6405a8c0@a30> References: <000701c41f8c$fe460260$6405a8c0@a30> <747010000.1081701989@[192.168.200.3]><003d01c41feb$47063020$6405a8c0@a30> <761770000.1081726674@[192.168.200.3]> <003101c4202f$6d79d830$6405a8c0@a30> Message-ID: <778360000.1081737189@[192.168.200.3]> -- me@heyjay.com > I'm sure I tried (when I had v5.8 installed) sharing a referent, and it > didn't work. I'm installing a new machine and try it then Was the value a lexical? -- Steven Lembark 2930 W. Palmer Workhorse Computing Chicago, IL 60647 +1 888 359 3508 From lembark at wrkhors.com Sun Apr 11 21:33:41 2004 From: lembark at wrkhors.com (Steven Lembark) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] What's up with threads not sharing objects In-Reply-To: <003101c4202f$6d79d830$6405a8c0@a30> References: <000701c41f8c$fe460260$6405a8c0@a30> <747010000.1081701989@[192.168.200.3]><003d01c41feb$47063020$6405a8c0@a30> <761770000.1081726674@[192.168.200.3]> <003101c4202f$6d79d830$6405a8c0@a30> Message-ID: <778540000.1081737221@[192.168.200.3]> -- me@heyjay.com > I'm sure I tried (when I had v5.8 installed) sharing a referent, and it > didn't work. I'm installing a new machine and try it then Correction: was the value >stored< in a lexical? -- Steven Lembark 2930 W. Palmer Workhorse Computing Chicago, IL 60647 +1 888 359 3508 From me at heyjay.com Sun Apr 11 21:36:12 2004 From: me at heyjay.com (me@heyjay.com) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] What's up with threads not sharing objects References: <000701c41f8c$fe460260$6405a8c0@a30><747010000.1081701989@[192.168.200.3]><003d01c41feb$47063020$6405a8c0@a30><761770000.1081726674@[192.168.200.3]><003101c4202f$6d79d830$6405a8c0@a30> <778540000.1081737221@[192.168.200.3]> Message-ID: <000d01c42036$ec866510$6405a8c0@a30> If a lexical is a "my" variable, then yes ----- Original Message ----- From: "Steven Lembark" To: "Chicago.pm chatter" Sent: Sunday, April 11, 2004 9:33 PM Subject: Re: [Chicago-talk] What's up with threads not sharing objects > > > -- me@heyjay.com > > > I'm sure I tried (when I had v5.8 installed) sharing a referent, and it > > didn't work. I'm installing a new machine and try it then > > Correction: was the value >stored< in a lexical? > > -- > Steven Lembark 2930 W. Palmer > Workhorse Computing Chicago, IL 60647 > +1 888 359 3508 > _______________________________________________ > Chicago-talk mailing list > Chicago-talk@mail.pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > > From lembark at wrkhors.com Sun Apr 11 22:20:38 2004 From: lembark at wrkhors.com (Steven Lembark) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] What's up with threads not sharing objects In-Reply-To: <000d01c42036$ec866510$6405a8c0@a30> References: <000701c41f8c$fe460260$6405a8c0@a30> <747010000.1081701989@[192.168.200.3]><003d01c41feb$47063020$6405a8c0@a30> <761770000.1081726674@[192.168.200.3]><003101c4202f$6d79d830$6405a8c0@a30> <778540000.1081737221@[192.168.200.3]> <000d01c42036$ec866510$6405a8c0@a30> Message-ID: <781860000.1081740038@[192.168.200.3]> -- me@heyjay.com > If a lexical is a "my" variable, then yes perldoc perlthrtut; -- Steven Lembark 2930 W. Palmer Workhorse Computing Chicago, IL 60647 +1 888 359 3508 From jt at plainblack.com Mon Apr 12 17:36:50 2004 From: jt at plainblack.com (JT Smith) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] OSS Chicago: Web and Graphic Design Tools Message-ID: I'm not sure if any of you will be interested as it will not be a technical discussion this month, but for those of you who are, I wanted to give you a reminder. OSS Chicago is this Thursday night (7pm). Jeff Szpak (a world renowned graphic designer) will be giving a presentation on open source design tools like The GIMP, Sodipodi, Bluefish, Quanta, Nvu, and more. His Gimp discussion will show off what's really so cool about the new 2.0 release. It should be a very interesting talk. JT ~ Plain Black Create like a god, command like a king, work like a slave. From lembark at wrkhors.com Mon Apr 12 18:21:19 2004 From: lembark at wrkhors.com (Steven Lembark) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] OSS Chicago: Web and Graphic Design Tools In-Reply-To: References: Message-ID: <854690000.1081812079@[192.168.200.3]> > OSS Chicago is this Thursday night (7pm). Jeff Szpak (a world renowned > graphic designer) will be giving a presentation on open source design > tools like The GIMP, Sodipodi, Bluefish, Quanta, Nvu, and more. His Gimp > discussion will show off what's really so cool about the new 2.0 release. Where? -- Steven Lembark 2930 W. Palmer Workhorse Computing Chicago, IL 60647 +1 888 359 3508 From lembark at wrkhors.com Mon Apr 12 18:30:47 2004 From: lembark at wrkhors.com (Steven Lembark) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] Anyone up for web architecture/design work? Message-ID: <856720000.1081812647@[192.168.200.3]> Ran across some folks who need good architecture and graphics design along with a working shopping cart, etc. Anyone interested please contact me directly this week (next week I'll be living in NY and it'll be more complicated to get people together). -- Steven Lembark 2930 W. Palmer Workhorse Computing Chicago, IL 60647 +1 888 359 3508 From jthomasoniii at yahoo.com Mon Apr 12 18:47:25 2004 From: jthomasoniii at yahoo.com (Jim Thomason) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] OSS Chicago: Web and Graphic Design Tools In-Reply-To: <854690000.1081812079@[192.168.200.3]> Message-ID: <20040412234725.85339.qmail@web60202.mail.yahoo.com> > Where? OSS Chicago meetings are at WDI in Vernon Hills. Same place as the Chicago.PM tech meetings. -Jim.... __________________________________ Do you Yahoo!? Yahoo! Tax Center - File online by April 15th http://taxes.yahoo.com/filing.html From jt at plainblack.com Mon Apr 12 19:04:26 2004 From: jt at plainblack.com (JT Smith) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] OSS Chicago: Web and Graphic Design Tools In-Reply-To: <854690000.1081812079@[192.168.200.3]> Message-ID: >Where? The usual place in Vernon Hills. Where the Perl Mongers tech meetings are held. JT ~ Plain Black Create like a god, command like a king, work like a slave. From andy at petdance.com Mon Apr 12 21:32:31 2004 From: andy at petdance.com (Andy Lester) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] Who's been to Coogan's in the last three months? Message-ID: Has anyone been to the Coogan's meeting in the past three months? Is there yet any reason for us to have the Coogan's mentioned on the site? I've had two different people say "Oh, I thought you guys met in Chicago!" xoa -- Andy Lester andy@petdance.com, AIM:petdance http://petdance.com/ http://use.perl.org/~petdance/ From lembark at wrkhors.com Mon Apr 12 22:50:27 2004 From: lembark at wrkhors.com (Steven Lembark) Date: Mon Aug 2 21:28:11 2004 Subject: [Chicago-talk] Who's been to Coogan's in the last three months? In-Reply-To: References: Message-ID: <866270000.1081828227@[192.168.200.3]> > Is there yet any reason for us to have the Coogan's mentioned on the > site? I've had two different people say "Oh, I thought you guys met in > Chicago!" If anyone wants to meet near the loop the Rock Bottom Brewery and IIT would be good alternate sites. I would suggest keeping some sort of meeting in the city. -- Steven Lembark 2930 W. Palmer Workhorse Computing Chicago, IL 60647 +1 888 359 3508 From andy at petdance.com Mon Apr 12 22:49:18 2004 From: andy at petdance.com (Andy Lester) Date: Mon Aug 2 21:28:12 2004 Subject: [Chicago-talk] Who's been to Coogan's in the last three months? In-Reply-To: <866270000.1081828227@[192.168.200.3]> References: <866270000.1081828227@[192.168.200.3]> Message-ID: <8A563A02-8CFD-11D8-8479-000393BFA5FA@petdance.com> > If anyone wants to meet near the loop the Rock Bottom > Brewery and IIT would be good alternate sites. I would > suggest keeping some sort of meeting in the city. But has anyone been to Coogan's in the past three months? xoa -- Andy Lester andy@petdance.com, AIM:petdance http://petdance.com/ http://use.perl.org/~petdance/ From shawn at owbn.org Tue Apr 13 19:09:50 2004 From: shawn at owbn.org (Shawn Carroll) Date: Mon Aug 2 21:28:12 2004 Subject: [Chicago-talk] Who's been to Coogan's in the last three months? In-Reply-To: <8A563A02-8CFD-11D8-8479-000393BFA5FA@petdance.com> References: <866270000.1081828227@[192.168.200.3]> <8A563A02-8CFD-11D8-8479-000393BFA5FA@petdance.com> Message-ID: <1081901390.21490.6.camel@dev-box> I'd take that as a no. On Mon, 2004-04-12 at 22:49 -0500, Andy Lester wrote: > > If anyone wants to meet near the loop the Rock Bottom > > Brewery and IIT would be good alternate sites. I would > > suggest keeping some sort of meeting in the city. > > But has anyone been to Coogan's in the past three months? > > xoa > > -- > Andy Lester > andy@petdance.com, AIM:petdance > http://petdance.com/ http://use.perl.org/~petdance/ > > _______________________________________________ > Chicago-talk mailing list > Chicago-talk@mail.pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mail.pm.org/pipermail/chicago-talk/attachments/20040413/1e7282bf/attachment.bin From stouloumis at tungstenlearning.com Mon Apr 12 10:42:12 2004 From: stouloumis at tungstenlearning.com (Stathy G Touloumis) Date: Mon Aug 2 21:28:12 2004 Subject: [Chicago-talk] What's up with threads not sharing objects In-Reply-To: <000d01c42036$ec866510$6405a8c0@a30> References: <000701c41f8c$fe460260$6405a8c0@a30> <747010000.1081701989@[192.168.200.3]> <003d01c41feb$47063020$6405a8c0@a30> <761770000.1081726674@[192.168.200.3]> <003101c4202f$6d79d830$6405a8c0@a30> <778540000.1081737221@[192.168.200.3]> <000d01c42036$ec866510$6405a8c0@a30> Message-ID: <6.0.1.1.0.20040412103243.03b96110@mail.edisonaffiliates.com> How are you sharing the object? Use the function call with references : my $array = []; &share( $array ); bless $array, $class; VS my $array : shared = []; "If you want to share a newly created reference unfortunately you need to use '&share([])' and '&share({})' syntax due to problems with Perl's prototyping." >If a lexical is a "my" variable, then yes > >----- Original Message ----- >From: "Steven Lembark" >To: "Chicago.pm chatter" >Sent: Sunday, April 11, 2004 9:33 PM >Subject: Re: [Chicago-talk] What's up with threads not sharing objects > > > > > > > > -- me@heyjay.com > > > > > I'm sure I tried (when I had v5.8 installed) sharing a referent, and it > > > didn't work. I'm installing a new machine and try it then > > > > Correction: was the value >stored< in a lexical? > > > > -- > > Steven Lembark 2930 W. Palmer > > Workhorse Computing Chicago, IL 60647 > > +1 888 359 3508 > > _______________________________________________ > > Chicago-talk mailing list > > Chicago-talk@mail.pm.org > > http://mail.pm.org/mailman/listinfo/chicago-talk > > > > >_______________________________________________ >Chicago-talk mailing list >Chicago-talk@mail.pm.org >http://mail.pm.org/mailman/listinfo/chicago-talk From jthomasoniii at yahoo.com Wed Apr 14 20:23:28 2004 From: jthomasoniii at yahoo.com (Jim Thomason) Date: Mon Aug 2 21:28:12 2004 Subject: [Chicago-talk] blessing horrors Message-ID: <20040415012328.72667.qmail@web60204.mail.yahoo.com> Here's a stupid perl trick I learned today. Quick, think fast. What does this code output: #!/usr/bin/perl my $object = bless {}, 'foo'; print ref($object), "\n"; sub set_some_value { $main::foo::bar::baz = 1; } Now, other than Randal, who got it right? I'm sure most of you are now scratching your heads and saying, "What's he talking about? It prints out 'foo'." But, alas, it does not. In this case, it prints out 'main::foo'. That's right! $object here actually an instance of 'main::foo', not 'foo'. Now, this isn't as dire as you may immediately think - 'foo', 'main::foo', and '::foo' are all functionally equivalent. So it's (usually) not going to break your code or anything. It bit me in the ass today because I use a conf file that defines default values for various attributes in various classes. So my conf file has a line in it as such: define package Basset::DB which I later discovered bombed miserably when I tried to stick default values into my object that had managed to become part of the main::Basset::DB package instead. Solution? I added a new method to my framework called 'class' that does nothing but return the class of an object, with the (main)?:: stripped off the front. Problem solved. The reason? That I'm not quite clear on. I found this article in Google's Groups http://tinyurl.com/39tma that sheds a lot of light on the situation, but doesn't completely resolve it to my satisfaction. Basically, if you reference something in 'main::foo' before something in 'foo', you're stuck with objects ending up blessed into 'main::foo'. But, as you can see from my funny little example above, that first occurence apparently happens at compile time, not runtime. So you can have wacky things happen where your objects return different values from ref depending upon where in your code you use a main::foo reference. Fun stuff. -Jim....... __________________________________ Do you Yahoo!? Yahoo! Tax Center - File online by April 15th http://taxes.yahoo.com/filing.html From Andy_Bach at wiwb.uscourts.gov Wed Apr 14 22:46:30 2004 From: Andy_Bach at wiwb.uscourts.gov (Andy_Bach@wiwb.uscourts.gov) Date: Mon Aug 2 21:28:12 2004 Subject: [Chicago-talk] blessing horrors Message-ID: An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/chicago-talk/attachments/20040414/e2d1f847/attachment.htm From jthomasoniii at yahoo.com Thu Apr 15 06:20:08 2004 From: jthomasoniii at yahoo.com (Jim Thomason) Date: Mon Aug 2 21:28:12 2004 Subject: [Chicago-talk] blessing horrors In-Reply-To: Message-ID: <20040415112008.13903.qmail@web60204.mail.yahoo.com> >Seems to only happen if you 'predifine' a: >$main::xxx Precisely. Or a $::xxx first. That's what that thread in the newsgroup was referring to. >So why are you declaring the: >$main::xxx > >in the first place? Honestly? Dunno. More accurately, I'm not. Something somewhere in the core of our software is sometimes doing it (I won't bore you guys with the details) and that hasn't been isolated yet (and now that I know what's going on and can get around it, I don't know if we'll take the time to isolate it). I'm sure this little nugget of joy wouldn't be a common occurance for most people, but it's still nice to know about it. -Jim..... __________________________________ Do you Yahoo!? Yahoo! Tax Center - File online by April 15th http://taxes.yahoo.com/filing.html From Andy_Bach at wiwb.uscourts.gov Thu Apr 15 20:33:39 2004 From: Andy_Bach at wiwb.uscourts.gov (Andy_Bach@wiwb.uscourts.gov) Date: Mon Aug 2 21:28:12 2004 Subject: [Chicago-talk] blessing horrors Message-ID: An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/chicago-talk/attachments/20040415/8fd849e7/attachment.htm From jthomasoniii at yahoo.com Thu Apr 15 20:59:50 2004 From: jthomasoniii at yahoo.com (Jim Thomason) Date: Mon Aug 2 21:28:12 2004 Subject: [Chicago-talk] blessing horrors In-Reply-To: Message-ID: <20040416015950.14968.qmail@web60207.mail.yahoo.com> >Man, that's the kind of stuff that makes me lose >sleep. To wax a bit, part of what I've always enjoyed >about this junk is that the answer is out there if you >dig deep enough (I'm a near-obsessive debugger) and >some of what has motivated/rewarded such 'dedication' >is that it almost always leads to the discovery of a >bigger flaw. There aren't often 'little anomolies' >but little hints to bigger problems. I agree...up to a point. In this case, I did dig a lot deeper and discovered a bigger flaw instead of a little anomoly. The problem manifested itself when I was trying to use a module that governed database transactions. Has a flag to determine if they're on or not. It worked on the command line, but not through apache. Initial investigation yielded a "solution" that worked. It was the deeper digging that caused me to learn about all of this nonsense. Here, I'd say that the bigger bug was the fact that my code was expecting the package to never start with "main::" or "::", and it turns out that that's not a reasonable assumption to make. So that snippet of code was corrected. Sure, I could go ahead and dig through the other hunks of code to see where the 'main::' is being generated, but it's really not terribly important. My code should handle it (there may be some other point in the future where a 'main::package' could be handed in by someone, and I need to account for it), and it does. The fact that it's generated at all? Sure, it's annoying, but not necessarily worth the time and effort to fix, since the issue is now handled by the more important fix that the digging unearthed. I file that 'main::' generation under the list of fringe cases that the core should account for. Sure, it'd be nice to isolate, but there's more important work to do in this case. -Jim...... __________________________________ Do you Yahoo!? Yahoo! Tax Center - File online by April 15th http://taxes.yahoo.com/filing.html From ehs at pobox.com Fri Apr 16 09:00:32 2004 From: ehs at pobox.com (Ed Summers) Date: Mon Aug 2 21:28:12 2004 Subject: [Chicago-talk] Newsletter from O'Reilly UG Program, April 15 Message-ID: <20040416140032.GA29706@chloe.inkdroid.org> Latest from marsee @ O'Reilly. If you'd like to review any of the new titles let me know. Jason already nabbed High Performance MySQL though. //Ed ================================================================ O'Reilly News for User Group Members April 15, 2004 ================================================================ ---------------------------------------------------------------- Book News ---------------------------------------------------------------- -Linux Unwired -High Performance MySQL -Jeff Duntemann's Wi-Fi Guide, Second Edition -Oracle PL/SQL Language Pocket Reference, 3rd Edition -The GNOME 2 Developer's Guide -qmail -Access Cookbook, 2nd Edition -The Spam Letters ---------------------------------------------------------------- Upcoming Events ---------------------------------------------------------------- -Mac User Group Day at O'Reilly in Sebastopol, CA--April 24 ---------------------------------------------------------------- Conference News ---------------------------------------------------------------- -Registration Is Open for OSCON 2004 -O'Reilly Open Source Convention Early Bird Discount Ends June 18 ---------------------------------------------------------------- News ---------------------------------------------------------------- -Your O'Reilly Account: New Single Sign On -Virtual Book Signings -Planning for Disaster Recovery on LAMP Systems -Data Mining Email -Managing Packages on Panther with DarwinPorts -Launchers for Mac OS X -Panther Command-Line Tools: The Missing Manpages -Getting Connected While on the Road Using Infrared or Bluetooth -Hacking Windows Server -Java and Security, Part 1 -Wiring Your Web Application with Open Source Java -VSJ Reader Awards 2004 -New Language Features in C# 2.0 -O'Reilly Learning Lab's .NET Certificate Series ---------------------------------------------------------------- News From Your Peers ---------------------------------------------------------------- -Photos from recent UG events on the O'Reilly User Group Wiki ================================================ Book News ================================================ Did you know you can request a free book to review for your group? Ask your group leader for more information. For book review writing tips and suggestions, go to: http://ug.oreilly.com/bookreviews.html Don't forget, you can receive 20% off any O'Reilly, No Starch, Paraglyph, or Syngress book you purchase directly from O'Reilly. Just use code DSUG when ordering online or by phone 800-998-9938. http://www.oreilly.com/ ***Free ground shipping is available for online orders of at least $29.95 that go to a single U.S. address. This offer applies to U.S. delivery addresses in the 50 states and Puerto Rico. For more details, go to: http://www.oreilly.com/news/freeshipping_0703.html ---------------------------------------------------------------- New Releases ---------------------------------------------------------------- ***Linux Unwired Publisher: O'Reilly ISBN: 0596005830 "Linux Unwired" is a one-stop wireless information source for on-the-go Linux users. The book provides a complete introduction to all the wireless technologies supported by Linux. If you're considering wireless as a supplement or alternative to cable and DSL, using wireless to network computers in your home or office, or using cellular data plans for access to data nearly everywhere, this book will show you the full-spectrum view of Linux's wireless capabilities, and how to take advantage of them. http://www.oreilly.com/catalog/lnxunwired/ Chapter 3, "Getting on the Network," is available free online: http://www.oreilly.com/catalog/lnxunwired/chapter/index.html ***High Performance MySQL Publisher: O'Reilly ISBN: 0596003064 "High Performance MySQL" is an insider's guide to the poorly documented issues of MySQL reliability, scalability, and performance. The book gives in-depth coverage of MySQL indexing and optimization so you can make better use of these key features. You'll learn practical replication, backup, and load-balancing strategies with information that goes beyond available tools to discuss their effects in real-life environments. And you'll learn the supporting techniques you need to carry out these tasks, including advanced configuration, benchmarking, and investigating logs. http://www.oreilly.com/catalog/hpmysql/ Chapter 7, "Replication," is available free online: http://www.oreilly.com/catalog/hpmysql/chapter/index.html ***Jeff Duntemann's Wi-Fi Guide, Second Edition Publisher: Paraglyph Press ISBN: 1932111883 This new edition of this bestselling Wi-Fi guide provides everything Wi-Fi users need to design, build, protect, and extend Wi-Fi wireless networks! Author Jeff Duntemann uses practical techniques for setting up and using Wi-Fi gear and software. The second edition is expanded and brought fully up to date, covering more on setting up hotspots, community networking, security, Wireless Protected Access (WPA), new Wi-Fi standards (802.11g), and more. http://www.oreilly.com/catalog/1932111883/ ***Oracle PL/SQL Language Pocket Reference, 3rd Edition Publisher: O'Reilly ISBN: 0596006802 "Oracle PL/SQL Language Pocket Reference, 3rd Edition" has been updated for Oracle10g. This pocket-size book covers: fundamental language elements; statements for program control, cursor management, and exception handling; the basics of records, procedures, functions, triggers, and packages; the calling of PL/QL functions in SQL; new Oracle 10g elements; and much more. When you need a reminder or a quick answer to a PL/SQL problem, you'll find it in this compact reference. http://www.oreilly.com/catalog/orplpr3/ Sample excerpts on "Bulk Binds" and "Oracle Database 10g" are available free online: http://www.oreilly.com/catalog/orplpr3/chapter/index.html *** The GNOME 2 Developer's Guide Publisher: No Starch Press ISBN: 1593270305 "The GNOME 2 Developer's Guide" is the official GNOME Foundation guide to programming GUIs and applications using the GTK+ and GNOME API. Developed in partnership with the GNOME Foundation, this book is for programmers working with the GNOME 2 desktop environment. Each section begins with an example program that serves as a tutorial, then develops into a reference on the topic. Knowledge of the C programming language is required, but no GUI programming experience is necessary http://www.oreilly.com/catalog/1593270305/ ***qmail Publisher: O'Reilly ISBN: 1565926285 "qmail" concentrates on common tasks like moving a sendmail setup to qmail and setting up a "POP toaster," a system that provides mail service to a large number of users on other computers sending and retrieving mail remotely. The book fills crucial gaps in existing documentation, detailing exactly what the core qmail software does. http://www.oreilly.com/catalog/qmail/ Chapter 8, "Delivering and routing local mail," is available free online: http://www.oreilly.com/catalog/qmail/chapter/index.html ***Access Cookbook, 2nd Edition Publisher: O'Reilly ISBN: 0596006780 Access power users and programmers at all levels will rely on the "Access Cookbook" for quick solutions to gnarly problems. The second edition is fully updated for Access 2003, and it's also one of the first books to thoroughly explore new support for .NET managed code and XML. All of the examples have been tested for compatibility with Access 2003, Windows XP, and Windows Server 2003. This new edition also covers Access with SharePoint, SmartTags, .NET, and XML. http://www.oreilly.com/catalog/accesscook2/ Chapter 7, "VBA," is available free online: http://www.oreilly.com/catalog/accesscook2/chapter/index.html ***The Spam Letters Publisher: No Starch Press ISBN: 1593270321 >From the man behind TheSpamLetters.com--featured in "Entertainment Weekly," the "New York Times," and Slashdot--comes a collection of brilliant and entertaining correspondence with the people who send out mass junk emailings (a.k.a. spam). Compiled from the nearly 200 entries written by Jonathan Land, "The Spam Letters" taunts, prods, and parodies the faceless salespeople in your inbox, giving you a chuckle at their expense. If you hate spam, you'll love "The Spam Letters." http://www.oreilly.com/catalog/1593270321/ ================================================ Upcoming Events ================================================ ***For more events, please see: http://events.oreilly.com/ ***Mac User Group Day at O'Reilly in Sebastopol, CA--April 24 Join O'Reilly and NCMUG for a special Mac User Group Day in Sebastopol on Saturday, April 24 from 2-6pm. This event is free! Speakers include Derrick Story ("Digital Photography Pocket Guide, 2nd Edition," "iPhoto 2: The Missing Manual"), Chris Stone ("Mac OS X Panther in a Nutshell"), Tom Negrino & Dori Smith ("Mac OS X Unwired"), and Scott Fullam ("Hardware Hacking Projects for Geeks"). For more information and a complete schedule of events, go to: http://ug.oreilly.com/banners/macugday_hi_res.pdf Please RSVP to let us know you will be attending at mugevent@oreilly.com. Mac User Group Day 2:00pm-6:00pm, Saturday, April 24 O'Reilly 1005 Gravenstein Hwy North Sebastopol, CA 95472 800-998-9938 Ext. 7103 For directions, go to: http://www.oreilly.com/oreilly/seb_directions.html The 58th Annual Sebastopol Apple Blossom Festival will be also be happening. Come to Sebastopol early to watch the parade downtown. It starts at 10am and ends by noon, followed by a festival in Ives Park. For more info, go to: http://www.sebastopolappleblossom.org/ ================================================ Conference News ================================================ ***Registration Is Open for OSCON 2004 Come to the 2004 O'Reilly Open Source Convention and meet open source leaders, learn useful skills, and engage in conversations with developers, business leaders, and technology strategists. This year's OSCON explores everything from the latest innovations in Perl, PHP, and Python to the great Linux debate and much more. Join us in Portland, Oregon July 26-30. O'Reilly Open Source Convention Portland Marriott Downtown Portland, OR July 26-30, 2004 http://conferences.oreilly.com/oscon/ ***O'Reilly Open Source Convention Early Bird Discount Ends June 18 User Group members who register before June 18, 2004 get a double discount. Use code DSUG when you register, and you'll get 20% off the "Early Bird" price. To register, go to: http://conferences.oreillynet.com/cs/os2004/create/ord_os04 ================================================ News From O'Reilly & Beyond ================================================ --------------------- General News --------------------- ***Your O'Reilly Account: New Single Sign On O'Reilly customers and guests now have a single address and one password to access all things O'Reilly, from oreilly.com and Safari Bookshelf to all of the O'Reilly Network sites and DevCenters. When possible, we've consolidated your prior, separate accounts into one new account. Logging into the new system is quick and easy; details on how to do it have been emailed to you, and you can read more about O'Reilly's single sign on in Tony Stubblebine's weblog. http://www.oreillynet.com/pub/wlg/4692 ***Virtual Book Signings Snaggy & Nitrozac are back this week offering their brand of humor and technical know-how to the use of video conferencing technology. They've used their virtual book signing events to demonstrate the power of iSight and iChat AV, but their aim is to spark your creative juices to find other ways to apply these technologies, perhaps to connect with friends and family around the world, or perhaps for use in your own business. Snaggy & Nitrozac are the authors of "The Best of the Joy of Tech." http://www.macdevcenter.com/pub/a/mac/2004/04/13/virtualbooksigning.html --------------------- Open Source --------------------- ***Planning for Disaster Recovery on LAMP Systems The beauty of LAMP systems is that you can develop them as formally or informally as you like. Unfortunately, when it comes time to plan for disaster recovery, that informality can work against you. Robert Jones presents several guidelines for development and configuration that can make recovery easier. http://www.onlamp.com/pub/a/onlamp/2004/04/08/disaster_recovery.html ***Data Mining Email Thousands of useful facts lie inaccessible on your hard drive, hidden within email messages and attachments. How much more productive would you be if you could extract, index, and search that information? Robert Bernier demonstrates how to store data from emails into a database, where you can use data-mining techniques to analyze it. http://www.onlamp.com/pub/a/onlamp/2004/04/08/datamining_email.html --------------------- Mac --------------------- ***Managing Packages on Panther with DarwinPorts Ernest E. Rothman provides an overview along with installation and update instructions for DarwinPorts, one of Mac OS X's many packaging options. Ernest is a coauthor of "Mac OS X Panther for Unix Geeks." http://www.macdevcenter.com/pub/a/mac/2004/04/09/darwinports.html ***Launchers for Mac OS X LaunchBar is the best known Finder enhancer on the platform, but there are many noteworthy challengers, including Quicksilver. Giles Turnbull test drives a few launchers and gives a report. http://www.macdevcenter.com/pub/a/mac/2004/04/09/launchers.html ***Panther Command-Line Tools: The Missing Manpages Finally, Mac OS X system administrators and developers have a quick reference to the command-line utilities that have missing, incomplete, or inaccurate manpages. Find the command syntax, a brief description, and the command's directory location in Appendix B of "Mac OS X Panther for Unix Geeks." If you like this chapter, read the whole book (and up to nine others) on Safari with a trial subscription. https://secure.safaribooksonline.com/promo.asp?code=ORA14&portal=oreilly&CMP=BAC-TP2974244892 --------------------- Windows --------------------- ***Getting Connected While on the Road Using Infrared or Bluetooth The always-on Internet: How to connect to the Internet using your mobile phone, laptop, and infrared or Bluetooth. http://www.windowsdevcenter.com/pub/a/windows/2004/04/06/on_road_connect.html ***Hacking Windows Server Mitch Tulloch has gathered 100 hacks in his "Windows Server Hacks" book to help system administrators master the more powerful features of Windows Server. To provide a real look at what these hacks can help you do, we offer three excerpts here: How to use an ADSI-based script to search for domain users; how to use the Hyena utility to quickly find out which user on your network has a particular file open; and how to locate all machines that have automatic logon enabled in their registry. http://www.windowsdevcenter.com/pub/a/windows/excerpt/winserverhacks_chap03/index.html --------------------- Java --------------------- ***Java and Security, Part 1 In part one in a two-part series of excerpts from Chapter 17 of "WebLogic: The Definitive Guide," authors Avinash Chugh and Jon Mountjoy examine WebLogic's various security mechanisms, beginning with a look at the Java Security Manager and how WebLogic filters connection requests. They also cover WebLogic's authentication and authorization framework and how it supports the standard J2EE security services. http://www.onjava.com/pub/a/onjava/excerpt/weblogic_chap17/index.html ***Wiring Your Web Application with Open Source Java Building a web application with Java can be a complex process when architecting a combination of UI, business logic, and persistence. This article introduces a way to leverage open source software to lessen the burden. http://www.onjava.com/pub/a/onjava/2004/04/07/wiringwebapps.html --------------------- .NET --------------------- ***VSJ Reader Awards 2004 O'Reilly is among the winners of this year's VSJ Reader Awards, holding favored status in two categories: Best Book publisher for Developers, and Book of the Year for Jesse Liberty's "Programming C#." http://www.vsj.co.uk/survey/ "Programming C#, 3rd Edition," by Jesse Liberty ISBN: 0-596-00489-3 http://www.oreilly.com/catalog/progcsharp3/ ***New Language Features in C# 2.0 Four years ago, a new upstart language named C# surprised the development world with its elegance and consistency. Now that Microsoft has released a technology preview version of Visual Studio 2005 (formerly codenamed Whidbey), .NET's favorite language is back, with some new innovations. In this two-part servies by Matthew MacDonald, you'll get a first look at three of the four major language refinements in the latest version of C#. Part One: http://www.ondotnet.com/pub/a/dotnet/2004/04/05/csharpwhidbeypt1.html Part Two: http://www.ondotnet.com/pub/a/dotnet/2004/04/12/csharpwhidbeypt2.html ***O'Reilly Learning Lab's .NET Certificate Series Learn .NET programming skills and earn a .NET Programming Certificate from the University of Illinois Office of Continuing Education. The .NET Certificate Series is comprised of three courses that give you the foundation you need to do .NET programming well. The courses are: Learn XML; Learn Object-Oriented Programming Using Java; and Learn C#. Limited time offer: Enroll in all three courses and save $895. http://oreilly.useractive.com/courses/dotnet.php3 ================================================ News From Your Peers ================================================ ***Photos from recent UG events on the O'Reilly User Group Wiki We've added a "Past Events" section on the UGEvents page to share photos and highlights from recent events. Check out David Pogue's visit to Gloucester County College, NJ and photos from Miquel de Icaza's LUG presentation at Novell's Brainshare, Salt Lake City, UT. http://wiki.oreillynet.com/usergroups/topics?UGEvents You can also look for a meeting or user group, or post info any time you want. http://wiki.oreillynet.com/usergroups/view?HomePage Until next time-- Marsee ----- End forwarded message ----- -- Ed Summers aim: inkdroid web: http://www.inkdroid.org The best writing is rewriting. [E. B. White] From lembark at wrkhors.com Fri Apr 16 10:48:30 2004 From: lembark at wrkhors.com (Steven Lembark) Date: Mon Aug 2 21:28:12 2004 Subject: [Chicago-talk] Newsletter from O'Reilly UG Program, April 15 In-Reply-To: <20040416140032.GA29706@chloe.inkdroid.org> References: <20040416140032.GA29706@chloe.inkdroid.org> Message-ID: <82420000.1082130510@[192.168.200.3]> > -Linux Unwired > -High Performance MySQL > -Jeff Duntemann's Wi-Fi Guide, Second Edition > -Oracle PL/SQL Language Pocket Reference, 3rd Edition > -The GNOME 2 Developer's Guide > -qmail > -Access Cookbook, 2nd Edition > -The Spam Letters High Performance MySQL -- if we can get a copy before 30-May (if not I'll have to get it sent to me in NY). Perfect timing them comming out with the book: I'm about to start doing high- volume analytics with MySQL :-) thanx -- Steven Lembark Workhorse Computing +1 888 359 3508 From ehs at pobox.com Fri Apr 16 10:52:26 2004 From: ehs at pobox.com (Ed Summers) Date: Mon Aug 2 21:28:12 2004 Subject: [Chicago-talk] Newsletter from O'Reilly UG Program, April 15 In-Reply-To: <82420000.1082130510@[192.168.200.3]> References: <20040416140032.GA29706@chloe.inkdroid.org> <82420000.1082130510@[192.168.200.3]> Message-ID: <20040416155226.GD29706@chloe.inkdroid.org> > High Performance MySQL -- if we can get a copy before 30-May > (if not I'll have to get it sent to me in NY). Perfect timing > them comming out with the book: I'm about to start doing high- > volume analytics with MySQL :-) Already taken. Perhaps david (nyc.pm) [1] can get you a copy :) //Ed [1] dha@panix.com From flateyjarbok at yahoo.com Fri Apr 16 17:36:32 2004 From: flateyjarbok at yahoo.com (Richard Solberg) Date: Mon Aug 2 21:28:12 2004 Subject: [Chicago-talk] REGEX question In-Reply-To: <82420000.1082130510@[192.168.200.3]> Message-ID: <20040416223632.88812.qmail@web14714.mail.yahoo.com> Hi all, I have a regex question. In Camel it states the two cases. $html = "exasperate" 1) $html =~ /e(.*?)e/ # $1 = "xasp" 2) $html =~ /.*e(.*?)e/ # $1 = "rat" I have a problem that would be solved if I could get an array filled with $array[0] = "xasp" and $array[1]="rat", $array[2] = third set of characters between 2 e's , $array[n] = .... until no more matches found. Any help appreciated. Richard Solberg __________________________________ Do you Yahoo!? Yahoo! Tax Center - File online by April 15th http://taxes.yahoo.com/filing.html From mike at oobak.org Fri Apr 16 18:24:21 2004 From: mike at oobak.org (Mike Pastore) Date: Mon Aug 2 21:28:12 2004 Subject: [Chicago-talk] REGEX question In-Reply-To: <20040416223632.88812.qmail@web14714.mail.yahoo.com> References: <20040416223632.88812.qmail@web14714.mail.yahoo.com> Message-ID: <1082157860.28024.0.camel@rythm.oobak.org> Have you tried using split? On Fri, 2004-04-16 at 17:36, Richard Solberg wrote: > Hi all, > > I have a regex question. In Camel it states the two > cases. > > $html = "exasperate" > > 1) $html =~ /e(.*?)e/ # $1 = "xasp" > > 2) $html =~ /.*e(.*?)e/ # $1 = "rat" > > I have a problem that would be solved if I could get > an array filled with $array[0] = "xasp" and > $array[1]="rat", $array[2] = third set of characters > between 2 e's , $array[n] = .... until no more matches > found. > > Any help appreciated. > > Richard Solberg > > > > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Tax Center - File online by April 15th > http://taxes.yahoo.com/filing.html > _______________________________________________ > Chicago-talk mailing list > Chicago-talk@mail.pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk From mongers at bsod.net Fri Apr 16 19:03:47 2004 From: mongers at bsod.net (Pete Krawczyk) Date: Mon Aug 2 21:28:12 2004 Subject: [Chicago-talk] REGEX question In-Reply-To: <20040416223632.88812.qmail@web14714.mail.yahoo.com> Message-ID: Subject: [Chicago-talk] REGEX question From: Richard Solberg Date: Fri, 16 Apr 2004 15:36:32 -0700 (PDT) }$html = "exasperate" }1) $html =~ /e(.*?)e/ # $1 = "xasp" }2) $html =~ /.*e(.*?)e/ # $1 = "rat" }I have a problem that would be solved if I could get }an array filled with $array[0] = "xasp" and }$array[1]="rat", $array[2] = third set of characters }between 2 e's , $array[n] = .... until no more matches }found. I agree with what Mike had to say: Subject: Re: [Chicago-talk] REGEX question From: Mike Pastore Date: Fri, 16 Apr 2004 18:24:21 -0500 } Have you tried using split? but since TMTOWTDI, here's a hack for you: perl -le '$a="exasperate"; (undef,@b)=($a=~m/(.*?)e/g); print join(",",@b)' I never said it was pretty, efficient or good, but it gets the job done. -Pete K From lembark at wrkhors.com Fri Apr 16 22:58:16 2004 From: lembark at wrkhors.com (Steven Lembark) Date: Mon Aug 2 21:28:12 2004 Subject: [Chicago-talk] REGEX question In-Reply-To: References: Message-ID: <103840000.1082174296@[192.168.200.3]> Assign the result of globally applying a regex to the buffer and you'll get everything that maches in one pass: my $regex = /(whatever)(matches)/; my @result = $buffer =~ /$regex/g; You can also use a while loop with \Z to match where the last regex left off. One nice trick with split is that it can capture what was used to split on (nice if the separator varies between runs or within the buffer): my @stuff = split /(\W+)/, $buffer; will split the buffer on non-word char's and save both the matched portion from the regex and the split-out pieces between. -- Steven Lembark Workhorse Computing +1 888 359 3508 From lembark at wrkhors.com Fri Apr 16 23:45:38 2004 From: lembark at wrkhors.com (Steven Lembark) Date: Mon Aug 2 21:28:12 2004 Subject: [Chicago-talk] [Perl Jobs] Developer/Analyst, Illinois, Rosemont (fwd) Message-ID: <106360000.1082177138@[192.168.200.3]> ---------- Forwarded Message ---------- From: Perl Jobs Subject: [Perl Jobs] Developer/Analyst, Illinois, Rosemont > Online URL for this job: http://jobs.perl.org/job/1411 > > To subscribe to this list, send mail to jobs-subscribe@perl.org. > To unsubscribe, send mail to jobs-unsubscribe@perl.org. > > Posted: April 16, 2004 > > Job title: Developer/Analyst > > Company name: ibex Healthdata Systems, Inc. > > Location: Illinois, Rosemont > > Travel: 0% > > Terms of employment: Salaried employee > > Hours: Full time > > Description: > ibex Healthdata Systems, Inc. > Company > ibex Healthdata Systems, Inc., one of the fastest growing and most > respected medical software companies in the nation, provides > state-of-the-art web browser based emergency department information > systems, resulting in improved efficiencies and better patient care. > Recently ranked #1 as the Best Value Proposition in its market, ibex > PulseCheck? manages the care of more than 3.9million patients yearly in > hospital emergency departments across the country. > > Opportunity > > Developer/Analyst > Helps develop and analyzes specifications of user requirements to design > efficient solutions. Develops and tests software applications for ibex > Healthdata Systems products following development quality standards. > Maintains and supports application software. > > This position offers excellent base salary and immediate medical, dental, > and life insurance. Retirement savings plans starts after 30 days. > > > Company > ibex Healthdata Systems, Inc., one of the fastest growing and most > respected medical software companies in the nation, provides > state-of-the-art web browser based emergency department information > systems, resulting in improved efficiencies and better patient care. > Recently ranked #1 as the Best Value Proposition in its market, ibex > PulseCheck? manages the care of more than 3.9million patients yearly in > hospital emergency departments across the country. > > ESSENTIAL DUTIES AND RESPONSIBILITIES include the following. Other duties > may be assigned. > ? Assists in developing specifications for user requirements. > ? Analyzes specifications and designs efficient software application > solutions. > ? Codes (develops) software that adheres to ibex Healthdata Systems > software development standards as well as best practices in development. > ? Assists in developing test plans (based on specifications) and test > new and updated software programs to ensure specifications and standards > are met. > ? Supports, troubleshoots, and maintains existing software > applications. > ? Assists in documenting and demonstrating new application > functionality. > EDUCATION, EXPERIENCE, AND SKILLS KNOWLEDGE > ? Minimum of three years of software application programming/analysis > experience in a web-based environment. Experience with Perl programming > language in a MS SQL Server environment is required. > ? Bachelor?s degree (B.A.) from a four- year college or university or > equivalent combination of education and experience. > ? Relevant technical certifications desired. > ? Experience working with Perl, JAVA, HTML, XML, and other web-based > application development tools. > ? Knowledge of current trends, tools, and techniques in web-based > software application development environments. > ? Proficiency with Microsoft Office tools including MS Word, MS > Excel, and MS Access. > ? Ability to respond to common inquiries from customers, regulators, > and vendors. > ? Individual fosters professional growth of self and others and > focuses on the principles of Continuous Improvement. Individual has a > Customer Service orientation, exhibits professional behaviors, and > contributes to team development and performance in order to achieve team > and organizational goals. > > > > > > URL for more information: http://www.ibexhealthdata.com/ > > Contact information: > Please send resumes to > lwheeler@ibexhealthdata.com > > > ---------- End Forwarded Message ---------- -- Steven Lembark Workhorse Computing +1 888 359 3508 From andy at petdance.com Sat Apr 17 02:29:17 2004 From: andy at petdance.com (Andy Lester) Date: Mon Aug 2 21:28:12 2004 Subject: [Chicago-talk] [Perl Jobs] Developer/Analyst, Illinois, Rosemont (fwd) In-Reply-To: <106360000.1082177138@[192.168.200.3]> References: <106360000.1082177138@[192.168.200.3]> Message-ID: <20040417072917.GA25523@petdance.com> > >Description: > >ibex Healthdata Systems, Inc. If anyone is seriously thinking of applying, let me know first. I have a tale to tell. xoa -- Andy Lester => andy@petdance.com => www.petdance.com => AIM:petdance From shawn at owbn.org Sat Apr 17 06:54:30 2004 From: shawn at owbn.org (Shawn Carroll) Date: Mon Aug 2 21:28:12 2004 Subject: [Chicago-talk] [Perl Jobs] Developer/Analyst, Illinois, Rosemont (fwd) In-Reply-To: <20040417072917.GA25523@petdance.com> References: <106360000.1082177138@[192.168.200.3]> <20040417072917.GA25523@petdance.com> Message-ID: <1082202870.2563.0.camel@dev-box> Come now, share with the whole class. On Sat, 2004-04-17 at 02:29 -0500, Andy Lester wrote: > > >Description: > > >ibex Healthdata Systems, Inc. > > If anyone is seriously thinking of applying, let me know first. I have > a tale to tell. > > xoa > > -- > 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mail.pm.org/pipermail/chicago-talk/attachments/20040417/4462014f/attachment.bin From flateyjarbok at yahoo.com Sat Apr 17 07:14:29 2004 From: flateyjarbok at yahoo.com (Richard Solberg) Date: Mon Aug 2 21:28:12 2004 Subject: [Chicago-talk] REGEX question In-Reply-To: <103840000.1082174296@[192.168.200.3]> Message-ID: <20040417121429.10635.qmail@web14703.mail.yahoo.com> Thanks for the input Pete, Mike, and Steven. Steven I have a follow up question. --- Steven Lembark wrote: > > Assign the result of globally applying a regex > to the buffer and you'll get everything that > maches in one pass: > > my $regex = /(whatever)(matches)/; > > my @result = $buffer =~ /$regex/g; > > You can also use a while loop with \Z to match > where the last regex left off. I am missing the last portion on regex's but not sure where you would use the \Z. Can you write a while loop example? > > One nice trick with split is that it can capture > what was used to split on (nice if the separator > varies between runs or within the buffer): > > > my @stuff = split /(\W+)/, $buffer; > > will split the buffer on non-word char's and > save both the matched portion from the regex > and the split-out pieces between. This works for me once I include the ( ) around the \W+. Doesn't seem to work though if I want to put ()'s inside the outer ()'s. Can you put variables or either|or () inside. @stuff = split /((.*?)<\/td>) / , $buffer to capture a varible or @stuff = split /(\w+(.|\/|\0)<\/td> ) / , $buffer to capture word characters that may have a "." , "/" or just all word characters? All surrounded by the and examples are Word Word. Word/ Thanks much. > > -- > Steven Lembark > Workhorse Computing > +1 888 359 3508 > _______________________________________________ > Chicago-talk mailing list > Chicago-talk@mail.pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk __________________________________ Do you Yahoo!? Yahoo! Tax Center - File online by April 15th http://taxes.yahoo.com/filing.html From flateyjarbok at yahoo.com Sat Apr 17 07:37:24 2004 From: flateyjarbok at yahoo.com (Richard Solberg) Date: Mon Aug 2 21:28:12 2004 Subject: [Chicago-talk] REGEX question II In-Reply-To: <20040417121429.10635.qmail@web14703.mail.yahoo.com> Message-ID: <20040417123724.15388.qmail@web14701.mail.yahoo.com> I read that \w+ will match any alpha numberics plus the "_". Is there any way to get it or some other notation to match all of \w+ plus \s+ plus "/" plus "." , in any order or combination? Richard Solberg __________________________________ Do you Yahoo!? Yahoo! Tax Center - File online by April 15th http://taxes.yahoo.com/filing.html From jthomasoniii at yahoo.com Sat Apr 17 08:00:53 2004 From: jthomasoniii at yahoo.com (Jim Thomason) Date: Mon Aug 2 21:28:12 2004 Subject: [Chicago-talk] REGEX question II In-Reply-To: <20040417123724.15388.qmail@web14701.mail.yahoo.com> Message-ID: <20040417130053.93414.qmail@web60205.mail.yahoo.com> Piece of cake. Put it in a character set. [\w\s/.]+ (being careful to escape that / if you're inside a search-n-replace that uses / as its delimiters). In short, brackets denote character sets and match any character contained within them. [a] matches a. [ab] matches a or b. [a\W] matches any character that is either a or a non-word. [a-z] matches a through z. perldoc perlre for tons more info. I also strongly recommend "Mastering Regular Expressions" from O'reilly. -Jim..... --- Richard Solberg wrote: > I read that > \w+ will match any alpha numberics plus the "_". > > Is there any way to get it or some other notation to > match all of \w+ plus \s+ plus "/" plus "." , in any > order or combination? __________________________________ Do you Yahoo!? Yahoo! Tax Center - File online by April 15th http://taxes.yahoo.com/filing.html From zrusilla at yahoo.com Sat Apr 17 08:42:59 2004 From: zrusilla at yahoo.com (Elizabeth Cortell) Date: Mon Aug 2 21:28:12 2004 Subject: [Chicago-talk] Turning 0x29 today Message-ID: <20040417134259.9043.qmail@web41203.mail.yahoo.com> It's my 0x29th birthday. If you don't like your age, just change the base. Liz __________________________________ Do you Yahoo!? Yahoo! Tax Center - File online by April 15th http://taxes.yahoo.com/filing.html From lembark at wrkhors.com Sat Apr 17 09:15:01 2004 From: lembark at wrkhors.com (Steven Lembark) Date: Mon Aug 2 21:28:12 2004 Subject: [Chicago-talk] REGEX question II In-Reply-To: <20040417123724.15388.qmail@web14701.mail.yahoo.com> References: <20040417123724.15388.qmail@web14701.mail.yahoo.com> Message-ID: <124620000.1082211301@[192.168.200.3]> -- Richard Solberg > I read that > \w+ will match any alpha numberics plus the "_". > > Is there any way to get it or some other notation to > match all of \w+ plus \s+ plus "/" plus "." , in any > order or combination? Character group: [-\w\s] See the perl regex tutorial (perldoc perlretut). -- Steven Lembark Workhorse Computing +1 888 359 3508 From flateyjarbok at yahoo.com Sat Apr 17 19:57:01 2004 From: flateyjarbok at yahoo.com (Richard Solberg) Date: Mon Aug 2 21:28:12 2004 Subject: [Chicago-talk] REGEX question II In-Reply-To: <20040417130053.93414.qmail@web60205.mail.yahoo.com> Message-ID: <20040418005702.21375.qmail@web14709.mail.yahoo.com> Thanks Jim & Steve. Now I know how to roll my own character set for searches. It worked in my application. Richard --- Jim Thomason wrote: > Piece of cake. Put it in a character set. > > [\w\s/.]+ > > (being careful to escape that / if you're inside a > search-n-replace that uses / as its delimiters). > > In short, brackets denote character sets and match > any > character contained within them. > > [a] matches a. > [ab] matches a or b. > [a\W] matches any character that is either a or a > non-word. > [a-z] matches a through z. > > perldoc perlre for tons more info. I also strongly > recommend "Mastering Regular Expressions" from > O'reilly. > > -Jim..... > > --- Richard Solberg wrote: > > I read that > > \w+ will match any alpha numberics plus the "_". > > > > Is there any way to get it or some other notation > to > > match all of \w+ plus \s+ plus "/" plus "." , in > any > > order or combination? > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Tax Center - File online by April 15th > http://taxes.yahoo.com/filing.html > _______________________________________________ > Chicago-talk mailing list > Chicago-talk@mail.pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk __________________________________ Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25¢ http://photos.yahoo.com/ph/print_splash From lembark at wrkhors.com Sat Apr 17 20:24:22 2004 From: lembark at wrkhors.com (Steven Lembark) Date: Mon Aug 2 21:28:12 2004 Subject: [Chicago-talk] Anyone good at Mason and web architecture? Message-ID: <142880000.1082251462@[192.168.200.3]> Need an architect, not designer, who understands Mason and reusable layouts for local retail/mail-order company. Anyone interested please contact me directly. -- Steven Lembark Workhorse Computing +1 888 359 3508 From briank at kappacs.com Sat Apr 17 22:11:59 2004 From: briank at kappacs.com (Brian Katzung) Date: Mon Aug 2 21:28:12 2004 Subject: [Chicago-talk] Turning 0x29 today In-Reply-To: <20040417134259.9043.qmail@web41203.mail.yahoo.com> References: <20040417134259.9043.qmail@web41203.mail.yahoo.com> Message-ID: <4081F1FF.3040302@kappacs.com> Hehe. Great idea. Happy Birthday! Seen in various signatures: Why do programmers confuse Halloween and Christmas? Because OCT 31 = DEC 25. There are 10 types of people--those who understand binary and those who don't. - Brian Elizabeth Cortell wrote: > It's my 0x29th birthday. If you don't like your age, > just change the base. > > Liz From lembark at wrkhors.com Sat Apr 17 23:07:33 2004 From: lembark at wrkhors.com (Steven Lembark) Date: Mon Aug 2 21:28:12 2004 Subject: [Chicago-talk] Turning 0x29 today In-Reply-To: <4081F1FF.3040302@kappacs.com> References: <20040417134259.9043.qmail@web41203.mail.yahoo.com> <4081F1FF.3040302@kappacs.com> Message-ID: <157710000.1082261253@[192.168.200.3]> > There are 10 types of people--those who understand binary and those who > don't. There are only two types of people: those that put people into two groups and the rest who don't. Probably a good regex example in there somewhere... -- Steven Lembark Workhorse Computing +1 888 359 3508 From jthomasoniii at yahoo.com Tue Apr 20 21:19:21 2004 From: jthomasoniii at yahoo.com (Jim Thomason) Date: Mon Aug 2 21:28:12 2004 Subject: [Chicago-talk] Behold, Basset. Message-ID: <20040421021921.35900.qmail@web60206.mail.yahoo.com> It is done, the Basset framework is publically available under the Artistic License. http://www.bassetsoftware.com/ So what is Basset? Basset is what I use on my website and a few others that I run/help out with. It's the framework that I've used internally for a little more than a year now (though its oldest ancestor goes all the way back to Mail::Bulkmail 1.00, primitive though that is by modern standards). So it's fairly well developed, robust, hardened, tested, etc. And now it's free for the world. I've held onto it for so long since I'd always debated trying to license it, but a few people gave me the final convincing I needed to open source it. Besides, that's surely the path to fame and fortune more than keeping it closed would be. It's designed to be extremely generic, so making money off of it would be a trick. Now, making money off of software made with it, that's another story. I haven't figured that out yet either. But it seems more reasonable. So download it, poke around at it, let me know what you think. There's plenty of documentation, and even a tutorial on the website to talk you through a quick example of using it. In the most generic sense, you can think of it as being akin to Class::DBI, but it offers so much more. More code/examples/tutorials/etc are coming from me in the future (I have several more core Basset modules that I haven't released yet due to lack of docs), but questions are encouraged. Remember - I am the author of this thing, so anything you ask is going straight to the source. Not on CPAN yet, I may put it there in the future. Have fun. -Jim...... __________________________________ Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25¢ http://photos.yahoo.com/ph/print_splash From flateyjarbok at yahoo.com Wed Apr 21 11:57:36 2004 From: flateyjarbok at yahoo.com (Richard Solberg) Date: Mon Aug 2 21:28:12 2004 Subject: [Chicago-talk] PERL compiling under Windows In-Reply-To: <20040421021921.35900.qmail@web60206.mail.yahoo.com> Message-ID: <20040421165736.92098.qmail@web14710.mail.yahoo.com> Hello, Has anyone had success at compiling PERL programs under Windows? If so could you direct my to information on how to do this? Thanks. Richard Solberg __________________________________ Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25¢ http://photos.yahoo.com/ph/print_splash From ehs at pobox.com Wed Apr 21 12:54:23 2004 From: ehs at pobox.com (Ed Summers) Date: Mon Aug 2 21:28:12 2004 Subject: [Chicago-talk] PERL compiling under Windows In-Reply-To: <20040421165736.92098.qmail@web14710.mail.yahoo.com> References: <20040421021921.35900.qmail@web60206.mail.yahoo.com> <20040421165736.92098.qmail@web14710.mail.yahoo.com> Message-ID: <20040421175423.GA21097@chloe.inkdroid.org> On Wed, Apr 21, 2004 at 09:57:36AM -0700, Richard Solberg wrote: > Has anyone had success at compiling PERL programs > under Windows? If so could you direct my to > information on how to do this? I've had success compiling Perl programs down to Windows executables using PAR. C:\WINDOWS\DESKTOP>ppm ppm> install PAR ppm> quit C:\WINDOWS\DESKTOP>pp -o foo.exe foo.pl Christmas Day [1] on the 2003 Advent Calendar highlighted PAR (fittingly, since it's a brilliant module and Autrijus is a genius). I stole the example above from there, with a few mods. //Ed [1] http://www.perladvent.org/2003/25th/ -- Ed Summers aim: inkdroid web: http://www.inkdroid.org From Dooley.Michael at con-way.com Wed Apr 21 14:05:46 2004 From: Dooley.Michael at con-way.com (Dooley, Michael) Date: Mon Aug 2 21:28:12 2004 Subject: [Chicago-talk] ok im feeling a bit (lot) retarted Message-ID: while () { if ($. == 2) { s/$_/Address_V2/; print "$_"; } } ORIG Address_V1||FromAddr||||315 Benjamin Lane||||Boise||ID||USA||83704 NEW Address_V2||FromAddr||||315 Benjamin Lane||||Boise||ID||USA||83704 It is what I wanted but I just cant see why it is doing it. I mean why is it not substitueing the whole line w/ just "Address_V2"? I didn't tell it to keep the rest of the line contents. Heck I didn't even specify what it should match. but it understood to swap out Address_V1 with Address_V2 and continue to print out the full line. From jthomasoniii at yahoo.com Wed Apr 21 14:11:52 2004 From: jthomasoniii at yahoo.com (Jim Thomason) Date: Mon Aug 2 21:28:12 2004 Subject: [Chicago-talk] ok im feeling a bit (lot) retarted In-Reply-To: Message-ID: <20040421191152.22617.qmail@web60209.mail.yahoo.com> Let's see if I can debug on the fly w/out testing it... If that's your input line, then note that it has regex special characters in it, and they're being treated as such. So it's matching "Address_V1" OR an emptry string OR "FromAddr" OR an empty string OR "315 Benjamin Lane" OR .... The first thing it happens to hit is "Address_V1", so it successfully changes that to Address_V2. Changing your delimiters away from pipes would yield more expected results. Alternatively, it'd probably be good to quote the string first. s/\Q$_\E/Address_V2/; To keep those metacharacters from having special meaning. -Jim..... --- "Dooley, Michael" wrote: > while () { > if ($. == 2) { > s/$_/Address_V2/; > print "$_"; > } > } > > ORIG > Address_V1||FromAddr||||315 Benjamin > Lane||||Boise||ID||USA||83704 > > NEW > Address_V2||FromAddr||||315 Benjamin > Lane||||Boise||ID||USA||83704 > > It is what I wanted but I just cant see why it is > doing it. > I mean why is it not substitueing the whole line w/ > just "Address_V2"? > I didn't tell it to keep the rest of the line > contents. Heck I didn't > even specify what it should match. but it understood > to swap out > Address_V1 with Address_V2 and continue to print out > the full line. > _______________________________________________ > Chicago-talk mailing list > Chicago-talk@mail.pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk __________________________________ Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25¢ http://photos.yahoo.com/ph/print_splash From mongers at bsod.net Wed Apr 21 14:20:21 2004 From: mongers at bsod.net (Pete Krawczyk) Date: Mon Aug 2 21:28:12 2004 Subject: [Chicago-talk] ok im feeling a bit (lot) retarted In-Reply-To: Message-ID: Subject: [Chicago-talk] ok im feeling a bit (lot) retarted From: "Dooley, Michael" Date: Wed, 21 Apr 2004 12:05:46 -0700 }while () { } if ($. == 2) { } s/$_/Address_V2/; } print "$_"; } } }} } }ORIG }Address_V1||FromAddr||||315 Benjamin Lane||||Boise||ID||USA||83704 } }NEW }Address_V2||FromAddr||||315 Benjamin Lane||||Boise||ID||USA||83704 Can I ask the obvious first question of why you didn't just do: print "Address_V2"; But that's OK. Jim's on the money; the pipes are doing what you don't expect - becoming regex metacharaters. Which is why you never trust user input in variables directly contributing to regexes. Use \Q\E to eliminate metachars from having meaning in your input. -Pete K From Dooley.Michael at con-way.com Wed Apr 21 14:23:06 2004 From: Dooley.Michael at con-way.com (Dooley, Michael) Date: Mon Aug 2 21:28:12 2004 Subject: [Chicago-talk] ok im feeling a bit (lot) retarted Message-ID: if that was the case wouldn't each (this is where the fog lifted) "segment" be replaced by Address_V2? if its s/PATTERN/REPLACEMENT/ fulley expanded would be s/Address_V1||FromAddr||||315 Benjamin Lane||||Boise||ID||USA||83704/Address_V2/ if I put in single quotes around $_ I get Address_V2 appended to the beginning of $_. ok nevermind iv apperently been spending to much time at play boy and not thinking. since I don't have a modifer at the end of the expression it only matches the 1st entry in the expression. with that now clear you are most certenly correct. I should deffinetly be much more explicit w/ the pattern so it is less ?obtuse? -----Original Message----- From: chicago-talk-bounces@mail.pm.org [mailto:chicago-talk-bounces@mail.pm.org] Sent: Wednesday, April 21, 2004 2:12 PM To: Chicago.pm chatter Subject: Re: [Chicago-talk] ok im feeling a bit (lot) retarted Let's see if I can debug on the fly w/out testing it... If that's your input line, then note that it has regex special characters in it, and they're being treated as such. So it's matching "Address_V1" OR an emptry string OR "FromAddr" OR an empty string OR "315 Benjamin Lane" OR .... The first thing it happens to hit is "Address_V1", so it successfully changes that to Address_V2. Changing your delimiters away from pipes would yield more expected results. Alternatively, it'd probably be good to quote the string first. s/\Q$_\E/Address_V2/; To keep those metacharacters from having special meaning. -Jim..... --- "Dooley, Michael" wrote: > while () { > if ($. == 2) { > s/$_/Address_V2/; > print "$_"; > } > } > > ORIG > Address_V1||FromAddr||||315 Benjamin > Lane||||Boise||ID||USA||83704 > > NEW > Address_V2||FromAddr||||315 Benjamin > Lane||||Boise||ID||USA||83704 > > It is what I wanted but I just cant see why it is > doing it. > I mean why is it not substitueing the whole line w/ > just "Address_V2"? > I didn't tell it to keep the rest of the line > contents. Heck I didn't > even specify what it should match. but it understood > to swap out > Address_V1 with Address_V2 and continue to print out > the full line. > _______________________________________________ > Chicago-talk mailing list > Chicago-talk@mail.pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk __________________________________ Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25? http://photos.yahoo.com/ph/print_splash _______________________________________________ Chicago-talk mailing list Chicago-talk@mail.pm.org http://mail.pm.org/mailman/listinfo/chicago-talk From Andy_Bach at wiwb.uscourts.gov Wed Apr 21 14:16:50 2004 From: Andy_Bach at wiwb.uscourts.gov (Andy_Bach@wiwb.uscourts.gov) Date: Mon Aug 2 21:28:12 2004 Subject: [Chicago-talk] ok im feeling a bit (lot) retarted In-Reply-To: <20040421191152.22617.qmail@web60209.mail.yahoo.com> Message-ID: Yeah, If you want to replace the whole line just do: $_ = "Address_v2\n"; Are you mixing $_ =~ s/this/that/; w/ your: s/$_/Address_v2/; syntax? The default string to work on is $_ if you have a s/// cmd by itself. so: s/\Q$_\E/Address_v2/; is like: $_ = s/\Q$_\E/Address_v2/; which is easier as: $_ = "Address_v2"; Again, w/o testing, you may lose your trailing \n in the s/// form. a Andy Bach, Sys. Mangler Internet: andy_bach@wiwb.uscourts.gov VOICE: (608) 261-5738 FAX 264-5932 Why do programmers confuse Halloween and Christmas? Because OCT 31 = DEC 25. From merlyn at stonehenge.com Wed Apr 21 14:49:05 2004 From: merlyn at stonehenge.com (Randal L. Schwartz) Date: Mon Aug 2 21:28:12 2004 Subject: [Chicago-talk] ok im feeling a bit (lot) retarted In-Reply-To: References: Message-ID: <86ad155cy8.fsf@blue.stonehenge.com> >>>>> "Dooley," == Dooley, Michael writes: Dooley,> while () { Dooley,> if ($. == 2) { Dooley,> s/$_/Address_V2/; Was the intent of that to be $_ = "Address_V2\n" ? If so, I'd write it that way. :) Dooley,> print "$_"; Dooley,> } Dooley,> } -- 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 Dooley.Michael at con-way.com Wed Apr 21 14:54:49 2004 From: Dooley.Michael at con-way.com (Dooley, Michael) Date: Mon Aug 2 21:28:12 2004 Subject: [Chicago-talk] ok im feeling a bit (lot) retarted Message-ID: its a edi file and they need one of the elements changed in the line until they can apply a permanent fix to the system. IE I would just be swapping Address_V1 w/ Address_V2 and the rest of the line would remain the same. so... the intent was s/Address_V1/Address_V2/ It all seems much clearer now that I actually wrote it down and Jim brought up the pipe metachar in the source line. -----Original Message----- From: chicago-talk-bounces@mail.pm.org [mailto:chicago-talk-bounces@mail.pm.org] Sent: Wednesday, April 21, 2004 2:17 PM To: Chicago.pm chatter Subject: Re: [Chicago-talk] ok im feeling a bit (lot) retarted Yeah, If you want to replace the whole line just do: $_ = "Address_v2\n"; Are you mixing $_ =~ s/this/that/; w/ your: s/$_/Address_v2/; syntax? The default string to work on is $_ if you have a s/// cmd by itself. so: s/\Q$_\E/Address_v2/; is like: $_ = s/\Q$_\E/Address_v2/; which is easier as: $_ = "Address_v2"; Again, w/o testing, you may lose your trailing \n in the s/// form. a Andy Bach, Sys. Mangler Internet: andy_bach@wiwb.uscourts.gov VOICE: (608) 261-5738 FAX 264-5932 Why do programmers confuse Halloween and Christmas? Because OCT 31 = DEC 25. _______________________________________________ Chicago-talk mailing list Chicago-talk@mail.pm.org http://mail.pm.org/mailman/listinfo/chicago-talk From lembark at wrkhors.com Thu Apr 22 08:22:29 2004 From: lembark at wrkhors.com (Steven Lembark) Date: Mon Aug 2 21:28:12 2004 Subject: [Chicago-talk] PERL compiling under Windows In-Reply-To: <20040421165736.92098.qmail@web14710.mail.yahoo.com> References: <20040421165736.92098.qmail@web14710.mail.yahoo.com> Message-ID: <172230000.1082640149@[192.168.100.3]> -- Richard Solberg > > Hello, > > Has anyone had success at compiling PERL programs > under Windows? If so could you direct my to > information on how to do this? Perl on W32 animal book might have something. -- Steven Lembark 2930 W. Palmer Workhorse Computing Chicago, IL 60647 +1 888 359 3508 From lembark at wrkhors.com Thu Apr 22 08:25:10 2004 From: lembark at wrkhors.com (Steven Lembark) Date: Mon Aug 2 21:28:12 2004 Subject: [Chicago-talk] ok im feeling a bit (lot) retarted In-Reply-To: References: Message-ID: <172600000.1082640310@[192.168.100.3]> -- "Dooley, Michael" > s/Address_V1||FromAddr||||315 Benjamin > Lane||||Boise||ID||USA||83704/Address_V2/ It's a good idea to use quotemeta (or \Q) on anything you read that will be on the receiving end of a regex. -- Steven Lembark 2930 W. Palmer Workhorse Computing Chicago, IL 60647 +1 888 359 3508 From sgnoe at sbcglobal.net Thu Apr 22 21:51:05 2004 From: sgnoe at sbcglobal.net (Stephan Noe) Date: Mon Aug 2 21:28:12 2004 Subject: [Chicago-talk] Re: proper syntax to pipe perl to perl on win32 Message-ID: <20040423025105.1126.qmail@web80708.mail.yahoo.com> Responding to my own post of several weeks ago (got side tracked on other tasks). Problem was how to use logresolvemerge.pl (from awstats tool on sourceforge) to merge large apache log files then feed into custom log parsing script on win32 system. I hate reading archives without the actual working solution, so here it is: or basically, don't forget how the command shell works :) perl logresolvemerge.pl big_file_a big_file_b | perl mycustomparser.pl p.s. I tested for big_file_x of several hundred mb each no problem. logresolvemerge.pl is handy utility, no need for temp file, excessive memory, split utility, etc, etc - granted there is a 1 GB network connection between box where script runs and the two servers with the log files resident. As was pointed out, my problem earlier was using file redirection syntax when all I wanted was a simple pipe -- doh! Thanks for the previous tips. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/chicago-talk/attachments/20040422/894def0a/attachment.htm From EasyAsY2K at myrealbox.com Sat Apr 24 22:01:35 2004 From: EasyAsY2K at myrealbox.com (Leland J) Date: Mon Aug 2 21:28:12 2004 Subject: [Chicago-talk] Sugguestions for version control Message-ID: <1082862095.b13d735cEasyAsY2K@myrealbox.com> After having to run 5 minutes of diff after 2 minutes of editing due to another lazy copying mistake, I realized I really need to invest time to learn version control. Counting it up just now, I have 9 independent copies of the app I spend most of my time working on now. Any suggestions on good books on version control? Thanks, Leland From lembark at wrkhors.com Sat Apr 24 23:46:43 2004 From: lembark at wrkhors.com (Steven Lembark) Date: Mon Aug 2 21:28:12 2004 Subject: [Chicago-talk] Sugguestions for version control In-Reply-To: <1082862095.b13d735cEasyAsY2K@myrealbox.com> References: <1082862095.b13d735cEasyAsY2K@myrealbox.com> Message-ID: <10230000.1082868403@[192.168.200.3]> -- Leland J > After having to run 5 minutes of diff after 2 minutes of editing due to > another lazy copying mistake, I realized I really need to invest time to > learn version control. > > Counting it up just now, I have 9 independent copies of the app I spend > most of my time working on now. > > Any suggestions on good books on version control? Two years ago I'd have suggested the CVS doc's hands down; right now I'd go for Subversion as the way to do things. The package doc's are a really good starting point. -- Steven Lembark Workhorse Computing +1 888 359 3508 From ehs at pobox.com Sun Apr 25 07:23:54 2004 From: ehs at pobox.com (Ed Summers) Date: Mon Aug 2 21:28:12 2004 Subject: [Chicago-talk] Sugguestions for version control In-Reply-To: <1082862095.b13d735cEasyAsY2K@myrealbox.com> References: <1082862095.b13d735cEasyAsY2K@myrealbox.com> Message-ID: <20040425122354.GB4760@chloe.inkdroid.org> On Sat, Apr 24, 2004 at 09:01:35PM -0600, Leland J wrote: > Any suggestions on good books on version control? I reviewed Pragmatic Version Control for chicago.pm a few months ago. The examples use CVS, but the discussion is general in nature and very good (and brief). http://chicago.pm.org/reviews/pragvers.html //Ed From shild at sbcglobal.net Sun Apr 25 07:35:51 2004 From: shild at sbcglobal.net (Scott T. Hildreth) Date: Mon Aug 2 21:28:12 2004 Subject: [Chicago-talk] Sugguestions for version control In-Reply-To: <1082862095.b13d735cEasyAsY2K@myrealbox.com> References: <1082862095.b13d735cEasyAsY2K@myrealbox.com> Message-ID: <1082896550.71981.35.camel@localhost> Here is the a link to an pretty good online cvs book, http://cvsbook.red-bean.com/ On Sat, 2004-04-24 at 22:01, Leland J wrote: > After having to run 5 minutes of diff after 2 minutes of editing due to another lazy copying mistake, I realized I really need to invest time to learn version control. > > Counting it up just now, I have 9 independent copies of the app I spend most of my time working on now. > > Any suggestions on good books on version control? > > Thanks, > Leland > > _______________________________________________ > Chicago-talk mailing list > Chicago-talk@mail.pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk From jamundsen at jamundsen.dyndns.org Mon Apr 26 12:44:34 2004 From: jamundsen at jamundsen.dyndns.org (Jon Amundsen) Date: Mon Aug 2 21:28:12 2004 Subject: [Chicago-talk] Next Meeting Date on chicago.pm.org Message-ID: <20040426174434.GO95165@utility> Hi All! I just noticed what appears to be an error on http://chicago.pm.org/ . Next Meeting: Tuesday May 5th Either it is on Tuesday May 4th? or Wednesday May 5th? Also I'm not sure if the tail on the 'y' in may is just cut off or it is actually a 'v'. Regards, -- Jon Amundsen jamundsen@jamundsen.dyndns.org A "No" uttered from deepest conviction is better and greater than a "Yes" merely uttered to please, or what is worse, to avoid trouble. -- Mahatma Gandhi From lembark at wrkhors.com Wed Apr 28 19:25:52 2004 From: lembark at wrkhors.com (Steven Lembark) Date: Mon Aug 2 21:28:12 2004 Subject: [Chicago-talk] [Perl Jobs] PERL, CGI, HTML, TEAMSITE (onsite), United States, ILL, CHICAGO (fwd) Message-ID: <52200000.1083198352@[192.168.200.3]> ---------- Forwarded Message ---------- From: Perl Jobs Subject: [Perl Jobs] PERL, CGI, HTML, TEAMSITE (onsite), United States, ILL, CHICAGO > Online URL for this job: http://jobs.perl.org/job/1431 > > To subscribe to this list, send mail to jobs-subscribe@perl.org. > To unsubscribe, send mail to jobs-unsubscribe@perl.org. > > Posted: April 27, 2004 > > Job title: PERL, CGI, HTML, TEAMSITE > > Company name: AKORBI > > Location: United States, ILL, CHICAGO > > Pay rate: 45 DOLLARS > > Travel: 0% > > Terms of employment: Independent contractor (hourly) > > Length of employment: 3 MONTHS TO 3 YEARS > > Hours: Full time > > Onsite: yes > > Description: > Design, develop, document, test and implement DCTs, workflows and > deloyment > > scripts. > > Required skills: > Skills Inventory > > 1) Team Site, Open Deploy/DataDeploy - Intermediate > 2) Perl - Intermediate > 3) cgi - Intermediate > 4) XML - Intermediate > 5) Parsing - Intermediate > 6) Oracle PL/SQL - Intermediate > 7) Javascript - Intermediate > 8) HTML - Intermediate > > > URL for more information: http://www.akorbi.com/ > > Contact information: > CLAUDIA MIRZA: 214-764-8769 OR CAREERS@AKORBI.COM > > > > ---------- End Forwarded Message ---------- -- Steven Lembark Workhorse Computing +1 888 359 3508 From andy at petdance.com Thu Apr 29 11:13:28 2004 From: andy at petdance.com (Andy Lester) Date: Mon Aug 2 21:28:12 2004 Subject: [Chicago-talk] Upcoming talks Message-ID: <20040429161328.GA14003@petdance.com> Anybody have anything for June 1? If not, I'd like to do my "Open source programmer's guide to getting a great job" talk that I'll be giving at YAPC and OSCON. Comments? xoa -- Andy Lester => andy@petdance.com => www.petdance.com => AIM:petdance