[Boston.pm] CFR RE: Inline::Java

2013-05-29 Thread Ricker, William
For CRF, there's also 
http://crf.r-forge.r-project.org/html/CRF-package.html
http://cran.r-project.org/web/packages/RandomFields/index.html
http://cran.r-project.org/web/packages/CompRandFld/index.html
for use with R, and thus likely with Statistics::R .

But 
http://stackoverflow.com/questions/6524232/conditional-random-fields-package-for-r
 has some other suggestions.

Is CRF one of the techniques discussed today at 
http://www.johndcook.com/blog/2013/05/29/a-priori-overfitting/ ? 

- bill
Not speaking for $DayJob


___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] C++ books

2013-04-12 Thread Ricker, William
I enjoyed TEACHING from Deitel C++ (see) how to program books. All examples 
were complete programs, and all in the book (and on-line/cd), so self 
contained. Harvey  Paul are good teachers, good authors; write their books for 
use in their own on-site corp training classes. 

Bill@$dayjob
Not speaking for firm  


Bill, typing with thumbs

- Original Message -
From: Mike Small [mailto:sma...@panix.com]
Sent: Friday, April 12, 2013 11:12 AM
To: Boston PM Boston-pm@mail.pm.org
Subject: Re: [Boston.pm] C++ books

Bill Ricker bill.n1...@gmail.com writes:

 the book that i taught from was C++ How To Program.
  http://www.deitel.com/
 They have 5 C/C++ books now, plus Java, VB/#, Web, ...

Did you like Deitel and Deitel or was it a compromise between the books
you like best and what you thought a mix of students with different
levels of dedication and enthusiasm would find comfortable reading? When
I looked at their C one, it seemed to have a lot of, uh, extra words, to
say it politely (granted I had absorbed the idea from friends that KR
was the one and only worthy C book by that time). It also looked more
suited for a first programming course rather than for a practicing
programmer -- i.e. more the equivalent of Stroustrup's Programming
Principles and Practice Using C++ or perhaps Glassborrow's You Can Do
It. I find it a bit suspicious too that they seem to just flip these
things out $book=~ s/C/C++/g or $book =~ s/C/Java/g. Maybe that's not
fair, not really having read them.


 C How to Program ,C ++ how to program, C++11 for Programmers, .Simply C++,
 Small C++  – available on Safari.

I missed the original question, but if OP (Greg?) can wait a bit the
next edition of Stroustrup's The C++ Programming Language is supposed to
come out by June, revised for the new standard. It's a tricky time to
buy a C++ book unless you don't care about C++11 (there's lots of neat
stuff in there to care about: 
http://www.stroustrup.com/C++11FAQ.html#language), 
since many of the good ones haven't been updated yet or never will
be. For instance, Accelerated C++ is often recommended but will it be
updated for C++11?  Andrew Koenig (my favourite writer on C++, though I
never read Accelerated C++) was recommending his wife's (and others')
book, C++ Primer 5th ed., which has been updated for C++11:
http://www.drdobbs.com/cpp/c-primer-5th-edition-part-1-how-to-revis/240003977

- Mike

___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm

___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm

Re: [Boston.pm] C++ books

2013-04-12 Thread Ricker, William
Effective C++ is highly recommended but not introductory !!

 I think Scott and Damian would both be pleased with your excellent comparison. 
Bill, typing with thumbs

- Original Message -
From: David Larochelle [mailto:da...@larochelle.name]
Sent: Friday, April 12, 2013 10:12 AM
To: Bill Ricker bill.n1...@gmail.com
Cc: Boston PM Boston-pm@mail.pm.org
Subject: Re: [Boston.pm] C++ books

I highly recommend Effective
C++http://www.amazon.com/gp/product/0321334876/ref=as_li_ss_tl?ie=UTF8camp=1789creative=390957creativeASIN=0321334876linkCode=as2tag=davlarsblo-20
by
Scott Meyers.

The best description I can give is that it's the C++ equivalent of Perl
Best Practices. This is the recommended book for people that know some C++
but want to learn to program well in C++.
It's also available on Safari.

--

David


On Fri, Apr 12, 2013 at 8:13 AM, Bill Ricker bill.n1...@gmail.com wrote:

 the book that i taught from was C++ How To Program.
  http://www.deitel.com/
 They have 5 C/C++ books now, plus Java, VB/#, Web, ...

 C How to Program ,C ++ how to program, C++11 for Programmers, .Simply C++,
 Small C++  – available on Safari.

 --
 Bill
 @n1vux bill.n1...@gmail.com

 ___
 Boston-pm mailing list
 Boston-pm@mail.pm.org
 http://mail.pm.org/mailman/listinfo/boston-pm


___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm

___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm

Re: [Boston.pm] Passing large complex data structures between process

2013-04-03 Thread Ricker, William
This would be a great topic for a meeting, either a report later on what you 
found and how you used it, or as a workshop to evaluate your options.

[FYI, Schedule for next Tuesday is Federico will update us on his embedded Perl 
hardware hacking project.]

bill@$dayjob
#include not_speaking_for_the_firm

-Original Message-
From: Boston-pm [mailto:boston-pm-bounces+william.ricker=fmr@mail.pm.org] 
On Behalf Of David Larochelle
Sent: Wednesday, April 03, 2013 10:34 AM
To: Boston Perl Mongers
Subject: [Boston.pm] Passing large complex data structures between process

I'm trying to optimize a database driven web crawler and I was wondering if
anyone could offer any recommendations for interprocess communications.

Currently, the driver process periodically  queries a database to get a
list of URLs to crawler. It then stores these url's to be downloaded in a
complex in memory and pipes them to separate processes that do the actual
downloading. The problem is that the database queries are slow and block
the driver process.

I'd like to rearchitect the system so that the database queries occur in
the background. However, I'm unsure what mechanism to use. In theory,
threads would be ideally suited for this case but I'm not sure how stable
they are (I'm running Perl 5.14.1 with 200+ cpan modules).

Does anyone have any recommendations?

Thanks,

David

___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm

___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] CPAN.pm module? h2xs replacement?

2013-01-18 Thread Ricker, William

   Newer perls ship with cpanp as well (p as in plus), which is even slicker.

 p5p have talked quite a bit of deprecating CPANPLUS and removing it from
core.

Really ? I'd missed that. What's the beef?

I find cpanp's API good for scripting a site_perl library build.

  (And CpanM provides local mini mirror.)

 I think you've confused cpanm, which is a CPAN client, 
 with CPAN::Mini,which builds a local CPAN mirror.

Yes, I conflated them. Mini client, mini mirror, all m's.

Bill @ $dayjob 
use Pragma::NotSpeakingForTheFirm;


___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] Template toolkit and floats

2013-01-10 Thread Ricker, William
Even in just US Dollars, Floats are bad for money. E.g., if you get involved 
with sales tax, you're better off calculating in Pennies and sprinf'ing the $ . 
in, you don't want .001 issues. 

Exceptions to this rule require very careful analysis.

- Bill aka n1vux


NOT SPEAKING FOR $DAYJOB


-Original Message-
From: Boston-pm [mailto:boston-pm-bounces+william.ricker=fmr@mail.pm.org] 
On Behalf Of Alex Brelsfoard
Sent: Thursday, January 10, 2013 12:32 PM
To: Shlomi Fish
Cc: L-boston-pm
Subject: Re: [Boston.pm] Template toolkit and floats

Thanks Shlomi,

My boss told me not to worry about different currencies yet.  He's pushing
to get the site up asap with the bare necessities.
I actually have some similar custom code that I'll be using later when I
get more time to implement it (not my first time dealing with international
currencies).

But thanks very much for thinking of this and providing the link. That's a
nice clean collection.

--Alex


On Thu, Jan 10, 2013 at 5:19 PM, Shlomi Fish shlo...@shlomifish.org wrote:

 Hi Alex,

 On Thu, 10 Jan 2013 16:17:06 +
 Alex Brelsfoard alex.brelsfo...@gmail.com wrote:

  Nevermind... Sorry... Turned out to be a JS problem actually parseInt
  vs parseFloat
 
  Ugh.
 
 
  On Thu, Jan 10, 2013 at 4:06 PM, Alex Brelsfoard
  alex.brelsfo...@gmail.comwrote:
 
   Hi All,
  
   I am working on a custom shopping basket, and using Template to
 multiple
   the quantity of each item by its base price, and then also summing it.
   But I'm losing the floating points.  It's coming out as flat INTs.
  
   Any idea of how to fix this?
  
   Thanks in advance.
  
   --Alex
  
 

 I'm glad you got your problem sorted out, but note that you should note use
 the built-in floating-point arithmetics for currency. See:

 * https://metacpan.org/release/Math-Currency

 * http://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html - What
 Every
 Computer Scientist Should Know About Floating-Point Arithmetic.

 Regards,

 Shlomi Fish

 --
 -
 Shlomi Fish   http://www.shlomifish.org/
 Humanity - Parody of Modern Life - http://shlom.in/humanity

 Botje  Khisanth =~ s/must sleep/must give Botje all my money/ .
 - Freenode's #perl

 Please reply to list if it's a mailing list post - http://shlom.in/reply .


___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm

___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] Perl Equivalent to Natural Language Tool Kit

2012-07-09 Thread Ricker, William
Perl was written by a Linguist. It is a NL toolkit unto itself.
CPAN has several linguist modules (eg stem/plurals) 

We've had a computational linguist visit Boston.pm recently, perhaps she can 
comment ?


bill

___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


[Boston.pm] Presentation ?

2011-11-04 Thread Ricker, William
Second Tuesday is as early as it gets, next week is 11/08.

Anyone got a module or slide deck or cool use for perl they want to share ?

If no one wants to do the whole time, we can tag-team / what have you seen 
cool lately? / lighting rounds.


William Ricker
Aka bill n1vux # Not speaking for $DayJob


___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


[Boston.pm] Anyone using sitecustomize.pl or userelocatableinc ?

2011-10-17 Thread Ricker, William
I am attempting to build Perl 5.14.2 with -D userelocatableinc option and -D 
usesitecustomize . 
This is because local IT filesystem convention does not permit 
applications-team supported code in nonvarying FS name like /opt. I can build 
Perl and DBI etc, but need to be able to deploy into each business app's 
filesystem. Perl doesn't normally like that. Perl 5.10 added these two optional 
features to support that, but they don't seem to be used much, at least not 
together on Unix. (ActiveState at least uses sitecustomize.pl normally.)

My intent is to use -Dusesitecustomize 's special 
$Config{sitelib}/sitecustomize.pl file in final location to patch paths, after 
building with fictional prefix and make install DESTDIR=$HOME/test/perl5  for 
test and cpanp module builds .

Alas, sitecustomize.pl doesn't seem to be found when $Config{sitelib} (or 
rather the compiled in C version actually used) is a relative not absolute 
path, as is if and only if userelocatableinc is in effect - 

$ head -2  perl/lib/site_perl/5.14.2/sitecustomize.pl

 print sitecustomize.pl\n;
$ perl/bin/perl -MConfig -E 'say $Config{sitelib}; say 
$Config{usesitecustomize};'
.../../lib/site_perl/5.14.2
define
$

(The magic '...' meaning 'my executable' seems to be not supported in a few 
other places to, I logged a bug against Ext-MM today, and perldoc's use of 
Perldoc::ToMan also gets confused.)

Maybe I need to set up ENV differently before running a userelocatableinc Perl, 
but my PATH and PERLLIB seem sufficient.

William Ricker 
Director, Architecture
Fidelity Investments / FPCMS Systems, Arch  Data
617-563-0648 / 780-2223
M/S  Z1E 
william.ric...@fmr.com 
Aka BRICKER@cpan aka N1VUX aka william.ric...@fmr.com 
http://www.linkedin.com/in/n1vux


___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] Anyone using sitecustomize.pl or userelocatableinc ?

2011-10-17 Thread Ricker, William
Ok  I found my problem with sitecustomize, my PERLLIB was mangled. 
(I had hoped I wouldn't need PERLLIB with userelocatable but that doesn't seem 
to be the case.)

Still looking for anyone with experience with userelocatable as Makefile.PL 
still hates me.

bill

-Original Message-
From: boston-pm-bounces+william.ricker=fmr@mail.pm.org 
[mailto:boston-pm-bounces+william.ricker=fmr@mail.pm.org] On Behalf Of 
Ricker, William
Sent: Monday, October 17, 2011 7:17 PM
To: Boston PM
Subject: [Boston.pm] Anyone using sitecustomize.pl or userelocatableinc ?

I am attempting to build Perl 5.14.2 with -D userelocatableinc option and -D 
usesitecustomize . 
This is because local IT filesystem convention does not permit 
applications-team supported code in nonvarying FS name like /opt. I can build 
Perl and DBI etc, but need to be able to deploy into each business app's 
filesystem. Perl doesn't normally like that. Perl 5.10 added these two optional 
features to support that, but they don't seem to be used much, at least not 
together on Unix. (ActiveState at least uses sitecustomize.pl normally.)

My intent is to use -Dusesitecustomize 's special 
$Config{sitelib}/sitecustomize.pl file in final location to patch paths, after 
building with fictional prefix and make install DESTDIR=$HOME/test/perl5  for 
test and cpanp module builds .

Alas, sitecustomize.pl doesn't seem to be found when $Config{sitelib} (or 
rather the compiled in C version actually used) is a relative not absolute 
path, as is if and only if userelocatableinc is in effect - 

$ head -2  perl/lib/site_perl/5.14.2/sitecustomize.pl

 print sitecustomize.pl\n;
$ perl/bin/perl -MConfig -E 'say $Config{sitelib}; say 
$Config{usesitecustomize};'
.../../lib/site_perl/5.14.2
define
$

(The magic '...' meaning 'my executable' seems to be not supported in a few 
other places to, I logged a bug against Ext-MM today, and perldoc's use of 
Perldoc::ToMan also gets confused.)

Maybe I need to set up ENV differently before running a userelocatableinc Perl, 
but my PATH and PERLLIB seem sufficient.

William Ricker 
Director, Architecture
Fidelity Investments / FPCMS Systems, Arch  Data
617-563-0648 / 780-2223
M/S  Z1E 
william.ric...@fmr.com 
Aka BRICKER@cpan aka N1VUX aka william.ric...@fmr.com 
http://www.linkedin.com/in/n1vux


___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm

___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] Anyone using sitecustomize.pl or userelocatableinc ?

2011-10-17 Thread Ricker, William
I retract my retraction, I confused myself. I fixed PERLLIB and still won't 
auto run  $Config{sitelib}/sitecustomize.pl unless I invoke it directly (which 
at least does work, but proves nothing).

Still looking for any experience with either userelocatable  and/or 
usesitecustomize uon Unix (not Windows)

Bill


-Original Message-
From: boston-pm-bounces+william.ricker=fmr@mail.pm.org 
[mailto:boston-pm-bounces+william.ricker=fmr@mail.pm.org] On Behalf Of 
Ricker, William
Sent: Monday, October 17, 2011 8:02 PM
To: Boston PM
Subject: Re: [Boston.pm] Anyone using sitecustomize.pl or userelocatableinc ?

Ok  I found my problem with sitecustomize, my PERLLIB was mangled. 
(I had hoped I wouldn't need PERLLIB with userelocatable but that doesn't seem 
to be the case.)

Still looking for anyone with experience with userelocatable as Makefile.PL 
still hates me.

bill

-Original Message-
From: boston-pm-bounces+william.ricker=fmr@mail.pm.org 
[mailto:boston-pm-bounces+william.ricker=fmr@mail.pm.org] On Behalf Of 
Ricker, William
Sent: Monday, October 17, 2011 7:17 PM
To: Boston PM
Subject: [Boston.pm] Anyone using sitecustomize.pl or userelocatableinc ?

