From andy at petdance.com Thu Feb 1 08:37:04 2007 From: andy at petdance.com (Andy Lester) Date: Thu, 1 Feb 2007 10:37:04 -0600 Subject: [Chicago-talk] Come to the Wikithon, Wed Feb 7th Message-ID: <20FDD1E1-6905-463A-859E-7BA6DE6AB1BE@petdance.com> [I'm emailing this out, not that I expect anyone to go to California, but because you can join in remotely, and the chicago.pm wiki runs on Socialtext Open. -- Andy] https://www.socialtext.net/stoss/index.cgi?wikithon Come to our Wikithon! On Wednesday February 7th in Palo Alto, CA, the same day as Wiki Wednesday, Socialtext is hosting an all day open hackathon. Our entire development team will be in town and our doors are open for you. Remote Access Can't make it to our offices in Palo Alto? No problem! Please feel free to follow along remotely (and if you want to remotely pair with someone to accomplish a particular task, please note that here as well). When you've completed your project, make a page in /stoss describing it, and tag it 'wikithon' so other people can find it. We'll be doing a show and tell of the hackathon output in the evening at Wiki Wednesday - so even if you can't hack with us, please come to Wiki Wednesday and admire all the cool things people made. Infrastructure We're putting some infrastructure in place so that local and remote participants can collaborate: * IRC - irc.freenode.net, channel #socialtext * Two open conference meeting rooms - 801 and 805 (external callers call 1 877-GET-WIKI and then the extension) * VNC servers available for connection: oak.socialtext.net:1 and oak.socialtext.net:2 * Food and beverages will be available at the office Ideas Even if you're having trouble thinking of anything to work on, come on by and see if you can lend someone else a hand. We're eagerly looking forward to some cool new Socialtext plugins and hopefully some new API clients. We'll have some folks hanging out who are familiar with Socialtext internals, to help you get started on your widget. Contest We're going to have two contests during the Wikithon - best Socialtext Plugin or best new Socialtext API Client. Prizes are still to be determined, but we hope to encourage our hackers to come up with cool new ways to extend and use our application. -- Andy Lester => andy.lester at socialtext.com => www.socialtext.com => AIM:petdance From mrnicksgirl at gmail.com Fri Feb 2 06:24:07 2007 From: mrnicksgirl at gmail.com (Nola Stowe) Date: Fri, 2 Feb 2007 08:24:07 -0600 Subject: [Chicago-talk] Downtown Loop Lunch Message-ID: <43e95380702020624q563fb26bv5c7b7d7c589e4618@mail.gmail.com> Hey! Lets do lunch.... if you are coming, email me. Sopraffina Marketcafe ... 200 E Randolf, in the AON building. -- http://rubygeek.com - my blog featuring: Ruby, PHP and Perl http://DevChix.com - boys can't have all the fun http://CodeSnipers.com From mrnicksgirl at gmail.com Fri Feb 2 06:26:56 2007 From: mrnicksgirl at gmail.com (Nola Stowe) Date: Fri, 2 Feb 2007 08:26:56 -0600 Subject: [Chicago-talk] Downtown Loop Lunch In-Reply-To: <43e95380702020624q563fb26bv5c7b7d7c589e4618@mail.gmail.com> References: <43e95380702020624q563fb26bv5c7b7d7c589e4618@mail.gmail.com> Message-ID: <43e95380702020626t2e0399cfo52b079a6d1f2cb82@mail.gmail.com> Ooops... lets do Monday, Feb 5th On 2/2/07, Nola Stowe wrote: > Hey! Lets do lunch.... if you are coming, email me. > > Sopraffina Marketcafe ... > 200 E Randolf, in the AON building. > > -- > http://rubygeek.com - my blog featuring: Ruby, PHP and Perl > http://DevChix.com - boys can't have all the fun > http://CodeSnipers.com > -- http://rubygeek.com - my blog featuring: Ruby, PHP and Perl http://DevChix.com - boys can't have all the fun http://CodeSnipers.com From brian.d.foy at gmail.com Sat Feb 3 15:09:26 2007 From: brian.d.foy at gmail.com (brian d foy) Date: Sat, 3 Feb 2007 18:09:26 -0500 Subject: [Chicago-talk] LP Zoo Camel Update Message-ID: <2715accf0702031509u43f38aa5qb1bea54ef96ded71@mail.gmail.com> It's 0 F outside, so we won't be visiting the camel at the Lincoln Park Zoo soon, but I've finally scanned the picture and certificate that they sent. http://windycity.pm.org/adopt-a-camel.shtml If you come to Monday's Lunch In the Loop you'll get to see the plush camel they sent too. :) -- brian d foy http://www.pair.com/~comdog/ From johndporter at yahoo.com Sun Feb 4 18:12:34 2007 From: johndporter at yahoo.com (John Douglas Porter) Date: Sun, 4 Feb 2007 18:12:34 -0800 (PST) Subject: [Chicago-talk] Chicago-talk Digest, Vol 43, Issue 3 In-Reply-To: Message-ID: <535593.89707.qm@web53213.mail.yahoo.com> brian.d.foy at gmail.com wrote: > > It's 0 F outside, so we won't be visiting the camel at the Lincoln > Park Zoo soon, but I've finally scanned the picture and certificate > that they sent. > > http://windycity.pm.org/adopt-a-camel.shtml Nice. :-) But too bad they don't know how to spell Bactrian. -- jdporter ____________________________________________________________________________________ Get your own web address. Have a HUGE year through Yahoo! Small Business. http://smallbusiness.yahoo.com/domains/?p=BESTDEAL From jim at jimandkoka.com Sun Feb 4 18:25:08 2007 From: jim at jimandkoka.com (Jim Thomason) Date: Sun, 4 Feb 2007 20:25:08 -0600 Subject: [Chicago-talk] Chicago-talk Digest, Vol 43, Issue 3 In-Reply-To: <535593.89707.qm@web53213.mail.yahoo.com> References: <535593.89707.qm@web53213.mail.yahoo.com> Message-ID: <5cfdfaf70702041825y1301ba14u81e893b757d65a5a@mail.gmail.com> > Nice. :-) > > But too bad they don't know how to spell Bactrian. My assumption is that the poor camel is badly infected with some sort of illness ("Bacterian"), and hence really needed our donation dollars. I'm glad we could chip in to help purchase the fungicides and medicines that our poor camel apparently so desperately needs. -Jim.... From shijialeee at yahoo.com Wed Feb 7 06:56:31 2007 From: shijialeee at yahoo.com (James.Q.L) Date: Wed, 7 Feb 2007 06:56:31 -0800 (PST) Subject: [Chicago-talk] WWW::Mechanize question Message-ID: <941501.90136.qm@web50408.mail.yahoo.com> hello, long time LWP user. i am just start to use W::M and Test::W::M. in LWP, I can post to a form with any field i want. however, i can't find the method in W::M do that. the field and set_fields can only set the known form fields but complain when i am setting unknown fields. this is what i do in LWP. $response = $browser->post( $post_url, [ field_1 => value, fake_field => fake_value, ], ); do i need to use the overloaded request method to do that? also, it was not clear to me that when i am posting to a url, does all the hidden fields posted along with it as well? it seems that it does. thanks, Qiang ____________________________________________________________________________________ Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html From shijialeee at yahoo.com Wed Feb 7 07:41:36 2007 From: shijialeee at yahoo.com (James.Q.L) Date: Wed, 7 Feb 2007 07:41:36 -0800 (PST) Subject: [Chicago-talk] WWW::Mechanize question In-Reply-To: <941501.90136.qm@web50408.mail.yahoo.com> Message-ID: <838357.3985.qm@web50408.mail.yahoo.com> sorry replying myself. I have found a solution. W::M is a subclass of LWP. so all i need to do is $mech->post( $post_url, [ field_1 => value, fake_field => fake_value, ], ); but still, i would like to know how to do that in mech if there is a way. thanks. Qiang --- "James.Q.L" wrote: > hello, > > long time LWP user. i am just start to use W::M and Test::W::M. > > in LWP, I can post to a form with any field i want. however, i can't find the method in W::M do > that. the field and set_fields can only set the known form fields but complain when i am setting > unknown fields. > > this is what i do in LWP. > $response = $browser->post( $post_url, > [ > field_1 => value, > fake_field => fake_value, > ], > ); > > do i need to use the overloaded request method to do that? > > also, it was not clear to me that when i am posting to a url, does all the hidden fields posted > along with it as well? it seems that it does. > > thanks, > > Qiang > > > > ____________________________________________________________________________________ > Expecting? Get great news right away with email Auto-Check. > Try the Yahoo! Mail Beta. > http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > ____________________________________________________________________________________ Never Miss an Email Stay connected with Yahoo! Mail on your mobile. Get started! http://mobile.yahoo.com/services?promote=mail From chris.mcavoy at gmail.com Wed Feb 7 11:35:26 2007 From: chris.mcavoy at gmail.com (Chris McAvoy) Date: Wed, 7 Feb 2007 13:35:26 -0600 Subject: [Chicago-talk] ChiPy Meeting Thursday February 7th 7pm Message-ID: <3096c19d0702071135q67c82c04ob02f486953b5dfc2@mail.gmail.com> Chicago Python User Group ========================= Come join us for our best meeting ever! Topic ------ * The Humanized (http://humanized.com) folks present their latest product "Enso", a Python based application recently profiled in the Wall Street Journal. Location -------- DePaul CTI 243 S Wabash Ave. Chicago, IL The computer lab on the 4th floor 7pm About ChiPy ----------- ChiPy is a group of Chicago Python Programmers, l33t, and n00bs. Meetings are held monthly at various locations around Chicago. Also, ChiPy is a proud sponsor of many Open Source and Educational efforts in Chicago. Stay tuned to the mailing list for more info. ChiPy website: ChiPy Mailing List: Python website: Pass it on. From andy at petdance.com Sat Feb 10 12:31:01 2007 From: andy at petdance.com (Andy Lester) Date: Sat, 10 Feb 2007 12:31:01 -0800 Subject: [Chicago-talk] [C-SPIN] - March 7th -- Ed Yourdon -- REGISTER EARLY! Message-ID: In case anyone's interested in seein' Ed Yourdon.... xoxo, Andy ?Chicago Software Process Improvement Network (C-SPIN) Meeting http://www.c-spin.net/ Presented as a Joint Program with CQAA (Chicago Quality Assurance Association -- www.cqaa.org ) Note for March only: Special time & PRE-REGISTRATION required!! Follow instructions below. AT&T Center Campus (formerly SBC Center Campus) AT&T Institute Atrium & Auditorium ? Room 129 Lakewood Blvd and Eagle Way, Hoffman Estates, IL (See directions and parking information near the end of announcement.) See the list of future meeting dates at the end of this announcement and mark your calendars now. Wednesday, March 7, 2007 Networking & Refreshments 5:00 ? 6:15 PM Program 6:15 ? 8:00 PM Program: "What IT Departments Need to Do About Web 2.0 in 2007 to Avoid Being Irrevocably Left Behind" Presenter: Ed Yourdon Abstract The ?paradigm? of the original Web (or Web 1.0, as it?s now called) was that of corporate/government organizations publishing ?content? to be consumed by large numbers of customers or citizens. The paradigm of Web 2.0 is that of ?content? being created by customers and the entire Internet community, as well as corporations and the ?mainstream? media. Sometimes this grass-roots content is aggregated and distributed by the traditional publishers; but often it exists as tiny, stand-alone creations on the Internet ? such as the millions of blogs, photographs, and video clips that have sprung into existence in the past few years. What does this mean for companies in today?s competitive environment? Most important, it?s forcing them to adopt a more ?open? approach to their systems: instead of closed, proprietary systems and databases, more and more companies like AOL, Yahoo, and Google are providing ?API? interfaces so that end-users and small software providers can add their own content. Other companies are focusing on the social aspect of Web 2.0, by emphasizing the collaboration opportunities of an Internet-enabled society. Some observers refer to this as the ?wiki phenomenon,? after the highly popular ?Wikipedia? website; others refer to it as ?crowdsourcing,? to emphasize that literally millions of individuals can contribute their ideas, suggestions, digital content (e.g., images), and skills to a shared activity. Technology certainly plays an important role in the new Web 2.0 world, with XML, Ajax, and Ruby on Rails being three of the leading examples of development technologies helping companies build new Web- based systems more quickly and easily. But most of all, Web 2.0 is a ?strategic? issue: it requires senior corporate executives to rethink basic assumptions about their business, customers, suppliers, and work-force. A veteran of the IT industry for over 40 years, Ed Yourdon has been involved in Web 2.0 since its beginnings in the 2002-2003 period, and he currently consults, lectures, and writes about various aspects of the new technologies. Ed will summarize the technologies, and identify the strategic issues facing IT managers and senior executives. About the Presenter EDWARD YOURDON is the author of more than two dozen books, including Byte Wars, Managing High-Intensity Internet Projects, Death March, Rise and Resurrection of the American Programmer, and Decline and Fall of the American Programmer. His latest book ?Outsource: competing in the global productivity race?, provides practical strategies for individuals, small businesses, and the nation to cope with this wave. According to the December 1999 issue of Crosstalk: The Journal of Defense Software Engineering, Ed Yourdon is one of the ten most influential men and women in the software field. In June 1997, he was inducted into the Computer Hall of Fame, along with such notables as Charles Babbage, Seymour Cray, James Martin, Grace Hopper, Gerald Weinberg, and Bill Gates. Ed is widely known as the lead developer of the structured analysis/design methods of the 1970s, as well as a co- developer of the Yourdon/Whitehead method of object-oriented analysis/ design. Ed has worked in the computer industry for 40 years, beginning when Digital Equipment Corporation hired him in 1964 to write the FORTRAN math library for the PDP-5 and the assembler for the popular PDP-8 minicomputer. During his career, he has been involved in a number of pioneering computer technologies such as time-sharing operating systems and virtual memory systems. Several of his books have been translated into Japanese, Russian, Spanish, Portuguese, Dutch, French, German, Polish, and other languages; and his articles have appeared in virtually all of the major computer journals. He has been a keynote speaker at major computer conferences around the world. Agenda 5:00 ? 6:15 p.m. Sign-in, Networking & Light Refreshments 6:15 ? 6:30 p.m. CQAA and C-SPIN announcements 6:30 ? 8:00 p.m. Presentation including Q & A Note that Sign-in will begin at 5:00 p.m. Please arrive early enough to sign in by 6:00. Registration ADVANCE REGISTRATION IS REQUIRED TO ATTEND THIS PROGRAM ? BOTH CQAA and C-SPIN members please register on the CQAA website as described below. PLEASE REGISTER BY: Friday, March 2, 2007. To register, go to www.cqaa.org and click on the "Programs" tab, then select "Upcoming Programs". Follow the "Click here to register or for more information" link, and then follow the Registration Instructions on the page. You will receive a confirmation email that your registration has been received. If you find out you will not be attending the event please cancel your registration by sending an email to programs at cqaa.org . PLEASE FORWARD THIS ANNOUNCEMENT TO ANYONE IN YOUR COMPANY WHO MAY BE INTERESTED. Driving and Parking Directions From I-90 Northwest Tollway exit North on Barrington Road. Take Barrington Road to Lakewood Blvd (2nd light) and turn East (right) onto Lakewood Blvd. Turn right into the AT&T Campus Center?s West Employee Entrance (1 entrance past Eagle Way) and follow the signs to the West Parking Structures. Parking is available in covered lots W2 or W3 and additional parking is available in the upper level parking lot W1. Look for parking spaces towards the west side of the parking structures. Then walk to the Institute Building, which is located across the road (west of the parking structures). It is estimated to take about 3 to 5 minutes to walk between the West Parking Structure and the AT&T Institute. Visit the C-SPIN website http://www.c-spin.net for a map of the AT&T Campus Center. Planned Future 2007 Program Schedule All these programs are planned to be held at the AT&T Institute Auditorium. Be sure to check the C-SPIN website [http://www.c-spin.net/] to confirm details. Future program topics are to be determined. Typically programs are held the first Wednesday of the month from 6:00 ? 8:30 PM. April 4, May 2, June 6 *** Summer Break *** September 5, October 3, November 7 About C-SPIN C-SPIN is made possible through the efforts of its Steering Committee. The Steering Committee is composed of, Alan Berow, Kathy Brown, Steve Coffman, Susan Davidowski, Donna Miller, and Robert Stalzer. C-SPIN is a leadership forum for the free and open exchange of software process improvement experiences and practical ideas. We promote achieving higher levels of process maturity, software quality, and mutual respect. Companies, academic institutions, government organizations and individuals are invited. For more information regarding this meeting, contact Kathy Brown at klbrown at mosaicinc.com. For information about C-SPIN or the steering committee, contact Robert Stalzer at cspin at coderelay.com. To receive future announcements electronically, send your e-mail address (include name, personal email address, company, and phone number) to Robert Stalzer at cspin at coderelay.com. ??_______________________________________________ C-SPIN mailing list C-SPIN at c-spin.net http://c-spin.net/mailman/listinfo/c-spin_c-spin.net -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/chicago-talk/attachments/20070210/b0778e6c/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.jpg Type: image/jpeg Size: 3807 bytes Desc: not available Url : http://mail.pm.org/pipermail/chicago-talk/attachments/20070210/b0778e6c/attachment-0002.jpg -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 6930 bytes Desc: not available Url : http://mail.pm.org/pipermail/chicago-talk/attachments/20070210/b0778e6c/attachment-0001.png -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.jpg Type: image/jpeg Size: 3807 bytes Desc: not available Url : http://mail.pm.org/pipermail/chicago-talk/attachments/20070210/b0778e6c/attachment-0003.jpg From hwigoda at mindspring.com Sat Feb 10 13:03:08 2007 From: hwigoda at mindspring.com (hwigoda at mindspring.com) Date: Sat, 10 Feb 2007 15:03:08 -0600 (GMT-06:00) Subject: [Chicago-talk] [C-SPIN] - March 7th -- Ed Yourdon -- REGISTER EARLY! Message-ID: <17741086.1171141389144.JavaMail.root@mswamui-backed.atl.sa.earthlink.net> -----Original Message----- >From: Andy Lester >Sent: Feb 10, 2007 2:31 PM >To: "Chicago.pm chatter" >Subject: [Chicago-talk] [C-SPIN] - March 7th -- Ed Yourdon -- REGISTER EARLY! > >In case anyone's interested in seein' Ed Yourdon.... > >xoxo, >Andy structured programming - there's a blast from the past - i got some of his books. From joshua.mcadams at gmail.com Mon Feb 12 19:52:15 2007 From: joshua.mcadams at gmail.com (Joshua McAdams) Date: Mon, 12 Feb 2007 21:52:15 -0600 Subject: [Chicago-talk] OT: Procrastination Message-ID: <49d805d70702121952m2f3dab82ja6524cb6cff53930@mail.gmail.com> Okay, so this has nothing to do with Perl, but it really struck me as hilarious. It is a video about procrastination.... time to learn a new computer language instead of doing something useful in the ones that I already know :) From joshua.mcadams at gmail.com Mon Feb 12 19:52:43 2007 From: joshua.mcadams at gmail.com (Joshua McAdams) Date: Mon, 12 Feb 2007 21:52:43 -0600 Subject: [Chicago-talk] OT: Procrastination In-Reply-To: <49d805d70702121952m2f3dab82ja6524cb6cff53930@mail.gmail.com> References: <49d805d70702121952m2f3dab82ja6524cb6cff53930@mail.gmail.com> Message-ID: <49d805d70702121952x4b721fa1r5d2b21e60676cf2d@mail.gmail.com> > Okay, so this has nothing to do with Perl, but it really struck me as > hilarious. It is a video about procrastination.... time to learn a > new computer language instead of doing something useful in the ones > that I already know :) Doh... link: http://lifehacker.com/software/procrastination/ze-frank-on-procrastination-235859.php From chris.mcavoy at gmail.com Mon Feb 12 19:55:51 2007 From: chris.mcavoy at gmail.com (Chris McAvoy) Date: Mon, 12 Feb 2007 21:55:51 -0600 Subject: [Chicago-talk] OT: Procrastination In-Reply-To: <49d805d70702121952m2f3dab82ja6524cb6cff53930@mail.gmail.com> References: <49d805d70702121952m2f3dab82ja6524cb6cff53930@mail.gmail.com> Message-ID: <3096c19d0702121955x345407bfya62c7699559ca235@mail.gmail.com> On 2/12/07, Joshua McAdams wrote: > Okay, so this has nothing to do with Perl, but it really struck me as > hilarious. It is a video about procrastination.... time to learn a > new computer language instead of doing something useful in the ones > that I already know :) Ha! Ironically, this is what's driven my entire career...I should get "taught yourself a whole other programming language instead of making something useful with the one you already know," as a tattoo. That should have been the name of my presentation tomorrow instead of hootenanny. In fact, I want everyone to think of this thing as "What Chris learned instead of getting his work done, the presentation." Chris From mongers at bsod.net Tue Feb 13 06:58:28 2007 From: mongers at bsod.net (Pete Krawczyk) Date: Tue, 13 Feb 2007 08:58:28 -0600 (CST) Subject: [Chicago-talk] CANCELLED: Chicago.pm/Uniforum for February 13, 2007 Message-ID: [Warren: Please forward to the Uniforum list.] Howdy, folks! Because of the weather, we're cancelling tonight's Dynamic Language Hootenanny in Wheaton. Chris McAvoy has generously offered to give it again on March 13, 2007. http://rakudo.org/chicago-pm/index.cgi?2007_03_13_dynamic_language_hootenanny If you want to see it earlier, Chris will be presenting it next week, February 20, at the Performics offices. For more information, and for instructions on how to pre-register for the talk, please see: http://rakudo.org/chicago-pm/index.cgi?2007_02_20_dynamic_language_hootenanny Thank you! -Pete K -- Pete Krawczyk Chicago Perl Mongers mongers at bsod dot net From kent at c2group.net Tue Feb 13 07:40:50 2007 From: kent at c2group.net (Kent Cowgill) Date: Tue, 13 Feb 2007 09:40:50 -0600 Subject: [Chicago-talk] CANCELLED: Chicago.pm/Uniforum for February 13, 2007 In-Reply-To: References: Message-ID: <58FEF9F1-A69E-4072-B811-200DFC1534B2@c2group.net> Kinda wish I got notice earlier, as in before I drove to the office so I'd be able to drive to Wheaton immediately after work :) But I guess safety is more important than php, python, and ruby ;-) (I think it's debatable whether it's more important than perl). I don't know about anyone else, but on these sidewalks, I apparently have less traction with my boots than I seem to have with my rear- wheel-drive deathwagon^WThunderbird. *Kent rubs his sore backside* -Kent Cowgill C2 Group, Inc. kent at c2group.net http://www.c2group.net 312.804.0160 On Feb 13, 2007, at 8:58 AM, Pete Krawczyk wrote: > [Warren: Please forward to the Uniforum list.] > > Howdy, folks! > > Because of the weather, we're cancelling tonight's Dynamic Language > Hootenanny in Wheaton. Chris McAvoy has generously offered to give it > again on March 13, 2007. > > http://rakudo.org/chicago-pm/index.cgi? > 2007_03_13_dynamic_language_hootenanny > > If you want to see it earlier, Chris will be presenting it next week, > February 20, at the Performics offices. For more information, and > for instructions on how to pre-register for the talk, please see: > > http://rakudo.org/chicago-pm/index.cgi? > 2007_02_20_dynamic_language_hootenanny > > Thank you! > -Pete K > -- > Pete Krawczyk > Chicago Perl Mongers > mongers at bsod dot net > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > From andy at petdance.com Tue Feb 13 07:53:37 2007 From: andy at petdance.com (Andy Lester) Date: Tue, 13 Feb 2007 09:53:37 -0600 Subject: [Chicago-talk] CANCELLED: Chicago.pm/Uniforum for February 13, 2007 In-Reply-To: <58FEF9F1-A69E-4072-B811-200DFC1534B2@c2group.net> References: <58FEF9F1-A69E-4072-B811-200DFC1534B2@c2group.net> Message-ID: On Feb 13, 2007, at 9:40 AM, Kent Cowgill wrote: > Kinda wish I got notice earlier, Sorry about that, Kent. I didn't want to cancel last night based on forecast and then find that it wasn't so bad. :-/ -- Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance From kent at c2group.net Tue Feb 13 08:19:00 2007 From: kent at c2group.net (Kent Cowgill) Date: Tue, 13 Feb 2007 10:19:00 -0600 Subject: [Chicago-talk] CANCELLED: Chicago.pm/Uniforum for February 13, 2007 In-Reply-To: References: <58FEF9F1-A69E-4072-B811-200DFC1534B2@c2group.net> Message-ID: <9C46D3D5-1B8D-4DB2-879B-2C4060E4ECE2@c2group.net> No big deal (at least to me), which is why I liberally peppered the email with smileys. To be honest, I'm a little glad, too - I hear the roads aren't going to get much better until 11-12 tonight, and I wasn't looking forward to creeping crawling traffic. On a funny note - even with horrible 10-15 mph (and at times slower) traffic on the Kennedy, I *still* got to work faster than if I had taken the train :) -Kent Cowgill C2 Group, Inc. kent at c2group.net http://www.c2group.net 312.804.0160 On Feb 13, 2007, at 9:53 AM, Andy Lester wrote: > > On Feb 13, 2007, at 9:40 AM, Kent Cowgill wrote: > >> Kinda wish I got notice earlier, > > Sorry about that, Kent. I didn't want to cancel last night based on > forecast and then find that it wasn't so bad. :-/ > > -- > Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance > > > > > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > From jim at jimandkoka.com Tue Feb 13 08:27:35 2007 From: jim at jimandkoka.com (Jim Thomason) Date: Tue, 13 Feb 2007 11:27:35 -0500 Subject: [Chicago-talk] OT: Procrastination In-Reply-To: <3096c19d0702121955x345407bfya62c7699559ca235@mail.gmail.com> References: <49d805d70702121952m2f3dab82ja6524cb6cff53930@mail.gmail.com> <3096c19d0702121955x345407bfya62c7699559ca235@mail.gmail.com> Message-ID: <5cfdfaf70702130827x3e0c68c6i4c56912679b1cc81@mail.gmail.com> On 2/12/07, Chris McAvoy wrote: > On 2/12/07, Joshua McAdams wrote: > > Okay, so this has nothing to do with Perl, but it really struck me as > > hilarious. It is a video about procrastination.... time to learn a > > new computer language instead of doing something useful in the ones > > that I already know :) I was going to post this video...but I never got around to it... It's much much worse when you procrastinate by learning truly useless languages. I think I wasted the better part of a day once learning the intricacies of brainfuck (http://en.wikipedia.org/wiki/Brainfuck), including writing not just a brainfuck interpreter, but a brainfuck -> C translator so I could compile my useless little programs for insane crazy raw power. -Jim.... From kent at c2group.net Tue Feb 13 08:45:00 2007 From: kent at c2group.net (Kent Cowgill) Date: Tue, 13 Feb 2007 10:45:00 -0600 Subject: [Chicago-talk] OT: Procrastination In-Reply-To: <5cfdfaf70702130827x3e0c68c6i4c56912679b1cc81@mail.gmail.com> References: <49d805d70702121952m2f3dab82ja6524cb6cff53930@mail.gmail.com> <3096c19d0702121955x345407bfya62c7699559ca235@mail.gmail.com> <5cfdfaf70702130827x3e0c68c6i4c56912679b1cc81@mail.gmail.com> Message-ID: Been there, done that. Here's a mildly golfed brainf*ck interpreter in 123b of perl: %c=qw|> --$p; < ++$p; + ++$$p; - --$$p; [ ${ ] }while$$p; . print+chr$$p; , $$p=shift;|;map{$r.=$c{$_}for split//}<>;eval$r I'd golf it further, but I've been putting it off. -Kent Cowgill C2 Group, Inc. kent at c2group.net http://www.c2group.net 312.804.0160 On Feb 13, 2007, at 10:27 AM, Jim Thomason wrote: > On 2/12/07, Chris McAvoy wrote: >> On 2/12/07, Joshua McAdams wrote: >>> Okay, so this has nothing to do with Perl, but it really struck >>> me as >>> hilarious. It is a video about procrastination.... time to learn a >>> new computer language instead of doing something useful in the ones >>> that I already know :) > > I was going to post this video...but I never got around to it... > > It's much much worse when you procrastinate by learning truly useless > languages. I think I wasted the better part of a day once learning the > intricacies of brainfuck (http://en.wikipedia.org/wiki/Brainfuck), > including writing not just a brainfuck interpreter, but a brainfuck -> > C translator so I could compile my useless little programs for insane > crazy raw power. > > -Jim.... > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > From Andy_Bach at wiwb.uscourts.gov Tue Feb 13 13:44:53 2007 From: Andy_Bach at wiwb.uscourts.gov (Andy_Bach at wiwb.uscourts.gov) Date: Tue, 13 Feb 2007 15:44:53 -0600 Subject: [Chicago-talk] Perl 101 question Message-ID: Reviewing a beginner perl course and it says: You access list values by telling Perl the number of the element you want to access ? or its list index. You state the number in square brackets after the list. The list must be enclosed in brackets, and the index in square brackets must be enclosed with the list in another level of brackets. For example, to access the first element of a word list, you use the index [0] and enclose both the list and the index in additional brackets. #!/usr/bin/perl use warnings; print (('how', 'price', 'hat') [0]); print "\n"; So ... I thought that was wrong but: print ('how', 'price', 'hat') [0]; doesn't work. This does: my $word = ('how', 'price', 'hat')[0]; print "$word\n"; as does: print "", ('how', 'price', 'hat')[0], "\n"; So are the parens just to 'bind' the index to the bare list? a Andy Bach Systems Mangler Internet: andy_bach at wiwb.uscourts.gov VOICE: (608) 261-5738 FAX 264-5932 "Procrastination is like putting lots and lots of commas in the sentence of your life." Ze Frank http://lifehacker.com/software/procrastination/ze-frank-on-procrastination-235859.php From arodland at comcast.net Tue Feb 13 16:10:59 2007 From: arodland at comcast.net (Andrew Rodland) Date: Tue, 13 Feb 2007 18:10:59 -0600 Subject: [Chicago-talk] Perl 101 question In-Reply-To: References: Message-ID: <200702131810.59830.arodland@comcast.net> On Tuesday 13 February 2007 3:44 pm, Andy_Bach at wiwb.uscourts.gov wrote: > Reviewing a beginner perl course and it says: > [subscripting into a list] > > So ... I thought that was wrong but: > print ('how', 'price', 'hat') [0]; > > doesn't work. This does: > my $word = ('how', 'price', 'hat')[0]; > print "$word\n"; > > as does: > print "", ('how', 'price', 'hat')[0], "\n"; > > So are the parens just to 'bind' the index to the bare list? no, they're there to make the program make sense. While anyone who's used to Perl is used to calling print without parentheses, it can (like any other listop) be called in a form with parentheses as well (Ref: perlop, section "Terms and List Operators (Leftward)"). If the first thing after 'print' is a left-paren, then the arguments to 'print' only continue to the matching right-paren, just like a function call. So if you have: print (list)[0], "\n"; you have a call to print, with the argument (list), and then you have a [0], which makes no sense in what is now a TERM context, so perl throws a syntax error at you. The other forms you gave clarify the issue by making sure that the first thing after "print" isn't "(", so that it parses in the usual listop way. Other solutions you might see include: print ( (list)[0], "\n" ); or print +(list)[0], "\n"; Unary plus is basically a do-nothing operator that, again, makes it clear to the parser that print is followed by a term and not a left-paren. Hope this helps, and as they say, hope it's FMTYEWTK! Andrew From mongers at bsod.net Tue Feb 13 17:00:54 2007 From: mongers at bsod.net (Pete Krawczyk) Date: Tue, 13 Feb 2007 19:00:54 -0600 (CST) Subject: [Chicago-talk] Perl 101 question In-Reply-To: References: Message-ID: Subject: [Chicago-talk] Perl 101 question From: Andy_Bach at wiwb.uscourts.gov Date: Tue, 13 Feb 2007 15:44:53 -0600 }So are the parens just to 'bind' the index to the bare list? $ perl -MO=Deparse -e 'print "how"' print 'how'; -e syntax OK Consider what happens if we add parens: $ perl -MO=Deparse -e 'print ("how")' print "how"; -e syntax OK The parens are bound to the print() function, not to a list containing the single element "how". That, incidentally, is why you can't tack the [0] onto the end - you can't treat a function as a direct arrayref. $ perl -MO=Deparse -e "print (('how', 'price', 'hat') [0]);" print(('how', 'price', 'hat')[0]); -e syntax OK Taking the index off your print gives: $ perl -MO=Deparse -e "print (('how', 'price', 'hat'));" print 'how', 'price', 'hat'; -e syntax OK So, as you can see, the first set is used by the function, and the second set creates a list, of which the first element is selected. -Pete K -- Pete Krawczyk Chicago Perl Mongers mongers at bsod dot net From tigerpeng2001 at yahoo.com Fri Feb 16 12:24:09 2007 From: tigerpeng2001 at yahoo.com (tiger peng) Date: Fri, 16 Feb 2007 12:24:09 -0800 (PST) Subject: [Chicago-talk] Is it worth to be put in CPAN? Message-ID: <993567.79782.qm@web58713.mail.re1.yahoo.com> Finally, I got time to put my Data::Hierarchy::Traverser module on CPAN. If you have time, please take a look and I am more than willing to hear any feedback from you. http://search.cpan.org/~tigerperl/Data-Hierarchy-Traverser-0.01/lib/Data/Hierarchy/Traverser.pm ----- Original Message ---- From: Steven Lembark To: Chicago.pm chatter Sent: Tuesday, October 17, 2006 11:46:17 AM Subject: Re: [Chicago-talk] Is it worth to be put in CPAN? > The module proposed is just for traversing across > hierarchy (tree, trees) structure inspired by Dominus's > HOP. The function is not specified for growing trees, > trimming trees, nor burning trees. Its behavior depends > on the optional callback functions passed into it. By > default, it only walks through the hierarchy structure > without doing anything, except using some system > resources. That\xE2\x80'x99s what I mean > generic. So long as the module doesn't seriously break the perl distro there isn't any harm in putting it out there. Given the function of it is simple, work on creating a simple, well-documented interface. You could end up with a module that people use because they can use it :-) -- Steven Lembark 85-09 90th Street Workhorse Computing Woodhaven, NY 11421 lembark at wrkhors.com +1 888 359 3508 _______________________________________________ Chicago-talk mailing list Chicago-talk at pm.org http://mail.pm.org/mailman/listinfo/chicago-talk From jon at jrock.us Sat Feb 17 04:32:46 2007 From: jon at jrock.us (Jonathan Rockway) Date: Sat, 17 Feb 2007 06:32:46 -0600 Subject: [Chicago-talk] Is it worth to be put in CPAN? In-Reply-To: <993567.79782.qm@web58713.mail.re1.yahoo.com> References: <993567.79782.qm@web58713.mail.re1.yahoo.com> Message-ID: <200702170632.47348.jon@jrock.us> On Friday 16 February 2007 14:24, tiger peng wrote: > Finally, I got time to put my Data::Hierarchy::Traverser module on CPAN. > > If you have time, please take a look and I am more than willing to hear any > feedback from you. > > http://search.cpan.org/~tigerperl/Data-Hierarchy-Traverser-0.01/lib/Data/Hi >erarchy/Traverser.pm Looks like Data::Visitor::Callback. -- package JAPH;use Catalyst qw/-Debug/;($;=JAPH)->config(name => do { $,.=reverse qw[Jonathan tsu rehton lre rekca Rockway][$_].[split //, ";$;"]->[$_].q; ;for 1..4;$,=~s;^.;;;$,});$;->setup; -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 307 bytes Desc: not available Url : http://mail.pm.org/pipermail/chicago-talk/attachments/20070217/0f3bf434/attachment.bin From joshua.mcadams at gmail.com Sat Feb 17 12:37:38 2007 From: joshua.mcadams at gmail.com (Joshua McAdams) Date: Sat, 17 Feb 2007 14:37:38 -0600 Subject: [Chicago-talk] PM T-Shirts Message-ID: <49d805d70702171237r38ad5618i369da941606ac908@mail.gmail.com> So, I've had some of your Perl Mongers t-shirts in my possession for a while because I haven't ran into you at a PM meeting or, I was a bonehead and forgot to bring it to a meeting that you were at. Anyway, as far as I can tell, these are the people that I still have shirts for: * Scott Hendrith * Elias Lutfallah * Ray Donovan * Brad Doty * Alan Mead If you are on the list, please let me know if you'll be going to a PM meeting soon... like the February 20th meeting downtown at Performics. If not, email me so that we can arrange delivery. Thanks, Josh From amead2 at alanmead.org Sat Feb 17 14:19:49 2007 From: amead2 at alanmead.org (Alan Mead) Date: Sat, 17 Feb 2007 16:19:49 -0600 Subject: [Chicago-talk] PM T-Shirts In-Reply-To: <49d805d70702171237r38ad5618i369da941606ac908@mail.gmail.com> References: <49d805d70702171237r38ad5618i369da941606ac908@mail.gmail.com> Message-ID: <45D77F85.3040908@alanmead.org> Josh, I can paypal you the money or send you some money. I took a job teaching at IIT and I teach in the evenings on Monday and Tuesday. So I will not see you 2/20. If you want to get rid of it (or, actually, I think I wanted 2), you can give it to a deserving PMer or mail it to me or whatever you'd like. If you mail it, add something for postal and let me know what to send you. -Alan Joshua McAdams wrote: > So, I've had some of your Perl Mongers t-shirts in my possession for a > while because I haven't ran into you at a PM meeting or, I was a > bonehead and forgot to bring it to a meeting that you were at. > Anyway, as far as I can tell, these are the people that I still have > shirts for: > > * Scott Hendrith > * Elias Lutfallah > * Ray Donovan > * Brad Doty > * Alan Mead > > If you are on the list, please let me know if you'll be going to a PM > meeting soon... like the February 20th meeting downtown at Performics. > If not, email me so that we can arrange delivery. > > Thanks, > Josh > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > -- Alan D. Mead, Ph.D. : Skype ID alandmead amead at alanmead.org : +815-588-3846 Facts are stubborn, but statistics are more pliable. From joshua.mcadams at gmail.com Mon Feb 19 19:34:50 2007 From: joshua.mcadams at gmail.com (Joshua McAdams) Date: Mon, 19 Feb 2007 21:34:50 -0600 Subject: [Chicago-talk] PM T-Shirts In-Reply-To: <45D77F85.3040908@alanmead.org> References: <49d805d70702171237r38ad5618i369da941606ac908@mail.gmail.com> <45D77F85.3040908@alanmead.org> Message-ID: <49d805d70702191934t6ceda13fs9f6724ddcb0e4bdc@mail.gmail.com> > If you want to get rid of it (or, actually, I think I wanted 2), you can > give it to a deserving PMer or mail it to me or whatever you'd like. If > you mail it, add something for postal and let me know what to send you. Either way is fine with me... it's no problem to drop it in the mail though. Just let me know your address and I'll get you the amount after I ship them. Most likely I'll just put them in one of those pre-paid USPS boxes unless I can find something laying around here. From joshua.mcadams at gmail.com Tue Feb 20 08:53:29 2007 From: joshua.mcadams at gmail.com (Joshua McAdams) Date: Tue, 20 Feb 2007 10:53:29 -0600 Subject: [Chicago-talk] Fwd: Dynamic Language Hootenanny: NEW DATE In-Reply-To: <7AAD8E7C-B502-49CC-A764-9DD1A72ADBFB@petdance.com> References: <7AAD8E7C-B502-49CC-A764-9DD1A72ADBFB@petdance.com> Message-ID: <49d805d70702200853l11e691f9lc174e357581e5858@mail.gmail.com> Just a reminder... meeting today!! We've moved the date of the city meeting back a week to February 20th. Sorry for any inconvenience. Email Chris McAvoy (his gmail.com address is "chris.mcavoy") if you're coming to the city presentation, so that you can get on the list at the security desk. xoa .... Chris McAvoy will be rounding up the big four dynamic languages in a rootin'-tootin' look at what's what in the world of Perl, PHP, Python and Ruby. Is PHP just for script-slinging marketdroids? Do Python's whitespace rules really suck as much as you'd think? Is Ruby more than Rails? And what's up with Perl 6 anyway? Chris promises to make this a no-BS, no-bashing, honest look at the strengths and weaknesses of each of these languages. Come with an open mind and we'll explore the limitless frontiers of awesome programming. Chris will be presenting both in the city and the suburbs this month: * in Wheaton at IIT Rice campus on Feb 13, 2007 http://rakudo.org/chicago-pm/index.cgi? 2007_02_13_dynamic_language_hootenanny * in the city at Performics on Feb 20, 2007 http://rakudo.org/chicago-pm/index.cgi? 2007_02_20_dynamic_language_hootenanny Come on out and learn some new tricks! -- Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance _______________________________________________ Chicago-talk mailing list Chicago-talk at pm.org http://mail.pm.org/mailman/listinfo/chicago-talk From tom at yarrish.com Tue Feb 20 09:51:10 2007 From: tom at yarrish.com (Tom Yarrish) Date: Tue, 20 Feb 2007 11:51:10 -0600 Subject: [Chicago-talk] Perl Mentor program/website Message-ID: <01278E56-A100-4534-8CFA-4E9AE55ACF15@yarrish.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hey all, I was listening to the latest Perlcast interview on the way to work this morning, and started to think about something that Uri said towards the end of the interview. Mostly about his love of the Perl community and how he's seen issues getting quality Perl programmers into jobs where they are needed. So I started thinking about how I've struggled to learn Perl over the last few years (mainly because I don't work in a job where I can program at all really), and how it would be nice to "pair up" with someone in a student/teacher scenario. Then I started thinking about a mentor program that was started on the Binary Revolution website (http://www.binrev.com/projects/mentors.html if anyone is interested), and I thought "Why not Perl?" Now part of this is for partially selfish reasons, since I'm hoping to learn Perl in the process. But I went ahead and registered perlmentors.com, and I'm looking for input/ideas/help on what to put on the site. I was thinking of building the site using Catalyst, so I'm starting the process of getting that installed on the server now. I figured if it's a Perl related site, it should probably run in Perl. Does anyone think this is a good idea? Does something like this exist already? I know there's Perl Monks, but that seems more to be a forum for help, not necessarily what I'm looking at doing. I was also thinking this is a way I could "give back" to the Perl community in a "non-Perl" programming way (at least until I can really start some serious Perl programming). I was thinking as well of posting this message on the perl-beginners list, but I figured I'd start locally first :p Thanks, Tom -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) iD8DBQFF2zUUZWzkfeDiTw4RAlWhAJ9qoscWNTDOs1ro/dm2olJ8cdcd5wCfQSax J2z4XLHWk44D3tlpP9GZiAo= =7d7u -----END PGP SIGNATURE----- From chris.mcavoy at gmail.com Tue Feb 20 10:16:54 2007 From: chris.mcavoy at gmail.com (Chris McAvoy) Date: Tue, 20 Feb 2007 12:16:54 -0600 Subject: [Chicago-talk] Fwd: Dynamic Language Hootenanny: NEW DATE In-Reply-To: <49d805d70702200853l11e691f9lc174e357581e5858@mail.gmail.com> References: <7AAD8E7C-B502-49CC-A764-9DD1A72ADBFB@petdance.com> <49d805d70702200853l11e691f9lc174e357581e5858@mail.gmail.com> Message-ID: <3096c19d0702201016u639a8a7qa7ccc9a7a6a84117@mail.gmail.com> Also, bring a photo ID. If you have trouble getting into the building, call me at 773 306 8955 On 2/20/07, Joshua McAdams wrote: > Just a reminder... meeting today!! > > We've moved the date of the city meeting back a week to February > 20th. Sorry for any inconvenience. Email Chris McAvoy (his > gmail.com address is "chris.mcavoy") if you're coming to the city > presentation, so that you can get on the list at the security desk. > > xoa > > .... > > Chris McAvoy will be rounding up the big four dynamic languages in a > rootin'-tootin' look at what's what in the world of Perl, PHP, Python > and Ruby. Is PHP just for script-slinging marketdroids? Do Python's > whitespace rules really suck as much as you'd think? Is Ruby more > than Rails? And what's up with Perl 6 anyway? > > Chris promises to make this a no-BS, no-bashing, honest look at the > strengths and weaknesses of each of these languages. Come with an > open mind and we'll explore the limitless frontiers of awesome > programming. > > Chris will be presenting both in the city and the suburbs this month: > > * in Wheaton at IIT Rice campus on Feb 13, 2007 > http://rakudo.org/chicago-pm/index.cgi? > 2007_02_13_dynamic_language_hootenanny > > * in the city at Performics on Feb 20, 2007 > http://rakudo.org/chicago-pm/index.cgi? > 2007_02_20_dynamic_language_hootenanny > > Come on out and learn some new tricks! > > -- > Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance > > > > > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > From mikeferrari8 at yahoo.com Tue Feb 20 10:46:40 2007 From: mikeferrari8 at yahoo.com (/dev/mike0) Date: Tue, 20 Feb 2007 10:46:40 -0800 (PST) Subject: [Chicago-talk] PM T-Shirts Message-ID: <618546.47460.qm@web36203.mail.mud.yahoo.com> Hi Everyone I am writing a small script for work to parse an xml doc and print out data from a specific tag. Its on a windows xp box with active state perl installed, no additional modules, just the defaults. I usually use XML:Simple but am wanting to learn a bit more and understand XML:Parser. I create handlers according to the perldoc and have been using an online example (http://builder.com.com/5100-6371_14-1044612-2.html) Listing A and B for reference.. I can print out start tags, character data, and end tags for the entire xml file.. My big question is.. how the heck do i just catch one specific tag? I tried using a if statement and match operator to seach for specifics but none seem to be working. maybe its just me, its sounds pretty noob, i am feeling a bit off today.. :-) i would think its pretty simple and am sort of stuck :-) So using the data.xml (listing B on the web page) ..the following is the approach i am taking. use XML::Parser; my $xmlfile = shift; die "Cannot find file \"$xmlfile\"" unless -f $xmlfile; my $parser = new XML::Parser; $parser->setHandlers( Start => \&startElement, End => \&endElement, Char => \&characterData, Default => \&default); $parser->parsefile($xmlfile); sub startElement { my( $parseinst, $element, %attrs ) = @_; if ($element =~ /url/) { print "$element"; } } sub endElement { my( $parseinst, $element ) = @_; # do nothing, but stay quiet } sub characterData { my( $parseinst, $data ) = @_; if ($data = /url/) { print "$data\n "; } } sub default { my( $parseinst, $data ) = @_; # do nothing, but stay quiet } The problem as i think it boils down to is.. if the xml tag is i want to print out the character data between the start and end tag for it.. basically print whats here. Seems simple. but i am stuck. Thanks Mike http://www.mikeferrari.com http://www.chromeczars.com http://www.hunnertcarpileup.com ____________________________________________________________________________________ It's here! Your new message! Get new email alerts with the free Yahoo! Toolbar. http://tools.search.yahoo.com/toolbar/features/mail/ From mikeferrari8 at yahoo.com Tue Feb 20 10:48:52 2007 From: mikeferrari8 at yahoo.com (/dev/mike0) Date: Tue, 20 Feb 2007 10:48:52 -0800 (PST) Subject: [Chicago-talk] XML::parser Message-ID: <672250.47805.qm@web36203.mail.mud.yahoo.com> I should have edited the title in my previous email :-) http://www.mikeferrari.com http://www.chromeczars.com http://www.hunnertcarpileup.com ----- Original Message ---- From: /dev/mike0 To: Chicago.pm chatter Sent: Tuesday, February 20, 2007 12:46:40 PM Subject: Re: [Chicago-talk] PM T-Shirts Hi Everyone I am writing a small script for work to parse an xml doc and print out data from a specific tag. Its on a windows xp box with active state perl installed, no additional modules, just the defaults. I usually use XML:Simple but am wanting to learn a bit more and understand XML:Parser. I create handlers according to the perldoc and have been using an online example (http://builder.com.com/5100-6371_14-1044612-2.html) Listing A and B for reference.. I can print out start tags, character data, and end tags for the entire xml file.. My big question is.. how the heck do i just catch one specific tag? I tried using a if statement and match operator to seach for specifics but none seem to be working. maybe its just me, its sounds pretty noob, i am feeling a bit off today.. :-) i would think its pretty simple and am sort of stuck :-) So using the data.xml (listing B on the web page) ..the following is the approach i am taking. use XML::Parser; my $xmlfile = shift; die "Cannot find file \"$xmlfile\"" unless -f $xmlfile; my $parser = new XML::Parser; $parser->setHandlers( Start => \&startElement, End => \&endElement, Char => \&characterData, Default => \&default); $parser->parsefile($xmlfile); sub startElement { my( $parseinst, $element, %attrs ) = @_; if ($element =~ /url/) { print "$element"; } } sub endElement { my( $parseinst, $element ) = @_; # do nothing, but stay quiet } sub characterData { my( $parseinst, $data ) = @_; if ($data = /url/) { print "$data\n "; } } sub default { my( $parseinst, $data ) = @_; # do nothing, but stay quiet } The problem as i think it boils down to is.. if the xml tag is i want to print out the character data between the start and end tag for it.. basically print whats here. Seems simple. but i am stuck. Thanks Mike http://www.mikeferrari.com http://www.chromeczars.com http://www.hunnertcarpileup.com ____________________________________________________________________________________ It's here! Your new message! Get new email alerts with the free Yahoo! Toolbar. http://tools.search.yahoo.com/toolbar/features/mail/ _______________________________________________ Chicago-talk mailing list Chicago-talk at pm.org http://mail.pm.org/mailman/listinfo/chicago-talk ____________________________________________________________________________________ Need Mail bonding? Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users. http://answers.yahoo.com/dir/?link=list&sid=396546091 From frag at ripco.com Tue Feb 20 13:29:03 2007 From: frag at ripco.com (Mike Fragassi) Date: Tue, 20 Feb 2007 15:29:03 -0600 (CST) Subject: [Chicago-talk] XML::parser In-Reply-To: <672250.47805.qm@web36203.mail.mud.yahoo.com> References: <672250.47805.qm@web36203.mail.mud.yahoo.com> Message-ID: Basically, you need to use the start and end handlers to keep track of when you enter and leave your chosen tag, in a separate variable. Then the character handler checks this variable, and prints if it's ok. (See my edits below.) Note that this is very simple, and falls down in more complicated xml. E.g. if you have complicated nesting of tags: foo x then this approach will print the 'x' as well as the 'foo'. If that's a concern, you can use a stack instead of a single variable to hold the xml tag names. Also, it's probably a good idea to use "$element eq 'url'" instead of a regex match. -- Mike F. On Tue, 20 Feb 2007, /dev/mike0 wrote: > > > use XML::Parser; > my $xmlfile = shift; > die "Cannot find file \"$xmlfile\"" > unless -f $xmlfile; > my $parser = new XML::Parser; > $parser->setHandlers( Start => \&startElement, > End => \&endElement, > Char => \&characterData, > Default => \&default); > $parser->parsefile($xmlfile); my $inside_url_tag; > sub startElement { > my( $parseinst, $element, %attrs ) = @_; > if ($element =~ /url/) { > print "$element"; $inside_url_tag = 1; > } > } > > sub endElement { > my( $parseinst, $element ) = @_; > # do nothing, but stay quiet if ($element =~ /url/) { $inside_url_tag = 0; } > } > > sub characterData { > my( $parseinst, $data ) = @_; # if ($data = /url/) { if ($inside_url_tag) { > print "$data\n "; > } > } > > sub default { > > my( $parseinst, $data ) = @_; > # do nothing, but stay quiet > } > > > The problem as i think it boils down to is.. if the xml tag is i want to print out the character data between the start and end tag for it.. basically print whats here. > > Seems simple. but i am stuck. > > Thanks > Mike > > http://www.mikeferrari.com > http://www.chromeczars.com > http://www.hunnertcarpileup.com > > > > > > > ____________________________________________________________________________________ > It's here! Your new message! > Get new email alerts with the free Yahoo! Toolbar. > http://tools.search.yahoo.com/toolbar/features/mail/ > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > > > > > > > > ____________________________________________________________________________________ > Need Mail bonding? > Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users. > http://answers.yahoo.com/dir/?link=list&sid=396546091 > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > From chris.mcavoy at gmail.com Tue Feb 20 15:31:05 2007 From: chris.mcavoy at gmail.com (Chris McAvoy) Date: Tue, 20 Feb 2007 17:31:05 -0600 Subject: [Chicago-talk] Notes for Tonight Message-ID: <3096c19d0702201531x35d7bb4aw2755ee3f3c92eaef@mail.gmail.com> Hi all, The notes I'm going to be using for tonight's presentation are at http://lonelylion.com/mcavoy_public/presentations/language_hootenanny.txt That's a subversion repository, so you can check it out too if you're so inclined: svn co http://lonelylion.com/mcavoy_public There's some other projects in there that I'll be referencing in the project. I also HTML'ized the notes and threw them up on my blog: http://weblog.lonelylion.com/2007/02/20/notes-for-tonights-chicagopm-meeting/ Chris From joshua.mcadams at gmail.com Tue Feb 20 17:29:08 2007 From: joshua.mcadams at gmail.com (Joshua McAdams) Date: Tue, 20 Feb 2007 19:29:08 -0600 Subject: [Chicago-talk] Perl Mentor program/website In-Reply-To: <01278E56-A100-4534-8CFA-4E9AE55ACF15@yarrish.com> References: <01278E56-A100-4534-8CFA-4E9AE55ACF15@yarrish.com> Message-ID: <49d805d70702201729i7d7edd78j9eff36fc41fa9fea@mail.gmail.com> There once was a website that attempted to link up Perl programmers and learners... actually, I just found it at http://apprentice.perl.org/. Anyway, it looks like it has gotten stale. PerlMentor.com seems like a great idea. I'm actually learning catalyst atm and would love to help out. On 2/20/07, Tom Yarrish wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hey all, > I was listening to the latest Perlcast interview on the way to work > this morning, and started to think about something that Uri said > towards the end of the interview. Mostly about his love of the Perl > community and how he's seen issues getting quality Perl programmers > into jobs where they are needed. > So I started thinking about how I've struggled to learn Perl over the > last few years (mainly because I don't work in a job where I can > program at all really), and how it would be nice to "pair up" with > someone in a student/teacher scenario. Then I started thinking about > a mentor program that was started on the Binary Revolution website > (http://www.binrev.com/projects/mentors.html if anyone is > interested), and I thought "Why not Perl?" > Now part of this is for partially selfish reasons, since I'm hoping > to learn Perl in the process. But I went ahead and registered > perlmentors.com, and I'm looking for input/ideas/help on what to put > on the site. I was thinking of building the site using Catalyst, so > I'm starting the process of getting that installed on the server > now. I figured if it's a Perl related site, it should probably run > in Perl. > Does anyone think this is a good idea? Does something like this > exist already? I know there's Perl Monks, but that seems more to be > a forum for help, not necessarily what I'm looking at doing. > I was also thinking this is a way I could "give back" to the Perl > community in a "non-Perl" programming way (at least until I can > really start some serious Perl programming). > I was thinking as well of posting this message on the perl-beginners > list, but I figured I'd start locally first :p > > Thanks, > Tom > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.5 (Darwin) > > iD8DBQFF2zUUZWzkfeDiTw4RAlWhAJ9qoscWNTDOs1ro/dm2olJ8cdcd5wCfQSax > J2z4XLHWk44D3tlpP9GZiAo= > =7d7u > -----END PGP SIGNATURE----- > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > From mikeferrari8 at yahoo.com Tue Feb 20 19:57:54 2007 From: mikeferrari8 at yahoo.com (/dev/mike0) Date: Tue, 20 Feb 2007 19:57:54 -0800 (PST) Subject: [Chicago-talk] XML::parser Message-ID: <749621.95311.qm@web36204.mail.mud.yahoo.com> One Mike F to another Mike F ... thanks! Mike F http://www.mikeferrari.com http://www.chromeczars.com http://www.hunnertcarpileup.com ----- Original Message ---- From: Mike Fragassi To: Chicago.pm chatter Sent: Tuesday, February 20, 2007 3:29:03 PM Subject: Re: [Chicago-talk] XML::parser Basically, you need to use the start and end handlers to keep track of when you enter and leave your chosen tag, in a separate variable. Then the character handler checks this variable, and prints if it's ok. (See my edits below.) Note that this is very simple, and falls down in more complicated xml. E.g. if you have complicated nesting of tags: foo x then this approach will print the 'x' as well as the 'foo'. If that's a concern, you can use a stack instead of a single variable to hold the xml tag names. Also, it's probably a good idea to use "$element eq 'url'" instead of a regex match. -- Mike F. On Tue, 20 Feb 2007, /dev/mike0 wrote: > > > use XML::Parser; > my $xmlfile = shift; > die "Cannot find file \"$xmlfile\"" > unless -f $xmlfile; > my $parser = new XML::Parser; > $parser->setHandlers( Start => \&startElement, > End => \&endElement, > Char => \&characterData, > Default => \&default); > $parser->parsefile($xmlfile); my $inside_url_tag; > sub startElement { > my( $parseinst, $element, %attrs ) = @_; > if ($element =~ /url/) { > print "$element"; $inside_url_tag = 1; > } > } > > sub endElement { > my( $parseinst, $element ) = @_; > # do nothing, but stay quiet if ($element =~ /url/) { $inside_url_tag = 0; } > } > > sub characterData { > my( $parseinst, $data ) = @_; # if ($data = /url/) { if ($inside_url_tag) { > print "$data\n "; > } > } > > sub default { > > my( $parseinst, $data ) = @_; > # do nothing, but stay quiet > } > > > The problem as i think it boils down to is.. if the xml tag is i want to print out the character data between the start and end tag for it.. basically print whats here. > > Seems simple. but i am stuck. > > Thanks > Mike > > http://www.mikeferrari.com > http://www.chromeczars.com > http://www.hunnertcarpileup.com > > > > > > > ____________________________________________________________________________________ > It's here! Your new message! > Get new email alerts with the free Yahoo! Toolbar. > http://tools.search.yahoo.com/toolbar/features/mail/ > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > > > > > > > > ____________________________________________________________________________________ > Need Mail bonding? > Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users. > http://answers.yahoo.com/dir/?link=list&sid=396546091 > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > _______________________________________________ Chicago-talk mailing list Chicago-talk at pm.org http://mail.pm.org/mailman/listinfo/chicago-talk ____________________________________________________________________________________ Have a burning question? Go to www.Answers.yahoo.com and get answers from real people who know. From tom at yarrish.com Tue Feb 20 20:15:17 2007 From: tom at yarrish.com (Tom Yarrish) Date: Tue, 20 Feb 2007 22:15:17 -0600 Subject: [Chicago-talk] Perl Mentor program/website In-Reply-To: <49d805d70702201729i7d7edd78j9eff36fc41fa9fea@mail.gmail.com> References: <01278E56-A100-4534-8CFA-4E9AE55ACF15@yarrish.com> <49d805d70702201729i7d7edd78j9eff36fc41fa9fea@mail.gmail.com> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Feb 20, 2007, at 7:29 PM, Joshua McAdams wrote: > There once was a website that attempted to link up Perl programmers > and learners... actually, I just found it at > http://apprentice.perl.org/. Anyway, it looks like it has gotten > stale. PerlMentor.com seems like a great idea. I'm actually learning > catalyst atm and would love to help out. > > On 2/20/07, Tom Yarrish wrote: >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> Hey all, >> I was listening to the latest Perlcast interview on the way to work >> this morning, and started to think about something that Uri said >> towards the end of the interview. Mostly about his love of the Perl >> community and how he's seen issues getting quality Perl programmers >> into jobs where they are needed. >> So I started thinking about how I've struggled to learn Perl over the >> last few years (mainly because I don't work in a job where I can >> program at all really), and how it would be nice to "pair up" with >> someone in a student/teacher scenario. Then I started thinking about >> a mentor program that was started on the Binary Revolution website >> (http://www.binrev.com/projects/mentors.html if anyone is >> interested), and I thought "Why not Perl?" >> Now part of this is for partially selfish reasons, since I'm hoping >> to learn Perl in the process. But I went ahead and registered >> perlmentors.com, and I'm looking for input/ideas/help on what to put >> on the site. I was thinking of building the site using Catalyst, so >> I'm starting the process of getting that installed on the server >> now. I figured if it's a Perl related site, it should probably run >> in Perl. >> Does anyone think this is a good idea? Does something like this >> exist already? I know there's Perl Monks, but that seems more to be >> a forum for help, not necessarily what I'm looking at doing. >> I was also thinking this is a way I could "give back" to the Perl >> community in a "non-Perl" programming way (at least until I can >> really start some serious Perl programming). >> I was thinking as well of posting this message on the perl-beginners >> list, but I figured I'd start locally first :p >> >> Thanks, >> Tom >> -----BEGIN PGP SIGNATURE----- >> Version: GnuPG v1.4.5 (Darwin) >> >> iD8DBQFF2zUUZWzkfeDiTw4RAlWhAJ9qoscWNTDOs1ro/dm2olJ8cdcd5wCfQSax >> J2z4XLHWk44D3tlpP9GZiAo= >> =7d7u >> -----END PGP SIGNATURE----- >> _______________________________________________ >> Chicago-talk mailing list >> Chicago-talk at pm.org >> http://mail.pm.org/mailman/listinfo/chicago-talk >> > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk Didn't notice that site before. It doesn't seem like any of the projects actually had any work done however. But it's similar to the idea I had. Overall I was thinking in the line of "Okay, I've read the Llama, and Intermediate Perl, but I don't program for a living, so what's next?" sort of thing. Maybe break it into a section where there are assignments like the end of the Perl book chapters (or from Randal's Perls of Wisdom) but give the project and then one possible idea. I'd love the help in getting the site up on Catalyst, I just need to figure out how to get the framework installed on Dreamhost (was trying that all day without success). So I may just throw up a starter page tomorrow to get the ball rolling, and get some attention to it and build it up from there. If there's any other suggestions that people have to add to it, sort of a "I wish they had x when I was learning Perl" I'd love to hear it. Tom We crucify ourselves between two thieves- regret for yesterday and fear of tomorrow. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (Darwin) iD8DBQFF28dbZWzkfeDiTw4RAgS/AJ9gP9BQeNxzVLUV0CFWIGmiJLdLeQCfayph EwX4weEPlkcL0jPklpu3eMQ= =7HN5 -----END PGP SIGNATURE----- From jon at jrock.us Tue Feb 20 23:22:30 2007 From: jon at jrock.us (Jonathan Rockway) Date: Wed, 21 Feb 2007 01:22:30 -0600 Subject: [Chicago-talk] Perl Mentor program/website In-Reply-To: References: <01278E56-A100-4534-8CFA-4E9AE55ACF15@yarrish.com> <49d805d70702201729i7d7edd78j9eff36fc41fa9fea@mail.gmail.com> Message-ID: <200702210122.32221.jon@jrock.us> On Tuesday 20 February 2007 22:15, Tom Yarrish wrote: > I'd love the help in getting the site up on Catalyst, I just need to > figure out how to get the framework installed on Dreamhost (was > trying that all day without success). http://dev.catalystframework.org/wiki/Dreamhost -- package JAPH;use Catalyst qw/-Debug/;($;=JAPH)->config(name => do { $,.=reverse qw[Jonathan tsu rehton lre rekca Rockway][$_].[split //, ";$;"]->[$_].q; ;for 1..4;$,=~s;^.;;;$,});$;->setup; -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 307 bytes Desc: not available Url : http://mail.pm.org/pipermail/chicago-talk/attachments/20070221/ef8ef5b8/attachment.bin From andy at petdance.com Wed Feb 21 07:00:40 2007 From: andy at petdance.com (Andy Lester) Date: Wed, 21 Feb 2007 09:00:40 -0600 Subject: [Chicago-talk] Hootenanny recap Message-ID: <4809AB0A-F9E2-4276-B55A-561181A54DCF@petdance.com> I wrote some notes about last night's meeting: http://rakudo.org/chicago-pm/index.cgi? 2007_02_20_dynamic_language_hootenanny Please stop by and add your own comments, too. xoxo, Andy -- Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance From chris.mcavoy at gmail.com Wed Feb 21 09:03:18 2007 From: chris.mcavoy at gmail.com (Chris McAvoy) Date: Wed, 21 Feb 2007 11:03:18 -0600 Subject: [Chicago-talk] Ruby DSL Message-ID: <3096c19d0702210903g1786140cp13e979cd847bbdd6@mail.gmail.com> Nola's blog (http://www.rubygeek.com/2007/02/20/windy-city-perl-meeting/) said something about wanting to know more about the Ruby DSL example I showed last night, I wrote up something this morning: http://weblog.lonelylion.com/2007/02/21/a-very-simple-ruby-dsl-example/ Chris From chris.mcavoy at gmail.com Wed Feb 21 11:21:25 2007 From: chris.mcavoy at gmail.com (Chris McAvoy) Date: Wed, 21 Feb 2007 13:21:25 -0600 Subject: [Chicago-talk] One more followup... Message-ID: <3096c19d0702211121g4f0a137bmf80ce2d69cd5153b@mail.gmail.com> For Mike and anyone else last night that wasn't really connecting with Ruby blocks: http://dablog.rubypal.com/articles/2007/02/18/the-magic-pens-of-ruby Chris From JJacobus at PonyX.com Wed Feb 21 15:41:27 2007 From: JJacobus at PonyX.com (Jim Jacobus) Date: Wed, 21 Feb 2007 17:41:27 -0600 Subject: [Chicago-talk] Is it running from cron? Message-ID: <6.2.5.6.2.20070221173611.0388fd50@SurplusRecord.com> Is there an easy way to test if a script is running from cron? I want one script to output differently if it is running with a browser and another output when running via cron. I tried using -t to test STDIN and STDOUT, but that only tells me if it's running interactively or not. From andy at petdance.com Wed Feb 21 15:43:51 2007 From: andy at petdance.com (Andy Lester) Date: Wed, 21 Feb 2007 17:43:51 -0600 Subject: [Chicago-talk] Is it running from cron? In-Reply-To: <6.2.5.6.2.20070221173611.0388fd50@SurplusRecord.com> References: <6.2.5.6.2.20070221173611.0388fd50@SurplusRecord.com> Message-ID: On Feb 21, 2007, at 5:41 PM, Jim Jacobus wrote: > Is there an easy way to test if a script is running from cron? I want > one script to output differently if it is running with a browser and > another output when running via cron. I tried using -t to test STDIN > and STDOUT, but that only tells me if it's running interactively or > not. What does "from cron" mean? You can tell if it's running in a web server process vs. running from the command line, 'cause the web server process will likely have an environment variable like MOD_PERL or CGI set. -- Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance From brian.d.foy at gmail.com Wed Feb 21 16:25:25 2007 From: brian.d.foy at gmail.com (brian d foy) Date: Wed, 21 Feb 2007 18:25:25 -0600 Subject: [Chicago-talk] Is it running from cron? In-Reply-To: <6.2.5.6.2.20070221173611.0388fd50@SurplusRecord.com> References: <6.2.5.6.2.20070221173611.0388fd50@SurplusRecord.com> Message-ID: <2715accf0702211625p4f21c48cjf678482337f79913@mail.gmail.com> On 2/21/07, Jim Jacobus wrote: > Is there an easy way to test if a script is running from cron? I want > one script to output differently if it is running with a browser and > another output when running via cron. I tried using -t to test STDIN > and STDOUT, but that only tells me if it's running interactively or not. I like to set a variable in my cron tab. I can then check for that in my script if I decide that I want to act differently: FROM_CRON=1 1 2 3 4 5 /some/command some args -- brian d foy http://www.pair.com/~comdog/ From brian.d.foy at gmail.com Wed Feb 21 16:29:36 2007 From: brian.d.foy at gmail.com (brian d foy) Date: Wed, 21 Feb 2007 18:29:36 -0600 Subject: [Chicago-talk] Is it running from cron? In-Reply-To: References: <6.2.5.6.2.20070221173611.0388fd50@SurplusRecord.com> Message-ID: <2715accf0702211629l6677fbafwebc0bbf7931d9564@mail.gmail.com> On 2/21/07, Andy Lester wrote: > What does "from cron" mean? There's a unix daemon called crond that runs commands at prescribed times. Commands so run are said to run "from cron". > You can tell if it's running in a web > server process vs. running from the command line, 'cause the web > server process will likely have an environment variable like MOD_PERL > or CGI set. mod_perl will set a MOD_PERL environment variable, but there usually isn't something called CGI. Various things such as REQUEST_METHOD, GATEWAY_INTERFACE, and HTTP_METHOD are usual for detecting web transactions. -- brian d foy http://www.pair.com/~comdog/ From jon at jrock.us Wed Feb 21 16:29:57 2007 From: jon at jrock.us (Jonathan Rockway) Date: Wed, 21 Feb 2007 18:29:57 -0600 Subject: [Chicago-talk] Is it running from cron? In-Reply-To: <2715accf0702211625p4f21c48cjf678482337f79913@mail.gmail.com> References: <6.2.5.6.2.20070221173611.0388fd50@SurplusRecord.com> <2715accf0702211625p4f21c48cjf678482337f79913@mail.gmail.com> Message-ID: <200702211829.57545.jon@jrock.us> On Wednesday 21 February 2007 18:25, brian d foy wrote: > I like to set a variable in my cron tab. I can then check for that in > my script if I decide that I want to act differently: > > FROM_CRON=1 > 1 2 3 4 5 /some/command some args That's the safest technique. I'm pretty sure that MAILTO is set by default also, and that's not usually set outside of cron. -- package JAPH;use Catalyst qw/-Debug/;($;=JAPH)->config(name => do { $,.=reverse qw[Jonathan tsu rehton lre rekca Rockway][$_].[split //, ";$;"]->[$_].q; ;for 1..4;$,=~s;^.;;;$,});$;->setup; From Andy_Bach at wiwb.uscourts.gov Thu Feb 22 09:26:08 2007 From: Andy_Bach at wiwb.uscourts.gov (Andy_Bach at wiwb.uscourts.gov) Date: Thu, 22 Feb 2007 11:26:08 -0600 Subject: [Chicago-talk] Is it running from cron? In-Reply-To: <200702211829.57545.jon@jrock.us> Message-ID: > > > FROM_CRON=1 > 1 2 3 4 5 /some/command some args Couple hints - best to make a script and run that instead of a command, as you can alter the script as needed. You can also set all the vars you want. Modern (Vixie-ish) crons set some env vars (see man 5 crontab Several environment variables are set up automatically by the cron(8) daemon. SHELL is set to /bin/sh, and LOGNAME and HOME are set from the /etc/passwd line of the crontab?s owner. HOME and SHELL may be over- ridden by settings in the crontab; LOGNAME may not. (Another note: the LOGNAME variable is sometimes called USER on BSD systems... on these systems, USER will be set also.) In addition to LOGNAME, HOME, and SHELL, cron(8) will look at MAILTO if it has any reason to send mail as a result of running commands in ??this?? crontab. If MAILTO is defined (and non-empty), mail is sent to the user so named. If MAILTO is defined but empty (MAILTO=""), no mail will be sent. ... Environment variables can be set in the crontab. In BSD or ATT, the environment handed to child processes is basically the one from /etc/rc. But note - expansions *don't* work, e.g. PATH=$PATH:/usr/local/bin won't give (/bin:/usr/bin is the standard cron-given path ... so FQ executable names is always worth it - even if it is /bin/grep) PATH=/bin:/usr/bin:/usr/local/bin but: $PATH:/usr/local/bin (just put: PATH=$PATH:/usr/local/bin 6 11 * * * root /bin/echo $PATH in /etc/cron.d/test - as long as the set time is more than a minute away from now). a Andy Bach Systems Mangler Internet: andy_bach at wiwb.uscourts.gov VOICE: (608) 261-5738 FAX 264-5932 "Procrastination is like putting lots and lots of commas in the sentence of your life." Ze Frank http://lifehacker.com/software/procrastination/ze-frank-on-procrastination-235859.php From lembark at wrkhors.com Thu Feb 22 14:42:12 2007 From: lembark at wrkhors.com (Steven Lembark) Date: Thu, 22 Feb 2007 17:42:12 -0500 Subject: [Chicago-talk] Is it running from cron? In-Reply-To: References: Message-ID: <45DE1C44.80704@wrkhors.com> > Couple hints - best to make a script and run that instead of a command, as > you can alter the script as needed. You can also set all the vars you > want. Modern (Vixie-ish) crons set some env vars (see > man 5 crontab Var's in crontab are minimal standard shell; you may even find them in a web server. Easiest way to make the executable internally cron-safe I've seen is add a switch: frobnicate --crontab frobnicate --apache Using an env var leaves the thing runnable but incorrect on the cron side of life -- and dropping an extra row is all too easy. With the switch at least the distinction becomes part of the required command line so you either get it or puke. -- Steven Lembark 85-09 90th Street Workhorse Computing Woodhaven, NY 11421 lembark at wrkhors.com +1 888 359 3508 From me at heyjay.com Fri Feb 23 13:18:21 2007 From: me at heyjay.com (Jay Strauss) Date: Fri, 23 Feb 2007 15:18:21 -0600 Subject: [Chicago-talk] parsing HTML Message-ID: Hi, I need to parse out the text from HTML like: Street Address to pluck out "Street Address" or 60643 to pluck out "60643" Would you suggest using a regex (that I can't get to work) or some module (like HTML::Parser)? Thanks Jay From jim at jimandkoka.com Fri Feb 23 13:34:56 2007 From: jim at jimandkoka.com (Jim Thomason) Date: Fri, 23 Feb 2007 15:34:56 -0600 Subject: [Chicago-talk] parsing HTML In-Reply-To: References: Message-ID: <5cfdfaf70702231334p149f05afi751ef59404e73e6a@mail.gmail.com> How much control do you have over the HTML that you're parsing? If you can make reasonable assumptions about its structure, your life is much easier. I'm a big proponent of using regexes to keep your life simple instead of parsers or new modules or whatnot. But, if you have no control about your source HTML, a parser from the getgo would probably make your life easier. Yes, yes, yes, insert standard lines here about how if the job gets much more complicated, you may need to go back and re-engineer to use a parser. Yadda yadda yadda. So, what do you know about this data? for example, would />([^<]+)(\s*[^<\s][^<]*) wrote: > Hi, > > I need to parse out the text from HTML like: > > Street Address > > to pluck out "Street Address" > > or > > > 60643 > > to pluck out "60643" > > Would you suggest using a regex (that I can't get to work) or some > module (like HTML::Parser)? > > Thanks > Jay > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > From andy at petdance.com Fri Feb 23 13:35:36 2007 From: andy at petdance.com (Andy Lester) Date: Fri, 23 Feb 2007 15:35:36 -0600 Subject: [Chicago-talk] parsing HTML In-Reply-To: References: Message-ID: On Feb 23, 2007, at 3:18 PM, Jay Strauss wrote: > Would you suggest using a regex (that I can't get to work) or some > module (like HTML::Parser)? If all you want is the text, look at WWW::Mechanize's ->content() method. http://search.cpan.org/dist/WWW-Mechanize/lib/WWW/Mechanize.pm#% 24mech-%3Econtent(...) $mech->content( format => "text" ) Returns a text-only version of the page, with all HTML markup stripped. This feature requires HTML::TreeBuilder to be installed, or a fatal error will be thrown. -- Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance From me at heyjay.com Fri Feb 23 13:50:24 2007 From: me at heyjay.com (Jay Strauss) Date: Fri, 23 Feb 2007 15:50:24 -0600 Subject: [Chicago-talk] parsing HTML In-Reply-To: References: Message-ID: On 2/23/07, Andy Lester wrote: > > On Feb 23, 2007, at 3:18 PM, Jay Strauss wrote: > > > Would you suggest using a regex (that I can't get to work) or some > > module (like HTML::Parser)? > > If all you want is the text, look at WWW::Mechanize's ->content() > method. > > http://search.cpan.org/dist/WWW-Mechanize/lib/WWW/Mechanize.pm#% > 24mech-%3Econtent(...) > > $mech->content( format => "text" ) > > Returns a text-only version of the page, with all HTML markup > stripped. This feature requires HTML::TreeBuilder to be installed, or > a fatal error will be thrown. I'm already using mech, but I have to parse a specific table the code I'm using is below. Is there a way to make mech return just text of a table? use WWW::Mechanize; use HTML::TableContentParser; use Data::Dumper; my $mech = WWW::Mechanize->new(); $mech->get( 'http://www.ffiec.gov/Geocode/default.aspx' ); $mech->form_name("Form1"); $mech->submit_form( form_name => "Form1", fields => { txtZipCode => $someZip, txtAddress => $someAddress, }, button => "btnSearch", ); my $p = HTML::TableContentParser->new(); my $tables_ref = $p->parse($mech->content); (my $geo_data) = grep { $_->{id} =~ /table2/i } @$tables_ref; if ($geo_data) { foreach my $row (@{$geo_data->{rows}}) { foreach my $cell (@{$row->{cells}}) { $cell->{data} =~ />(\s*[^<\s][^<]*) References: <5cfdfaf70702231334p149f05afi751ef59404e73e6a@mail.gmail.com> Message-ID: On 2/23/07, Jim Thomason wrote: > How much control do you have over the HTML that you're parsing? If you > can make reasonable assumptions about its structure, your life is much > easier. I'm a big proponent of using regexes to keep your life simple > instead of parsers or new modules or whatnot. But, if you have no > control about your source HTML, a parser from the getgo would probably > make your life easier. > > Yes, yes, yes, insert standard lines here about how if the job gets > much more complicated, you may need to go back and re-engineer to use > a parser. Yadda yadda yadda. > > So, what do you know about this data? for example, would />([^<]+) do what you want? > > I suppose />(\s*[^<\s][^<]*) non-whitespace character. > > -Jim..... I have zero control over the HTML returned. I'm parsing the results of http://www.ffiec.gov/Geocode/default.aspx From jon at jrock.us Fri Feb 23 14:09:53 2007 From: jon at jrock.us (Jonathan Rockway) Date: Fri, 23 Feb 2007 16:09:53 -0600 Subject: [Chicago-talk] parsing HTML In-Reply-To: References: Message-ID: <45DF6631.6030307@jrock.us> Jay Strauss wrote: > Hi, > > I need to parse out the text from HTML like: > > Street Address > > to pluck out "Street Address" > > or > > > 60643 > > to pluck out "60643" > > Would you suggest using a regex (that I can't get to work) or some > module (like HTML::Parser)? I'm thinking you want HTML::TreeBuilder::XPath. (XPath is like SQL for trees.) http://search.cpan.org/~mirod/HTML-TreeBuilder-XPath-0.08/lib/HTML/TreeBuilder/XPath.pm Then you can do something like use HTML::TreeBuilder::XPath; my $tree= HTML::TreeBuilder::XPath->new; $tree->parse_file( "mypage.html"); my $zip = $html-> findnodes('//span[@id="UcGeoResult11_lbZibCode"]/font'); If you're lucky, you can do: my @zips = ... /span[@class="main-body"]/span/font[@color="Navy"] or something similar to get a list of all zips instead of just a single row. Or you can do: my @data; my @rows = ... /span[@class="main-body"]/span foreach my $r (@rows){ my $row; $row->{zip} = $r-> ... /span/font[@color="Navy"]; $row->{state}= $r-> ... /span/font[@color="Red, maybe?"]; # etc. push @data, $row; } Now @data is a beautifully organized data set! (Until they change their colors, of course -- but that's what life is like for screen-scrapers.) Details of XPath are here: http://www.w3.org/TR/xpath If you want to try out XPath queries visually in Firefox, get this extension: https://addons.mozilla.org/firefox/1095/ Regards, Jonathan Rockway -- package JAPH;use Catalyst qw/-Debug/;($;=JAPH)->config(name => do { $,.=reverse qw[Jonathan tsu rehton lre rekca Rockway][$_].[split //, ";$;"]->[$_].q; ;for 1..4;$,=~s;^.;;;$,});$;->setup; From me at heyjay.com Fri Feb 23 14:11:58 2007 From: me at heyjay.com (Jay Strauss) Date: Fri, 23 Feb 2007 16:11:58 -0600 Subject: [Chicago-talk] parsing HTML In-Reply-To: <5cfdfaf70702231334p149f05afi751ef59404e73e6a@mail.gmail.com> References: <5cfdfaf70702231334p149f05afi751ef59404e73e6a@mail.gmail.com> Message-ID: > I suppose />(\s*[^<\s][^<]*) non-whitespace character. I don't understand that regex. match a ">" and memorize 0 or more whitespaces, followed by characters not< and whitespace, followed by 0 or more not<, end memorize followed by <. how come />(\s*[^<]*) References: <5cfdfaf70702231334p149f05afi751ef59404e73e6a@mail.gmail.com> Message-ID: <5cfdfaf70702231545v7523f0c7pb5e2b08f8d6c5e8d@mail.gmail.com> > how come />(\s*[^<]*) \s* would match all the spaces, then [^<]* would match nothing. It's a fine regex if you don't mind extracting out empty snippets. But, in that case, />([^<]*) >> I suppose />(\s*[^<\s][^<]*)> non-whitespace character. >I don't understand that regex. Break it down. It matches 0 or more spaces, then one character that's not a space or a <, then any number of additional characters that aren't <'s (but could be spaces). So that regex would not match or , since there are no non-space characters in there. " string " would be matched by either regex. -Jim..... From merlyn at stonehenge.com Fri Feb 23 22:23:41 2007 From: merlyn at stonehenge.com (Randal L. Schwartz) Date: Fri, 23 Feb 2007 22:23:41 -0800 Subject: [Chicago-talk] parsing HTML In-Reply-To: <45DF6631.6030307@jrock.us> (Jonathan Rockway's message of "Fri, 23 Feb 2007 16:09:53 -0600") References: <45DF6631.6030307@jrock.us> Message-ID: <863b4w5b0y.fsf@blue.stonehenge.com> >>>>> "Jonathan" == Jonathan Rockway writes: Jonathan> I'm thinking you want HTML::TreeBuilder::XPath. (XPath is like SQL for Jonathan> trees.) I have an upcoming Linux Magazine article that shows how to use that, but compares it with XML::LibXML in HTML mode and shows that there's an *order of magnitude* speed difference for parsing a moderate page. So, if the speed of H::TB::X is fast enough for you, go ahead, but I'll be using XML::LibXML instead. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! From mrnicksgirl at gmail.com Sat Feb 24 05:57:10 2007 From: mrnicksgirl at gmail.com (Nola Stowe) Date: Sat, 24 Feb 2007 07:57:10 -0600 Subject: [Chicago-talk] Dinner on Tuesday, Feb 27? Message-ID: <43e95380702240557q351fec86rc15007ec0589237c@mail.gmail.com> Hey we haven't done a Perl Dinner in awhile .. who's up for Tuesday? any idea for a place to meet up? Lets say 6:30pm ? -- http://rubygeek.com - my blog featuring: Ruby, PHP and Perl http://DevChix.com - boys can't have all the fun http://CodeSnipers.com From jon at jrock.us Sat Feb 24 13:06:45 2007 From: jon at jrock.us (Jonathan Rockway) Date: Sat, 24 Feb 2007 15:06:45 -0600 Subject: [Chicago-talk] Dinner on Tuesday, Feb 27? In-Reply-To: <43e95380702240557q351fec86rc15007ec0589237c@mail.gmail.com> References: <43e95380702240557q351fec86rc15007ec0589237c@mail.gmail.com> Message-ID: <200702241506.45228.jon@jrock.us> On Saturday 24 February 2007 07:57, Nola Stowe wrote: > Hey we haven't done a Perl Dinner in awhile .. who's up for Tuesday? > any idea for a place to meet up? > > Lets say 6:30pm ? Can we do any day after Tuesday instead? I start working downtown on Wednesday :) -- package JAPH;use Catalyst qw/-Debug/;($;=JAPH)->config(name => do { $,.=reverse qw[Jonathan tsu rehton lre rekca Rockway][$_].[split //, ";$;"]->[$_].q; ;for 1..4;$,=~s;^.;;;$,});$;->setup; From brian.d.foy at gmail.com Sat Feb 24 17:00:27 2007 From: brian.d.foy at gmail.com (brian d foy) Date: Sat, 24 Feb 2007 19:00:27 -0600 Subject: [Chicago-talk] Dinner on Tuesday, Feb 27? In-Reply-To: <200702241506.45228.jon@jrock.us> References: <43e95380702240557q351fec86rc15007ec0589237c@mail.gmail.com> <200702241506.45228.jon@jrock.us> Message-ID: <2715accf0702241700y20bed4cg8d4f8503e1aac9cf@mail.gmail.com> On 2/24/07, Jonathan Rockway wrote: > Can we do any day after Tuesday instead? I start working downtown on > Wednesday :) I think we should celebrate that by taking you out to dinner on Wednesday night :) -- brian d foy http://www.pair.com/~comdog/ From mrnicksgirl at gmail.com Sat Feb 24 18:02:34 2007 From: mrnicksgirl at gmail.com (Nola Stowe) Date: Sat, 24 Feb 2007 20:02:34 -0600 Subject: [Chicago-talk] Dinner on Tuesday, Feb 27? In-Reply-To: <2715accf0702241700y20bed4cg8d4f8503e1aac9cf@mail.gmail.com> References: <43e95380702240557q351fec86rc15007ec0589237c@mail.gmail.com> <200702241506.45228.jon@jrock.us> <2715accf0702241700y20bed4cg8d4f8503e1aac9cf@mail.gmail.com> Message-ID: <43e95380702241802o6b7ffdc0o29acee0e094ca9d1@mail.gmail.com> I work at home on Wednesdays.. but you guys can go out anyways and I"ll catch ya another time. On 2/24/07, brian d foy wrote: > On 2/24/07, Jonathan Rockway wrote: > > > Can we do any day after Tuesday instead? I start working downtown on > > Wednesday :) > > I think we should celebrate that by taking you out to dinner on > Wednesday night :) > > > -- > brian d foy > http://www.pair.com/~comdog/ > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > -- http://rubygeek.com - my blog featuring: Ruby, PHP and Perl http://DevChix.com - boys can't have all the fun http://CodeSnipers.com From joshua.mcadams at gmail.com Sat Feb 24 19:41:56 2007 From: joshua.mcadams at gmail.com (Joshua McAdams) Date: Sat, 24 Feb 2007 21:41:56 -0600 Subject: [Chicago-talk] Fwd: [LUNI] Flourish / Hack-a-ton In-Reply-To: References: Message-ID: <49d805d70702241941yc584164h70463c55ca7c6c41@mail.gmail.com> Chicago.pm hack-a-thon part 2? ---------- Forwarded message ---------- From: Samir Faci Date: Feb 24, 2007 4:20 PM Subject: [LUNI] Flourish / Hack-a-ton To: DePaul Linux Community , UIC Linux User Group , luni at luni.org we had requests from some various community members that wanted to have a hack-a-ton event after flourish. We have the room/resources to accommodate about 30-50 people, so it'll end up being a mini event after flourish. I was wondering if anyone had any ideas, requests as far as what they'd like to see at this event. There is an open wiki for ideas at: http://www.flourishconf.com/wiki/doku.php?id=hack-a-thon or email me or the list directly -- Samir PS. in case this needs repeating, we're not hacking any websites, banks, or doing anything that can be even remotely be considered illegal. -- Linux Users Of Northern Illinois - Technical Discussion http://luni.org/mailman/listinfo/luni From joshua.mcadams at gmail.com Sun Feb 25 12:36:31 2007 From: joshua.mcadams at gmail.com (Joshua McAdams) Date: Sun, 25 Feb 2007 14:36:31 -0600 Subject: [Chicago-talk] Dinner on Tuesday, Feb 27? In-Reply-To: <43e95380702241802o6b7ffdc0o29acee0e094ca9d1@mail.gmail.com> References: <43e95380702240557q351fec86rc15007ec0589237c@mail.gmail.com> <200702241506.45228.jon@jrock.us> <2715accf0702241700y20bed4cg8d4f8503e1aac9cf@mail.gmail.com> <43e95380702241802o6b7ffdc0o29acee0e094ca9d1@mail.gmail.com> Message-ID: <49d805d70702251236m13757c8fs61b717b93efa36c@mail.gmail.com> > I work at home on Wednesdays.. but you guys can go out anyways and > I"ll catch ya another time. I'm out too. I'm already booked until about 8 on Wednesday. From joshua.mcadams at gmail.com Sun Feb 25 13:07:36 2007 From: joshua.mcadams at gmail.com (Joshua McAdams) Date: Sun, 25 Feb 2007 15:07:36 -0600 Subject: [Chicago-talk] Chicago.pm March Downtown Meeting Message-ID: <49d805d70702251307h48482a87x4a4af80b0bb17fed@mail.gmail.com> Anyone want to present at the downtown meeting this March? It looks like the date will be the 27th. If nobody steps up, I'm thinking that a editor battle might be in order. I've had a guy at work re-introduce me to eclipse/epic and I'm really liking it. Possibly a feature show-down between everyones favorites? From amead2 at alanmead.org Mon Feb 26 09:07:13 2007 From: amead2 at alanmead.org (Alan Mead) Date: Mon, 26 Feb 2007 11:07:13 -0600 Subject: [Chicago-talk] Automated testing of web apps? Message-ID: <45E313C1.7090206@alanmead.org> An upcoming Perl web application is going to need some testing and I'd like to automate it. This (testing) is not like anything that I've done previously... Does anyone have suggestions about the right module, helpful articles, etc.? More specifically, beyond the usual feature-based testing, I'll need to stress test it to demonstrate scalability. Testing the app will require authentication but not SSL (not in v1.0, anyway). For expediency, I'll use an Apache layer for authentication initially, with the possibility of a cookie-based approach later. -Alan -- Alan D. Mead, Ph.D. Facts are stubborn, but statistics are more pliable. Assistant Professor Institute of Psychology Illinois Intitute of Technology 3101 South Dearborn, 2nd floor Chicago IL 60616 From mrnicksgirl at gmail.com Mon Feb 26 14:57:27 2007 From: mrnicksgirl at gmail.com (Nola Stowe) Date: Mon, 26 Feb 2007 16:57:27 -0600 Subject: [Chicago-talk] Automated testing of web apps? In-Reply-To: <45E313C1.7090206@alanmead.org> References: <45E313C1.7090206@alanmead.org> Message-ID: <43e95380702261457n27848f31gc3ba1585ba1d8052@mail.gmail.com> You might look into http://selenium.openqa.org .. specifically the Selenium RC On 2/26/07, Alan Mead wrote: > An upcoming Perl web application is going to need some testing and I'd > like to automate it. This (testing) is not like anything that I've done > previously... Does anyone have suggestions about the right module, > helpful articles, etc.? > > More specifically, beyond the usual feature-based testing, I'll need to > stress test it to demonstrate scalability. Testing the app will require > authentication but not SSL (not in v1.0, anyway). For expediency, I'll > use an Apache layer for authentication initially, with the possibility > of a cookie-based approach later. > > -Alan > > -- > Alan D. Mead, Ph.D. > Facts are stubborn, but statistics are more pliable. > > Assistant Professor > Institute of Psychology > Illinois Intitute of Technology > 3101 South Dearborn, 2nd floor > Chicago IL 60616 > > > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > -- http://rubygeek.com - my blog featuring: Ruby, PHP and Perl http://DevChix.com - boys can't have all the fun http://CodeSnipers.com From jon at jrock.us Mon Feb 26 16:57:30 2007 From: jon at jrock.us (Jonathan Rockway) Date: Mon, 26 Feb 2007 18:57:30 -0600 Subject: [Chicago-talk] Chicago.pm March Downtown Meeting In-Reply-To: <49d805d70702251307h48482a87x4a4af80b0bb17fed@mail.gmail.com> References: <49d805d70702251307h48482a87x4a4af80b0bb17fed@mail.gmail.com> Message-ID: <200702261857.31670.jon@jrock.us> On Sunday 25 February 2007 15:07, Joshua McAdams wrote: > Anyone want to present at the downtown meeting this March? It looks > like the date will be the 27th. If nobody steps up, I'm thinking that > a editor battle might be in order. I've had a guy at work > re-introduce me to eclipse/epic and I'm really liking it. Possibly a > feature show-down between everyones favorites? That would be interesting (emacs wins :D). I had in mind a brief introduction to Haskell, since it's a very compelling language to learn (whereas Python and Ruby are pretty much Perl with some minor syntactic differences). Learning Haskell will change the way you think about programming, which is always a good thing. Did I mention it's 100x faster than Perl on average? :) Another possible topic is web testing (prompted by the next question on the list). -- package JAPH;use Catalyst qw/-Debug/;($;=JAPH)->config(name => do { $,.=reverse qw[Jonathan tsu rehton lre rekca Rockway][$_].[split //, ";$;"]->[$_].q; ;for 1..4;$,=~s;^.;;;$,});$;->setup; From jon at jrock.us Mon Feb 26 17:15:27 2007 From: jon at jrock.us (Jonathan Rockway) Date: Mon, 26 Feb 2007 19:15:27 -0600 Subject: [Chicago-talk] Automated testing of web apps? In-Reply-To: <45E313C1.7090206@alanmead.org> References: <45E313C1.7090206@alanmead.org> Message-ID: <200702261915.32876.jon@jrock.us> On Monday 26 February 2007 11:07, Alan Mead wrote: > An upcoming Perl web application is going to need some testing and I'd > like to automate it. This (testing) is not like anything that I've done > previously... Does anyone have suggestions about the right module, > helpful articles, etc.? The standard perl way of testing web applications is Test::WWW::Mechanize. Mech gives you an web-browser-like interface that looks something like: $mech->get_ok('http://localhost/foo.html'); $mech->content_contains('this is the foo page!'); $mech->reload(); $mech->content_contains('this is the foo page RELOADED!'); @links = $mech->followable_links; # etc. Note that there isn't an actual web browser involved; everything is done through LWP::UserAgent. Oh, and the author reads this list, so if you have questions you'll probably get a quick answer. :) Selenium is like Mech, except the tests pop up a real web browser (Firefox or IE) and run the tests inside the browser. This is great when you're testing javascript, but pretty-durn-slow compared to Mech. An advantage is that you can write tests interactively in the Selenium IDE and then incorporate those tests in your normal tests suite. The IDE is good for recording client testing so you can reproduce bugs that they find as many times as it takes to get the issue fixed. Something to keep in mind, though, is that you probably don't want to do all of your tests via mech or selenium. If your application is well-structured, you should be able to easily test individual components. Some helpful modules in this department are Test::MockObject (for faking parts of your app that you don't want to test) and Test::Class for unit testing classes. If your web application framework of choice doesn't come with a test server, then you'll want to read up on Apache::Test. (Now's a good time to mention that Catalyst applications are extremely easy to test; you can use Test::Catalyst for basic get/post stuff, Test::WWW::Mechanize::Catalyst if you want to use mech, and Test::WWW::Selenium::Catalyst if you want selenium. Those modules take care of the details for you, so you can just write the tests.) > More specifically, beyond the usual feature-based testing, I'll need to > stress test it to demonstrate scalability. This is a little different from functionality testing. You'll probably need to do it "manually" with a tool like siege. http://www.joedog.org/JoeDog/Siege > Testing the app will require > authentication but not SSL (not in v1.0, anyway). For expediency, I'll > use an Apache layer for authentication initially, with the possibility > of a cookie-based approach later. Mech will handle both cookies and SSL. Regards, Jonathan Rockway -- package JAPH;use Catalyst qw/-Debug/;($;=JAPH)->config(name => do { $,.=reverse qw[Jonathan tsu rehton lre rekca Rockway][$_].[split //, ";$;"]->[$_].q; ;for 1..4;$,=~s;^.;;;$,});$;->setup; From joshua.mcadams at gmail.com Mon Feb 26 19:07:31 2007 From: joshua.mcadams at gmail.com (Joshua McAdams) Date: Mon, 26 Feb 2007 21:07:31 -0600 Subject: [Chicago-talk] Chicago.pm March Downtown Meeting In-Reply-To: <200702261857.31670.jon@jrock.us> References: <49d805d70702251307h48482a87x4a4af80b0bb17fed@mail.gmail.com> <200702261857.31670.jon@jrock.us> Message-ID: <49d805d70702261907p546344a8u2a782b2a8eb1df2e@mail.gmail.com> > That would be interesting (emacs wins :D). I had in mind a brief introduction > to Haskell, since it's a very compelling language to learn (whereas Python > and Ruby are pretty much Perl with some minor syntactic differences). > Learning Haskell will change the way you think about programming, which is > always a good thing. Did I mention it's 100x faster than Perl on average? :) > > Another possible topic is web testing (prompted by the next question on the > list). I'm open for any of those... any preferences from the list? From mrnicksgirl at gmail.com Mon Feb 26 19:16:12 2007 From: mrnicksgirl at gmail.com (Nola Stowe) Date: Mon, 26 Feb 2007 21:16:12 -0600 Subject: [Chicago-talk] Chicago.pm March Downtown Meeting In-Reply-To: <49d805d70702261907p546344a8u2a782b2a8eb1df2e@mail.gmail.com> References: <49d805d70702251307h48482a87x4a4af80b0bb17fed@mail.gmail.com> <200702261857.31670.jon@jrock.us> <49d805d70702261907p546344a8u2a782b2a8eb1df2e@mail.gmail.com> Message-ID: <43e95380702261916g529fde4ehe47d9b8363a7164a@mail.gmail.com> haskell sounds fun I'd also like to learn enough emacs to survive on a desert island where that was my only editor, if I were ever put in such a position. :) On 2/26/07, Joshua McAdams wrote: > > That would be interesting (emacs wins :D). I had in mind a brief introduction > > to Haskell, since it's a very compelling language to learn (whereas Python > > and Ruby are pretty much Perl with some minor syntactic differences). > > Learning Haskell will change the way you think about programming, which is > > always a good thing. Did I mention it's 100x faster than Perl on average? :) > > > > Another possible topic is web testing (prompted by the next question on the > > list). > > I'm open for any of those... any preferences from the list? > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > -- http://rubygeek.com - my blog featuring: Ruby, PHP and Perl http://DevChix.com - boys can't have all the fun http://CodeSnipers.com From jon at jrock.us Mon Feb 26 19:49:27 2007 From: jon at jrock.us (Jonathan Rockway) Date: Mon, 26 Feb 2007 21:49:27 -0600 Subject: [Chicago-talk] Chicago.pm March Downtown Meeting In-Reply-To: <43e95380702261916g529fde4ehe47d9b8363a7164a@mail.gmail.com> References: <49d805d70702251307h48482a87x4a4af80b0bb17fed@mail.gmail.com> <49d805d70702261907p546344a8u2a782b2a8eb1df2e@mail.gmail.com> <43e95380702261916g529fde4ehe47d9b8363a7164a@mail.gmail.com> Message-ID: <200702262149.29116.jon@jrock.us> On Monday 26 February 2007 21:16, Nola Stowe wrote: > haskell sounds fun > > I'd also like to learn enough emacs to survive on a desert island > where that was my only editor, if I were ever put in such a position. Type Control+h then t. emacs will tell you everything you need to know about it. -- package JAPH;use Catalyst qw/-Debug/;($;=JAPH)->config(name => do { $,.=reverse qw[Jonathan tsu rehton lre rekca Rockway][$_].[split //, ";$;"]->[$_].q; ;for 1..4;$,=~s;^.;;;$,});$;->setup; From tigerpeng2001 at yahoo.com Mon Feb 26 21:55:22 2007 From: tigerpeng2001 at yahoo.com (tiger peng) Date: Mon, 26 Feb 2007 21:55:22 -0800 (PST) Subject: [Chicago-talk] Malformed UTF-8 character in file with Byte Order Mark on SunOS Message-ID: <127320.22280.qm@web58714.mail.re1.yahoo.com> Good Evening to All, Having trouble to ftp or scp utf8 files to SunOS and after googling for a while, I found that when I searched 'utf-8 byte order mark malformed SunOS', most of the top searching results relate with perl 5.8. So I hope I can get a quick help from my dear perlists. Good night everyone, and wish I will have some good news from you tomorrow. Ge From jon at jrock.us Tue Feb 27 09:15:38 2007 From: jon at jrock.us (Jonathan Rockway) Date: Tue, 27 Feb 2007 11:15:38 -0600 Subject: [Chicago-talk] Malformed UTF-8 character in file with Byte Order Mark on SunOS In-Reply-To: <127320.22280.qm@web58714.mail.re1.yahoo.com> References: <127320.22280.qm@web58714.mail.re1.yahoo.com> Message-ID: <45E4673A.5060600@jrock.us> tiger peng wrote: > Having trouble to ftp or scp utf8 files to SunOS and after googling for a while, I found that when I searched 'utf-8 byte order mark malformed SunOS', most of the top searching results relate with perl 5.8. So I hope I can get a quick help from my dear perlists. UTF-8 is just binary. If your link can't handle 8-bit characters, then uuencode the UTF-8 and uudecode it on the other end. My guess is that's not the problem -- your terminal (or shell) are probably confused by UTF-8 and you need to play around with locales. A bit more detail might help us find the issue, although I kind of doubt it has *anything* to do with Perl :) Regards, Jonathan Rockway -- package JAPH;use Catalyst qw/-Debug/;($;=JAPH)->config(name => do { $,.=reverse qw[Jonathan tsu rehton lre rekca Rockway][$_].[split //, ";$;"]->[$_].q; ;for 1..4;$,=~s;^.;;;$,});$;->setup; From tigerpeng2001 at yahoo.com Wed Feb 28 06:22:15 2007 From: tigerpeng2001 at yahoo.com (tiger peng) Date: Wed, 28 Feb 2007 06:22:15 -0800 (PST) Subject: [Chicago-talk] Malformed UTF-8 character in file with Byte Order Mark on SunOS Message-ID: <964169.55701.qm@web58715.mail.re1.yahoo.com> I checked it again between Linux and SunOS. The malfoming is not related with BOM. If set locales to en_US.UTF-8 on SunOS and en_US.utf8(oren_US.UTF-8, which is not shown up in locale -a) on Linux. The non-ascii7 characters are malformed; they are splited to two characters. If set both to en_US.ISO8859-1, the the are not malformed and display creactly on my xterm (PuTTy). On Linux: Here is the OS infor and locale setting -> uname -a Linux etdwag2 2.4.21-27.ELsmp #1 SMP Wed Dec 1 21:59:02 EST 2004 i686 -> locale LANG= LC_CTYPE="en_US.utf8" LC_NUMERIC="en_US.utf8" LC_TIME="en_US.utf8" LC_COLLATE="en_US.utf8" LC_MONETARY="en_US.utf8" LC_MESSAGES="en_US.utf8" LC_PAPER="en_US.utf8" LC_NAME="en_US.utf8" LC_ADDRESS="en_US.utf8" LC_TELEPHONE="en_US.utf8" LC_MEASUREMENT="en_US.utf8" LC_IDENTIFICATION="en_US.utf8" LC_ALL=en_US.utf8 Generate file with perl: perl -e 'for $i(253..255){print " " . chr($i)."\t".$i."\n"} for $i(253..255){print chr($i). chr($i)."\t".$i."\n"} for $i(253..255){print chr($i-200).chr($i)."\t".$i."\n"} ' > latin1.txt Check the files with perl: perl -ne 'print ord(substr($_, 0, 1)). "\t".ord(substr($_, 1, 1)). "\t".ord(substr($_, 2, 1)). "\t".$_' latin1.txt 32 253 9 ?? 253 32 254 9 ?? 254 32 255 9 ?? 255 253 253 9 ???? 253 254 254 9 ???? 254 255 255 9 ???? 255 53 253 9 5?? 253 54 254 9 6?? 254 55 255 9 7?? 255 On -> uname -a SunOS etdwdev2 5.10 Generic_118833-24 sun4u sparc SUNW,Sun-Fire-880 -> locale LANG= LC_CTYPE="C" LC_NUMERIC="C" LC_TIME="C" LC_COLLATE="C" LC_MONETARY="C" LC_MESSAGES="C" LC_ALL= -> export LC_ALL=en_US.UTF-8 -> locale LANG= LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_ALL=en_US.UTF-8 # Now scp the file from Linux # and check the file perl -ne 'print ord(substr($_, 0, 1)). "\t".ord(substr($_, 1, 1)). "\t".ord(substr($_, 2, 1)). "\t".$_' latin1.txt 32 195 189 ?? 253 32 195 190 ?? 254 32 195 191 ?? 255 195 189 195 ???? 253 195 190 195 ???? 254 195 191 195 ???? 255 53 195 189 5?? 253 54 195 190 6?? 254 55 195 191 7?? 255 ----- Original Message ---- From: Jonathan Rockway To: Chicago.pm chatter Sent: Tuesday, February 27, 2007 11:15:38 AM Subject: Re: [Chicago-talk] Malformed UTF-8 character in file with Byte Order Mark on SunOS tiger peng wrote: > Having trouble to ftp or scp utf8 files to SunOS and after googling for a while, I found that when I searched 'utf-8 byte order mark malformed SunOS', most of the top searching results relate with perl 5.8. So I hope I can get a quick help from my dear perlists. UTF-8 is just binary. If your link can't handle 8-bit characters, then uuencode the UTF-8 and uudecode it on the other end. My guess is that's not the problem -- your terminal (or shell) are probably confused by UTF-8 and you need to play around with locales. A bit more detail might help us find the issue, although I kind of doubt it has *anything* to do with Perl :) Regards, Jonathan Rockway -- package JAPH;use Catalyst qw/-Debug/;($;=JAPH)->config(name => do { $,.=reverse qw[Jonathan tsu rehton lre rekca Rockway][$_].[split //, ";$;"]->[$_].q; ;for 1..4;$,=~s;^.;;;$,});$;->setup; _______________________________________________ Chicago-talk mailing list Chicago-talk at pm.org http://mail.pm.org/mailman/listinfo/chicago-talk