From bri at ifokr.org Tue Nov 4 17:18:52 2003 From: bri at ifokr.org (Brian Hatch) Date: Mon Aug 2 21:37:11 2004 Subject: SPUG: Seattle-area PGP Key Signing Message-ID: <20031104231852.GI2367@ifokr.org> GSLUG is having a PGP Key signing party at this Saturday's meeting. Everyone is welcome to attend and expand the Web of Trust. Date: November 8th, 2003 Time: 10:00am - 11:00am ('File Integrity Tools' lecture to follow at 11:15am) Place: North Seattle Community College (see http://www.gslug.org/meeting.html for directions) Prep: Send your key to bri@ifokr.org by Friday 5pm. Bring keyid/fingerprint/bits/id with you to the meeting. (More detail at http://www.gslug.org/pgp.html) See http://www.gslug.org/pgp.html for more information, or contact bri@ifokr.org. -- Brian Hatch "This is how the world ends, Systems and swallowed in fire, Security Engineer but not in darkness." http://www.ifokr.org/bri/ Every message PGP signed -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://mail.pm.org/pipermail/spug-list/attachments/20031104/c06b24ab/attachment.bin From richard at richard-anderson.org Thu Nov 6 11:16:12 2003 From: richard at richard-anderson.org (Richard Anderson) Date: Mon Aug 2 21:37:11 2004 Subject: SPUG: Regex that matches everything except a specific string Message-ID: <001c01c3a48b$1530e080$a52efea9@TOSHIBARGA> I am trying to feed a regular expression to a mail processing program that matches every string except a specific string. For example, I want a regex that does not match richard@richard-anderson.org but matches any other string. If I were writing a Perl program, I would just do this: if ($address !~ /^richard\@richard-anderson\.org$/) { print "Spam\n" } but I am not able to modify the source code of the program I am using. I haven't been able to do this using the complement metacharacter (^). I'd accept a solution that matches anything except an anagram of richard@richard-anderson.org P.S. This is actually a Python regex, but Python's regexes are very similar to Perl's regexes. Richard Anderson richard@richard-anderson.org www.richard-anderson.org Richard.Anderson@raycosoft.com www.raycosoft.com From cansubaykan at hotmail.com Thu Nov 6 13:28:07 2003 From: cansubaykan at hotmail.com (John Subaykan) Date: Mon Aug 2 21:37:11 2004 Subject: SPUG: Regex that matches everything except a specific string Message-ID: If you have are scanning entries like this where the string you are matching begins with the same thing (like 'address:' or 'To: ') address:richard@richard-anderson.org address:someone@somewhere.com address:bad@e.mail address:junk-junk-junk in this case, you can do: /address:(?!richard\@richard-anderson.org)/ if you are matching only the email address part, I'm not sure how to use this method (negative lookahead or lookbehind. ----Original Message Follows---- From: "Richard Anderson" To: Subject: SPUG: Regex that matches everything except a specific string Date: Thu, 6 Nov 2003 09:16:12 -0800 I am trying to feed a regular expression to a mail processing program that matches every string except a specific string. For example, I want a regex that does not match richard@richard-anderson.org but matches any other string. If I were writing a Perl program, I would just do this: if ($address !~ /^richard\@richard-anderson\.org$/) { print "Spam\n" } but I am not able to modify the source code of the program I am using. I haven't been able to do this using the complement metacharacter (^). I'd accept a solution that matches anything except an anagram of richard@richard-anderson.org P.S. This is actually a Python regex, but Python's regexes are very similar to Perl's regexes. Richard Anderson richard@richard-anderson.org www.richard-anderson.org Richard.Anderson@raycosoft.com www.raycosoft.com _____________________________________________________________ Seattle Perl Users Group Mailing List POST TO: spug-list@mail.pm.org http://spugwiki.perlocity.org ACCOUNT CONFIG: http://mail.pm.org/mailman/listinfo/spug-list MEETINGS: 3rd Tuesdays, U-District, Seattle WA WEB PAGE: http://www.seattleperl.org _________________________________________________________________ MSN Messenger with backgrounds, emoticons and more. http://www.msnmessenger-download.com/tracking/cdp_customize From cansubaykan at hotmail.com Thu Nov 6 13:33:55 2003 From: cansubaykan at hotmail.com (John Subaykan) Date: Mon Aug 2 21:37:11 2004 Subject: SPUG: Regex that matches everything except a specific string Message-ID: On second thought, if the strings you are trying to match are always email addresses, you can use this regex: /(? To: Subject: SPUG: Regex that matches everything except a specific string Date: Thu, 6 Nov 2003 09:16:12 -0800 I am trying to feed a regular expression to a mail processing program that matches every string except a specific string. For example, I want a regex that does not match richard@richard-anderson.org but matches any other string. If I were writing a Perl program, I would just do this: if ($address !~ /^richard\@richard-anderson\.org$/) { print "Spam\n" } but I am not able to modify the source code of the program I am using. I haven't been able to do this using the complement metacharacter (^). I'd accept a solution that matches anything except an anagram of richard@richard-anderson.org P.S. This is actually a Python regex, but Python's regexes are very similar to Perl's regexes. Richard Anderson richard@richard-anderson.org www.richard-anderson.org Richard.Anderson@raycosoft.com www.raycosoft.com _____________________________________________________________ Seattle Perl Users Group Mailing List POST TO: spug-list@mail.pm.org http://spugwiki.perlocity.org ACCOUNT CONFIG: http://mail.pm.org/mailman/listinfo/spug-list MEETINGS: 3rd Tuesdays, U-District, Seattle WA WEB PAGE: http://www.seattleperl.org _________________________________________________________________ MSN Shopping upgraded for the holidays! Snappier product search... http://shopping.msn.com From ced at carios2.ca.boeing.com Thu Nov 6 13:40:34 2003 From: ced at carios2.ca.boeing.com (ced@carios2.ca.boeing.com) Date: Mon Aug 2 21:37:11 2004 Subject: SPUG: Regex that matches everything except a specific string Message-ID: <200311061940.LAA26137@carios2.ca.boeing.com> > if ($address !~ /^richard\@richard-anderson\.org$/) { print "Spam\n" } ... if ( $address =~ /.*(? > if ( $address =~ /.*(? print "ok\n"; > } else { > print "spam"; > } Make that: if ( $address =~ /.*(? Hey folks. I've got a project and for the life of me I can't seem to find a starting point. I have an online calendar and I need to be able to export the items in the calendar to palm and outlook calendar format. The resources and perl modules I've found are for interpreting a full calendar file, which is fine, but I need a way to add one or N items to a calendar. Heck, I don't even know if the palm calendar format can deal with that :) Any pointers would be much appreciated. Regards, alan -- Alan - http://arcterex.net -------------------------------------------------------------------- "There are only 3 real sports: bull-fighting, car racing and mountain climbing. All the others are mere games." -- Hemingway From sthoenna at efn.org Thu Nov 6 21:33:33 2003 From: sthoenna at efn.org (Yitzchak Scott-Thoennes) Date: Mon Aug 2 21:37:11 2004 Subject: SPUG: Regex that matches everything except a specific string In-Reply-To: <001c01c3a48b$1530e080$a52efea9@TOSHIBARGA> References: <001c01c3a48b$1530e080$a52efea9@TOSHIBARGA> Message-ID: <20031107033333.GA2500@efn.org> On Thu, Nov 06, 2003 at 09:16:12AM -0800, Richard Anderson wrote: > I am trying to feed a regular expression to a mail processing program that > matches every string except a specific string. For example, I want a regex > that does not match richard@richard-anderson.org but matches any other > string. If I were writing a Perl program, I would just do this: > > if ($address !~ /^richard\@richard-anderson\.org$/) { print "Spam\n" } /^(?!richard\@richard-anderson\.org\z)/ From beckyls at u.washington.edu Mon Nov 10 14:51:59 2003 From: beckyls at u.washington.edu (Rebecca L. Schmidt) Date: Mon Aug 2 21:37:11 2004 Subject: SPUG: UW Advanced Perl Course Message-ID: SPUGsters, At a SPUG meeting a few months ago, we mentioned that the UW was developing an Applied Advanced Perl Programming course for experienced Perl Programmers to take their programming skills to the next level. I'm pleased to announce that the course will be held this Winter (Tuesday nights, downtown Seattle) and it is open for registration now. Here is a course description and registration details: Applied Advanced Perl Programming Perl is much more than a language for small scripts and web sites. It is often the best choice for lexical parsing, bioinformatics and dynamically dispatched object designs. This lecture-based course is for object-oriented Perl programmers who wish to use advanced techniques to tackle tough problems in Perl. Course topics include advanced object- oriented design, inheritance and polymorphism, smart hashes with Tie, object persistence, operator overloading, advanced text parsing with grammars and extending a Perl interface to C libraries. Prerequisites: Experience with Perl object-oriented programming and Perl data structures, and access to a computer running Perl 5.6.1 or later, with internet access. Bringing a laptop to class is encouraged, but not required. Noncredit, 3 CEUs 10 Sessions, Tue., 6:30-9:30 p.m., Jan. 6-Mar. 9; $569. Location: Downtown Seattle. Doug Treder, senior software engineer, Amazon.com. For detailed course and registration information, please see this URL: http://www.extension.washington.edu/ext/courses/select/comp/programming.asp We hope to see you in class this winter! Please feel free to contact me if you have any questions. Best regards, Rebecca Schmidt Associate Program Manager University of Washington Extension rschmidt@ese.washington.edu 4311 11th Ave NE, Office #343G Seattle, WA 98105-4608 (206) 221-6243 From tim at consultix-inc.com Wed Nov 12 19:52:08 2003 From: tim at consultix-inc.com (Tim Maher) Date: Mon Aug 2 21:37:11 2004 Subject: SPUG: Template Toolkit problems Message-ID: <20031112175208.A11456@timji.consultix-inc.com> SPUGsters, I thought I'd whip up a couple of quick websites using the Template Toolkit, along with the "skeleton" templates this afternoon, rather than doing it all the hard way (as I usually do). But although I spent a lot of time trying to make it work, all in all it was a very frustrating experience -- which I'd like to achieve some closure on by making it work once and for all! 8-} After a few hours of banging my head against it, I finally come to the conclusion that the "build" program (which just calls ttree) doesn't properly compare timestamps to see what templates are newer than their corresponding *.html pages, nor does it properly check dependencies in the tree of web pages to detect when html/index.html, e.g., needs to be rebuilt even if src/index.html isn't any newer, because other "configuration" files have changed. I may be wrong, or doing something wrong, of course, but these conclusions explain my experiences thus far. For example, after changing templates/lib/site/logo, which determines part of what goes into html/index.html, build won't usually recreate index.html. But if I use touch to back-date it by 9 months, or remove the file altogether, then it *will* rebuild it. Another problem is that I can't figure out how to customize the navigation menu I get by default on the left side of every page; it definitely comes from templates/lib/config/map, which I've edited to define some changes, but my changes never show up in html/index.html, even when I make sure that file gets rebuilt. I'd be grateful if somebody could clue me in on how to make this work! Feel free to give me a call (at the number below) tonight if you're willing to help me out. *------------------------------------------------------------* | Tim Maher (206) 781-UNIX (866) DOC-PERL (866) DOC-UNIX | | tim(AT)Consultix-Inc.Com TeachMeUnix.Com TeachMePerl.Com | *+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-* | CLASSES: Min. Perl: 12/1; Perl: 12/2-4; Perl Modules: 12/5 | | Watch for my Book: "Minimal Perl for Shell Programmers" | *------------------------------------------------------------* From bill at celestial.com Wed Nov 12 21:56:42 2003 From: bill at celestial.com (Bill Campbell) Date: Mon Aug 2 21:37:11 2004 Subject: SPUG: Template Toolkit problems In-Reply-To: <20031112175208.A11456@timji.consultix-inc.com> References: <20031112175208.A11456@timji.consultix-inc.com> Message-ID: <20031113035642.GD42653@alexis.mi.celestial.com> On Wed, Nov 12, 2003, Tim Maher wrote: >SPUGsters, > >I thought I'd whip up a couple of quick websites using the >Template Toolkit, along with the "skeleton" templates this >afternoon, rather than doing it all the hard way (as I >usually do). What template toolkit, HTML::Template? I've been doing some work with this in conjunction with CGI::Application, and CGI::Session, and find it very easy to use. The biggest problem is getting into the philosophy that an HTML page is basically a source of arguments for a class method (e.g. via CGI query->param()). Bill -- INTERNET: bill@Celestial.COM Bill Campbell; Celestial Software LLC UUCP: camco!bill PO Box 820; 6641 E. Mercer Way FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 URL: http://www.celestial.com/ One man's brain plus one other will produce one half as many ideas as one man would have produced alone. These two plus two more will produce half again as many ideas. These four plus four more begin to represent a creative meeting, and the ratio changes to one quarter as many ... -- Anthony Chevins From kellan at protest.net Thu Nov 13 03:25:53 2003 From: kellan at protest.net (kellan@protest.net) Date: Mon Aug 2 21:37:11 2004 Subject: SPUG: Template Toolkit problems In-Reply-To: <20031112175208.A11456@timji.consultix-inc.com> References: <20031112175208.A11456@timji.consultix-inc.com> Message-ID: Hi Tim, I mostly use TT2 in a dynamic context so my expirence w/ ttree is limited. However when I have used it the modification checking worked as expected, don't know if that helps provide a data point for figuring out what is going wrong. > For example, after changing templates/lib/site/logo, which > determines part of what goes into html/index.html, build won't > usually recreate index.html. Not sure about its dependency handling, though there was a patch added last month to manually force dependencies. > Another problem is that I can't figure out how to customize the > navigation menu I get by default on the left side of every page; it > definitely comes from templates/lib/config/map, Is this some local file? I don't have a config/map file in any of my TT2 installs. My one coherent piece of advice would be ask on the templates[1] list, Andy is incredibly helpful, and there has been a fair amount ttree discussion going on lately. kellan 1. http://www.template-toolkit.org/mailman/listinfo/templates From Scott_Peterson at agsea.com Thu Nov 13 14:36:41 2003 From: Scott_Peterson at agsea.com (Scott_Peterson@agsea.com) Date: Mon Aug 2 21:37:11 2004 Subject: SPUG: Help Message-ID: Help spug-list-request@ mail.pm.org To: spug-list@mail.pm.org Sent by: cc: spug-list-bounces@ Subject: spug-list Digest, Vol 5, Issue 5 mail.pm.org 11/13/2003 10:00 AM Please respond to spug-list Send spug-list mailing list submissions to spug-list@mail.pm.org To subscribe or unsubscribe via the World Wide Web, visit http://mail.pm.org/mailman/listinfo/spug-list or, via email, send a message with subject or body 'help' to spug-list-request@mail.pm.org You can reach the person managing the list at spug-list-owner@mail.pm.org When replying, please edit your Subject line so it is more specific than "Re: Contents of spug-list digest..." Today's Topics: 1. Template Toolkit problems (Tim Maher) 2. Re: Template Toolkit problems (Bill Campbell) 3. Re: Template Toolkit problems (kellan@protest.net) ---------------------------------------------------------------------- Message: 1 Date: Wed, 12 Nov 2003 17:52:08 -0800 From: Tim Maher Subject: SPUG: Template Toolkit problems To: spug-list@pm.org Message-ID: <20031112175208.A11456@timji.consultix-inc.com> Content-Type: text/plain; charset=us-ascii SPUGsters, I thought I'd whip up a couple of quick websites using the Template Toolkit, along with the "skeleton" templates this afternoon, rather than doing it all the hard way (as I usually do). But although I spent a lot of time trying to make it work, all in all it was a very frustrating experience -- which I'd like to achieve some closure on by making it work once and for all! 8-} After a few hours of banging my head against it, I finally come to the conclusion that the "build" program (which just calls ttree) doesn't properly compare timestamps to see what templates are newer than their corresponding *.html pages, nor does it properly check dependencies in the tree of web pages to detect when html/index.html, e.g., needs to be rebuilt even if src/index.html isn't any newer, because other "configuration" files have changed. I may be wrong, or doing something wrong, of course, but these conclusions explain my experiences thus far. For example, after changing templates/lib/site/logo, which determines part of what goes into html/index.html, build won't usually recreate index.html. But if I use touch to back-date it by 9 months, or remove the file altogether, then it *will* rebuild it. Another problem is that I can't figure out how to customize the navigation menu I get by default on the left side of every page; it definitely comes from templates/lib/config/map, which I've edited to define some changes, but my changes never show up in html/index.html, even when I make sure that file gets rebuilt. I'd be grateful if somebody could clue me in on how to make this work! Feel free to give me a call (at the number below) tonight if you're willing to help me out. *------------------------------------------------------------* | Tim Maher (206) 781-UNIX (866) DOC-PERL (866) DOC-UNIX | | tim(AT)Consultix-Inc.Com TeachMeUnix.Com TeachMePerl.Com | *+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-* | CLASSES: Min. Perl: 12/1; Perl: 12/2-4; Perl Modules: 12/5 | | Watch for my Book: "Minimal Perl for Shell Programmers" | *------------------------------------------------------------* ------------------------------ Message: 2 Date: Wed, 12 Nov 2003 19:56:42 -0800 From: Bill Campbell Subject: Re: SPUG: Template Toolkit problems To: spug-list@pm.org Message-ID: <20031113035642.GD42653@alexis.mi.celestial.com> Content-Type: text/plain; charset=us-ascii On Wed, Nov 12, 2003, Tim Maher wrote: >SPUGsters, > >I thought I'd whip up a couple of quick websites using the >Template Toolkit, along with the "skeleton" templates this >afternoon, rather than doing it all the hard way (as I >usually do). What template toolkit, HTML::Template? I've been doing some work with this in conjunction with CGI::Application, and CGI::Session, and find it very easy to use. The biggest problem is getting into the philosophy that an HTML page is basically a source of arguments for a class method (e.g. via CGI query->param()). Bill -- INTERNET: bill@Celestial.COM Bill Campbell; Celestial Software LLC UUCP: camco!bill PO Box 820; 6641 E. Mercer Way FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 URL: http://www.celestial.com/ One man's brain plus one other will produce one half as many ideas as one man would have produced alone. These two plus two more will produce half again as many ideas. These four plus four more begin to represent a creative meeting, and the ratio changes to one quarter as many ... -- Anthony Chevins ------------------------------ Message: 3 Date: Thu, 13 Nov 2003 04:25:53 -0500 (EST) From: kellan@protest.net Subject: Re: SPUG: Template Toolkit problems To: Tim Maher Cc: spug-list@pm.org Message-ID: Content-Type: TEXT/PLAIN; charset=US-ASCII Hi Tim, I mostly use TT2 in a dynamic context so my expirence w/ ttree is limited. However when I have used it the modification checking worked as expected, don't know if that helps provide a data point for figuring out what is going wrong. > For example, after changing templates/lib/site/logo, which > determines part of what goes into html/index.html, build won't > usually recreate index.html. Not sure about its dependency handling, though there was a patch added last month to manually force dependencies. > Another problem is that I can't figure out how to customize the > navigation menu I get by default on the left side of every page; it > definitely comes from templates/lib/config/map, Is this some local file? I don't have a config/map file in any of my TT2 installs. My one coherent piece of advice would be ask on the templates[1] list, Andy is incredibly helpful, and there has been a fair amount ttree discussion going on lately. kellan 1. http://www.template-toolkit.org/mailman/listinfo/templates ------------------------------ _______________________________________________ spug-list mailing list spug-list@mail.pm.org http://mail.pm.org/mailman/listinfo/spug-list End of spug-list Digest, Vol 5, Issue 5 *************************************** From tim at consultix-inc.com Thu Nov 13 17:51:07 2003 From: tim at consultix-inc.com (Tim Maher) Date: Mon Aug 2 21:37:11 2004 Subject: SPUG: Paypal website hookup help needed Message-ID: <20031113155107.D15087@timji.consultix-inc.com> There's a guy who needs somebody to set up his web-site to use Paypal to process payments. Apparently, Paypal provides a Perl script to do this, and he might already have mod_perl with his Apache. On the other hand, there's apparently something tricky about it, because a few people who thought they'd be able to help haven't been able to. Please contact to-ken@verizon.net for more details, and to offer to help him with this project (for which he's willing to pay). *------------------------------------------------------------* | Tim Maher (206) 781-UNIX (866) DOC-PERL (866) DOC-UNIX | | tim(AT)Consultix-Inc.Com TeachMeUnix.Com TeachMePerl.Com | *+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-* | CLASSES: Min. Perl: 12/1; Perl: 12/2-4; Perl Modules: 12/5 | | Watch for my Book: "Minimal Perl for Shell Programmers" | *------------------------------------------------------------* From tim at consultix-inc.com Thu Nov 13 22:36:41 2003 From: tim at consultix-inc.com (Tim Maher) Date: Mon Aug 2 21:37:11 2004 Subject: SPUG: Nov. Mtg: Perl Security, Brian Hatch Message-ID: <20031113203641.A16147@timji.consultix-inc.com> November Seattle Perl Users Group Meeting -------------------------------------------------------- Title: Perl Security Speaker: Brian Hatch Meeting Time: Tuesday, Nov. 18, 2003 7-9pm Location: SAFECO bldg, Brooklyn St. and NE 45th St. Cost: Admission is free and open to the general public. Info: http://seattleperl.org/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * About the talk: Perl has intrinsic features, such as dynamic string handling, which make it immune to common programming insecurities. However, this may lead programmers into believing that they can do no wrong in Perl -- which isn't the case! Brian will cover a number of best-practices you should use whenever coding in Perl, such as * Perl's taint mode * System/exec in list vs. string mode * Avoiding race conditions * Distrusting the user * Writing programs that run with elevated privileges About the speaker: Brian Hatch is the Chief Hacker at Onsight Inc., the author of Hacking Linux Exposed, and the co-maintainer of stunnel. He lives in Ballard, Seattle's hottest neighborhood for Open- Source activity -- and fresh lutefisk! Pre- and Post- Meeting Activities --------------------------------- The pre-meeting dinner will be at the Cedars restaurant, at 50th St. and Brooklyn, in the University District, near the Safeco building where the meeting will take place. The phone number is 527-5247. If you are planning to be there, please enter your name on the Kwiki RSVP page by 2pm on the meeting day. (NOTE: Arrival by 5:45pm is recommended for those ordering food). Those who comply with the RSVP policy, and are therefore counted in the seating reservation, will have top priority for seating at the speaker's table. *------------------------------------------------------------* | Tim Maher (206) 781-UNIX (866) DOC-PERL (866) DOC-UNIX | | tim(AT)Consultix-Inc.Com TeachMeUnix.Com TeachMePerl.Com | *+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-* | CLASSES: Min. Perl: 12/1; Perl: 12/2-4; Perl Modules: 12/5 | | Watch for my Book: "Minimal Perl for Shell Programmers" | *------------------------------------------------------------* From MichaelRWolf at att.net Fri Nov 14 22:25:00 2003 From: MichaelRWolf at att.net (Michael R. Wolf) Date: Mon Aug 2 21:37:11 2004 Subject: SPUG: Nov. Mtg: Perl Security, Brian Hatch In-Reply-To: <20031113203641.A16147@timji.consultix-inc.com> (Tim Maher's message of "Thu, 13 Nov 2003 20:36:41 -0800") References: <20031113203641.A16147@timji.consultix-inc.com> Message-ID: > Pre- and Post- Meeting Activities > --------------------------------- > The pre-meeting dinner will be at the Cedars restaurant, at 50th > St. and Brooklyn, in the University District, near the Safeco > building where the meeting will take place. The phone number is > 527-5247. If you are planning to be there, please enter your name > on the Kwiki RSVP page by 2pm on the meeting day. (NOTE: Arrival > by 5:45pm is recommended for those ordering food). > > Those who comply with the RSVP policy, and are therefore > counted in the seating reservation, will have top priority for > seating at the speaker's table. http://spugwiki.perlocity.org/index.cgi?NextMeetingDinnerRSVPs -- Michael R. Wolf All mammals learn by playing! MichaelRWolf@att.net From MichaelRWolf at att.net Sat Nov 15 00:07:27 2003 From: MichaelRWolf at att.net (Michael R. Wolf) Date: Mon Aug 2 21:37:11 2004 Subject: SPUG: RE / Split Question In-Reply-To: (Yitzchak Scott-Thoennes's message of "Sun, 03 Aug 2003 13:14:17 -0700") References: <0307310002110E.00809@bng2406iy20tf> Message-ID: An old thread. I'm catching up.... sthoenna@efn.org (Yitzchak Scott-Thoennes) writes: > On Thu, 31 Jul 2003 00:02:11 -0700, krahnj@acm.org wrote: >>$ perl -le' >>$glob = "425 501 sttlwa01t 425 712 sttlwa01t tacwa02t 425 337 tacwa02t "; >> >>@array = $glob =~ /( \b\d+ \s+ \d+ (?:\s+ \D\w*)+ )/xg; >> >>print for @array; >>' >>425 501 sttlwa01t >>425 712 sttlwa01t tacwa02t >>425 337 tacwa02t > > The problem with this kind of approach is that it silently ignores bad > data (or good data if you make a mistake in your regex). I like to do > this kind of spliting with something like: > > @array = $glob =~ /\G ( \b\d+ \s+ \d+ (?:\s+ \D\w*)+ ) \s+ /xgc; > print "error!" if (pos($glob)||0) != length($glob) > > This always starts each match where the preceeding one left off and > then verifies that the entire string was consumed. Watch out for the required whitespace (\s+) at the end of the RE. It's used for interstitial whitespace, so it can't be completely optional (\s*). I've refined the RE a bit in this test harness to also match at end of string. Thanks for the "gc" modifier -- I had to look it up. It works nicely with the \G. Michael Wolf ================================================================ #! /usr/bin/perl -w while ($glob = ) { chomp $glob; @array = $glob =~ /\G ( \b\d+ \s+ \d+ (?:\s+ \D\w*)+ ) (?:\s+|\z) /xgc; unless (@array && (pos($glob)||0) == length($glob)) { my $fmt = qq(Error. Levtover string '%s', line %d, position %d\n); warn sprintf($fmt => $'||$glob, $., pos($glob)||0) } print "$...\n", (join "\n" => @array), "\n\n"; } __DATA__ Total trash Beginning trash 425 501 sttlwa01t End Trash 425 501 sttlwa01t 425 712 sttlwa01t tacwa02t 425 337 tacwa02t 425 501 sttlwa01t 425 712 sttlwa01t tacwa02t 425 337 tacwa02t 425 501 sttlwa01t 425 712 sttlwa01t tacwa02t 425 337 tacwa02t ... 425 501 sttlwa01t 425 712 sttlwa01t tacwa02t 425 337 tacwa02t 425 ... 425 501 sttlwa01t 425 712 sttlwa01t tacwa02t 425 337 tacwa02t 425 703 junk From jmates at sial.org Sat Nov 15 00:23:49 2003 From: jmates at sial.org (Jeremy Mates) Date: Mon Aug 2 21:37:11 2004 Subject: SPUG: Cedars parking diminished due to construction In-Reply-To: References: <20031113203641.A16147@timji.consultix-inc.com> Message-ID: <20031115062349.GR70697@darkness.sial.org> Note: The Cedars parking lot is of diminished capacity due to construction. Parking is possible in the University Heights lot (opposite the intersection) or on the street. From MichaelRWolf at att.net Sun Nov 16 16:20:50 2003 From: MichaelRWolf at att.net (Michael R. Wolf) Date: Mon Aug 2 21:37:11 2004 Subject: SPUG: Re: YAPC::Israel::2004 + trainings In-Reply-To: <20031116171255.18010.qmail@onion.perl.org> (Gabor Szabo's message of "Sun, 16 Nov 2003 19:26:34 +0200") References: <20031116171255.18010.qmail@onion.perl.org> Message-ID: Hear ye, hear ye. I just added YAPC::IL and a few other YAPC links to the SPUG Wiki (http://spugwiki.perlocity.org). Michael Gabor Szabo writes: > Hi, > > we are organizing the 2nd YAPC in Israel to be held on 26th of > February, 2004. On the previous conference there were about 100 > visitors. > 99 from Israel and MJD. http://www.perl.org.il/YAPC/2003/ > > In May, after the conference we had a session of 3 days with MJD, > organized by my company http://www.pti.co.il/mjd.html > I think MJD enjoyed it too. > > Next year - which is actually is very close now - I'd like to set up > similar set of classes. So if you are interested to come to Israel > to the conference and afterwords to teach 1-2 days, please contact > me ASAP. If we can figure out some setup that will benefit all sides > I'd be glad to make the effort to organize it. > > The dead-line to submit presentations to the conference is 30th November > but if you'd like also to teach a real class then please contact me > earlier. Maybe now. > > For further details about the conference visit > http://www.perl.org.il/YAPC/2004/ > > regards > Gabor Szabo > > -- Michael R. Wolf All mammals learn by playing! MichaelRWolf@att.net From MichaelRWolf at att.net Sun Nov 16 16:22:51 2003 From: MichaelRWolf at att.net (Michael R. Wolf) Date: Mon Aug 2 21:37:11 2004 Subject: SPUG: MOSS link on SPUG Wiki Message-ID: Anyone know why the MOSS link is commented out on the Wiki? -- Michael R. Wolf All mammals learn by playing! MichaelRWolf@att.net From MichaelRWolf at att.net Sun Nov 16 17:36:10 2003 From: MichaelRWolf at att.net (Michael R. Wolf) Date: Mon Aug 2 21:37:11 2004 Subject: SPUG: MOSS link on SPUG Wiki In-Reply-To: (Michael R. Wolf's message of "Sun, 16 Nov 2003 14:22:51 -0800") References: Message-ID: "Michael R. Wolf" writes: > Anyone know why the MOSS link is commented out on the Wiki? Never mind. I know. Only the graphic was commented out, and I already knew about that. They were taking up too much space. -- Michael R. Wolf All mammals learn by playing! MichaelRWolf@att.net From MichaelRWolf at att.net Sun Nov 16 17:53:18 2003 From: MichaelRWolf at att.net (Michael R. Wolf) Date: Mon Aug 2 21:37:12 2004 Subject: SPUG: group debugging [was: MOSS link on SPUG Wiki] In-Reply-To: (Michael R. Wolf's message of "Sun, 16 Nov 2003 15:36:10 -0800") References: Message-ID: "Michael R. Wolf" writes: > "Michael R. Wolf" writes: > >> Anyone know why the MOSS link is commented out on the Wiki? > > Never mind. I know. > > Only the graphic was commented out, and I already knew about that. > They were taking up too much space. Actually, it was *not* when I posted the question, but then it *was* when I looked back. Funny triangle. I saw that it was missing, so I posted the question asking why the text was gone. In the mean time, Tim found his previous editing mistake and re-enabled the text (but not the graphic). Soon thereafter, Andy let me know that nothing was broken. I began to doubt my observation and debugging skills. Time, cause, effect, action, and reaction were non-linear for me. It's working now. I didn't change anyghing. It wasn't working earlier. Nothing changed. (Actually, it did, but *I* didn't do it.) Multi-threaded debugging anyone? :-) -- Michael R. Wolf All mammals learn by playing! MichaelRWolf@att.net From MichaelRWolf at att.net Mon Nov 17 12:29:42 2003 From: MichaelRWolf at att.net (Michael R. Wolf) Date: Mon Aug 2 21:37:12 2004 Subject: SPUG: complementary groups to SPUG Message-ID: Since moving to Seattle last year, I've been fairly narrow in my focus of professional networking and technical interaction. I'm branching out a bit more. Because I have a high affinity for the SPUG group and the SPUG mind set, I'd be interested to learn what other groups you find useful as a complement to SPUG. I'm not looking for a replacement (there can't be one), I really am looking for additions. I've even posted links on the Wiki to the other ones I've attended: WSA array(bio) MOSS What other ones have you attended that you'd recommend? That you'd discourage? Thanks, Michael Wolf [Let's structure this thread as an open discussion for the general SPUG community, not just an answer to my question. That way everyone benefits.] [For extra credit: add info to the "Other Geekly Stuff" section of the Wiki (http://spugwiki.perlocity.org/).] -- Michael R. Wolf All mammals learn by playing! MichaelRWolf@att.net From tim at consultix-inc.com Mon Nov 17 15:05:06 2003 From: tim at consultix-inc.com (Tim Maher) Date: Mon Aug 2 21:37:12 2004 Subject: SPUG: complementary groups to SPUG In-Reply-To: References: Message-ID: <20031117210506.GA7326@jumpy.consultix-inc.com> On Mon, Nov 17, 2003 at 10:29:42AM -0800, Michael R. Wolf wrote: My main resource (other than SPUG) is the linux-list@ssc.com, probably the oldest Linux users group in the world. It was started by Phil Hughes, Randy Bentson, and a few others, and if memory serves we began meeting in early '93. Google can tell you the URL of the web page for signing up. Tim *--------------------------------------------------------------------------* | Tim Maher (206) 781-UNIX (866) DOC-PERL (866) DOC-UNIX | | tim(AT)Consultix-Inc.Com http://TeachMePerl.Com http://TeachMeUnix.Com | *+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-* |CLASSES: Minimal Perl: 12/1; Perl Programming: 12/2-4; Perl Modules: 12/5 | | Watch for my Manning book: "Minimal Perl for Shell Users & Programmers" | *--------------------------------------------------------------------------* From bri at ifokr.org Mon Nov 17 15:18:34 2003 From: bri at ifokr.org (Brian Hatch) Date: Mon Aug 2 21:37:12 2004 Subject: SPUG: complementary groups to SPUG In-Reply-To: <20031117210506.GA7326@jumpy.consultix-inc.com> References: <20031117210506.GA7326@jumpy.consultix-inc.com> Message-ID: <20031117211834.GA8844@ifokr.org> > My main resource (other than SPUG) is the linux-list@ssc.com, > probably the oldest Linux users group in the world. It was > started by Phil Hughes, Randy Bentson, and a few others, and > if memory serves we began meeting in early '93. linux-list@ssc.com is not a users group, it's a mailing list. GSLUG is the users group. Originally it used linux-list from SSC (the guys who publish linux journal) but now it has it's own gslug lists, which you can find at gslug.org. gslug-general is the 'talk' list, gslug-announce is the announce only list, although SLL (seattle linux list, aka linux-list@ssc.com) still has a boatload of traffic. -- Brian Hatch Can I request Systems and you to eat a Security Engineer little more http://www.ifokr.org/bri/ efficiently? Every message PGP signed -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://mail.pm.org/pipermail/spug-list/attachments/20031117/9a3c8650/attachment.bin From kellan at protest.net Mon Nov 17 15:34:58 2003 From: kellan at protest.net (kellan@protest.net) Date: Mon Aug 2 21:37:12 2004 Subject: SPUG: complementary groups to SPUG In-Reply-To: References: Message-ID: It isn't generically geeky, but for people working with nonprofits, and other social justice orgs, the Seattle 501TechClub is an interesting community of tech workers. http://www.nten.org/501techclub kellan On Mon, 17 Nov 2003, Michael R. Wolf wrote: > > Since moving to Seattle last year, I've been fairly narrow in my focus > of professional networking and technical interaction. I'm branching > out a bit more. > > Because I have a high affinity for the SPUG group and the SPUG mind > set, I'd be interested to learn what other groups you find useful as a > complement to SPUG. I'm not looking for a replacement (there can't be > one), I really am looking for additions. > > I've even posted links on the Wiki to the other ones I've attended: > WSA > array(bio) > MOSS > > What other ones have you attended that you'd recommend? That you'd > discourage? > > Thanks, > Michael Wolf > > [Let's structure this thread as an open discussion for the general > SPUG community, not just an answer to my question. That way everyone > benefits.] > > [For extra credit: add info to the "Other Geekly Stuff" section of the > Wiki (http://spugwiki.perlocity.org/).] > > -- > Michael R. Wolf > All mammals learn by playing! > MichaelRWolf@att.net > > > _____________________________________________________________ > Seattle Perl Users Group Mailing List > POST TO: spug-list@mail.pm.org http://spugwiki.perlocity.org > ACCOUNT CONFIG: http://mail.pm.org/mailman/listinfo/spug-list > MEETINGS: 3rd Tuesdays, U-District, Seattle WA > WEB PAGE: http://www.seattleperl.org > From tim at consultix-inc.com Mon Nov 17 17:55:30 2003 From: tim at consultix-inc.com (Tim Maher) Date: Mon Aug 2 21:37:12 2004 Subject: SPUG: 11/18 Mtg: Hatch on Security Message-ID: <20031117235530.GA7958@jumpy.consultix-inc.com> Hope to see lots of you at the talk, to help induct Brian Hatch into the world of SPUGdom! 8-} (He's been lurking on the list, but this will be his first meeting.) Don't forget to RSVP at spugwiki.perlocity.org for the dinner if you plan to attend. -Tim November Seattle Perl Users Group Meeting -------------------------------------------------------- Title: Perl Security Speaker: Brian Hatch Meeting Time: Tuesday, Nov. 18, 2003 7-9pm Location: SAFECO bldg, Brooklyn St. and NE 45th St. Cost: Admission is free and open to the general public. Info: http://seattleperl.org/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * About the talk: Perl has intrinsic features, such as dynamic string handling, which make it immune to common programming insecurities. However, this may lead programmers into believing that they can do no wrong in Perl -- which isn't the case! Brian will cover a number of best-practices you should use whenever coding in Perl, such as * Perl's taint mode * System/exec in list vs. string mode * Avoiding race conditions * Distrusting the user * Writing programs that run with elevated privileges About the speaker: Brian Hatch is the Chief Hacker at Onsight Inc., the author of Hacking Linux Exposed, and the co-maintainer of stunnel. He lives in Ballard, Seattle's hottest neighborhood for Open- Source activity -- and fresh lutefisk! Pre- and Post- Meeting Activities --------------------------------- The pre-meeting dinner will be at the Cedars restaurant, at 50th St. and Brooklyn, in the University District, near the Safeco building where the meeting will take place. The phone number is 527-5247. If you are planning to be there, please enter your name on the Kwiki RSVP page by 2pm on the meeting day. (NOTE: Arrival by 5:45pm is recommended for those ordering food). Those who comply with the RSVP policy, and are therefore counted in the seating reservation, will have top priority for seating at the speaker's table. *--------------------------------------------------------------------------* | Tim Maher, CEO (206) 781-UNIX (866) DOC-PERL (866) DOC-UNIX | | tim(AT)Consultix-Inc.Com http://TeachMePerl.Com http://TeachMeUnix.Com | *+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-* |CLASSES: Minimal Perl: 12/1; Perl Programming: 12/2-4; Perl Modules: 12/5 | | Watch for my Manning book: "Minimal Perl for Shell Users & Programmers" | *--------------------------------------------------------------------------* From MichaelRWolf at att.net Wed Nov 19 00:54:29 2003 From: MichaelRWolf at att.net (Michael R. Wolf) Date: Mon Aug 2 21:37:12 2004 Subject: SPUG: Re: complementary groups to SPUG In-Reply-To: (Michael R. Wolf's message of "Mon, 17 Nov 2003 10:29:42 -0800") References: Message-ID: Michael R. Wolf writes: > Since moving to Seattle last year, I've been fairly narrow in my focus > of professional networking and technical interaction. I'm branching > out a bit more. Has anyone attended any ACM or IEEE events in Seattle? -- Michael R. Wolf All mammals learn by playing! MichaelRWolf@att.net From tim at consultix-inc.com Wed Nov 19 11:55:48 2003 From: tim at consultix-inc.com (Tim Maher) Date: Mon Aug 2 21:37:12 2004 Subject: SPUG: Osoft guys want to present "OSource Training" product Message-ID: <20031119175548.GA25642@jumpy.consultix-inc.com> SPUGsters, We have a proposal from a vendor for a talk in December on a new "Standardized training platform" for delivery of "Open Source referenceware, training contentt, and code". Does anybody know these people, know of their company (osoft.com; a cover-page only web site), or know anything about their product? I'm looking for recommendations on whether we should invite them to speak or not. I know quite a bit about training technology, but I don't hear them mentioning the features *I* think are important in their "standardized training platform" -- but this might just be a miscommunication. Let me know what you think . . . the proposal follows. -Tim P.S. I wonder how Llamacard would match up against their product? ============================================================== | Tim Maher, Ph.D. tim(AT)teachmeperl.com | | SPUG Founder & Leader spug(AT)seattleperl.com | | Seattle Perl Users Group http://www.seattleperl.com | | SPUG Wiki Site http://spugwiki.perlocity.org | | Perl Certification Site http://perlcert.perlocity.org | ============================================================== Dear Tim, My partner, Gary Varnell, and I have been working for over a year to develop a tool that would help train and educate the Open Source community by providing a standardized training platform through which Open Source referenceware, training content and code can be delivered. We wanted to let you and the rest of the SPUG community have the first look at our beta at the December SPUG meeting. Interestingly, we have already converted most of the Perl referenceware into this format, which allows you to search, bookmark, and append content across all files or packages. The program we developed will be launched in Q1 2004 and will be offered as an open source product through our website, www.OSoft.com . Currently, there are no standardized tools for Open Source training and reference content retrieval. PDF, CHM, POD, and HTML formats are all common formats. Working in independent, multiple formats is frustrating to developers who are faced with different ways to retrieve information. We figured, what if there were one standard format for Perl, Linux, MySQL, Php, etc. that would allow you to search, bookmark, and append content across programs, all in one format? This is what we were able to accomplish. Developers who have studied our proposal comment on their ability to save time, learn faster, and often note the convenience of having all their references on hand whenever they need it. We are a local development team headquartered in Tacoma and it would be an honor to meet you and the rest of the SPUG members. We would welcome any feedback from you and your members as we roll into the final stages of development. We hope that you can fit us in to your schedule. The success of the OS community depends on the participation of its members. Our contribution to the OS community is so unique that I guarantee SPUG will not be disappointed. If you would like to preview the product prior to the meeting, please let us know. We look forward to hearing from you. Our contact information is noted below. Sincerely, Mark Carey Mark D. Carey President OSoft, Inc. 2511 S. Hood Street Tacoma, WA 98402 (253) 284-0475 mcarey@osoft.com www.OSoft.com P.S. Here are our Bios Gary Varnell, CTO Gary Varnell is the chief technology officer of OSoft and has the vision and experience in Web design, application development, database construction and management, and back-end programming. Gary is the founder of DGS, designing web websites from its headquarters in Lacey, WA since 1995. DGS quickly became known as a local and regional leader in website design. DGS also began work in the 3D-graphics industry, creating digital animations for the web as well as for broadcast video. DGS has continued to grow in its capabilities, enabling it to offer clients cutting edge solutions to their business needs. Gary has experience creating software solutions using Open Source technology such as Perl, PHP and MySQL. AccessProbe, a program developed by Gary, is a successful Apache Log analyzer built with Perl and is featured on www.Perl.com . AccessProbe has been referred to as an example of building large scale applications in PERL. DGS can be found at www.2dgs.com . Mark Carey, President Mark Carey graduated from Northeastern University with a B.S. degree and later received a MBA degree in marketing. After 6 years in the military and 18 years in sales and marketing, Mark started his own software training business. The Helper Company was founded in March 2001 and has become a leading regional software training company in the NW, providing online software training for government agencies, businesses, and dozens of academic institutions. Mark was instrumental in creating new markets for innovative online training. This background has been the foundation upon which OSoft is formed. Helper Company businesses can be found at www.mysoftwarehelper.com and www.myclassroomhelper.com From sthoenna at efn.org Wed Nov 19 14:16:38 2003 From: sthoenna at efn.org (Yitzchak Scott-Thoennes) Date: Mon Aug 2 21:37:12 2004 Subject: SPUG: Osoft guys want to present "OSource Training" product In-Reply-To: <20031119175548.GA25642@jumpy.consultix-inc.com> References: <20031119175548.GA25642@jumpy.consultix-inc.com> Message-ID: <20031119201638.GA1860@efn.org> On Wed, Nov 19, 2003 at 09:55:48AM -0800, Tim Maher wrote: > > Let me know what you think . . . the proposal follows. I'd be more interested in hearing the CTO than the marketeering President (though my success rate at making it to meetings has been pretty bad.) From cel1 at ix.netcom.com Wed Nov 19 19:47:25 2003 From: cel1 at ix.netcom.com (Curtis Lacy) Date: Mon Aug 2 21:37:12 2004 Subject: SPUG: Trouble using a hash Message-ID: <003201c3af08$3ffcd800$4de84b43@cel> Simple question which I hope someone will take the time to answer. I am doing a little Perl script to do some studies of thoroughbred horse racing (what an original idea!). One thing I need to know is when a previous race was on the same track or on the same track circuit. [For example, Santa Anita, Hollywood Park, and Del Mar are all considered to be in the Southern California circuit.] So I have a hash defined and initialized as follows: my %trackCircuit = ( Hol=>'SoCal', Aqu=>'NYRA' ); just to give a short sample. There is an array of items, @LR, which describes the last race run by the horse. The track is in the first spot, $LR[0]. In the debugger, when I try to step through a line which has a term like $trackCircuit{ $LR[0] }, it complains about an uninitialized value. I get the same squawk if I try to do it from the debugger: p $trackCircuit{ $LR[0] } Yet, when I do p $LR[0] it gives me the correct string "Hol", and if I try p $trackCircuit{ "Hol" } it gives the expected "SoCal". I am at a loss to know what to try next. Curtis Lacy cel1@ix.netcom.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/spug-list/attachments/20031119/0eb23749/attachment.htm From keith.reed at philips.com Wed Nov 19 20:17:18 2003 From: keith.reed at philips.com (keith.reed@philips.com) Date: Mon Aug 2 21:37:12 2004 Subject: SPUG: Trouble using a hash Message-ID: I like to use Data::Dumper to assist my debugging of hashes. in the debugger type x use Data::Dumper; x print Dumper(%trackCircuit) You'll get a nicely formatted dump of the hash that might provide some clues as to where you're going wrong. Keith To: cc: (bcc: Keith Reed/ATL-BTL/MS/PHILIPS) Subject: SPUG: Trouble using a hash "Curtis Lacy" Classification: Sent by: spug-list-bounces@mail.pm .org 11/19/2003 05:47 PM Simple question which I hope someone will take the time to answer. I am doing a little Perl script to do some studies of thoroughbred horse racing (what an original idea!). One thing I need to know is when a previous race was on the same track or on the same track circuit. [For example, Santa Anita, Hollywood Park, and Del Mar are all considered to be in the Southern California circuit.] So I have a hash defined and initialized as follows: my %trackCircuit = ( Hol=>'SoCal', Aqu=>'NYRA' ); just to give a short sample. There is an array of items, @LR, which describes the last race run by the horse. The track is in the first spot, $LR[0]. In the debugger, when I try to step through a line which has a term like $trackCircuit{ $LR[0] }, it complains about an uninitialized value. I get the same squawk if I try to do it from the debugger: p $trackCircuit{ $LR[0] } Yet, when I do p $LR[0] it gives me the correct string "Hol", and if I try p $trackCircuit{ "Hol" } it gives the expected "SoCal". I am at a loss to know what to try next. Curtis Lacy cel1@ix.netcom.com _____________________________________________________________ Seattle Perl Users Group Mailing List POST TO: spug-list@mail.pm.org http://spugwiki.perlocity.org ACCOUNT CONFIG: http://mail.pm.org/mailman/listinfo/spug-list MEETINGS: 3rd Tuesdays, U-District, Seattle WA WEB PAGE: http://www.seattleperl.org From florentin_ionescu at yahoo.com Thu Nov 20 02:16:23 2003 From: florentin_ionescu at yahoo.com (Florentin Ionescu) Date: Mon Aug 2 21:37:12 2004 Subject: SPUG: weired windows fonts Message-ID: On windows XP , I encounter something strange - a file that contains, say a line [ this line ] is red by perl something like this [ t h i s l i n e ]. Windows "type" build-in command sees the file ok but perl apparently has some problem reading the file. Both vim and/or notepad think the file is ok. Does anybody please know/has idea on what goes wrong ? Thank you, Florentin. From MichaelRWolf at att.net Thu Nov 20 06:24:18 2003 From: MichaelRWolf at att.net (Michael R. Wolf) Date: Mon Aug 2 21:37:12 2004 Subject: SPUG: Trouble using a hash In-Reply-To: <003201c3af08$3ffcd800$4de84b43@cel> (Curtis Lacy's message of "Wed, 19 Nov 2003 17:47:25 -0800") References: <003201c3af08$3ffcd800$4de84b43@cel> Message-ID: "Curtis Lacy" writes: > Simple question which I hope someone will take the time to answer. I cannot reproduce your problem. Here's a test script that works without errors when run normally and when run through the debugger. Perhaps you could distill your code down to a minimal non-working section and post it. Michael ================================================================ #! /usr/bin/perl -w my %trackCircuit = ( Hol=>'SoCal', Aqu=>'NYRA' ); @LR = ("Hol"); $where = $trackCircuit{ $LR[0] }; print $where; __END__ DB<1> x $where 0 'SoCal' DB<2> x $trackCircuit{ $LR[0] } 0 'SoCal' DB<3> x $LR[0] 0 'Hol' DB<4> p $where SoCal DB<5> p $trackCircuit{ $LR[0] } SoCal DB<6> p $LR[0] Hol DB<7> -- Michael R. Wolf All mammals learn by playing! MichaelRWolf@att.net From david.dyck at fluke.com Thu Nov 20 09:21:44 2003 From: david.dyck at fluke.com (David Dyck) Date: Mon Aug 2 21:37:12 2004 Subject: SPUG: weired windows fonts In-Reply-To: References: Message-ID: On Thu, 20 Nov 2003 at 00:16 -0800, Florentin Ionescu On windows XP , I encounter something strange - a file > that contains, say a line > [ this line ] > is red by perl something like this > [ t h i s l i n e ]. > > Windows "type" build-in command sees the file ok but perl > apparently has some problem reading the file. Both vim and/or > notepad think the file is ok. > > Does anybody please know/has idea on what goes wrong ? The file is encoded in windows unicode format If you create a file in notepad.exe and save it using "save as" and set the Encoding to Unicode you can create such a file as my foo.txt >type foo.txt this is foo.txt >debug foo.txt -d 1355:0100 FF FE 74 00 68 00 69 00-73 00 20 00 69 00 73 00 ..t.h.i.s. .i.s. 1355:0110 20 00 66 00 6F 00 6F 00-2E 00 74 00 78 00 74 00 .f.o.o...t.x.t. 1355:0120 0D 00 0A 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 1355:0130 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 1355:0140 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 1355:0150 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 1355:0160 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 1355:0170 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ -q perl will print it like this $ perl -ple '' foo.txt ?_t h i s i s f o o . t x t From pdarley at kinesis-cem.com Thu Nov 20 10:09:11 2003 From: pdarley at kinesis-cem.com (Peter Darley) Date: Mon Aug 2 21:37:12 2004 Subject: SPUG: Trouble using a hash In-Reply-To: Message-ID: Keith, Data Dumper rocks, but don't you need to pass it a scalar? Like print Dumper(\%trackCircuit)? Thanks, Peter Darley -----Original Message----- From: spug-list-bounces@mail.pm.org [mailto:spug-list-bounces@mail.pm.org]On Behalf Of keith.reed@philips.com Sent: Wednesday, November 19, 2003 6:17 PM To: spug-list@mail.pm.org Subject: Re: SPUG: Trouble using a hash I like to use Data::Dumper to assist my debugging of hashes. in the debugger type x use Data::Dumper; x print Dumper(%trackCircuit) You'll get a nicely formatted dump of the hash that might provide some clues as to where you're going wrong. Keith To: cc: (bcc: Keith Reed/ATL-BTL/MS/PHILIPS) Subject: SPUG: Trouble using a hash "Curtis Lacy" Classification: Sent by: spug-list-bounces@mail.pm .org 11/19/2003 05:47 PM Simple question which I hope someone will take the time to answer. I am doing a little Perl script to do some studies of thoroughbred horse racing (what an original idea!). One thing I need to know is when a previous race was on the same track or on the same track circuit. [For example, Santa Anita, Hollywood Park, and Del Mar are all considered to be in the Southern California circuit.] So I have a hash defined and initialized as follows: my %trackCircuit = ( Hol=>'SoCal', Aqu=>'NYRA' ); just to give a short sample. There is an array of items, @LR, which describes the last race run by the horse. The track is in the first spot, $LR[0]. In the debugger, when I try to step through a line which has a term like $trackCircuit{ $LR[0] }, it complains about an uninitialized value. I get the same squawk if I try to do it from the debugger: p $trackCircuit{ $LR[0] } Yet, when I do p $LR[0] it gives me the correct string "Hol", and if I try p $trackCircuit{ "Hol" } it gives the expected "SoCal". I am at a loss to know what to try next. Curtis Lacy cel1@ix.netcom.com _____________________________________________________________ Seattle Perl Users Group Mailing List POST TO: spug-list@mail.pm.org http://spugwiki.perlocity.org ACCOUNT CONFIG: http://mail.pm.org/mailman/listinfo/spug-list MEETINGS: 3rd Tuesdays, U-District, Seattle WA WEB PAGE: http://www.seattleperl.org _____________________________________________________________ Seattle Perl Users Group Mailing List POST TO: spug-list@mail.pm.org http://spugwiki.perlocity.org ACCOUNT CONFIG: http://mail.pm.org/mailman/listinfo/spug-list MEETINGS: 3rd Tuesdays, U-District, Seattle WA WEB PAGE: http://www.seattleperl.org From creede at penguinsinthenight.com Thu Nov 20 11:59:43 2003 From: creede at penguinsinthenight.com (Creede Lambard) Date: Mon Aug 2 21:37:12 2004 Subject: SPUG: Trouble using a hash In-Reply-To: References: Message-ID: <20031120175943.GA1381@igor.penguinsinthenight.com> You have to pass your argument as a reference. And yes, I know a reference is a scalar. :) On Thu, Nov 20, 2003 at 08:09:11AM -0800, Peter Darley wrote: > Keith, > Data Dumper rocks, but don't you need to pass it a scalar? Like print > Dumper(\%trackCircuit)? > Thanks, > Peter Darley > -- ======================================================================== People ask me what I do all * .~. ( : Creede Lambard : winter when there's no base- . / V \ . :-----------------------------: ball. I'll tell you what I /( )\ : creede at : do: I stare out the window ^^-^^ : penguinsinthenight : and wait for spring. -Rogers Hornsby : dot com : ======================================================================== From tim at consultix-inc.com Thu Nov 20 13:15:29 2003 From: tim at consultix-inc.com (Tim Maher) Date: Mon Aug 2 21:37:12 2004 Subject: SPUG: Need list of Perl-on-Windows people Message-ID: <20031120191529.GA2318@jumpy.consultix-inc.com> SPUG is periodically asked to help people hook up with others who are knowledgeable about using Perl on a Windows platform. I just got another request today, from a guy who has money to spend on such folks! $-} If you possess such knowledge, and are not afraid to admit that to the world 8-}, please add your name and email info to this page on the Kwiki site: http://spugwiki.perlocity.org/index.cgi?PerlOnWindows -Tim *--------------------------------------------------------------------------* | Tim Maher, CEO (206) 781-UNIX (866) DOC-PERL (866) DOC-UNIX | | tim(AT)Consultix-Inc.Com http://TeachMePerl.Com http://TeachMeUnix.Com | *+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-* |CLASSES: Minimal Perl: 12/1; Perl Programming: 12/2-4; Perl Modules: 12/5 | | Watch for my Manning book: "Minimal Perl for Shell Users & Programmers" | *--------------------------------------------------------------------------* From tim at consultix-inc.com Thu Nov 20 14:00:40 2003 From: tim at consultix-inc.com (Tim Maher) Date: Mon Aug 2 21:37:12 2004 Subject: SPUG: Perl Certification article freely available Message-ID: <20031120200040.GA2559@jumpy.consultix-inc.com> Courtesy of the nice people over at The Perl Journal, my October article called "Is it Time for Perl Certification?" is now available for free at http://teachmeperl.com, under an obvious link of the same name. But I still think you should subscribe over at www.tpj.com. 8-} *--------------------------------------------------------------------------* | Tim Maher, CEO (206) 781-UNIX (866) DOC-PERL (866) DOC-UNIX | | tim(AT)Consultix-Inc.Com http://TeachMePerl.Com http://TeachMeUnix.Com | *+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-* |CLASSES: Minimal Perl: 12/1; Perl Programming: 12/2-4; Perl Modules: 12/5 | | Watch for my Manning book: "Minimal Perl for Shell Users & Programmers" | *--------------------------------------------------------------------------* From david.dyck at fluke.com Thu Nov 20 14:19:55 2003 From: david.dyck at fluke.com (David Dyck) Date: Mon Aug 2 21:37:12 2004 Subject: SPUG: weired windows fonts (encoding(utf16)) In-Reply-To: References: Message-ID: On Thu, 20 Nov 2003 at 07:21 -0800, David Dyck wrote: > On Thu, 20 Nov 2003 at 00:16 -0800, Florentin Ionescu > On windows XP , I encounter something strange - a file > > that contains, say a line > > [ this line ] > > is red by perl something like this > > [ t h i s l i n e ]. > > > > Does anybody please know/has idea on what goes wrong ? > The file is encoded in windows unicode format > If you create a file in notepad.exe and save it > using "save as" and set the Encoding to Unicode > you can create such a file as my foo.txt > perl will print it like this > $ perl -ple '' foo.txt > ?_t h i s i s f o o . t x t I really should have added that if you use perl 5.8 you can use perl5.8 -lwe "open FH, q(<:encoding(utf16)), q(foo.txt); while () { print }" and get This is foo.txt From mako at debian.org Fri Nov 21 04:11:23 2003 From: mako at debian.org (Benj. Mako Hill) Date: Mon Aug 2 21:37:12 2004 Subject: SPUG: complementary groups to SPUG In-Reply-To: References: Message-ID: <20031121101123.GB812@kamna> On Mon, Nov 17, 2003 at 10:29:42AM -0800, Michael R. Wolf wrote: > What other ones have you attended that you'd recommend? That you'd > discourage? Check out the debian-seattle-soc list for notices and coordination of key signings. It's only been used for 2-3 events but as people come through town that want to do key signings, using the -soc list can be great for arranging ad-hoc key signings. The mailing list info can be found at: http://lists.yukidoke.org/listinfo/debian-seattle-soc Regards, Mako -- Benjamin Mako Hill mako@debian.org http://mako.yukidoke.org/ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://mail.pm.org/pipermail/spug-list/attachments/20031121/28d54034/attachment.bin From cmeyer at helvella.org Fri Nov 21 12:54:55 2003 From: cmeyer at helvella.org (Colin Meyer) Date: Mon Aug 2 21:37:12 2004 Subject: SPUG: Osoft guys want to present "OSource Training" product In-Reply-To: <20031119175548.GA25642@jumpy.consultix-inc.com>; from tim@consultix-inc.com on Wed, Nov 19, 2003 at 09:55:48AM -0800 References: <20031119175548.GA25642@jumpy.consultix-inc.com> Message-ID: <20031121105455.A5182@hobart.helvella.org> On Wed, Nov 19, 2003 at 09:55:48AM -0800, Tim Maher wrote: > SPUGsters, > > We have a proposal from a vendor for a talk in December on a new > "Standardized training platform" for delivery of "Open Source > referenceware, training contentt, and code". [...] > Let me know what you think . . . the proposal follows. If the presentation is about the problem, its difficulties and how they were overcome by the use of Perl, then it sounds great. If the presentation is about how good their software is, and why I need to use it, then I won't attend. It is unclear from the proposal what sort of talk it will be, though it does mention that the software will be offered as an open source product. SPUG has a superb track record of excellent technical talks, with no sales pitches. Let's keep it that way! -Colin. From tim at consultix-inc.com Fri Nov 21 13:09:41 2003 From: tim at consultix-inc.com (Tim Maher) Date: Mon Aug 2 21:37:12 2004 Subject: SPUG: Osoft guys want to present "OSource Training" product In-Reply-To: <20031121105455.A5182@hobart.helvella.org> References: <20031119175548.GA25642@jumpy.consultix-inc.com> <20031121105455.A5182@hobart.helvella.org> Message-ID: <20031121190941.GA8257@jumpy.consultix-inc.com> On Fri, Nov 21, 2003 at 10:54:55AM -0800, Colin Meyer wrote: > > If the presentation is about the problem, its difficulties and > how they were overcome by the use of Perl, then it sounds > great. If the presentation is about how good their software is, > and why I need to use it, then I won't attend. More details have been obtained; see below. > It is unclear from the proposal what sort of talk it will be, though > it does mention that the software will be offered as an open source > product. > > SPUG has a superb track record of excellent technical talks, with no > sales pitches. Let's keep it that way! > > -Colin. I talked to the *developer* of the product yesterday (*not* the marketing guy, who had initially contacted me), and found out a few things. First, the product is written entirely in Java! Second, the only connection with Perl is that they have indexed all the Perl reference documents for use in a "demo" that shows how you can jump from one document to another and search across the whole set, etc. Third, it is an Open Source project, so you can get the software for free, and use it as you wish. Fourth, they will be selling some products, which I will apparently consist of packages containing the indexing software and the Perl (or PHP or Python) indices. Given this new info, I'm inclined to think that we'd be better off with a talk by Colin on whatever he's into these days than hosting these guys. How about it, "Shroomy"? *--------------------------------------------------------------------------* | Tim Maher, CEO (206) 781-UNIX (866) DOC-PERL (866) DOC-UNIX | | tim(AT)Consultix-Inc.Com http://TeachMePerl.Com http://TeachMeUnix.Com | *+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-* |CLASSES: Minimal Perl: 12/1; Perl Programming: 12/2-4; Perl Modules: 12/5 | | Watch for my Manning book: "Minimal Perl for Shell Users & Programmers" | *--------------------------------------------------------------------------* From bill at celestial.com Fri Nov 21 13:57:16 2003 From: bill at celestial.com (Bill Campbell) Date: Mon Aug 2 21:37:12 2004 Subject: SPUG: Osoft guys want to present "OSource Training" product In-Reply-To: <20031121105455.A5182@hobart.helvella.org> References: <20031119175548.GA25642@jumpy.consultix-inc.com> <20031121105455.A5182@hobart.helvella.org> Message-ID: <20031121195716.GA48385@alexis.mi.celestial.com> On Fri, Nov 21, 2003, Colin Meyer wrote: >On Wed, Nov 19, 2003 at 09:55:48AM -0800, Tim Maher wrote: >> SPUGsters, >> >> We have a proposal from a vendor for a talk in December on a new >> "Standardized training platform" for delivery of "Open Source >> referenceware, training contentt, and code". > >[...] > >> Let me know what you think . . . the proposal follows. > >If the presentation is about the problem, its difficulties and how they >were overcome by the use of Perl, then it sounds great. If the >presentation is about how good their software is, and why I need to use >it, then I won't attend. > >It is unclear from the proposal what sort of talk it will be, though >it does mention that the software will be offered as an open source >product. > >SPUG has a superb track record of excellent technical talks, with no >sales pitches. Let's keep it that way! I agree with this. I talked to Tim at this week's meeting saying I can do a presentation on using the CGI::Application, CGI::Session, and HTML::Template packages to build web-based systems. Bill -- INTERNET: bill@Celestial.COM Bill Campbell; Celestial Software LLC UUCP: camco!bill PO Box 820; 6641 E. Mercer Way FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 URL: http://www.celestial.com/ The Constitution is a written instrument. As such, its meaning does not alter. That which it meant when it was adopted, it means now. -- SOUTH CAROLINA v. US, 199 U.S. 437, 448 (1905) From wildwood_players at yahoo.com Fri Nov 21 15:11:04 2003 From: wildwood_players at yahoo.com (Richard Wood) Date: Mon Aug 2 21:37:12 2004 Subject: SPUG: Osoft guys want to present "OSource Training" product In-Reply-To: <20031121195716.GA48385@alexis.mi.celestial.com> Message-ID: <20031121211104.49656.qmail@web11505.mail.yahoo.com> Personally, I would really like to see a presentation on using one of the Template systems. Especially one that does something interesting and difficult. I thought Tuesday's meeting was very good! Rich Wood --- Bill Campbell wrote: > On Fri, Nov 21, 2003, Colin Meyer wrote: > >On Wed, Nov 19, 2003 at 09:55:48AM -0800, Tim Maher > wrote: > >> SPUGsters, > >> > >> We have a proposal from a vendor for a talk in > December on a new > >> "Standardized training platform" for delivery of > "Open Source > >> referenceware, training contentt, and code". > > > >[...] > > > >> Let me know what you think . . . the proposal > follows. > > > >If the presentation is about the problem, its > difficulties and how they > >were overcome by the use of Perl, then it sounds > great. If the > >presentation is about how good their software is, > and why I need to use > >it, then I won't attend. > > > >It is unclear from the proposal what sort of talk > it will be, though > >it does mention that the software will be offered > as an open source > >product. > > > >SPUG has a superb track record of excellent > technical talks, with no > >sales pitches. Let's keep it that way! > > I agree with this. > > I talked to Tim at this week's meeting saying I can > do a presentation on > using the CGI::Application, CGI::Session, and > HTML::Template packages to > build web-based systems. > > Bill > -- > INTERNET: bill@Celestial.COM Bill Campbell; > Celestial Software LLC > UUCP: camco!bill PO Box 820; 6641 E. > Mercer Way > FAX: (206) 232-9186 Mercer Island, WA > 98040-0820; (206) 236-1676 > URL: http://www.celestial.com/ > > The Constitution is a written instrument. As such, > its meaning > does not alter. That which it meant when it was > adopted, it > means now. > -- SOUTH CAROLINA v. US, 199 U.S. 437, 448 (1905) > _____________________________________________________________ > Seattle Perl Users Group Mailing List > POST TO: spug-list@mail.pm.org > http://spugwiki.perlocity.org > ACCOUNT CONFIG: > http://mail.pm.org/mailman/listinfo/spug-list > MEETINGS: 3rd Tuesdays, U-District, Seattle WA > WEB PAGE: http://www.seattleperl.org > ===== Richard O. Wood Wildwood IT Consultants, Inc. wildwood_players@yahoo.com 425.281.1914 mobile 206.544.9885 desk __________________________________ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ From bill at celestial.com Fri Nov 21 15:59:22 2003 From: bill at celestial.com (Bill Campbell) Date: Mon Aug 2 21:37:12 2004 Subject: SPUG: Osoft guys want to present "OSource Training" product In-Reply-To: <20031121211104.49656.qmail@web11505.mail.yahoo.com> References: <20031121195716.GA48385@alexis.mi.celestial.com> <20031121211104.49656.qmail@web11505.mail.yahoo.com> Message-ID: <20031121215922.GA69786@alexis.mi.celestial.com> On Fri, Nov 21, 2003, Richard Wood wrote: >Personally, > >I would really like to see a presentation on using one >of the Template systems. Especially one that does >something interesting and difficult. CGI::Application together with HTML::Template makes it easy to separate the page design from the perl coding. One of the problems I've always had when looking at php is that it mixes the HTML page with code making both difficult to understand. Bill -- INTERNET: bill@Celestial.COM Bill Campbell; Celestial Systems, Inc. UUCP: camco!bill PO Box 820; 6641 E. Mercer Way FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 URL: http://www.celestial.com/ ``Microsoft IIS has more holes than a wheel of Swiss Cheese after a shotgun blast'' -- John Dvorak From tim at consultix-inc.com Fri Nov 21 16:53:15 2003 From: tim at consultix-inc.com (Tim Maher) Date: Mon Aug 2 21:37:12 2004 Subject: SPUG: Article on Template systems Message-ID: <20031121225315.GA9867@jumpy.consultix-inc.com> Here's a useful overview of the various templating systems: http://www.perl.com/pub/a/2001/08/21/templating.html. *--------------------------------------------------------------------------* | Tim Maher, CEO (206) 781-UNIX (866) DOC-PERL (866) DOC-UNIX | | tim(AT)Consultix-Inc.Com http://TeachMePerl.Com http://TeachMeUnix.Com | *+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-* |CLASSES: Minimal Perl: 12/1; Perl Programming: 12/2-4; Perl Modules: 12/5 | | Watch for my Manning book: "Minimal Perl for Shell Users & Programmers" | *--------------------------------------------------------------------------* From bri at ifokr.org Fri Nov 21 23:03:04 2003 From: bri at ifokr.org (Brian Hatch) Date: Mon Aug 2 21:37:12 2004 Subject: SPUG: Osoft guys want to present "OSource Training" product In-Reply-To: <20031121211104.49656.qmail@web11505.mail.yahoo.com> References: <20031121195716.GA48385@alexis.mi.celestial.com> <20031121211104.49656.qmail@web11505.mail.yahoo.com> Message-ID: <20031122050304.GS26433@ifokr.org> > I thought Tuesday's meeting was very good! Thanks -- sorry it wasn't up to my normal standards. Generally I like to start the overheads the night before, not the afternoon of... I hope to have the slides online by Sunday. My wife had premature labour, and is in the hospital now until the twins are born, which will likely be around christmas, so my 'free time' just became non existant. Let that be a warning to potential speakers -- talk at SPUG on your first attendance and weird things happen. Labour, snow in Ballard, who knows what else... -- Brian Hatch "Other e-mail programs are Systems and not designed to enable Security Engineer virus replication". http://www.ifokr.org/bri/ -- Microsoft wrt non M$ products Every message PGP signed -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://mail.pm.org/pipermail/spug-list/attachments/20031121/8c5d289c/attachment.bin From kahn at cpan.org Sat Nov 22 14:02:41 2003 From: kahn at cpan.org (Jeremy G Kahn) Date: Mon Aug 2 21:37:12 2004 Subject: SPUG: A recreational Perl challenge Message-ID: <3FBFC0E1.80003@cpan.org> From the enjoyable Language Log weblog: http://itre.cis.upenn.edu/~myl/languagelog/archives/000133.html The article below suggests a Perl coding challenge that I wish I had the time for. It's not exactly useful, but it's fun. Acme::Justify, perhaps. I quote below (best viewed in monowidth font) Right-justified fixed-width raw text, no padding It is possible to construct raw English text that has a justified right margin without employing any of the space padding that is used by old formatting programs like nroff that were designed to fake right justified text using daisy-wheel printers and fixed-width fonts reminiscent of typewriters. To show that it is not a problem to do this, I offer this example (and if your browser doesn't show this as right-justified, you are using an insane font setting -- your fixed-width font default must be a non-fixed-width font or something). As Mark Liberman has pointed out in connection with a message I recently sent him that had this property, a problem in recreational computer science is suggested by the possibility of right-justified raw text: write a program that takes raw text paragraphs as input and produces right-justified versions of them, respecting certain tolerances and line-length preferences, using transformations that preserve rough synonymy, varying optional punctuation and substituting synonymous word sequences as necessary but never adding extra spaces. Posted by Geoffrey K. Pullum at November 20, 2003 03:01 PM From florentin_ionescu at yahoo.com Sat Nov 22 15:21:11 2003 From: florentin_ionescu at yahoo.com (Florentin Ionescu) Date: Mon Aug 2 21:37:12 2004 Subject: SPUG: weired windows fonts (encoding(utf16)) In-Reply-To: References: Message-ID: On Thu, 20 Nov 2003, David Dyck wrote : ? Date: Thu, 20 Nov 2003 12:19:55 -0800 (PST) ? From: David Dyck ? To: Florentin Ionescu ? Cc: spug-list@mail.pm.org ? Subject: Re: SPUG: weired windows fonts (encoding(utf16)) ? ? On Thu, 20 Nov 2003 at 07:21 -0800, David Dyck wrote: ? ? > On Thu, 20 Nov 2003 at 00:16 -0800, Florentin Ionescu > On windows XP , I encounter something strange - a file ? > > that contains, say a line ? > > [ this line ] ? > > is red by perl something like this ? > > [ t h i s l i n e ]. ? > > ? > > Does anybody please know/has idea on what goes wrong ? ? ? > The file is encoded in windows unicode format ? > If you create a file in notepad.exe and save it ? > using "save as" and set the Encoding to Unicode ? > you can create such a file as my foo.txt ? > perl will print it like this ? ? > $ perl -ple '' foo.txt ? > ?_t h i s i s f o o . t x t ? ? I really should have added that if you use perl 5.8 you can use ? perl5.8 -lwe "open FH, q(<:encoding(utf16)), q(foo.txt); while () { print }" ? and get ? This is foo.txt ? Thank you everybody for help. Indeed the file that created problems was unicode encoded. Problem solved. From MichaelRWolf at att.net Sun Nov 23 04:55:09 2003 From: MichaelRWolf at att.net (Michael R. Wolf) Date: Mon Aug 2 21:37:12 2004 Subject: SPUG: MS PDC conference overview Message-ID: With a first line like this, I couldn't resist.. :-) "If you were unable to attend Microsoft's PDC, you're in luck." Actually, it's too easy (and not productive) to MS bash, so I wanted to balance my reputation by passing on what I heard recently at the C++ user's group. This WSA event is a collection of the best talks from a multi-track conference, all distilled into 1 day. A great value if you're into MS, as many Perl folks are. ================================================================ http://www.wsa.org/events/event.asp?EventID=346 12/16/03 7:30am to 5:00pm If you were unable to attend Microsoft's October PDC (Professional Developers Conference), you're in luck. With the help of some great WSA supporters, the best speakers from the PDC will give an encore performance here in Seattle. Attend this full-day session and learn about the latest technologies and tools in Microsoft's Longhorn, Whidbey and Yukon initiatives. ================================================================ -- Michael R. Wolf All mammals learn by playing! MichaelRWolf@att.net From m3047 at inwa.net Sun Nov 23 14:40:14 2003 From: m3047 at inwa.net (Fred Morris) Date: Mon Aug 2 21:37:12 2004 Subject: SPUG: WSA + UCITA (how about WashTech?) Message-ID: Lest anyone forget just who/what the Washington Software Alliance/Association is: http://www.theregister.co.uk/content/archive/14440.html Or try Googling this: http://www.google.com/search?hl=en&ie=ISO-8859-1&q=%2B%22Washington+Software+Alliance%22+%2BUCITA&btnG=Google+Search If you're going to mention WSA, you should mention WashTech, who provide training have meetings, etc. etc. http://www.washtech.org/ Fair's fair... of course, they want your money too. Both of these are different sides of the same coin, and collectively they don't encompass "what we do". It's worth noting that the Attorney General here in the State of Washington lobbied against UCITA as anti-consumer. I think we need to get past the idea that there's a single "software industry" or even a lot of cohesion in what's out there... from 30000 feet you can barely spot a runway unless it's suitable for landing a 747 or the space shuttle. (In Alaska they land on water, mud, snow, you name it. If your definition of "airplane" is focused on Boeing/Airbus and the MIC, you're missing out on a lot.) -- Fred Morris fredm3047@inwa.net (I-ACK) From sthoenna at efn.org Mon Nov 24 10:09:53 2003 From: sthoenna at efn.org (Yitzchak Scott-Thoennes) Date: Mon Aug 2 21:37:12 2004 Subject: SPUG: Osoft guys want to present "OSource Training" product In-Reply-To: <20031122050304.GS26433@ifokr.org> References: <20031121195716.GA48385@alexis.mi.celestial.com> <20031121211104.49656.qmail@web11505.mail.yahoo.com> <20031122050304.GS26433@ifokr.org> Message-ID: <20031124160953.GA2656@efn.org> On Fri, Nov 21, 2003 at 09:03:04PM -0800, Brian Hatch wrote: > > I hope to have the slides online by Sunday. > My wife had premature labour, and is in > the hospital now until the twins are born, > which will likely be around christmas, so > my 'free time' just became non existant. I wish you the best of luck. With our twins, my wife was in and out of the hospital starting at 28 weeks. It sounds like you've already made it past the worst part, though. From marc.gibian at acm.org Mon Nov 24 23:41:44 2003 From: marc.gibian at acm.org (Marc S. Gibian) Date: Mon Aug 2 21:37:12 2004 Subject: SPUG: Re: complementary groups to SPUG In-Reply-To: Message-ID: <000e01c3b316$cfa97eb0$0200a8c0@study> Hi Michael, There is one very active ACM SIG in the Seattle area, SIGCHI, and the IEEE Computer Society has a good active local chapter. I recommend both of these. I also suggest you consider the WSA as they sponsor some of the very good local meetings in this area. Please let me know if you have any specific questions I might be able to help with. -Marc -----Original Message----- From: spug-list-bounces@mail.pm.org [mailto:spug-list-bounces@mail.pm.org] On Behalf Of Michael R. Wolf Sent: Tuesday, November 18, 2003 10:54 PM To: spug-list@mail.pm.org Subject: SPUG: Re: complementary groups to SPUG Michael R. Wolf writes: > Since moving to Seattle last year, I've been fairly narrow in my focus > of professional networking and technical interaction. I'm branching > out a bit more. Has anyone attended any ACM or IEEE events in Seattle? -- Michael R. Wolf All mammals learn by playing! MichaelRWolf@att.net _____________________________________________________________ Seattle Perl Users Group Mailing List POST TO: spug-list@mail.pm.org http://spugwiki.perlocity.org ACCOUNT CONFIG: http://mail.pm.org/mailman/listinfo/spug-list MEETINGS: 3rd Tuesdays, U-District, Seattle WA WEB PAGE: http://www.seattleperl.org From cconnoll at u.washington.edu Tue Nov 25 12:48:00 2003 From: cconnoll at u.washington.edu (Chuck Connolly) Date: Mon Aug 2 21:37:12 2004 Subject: SPUG: bidirectional process communication In-Reply-To: <200311251800.hAPI0V526006@mail.pm.org> References: <200311251800.hAPI0V526006@mail.pm.org> Message-ID: Hi, I need to run a program from a perl program, passing it arguments and catching its STDOUT. The called program reads one of its parameters from STDIN. I know you can't open a bi-directional pipe. Programming Perl suggests using IPC::Open2, but then goes on to say that "in general UNIX buffering is really going to ruin your day. ... this seldom works unless you wrote the program on the other end of the double-ended pipe". Programming Perl also sugests using Comm.pl, but calls this a partial solution. So I was wondering how other people deal with this problem. A likely solution is to write the called program's STDOUT to disk as a temporary file, open that, process it, and delete it, but this seems (relatively) slow and won't scale well. I only have a few thousand calls, so it seems likely to work, but I was hoping for something a little more elegant. All suggestions welcome. Thanks. Chuck Connolly From david.ward at philips.com Tue Nov 25 13:03:34 2003 From: david.ward at philips.com (david.ward@philips.com) Date: Mon Aug 2 21:37:12 2004 Subject: SPUG: Looking for info on developing programming language parser / lint program Message-ID: Can anyone give me any recommendations as to books, module documentation, etc that might be helpful on the construction of programming language parsers and / or lint programs? I've got to write something that is less than a compiler but more than a lint program for libraries of test functions which are written in a C'ish-styled test tool's scripting language. I've already created a set of PERL programs that extract information from the library function headers and declarations to produce a web-server based documentation of the testware, but I'd like to extend (or replace) it with something to provide more information (dependencies, possible return codes, nesting levels, global constant & variable usage, etc) as well as some level of "lint" checking. The lint checking is especially desirable because the test tool's own compiler doesn't detect a number of errors and has absolutely no warning mechanism for potentially bad usage either. I've written a parser/compiler once, a long time ago, but it was written in FORTH and was for a very specialized (read narrowly focused) programming language of my own creation, so it was relatively trivial to implement. I don't mind reading source code (and have been looking at some PERL modules such as the syntax highlighter, etc), but I was hoping there might be something slightly more toward architecture or implementation design of parsers/lint programs than what I've found so far. Thanks! Dave Ward From cwilkes-spug at ladro.com Tue Nov 25 13:16:06 2003 From: cwilkes-spug at ladro.com (Chris Wilkes) Date: Mon Aug 2 21:37:12 2004 Subject: SPUG: Looking for info on developing programming language parser / lint program In-Reply-To: References: Message-ID: <20031125191606.GA15114@www.ladro.com> On Tue, Nov 25, 2003 at 11:03:34AM -0800, david.ward@philips.com wrote: > Can anyone give me any recommendations as to books, module documentation, > etc that might be helpful on the construction of programming language > parsers and / or lint programs? Have you looked into the perl module Parse::RecDescent? http://search.cpan.org/src/DCONWAY/Parse-RecDescent-1.94/tutorial/tutorial.html http://search.cpan.org/~tbone/Parse-RecDescent-FAQ-3.25/FAQ.pm and from the FAQ: http://www.urth.org/~metaperl/domains/semantic-elements.com/perl/prd/dans-blog/000235.html Chris From ced at carios2.ca.boeing.com Tue Nov 25 13:37:13 2003 From: ced at carios2.ca.boeing.com (ced@carios2.ca.boeing.com) Date: Mon Aug 2 21:37:12 2004 Subject: SPUG: bidirectional process communication Message-ID: <200311251937.LAA09652@carios2.ca.boeing.com> > I need to run a program from a perl program, passing it arguments and >catching its STDOUT. The called program reads one of its parameters from >STDIN. I know you can't open a bi-directional pipe. Programming Perl >suggests using IPC::Open2, but then goes on to say that "in general UNIX >buffering is really going to ruin your day. ... this seldom works unless >you wrote the program on the other end of the double-ended pipe". >Programming Perl also sugests using Comm.pl, but calls this a partial >solution. Comm.pl is completely obsolete. I think its replacement is the 'Expect' module. There's also a new Expect::Simple module. But, my instinct would be to use other IPC solutions. > So I was wondering how other people deal with this problem. A likely >solution is to write the called program's STDOUT to disk as a temporary >file, open that, process it, and delete it, but this seems (relatively) >slow and won't scale well. I only have a few thousand calls, so it seems >likely to work, but I was hoping for something a little more elegant. >All suggestions welcome. Thanks. There can be some tricky buffering/deadlock issues as you mention. However, I wouldn't give up on IPC::Open2 without trying. If IPC::Open doesn't cut it, a roll-your-own combination of sysread and select will often work. Google has many threads on these issues. Filter on IPC and author B. Goldberg for several good discussions and solutions. Hope this helps, -- Charles DeRykus From bill at celestial.com Tue Nov 25 13:48:40 2003 From: bill at celestial.com (Bill Campbell) Date: Mon Aug 2 21:37:12 2004 Subject: SPUG: bidirectional process communication In-Reply-To: References: <200311251800.hAPI0V526006@mail.pm.org> Message-ID: <20031125194840.GA60214@alexis.mi.celestial.com> On Tue, Nov 25, 2003, Chuck Connolly wrote: >Hi, > I need to run a program from a perl program, passing it arguments and >catching its STDOUT. The called program reads one of its parameters from >STDIN. I know you can't open a bi-directional pipe. Programming Perl >suggests using IPC::Open2, but then goes on to say that "in general UNIX >buffering is really going to ruin your day. ... this seldom works unless >you wrote the program on the other end of the double-ended pipe". >Programming Perl also sugests using Comm.pl, but calls this a partial >solution. > So I was wondering how other people deal with this problem. A likely >solution is to write the called program's STDOUT to disk as a temporary >file, open that, process it, and delete it, but this seems (relatively) >slow and won't scale well. I only have a few thousand calls, so it seems >likely to work, but I was hoping for something a little more elegant. >All suggestions welcome. Thanks. I haven't done this in perl recently (if at all), but did just write a bi- directional filter program in C to run an application program parsing everything from the keyboard to the program and from the program to the display to remap function keys pressed to send application specific codes reprogrammed from the server. This involved opening two sets of pipes using the pipe(2) system call, a couple of close(2) and dup(2) calls, exec'ing the application program, then exec'ing a second copy of the program so there is one process handling keyboard to program, and another handling program to screen. The function key mapping is handled using shared memory so the program reading from the program can change the string sent which the program reading from the keyboard sends when function keys are pressed. I would never have figured this out without Marc J. Rochkind's ``Advanced Unix Programming'' book, ISBN 0-13-011818-4. The version I have is copyright 1985, and a new version is scheduled for release RSN. Bill -- INTERNET: bill@Celestial.COM Bill Campbell; Celestial Software LLC UUCP: camco!bill PO Box 820; 6641 E. Mercer Way FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 URL: http://www.celestial.com/ A paranoid is a man who knows a little of what's going on. -- William S. Burroughs From sthoenna at efn.org Tue Nov 25 15:42:34 2003 From: sthoenna at efn.org (Yitzchak Scott-Thoennes) Date: Mon Aug 2 21:37:12 2004 Subject: SPUG: bidirectional process communication In-Reply-To: References: <200311251800.hAPI0V526006@mail.pm.org> Message-ID: <20031125214234.GA3900@efn.org> On Tue, Nov 25, 2003 at 10:48:00AM -0800, Chuck Connolly wrote: > Hi, > I need to run a program from a perl program, passing it arguments and > catching its STDOUT. The called program reads one of its parameters from > STDIN. I know you can't open a bi-directional pipe. Programming Perl > suggests using IPC::Open2, but then goes on to say that "in general UNIX > buffering is really going to ruin your day. ... this seldom works unless > you wrote the program on the other end of the double-ended pipe". > Programming Perl also sugests using Comm.pl, but calls this a partial > solution. > So I was wondering how other people deal with this problem. A likely > solution is to write the called program's STDOUT to disk as a temporary > file, open that, process it, and delete it, but this seems (relatively) > slow and won't scale well. I only have a few thousand calls, so it seems > likely to work, but I was hoping for something a little more elegant. > All suggestions welcome. Thanks. If writing out to a file works, IPC::Open2 will almost certainly work, so at least give it a try. The real problems only begin when the called program doesn't flush its output buffers prior to reading input, which would apply whether it is writing to disk or a pipe. With such programs the only possible solution is to create a pseudo-tty so the called program thinks it is writing to a terminal and doesn't buffer its output (which is what Expect does). From bri at ifokr.org Thu Nov 27 11:39:20 2003 From: bri at ifokr.org (Brian Hatch) Date: Mon Aug 2 21:37:12 2004 Subject: SPUG: Perl Security slides online Message-ID: <20031127173919.GT26433@ifokr.org> Happy thanksgiving, everyone. The (improved) slides from last Tuesday's Perl Security Overview are online at http://www.ifokr.org/bri/presentations/ I added a few that I wanted to have originally, and corrected an error or two. I have to say, my first SPUG meeting was eventful: * finally got to pair some names and faces from time here on the mailing list * caused it to snow the next day, my first time seeing snow here in Seattle. * caused my fiancee to have premature contractions the next day. I'm not quite as pleased with that last one, so I'd probably warn future presenters.... -- Brian Hatch Meetings -- where none of Systems and us is as dumb as all of us. Security Engineer http://www.onsight.com/ Every message PGP signed -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://mail.pm.org/pipermail/spug-list/attachments/20031127/3873ed6e/attachment.bin From tim at consultix-inc.com Thu Nov 27 12:04:38 2003 From: tim at consultix-inc.com (Tim Maher) Date: Mon Aug 2 21:37:12 2004 Subject: SPUG: How to rotate AVI movies? Message-ID: <20031127180438.GA12234@jumpy.consultix-inc.com> Can somebody please tell me how to rotate (by 90 degrees) a bunch of movies in AVI format? I rotated the digital camera for a better aspect ratio while shooting them, as I routinely do for still pictures, but now I have to rotate my head to view them! Any tips on correcting this problem, before I have to take the movies to a Thanksgiving party at 2:15pm, would be appreciated! 8-} *--------------------------------------------------------------------------* | Tim Maher, CEO (206) 781-UNIX (866) DOC-PERL (866) DOC-UNIX | | tim(AT)Consultix-Inc.Com http://TeachMePerl.Com http://TeachMeUnix.Com | *+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-* |CLASSES: Minimal Perl: 12/1; Perl Programming: 12/2-4; Perl Modules: 12/5 | | Watch for my Manning book: "Minimal Perl for Shell Users & Programmers" | *--------------------------------------------------------------------------* From mako at debian.org Fri Nov 28 08:39:47 2003 From: mako at debian.org (Benj. Mako Hill) Date: Mon Aug 2 21:37:12 2004 Subject: SPUG: How to rotate AVI movies? In-Reply-To: <20031127180438.GA12234@jumpy.consultix-inc.com> References: <20031127180438.GA12234@jumpy.consultix-inc.com> Message-ID: <20031128143947.GC746@kamna> On Thu, Nov 27, 2003 at 10:04:38AM -0800, Tim Maher wrote: > Can somebody please tell me how to rotate (by 90 degrees) a bunch of > movies in AVI format? I rotated the digital camera for a better > aspect ratio while shooting them, as I routinely do for still > pictures, but now I have to rotate my head to view them! > > Any tips on correcting this problem, before I have to take the > movies to a Thanksgiving party at 2:15pm, would be appreciated! 8-} Rotating the television beats rotating the head. Sorry I can't be of any more help (or perhaps any at all). Hope you figured something out. Regards, Mako -- Benjamin Mako Hill mako@debian.org http://mako.yukidoke.org/ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://mail.pm.org/pipermail/spug-list/attachments/20031128/b61a6a86/attachment.bin From OtterMain at hotmail.com Fri Nov 28 09:24:07 2003 From: OtterMain at hotmail.com (Otter) Date: Mon Aug 2 21:37:12 2004 Subject: SPUG: How to rotate AVI movies? References: <20031127180438.GA12234@jumpy.consultix-inc.com> <20031128143947.GC746@kamna> Message-ID: On Fri, Nov 28 at 18:39:23AM -0900, Benj. Mako Hill wrote: > On Thu, Nov 27, 2003 at 10:04:38AM -0800, Tim Maher wrote: > > Can somebody please tell me how to rotate (by 90 degrees) a bunch of > > movies in AVI format? I rotated the digital camera for a better > > aspect ratio while shooting them, as I routinely do for still > > pictures, but now I have to rotate my head to view them! > > Rotating the television beats rotating the head. Sorry I can't be of > any more help (or perhaps any at all). Actually, I've tried rotating TVs for convenient watching in bed. The color tends to get messed up on all of the TVs I've tried. Don't know how they work, but I'm sure something is getting out of balance, or maybe all our TVs are just poorly wired. But that is an idea there! Try watching the videos in bed! -- Scofi- From MichaelRWolf at att.net Fri Nov 28 15:39:27 2003 From: MichaelRWolf at att.net (Michael R. Wolf) Date: Mon Aug 2 21:37:12 2004 Subject: SPUG: address book reformatting from Win2K text file to HP iPAQ Message-ID: I'm lazy! It's a virtue!!! I'm starting down a path and would like to find who's been down it before so that I don't have to reinvent the flat tire. Basically, I'm looking to convert an address book. Address books aren't rocket science, and yet, searching for schemas, modules, or tools seems to have turned up very complex solutions. I know that in the general case, they can be very complex, but I'd happily take a simpler solution that ignores some of the details on the esoteric periphery. Source: - address book data in a text file in BBDB (The Insideous Big Brother Data Base, an add-on package to GNU emacs, written in emacs lisp) format Target: - HP iPAQ 1945 running WinCE - you can't make up a better name, can you? :-) Possible intermediate points: - Outlook with Business Contact Management - Microsoft ActiveSync - a networked SuSE 8.1 box (but not as good as a one system Windows 2000 solution) My favorite tools I could use to glom it together: - Perl that someone else already wrote - all the Unix stuff I can get from cygwin - Perl that I write Did I mention I'm lazy? Lazy as in the virtue? I'd like to start where someone else left off, using my own Perl as glue to slap some really big pieces together - pieces that already exist. Ideas on where to start? -- address book schema standards (CSV, XML, LDAP) -- address book modules -- integrations to Outlook (for address import/export) -- integrations to ActiveSync I don't need you to design it for me, but if you've been down a similar path, could you send me some pointers? Thanks, Michael Wolf -- Michael R. Wolf All mammals learn by playing! MichaelRWolf@att.net From MichaelRWolf at att.net Fri Nov 28 19:59:17 2003 From: MichaelRWolf at att.net (Michael R. Wolf) Date: Mon Aug 2 21:37:12 2004 Subject: SPUG: How to rotate AVI movies? In-Reply-To: (OtterMain@hotmail.com's message of "Fri, 28 Nov 2003 07:24:07 -0800") References: <20031127180438.GA12234@jumpy.consultix-inc.com> <20031128143947.GC746@kamna> Message-ID: "Otter" writes: [...] > Actually, I've tried rotating TVs for convenient watching in bed. The > color tends to get messed up on all of the TVs I've tried. Don't know > how they work, but I'm sure something is getting out of balance, or > maybe all our TVs are just poorly wired. But that is an idea there! > Try watching the videos in bed! You've either got some **real** heavy or **real** electrons shooting out of your electron gun. Or perhaps you're living in a very strong electromagnetic field. Do metal objects accelerate faster than non-metal objects when you drop them near your TV? Save yourself. Get out, man.... she's gonna blow!!! -- Michael R. Wolf All mammals learn by playing! MichaelRWolf@att.net From MichaelRWolf at att.net Fri Nov 28 20:10:53 2003 From: MichaelRWolf at att.net (Michael R. Wolf) Date: Mon Aug 2 21:37:12 2004 Subject: SPUG: Looking for info on developing programming language parser / lint program In-Reply-To: <20031125191606.GA15114@www.ladro.com> (Chris Wilkes's message of "Tue, 25 Nov 2003 11:16:06 -0800") References: <20031125191606.GA15114@www.ladro.com> Message-ID: Chris Wilkes writes: > On Tue, Nov 25, 2003 at 11:03:34AM -0800, david.ward@philips.com wrote: >> Can anyone give me any recommendations as to books, module documentation, >> etc that might be helpful on the construction of programming language >> parsers and / or lint programs? > > Have you looked into the perl module Parse::RecDescent? > http://search.cpan.org/src/DCONWAY/Parse-RecDescent-1.94/tutorial/tutorial.html > http://search.cpan.org/~tbone/Parse-RecDescent-FAQ-3.25/FAQ.pm > > and from the FAQ: > > http://www.urth.org/~metaperl/domains/semantic-elements.com/perl/prd/dans-blog/000235.html "Principles of Compiler Design", (AKA "The Dragon Book") by Al Aho and Jeff Ullman was the standard for years. It's out of print, but probably available from a library or a colleague. It's not "modern", but it does discuss recursive design compilers, the state of the art for a long time. -- Michael R. Wolf All mammals learn by playing! MichaelRWolf@att.net From sthoenna at efn.org Sat Nov 29 21:42:58 2003 From: sthoenna at efn.org (Yitzchak Scott-Thoennes) Date: Mon Aug 2 21:37:12 2004 Subject: SPUG: Looking for info on developing programming language parser / lint program In-Reply-To: References: <20031125191606.GA15114@www.ladro.com> Message-ID: <20031130034258.GA4692@efn.org> On Fri, Nov 28, 2003 at 06:10:53PM -0800, "Michael R. Wolf" wrote: > > Chris Wilkes writes: > > > On Tue, Nov 25, 2003 at 11:03:34AM -0800, david.ward@philips.com wrote: > >> Can anyone give me any recommendations as to books, module documentation, > >> etc that might be helpful on the construction of programming language > >> parsers and / or lint programs? > > > > Have you looked into the perl module Parse::RecDescent? > > http://search.cpan.org/src/DCONWAY/Parse-RecDescent-1.94/tutorial/tutorial.html > > http://search.cpan.org/~tbone/Parse-RecDescent-FAQ-3.25/FAQ.pm > > > > and from the FAQ: > > > > http://www.urth.org/~metaperl/domains/semantic-elements.com/perl/prd/dans-blog/000235.html > > "Principles of Compiler Design", (AKA "The Dragon Book") by Al Aho and > Jeff Ullman was the standard for years. It's out of print, but > probably available from a library or a colleague. It's not "modern", > but it does discuss recursive design compilers, the state of the art > for a long time. The newer edition is "Compilers: Priciples, Techniques, and Tools", by Aho, Ullman, and Ravi Sethi, 1986. From the back cover: "The new dragon presents the basic material featured in the old dragon, while also delving into recent developments in the field. Features of the new dragon include: Pragmatics of compiler development; More on syntax-directed translation, type checking, run-time organization, automatic code generation, and code optimization; Wide variety of graded problems and exercises." A quick read through the second chapter will give a basic foundation for making a parser/lint program. From sthoenna at efn.org Sat Nov 29 21:43:09 2003 From: sthoenna at efn.org (Yitzchak Scott-Thoennes) Date: Mon Aug 2 21:37:12 2004 Subject: SPUG: address book reformatting from Win2K text file to HP iPAQ In-Reply-To: References: Message-ID: <20031130034309.GB4692@efn.org> On Fri, Nov 28, 2003 at 01:39:27PM -0800, "Michael R. Wolf" wrote: > Basically, I'm looking to convert an address book. > > Source: > > - address book data in a text file in BBDB (The Insideous Big Brother > Data Base, an add-on package to GNU emacs, written in emacs lisp) > format > > Target: > - HP iPAQ 1945 running WinCE - you can't make up a better name, can > you? :-) Doesn't GNU emacs run under WinCE? What software are you planning to use?