I am attempting to build Perl 5.14.2 with -D userelocatableinc option and -D 
usesitecustomize . 
This is because local IT filesystem convention does not permit 
applications-team supported code in nonvarying FS name like /opt. I can build 
Perl and DBI etc, but need to be able to deploy into each business app's 
filesystem. Perl doesn't normally like that. Perl 5.10 added these two optional 
features to support that, but they don't seem to be used much, at least not 
together on Unix. (ActiveState at least uses sitecustomize.pl normally.)

My intent is to use -Dusesitecustomize 's special 
$Config{sitelib}/sitecustomize.pl file in final location to patch paths, after 
building with fictional prefix and make install DESTDIR=$HOME/test/perl5  for 
test and cpanp module builds .

Alas, sitecustomize.pl doesn't seem to be found when $Config{sitelib} (or 
rather the compiled in C version actually used) is a relative not absolute 
path, as is if and only if userelocatableinc is in effect - 

$ head -2  perl/lib/site_perl/5.14.2/sitecustomize.pl

 print sitecustomize.pl\n;
$ perl/bin/perl -MConfig -E 'say $Config{sitelib}; say 
$Config{usesitecustomize};'
.../../lib/site_perl/5.14.2
define
$

(The magic '...' meaning 'my executable' seems to be not supported in a few 
other places to, I logged a bug against Ext-MM today, and perldoc's use of 
Perldoc::ToMan also gets confused.)

Maybe I need to set up ENV differently before running a userelocatableinc Perl, 
but my PATH and PERLLIB seem sufficient.

William Ricker 
Director, Architecture
Fidelity Investments / FPCMS Systems, Arch  Data
617-563-0648 / 780-2223
M/S  Z1E 
william.ric...@fmr.com 
Aka BRICKER@cpan aka N1VUX aka william.ric...@fmr.com 
http://www.linkedin.com/in/n1vux


___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm

___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm

___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] tech meeting next week

2011-06-07 Thread Ricker, William

  Hi! Is there a meeting for tonight?
 No, its next Tuesday.

Correct.  7th is only 1st Tuesday. As late as it can come. 
Since it is a new term, I am awaiting confirm of room # / availability.

Also looking for who had a topic ...

bill

___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] Perl memory profiling

2011-05-18 Thread Ricker, William
Quick top-post to annoy Uri -

perldoc  perldebguts
http://perldoc.perl.org/perldebguts.html#Debugging-Perl-Memory-Usage

There are several Memory diagnostic modules on CPAN too.

Bill

-Original Message-
Is there a way to profile a perl program's memory from within the program? 
Specifically, I'd like to take snapshots of the memory usage as various data 
structures within the program are created/freed.





___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] arriving tonight - emergency social meet monday or tuesday?

2011-05-15 Thread Ricker, William
To my mind, the best reason to dine at Grendel's is to celebrate their historic 
supreme court victory for separation of Church  State. 

(Though some migh perefer to celebrate anglo-saxon arts and letters, or monster 
rights.)

But I would agree that's not a compelling reason to take a drinking crowd 
there.  

Bill, typing with thumbs

___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] [Boston.pm-announce] Tech Meeting March 8th, at MIT E51-376 7 ~ 7:30pm

2011-03-08 Thread Ricker, William
Small number so far. More ?

Bill, typing with thumbs

- Original Message -
From: boston-pm-announce-bounces+william.ricker=fmr@mail.pm.org 
boston-pm-announce-bounces+william.ricker=fmr@mail.pm.org
To: Boston Perl Mongers (announce) boston-pm-annou...@pm.org; Boston PM 
Boston-pm@mail.pm.org
Sent: Mon Mar 07 12:49:13 2011
Subject: [Boston.pm-announce] Tech Meeting March 8th,   at MIT E51-376 7 ~ 
7:30pm

Tuesday, March 8, 2011 E51-376
convene 7pm ish, talk starts 7:30 pm

File::Slurp update, Uri
see Uri's list postings to download and beta test his new code if you
want to preview for the meeting.

RSVP for count encouraged but not required, to me bill.n1...@gmail.com
or Boston-PM list.

Our WIKI http://boston.pm.org/kwiki/
 * Tech Meetings are held on the 2nd Tuesday of every month at MIT
 (directions http://boston.pm.org/kwiki/index.cgi?MITDirections ).
   o NOTE - Sometimes the lot has filled early, overflow is to Hayward
 lots (avoid MEDICAL RESERVED spaces!). See alternatives
http://boston.pm.org/kwiki/index.cgi?MITDirections
   o Suggestions for future meetings solicited on Topics page
TechMeetingTopics
 http://boston.pm.org/kwiki/index.cgi?BostonPMCalendar

-- 
Bill
@n1vux bill.n1...@gmail.com

___
Boston-pm-announce mailing list
boston-pm-annou...@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm-announce

___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] use Moose ?

2011-02-03 Thread Ricker, William
How many objects per action was how slow?

(Slow for some SLAs may be fast enough for others. )

I think I am hearing that Moose is good for daemons where both Moose's and your 
progeram's  initialization is once only off the critical path, and request / 
response are lean using factories; and for load-run-exit scripts which don't 
need introspection, Mouse is compatible, noticably faster, and enough OO?  


Bill, typing with thumbs

- Original Message -
From: boston-pm-bounces+william.ricker=fmr@mail.pm.org 
boston-pm-bounces+william.ricker=fmr@mail.pm.org
To: James Eshelman ja...@nova-sw.com
Cc: boston-pm@mail.pm.org boston-pm@mail.pm.org; Drew Taylor 
d...@drewtaylor.com
Sent: Thu Feb 03 10:49:37 2011
Subject: Re: [Boston.pm] use Moose ?

On Wed, 2 Feb 2011 13:26:52 -0500 James Eshelman ja...@nova-sw.com wrote: 

JE Thanks Drew.  It's good to hear that there's no noticeable RT penalty after 
JE startup, and the roles feature looks especially nice, along with the 
JE compatibility with Perl 6.   -- Jim

There's a very noticeable penalty if you instantiate lots of objects.  I
couldn't use Moose for a database loader, for instance, and had to fall
back to simple hashes.  The speed difference was (for my specific case,
which had lots of small objects) between 2 and 200 times slower with
Moose, depending on other factors like hitting swap because the memory
usage spiked.  This is not surprising considering all that Moose does.

I am a big fan of Moose and use it whenever I can, but only if I expect
relatively few objects to be created and managed.  Otherwise I would at
least benchmark the performance and consider how the objects are going
to be used.

Ted

___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm

___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] Csv in, beautiful chart out ?

2010-11-05 Thread Ricker, William
MW  For simple graphs I've used GD and sometimes GD::Graph with reasonable
MW  results.

Ditto, with GD Chart variants.  See this list's Archives for Dec 2005.
http://www.mail-archive.com/boston-pm@mail.pm.org/msg03654.html

(Obviously Text::CSV too)

-- 
Bill
n1...@arrl.net bill.n1...@gmail.com


___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] Perl-based (preferably) scriptable web albumsoftware/modules

2010-10-13 Thread Ricker, William
You can strip the tags (geo and camera Id; and remove camera signature noise by 
resizing) before uploading to cloud service or your own server. That is good 
use for Perl. And a good idea. 

Hosting it yourself will be decidedly retro. Pretty much every web toolkit 
includes Album as a demo. 

Bill, typing with thumbs

- Original Message -
From: boston-pm-bounces+william.ricker=fmr@mail.pm.org 
boston-pm-bounces+william.ricker=fmr@mail.pm.org
To: 'Boston Perl Mongers' boston-pm@mail.pm.org
Sent: Wed Oct 13 14:29:18 2010
Subject: [Boston.pm] Perl-based (preferably) scriptable web 
albumsoftware/modules

For hosting personal photo/video albums on the web there are various options 
out there like Google Picasa and the like. However, I would like to build my 
own web photo albums to post them on my own web site. I know that I can link to 
Picasa web albums from my site but that's not what I'm looking for. (Why? Part 
of it just for the learning and part of it is a bit of reticence [maybe even 
unjustified paranoia] of putting too much information in the hands [or 
datawarehouses] of a few giant web companies that can mine all sorts of 
personal information from my personal data. For example, someone figured out 
where one of the Mythbuster shows' main characters live by simply looking up 
the geotags embedded in some pictures of his backyard that he posted to his own 
Facebook page. I know I can strip the tags ...)

I can think of scripting it up in Perl using, say ImageMagick to create 
thumbnails, etc. and building html indexes from simple text-based inputs. But 
then I thought that somebody else has most likely already done that. So I'm 
looking for suggestions and/or comments good/bad for any scriptable web-based 
photo album development tools.

Thanks,

-Nilanjan

___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] summer tech social

2010-07-07 Thread Ricker, William
 Any plans for a summer perl mongers social?

I will refer that to Uri, our Social Secretary  President for Vice. 

 Mitchell's sounds fine except for the ruby part, the noon part, and
the davis sq part :)

Really !

Says something about the Ruby market if they're not busy ?

Bill


___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] Xpath query acceleration

2010-06-16 Thread Ricker, William

 That wouldn't work, as the document contains items that aren't in the
schema, 

I recall that was the whole point of your walking it yourself rather
than using a yes-no external oracular validator, yes. 

To truly validate to a schema, you must recursively parse the file under
control of the annotative grammar which is the schema. I don't expect
querying the schema by xpath to work in general case, but your schema
may be such you know it will.

If it's as easy as determining that this tag isn't even in our lexicon,
or our tag of this name doesn't have this attribute, our tag of this
name is only allowed with certain parents that do not include the
current document's usage, you should be able to mark #FAIL as you go,
whichever is driving. You could preprocess the schema into a hash of
rules to validate, possibly using Xpath as semantics for magic string
values.

If the schema is sufficiently abstract that you need backtracking search
to determine what bits of the document XML have to be excluded for the
rest to validate, you have a horror on your hands.  



 so you'd have to keep track of which nodes you validated, 
 and then still query or walk the document looking for things 
 that weren't covered by the schema.

you can delete them when they fail validation, which is what I thought
you said you'd do, or keep a list of refs to what fails.

 I haven't tried using XML::Twig::XPath, but it deviates from the DOM
 API, which can make it harder to port your code to a different XML
library. 

Yes, it's a just-barely-sufficient-magic hack, not 100% solution. XML
was supposed to be less overly-general than SGML, but it's still too
too, too.

bill

___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] Social Meeting for Boston.pm with Alias this week, probably Thursday?

2010-05-20 Thread Ricker, William
7ish (6:45) 
It was on list somewhere.

-Original Message-
From: boston-pm-bounces+william.ricker=fmr@mail.pm.org
[mailto:boston-pm-bounces+william.ricker=fmr@mail.pm.org] On Behalf
Of Andy Oram
Sent: Thursday, May 20, 2010 1:47 PM
To: boston-pm@mail.pm.org
Subject: Re: [Boston.pm] Social Meeting for Boston.pm with Alias this
week, probably Thursday?

OK, I get that a bunch of us will meet Adam at Cambridge Brewing Company

this evening. But nobody posted a time, so far as I can see. When do 
Steve and Adam expect to arrive?

Andy

___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] social meeting with Alias aka ADAMK @CBC Thursday 7ish

2010-05-20 Thread Ricker, William
  Alas I must bow out; gotta finish a rush job for a client.

Understood.  I hope not to have a similar issue myself!
I gave them a 12-16 estimate under group 'Perl'  my name Bill Ricker,
so we're flexible.

Bill @ $DayJob






___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


[Boston.pm] Map address RE: social meeting with Alias aka ADAMK @CBC Thursday 7ish

2010-05-19 Thread Ricker, William
CBC=Cambridge BREWING Company (Corrected)
1E Kendall Square, Cambridge, MA - (617) 494-1994
One Kendall Square Complex is *near* real Kendall Sq  (T), 
off Hampshire by Broadway,
behind the Draper new building behind Tech Square,

The parking garage with validation and narrow spaces that Steve
mentioned is on Binney.
Watch for the live rail grade crossings, the two trains a day are a
surprise.

OpenStreetMap -
http://osm.org/?mlat=42.36637mlon=-71.09135zoom=17layers=B000FTF

And that other map ...
http://maps.google.com/maps?q=%22Cambridge%20Brewing%20Company%22

Bill @ $DayJob


___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] Exceptions as control flow

2010-03-19 Thread Ricker, William
GL and then there's
GL  embedded as in must achieve a frame rate of 30 hz. 


Where 

30 Hz is a variable,

 and

must may be of varying strength / harm - 

* otherwise the screen refresh will be skipped jerky, or only partial
ugly;
 ...
* otherwise Flight Law control loop time is violated and positive
control 
  of the airframe is no longer guaranteed

 expensive 

Yes. longjmp was once not only less C code but far far quicker to unwind
a deep stack than the standard 
   return(-1) if rc  0; # lather rinse repeat
in old C on old slow hardware without optimized stack instructions.  The
return()'s register swizzling is far cheaper on today's hardware which
has support for such, so that is less true today. Doing  an exception
throw in OO C++ or Java or even Perl requires  MUCH MORE *implicit* work
as the exception propagates through the call stack checking at each
frame for potential catches and potential destructors for on-stack
objects being freed.  
   An actual longjmp in C++ would cause any off-stack resources held by
over-jumped stack to leak. 



Exceptions are perhaps the least pernicious form of COME FROM flow
control, but that is damning with faint praise. 
   COME FROM are as a class generally even more evil than the GO TO.
However, TRY{THROW}CATCH{} exceptions (including eval{die} and even
longjmp ) are less egregious action-at-a-distance COME FROM than their
older siblings the SIGNAL handlers like $SIG{FPE} and PL/I ON
CONDITIONs.  At least die or THOW provides a syntactic marker at the
spot that the COME FROM might come from, whereas any arithmetic
expression is a possible raiser of $SIG{FPE}, and any opcode may be hit
by an external $SIG{KILL} or $SIG{INT}. And the CATCH is conveniently at
the point of last call, not buried somewhere in boilerplate like 
$SIG{KILL}= \sub {state $zombie; $zombie++};
Such action at a distance is best used only as the emergency escape
hatch they were designed for. SIG is lean, as it needs to be at
Interrupt level, and it can throw a die, which can be as expensive as it
needs to be to free resources as it winds up the stack, since it is only
called exceptionally.

If one actually needs non-emergency action-at-a-distance (not common,
usually a refactoring is what is needed, possibly into a process
pipeline), Co-Routine callyield is often an appropriate, controlled,
and efficient mechanism 
[Eg http://search.cpan.org/~mlehmann/Coro-5.21/Coro/Intro.pod ]
   A good reason for such is when a parse-transform-generate pipeline
needs to be optimized as thread-to-thread in-memory pass instead of
slower IPC, eg when doing a Jackson Program Design inversion of a parser
to create the generator. (although XSLT or XProc may be better than
bespoke implementation of a complex XML2XML transform, someone has to
build the XSLT XProc engines, and sometimes source or target doc isn't
in the *ML family ... .)
  Another example is http://search.cpan.org/dist/Perl6-GatherTake/
(EXPERIMENTAL!) which uses Coro to implement Perl6's gather-take
keywords to build lazy list generators.
  And PLACK/PSGI use Coro
http://deps.cpantesters.org/depended-on-by.pl?dist=Coro-5.21



Bill @ $DayJob
Not an official statement of anyone

 
   

___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] Exceptions as control flow

2010-03-19 Thread Ricker, William
 But do all programming techniques need to be approved by the FAA?
 
Any used in licensed devices subject to FAA  or FDA or NSA/DoD or NASA
review, ranging from the Space Shuttle flight computer to on insulin
pump. Testing doesn't count with them.

