From jon at hogue.org Wed Nov 10 18:42:17 2010 From: jon at hogue.org (Jonathan Hogue) Date: Wed, 10 Nov 2010 21:42:17 -0500 Subject: [Columbus-pm] November Meeting Message-ID: We will be having our November meeting. I will talk about some of the work that I've been doing with HTTP::Proxy. If you're doing something interesting, we'd love to have you talk. Even if it's just for 5 minutes. Also, the Seattle Perl User Group recently did a small game competition that seemed like a lot of fun. I'd like to try to set something up for the December meeting. Let's talk about that. https://sites.google.com/site/columbuspm/news/member_posts/novembermeeting Where: 2checkout.com HQ, 1785 O?Brien Road Columbus, Ohio 43228 When: November 18, 7:30 PM What: How to use Internet Explorer and HTTP::Proxy to monitor your web sites performance. Deli meat sandwiches and drinks will be provided. From jon at hogue.org Fri Nov 12 13:45:01 2010 From: jon at hogue.org (Jonathan Hogue) Date: Fri, 12 Nov 2010 16:45:01 -0500 Subject: [Columbus-pm] use lib and BEGIN @INC Message-ID: What's the difference between use lib "/somepath"; and BEGIN{ unshift( @INC, "/somepath" ) }; When I do use DQ::SomeModule after the "use lib" approach, it works, but not after the BEGIN block, even though when I dump @INC, it shows the /somepath for both scenarios. From jon at hogue.org Fri Nov 12 14:05:23 2010 From: jon at hogue.org (Jonathan Hogue) Date: Fri, 12 Nov 2010 17:05:23 -0500 Subject: [Columbus-pm] use lib and BEGIN @INC In-Reply-To: References: Message-ID: never mind... they both were working the same, except, my code using the second case had a trailing space in the path name. (use lib also does some extra path searches based on the architecture, it appears, but that wasn't my problem.) On Fri, Nov 12, 2010 at 4:45 PM, Jonathan Hogue wrote: > What's the difference between > use lib "/somepath"; > and > BEGIN{ unshift( @INC, "/somepath" ) }; > > When I do > use DQ::SomeModule after the "use lib" approach, it works, but not > after the BEGIN block, even though when I dump @INC, it shows the > /somepath for both scenarios. > From lenjaffe at jaffesystems.com Fri Nov 12 14:57:28 2010 From: lenjaffe at jaffesystems.com (Len Jaffe) Date: Fri, 12 Nov 2010 17:57:28 -0500 Subject: [Columbus-pm] use lib and BEGIN @INC In-Reply-To: References: Message-ID: On Fri, Nov 12, 2010 at 5:04 PM, Jonathan Hogue wrote: > no, BEGIN runs at compile-time too. > > found my error... it wasn't related to the difference between the 2 at > all... I had a trailing space in my path name when doing the latter. > > On Fri, Nov 12, 2010 at 5:02 PM, Len Jaffe > wrote: > > use executes at compile-time, BEGIN runs after compilation, so you're > > use-ing a module before you unshift its home to @INC. > > > > On Fri, Nov 12, 2010 at 4:45 PM, Jonathan Hogue wrote: > >> > >> What's the difference between > >> use lib "/somepath"; > >> and > >> BEGIN{ unshift( @INC, "/somepath" ) }; > >> > >> When I do > >> use DQ::SomeModule after the "use lib" approach, it works, but not > >> after the BEGIN block, even though when I dump @INC, it shows the > >> /somepath for both scenarios > > > > use executes at compile-time, BEGIN runs after compilation, so you're > > use-ing a module before you unshift its home to @INC. > > > > By the time you dump, the @INC arrays look the same, but the got there by > a > > temporally different execution path > BEGIN runs after use. main.pl ---------------- use Foo; use 5.10.1; BEGIN { say "main BEGIN"; } -------- Foo.pm ----------------------- package Foo; use 5.10.1; say "I am Foo"; 1; ---------------------------- C:\perlstuff> perl main.pl I am Foo main BEGIN C:\perlstuff> the use executes before the BEGIN. -- lenjaffe at jaffesystems.com 614-404-4214 Scoutmaster Troop 156 - www.bsatroop156.org Proprietor: http://www.theycomewithcheese.com/ - An Homage to Fromage -------------- next part -------------- An HTML attachment was scrubbed... URL: From jon at hogue.org Fri Nov 12 15:10:49 2010 From: jon at hogue.org (Jonathan Hogue) Date: Fri, 12 Nov 2010 18:10:49 -0500 Subject: [Columbus-pm] use lib and BEGIN @INC In-Reply-To: References: Message-ID: print "I'm a print\n"; BEGIN { say "main BEGIN"; } use Foo; use 5.10.1; it does two passes. use and BEGIN are run as they appear. They are on the same level. then everything else. This should do main BEGIN I am Foo I'm a print (although, I don't have a perl here.) 2010/11/12 Len Jaffe : > > > On Fri, Nov 12, 2010 at 5:04 PM, Jonathan Hogue wrote: >> >> no, BEGIN runs at compile-time too. >> >> found my error... it wasn't related to the difference between the 2 at >> all... I had a trailing space in my path name when doing the latter. >> >> On Fri, Nov 12, 2010 at 5:02 PM, Len Jaffe >> wrote: >> > use executes at compile-time, BEGIN runs after compilation, so you're >> > use-ing a module before you unshift its home to @INC. >> > >> > On Fri, Nov 12, 2010 at 4:45 PM, Jonathan Hogue wrote: >> >> >> >> What's the difference between >> >> use lib "/somepath"; >> >> and >> >> BEGIN{ unshift( @INC, "/somepath" ) }; >> >> >> >> When I do >> >> use DQ::SomeModule after the "use lib" approach, it works, but not >> >> after the BEGIN block, even though when I dump @INC, it shows the >> >> /somepath for both scenarios >> > >> > use executes at compile-time, BEGIN runs after compilation, so you're >> > use-ing a module before you unshift its home to @INC. >> > >> > By the time you dump, the @INC arrays look the same, but the got there >> > by a >> > temporally different execution path > > > > BEGIN runs after use. > > main.pl > ---------------- > use Foo; > use 5.10.1; > BEGIN { > ?? say "main BEGIN"; > } > -------- > > Foo.pm > ----------------------- > package Foo; > use 5.10.1; > say "I am Foo"; > 1; > ---------------------------- > C:\perlstuff> perl main.pl > I am Foo > main BEGIN > C:\perlstuff> > > the use executes before the BEGIN. > > > > > > > -- > lenjaffe at jaffesystems.com?? 614-404-4214 > Scoutmaster Troop 156 - www.bsatroop156.org > Proprietor: http://www.theycomewithcheese.com/ - An Homage to Fromage > > _______________________________________________ > Columbus-pm mailing list > http://columbus.pm.org/ > Columbus-pm at pm.org > http://mail.pm.org/mailman/listinfo/columbus-pm > From lenjaffe at lenjaffe.com Fri Nov 12 15:20:06 2010 From: lenjaffe at lenjaffe.com (Len Jaffe) Date: Fri, 12 Nov 2010 18:20:06 -0500 Subject: [Columbus-pm] use lib and BEGIN @INC In-Reply-To: References: Message-ID: On Fri, Nov 12, 2010 at 5:05 PM, Jonathan Hogue wrote: > never mind... they both were working the same, except, my code using > the second case had a trailing space in the path name. > > (use lib also does some extra path searches based on the architecture, > it appears, but that wasn't my problem.) What is the benefit of BEGIN { unshift @INC, 'foo'; } over use lib 'foo'; ? -- lenjaffe at jaffesystems.com 614-404-4214 Scoutmaster Troop 156 - www.bsatroop156.org Proprietor: http://www.theycomewithcheese.com/ - An Homage to Fromage -------------- next part -------------- An HTML attachment was scrubbed... URL: From jon at hogue.org Fri Nov 12 15:24:15 2010 From: jon at hogue.org (Jonathan Hogue) Date: Fri, 12 Nov 2010 18:24:15 -0500 Subject: [Columbus-pm] use lib and BEGIN @INC In-Reply-To: References: Message-ID: > What is the benefit of > BEGIN { unshift @INC, 'foo'; } > over > > use lib 'foo'; ? > BEGIN { if( $ENV{SOME_THING} ) { unshift( @INC, $ENV{SOME_THING} ); } } The code I'm working on uses environment variables for EVERYTHING, but a lot of the environment variables are only set when you run in prod. Cause the 90's were cool. From jon at hogue.org Tue Nov 16 05:15:46 2010 From: jon at hogue.org (Jonathan Hogue) Date: Tue, 16 Nov 2010 08:15:46 -0500 Subject: [Columbus-pm] Meeting This Thursday Message-ID: One question about Thursday... Would a 6:30 start time be better for everybody? (Len, would 6:30 PM be okay for you guys). Someone mentioned that 7:30 is quit late, and causes a big lapse between work and the meeting. Where: 2checkout.com HQ, 1785 O?Brien Road Columbus, Ohio 43228 When: November 18, 7:30 PM How to use Internet Explorer and HTTP::Proxy to monitor your web sites performance. Deli meat sandwiches and drinks will be provided. From lenjaffe at jaffesystems.com Tue Nov 16 06:35:29 2010 From: lenjaffe at jaffesystems.com (Len Jaffe) Date: Tue, 16 Nov 2010 09:35:29 -0500 Subject: [Columbus-pm] Meeting This Thursday In-Reply-To: References: Message-ID: I'm good with 630. On Tue, Nov 16, 2010 at 8:15 AM, Jonathan Hogue wrote: > One question about Thursday... Would a 6:30 start time be better for > everybody? (Len, would 6:30 PM be okay for you guys). > Someone mentioned that 7:30 is quit late, and causes a big lapse > between work and the meeting. > > > Where: 2checkout.com HQ, 1785 O?Brien Road Columbus, Ohio 43228 > When: November 18, 7:30 PM > How to use Internet Explorer and HTTP::Proxy to monitor your web sites > performance. > > Deli meat sandwiches and drinks will be provided. > _______________________________________________ > Columbus-pm mailing list > http://columbus.pm.org/ > Columbus-pm at pm.org > http://mail.pm.org/mailman/listinfo/columbus-pm > -- lenjaffe at jaffesystems.com 614-404-4214 Scoutmaster Troop 156 - www.bsatroop156.org Proprietor: http://www.theycomewithcheese.com/ - An Homage to Fromage -------------- next part -------------- An HTML attachment was scrubbed... URL: From jon at hogue.org Wed Nov 17 07:27:57 2010 From: jon at hogue.org (Jonathan Hogue) Date: Wed, 17 Nov 2010 10:27:57 -0500 Subject: [Columbus-pm] Meeting tomorrow. Time is 6:30, not 7:30. Message-ID: On Nov 16, 2010 8:15 AM, "Jonathan Hogue" wrote: > One question about Thursday... Would a 6:30 start time be better for > everybody? (Len, would 6:30 PM be okay for you guys). > Someone mentioned that 7:30 is quit late, and causes a big lapse > between work and the meeting. > > > Where: 2checkout.com HQ, 1785 O?Brien Road Columbus, Ohio 43228 > When: November 18, 7:30 PM > How to use Internet Explorer and HTTP::Proxy to monitor your web sites > performance. > > Deli meat sandwiches and drinks will be provided. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jon at hogue.org Wed Nov 17 15:31:32 2010 From: jon at hogue.org (Jonathan Hogue) Date: Wed, 17 Nov 2010 18:31:32 -0500 Subject: [Columbus-pm] Columbus PM - Tomorrow, 6:30 PM, 2checkout Message-ID: Bring your laptops tomorrow. We're going to do some hands on. I'm not Rob Kinyon. I'm a boring lecturer, so let's get our hands dirty. Instead of listening to me do a boring lecture, we're going to actually build a web performance monitoring framework with HTTP::Proxy in about 1.5 hours. It will be fun, and you should walk away with some idea of how to roll your own. BUT WAIT!! THERE"S MORE We'll be using github, so when we're done, you don't have to stop hacking. Go download the source later, and have at it. (Hi Rob) From jon at hogue.org Sat Nov 20 10:38:47 2010 From: jon at hogue.org (Jonathan Hogue) Date: Sat, 20 Nov 2010 13:38:47 -0500 Subject: [Columbus-pm] Last Meeting Message-ID: So, for the November meeting, we created a HTTP Proxy, and some scripts to drive IE using IEAutomation. We saw how we could use this to measure a sites performance. It was a lot of fun for me. I hope everybody else learned something and had fun too. I'd like to do something like that again for the Dec meeting. December 16, 6:30 PM at 2checkout. What would you like to play with at the next meeting? An Idea: I bet we could throw together a meeting organizer in that time. Ie, create a meeting with a form, and it automatically shows up on the columbus.pm.org site. Then, batch jobs send out a reminder, 1 week, 3 days, 1 day before the meeting? Probably recreating 1000 wheels, but who cares. Something to do as a group to learn something new about Perl. Maybe, we could use jifty as the front end. Open to other ideas too. PS We now have a github space (empty): https://github.com/hoguej/columbuspm I'm going to setup a linux server too to host projects like this. I'll add this to the page later.