From waltman at pobox.com Sun Oct 2 22:07:19 2011 From: waltman at pobox.com (Walt Mankowski) Date: Mon, 3 Oct 2011 01:07:19 -0400 Subject: [Philadelphia-pm] Reminder: tech meeting Monday night, Oct 3 Message-ID: <20111003050719.GB24966@mawode.com> Sorry, I just realized I never sent out a reminder for our October tech meeting. It will be TONIGHT, Monday October 3, at 7 PM, at our usual spot at 307 Levine Hall at Penn. I'll be giving a talk on "Demystifying Pack and Unpack". It's a new talk that I'm going to be giving that talk at the Pittsburgh Perl Workshop next weekend, so you guys get to be my guinea pigs! Walt -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 190 bytes Desc: Digital signature URL: From arc at aaroncrane.co.uk Tue Oct 4 12:27:45 2011 From: arc at aaroncrane.co.uk (Aaron Crane) Date: Tue, 4 Oct 2011 15:27:45 -0400 Subject: [Philadelphia-pm] Visiting monger In-Reply-To: <416A8D9A-A716-4595-A817-171BF88E0378@iteaha.us> References: <20110917005615.GA20315@cancer.codesimply.com> <20110917120055.GF19457@mawode.com> <20110921023325.GC8708@isuckatdomains> <416A8D9A-A716-4595-A817-171BF88E0378@iteaha.us> Message-ID: "N. Hao Ching ???" : > Imperial Inn is a great choice. Apologies for my continued delay in replying. Two votes for Imperial Inn makes it sound like a winner to me. What time on Thursday? -- Aaron Crane ** http://aaroncrane.co.uk/ From kominetz at gmail.com Tue Oct 4 16:46:29 2011 From: kominetz at gmail.com (John Kominetz) Date: Tue, 4 Oct 2011 19:46:29 -0400 Subject: [Philadelphia-pm] Visiting monger In-Reply-To: References: <20110917005615.GA20315@cancer.codesimply.com> <20110917120055.GF19457@mawode.com> <20110921023325.GC8708@isuckatdomains> Message-ID: <0A8AA3C5-A277-446E-AFA4-BB021C641F10@gmail.com> Sushi-wise, I prefer Shiroi Hana (15th between Locust and Walnut), although I'm also a fan of Imperial Inn. Raw (13th and Sansom?) is a great space and also good sushi but a little pricy. Not sure I can make it, and sorry for not being available for Monday's meeting. -- John On 27 Sep 2011, at 01:38, Al Newkirk & Associates wrote: > I'm partial to Sushi, great sushi place at 12th and Walnut, AKI Japanese Fusion. > > On Mon, Sep 26, 2011 at 5:21 PM, Aaron Crane wrote: > Chris Nehren wrote: > > On Tue, Sep 20, 2011 at 17:58:50 -0400 , Aaron Crane wrote: > >> A lunch meeting on the 6th sounds like it would work best given the > >> constraints for travel to PPW, even though some people won't be able > >> to make it. Does anyone have a suggestion for place and time? > > > > I could make lunch on the sixth, presuming it's somewhere in center city > > or university city. Suggestion on place depends on what you want to > > have. We're fortunate to have so very many places to eat in the city > > that it's difficult to recommend a place without any idea of what one > > wants to have. I'm partial to Asian cuisine myself, but am open to other > > options. > > Asian food works well for me, and I'm generally an unfussy eater who > can enjoy pretty much any cuisine, so I'm happy to go along with the > consensus. I'm naturally planning to try a cheesesteak while I'm in > town, but I can happily do that another time, of course. > > I'm currently booked into a hotel near the 2nd Street subway station. > I'm sure I can find my way to another neighborhood for lunch, though. > > -- > Aaron Crane ** http://aaroncrane.co.uk/ > _______________________________________________ > Philadelphia-pm mailing list > Philadelphia-pm at pm.org > http://mail.pm.org/mailman/listinfo/philadelphia-pm > > > > -- > > Al Newkirk > ANAIO > http://ana.io > we at ana.io > 215 469 1262 > > _______________________________________________ > Philadelphia-pm mailing list > Philadelphia-pm at pm.org > http://mail.pm.org/mailman/listinfo/philadelphia-pm From brainbuz at brainbuz.org Wed Oct 5 11:42:12 2011 From: brainbuz at brainbuz.org (John Karr) Date: Wed, 5 Oct 2011 18:42:12 +0000 Subject: [Philadelphia-pm] Visiting monger In-Reply-To: References: <20110917005615.GA20315@cancer.codesimply.com> <20110917120055.GF19457@mawode.com> <20110921023325.GC8708@isuckatdomains> <416A8D9A-A716-4595-A817-171BF88E0378@iteaha.us>, Message-ID: Since no one has offered a time, I'm going to propose 12:30 PM. ________________________________________ From: Aaron Crane [arc at aaroncrane.co.uk] Sent: Tuesday, October 04, 2011 3:27 PM To: N. Hao Ching ??? Cc: John Karr; philadelphia-pm at pm.org Subject: Re: [Philadelphia-pm] Visiting monger "N. Hao Ching ???" : > Imperial Inn is a great choice. Apologies for my continued delay in replying. Two votes for Imperial Inn makes it sound like a winner to me. What time on Thursday? -- Aaron Crane ** http://aaroncrane.co.uk/ From arc at aaroncrane.co.uk Wed Oct 5 15:17:24 2011 From: arc at aaroncrane.co.uk (Aaron Crane) Date: Wed, 5 Oct 2011 18:17:24 -0400 Subject: [Philadelphia-pm] Visiting monger In-Reply-To: References: <20110917005615.GA20315@cancer.codesimply.com> <20110917120055.GF19457@mawode.com> <20110921023325.GC8708@isuckatdomains> <416A8D9A-A716-4595-A817-171BF88E0378@iteaha.us> Message-ID: John Karr : > Since no one has offered a time, I'm going to propose 12:30 PM. Great. I look roughly like this: http://aaroncrane.co.uk/_/headshot.jpg (though with a little less hair just now) and I'll wear a sky-blue YAPC Europe 2011 t-shirt. See you tomorrow! -- Aaron Crane ** http://aaroncrane.co.uk/ From peering at philaix.org Fri Oct 14 07:19:51 2011 From: peering at philaix.org (peering at philaix.org) Date: Fri, 14 Oct 2011 10:19:51 -0400 Subject: [Philadelphia-pm] Intel Atom Servers Message-ID: <201110141419.p9EEJpNq000397@mailgw.quonix.net> Does anyone on this list have experience in writing perl scripts that can interface directly with Cisco IOS over a telnet session? -------------- next part -------------- An HTML attachment was scrubbed... URL: From c.nehren/phl at shadowcat.co.uk Fri Oct 14 08:09:48 2011 From: c.nehren/phl at shadowcat.co.uk (Chris Nehren) Date: Fri, 14 Oct 2011 11:09:48 -0400 Subject: [Philadelphia-pm] Intel Atom Servers In-Reply-To: <201110141419.p9EEJpNq000397@mailgw.quonix.net> References: <201110141419.p9EEJpNq000397@mailgw.quonix.net> Message-ID: On Oct 14, 2011, at 10:19, peering at philaix.org wrote: > Does anyone on this list have experience in writing perl scripts that can interface directly with Cisco IOS over a telnet session? > > No, but have you considered searching CPAN? https://metacpan.org/search?q=ios gives some hopeful-looking results. If you're using one of those modules, asking a question and not conducting a survey would be more fruitful. -- Thanks and best regards, Chris Nehren From stan at schwertly.com Fri Oct 28 08:03:15 2011 From: stan at schwertly.com (Stan Schwertly) Date: Fri, 28 Oct 2011 11:03:15 -0400 Subject: [Philadelphia-pm] Perl one liner, regex capture group problem Message-ID: I wrote this one-liner for a friend, and wanted to replace the end with Perl. It pulls out the image sources from a URL: command: curl -so- http://www.wikihow.com/Make-Easy-Homemade-Biscuits|egrep-o "src='.*[^js]'"|cut -c 5- abbreviated output: ' http://pad2.whstatic.com/images/thumb/3/31/Gfrollsonplate_198.jpg/-crop-44-33-40px-Gfrollsonplate_198.jpg ' 'http://pad1.whstatic.com/skins/WikiHow/images/corner_sprite.png' ' http://pad3.whstatic.com/images/thumb/7/71/Bread-rolls-2126.jpg/-crop-44-33-44px-Bread-rolls-2126.jpg ' 'http://pad1.whstatic.com/skins/WikiHow/images/corner_sprite.png' I tried to replace it with the following command, but it doesn't seem to be respecting the capture group: command: curl -so- http://www.wikihow.com/Make-Easy-Homemade-Biscuits|perl-nE "say $1 if /src='(\S+(?:png|jpg))'/" abbreviated output: It's printing the matched line, but doesn't populate $1 correctly. What should I change? BR Stan Schwertly -------------- next part -------------- An HTML attachment was scrubbed... URL: From kyle.burton at gmail.com Fri Oct 28 08:14:56 2011 From: kyle.burton at gmail.com (Kyle R. Burton) Date: Fri, 28 Oct 2011 11:14:56 -0400 Subject: [Philadelphia-pm] Perl one liner, regex capture group problem In-Reply-To: References: Message-ID: > command: curl -so- http://www.wikihow.com/Make-Easy-Homemade-Biscuits|perl > -nE "say $1 if /src='(\S+(?:png|jpg))'/" > abbreviated output: Stan, You may just be hitting shell replacement since the expression is in double quotes - try backslashing the $1: ... perl -nE "say \$1 if /src='(\S+(?:png|jpg))'/" HTH, Kyle -- Twitter: @kyleburton Blog: http://asymmetrical-view.com/ Fun: http://snapclean.me/ From waltman at pobox.com Fri Oct 28 08:43:50 2011 From: waltman at pobox.com (Walt Mankowski) Date: Fri, 28 Oct 2011 11:43:50 -0400 Subject: [Philadelphia-pm] Perl one liner, regex capture group problem In-Reply-To: References: Message-ID: <20111028154350.GY22378@mawode.com> On Fri, Oct 28, 2011 at 11:14:56AM -0400, Kyle R. Burton wrote: > > command: curl -so- http://www.wikihow.com/Make-Easy-Homemade-Biscuits|perl > > -nE "say $1 if /src='(\S+(?:png|jpg))'/" > > abbreviated output: > > Stan, > > You may just be hitting shell replacement since the expression is in > double quotes - try backslashing the $1: > > ... perl -nE "say \$1 if /src='(\S+(?:png|jpg))'/" An alternative would be to enclose the perl in single quotes instead of double quotes. Then you don't have to worry about backslashing the $1, but you do need to backslash the single quotes: perl -nE 'say $1 if /src=\'(\S+(?:png|jpg))\'/' But unfortunately if you're on Windows then you can't use single quotes. so you'll need to use Kyle's solution. Walt -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 190 bytes Desc: Digital signature URL: From c.nehren/phl at shadowcat.co.uk Fri Oct 28 09:07:47 2011 From: c.nehren/phl at shadowcat.co.uk (Chris Nehren) Date: Fri, 28 Oct 2011 12:07:47 -0400 Subject: [Philadelphia-pm] Perl one liner, regex capture group problem In-Reply-To: <20111028154350.GY22378@mawode.com> References: <20111028154350.GY22378@mawode.com> Message-ID: <30BA3A62-FB49-45A5-BDCA-72C1194F077D@shadowcat.co.uk> On Oct 28, 2011, at 11:43, Walt Mankowski wrote: > On Fri, Oct 28, 2011 at 11:14:56AM -0400, Kyle R. Burton wrote: >>> command: curl -so- http://www.wikihow.com/Make-Easy-Homemade-Biscuits|perl >>> -nE "say $1 if /src='(\S+(?:png|jpg))'/" >>> abbreviated output: >> >> Stan, >> >> You may just be hitting shell replacement since the expression is in >> double quotes - try backslashing the $1: >> >> ... perl -nE "say \$1 if /src='(\S+(?:png|jpg))'/" > > An alternative would be to enclose the perl in single quotes instead > of double quotes. Then you don't have to worry about backslashing the > $1, but you do need to backslash the single quotes: > > perl -nE 'say $1 if /src=\'(\S+(?:png|jpg))\'/' > > But unfortunately if you're on Windows then you can't use single > quotes. so you'll need to use Kyle's solution. Rather than trying to parse HTML with regex (which is doomed to failure) your'e really better off using a proper parser, like HTML::TreeBuilder or the like. It may not be the answer you're looking for, but it has the virtue of being the right one, one that's easier to work with if you end up keeping this code. -- Thanks and best regards, Chris Nehren