That puts *Engineering* into Software Engineering.

Bill
Been there, done that, in a prior life

___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] ConfigObj, Config::Std, [PBP]

2010-03-02 Thread Ricker, William
There are a slew of perl INI, config, and file read/write/rewrite
modules on CPAN,  with varying degrees of 'round trip'. 

I interpret Federico's jonsing wrto the linked Python mod as a request
for contextual preservation (presentation: comment, sequence, 
whitespace), which is required for sanely allowing a
Perl-Tk/-Wx/PythonTk/etc scripted GUI wizard to edit a hand-crafted
config file, and to honor the principle of Least Surprise.

Round-trip and preserve claims on CPAN include - 
* http://search.cpan.org/~makamaka/JSON-2.17/ (data only, not comments)
*
http://search.cpan.org/~ovid/TAPx-Parser-0.50_07/lib/TAPx/Parser/YAML.pm
(ditto)
* http://search.cpan.org/~adamk/YAML-Tiny-1.41/lib/YAML/Tiny.pm (ditto)
* http://search.cpan.org/~dconway/Config-Std-0.007/lib/Config/Std.pm
(context too)
*
http://search.cpan.org/~spang/Config-GitLike-1.03/lib/Config/GitLike.pm
(context)
* http://search.cpan.org/~eric/OpenPlugin-0.11/OpenPlugin/Config/Ini.pm
(context)

Most general module with round-trip for contextual info (comments,
whitespace, sequence) not just data seems to be Damian's Config::Std.
Damian wrote this for the PBP book since there wasn't a module existing
at the right mix of richness and simplicity for him to recommend (Papa
and Baby Bear semi-recommendations are Config::General and Config::Tiny,
respectively, neither of which preserves context). 
  The latest flurry of updates (Sep  Nov 2009; after 3.5 year hiatus)
made progress that isn't reflected in the RT queue (no 'Fixed in' for
v0.05 .. V0.07).
 https://rt.cpan.org/Public/Dist/Display.html?Name=Config-Std
 http://cpansearch.perl.org/src/DCONWAY/Config-Std-0.007/Changes
At least that burst of activity means I can stop calling it dormant
(which by policy is a reason to reject a FLOSS distribution at $DayJob).

Adopting this module would be a good project for an ambitious person or
group, as the ecological niche is still open for vigorous growth.  

Would Boston.PM be interested in doing perhaps twice yearly workshop /
coding sprints to validate test implement test enhancements to
Config::Std, if Damian would have us ?

Bill
Permanent Interim Facilitator, Boston.PM
(or is that Interim Permanent?)
Hardly speaking for $DayJob



___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] Padre, the Perl IDE

2010-02-04 Thread Ricker, William
 Have we had a Padre demo at a past Boston.pm meeting?

We had a discussion of IDEs in general, I forget if there was a mini
demo. 

Padre has grown sufficiently that it deserves a full meeting.


* project history, scope
* basic demo
* plugins
* neat tricks
* its code
* connection to EPO
* ...

Perhaps we can tag-team a set of Padre mini-talks if no one wants to do
the whole


Bill @ $DayJob

___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] Padre, the Perl IDE

2010-02-04 Thread Ricker, William
 Can I ask the stupid question? What would be the advantage of using  
 this over Eclipse + EPIC?

If your shop is 80% Java, 20% Perl, likely none.

If your shop is 80% Perl, 20% C, the likely competition is Emacs, not
Eclipse.

bill



___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] New version of Parse::Gnaw and a question aboutBenchmark

2010-02-02 Thread Ricker, William
 
 [3x] is really surprising to me.

 The generated parsers don't always run as fast as might be wished.

I think Greg is surprised it's ONLY 3x faster, given PRD's notorious
time for expressivity trade. 

Either Greg needs a bigger test case ... One where PRD is taking
multiple seconds to answer ... Or some tweaking.

Bill @ $DayJob


___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] [Perladvent] mod_perlite... working!

2009-12-08 Thread Ricker, William
Oh that. It hoses https too for Mac and Linux. I have only seen that idiocy on 
lame hotel pay internet ... 
(For some reason MSWindows is sufficiently non-standards compliant to adapt to 
these lame net appliance that were only tested with MSWin... . People should 
read the RFCs ...)


Bill, typing with thumbs

- Original Message -
From: boston-pm-bounces+william.ricker=fmr@mail.pm.org 
boston-pm-bounces+william.ricker=fmr@mail.pm.org
To: perladv...@pm.org perladv...@pm.org; Boston Perl Mongers 
boston...@pm.org
Sent: Tue Dec 08 22:58:11 2009
Subject: Re: [Boston.pm] [Perladvent] mod_perlite... working!

BTW, I think I've found a solution to my SSH sessions freezing at random

It's discussed and explained in the thread here: http://bit.ly/5Kh2PE

Summary: tcp window scaling* freaks out various types of old or stupid
network equipment. To disable it on the offending system, issue the
following command:

sudo sysctl -w net.ipv4.tcp_window_scaling=0

I don't know exactly where the problem is occuring in my case, but
issuing that sysctl on my laptop fixed the issue with ssh lagging to
the systems behind the PIX at work... but ssh sessions to my linode
server weren't fixed until I did it on that host as well.

There's also an article on this issue here: http://lwn.net/Articles/92727/

* introduced in the linux kernel around 2004 but not turned on by
default until around 2006

-- 
-- Steve Scaffidi step...@scaffidi.net

___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] Possible subject/activity for tonight

2009-10-13 Thread Ricker, William
Sounds great !  Benchmarking workshop could be done annually to our
benefit.

Bill
 

-Original Message-
From: boston-pm-bounces+william.ricker=fmr@mail.pm.org
[mailto:boston-pm-bounces+william.ricker=fmr@mail.pm.org] On Behalf
Of Steve Scaffidi
Sent: Tuesday, October 13, 2009 3:51 PM
To: Boston Perl Mongers
Subject: [Boston.pm] Possible subject/activity for tonight

At $work we are about to do some refactoring and in order to find out
where we will get the most bang-for-the-buck we need to do some
benchmarking.

Benchmarks are an interesting topic (especially combined with
profiling) - Benchmarks are fairly easy to write, but difficult to
*get* right. However, they're an excellent tool to have and use.

Uri and I were discussing the idea that we could demonstrate some use
of Benchmark.pm, writing a few simple cases and then discussing how to
interpret and improve them. I'll come with everything we need already
installed on my laptop...

What do y'all think?

-- 
-- Steve Scaffidi step...@scaffidi.net

___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


[Boston.pm] Binary search requirements + estimates (not empty)

2009-07-09 Thread Ricker, William
Are the prefix uniform size? Or can a small number of expected matchable  
prefixes be parsed out of the 250k strings?

Are you doing this once, or new set of 7500 perefixes every minute?

Are both lists already sorted? If big one isn't that dominates. If big one is 
but not according to primitive lt(3P) all algs will be slowed by custom compare 
(unless inline::C or XS, and there is still some ovh).. 

Master file update aka merge of sorted files would find all hits in time O(N+M) 
and space O(1). that sounds bigger than O(ln N * M) for your numbers, but it 
leverages the O(N) load of big list which is required before the first O(ln N) 
search.

Map-Reduce is the modern way if you have cpu farm, but optimizes response time 
not global warming. 

Bill
Not speaking for $dayjob

Bill, typing with thumbs

___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] Perl Boolean Expression builder

2009-05-20 Thread Ricker, William
To minimize the Boolean expression or compute one from a truth table, I
think you want
 
http://search.cpan.org/~kulp/Algorithm-QuineMcCluskey-0.01/lib/Algorithm
/QuineMcCluskey.pm 
References -
 http://hopper.unco.edu/KARNAUGH/Algorithm.html
 http://en.wikipedia.org/wiki/Karnaugh 
 http://en.wikipedia.org/wiki/Quine-McCluskey_algorithm

___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] Meta-user group meeting! May 2nd summit about how to coordinate a user group

2009-04-14 Thread Ricker, William
 
We got this thru the Leaders' lists. That's a busy weekend. Maybe Uri,
Ron and I will draw straws ...

___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] Git tutorial

2009-04-13 Thread Ricker, William
I was thinking the same. 
   There is one really good online 'book' and a good supplement, and a well 
reviewed pay-pdf, which will be in my followup message Wednesday, and I will 
likely include notes on other things seen. (I will explain why I am especially 
interested in Steve's talk tomorrow)

Bill

Bill, typing with thumbs

- Original Message -
From: boston-pm-bounces+william.ricker=fmr@mail.pm.org 
boston-pm-bounces+william.ricker=fmr@mail.pm.org
To: Steve Scaffidi sscaff...@gmail.com
Cc: Boston Perl Mongers boston...@pm.org
Sent: Mon Apr 13 09:32:05 2009
Subject: Re: [Boston.pm] Git tutorial

On Sunday 12 April 2009 15:59:38 Steve Scaffidi wrote:
 I stumbled upon this article the other day, and it's a fun read and really
 highlights some of the things I like about git.

On the topic of stumbling upon documentation, it would be wonderful to have a 
commented bibliography of what's available, on the net or off, with a brief 
description of the focus and audience of each document, and a critique of its 
quality (the minimal incarnation of this critique could be a 1-to-5 star 
rating, althoug that's a bit too low-dimensional for me). I think this would 
help people, especially those that are newcomers to git, to know where to 
start, and then where to go for specific topics.

From what I've seen, git is in a relatively good position, in the sense that 
there isn't a ton of documentation, tutorials, etc. (so there is less 
opportunity for contradictory or wrong info, and its lengthy weeding) and what 
there is is generally fair to good quality. On the other hand, I'm not sure 
there is a source that could be considered excellent...

Bernardo Rechea


___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


[Boston.pm] XUL outline or ppt : Larry's MIT talk

2009-04-06 Thread Ricker, William
 
 So the reason why I like the idea of these systems 
 based on XUL is that they are web-friendly, there is a single format 
 for everyone,

Good

  and I can just type down the text and it gets aligned for me.

What tool are you looking at? 
(The raw xul makes html+css look good.)

 I am not so much against Powerpoint as much as
  pro-outliners, 

Outliners are good for organizing thoughts, not so good for
communicating

 especially text-based outliners.


Have you seen a good text outliner since DynoNotePad ?

bill

___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


[Boston.pm] Placenames ambiguity RE: Discount for

2009-04-03 Thread Ricker, William
 If you go international, 

Longest list of cities proper that I found quickly
http://www.citypopulation.de/world/Agglomerations.html cuts off at 1E6
(three way tie for #s 476 477 478). There are three exact matches on
'English Name' in million-Plus cities-

Hyderabad
Birmingham
Valencia

 
In English, We don't latinize Colombo, Sri Lanka, so it doesn't match
Columbus OH; Colombo, Brazil city proper is less than a quarter million,
but the conurbation is 2M+, so that could count.

I am surprised that each San/Santa/santo/saint only breaks 1E6 once,
except St.Louis  + Sao Luis.


Going down below half million for top thousand, China gets a some
internal dups, and I finally find SANTIAGO DE LOS CABALLEROS as a near
dup for Santiago (Chile), and Santiago de Cuba and Santiago de
Compostella (Spain) still aren't populous enough to make top 1000 list.

Only that one pair of Old-Country and American namesakes are both
Million+ ! For the rest, it varies which is larger. Combining a long US
List with the world Million or Top Thousand would find Rome NY, Naples
FL, maybe Paris MAINE if it's really long. Would need an equally
detailed list of English market towns etc to find the smaller namesakes,
e.g. Portland, Portsmouth, Cambridge, Weymouth, Falmouth, Reading,
Boston. 


Bill @$DayJob

___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


[Boston.pm] platypus RE: Larry's MIT talk

2009-04-03 Thread Ricker, William
 platypus 

Platypi were also mascots for flexible inheritance in OO circles for
demonstrating the problems with monotonic, non-overidable inheritance,
like only calling parent methods through parent typed pointer, in C++
1.0.  I have a pedagogic puppet somewhere, from back when I was teaching
from Budd's book
 http://www.powells.com/biblio?PID=24750cgi=productisbn=0201824191
(ostrich and penguin are less exceptional)



___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


[Boston.pm] Arlington Springfield RE: Placenames ambiguity RE: Discount for

2009-04-03 Thread Ricker, William
Uri is correct, but it's close and depends on what the meaning of is is.

Springfield wins 31+2 to 26+4 instances in the US, 
but Arlington appears in more states 29 to 26. 

The plus two and four are for named villages within an incorporated
larger city, and double counts Arlington in Arlington Wisc, and counts
Jacksonville FL village/neighborhoods for both.

So both names appear in more states than not.

Only WV has two Arlingtons (2+0) besides the nested pair in WI (1+1),
but for Springfields, NJ has 2+1, WI 5+0, FL 1+1.  They're at least all
in different counties.

Springfield MA is credited as being the Original (population 154,082),
and Springfield MO the most populous (154,777) at last census. So total
population of any pair is pretty low, but the sum could be vaguely
respectable
 
Arlington County,VA, (population 206,800, undivided)  isn't so much
more; like the larger Arlington TX  (371,038, 50th largest city in it's
own right) it is not it's metropolis standard bearer. They're a pretty
decent pair, but in either case you'd say Greater Washington or Greater
DalWorth was the host.

The states with one or both:
ALa AZa CAasCOasFL(a)s(s)   GAasILasINas
IOa KAa KYasLAs MEs MD(a)   MAasMIasMNas
MOs NEasNHs NJss(s) NYasNCa OHasORasPA(a)
SCs SDasTNasTXa VTasVAasWAa WVaas
WIa(a)s


[http://en.wikipedia.org/]

We should encourage the states with neither to adopt one or both !




___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] not so regular expressions

2009-04-03 Thread Ricker, William
 
 but IIRC the standard ivory tower regular expressions have grouping,
 alternation, and closure, or in re terms, () | and *.  Much of perl's
 re forms can be created from those (e.g. x+ is the same as xx*).
 The original thing that was outside the official scope was
backreferences
...
 However, the ivory tower definitions are useful mostly for analysing
 complexity.  Sometimes you need a more powerful mechanism 

Correct. 

Hence we have something more useful which needs a new name, at least in
theory.

Concise theoretical definition unmuddied by well meaning wikignomes at
the always useful MathWorld ...
http://mathworld.wolfram.com/RegularExpression.html



___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] Larry's MIT talk

2009-04-02 Thread Ricker, William
 He actually had nearly 500 slides.
 And all in XUL, allegedly :-)

There are a couple Perl based tools to generate Xul slideshows from an outline. 
 I hope he used one of those, would like to know which. Probably can find out 
with google-fu, we won't be the first to ask. 

When the toolchain and minimalist stye is considered, it's more of an animated 
outline and visual accompaniment than a traditional Death by PowerPoint. 
Bill, typing with thumbs

___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] Larry's Harvard and MIT talks

2009-03-31 Thread Ricker, William
 
 i think it is ektachrome shot with an instamatic.

Sounds fun. I was tied to the desk, it being end of quarter.
I will have to get to MIT Wednesday.
How was the crowd?

Bill @$dayjob

___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] (Parking) Re: Larry's Harvard and MIT talks

2009-03-30 Thread Ricker, William
 Is Alewife interesting?  

Alewife is quite appropriate, for those from north or west especially.

Since I live near a T stop at the cheap end of the redline, I'll just
ride the T tomorrow.

But I commend Mabel and or the alewife T garage to those passing that
way.

bill

___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] Git workshop for April

2009-03-29 Thread Ricker, William
Having tiered local and global commits make sense to me. Having one tool with 
tiered storage supports both usec-ases of personal undo and global sharing. 
It solves the discordant motivation problem - do you commit early and often or 
only when it's ALL working again?  
  (Some TDD/agile say *both* and change work habits to fit, which can be a good 
thing, but some refactorings are complex enough that multiple undo checkpoints 
are useful but exposing all of those to the team is not.)


ClearCase provides this with streams as a separate concept from branches.

Good point about nomenclature. 





Bill, typing with thumbs

___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] Larry's Harvard and MIT talks

2009-03-26 Thread Ricker, William
 
 Does anyone know whether the Harvard (3/31) and MIT (4/1) talks 
 on the same topic, or two different talks?

So far the ballistic programming title has been associated with MIT
talk and others on this tour, so it might be identical, but I have not
seen a title for harvard, and can not google for larry talks this year
with title notequal. So unless Larry or HCS post a topic wzdon't know
for sure.





___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] [Fwd: [HCS] Larry Wall - Inventor of Perl -onTuesday 3/31]

2009-03-20 Thread Ricker, William

I'd be a little suspicious about an event on 4/1, at MIT, involving
Larry
Wall.  By 'a little suspicious about' I mean 'very interested in'!

With a title of 'The Art of Ballistic Programming', I would say you
might be right.

Bill's alter ego @$DayJob;

___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] challenge: Python one-liner

2009-03-20 Thread Ricker, William

 # python -m SimpleHTTPServer
 serves the current dir out on port 8000:

So Python ships with a one-line security breach? 

___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] challenge: Python one-liner (smallest perl webserver)

2009-03-20 Thread Ricker, William
So I guess if you've broken lightd apache scp rsync svn/git and netcat,
it's nice to have one more option?

Most cpan http server modules seem to assume you want to share a service
not a bunch o files, since there are plenty of static servers already,
and what would a Perl coder want to share but Perl  code eh?  

Besides, writing a bad ten line replacement for (this use case of) httpd
is a standard Perl 101 midterm assignment. but it's lots more than 10 to
be half nice, EG
http://labe.felk.cvut.cz/~kral/SEMINARS/perlnet.html#webserv  . Why it
even takes 10 with
http://search.cpan.org/~sjquinney/HTTP-Server-Simple-Static-0.07/lib/HTT
P/Server/Simple/Static.pm but the sample code there could be CPANified
to make a module that emulates Python's flaw exactly.



___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] challenge: Python one-liner

2009-03-20 Thread Ricker, William

 IO::All's documentation includes a one-liner for this.

Awesome. Thanks, couldn't remember where I'd seen it.

For the truly lazy,

http://search.cpan.org/~ingy/IO-All-0.39/lib/IO/All.pod#A_Tiny_Web_Serve
r

___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] Git workshop for April

2009-03-06 Thread Ricker, William
Would we be using local repos on our individual laptops only, or would we be 
cloning and checking back to a shared net repo as well? If shared, do we need 
an in-room server or just a scratch repo on some public host to which we can 
grant commit bits harmlessly?

Good news is laptop use at mit seems easier this year, monthly reg seemingly 
not required..

Bill, typing with thumbs

___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


[Boston.pm] To Any use.perl.org editors on list

2009-01-13 Thread Ricker, William
I have posted announcement of tonight's meeting as 
http://use.perl.org/~n1vux/journal/38278 with submission to front page, perhaps 
some one can boost it along?

William Ricker 
Director, Architecture
Fidelity Investments / FPCMS Systems, Architecture Services
617-563-0648 / 780-2223
M/S  Z1E 
william.ric...@fmr.com 
http://www.linkedin.com/in/n1vux




___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] template::simple comments

2009-01-13 Thread Ricker, William

bench...@281 should be just while @data
Same issue in main code?
Does an undef in data crash, cancel section, ?
Should be in t/
-Bob 

Simple.pm - use $child_chunk_name etc instead of $1 $2 where use has slide away 
from the m///.
-Bobbie

Bill, typing with thumbs

___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] slice of life

2008-12-04 Thread Ricker, William
Perl's is the greatest slicing since bread.

(And the best bread is sliced *just* before toasting/serving.)

--Original Message--
From: Bernardo Rechea
To: boston-pm@mail.pm.org
Sent: Dec 4, 2008 10:38
Subject: Re: [Boston.pm] slice of life

On Tuesday 02 December 2008, Uri Guttman wrote:
 yes, i like slicing!

I sounds like we are big fans of slicing... Now, what kind of slicing would 
you say Perl's is more like, this:  http://en.wikipedia.org/wiki/Slicer ? or 
more like this: http://en.wikipedia.org/wiki/Microtome ? :-D

Bernardo




___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Bill, typing with thumbs

___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


[Boston.pm] It's that time RE: Follow up Re: Boston.pm Perl Mongers 11/18 tech meeting

2008-11-19 Thread Ricker, William
In 11 minutes it will be 
octal 111 = decimal 1227133513 =  hex 0x49249249 
= (as time_t) Wed Nov 19 22:25:13 UTC 2008

 as described yesterday (or earlier today UTC)

Bill

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Bill Ricker
Sent: Wednesday, November 19, 2008 12:26 AM
To: Boston Perl Mongers
Subject: [Boston.pm] Follow up Re: Boston.pm Perl Mongers 11/18 tech
meeting

The November meeting of Boston PM will be a was last night Tuesday the
18th (instead of normal 2nd Tuesday, due to some folk having a holiday
on 11/11)

I gave a talk meandering through un/pack(), time_t, magic numbers, and
old skul bit-banging entitled
Magic Numbers  Un/Pack / a use.perl.org magical mystery tour
I am nearly mystified why slide transitions were glacially slow
tonight. Transitions are fine at home, is it the Wacom? MIT network?
Moon phase didn't change ...

Slides are posted at (remove spaces)
http : / / world . std . com /~wdr/ x /pm/magic/magic_pack_tour.pdf

This Free-software generated PDF (OOo 2.3) should be viewed with a
genuine Adobe reader as Evince and Xpdf get the overlays wrong. Perl
scripts are in same directory as the html as is a tarball.

To answer the Question from the floor, Ilya'o'clock willbe just before
Solstice and just before our normal date for January.
ILYA  Sat Dec 20 02:32:33 2008 GMT . Fri Dec 19 21:32:33 2008 ET
Ilya  Tue Jan 13 11:22:09 2009 GMT . Tue Jan 13 06:22:09 2009 ET

Jerrad gave a public service announcement on the Advent Calendar
project.
Volunteer! get writing! http://advent.pm.org

Uri has volunteered for December, Greg for January, so we are now
talking reservations for Feb.

Refreshments provided by our kind sponsor CIDC.com ; be Sure to
mention Boston.PM when you send them a resume.

-- 
Bill
[EMAIL PROTECTED] [EMAIL PROTECTED]

___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


[Boston.pm] Perl Mongers SKIP WEEK to 11/18 RE: meeting on tuesday?

2008-11-07 Thread Ricker, William
 what announcement? 

Boston.pm.org http://boston.pm.org/kwiki/ and our IRC channel and 
http://www.mail-archive.com/boston-pm%40mail.pm.org/msg05129.html

I should re-send to Announce list tonight since others will have not
noted it either.

] I am preparing a talk meandering through un/pack(), time_t,  magic
] numbers, and old skul bit-banging for November 18. (It is not
] appropriate for October; which will only make sense when I get to the
] last slide. unless i spring the punchline early.)

As it happens, my topic fits that date perfectly. (So I need to do MY
slides !) 
And may re-appear at Boskone in February.

 and my offer for the talk is still there. :)

Didn't you discuss table-driven testing before?  But it was as a side
issue to something else, a full talk would be good. Maybe by December
you could have a few slides of manifesto and frame to go with the
code?


So calendar http://boston.pm.org/kwiki/index.cgi?BostonPMCalendar looks
like 

Next
November 18, 2008, 7:15 E51-376
** Note date - week late since 2nd Tuesday is 11/11 a rare Non-Monday
Holiday for some **
time_t, magic numbers, old school bit-hacks, and Perl. BillRicker 
Advent Calendar PSA 

Future
December 9, 2008, 7:15 E51-376
? Uri, Table Driven Testing, as seen in Sort::Maker 
Advent Calendar PSA 


Deal?

bill



___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] Perl Mongers SKIP WEEK to 11/18 RE: meeting on tuesday?

2008-11-07 Thread Ricker, William
 sept 17? for the november meeting? i can't remember 

If sir would like, we have a fabulous new product available. They call
it the calendar.

 ooh, a punchline! it had better be a good one!

I rather doubt it. Nerdy geeky. More of a James Burke /Connections/
*ta~da* moment than a punchline. (but without his wonderful production
values.) But /why/ the topic fits the date exquisitely is a surprise,
nerdy geeky cute, albeit not so funny.
 

-- bill

___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


[Boston.pm] Concordance RE: ackathon design notes

2008-07-16 Thread Ricker, William
Concordances are fun!

 This also hits a particular itch of mine, namely concordance
generation 

Looks not unlike KWIC generator -- Key Word In Context indexing. 
Look up modules for that! (Or ACM Algorithms.)

Uri's comments about fit of your suggestions with Ack are right on --
your 1.2.3. ideas should be logged as Enhancement Requests on
http://code.google.com/p/ack/issues/list .


 My (not very good) solution to enabling search across line boundaries 
 was to slurp the files whole sale. 
 slurping a file incurs the 
 risk of running into a large file that will consume all your memory. 

Works for even Novel sized files on today's machines, and anything
larger will have been input in chapter or volume files.  Uri's buffering
technique -- criticized by Charles for bypassing charset patching --
would also solve this for you.

 In NLP it's common to have large multidocument files, mostly as a
quick and dirty 
 way to avoid some of the filesystem costs of opening many, many small
files, 
 so slurping files is more likely to run into memory issues.

How large is large?  If you bunch small files and keep large files
single, it should be ok on any modern machine, unless you're running
VISTA on a Designed for Win NT Pentium 1.

 I think the idea of managing a buffer is very promising, 

See Charles's discussion on-list, as Unicode compatibility of buffering
impacts your intended use!

 And, lastly, I see in my notes that doing word context is around 120x
slower 
 than doing character context (and I tried a bunch of ways of doing
both), but 
 it may very well be that there are better ways...

I fear trying to do Char, Word, and Line context in one code will undo
the optimization we're trying to do.


[EMAIL PROTECTED] @ $DayJob

___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] job postings

2008-06-30 Thread Ricker, William
 i may be evil but not THAT evil! :)

Uri, it's not about any actual evil. I would really really like to say
Yes to your kind offer.  But  Sean and I have to worry about the
*perception* of evil even where it isn't. 

Local companies, some of whom sponsor Boston.PM, expect postings to the
list via the volunteer screener will avoid paying a headhunting fee.
Having a headhunter screen the messages would make them expect evil.  

 and doing anything wrong with the local leads would be
 counterproductive to me and my stellar reputation! :)

Yes, *We* know you you're schizophrenic enough to handle it and
committed enough to the Perl Community do the right thing for the
organization and community (and thus for your own *longterm* good) -- 
And the Perl folks at the companies may even know that.
But the HR departments only know (fulltime) headhunters in general and
will expect otherwise, no matter what we know or expect ourselves.

We don't want our sponsors to walk on us.  
We don't want local companies to be scared off submitting jobs for
review.  

Sorry Uri, but unless you were to swear off taking fees from *all* local
business (which I can neither ask, nor suggest nor expect), I think we
need to have someone else, someone who *appears* *objectively* neutral,
to be approving the job postings.

I can do that chore (as it comes with the role), or maybe Ronald would
like to continue to do that, or maybe someone else would like to. But
Sean (as employee of a sponsor and thus an active competitor for
resources) and Uri (as a part-time Headhunter) both must be excused from
this duty. 

Or we could consider a change of policy to just allow posting (with same
caveat of locality and relevance), thus avoiding the issue entirely. 



Bill
 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] perl6 talk wanted for BLU

2008-06-27 Thread Ricker, William
Uri, Bob, Tom, et al -

Echoing what Tom said between when I started writing this and now
(distracted by T-storm) -

While BLU might want an internals talk, I'm guessing they really want at
Features + Timelines talk, and would find a 5.10 / 5.12 / 6.00 roadmap
update useful. 


Bill

 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] pizza for meeting

2008-06-09 Thread Ricker, William
Any comments on distribution of soda, since I'll be making the pickup?

Bill, typing with thumbs

- Original Message -
From: [EMAIL PROTECTED] [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Cc: boston-pm@mail.pm.org boston-pm@mail.pm.org
Sent: Mon Jun 09 10:30:12 2008
Subject: Re: [Boston.pm] pizza for meeting

They sell somewhat pricey soda, so Ron brings a bag of ice,
and essentially whatever soda's on sale
(leaning toward a particuler flavor distribution).

I suggest everyone bring their own mug :-P
-- 
Free map of local environmental resources: http://CambridgeMA.GreenMap.org
--
MOTD on Setting Orange, the 14th of Confusion, in the YOLD 3174:
Capitalism is the absurd belief that the worst of men, for the worst of 
reasons, will somehow work for the benefit of us all --John Maynard Keynes
 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm

 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] BLU Wednesday (19th)

2008-03-10 Thread Ricker, William
 While the overlap may not be great, the Boston Linux  Unix User Group
 does hold the monthly meetings on the 3rd Wednesday (the 19th for
March).

The potential overlap is not insignificant -

* Tom Metro (regular both)
* Mark Dulcey (except those terms he's busy Weds or Tues)
* Doctor MO has visited each
* myself (regular both)

And possibly others I'm forgetting (sorry!).

And the March BLU speaker is the always entertaining Christoph, on
high-end Linux Audio.
http://www.blu.org/cgi-bin/calendar/2008-mar
http://bisque.linuxsoup.com/?q=node/28
 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] BLU Wednesday (19th)

2008-03-10 Thread Ricker, William
The Boston.PM crowd would be welcome for Linux Soup Audio and Cambridge Brew 
(BLU cheese) after. 

Bill, typing with thumbs

- Original Message -
From: Martin Owens [EMAIL PROTECTED]
To: Ricker, William
Cc: Boston-pm@mail.pm.org Boston-pm@mail.pm.org
Sent: Mon Mar 10 19:16:42 2008
Subject: Re: [Boston.pm] BLU Wednesday (19th)

Would it be bad to crash the BLU event and organise the BPM at the CBM
(as usual) afterwards?

On 10/03/2008, Ricker, William [EMAIL PROTECTED] wrote:
  While the overlap may not be great, the Boston Linux  Unix User Group
   does hold the monthly meetings on the 3rd Wednesday (the 19th for
  March).

  The potential overlap is not insignificant -

  * Tom Metro (regular both)
  * Mark Dulcey (except those terms he's busy Weds or Tues)
  * Doctor MO has visited each
  * myself (regular both)

  And possibly others I'm forgetting (sorry!).

  And the March BLU speaker is the always entertaining Christoph, on
  high-end Linux Audio.
  http://www.blu.org/cgi-bin/calendar/2008-mar
  http://bisque.linuxsoup.com/?q=node/28

  ___
  Boston-pm mailing list
  Boston-pm@mail.pm.org
  http://mail.pm.org/mailman/listinfo/boston-pm


 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


[Boston.pm] Punt advised RE: Reminder: Tech Meeting, Tuesday, February 12, at MIT

2008-02-12 Thread Ricker, William
Your local Mr.Weather / Mr.Safety chimes in ...

Would be better part of valor to take a rain check until it's *only*
rain.

Driving after could be particularly hazardous for those returning North
/or West, and will be hazardous at times even here in Boston Proper /
Cambridge river front.

NWS has upgraded to WINTER STORM WARNING for All but coastal  SE MASS,
RI.
http://www.erh.noaa.gov/er/box/

Under a WARNING, responsible meetings are deferred. Get home while you
can.

   -- BILL / N1VUX



Winter Storm Warning for Central Middlesex County County (Zone MAZ005) 
http://www.erh.noaa.gov/box/displayHazardByCounty.php?locationCode=MAZ00
5|MAZ026warncountyname=Middlesexpil=BOXWSWBOX
URGENT - WINTER WEATHER MESSAGE 
NATIONAL WEATHER SERVICE TAUNTON MA 
251 PM EST TUE FEB 12 2008 
 
...A SIGNIFICANT WINTER STORM WILL IMPACT INTERIOR SOUTHERN NEW 
ENGLAND THIS EVENING THROUGH MIDDAY WEDNESDAY WITH SNOW AND THEN ICE... 

[..city county list..]
251 PM EST TUE FEB 12 2008 
 
...WINTER STORM WARNING REMAINS IN EFFECT UNTIL 4 PM EST 
WEDNESDAY... 
 
A WINTER STORM WARNING REMAINS IN EFFECT UNTIL 4 PM EST 
WEDNESDAY. 
 
THIS WINTER STORM WARNING INCLUDES ALL OF SOUTHERN NEW 
HAMPSHIRE...AS WELL AS WESTERN...CENTRAL AND MUCH OF NORTHERN 
MASSACHUSETTS EXCEPT FOR THE IMMEDIATE COAST. 
 
SNOW IS EXPECTED TO DEVELOP ACROSS WESTERN MASSACHUSETTS BETWEEN 
430 AND 6 PM. THE SNOW WILL DEVELOP ACROSS SOUTHERN NEW 
HAMPSHIRE...AS WELL AS CENTRAL AND NORTHERN MASSACHUSETTS BETWEEN 630 
PM AND 8 PM. 
 
ONCE THE SNOW BEGINS IT WILL QUICKLY BECOME HEAVY...FALLING AT 
THE RATE OF 1 INCH PER HOUR AND REDUCING VISIBILITIES TO UNDER 
ONE HALF MILE. ROADS WILL QUICKLY BECOME SNOW COVERED AND TRAVEL 
WILL BECOME QUITE HAZARDOUS BY MID TO LATE EVENING. 
 
THE SNOW WILL THEN CHANGE TO SLEET AND THEN TO FREEZING RAIN 
BETWEEN 1 AM AND 4 AM ACROSS MASSACHUSETTS...AND BETWEEN 3 AM AND 
6 AM ACROSS SOUTHERN NEW HAMPSHIRE. FREEZING RAIN IS EXPECTED TO 
BE FALLING ACROSS THIS REGION DURING THE WEDNESDAY MORNING RUSH 
HOUR...SO UNTREATED ROADWAYS ARE EXPECTED TO BE ICY AND SNOW 
COVERED. 
 
THE FREEZING RAIN SHOULD FINALLY CHANGE TO RAIN ACROSS MOST 
LOCATIONS BY LATE MORNING OR EARLY AFTERNOON ALTHOUGH A FEW OF 
THE NORMALLY COLDER SPOTS IN SOUTHERN NEW HAMPSHIRE MAY STILL BE 
AROUND FREEZING THROUGH MID AFTERNOON. HEAVY RAIN MAY RESULT IN 
SOME URBAN AND POOR DRAINAGE STREET FLOODING DURING THE 
AFTERNOON. 
 
BEFORE THE CHANGE OVER...SNOW WILL ACCUMULATE 4 TO 7 INCHES ACROSS 
THE REGION WITH THE HIGHER AMOUNTS MOST LIKELY IN SOUTHERN NEW 
HAMPSHIRE. AN ADDITIONAL ONE QUARTER INCH OF GLAZE IS POSSIBLE ON 
TOP OF THE SNOW BEFORE A CHANGE TO ALL RAIN. 
 
A WINTER STORM WARNING IS ISSUED WHEN AN AVERAGE OF 6 OR MORE 
INCHES OF SNOW IS EXPECTED IN A 12 HOUR PERIOD OR FOR 8 OR MORE 
INCHES IN A 24 HOUR PERIOD. TRAVEL WILL BE SLOW AT BEST ON WELL 
TREATED SURFACES...AND QUITE DIFFICULT ON ANY UNPLOWED OR 
UNTREATED SURFACES. 

==

Winter Weather Advisory for Southeast Middlesex County (Zone MAZ014) 
http://www.erh.noaa.gov/box/displayHazardByCounty.php?locationCode=MAZ01
4warncountyname=Middlesexpil=BOXWSWBOX
 
URGENT - WINTER WEATHER MESSAGE 
NATIONAL WEATHER SERVICE TAUNTON MA 
251 PM EST TUE FEB 12 2008 
 
...A SIGNIFICANT WINTER STORM WILL IMPACT INTERIOR SOUTHERN NEW 
ENGLAND THIS EVENING THROUGH MIDDAY WEDNESDAY WITH SNOW AND THEN ICE... 
 
[... City county list ...]
251 PM EST TUE FEB 12 2008 
 
...WINTER WEATHER ADVISORY REMAINS IN EFFECT UNTIL 9 AM EST 
WEDNESDAY... 
 
A WINTER WEATHER ADVISORY REMAINS IN EFFECT UNTIL 9 AM EST 
WEDNESDAY. 
 
THIS WINTER WEATHER ADVISORY INCLUDES COASTAL AND SOUTHEAST 
MASSACHUSETTS...AS WELL AS CONNECTICUT...AND MUCH OF RHODE 
ISLAND. 
 
SNOW IS EXPECTED TO DEVELOP ACROSS CONNECTICUT BETWEEN 430 PM AND 6 PM. 
THE SNOW WILL DEVELOP ACROSS RHODE ISLAND...COASTAL AND SOUTHEAST 
MASSACHUSETTS BETWEEN 630 AND 8 PM. 
 
ONCE THE SNOW BEGINS IT WILL QUICKLY BECOME HEAVY...FALLING AT 
THE RATE OF 1 INCH PER HOUR AND REDUCING VISIBILITIES TO UNDER 
ONE HALF MILE. ROADS WILL QUICKLY BECOME SNOW COVERED AND TRAVEL 
WILL BECOME QUITE HAZARDOUS BY MID TO LATE EVENING. 
 
THE SNOW WILL THEN CHANGE TO SLEET AND THEN TO FREEZING RAIN 
BETWEEN 11 PM AND 1 AM ACROSS CONNECTICUT AND MUCH OF RHODE 
ISLAND. ACROSS EASTERN MASSACHUSETTS...THE SNOW SHOULD CHANGE TO 
SLEET BETWEEN 1 AND 3 AM. A PERIOD OF FREEZING RAIN IS THEN 
EXPECTED JUST INLAND FROM THE COAST TOWARD MORNING. 
 
THE PRECIPITATION SHOULD HAVE CHANGED TO RAIN BY 6 OR 7 AM ALONG 
AND SOUTHEAST OF THE I-95 CORRIDOR AND IT MAY BE FALLING QUITE HEAVILY. 
HOWEVER...THERE STILL MAY BE SOME POCKETS IN THE CONNECTICUT VALLEY 
WHERE FREEZING RAIN MIGHT BE FALLING. ANY MIXED PRECIPITATION WILL 
CHANGE TO PERIODS OF HEAVY RAIN BY MID MORNING AND CONTINUE THROUGH 
THE AFTERNOON. URBAN AND POOR DRAINAGE FLOODING WILL THEN BECOME A 
BIG CONCERN. 
 
BEFORE THE CHANGE OVER TO RAIN...SNOW WILL GENERALLY ACCUMULATE 2 TO 
4 INCHES ACROSS THE REGION. 
 
A WINTER WEATHER 

Re: [Boston.pm] Reminder: Tech Meeting, Tuesday, February 12, at MIT

2008-02-12 Thread Ricker, William
 Well, I'm one of the foot-masses who takes pub. transportation, so I'm

 planning to be there.

Beg your pardon Bobbi + Ron. 

*Pedestrian conditions on sidewalks to and from the (T) can get
Hazardous as well*, 
Especially if there's direct ice (freezing rain, ZR), 
although that *may* be only further inland on latest forecast.

The Red Line *may* well continue running between Kendall / Charles-MGH  
 -( icing *has* stopped the Red Line on SaltPepper bridge over the
Charles River )-
which the Speaker (DoctorMO) and I ?and Bobbi? would use to get home by
public transit. 

[And don't mention buses. They slide wonderfully.]

With either my hiking gear or my evil 4WD fuel-guzzling monster I should
be able to there and back with moderate safety. But should I as a
father/provider take the increased risk myself? When I already have
wrist injuries and my truck started the day on a tow-truck? Should I
advise it to anyone else?  Anyone coming from INLAND portions of
Middlesex or beyond, under a WARNING, definitely not! Anyone closer,
still likely not.  

Responsible parties are cancelling evening activities
http://wbztv.com/schoolclosings
http://www.thebostonchannel.com/closings/index.html

I doubt I'll get there -- sorry Martin.

 = Bill

http://weather.gov/box 
or time-tagged official text products via unofficial EDU channel -
http://kamala.cod.edu/ma/
Winter Weather Product 251 PM EST Tuesday, February 12
http://kamala.cod.edu/ma/latest.wwus41.KBOX.html
Zone Forecast Product  334 PM EST Tuesday, February 12
http://kamala.cod.edu/ma/latest.fpus51.KBOX.html

ZONE FORECAST PRODUCT FOR SOUTHERN NEW ENGLAND 
NATIONAL WEATHER SERVICE TAUNTON MA 
334 PM EST TUE FEB 12 2008 

MAZ014-130915- 
SOUTHEAST MIDDLESEX MA- 
INCLUDING THE CITIES OF...CAMBRIDGE...LEXINGTON...NEWTON... 
WALTHAM...WOBURN 
334 PM EST TUE FEB 12 2008 

..WINTER WEATHER ADVISORY IN EFFECT UNTIL 9 AM EST WEDNESDAY 

...FLOOD WATCH IN EFFECT FROM WEDNESDAY MORNING THROUGH THURSDAY 
MORNING... 

TONIGHT...SNOW UNTIL JUST AFTER MIDNIGHT 
THEN SNOW AND RAIN 
LATE. SNOW ACCUMULATION OF 4 TO 6 INCHES. LOWS IN THE MID 20S. 
SOUTHEAST WINDS 10 TO 15 MPH. CHANCE OF PRECIPITATION NEAR 
100 PERCENT. 

**Boston** the same 
except
3 TO 5 INCHES /  5 TO 10 MPH...
 ...FLOOD WATCH IN EFFECT FROM WEDNESDAY MORNING THROUGH THURSDAY 
MORNING...


 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] Edward Tufte in Boston this March

2008-01-25 Thread Ricker, William
I think I enjoyed Tufte's seminars more in the early days, but the 4th book is 
good and I think it's worth hearing some of the same old anecdotes again. I 
don't mind getting extra copies, as I don't keep my first edition Tufte at the 
office. So I won't have a volume 4 at the office until I attend the volume 5 
tour. 
   His road crew puts on a quality event. Last time I saw him, Boston Park 
Plaza ballroom was a better fit than his prior venue of Fairmont Copley Plaza 
the book before. 
   I took my boss last time, he enjoyed it too.
If you don't have 4th book, and only have one or fewer copy of 1-3, do it. 



Bill, typing with thumbs

- Original Message -
From: [EMAIL PROTECTED] [EMAIL PROTECTED]
To: Bob Rogers [EMAIL PROTECTED]
Cc: Boston Perl Mongers boston-pm@mail.pm.org
Sent: Fri Jan 25 20:16:27 2008
Subject: Re: [Boston.pm] Edward Tufte in Boston this March

On Fri, 25 Jan 2008, Bob Rogers wrote:

Edward Tufte is coming to Boston on March 3, 4, and 5 to give his 
 famous one-day course [1].  I've never been to one myself, but I've 
 heard (including at Boston.PM meetings) that's it's really good -- and 
 the books speak for themselves.  When I showed the brochure to the 
 CEO, his eyes lit up.  So not only is our entire software development 
 team going to attend, plus maybe some of the scientists, but the CEO 
 may come too.

E

I have the first three books, and I *really* like them. (I only found 
out recently that there's a fourth one now, which I don't have yet, but 
I imagine I'll like it too once I get a copy.)

I went to the seminar he gave in Boston a few years ago (2003?), and was 
underwhelmed. I really wanted to like it. It was impressive to see the 
actual physical examples he cites in the books (text from Galileo, etc). 

But he also spent most of the time just reading the books to us, with 
kind of a gee aren't these great air.

Which they are, I'll grant, but I was hoping for a bit more than that. 

Then he spent an hour or so showing us piles of metal in his yard. Great 
glorious photos of pillars of twisted gleaming steel. Don't ask why.

If you haven't read the books, you'll get a lot out of the seminar. 

If you've read them, you'll get the re-read to you. Oh and you'll get 
another copy of the books. So there's that, too.

I'm glad I went, once, but was underwhelmed overall :-/
 



-- 
Chris Devers
DO NOT LEAVE IT IS NOT REAL
 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm

 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] topic for meeting - perl 5.10?

2008-01-01 Thread Ricker, William
Great!

I've linked the good slide decks from Advent Calendar. 
If I remember I'll bring alternate Ethernet interfaces for Ronald's laptop ... 


Bill, typing with thumbs

- Original Message -
From: [EMAIL PROTECTED] [EMAIL PROTECTED]
To: boston-pm@mail.pm.org boston-pm@mail.pm.org
Sent: Tue Jan 01 19:19:48 2008
Subject: Re: [Boston.pm] topic for meeting - perl 5.10?

On Friday 21 December 2007 12:48, Uri Guttman wrote:

 what about perl 5.10 as a topic for the next meeting?

I am rewriting my little CD ripper program (geared toward people who care 
about audio metadata more than the average guy, especially those with large 
collections of classical music), and had reached a point where I was running 
out of lazy options to implement the functionality I wanted.

Especially for track title parsing, where 5.8 regexes were not cutting it, I 
was considering options like wrapping the matching code in (ugly, 
non-generic) logic, or using Parse::RecDescent or even some flavor of Perl 6 
regexes (Perl6::Rules, kp6, etc.). With named backreferences/captures, and 
named patterns, things are suddenly becoming much easier and satisfying.

I can also see places in the code where other 5.10 features will be 
useful, like the switch statements, say or others.

So I will have some real code to show by January 8th, both for 
illustration and for critique, perhaps worth a half hour of discussion. In 
truth, with all the new regex functionality we could fill a couple of 
meetings easily. Just how much code I will have is not clear, because with 
two brand new babies at home, things are very unpredictable, and some days I 
get absolutely nothing done besides mere survival, heh. But I have already 
implemented a complete basic grammar for classical music titles that uses 
named captures, and have also run into a couple of issues that could be 
interesting to discuss.

Bernardo
 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm

 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] converting utf-8 to unicode from XML text gathered byXML::Twig

2007-12-05 Thread Ricker, William
Suggest Break into 2 problems. 

1) Check the unicode/utf faq for perl5888 or whichever as appropriate. 
(Perldoc.perl.org). 
Sound like for you use you have multibyte chars being handled as 1-byte chars 
because it was read or forced raw at one ponit. 

2) If not fixed by reading differently, to fix a string with these chars as 
you'd like. either (2a) do (1) before twig parses OR (2b) have twig apply it 
inplace to each element/text() you're extracting, and also any attributes 
you're keeping.   

Bill @ XML2007 /

Bill, typing with thumbs

- Original Message -
From: [EMAIL PROTECTED] [EMAIL PROTECTED]
To: boston-pm@mail.pm.org boston-pm@mail.pm.org
Sent: Wed Dec 05 14:21:55 2007
Subject: [Boston.pm] converting utf-8 to unicode from XML text gathered 
byXML::Twig

Hi All,
I am currently using XML::Twig to read in some XML.
This XML's text is in utf-8.
So there are smart-quotes and such in there.
I need to unicode-ify the text.
I tried using most of the methods that are part of XML::Twig, but came up
dry.
The best I could do is convert all unsupported chars to question marks.
Without any XML::Twig conversion the smart quotes come out looking
like: “ ” or ’
I tried doing a simple $val =~ s/’/'/gs;
But that didn't work either.

Does anyone have any suggestions on how I can do this conversion either
manually OR with XML::Twig methods?

Thanks.
--Alex
 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm

 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm

Re: [Boston.pm] Tech Meeting, Tuesday, October 9, at MIT

2007-10-13 Thread Ricker, William
Ronald investigated liverpole's Tk JAPHs. 
Jerrad asked for more writers for the Perl Advent calendar. 

Bill Ricker, typing with thumbs ...

- Original Message -
From: [EMAIL PROTECTED] [EMAIL PROTECTED]
To: L-boston-pm boston-pm@mail.pm.org
Sent: Sat Oct 13 18:54:51 2007
Subject: Re: [Boston.pm] Tech Meeting, Tuesday, October 9, at MIT

Ronald J Kimball wrote:
 Boston.pm will have a tech meeting on Tuesday, October 9, at MIT,
 in building E51, room 376 (directions below), starting at 7:15pm.
 
 I do not have a speaker lined up for this meeting.

I missed this meeting. Anything interesting happen?

  -Tom

-- 
Tom Metro
Venture Logic, Newton, MA, USA
Enterprise solutions through open source.
Professional Profile: http://tmetro.venturelogic.com/
 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm

 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] Subroutine definition

2007-09-12 Thread Ricker, William
 Am I reading this right?  Are you actually defending the lowest common
 denominator of language design?  The paragraph above 

Not language design but coding in an appropriate subset. 

English and Perl are both special because TIMTOWTDI. 
 
My personal toolkit at the office is a more HOPish style than things I turn 
over to Production Support, and my home scripts are looser dialect yet - just 
as my English dialect is freer with friends than with VPs or Grandmothers, IM 
looser than email than Memo. 
Nor do I use the full range of literary English vocabulary in multiethnic 
business context

Inside a do not touch magic module, map away. 
In code for yourself or for Perl Monks, to show the power of the language, map 
away. 
In code to be maintained by low cost corporate maintenance programmers, the the 
readable subset is responsible to your customer. 

A corporate style guide based on Damian's PBP may well restrict 'map' usage to 
specific well understood cases - or may assume all new hires are issued a copy 
of Dominus's HOP. But it should choose, and be consistently observed. 


Bill Ricker, typing with thumbs ...
 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] refactoring tools and IDEs

2007-08-16 Thread Ricker, William
Asking everyone who's used any perl ide to share could be a stone-soup meeting 
sometime. 

A good programmer's editor that can colorize syntax and autoindent and hop to 
matching or enclosing braces is half the battle. Most of us who don't use 
ides have that. 

A graphical debugger front end *is* nice. I used O'Reilly's original one (pre 
Komodo), it really helped on certain issues. 
(It's a gentle introduction to the perldb too, same as gdb is to dbx - but 
likewise, you have to eventually fully grok the line oriented db to get full 
benefit from the graphical db)).

But so many of my scripts wind up being run via SSH that I don't really miss it 
when I could *actually* use it. 


Bill Ricker, typing with thumbs ...

- Original Message -
From: [EMAIL PROTECTED] [EMAIL PROTECTED]
To: L-boston-pm boston-pm@mail.pm.org
Sent: Thu Aug 16 01:00:52 2007
Subject: [Boston.pm] refactoring tools and IDEs

http://www.sdtimes.com/fullcolumn/column-20070815-01.html

   ...Ruby’s growing up. Although not fully mature compared with
   languages such as C# and Java, there now exist some solid Ruby IDEs.
   ...
   Obviously, I like Ruby. I recommend it without hesitation for
   administrative tasks and small projects. However, as with any
   relationship, there’s a difference between casual and committed.
   This was my first project approaching what I consider real
   application size - rapid development of several thousand lines of
   code in dozens of classes and the inevitable contortions of logic
   and data that define programming in the real world.
   ...
   In general, the lack of refactoring support in the IDE was an acute
   pain point compared with developing in, say, C# with ReSharper.


While we Perl developers tend to scoff at those who use IDEs, I often
wonder if we're missing out on a productivity boost as a consequence of
using a non-mainstream language. (Of course there are IDEs for Perl.
Several. Though you rarely hear them recommended by Perl developers. And
I'm left wondering whether they really offer a complete enough
implementation of modern conveniences to provide the same kinds of
productivity boosts developers of other languages get from their IDEs.)

On the other hand, those of us who have successfully worked on numerous
10K+ line applications in Perl with nothing but a text editor (and of
course UNIX command line tools, including Perl itself, which come in
handy for certain refactoring operations) might consider the authors
stance to be a tad wimpy.

  -Tom

-- 
Tom Metro
Venture Logic, Newton, MA, USA
Enterprise solutions through open source.
Professional Profile: http://tmetro.venturelogic.com/
 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm

 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm

Re: [Boston.pm] Social Meeting in August

2007-08-16 Thread Ricker, William
Thank you for doing your civic duty. 

How well does john Harvards handle groups?


--Original Message--
From: Jerrad Pierce
To: boston-pm@mail.pm.org
Sent: Aug 16, 2007 1:17 PM
Subject: Re: [Boston.pm] Social Meeting in August

If CBC I recommend the patio.

If BBW why Fenway? Canal Street is a stone's throw from North Station,
and pretty nice from what I saw when I unsuccessfully tried to make
patio reservations awhile back.

Another brew pub in the area is John Harvard's in Harvard Square.
It's a but yuppity, but has a geek-friendly basement venue :-P

And a list: http://www.realbeer.com/destinations/boston/breweries.php

-Just-back-from-jury-duty Jerrad
-- 
Free map of local environmental resources: http://CambridgeMA.GreenMap.org
--
MOTD on Pungenday, the 9th of Bureaucracy, in the YOLD 3173:
'scuse me while I tend to how I feel...
 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Bill Ricker, typing with thumbs ...
 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] refactoring tools and IDEs

2007-08-16 Thread Ricker, William
Yeah, ActiveStates' early debugger and AS Perl were bundled with the OReilly 
Perl windows boxed set on a CDr. 

--Original Message--
From: Andy Oram
To: Tom Metro
Cc: boston-pm@mail.pm.org
Sent: Aug 16, 2007 2:20 PM
Subject: Re: [Boston.pm] refactoring tools and IDEs

Regarding this detail:

 A graphical debugger front end *is* nice. I used O'Reilly's original
 one (pre Komodo), it really helped on certain issues. 

O'Reilly or do you mean ActiveState?

I believe ActiveState developed it early on when O'Reilly was one of the 
company's funders. Easy to get mixed up.

Andy
 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Bill Ricker, typing with thumbs ...
 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] HTML parsing

2007-03-21 Thread Ricker, William
 It's been a few years since I looked at Xpath, 
 but I seem to recall that 
 it was originally inspired by SQL. 
 If that's correct, that doesn't 
 strike me as being very RegEx-like.

I think you're thinking of XQuery.  XPath is more RE-li[tk]e.

 But if I want to find the text inside B tags that happens to occur 
 before a comment tag containing a specific string, it may not be 
 possible to encode that in one query. But I haven't looked into it
yet...

I'm not sure how XML::Twig's XPath-like patterns or real XPath feel
about comments. 
(They might not see them at all, since they're non-semantic.)

 With screen scraping, you're just as likely to get semantic hints from

 the ordering of tags as you are from the ancestry. 

True enough, although that's anathema to XML. For such bad HTML, you may
have to resort to Perl Cookbook Recipe 20.18 but perhaps with
HTML::TokeParser::Simple (instead of HTML::TokeParser).

Be sure to read 
http://search.cpan.org/~ovid/HTML-TokeParser-Simple-3.15/lib/HTML/TokePa
rser/Simple.pm
under the is_comment() function. (Uses HTML::Parser or HTML::PullParser
under the hood, see Caveat section. You can use HTML::PullParser
directly to define your own token classes.)

Alternatively, Regexp::Common is frequently useful for parsing hard
things, but it only has $RE{comment}{html} so far, alas, the promised
Regexp::Common qw/html_tags/; has not been done yet. 

 And as with 
 traditional regular expression techniques for extracting data, you
often 
 want to find the last X that occurs before a Y, or other ordering 
 relationships, ignoring other aspects of structure in the document.

That used to be true. In the modern DIVSPANCSS world, you're
starting to get semantic markup in the CSS class/id attributes of the
DIV SPAN or other tags ... Which XML::Twig can match.

 language, that contains directives for not only indicating
parent-child 
 relationships, but also can also operate on the document as simply a 
 stream of tags, 

That may be beyond XPath. By design. 

-- Bill
Aka N1VUX etc
 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


[Boston.pm] XML::Twig does HTML RE: HTML parsing

2007-03-20 Thread Ricker, William
Tom,

 It seems like what is missing is a module that provides a 
 regular-expression style language for matching against tags. It would 
 make screen scraping tasks almost trivial. Anyone know of a module
like 
 this?
 What's your favorite HTML parsing module?

XML::Twig is the grep for XML (and bundles with xml_grep(1)).

With it's new parse_html() option, XML::Twig will use Tree::Builder for
you to convert HTML to it's internal rep of XML, protecting you from
Tree::Builder's interface.  You can make reg-ex-like  Xpath-like queries
on the HTML document with it and let it's pattern engine walk the tree
looking for twigs that match your query.  It supports an Xpath-like
query language. 

http://search.cpan.org/search?query=XML-Twigmode=dist
Which references 
The XML::Twig page is at http://www.xmltwig.com/xmltwig/ It includes
the development version of the module, a slightly better version of the
documentation, examples, a tutorial and a: Processing XML efficiently
with Perl and XML::Twig:
http://www.xmltwig.com/xmltwig/tutorial/index.html 

Which has useful summary http://www.xmltwig.com/xmltwig/quick_ref.html
[but read tutorial first].

It can work in either a stream/call-back-handler mode or a
parse-then-search mode, and can work as a XML-aware SED (with inplace
option!), can preserver or change encoding, etc.  A very perl-friendly
way to deal with XML.

CAVEAT -- I haven't tried this new html-happy mode yet; I've wished for
it in the past, when XML::twig rejected HTML that wasn't highly XHTML
well-formed. Now with this new option, it probably accepts anything H:TB
does and pretends it read a conformant XHTML document. I've got to try
this too.

 -- Bill / n1vux
Not speaking for the firm




 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] OLE, excel, and perl

2006-10-02 Thread Ricker, William
 A file named VOPU.xls already exists in this location. 
   Do you want to replace it?
 Yes/No/Cancel.

 As for the why part, I couldn't say.  

SAMBA is straddling a cultural divide. Oddities like this are to be
expected. 

When it's open from the Unix drive, Excel apparently can't tell that
it's the file it has open.  Since WINDOWS routines have canonicalizers
that don't know from Unix, this isn't terribly surprising.

 Is the case correct?  

Given Unix is case-sensitive and Windows isn't, it may be IMPOSSIBLE to
have case correct !  Does it work if the file is vopu.xls? Or VOPU.XLS ?
If originally created/named from Windows? From Unix?


You could SAVE AS $filename=~ s/(\d*)[.]/++$1.'.'/e; to avoid this sort
of problem.

If you used the modules Andy mentioned, you could run the script on the
Unix side.


Bill
 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] 64 bit perl boost?

2006-06-21 Thread Ricker, William
At work, the 64bit Power4/Power5 IBM AIX systems come with 32-bit Perl.
After reading the README, I wasn't interested in building everything in
64-bit, so when I build a Perl to build DBI with, I build it with
similar settings to the vendor's (unsupported, contributed) 32-bit
Perl. If one of my users needs more than 4GB address space in a DBI
script, I'm going to suggest a change of algorithm might be in order!

 Does your app spend a significant amount of its time splitting huge  
 numbers into 32-bit chunks so it can cope with them?

This would likely be indicated by using Math::Big[Something] packages.

Or, do you have a lot of FLOATING POINT math, such that you are or
should be using PDL, the Perl Data Language? Do you need the longer
floating point registers, assuming your platform's 64-bit mode has
longer such?

On my home machine -- nothing to do with work -- I have 64bit Perl since
that's all that's available with Debian Alpha. I'm going to try some PDL
on it.

LIMITS -- As near as Google can tell, the limit on 32bit is 2GB for
filesystem (signed numbers! Fie!), 4GB for process memory (unsigned,
yeah!). 
http://www.google.com/search?hl=enlr=q=Perl+32-bit+2-GB+OR+4-GB+x86
(Perl6 may have a 2GB limit on the bytecode file in 32bit, but program
ought to be LESS than half your address space or you're in trouble
enough already!)


Bill Ricker
Member, Boston.PM
NOT speaking for the Firm.
 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] version of perl that can use scalar filehandles

2006-05-23 Thread Ricker, William
 more importantly, what is the syntax for passing a filehandle 
 into a routine if it is FILEHANDLE instead of $FILEHANDLE?

   open(FILEHANDLE, $filename ) or die trying $!;


 open(my $fh, filename);

Autovivification of unitialized scalar filehandles was added in 5.6.0
   http://search.cpan.org/~nwclark/perl-5.8.8/pod/perl56delta.pod

QUOTE
File and directory handles can be autovivified

Similar to how constructs such as $x-[0] autovivify a reference, handle
constructors (open(), opendir(), pipe(), socketpair(), sysopen(),
socket(), and accept()) now autovivify a file or directory handle if the
handle passed to them is an uninitialized scalar variable. This allows
the constructs such as open(my $fh, ...) and open(local $fh,...) to be
used to create filehandles that will conveniently be closed
automatically when the scope ends, provided there are no other
references to them. This largely eliminates the need for typeglobs when
opening filehandles that must be passed around, as in the following
example:

  sub myopen {
open my $fh, @_
 or die Can't open '@_': $!;
return $fh;
}

{
my $f = myopen(/etc/motd);
print $f;
# $f implicitly closed here
} 

/QUOTE

5.6.0 also added 3-arg open($fh, $mode, $filename) for better safety
against injection etc.

Which means 5.5.x was the version that couldn't.


-=- Bill

Not speaking for the Firm.
 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] Running shell commands with specified user permissions

2006-01-20 Thread Ricker, William
 I believe you'd want $ , the effective uid.  

Probably.  See
 $ perldoc perlvar 
or  http://perldoc.perl.org/perlvar.html
under $REAL_USER_ID and $EFFECTIVE_USER_ID, but also see $REAL_GROUP_ID
$EFFECTIVE_GROUP_ID, you may need to set that too to get the desired
effect.See also POSIX::setuid()
 http://perldoc.perl.org/POSIX.html#FUNCTIONS

If the script is running as Root, particularly but not limited to
Setuid'd, be sure to set the -T taint flag and un-taint all your
external arguments.
  perldoc perlrun
  perldoc perlsec
 http://perldoc.perl.org/search.html?q=taint

(If not running as root, you can't change user anyway.)

Bill
 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] Class::Agreement slides, etc.

2005-12-15 Thread Ricker, William
 Thank you all for your valuable suggestions.

Speaking of suggestions, the Data::COW the Copy-on-Write
principle-of-least-work cloning utility that Jarrad mentioned is today's
Advent Calendar gift.  (15, the window just above the Llama's tail.)

-- Bill / N1vux

 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] Class::Agreement slides, etc.

2005-12-14 Thread Ricker, William
Ian,

This is a bittersweet review for this old hand at reasoning over program
assertions.  There's more to the PIP-condition assertions than Contract
programming. Similar annotations can be used for program proof of
correctness.

I'm probably one of the few programmers you'll meet that's actually more
than once proven a program correct in anger at $DayJob.  (There are
others, I'm sure, but most are classified, so if you meet them they
can't tell the war story -- but one of mine was live on the WWW in our
MedLine search's ad-server function:
http://web.archive.org/web/19970126214107/www.avicenna.com/tour/etour4.h
tm ) I was trained on Ottawa Euclid for mythical A2 level security, with
software proof assistance, but my in anger usages were in C, using
comments and a #2 pencil for proof.  Once a decade I find a loop that
will be too nasty to debug by usual techniques and really needs to be
coded right the first time ... so I do a Dijkstra/Hoare loop invariant
analysis to compute the post-condition from the pre-condition and the
invariant behavior.

Note that my practical use is the reasoning *over* the assertions, not
the checking of them at run-time. This does not need to involve class
invariants or function/method precondition/postcondition, but rather the
loop-invariant/pre/post.   As far as I can tell, your Class::Agreement
while supporting functional agreements in addition to OO does not
support loop pre/inv/post unless I switch to recursion?

When doing the real code-to-spec proof as I've done, you don't need to
run the assertions in production forever. The assertions should be
checked in test to verify that the code really does agree with the
assertions, but the reasoning over the assertions is the real validation
of the algorithm. When the invariant of interest is on each pass of the
inner loop, you really do want it OFF in production.

An object invariant that I've seen in vendor-supplied framework code
(and we saw it assert, too) is the equivalent of 
  invariant { is_sorted( $self-data ) }
which is a little expensive (*merely* O(N)) to call twice around each
method call and prohibitive (O(N**2)) on recursive method calls.  Part
of the behavior of operations maintaining a linked list or balanced tree
is that the list/tree stays sorted if it starts sorted.  If there isn't
a way to shut off contract enforcement efficiently, can it really be
applied to interesting ordered datastructures of the sort that really
need assertions?

As I mentioned in reply to a question/comment last night, examples like
the postcondition for a factoring routine ( product(@$result)==$input)
and the above invariant on an ordered list/tree, might help show that
postconditions aren't just re-doing the implementation in general, but
checking the visible behavior of it without doing the full
implementation (when interesting enough that there is a difference).

Cheers,

-- Bill / N1VUX
 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] Pretty Graphs with Perl

2005-12-06 Thread Ricker, William
  Does anyone who has/does use GD::Graph know if there's an easy way to

 embed the output graphs into HTML.
 Basically I'd like to be able to print a bunch of HTML, then the
graph, 
 then some more HTML.

[WDR]  The basic techniques are to either
 
(a) img href=../graphs/123456789.png
Generate the graph to a 2nd file named with a random number (for
security) or a serial number (if no security needed)

my $thisgraph; # uniq name
$this_graph = sprintf %s/%d.png, $graphdir, rand($bignumber)
while -r $thisgraph;
print qq{img href=$this_graph size=$normal_size};
put_to_file($gd-png(), $this_graph); 
 
where put_to_file is something like (from GD::Image png method
notes)
 
 sub put_to_file {
 my ($data, $fn)[EMAIL PROTECTED];
my $fh;
 open $fh,  $fh or die;
 binmode $fh;
 print $fh $data or die;
 close $fh or die;
  }
   
(b) img
href=/scripts/imagemaker?x=17y=42title=%22Foo%20Bar%22xname=Xyname=
Y
Put the code that decides what to do from the Request in a module, and
call it from both the CGI or action module that generates the HTML page
(which generates the img link) and the CGI or action module that
generates the dynamic graphic (in response to the img link).  Some
amount of setup work (varies with app) would have to be redone or saved
in DB or some other place (with unique names!), but at least the code is
reused in a module.  In this case, you put all the request parameters
that the graph module needs on the IMG URI, or copy all the request
parms to be safe if you don't know; since it's a module, it should know.
One module, one script could do both Page and Image requests, with a arg
difference (or HTTP context wanting text/html or image/*?) determining
which to generate.
 
A has efficiency advantages in that any shared setup work for the page
and the graphic is done once.
B allows someone to statically deep link or bookmark an image.
B has efficiency advantages if page is likely to be fetched by Lynx or
WWW::Mechanize or spiders who will never fetch the image.
B has efficiency advantages if the pages will be fetched through Akamai
or client proxies, and multiple users may request the same image -- so
the image will be cached outside your server -- dont' recreate it if you
don't have to; this doesn't apply if everyone is local or every request
is unique.
 
etc ...
 
Bill n1vux
 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


[Boston.pm] threads RE: Combinatorics (in threads)

2005-11-23 Thread Ricker, William
 in separate threads, 

Threads in Perl are sufficiently treacherous I don't use them.
See Dan's comments on the last thread thread.

bill
 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] Permutation with Replacement considered harmful RE: Combinatorics

2005-11-23 Thread Ricker, William
 I did not know you were a mathematician =)

Yup, trained in theory. This computer stuff is just applied math,
With not as much math as I'd like most days, but the pay is better. :-)

(I wasn't even the only Boston.PM member at the NES MAA section meeting
last weekend.
http://www.southernct.edu/organizations/nesmaa/fall2005meeting.html )

 On The terminology point you mentioned, I must squarely place the
blame
 of the choice of words on the way Discrete Math is taught these days.
 Standard texts refer to Permutation, Combination, Permutation with
 Repetition, and Combination with Repetition. 

Ahh. I guess Google Books hasn't gotten to those texts yet. I didn't
take a close look at those texts the last time the Math conference had
textbook vendors. I hope Don Knuth's Concrete Math book hasn't taken
that linguistic shortcut ... but perhaps that's the brave bold future.
*sigh*

 If you have any hope of rectifying the issue, I recommend you look at
 the relevant wikipedia page and submit corrections.

The module author has invited me to send him a diff file to update the
pod. I'll probably do that from home on my own time.  I submitted
comment to MathWorld comment page (it's not a Wiki per se, it's managed
content).

 at hand - the module. In my explorations of it, I have found that it
 leves a bit to be desired in terms of performance -- generating the
65k
 striungs possible in the (a b c d) alphabeth takes 10 minutes,

That's not much better than my naive HUMOR generate-filter!

 I do not want to add frequency information, every symbol is equally
 likely for me, 

In which case the module's implementation has a *lot* of overhead you
don't need.

If the module generates the whole set and that gives it out on the
next options, it's a poor iterator implementation.

 and I would like to code up this in a way that (a) is
 thread friendly, 

Issues there ... see below

 and (b), more importantly, is memory efficient, which
 the module is not. 

Since you say this, you do need a LIST of all the options, so a pure
iterator would do?
  
The optimal solution is probably in MJD's Higher Order Perl, available
at Barnes  Noble, Quantum, Borders -- and (is or will be?) online for
free-as-in-beer. (And cut-and-paste!) http://hop.perl.plover.com/
(Just don't buy it from Amazon, that would be an insult to the author
... see his website to understand.)

Be careful on making the iterator thread-safe ... but an iterator should
be easier to make thread safe than a memory hog, as long as you do the
critical section right.  http://perldoc.perl.org/perlthrtut.html Alas,
MJD's book only uses the word threaded once, in a non-technical sense.

 I need to figure out a way to do it w/o using great amounts of ram,

HOP. You want an iterator.  He has iterators for general functions and
he has functions for permutations, probably has iterators for
permutations.
http://hop.perl.plover.com/grep.cgi?q=permutation
http://hop.perl.plover.com/Examples/ Scroll or search for permut

 what would a Combination with
 Repetition be called 

MathWorld.Wolfram.com Ball Picking page says it's MultiChoose. So I
guess that's it's ugly name.

Happy Thanksgiving,

Bill
aka n1vux on use.perl.org ...
 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


[Boston.pm] Permutation with Replacement considered harmful RE: Combinatorics

2005-11-22 Thread Ricker, William
Federico,

Please pardon my pedantry here. No flames are being directed at you ... 

I think you've found the tool you said you needed, but there's a
terminology problem in the module and the discussion thread that this
old mathematician dearly wants to babble on about. Anyone who wants to
avoid the pedantry can scan to the next /PEDANTRY tag to pick up the
tale.  

There's also one serious error in the POD examples for a method other
than the you mentioned that is worth checking, see WARNING at the end,
just before the HUMOR.

PEDANTRY Level=1

I'm glad to see Math::Combinatorics POD links the MathWorld
[http://mathworld.wolfram.com/] site for definitions, but I'm not
satisfied with the module's symbology or terminology.
[http://search.cpan.org/~allenday/Math-Combinatorics-0.08/lib/Math/Combi
natorics.pm]
The best point of departure is
http://mathworld.wolfram.com/BallPicking.html .

 As usual, I managed to mix things up. What iI am looking for are
 *Permutations* (_with_ repetition, that part I managed to write
right).

That certainly got your meaning across. However, calling what you want a
Permutation with replacement or Permutation with repetition is a
regrettable neologism, although understandable from the examples you're
looking at. This neologism was apparently inserted into a key reference
work in the mid 1990's and has been slowly spreading since then.  It
does NOT appear on the generally excellent Wolfram site cited above.
Where the author of the module found the nPRk symbol (and not the
P^R(n,k) alternative) in analogy to nPk I don't know, apparently that
too is in vogue in applied maths somewhere *shudder*, but that did not
come from Mathworld.Wolfram.com.  I hope it's not too late to stamp it
out.  

The proper name for this in classic probability was Ordered Sampling
from an Urn with Replacement; in modern linguistic combinatorics, it's
more simply a String, as you've found.  

BTW, Replacement is a better word than Repetition, since it is
allowed (randomly) to NOT repeat symbols from the alphabet, if the
string size is shorter than the size of the alphabet. (I'm startled that
MathWorld uses Repetition on their Ball Picking page -- I'm posting
that as a comment on their page!)

PEDANTRY Level=2

A Permutation is an order-sensitive sampling, *without* replacement,
typically to exhaustion of the set, of a set (unique members of equal
probability). [http://mathworld.wolfram.com/Permutation.html]  The
number of such Pn = n!, the factorial of n. 

Thus, a true permutation has the same length as the set or bag it's
taken from; has multiples only if the urn, set or bag does (in which
case the urn is modeled as a bag but not a set). 

nPk which is normally and better read N pick K, not n Permute K, is
the non-exhausting variant of permutation, giving a prefix of a
permutation. nPk= n!/(n-k)! . In classical probability, is ordered
sampling of uniquely labeled balls from the Urn without replacement. One
can also do ordered non-replacement sampling of 6 red and 4 white balls,
but that's not called permutation.

A Combination is an order-INsensitve sampling without replacement that
doesn't exhaust the set. (If it exhausts it, since it's not order
sensitive, it's boring ... 100% of the time, it's the same as you
started with.) [http://mathworld.wolfram.com/Combination.html]

I suppose I should be happy Math::Cominatorics pod only uses the nPRk
symbol that some may recognize, and doesn't call it Permutation with
Repetition or Replacement in the Pod. But since it returns instances of
the permutation set, not the count of the permutation set, the use of
the nPRk (and !n and nPk etc) symbols seem out of place to me anyway.

Having optional Frequency available for Permutation and Combination
voids the relevance of the nPk=n!/(n-k)! symbols in the POD.

/PEDANTRY

 Math::Combinatorics does provide such method, it is called strings()

Yes, it seems that a String is what a modern combinatorist speaking
properly would call what you want.
[http://mathworld.wolfram.com/String.html] 
In particularly, you said Character Set, which suggests you *might* want
not only repetition but weighting of some members over others.
Classically, that would be a feature of Strings, but only on extended
permutations and combinations. 

Since the M:C String has frequency, a old-school statistician might call
it a ordered sample with replacement from a mixed urn of several
varieties.

PEDANTRY LEVEL=2
An Alphabet with weights on the symbols, the weights being either
Integer or Rational, is totally equivalent to sampling with replacement
from a bag (or Urn), with the multiplicities being integers (to which
rationals can be converted using 5th grade LCD). Classical Permutations
and classical Combinations can be extended to handle multiplicities, so
for M:C to speak of Permutations with optional frequencies is not
unreasonable.  A string from a weighted alphabet is no more general than
ordered sampling from a bag, unless irrational 

Re: [Boston.pm] Fwd: parrot now available as a Debian package

2005-11-18 Thread Ricker, William
  * [55]parrot -- Virtual machine to execute bytecode for interpreted
languages.

Cool!  I'd missed that line.  Maybe I should download it and test it on
DEC-Alpha, there probably isn't a tester there yet ... :-)

Bill
 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] damian topic

2005-10-28 Thread Ricker, William
  MW Memoize::ITU3X, Manifest::Constants, and Time::Space::Continuum

URI i don't WANT any of those on cpan! :)

I can see plausible uses for Memoize::ITU3X :-).

Manifest::Constants could actually be useful in a bondage-and-discipline
style corporate, so I'm a little surprised that one hasn't been
released. If I were building a business on Perl logic, like an eBay, I
might want this module.

  MW he also mentioned Lingua::LinkParser, the one that created
  MW sentence diagrams, which is on CPAN

URI i recall damian said that he didn't write that one 
URI but used it for his parser classes

It drags in a lot of meta-data. Quite a big project.  I need to play
with it sometime ...

Bill
 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


[Boston.pm] XML::Twig RE: XML::XPath

2005-10-27 Thread Ricker, William
 How do I pull out multiple KEYWORDs from this XML file using this
style
 code?
  [Example with XML::XPath omitted]

I prefer XML::Twig's variation of XPaths, which allow Perl regex
matching too.
 http://search.cpan.org/~mirod/XML-Twig-3.22/Twig.pm
 http://xmltwig.com/xmltwig/

I used it yesterday to solve a problem that XSL and XPath query couldn't
do from Java.

Bill
--
Not speaking for the Firm.
 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] damian topic

2005-10-25 Thread Ricker, William
Damian voted for Small Miracles, so I think it's 15:2:1.

 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] damian topic

2005-10-25 Thread Ricker, William
 Could someone who has heard this talk before elaborate on what it is 
 really about?

'Uri' may be the only value for 
  grep {$Heard_by{SmallMiracles}{$_}} @[EMAIL PROTECTED]
as it's only been done at YAPC::NA::2003 and a couple of *.PM's that are
probably further away.

As with all non-Perl6 DamianTalks, it will be amazing perl tricks of
some sort. Unclear if it will have less of a theme or less of a strange
theme than the others.

If Uri doesn't answer, I'll ask Damian at Lunch for a better tease ...

Bill
Sitting in back of Damian Class
 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] damian topic

2005-10-25 Thread Ricker, William
 Could someone who has heard this talk before elaborate on what it is 
 really about?

Thanks John for the Toronto review.

GOOGLE IS YOUR FRIEND.

For those who haven't visited http://damian.conway.org/, the official
description is

  In 2003 Damian arrived at the YAPC::NA conference only to be 
  told that he had to give both keynotes, rather than just the 
  one he had prepared. 
  Oh, and we need you to present the extra one this time tomorrow. 
  Ever wondered what you'd get if you locked Damian in a hotel room 
  for 24 hours with nothing but a perl interpreter, a deadline, 
  and a dozen PowerBars? 
  This talk reveals the ten terrifying answers. 

Tim Maher plugged SPUG edition (first PM rendition) as - 
  We'll be privileged to be the 2nd group on the planet to hear
Damian's
   latest blockbuster talk, in the Quantum Superpositions, Life, the
   Universe, and Everything, and Time::Space::Continuum series. 
   As usual, this will be a meeting you won't want to miss!

Toronto glossed this talk as 
  'a characteristic Damian crazy talk'
 and
 This talk is one of Damian's special talks 
   -- hyperkinetic and humorous 
   while at the same time very technical and educational. 

Buffalo.PM called it (in Toronto)
  the (semi) insane talk 
  to distinguish it from the (semi) serious talk on Perl 6.

A KW.PM member reviewed the NY.pm showing of Small Miracles as

 I was able to catch Damian's Small Miracles talk on Tuesday 
  in Manhattan(thanks to NY.PM). Its quite interesesting and 
  definitely very entertaining. It gives a good explaination 
  about what Junctions are among other things.

  It essentially covers 9-10 modules that he has written at some 
  point or the other. No overlap between his two YAPC talks 
  (other than the YAPC::Australia thing which is just a filler.)


I hear from Merlyn that it includes IO::Prompt and progress bars
(probably Smart::Comments).

-- Bill
Sitting in the back of Damian's REGEX class...
 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] damian talk?

2005-10-20 Thread Ricker, William
Uri Said on-list,

URI now that we have the social meeting scheduled, we do need to pick
the
URI date (and get a larger room) for damian this coming week.
URI my guess is Tuesday or Wednesday would be best and I would prefer
wed.

Damian said off-list, 

DC I'm available Tuesday, Wednesday, or Thursday evening 
DC (early start please).

I'm CCing Damian so he can be in the loop here ...


William Ricker 
Principal Consultant (swe/dev),  Architecture  Technology 
Fidelity Investments / FPCMS / Systems 
* 617-563-0648 
* M/S  Z1E 
* [EMAIL PROTECTED] 
* 1141547 Skytel 
 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] brian d foy is in the neighborhood

2005-10-17 Thread Ricker, William
 Oops.  Misread on my part.  

Not entirely, John aka jmm said he was in H-ton in the same thread at
same Co, but different site. Like us, they're a   network in several
senses ;-)

 Metro-west all blends together.

This is a known phenomenon among those dwelling inside 128, along with
strange asymmetric metrics of space-time.

While those outside 495 wonder why the statehouse forgets about them
entirely.

 The somewhere out there or the somewhere in town question 
 still holds.

How far he wants to travel would seem to be a question for brian to
answer, not for us.

Bill
 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] DBI connection to an Oracle db

2005-09-16 Thread Ricker, William
  Do we need this installed?

 Probably.  I don't think you can even build DBD::Oracle without having
the
 Oracle client libraries on the machine.

Indeed. 

See Tim Bunce's recommendations on building DBI and DBD::*, or the DBI
bundle README file. Tim recommends building Perl from sources, then DBI
and DBD::* in sequence to ensure that things link just so.

http://search.cpan.org/src/TIMB/DBI-1.46/README
http://dbi.perl.org/

Bill
 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] Combining the nodes reachable in n steps from a web page into one printable file

2005-09-15 Thread Ricker, William
I didn't notice or use a bundle.  CPANPLUS will handle dependencies they
say, but I just kept grabbing modules until it shut up.

# 1. What might cause IO::Socket::INET-new to fail?
# I *am* directly connected to the Internet, so the first warning is
probably caused by a proxy problem. 

No, you are not directly connected. ( Try a traceroute to find out just
how indirect you are ;-)
 
Assuming this is on the FMN internal network, you are on a private NAT'd
subnet whose firewall/gateways require proxy connection for port80
traffic.  So yes, you do need to set the proxies :

 FTP_PROXY=...
 HTTP_PROXY=...

and no, those will not make the Makefile think you're directly
connected.  Those are used by LWP::, for HTTP: and FTP: schemes, but not
by raw IO::Socket::INET, which tested if you were DIRECTLY connected.
The LPW Proxy scheme probably uses IO::Socket::INET to connect to the
proxy.

If you have those proxies set, you can probably let the Makefile.PL
create those tests anyway.


-- Bill


 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] other campus conference pages

2005-08-29 Thread Ricker, William
 here are some other campuses which rent out for conferences.

Emphasis on *rent*.  I'll agree it's a good idea to check in with each
of them. If we can get internal or external sponsorships early, that
*rental* might not be a budget problem. However, I think a little
out-of-the-box brainstorming is in order to identify sites that wouldn't
start with a steep slice-of-the-action conference rental plan. Let's
think CHEAP. Who would have the necessary infrastructure yet let us use
their space for cost of the janitor and security overtime (or less)?

The MIT UserGroup program that we just signed up with for regular
monthly meeting rooms has the right price structure -- can we leverage
that into a 3-day?  In recent years, MIT has had favorable (not quite
free) room rates for the Saturday Seminars for GBC-ACM, but they stopped
using MIT for catering. 

If the Computer Museum were still in town, I'd try to arrange something
there, but they're not, and I don't have the contacts at MoS that I had
had at TCM/B, alas. MoS hosts meetings for free if it's in there
interest, but I haven't figured out how to spin this to them. Ditto the
Clay Center.

One place that might have a better negotiating stance than the other
schools is UMass Boston, since they're public. I know the GBC-ACM did
its seminars there for a while, so they rent out reasonably, if you have
a faculty sponsor (advisor, not $$).  Anyone know anyone at UMass
Boston?  

U.Lowell, Framingham State and Salem State are also Public and have
hosted meetings for other groups affordably, but they're a bit further
out of the city.


Bill
 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] yapc::boston?

2005-08-25 Thread Ricker, William
Uri,

 while back, sean put some effort into getting BU for yapc but that got
 shelved. 

A worthy effort, for which we all applauded Sean at the time, and laud
him now again.  

One would expect our high density of schools to make it easy here.  

However,  at least some of the larger local schools expect to make big
$$$ by hosting summer academic conferences they sponsor -- they expect
attendees to be spending grant money.   That's not the case for
YAPC::NA, obviously.  So we either need to spin very carefully at those
schools to get a true sponsorship, or have a different sort of in at a
different sort of school.  

Some local academic conferences that I attend are cheap like YAPC::NA
-- complete with dorm room with assigned roommates if desired for really
cheap -- but I don't recall their being in Boston proper in recorded
history ... Framingham, Providence, Worcester, or further. And they were
all sponsored by a Department Chairman (or other tenured faculty
member), because it was an honor to host the regional meeting of a
relevant professional society.  

Are there Tenured Computer Science Professors (or MIS Professors) on
this list? Someone who can sell it as a Department Project? 

[Sean might be able to sell it if there was a good strong BIO-PERL
track, but I'd expect to need a stronger lever to get cheap or free
at *BU* than even Sean's Department Chair. Cheap is not BU style.]

The contacts I have aren't very current any more ...

 we  have a large active pm group so i think we could pull off yapc 

Agreed, we've got several folks with some conference management
experience, and I might be able to recruit some ringers who just like
running conferences :-).  I'm certainly interested in some degree of
involvement in this.
Not sure if I'd get official schedule slack to get as involved as I
might like, though, but worth a try.

 if we
 could get a decent site (fsdo decent). 

Please define Decent. 

Low total cost of housing, transport,  registration seems to be the
major driver for YAPC::NA ?  Uri, please confirm.

Also, What is the expected target total out of pocket expense for a
Dubuque.PM member attending YAPC::NA ?


 i think boston would make a great place for yapc. 

Agreed.  It would let me go, since I have no travel budget for my
mandatory training ...

-- Bill
 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] CGI::Prototype

2005-08-15 Thread Ricker, William
 as I recall, it still lacks things 
 like sessions or authentication.

Not sure about that.  Randal evolved it for a shopping-cart type app, so
I would think it has something like that.

 More importantly, does anyone get Randal's CGI::Prototype?

See http://www.stonehenge.com/merlyn/LinuxMag/col70.html and 71 and 72
for 3-part worked example(s) [Linux Magazine May-July, 2005]

There's also
http://sourceforge.net/mailarchive/forum.php?forum=cgi-prototype-users

 Usually Randal's recommendations or modules have a readily apparent 
 elegance to them, 

Indeed.  The elegance here comes from the use of Class::Prototyped,
which is the inspiration. 
http://search.cpan.org/~teverett/Class-Prototyped-1.10/lib/Class/Prototy
ped.pm

 brings relative to the added complexity it introduces.

CGI::Prototype offers a _different_ way of factoring out the you always
had to write this glue code code.  Catalyst uses the Perl Attributes
annotations to factor out glue-code, which is classy demonstration that
attributes are a good idea.  CGI::Prototype uses prototypical
(instance-based, or nonce-class) inheritance. 


Prototypical inheritance is not your classical C++/Java rigid  Object
Isa Class inheritance structure, or even SmallTalk 1st-Class 2nd-Order
Class objects, so is somewhat foreign on first impression. Every object
has it's own class, which may be same or similar to other objects'; the
key relation is not Isa but Has (and Can).  This model goes back
to antiquity, via the Self language (1980's) to the earliest days of
A.I. in Lisp (late 1960's or early 1970's?) and the
Frame/Slot/Attribute/Facet theory of knowledge representation (later in
Prolog and other engines as well). Some of us have done similar things
in C++ and SmallTalk; there was a blossoming of this model in the Expert
System rage of the 1980's. Prototype-based nonce-classes are highly
flexible, very cool, but hard to get your head around the first time,
since it's so heterodox (outside the Lisp / A.I. community, that is, and
much of Lisp moved on with Scheme and CLOS standards).  

For background on Frame-based knowledge bases, see for instance
http://www.cse.unsw.edu.au/~claude/teaching/AI/notes/prolog/Frames/Frame
s.html
http://deed.megan.ryerson.ca/~fil/I/Papers/kicIII/node10.html
http://www.amzi.com/ExpertSystemsInProlog/06frames.htm

(Aside -- Frame-structures are inherently XML friendly,
http://www.ai.sri.com/pkarp/xol/xol.html but antedate XML per se by 20+
years -- there was likely cross-fertilization between Frame folks and
SGML folks in the 80's.)


-- Bill
 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


[Boston.pm] apache with attributes redux RE: CGI::Prototype

2005-08-15 Thread Ricker, William
Off-list, I'm told my comment

 CGI::Application uses Attributes for some things as well, so ... 
 someone must have [f]igured it out?

is only partially right, as Attributes are only in a C:A:Plugin,
http://search.cpan.org/~thilo/CGI-Application-Plugin-AutoRunmode-0.08/Au
toRunmode.pm

Of course, you'd still want that to work with mod_perl and mod_perl#2
...

However, the someone must have comment still applies for
Apache::Reload, as the Catalyst folks seem to think it works:

 One beauty of this scheme is that you could probably work out a way
 to re-load the rules on the fly, allowing for lightning-quick
 development and testing.


 http://search.cpan.org/~msergeant/Apache-Reload-0.07/Reload.pm
Understood.

[ http://lists.rawmode.org/pipermail/catalyst/2005-June/000496.html ]

So, implication is that it works -- the question is how can it work?

This prompted me to look up CHECK block or INIT block and mod_perl.
Stranger than fiction, the Mod-Perl docs say BEGIN can be reinvoked in
mod_perl at sensible times under certain esoteric conditions but neither
CHECK or INIT blocks get called, ever.  (This seems just wrong, people
ought to be encouraged to use CHECK or INIT if that's what they mean.
Couldn't they fix this in ModPerl2 ??) 

 Perl only calls these blocks during perl_parse(), 
which mod_perl calls once at startup time. 
Therefore CHECK and INIT blocks don't work for the same reason
these don't:

   perl -e 'eval qq(CHECK { print ok\n })'
   perl -e 'eval qq(INIT  { print ok\n })'

Wow. Distressing.

And as advertised, the *default* time for an Attribute::Handler to
execute is CHECK.
But they can be set to INIT time (or BEGIN or END).  
http://www.perladvent.org/2003/7th/
http://search.cpan.org/~abergman/Attribute-Handlers-0.78/lib/Attribute/H
andlers.pm

One can imagine a module deciding, while it's loading, to set it's the
attribute handlers to be BEGIN blocks if in mod_perl and CHECK blocks if
not, and arranging for Reload to trigger the repeating BEGIN block
cases, but that's just too weird.

So what does it do?  Well, let's cheat and look at the code.
http://search.cpan.org/src/MRAMBERG/Catalyst-5.33/lib/Catalyst/Base.pm

Looks to me like Catalyst is eschewing elegant but problematic
Attribute::Handler and going straight down to Perl's native ugly
attributes(3pm) http://www.perlpod.com/5.8.4/lib/attributes.html .
Since these are built-in, perhaps they're mod_perl friendly and just
programmer-hostile?
http://search.cpan.org/~mramberg/Catalyst-5.33/lib/Catalyst/Base.pm
defines class variables  _attr_cache and _action_cache , and
subroutines:

  # note - see attributes(3pm)
  sub MODIFY_CODE_ATTRIBUTES {
my ( $class, $code, @attrs ) = @_;
$class-_attr_cache-{$code} = [EMAIL PROTECTED];
push @{ $class-_action_cache }, [ $code, [EMAIL PROTECTED] ];
return ();
  } 

  sub FETCH_CODE_ATTRIBUTES { $_[0]-_attr_cache-{ $_[1] } || () }

So the answer seems to be: 

The Catalyst team didn't use the elegant Damian-modules  that make the
underlying feature much much easier to program but alas don't work under
mod_perl since they (ab)use CHECK and INIT blocks to defer work until
compilation is done (Class::Delegation has same issue).  Having seen
what was possible, they just used the same ugly interface that Damian
used to get the same effect. 

Cheers, 

Bill
 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] Perl Best Practices

2005-08-14 Thread Ricker, William
Of course, Damian's PBP are for a Work Group working together.  It's
much better than average compromise for working together ... where each
choice has a reason.  

Damian's PBP's only apply to Damian's code when he codes for the PBP
modules for CPAN, not for the ACME modules.  Uri is free to use whatever
rules he wants ... when he's not coding for a dept that has adopted PBP
as it's standard.

William Ricker 
Not speaking for the firm



-Original Message-
From: Uri Guttman [mailto:[EMAIL PROTECTED] 
Sent: Saturday, August 13, 2005 6:08 PM
To: Tom Metro
Cc: L-boston-pm
Subject: Re: [Boston.pm] Perl Best Practices


 TM == Tom Metro [EMAIL PROTECTED] writes:

  TM Uri Guttman wrote:
   actually i disagree with a bunch of the rules in PBP...

  TM Could you elaborate on that?

not without going through the book in detail and picking out all the
rules i disagree with or have a different viewpoint on. and i can
disagree or see different views on most any subject! :)

damian's acknolegdment line for me is:

To Uri Guttman, for seeing things no-one else did, in ways
no-one else could.

:)

one i rule i disagree with is his use of a set of default regex
modifiers. i can see having /x on all the time but i stick with using /s
and /m as needed even if they would work ok if they were on all the
time. there are places where i actually use the fact that . doesn't
match \n. these are posited in the first set of rules in the chapter on
regexes.

there are others but i would be amazed to find anyone or group (other
than damian!) who would practice all these rules to the letter. as i
said in another post, the rules are as much a way to get you to think
about your code and style than just a particular way to code. you can
choose your coding style as long as you consciously choose it and are
consistant in your use of it.

uri

-- 
Uri Guttman  --  [EMAIL PROTECTED]  
http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and
Coding-
Search or Offer Perl Jobs  
http://jobs.perl.org
 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm
 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] Reef database architecture

2005-08-14 Thread Ricker, William
  have you considered using a native XML database for storage 
 instead of an RDBMS?

Elegant solution for small systems.

Likely to have a scaling issue for the number of users Phil hopes to
scale to ...


Anyone with large scale experience with these things, if they've grown
up fast lately, please correct me.

Bill
 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


  1   2   >