From doug.miles at bpxinternet.com Tue Oct 15 12:01:15 2002 From: doug.miles at bpxinternet.com (Doug Miles) Date: Thu Aug 5 00:16:50 2004 Subject: Phoenix.pm: Meeting 10/17/2002 Message-ID: <3DAC49DB.8010008@bpxinternet.com> We'll be having a Phoenix.pm meeting Thursday, September 5th at 7:00PM. It will be held at Bowne, which is located at 1500 N. Central Avenue, which is on the Southwest corner of Central and McDowell. The parking lot is gated, so just press the button on the intercom, and tell the receptionist that you are there for the Perl meeting. Park in the lot that is straight ahead from the entrance on the South side of McDowell. Park in any uncovered, non-reserved space. Proceed to the main lobby, which is on the Northeast side of the parking lot. Andrew Johnson will be presenting "Website Content Management with HTML::Template" -- - Doug From intertwingled at qwest.net Tue Oct 15 14:01:26 2002 From: intertwingled at qwest.net (intertwingled) Date: Thu Aug 5 00:16:50 2004 Subject: Phoenix.pm: Meeting 10/17/2002 In-Reply-To: <3DAC49DB.8010008@bpxinternet.com> Message-ID: <3.0.6.32.20021015120126.007ffae0@pop.phnx.qwest.net> Andrew Johnson... he was a president, nyet? At 10:01 AM 10/15/02 -0700, you wrote: >We'll be having a Phoenix.pm meeting Thursday, September 5th at 7:00PM. >It will be held at Bowne, which is located at 1500 N. Central Avenue, >which is on the Southwest corner of Central and McDowell. The parking >lot is gated, so just press the button on the intercom, and tell the >receptionist that you are there for the Perl meeting. Park in the lot >that is straight ahead from the entrance on the South side of McDowell. >Park in any uncovered, non-reserved space. Proceed to the main lobby, >which is on the Northeast side of the parking lot. > >Andrew Johnson will be presenting "Website Content Management with >HTML::Template" > >-- >- Doug > > > > > > > > > > > > > > > > > > > > > -- even the safest course is fraught with peril From aj at exiledplanet.org Tue Oct 15 18:46:00 2002 From: aj at exiledplanet.org (Andrew Johnson) Date: Thu Aug 5 00:16:50 2004 Subject: Phoenix.pm: Meeting 10/17/2002 Message-ID: <20021015234429.QJYS20527.mtiwmhc11.worldnet.att.net@COM> Andrew Johnson was the 17th President of the United States. He became President upon the death of Abraham Lincoln. The Congress hated him, and eventually impeached him (the first time that had happened in U.S. history). However, like the other impreached president of recent memory, the Senate failed to remove him from office. Andrew Johnson, the Perl Monger, is just another partially employed software developer with too much free time. Thus, content management with HTML::Template. HTML::Template is a simple but powerful module, especially if you're working with database-driven sites. If people come I promise not to talk too long! "intertwingled" wrote: __________ > >Andrew Johnson... he was a president, nyet? > From scott at illogics.org Tue Oct 15 22:50:52 2002 From: scott at illogics.org (Scott Walters) Date: Thu Aug 5 00:16:50 2004 Subject: Phoenix.pm: Andrew Johnson Message-ID: <200210160350.g9G3osBh011833@slowass.net> Elements of Programming with Perl by Andrew Johnson Manning Press, 2000 ISBN 1-884777-80-5 $34.95 350 pages http://www.samag.com/documents/s=1274/sam05010008/ http://search.barnesandnoble.com/textbooks/booksearch/isbninquiry.asp?userid=6T0KVZS05T&isbn=1884777805 We can safely rule out our Andrew Johnson as being former president Johnson, but does anyone know if our Andrew Johnson is this Andrew Johnson (the author of Elements of Programming with Perl)? I hope to make the meeting. I don't remember the name of the new fellow who made the Slashdot meetup crossover, who happens to also live in Fountain Hills, but I'd be (very) open to a carpool arrangement. Its that or I'm pouring gas into the anything-but-efficient Jeep, assuming I can barrow it. Yet another unrelated note, but I rewrote my Wiki. The one I was using was 3000 lines of Perl-4-ish Perl and took an eternity to load on my poor machine. The replacement is 50 lines: http://wiki.slowass.net/tinywiki.cgi?self Actually, I lie. That was my original version. I've hacked more features on, mostly text formatting stuff, so its up to about 90 lines: http://wiki.slowass.net/?self http://wiki.slowass.net I've moved all of the Perl Design Patterns material over there, where I've been working on it. In fact, the new Wiki is just a CVS front end, so I can check things out on the laptop and hack on it with vi. If there is any interest (speak up) I'd be happy to do a mini-presentation at some point in the future, and just do a code walk through. I'd guess that would take about 20 minutes. The ?self link displays its code. In fact, with the CVS stuff stripped out, the self-displaying stuff stripped out, and the "bonus" text formatting stripped out, I can take it down to 26 lines. Thats a heck of an improvement over 3000. Anyone who writes something in 3000 lines that could be written in 26 is going about it entirely the wrong way. If 26 lines is cramped and cryptic, 260 should be *fine*. 3000 is just stupid. Okey, hope to see you all. Cheers, -scott From aj at exiledplanet.org Thu Oct 17 12:37:20 2002 From: aj at exiledplanet.org (Andrew Johnson) Date: Thu Aug 5 00:16:50 2004 Subject: Phoenix.pm: Meeting 10/17/2002 References: <200210160350.g9G3osBh011833@slowass.net> Message-ID: <3DAEF550.3090706@exiledplanet.org> Scott Walters wrote: > > We can safely rule out our Andrew Johnson as being former president Johnson, > but does anyone know if our Andrew Johnson is this Andrew Johnson > (the author of Elements of Programming with Perl)? If only. I might be able to get a full-time job if I was an accomplished author! > > I hope to make the meeting. I don't remember the name of the new fellow who made > the Slashdot meetup crossover, who happens to also live in Fountain Hills, > but I'd be (very) open to a carpool arrangement. Its that or I'm pouring gas > into the anything-but-efficient Jeep, assuming I can barrow it. Gee, I thought I had finally figured out where most of the places in Phoenix. Where is Fountain Hills? From doug.miles at bpxinternet.com Thu Oct 17 12:49:25 2002 From: doug.miles at bpxinternet.com (Doug Miles) Date: Thu Aug 5 00:16:50 2004 Subject: Phoenix.pm: Reminder: Meeting 10/17/2002 Message-ID: <3DAEF825.8080602@bpxinternet.com> Please RSVP... We'll be having a Phoenix.pm meeting Thursday, September 5th at 7:00PM. It will be held at Bowne, which is located at 1500 N. Central Avenue, which is on the Southwest corner of Central and McDowell. The parking lot is gated, so just press the button on the intercom, and tell the receptionist that you are there for the Perl meeting. Park in the lot that is straight ahead from the entrance on the South side of McDowell. Park in any uncovered, non-reserved space. Proceed to the main lobby, which is on the Northeast side of the parking lot. Andrew Johnson will be presenting "Website Content Management with HTML::Template" -- - Doug From syz at broken-bit.com Thu Oct 17 13:01:18 2002 From: syz at broken-bit.com (Lowell Hamilton) Date: Thu Aug 5 00:16:50 2004 Subject: Phoenix.pm: Reminder: Meeting 10/17/2002 In-Reply-To: <3DAEF825.8080602@bpxinternet.com> References: <3DAEF825.8080602@bpxinternet.com> Message-ID: <1034877678.3224.3.camel@syzdesktop> I'll be there =) Lowell -- | Concept Marketing Group, Inc. | www.marketingsource.com | 800-575-5369 On Thu, 2002-10-17 at 10:49, Doug Miles wrote: > Please RSVP... > > We'll be having a Phoenix.pm meeting Thursday, September 5th at 7:00PM. > It will be held at Bowne, which is located at 1500 N. Central Avenue, > which is on the Southwest corner of Central and McDowell. The parking > lot is gated, so just press the button on the intercom, and tell the > receptionist that you are there for the Perl meeting. Park in the lot > that is straight ahead from the entrance on the South side of McDowell. > Park in any uncovered, non-reserved space. Proceed to the main lobby, > which is on the Northeast side of the parking lot. > > Andrew Johnson will be presenting "Website Content Management with > HTML::Template" > > -- > - Doug > > > > > > > > > > > > > > > > > > > > > From intertwingled at qwest.net Thu Oct 17 14:06:28 2002 From: intertwingled at qwest.net (intertwingled) Date: Thu Aug 5 00:16:50 2004 Subject: Phoenix.pm: Reminder: Meeting 10/17/2002 In-Reply-To: <3DAEF825.8080602@bpxinternet.com> Message-ID: <3.0.6.32.20021017120628.007ab590@pop.phnx.qwest.net> I'm coming! ermm, I mean, I'm going! errm, I mean, I shall be attending! Tony At 10:49 AM 10/17/02 -0700, you wrote: >Please RSVP... > >We'll be having a Phoenix.pm meeting Thursday, September 5th at 7:00PM. >It will be held at Bowne, which is located at 1500 N. Central Avenue, >which is on the Southwest corner of Central and McDowell. The parking >lot is gated, so just press the button on the intercom, and tell the >receptionist that you are there for the Perl meeting. Park in the lot >that is straight ahead from the entrance on the South side of McDowell. >Park in any uncovered, non-reserved space. Proceed to the main lobby, >which is on the Northeast side of the parking lot. > >Andrew Johnson will be presenting "Website Content Management with >HTML::Template" > >-- >- Doug > > > > > > > > > > > > > > > > > > > > > > > -- even the safest course is fraught with peril From scott at illogics.org Fri Oct 18 03:39:32 2002 From: scott at illogics.org (Scott Walters) Date: Thu Aug 5 00:16:50 2004 Subject: Phoenix.pm: Reminder: Meeting 10/17/2002 In-Reply-To: from "Lowell Hamilton" at Oct 17, 2002 11:01:18 AM Message-ID: <200210180839.g9I8dZHB028753@slowass.net> Everyone, I forgot what Heather said too, but she made no small point of reminding me when I got home: under any circumstances, she only wanted *one* book. I still can't forgive her for winning 4. Never the less, as promised, my current personal stash - or most of it - is up on http://wiki.slowass.net/?BookShelf. Feel free to browse the list and add your own books if you so desire. These are books I'm willing to loan out - under certain circumstances. See the page for details. If the page grows too much, I'll try to organize it by subject, dewey decimal, whatever. Andrew, Most excellent. Thank you. Re: factory methods, something like (this is a really dumb example): package Car::Factory; sub create_car { my $self = shift; my $passengers = shift; my $topspeed = shift; return new Car::Ford if $topspeed < 100 and $passengers >= 4; return new Car::Honda if $topspeed < 120 and $passengers <= 2; return new Car::Porsche if $topspeed > 160 and $passengers <= 2; # etc } To be OO "pure" (polymorphic) each kind of car should @ISA = (Car), so that they pass the $ob->isa('Car') test. This lets programs know that it is a car (reguardless of kind) and can thus be used interchangably. If you just want to cheat and bless something into a package: sub create_car { # this way we can do Car::Factory->create_car(...) or $carfactoryref->create_car(...) my $package = shift; $package = ref $package if ref $package; my $car = new Car::GenericAmericanCar; my $kind = shift; return bless $car, 'Car::Ford' if $kind eq 'ford'; return bless $car, 'Car::Dodge' if $kind eq 'dodge'; return bless $car, 'Car::Buick' if $kind eq 'buick'; return bless $car, 'Car::Pontiac' if $kind eq 'pontiac'; die "I don't think we make $kind in this country. Try Mexico."; } If you do something like that, you will prolly want Car::Ford to inherit Car::GenericAmericanCar with a line at the top reading @ISA = qw(Car::GenericAmericanCar Car) so that the methods continue to be available after you re-bless it (and so that they are marked as being a Car). -scott From doug.miles at bpxinternet.com Fri Oct 18 11:53:32 2002 From: doug.miles at bpxinternet.com (Doug Miles) Date: Thu Aug 5 00:16:50 2004 Subject: Phoenix.pm: Reminder: Meeting 10/17/2002 References: <200210180839.g9I8dZHB028753@slowass.net> Message-ID: <3DB03C8C.4060200@bpxinternet.com> Scott Walters wrote: > Everyone, > > I forgot what Heather said too, but she made no small point of reminding me when > I got home: under any circumstances, she only wanted *one* book. I still can't > forgive her for winning 4. Sorry Heather! :) I knew you said something about that, but my feeble memory could not recall what. > Never the less, as promised, my current personal stash - or most of it - > is up on http://wiki.slowass.net/?BookShelf. Feel free to browse the list > and add your own books if you so desire. These are books I'm willing to loan > out - under certain circumstances. See the page for details. If the page > grows too much, I'll try to organize it by subject, dewey decimal, whatever. > > Andrew, > > Most excellent. Thank you. > Re: factory methods, something like (this is a really dumb example): > > package Car::Factory; > > sub create_car { > my $self = shift; > my $passengers = shift; > my $topspeed = shift; > > return new Car::Ford if $topspeed < 100 and $passengers >= 4; > return new Car::Honda if $topspeed < 120 and $passengers <= 2; > return new Car::Porsche if $topspeed > 160 and $passengers <= 2; > # etc > } > > To be OO "pure" (polymorphic) each kind of car should @ISA = (Car), so that > they pass the $ob->isa('Car') test. This lets programs know that it is a car > (reguardless of kind) and can thus be used interchangably. > > If you just want to cheat and bless something into a package: > > sub create_car { > # this way we can do Car::Factory->create_car(...) or $carfactoryref->create_car(...) > my $package = shift; $package = ref $package if ref $package; > > my $car = new Car::GenericAmericanCar; > > my $kind = shift; > > return bless $car, 'Car::Ford' if $kind eq 'ford'; > return bless $car, 'Car::Dodge' if $kind eq 'dodge'; > return bless $car, 'Car::Buick' if $kind eq 'buick'; > return bless $car, 'Car::Pontiac' if $kind eq 'pontiac'; > die "I don't think we make $kind in this country. Try Mexico."; > } > > If you do something like that, you will prolly want Car::Ford to inherit > Car::GenericAmericanCar with a line at the top reading > @ISA = qw(Car::GenericAmericanCar Car) > so that the methods continue to be available after you re-bless it (and so that > they are marked as being a Car). > > -scott > From doug.miles at bpxinternet.com Fri Oct 18 12:17:25 2002 From: doug.miles at bpxinternet.com (Doug Miles) Date: Thu Aug 5 00:16:50 2004 Subject: Phoenix.pm: 3rd Ed. Camel Message-ID: <3DB04225.80004@bpxinternet.com> Someone who's name I didn't get won the 3rd Ed. Camel last night. If you are the holder of ticket number 1784722, please let me know. Thanks to all who participated. We raised $30, which is being matched by another $30 by an anonymous donor. From aj at exiledplanet.org Sat Oct 19 17:22:08 2002 From: aj at exiledplanet.org (Andrew Johnson) Date: Thu Aug 5 00:16:50 2004 Subject: Phoenix.pm: Reminder: Meeting 10/17/2002 References: <200210180839.g9I8dZHB028753@slowass.net> Message-ID: <3DB1DB10.2020203@exiledplanet.org> Scott Walters wrote: > > Andrew, > > Most excellent. Thank you. You are most welcome. The code is finally on the site: http://www.exiledplanet.org/code/exsm/ I tried to add as much POD as I could, but it's still lacking. Further feedback is welcome. Scott, thanks for the example about factory methods and re-blessing classes. I think I need to do some other things first, but I'm definitely going to use that eventually. Some people have commented about using Exsm with template systems other than HTML::Template. There is a CMS written in Perl that allows a variety of template systems, including HTML::Template and HTML::Mason, to be used: Bricolage (http://bricolage.thepirtgroup.com). I think it would be possible to provide a Bricolage-like abstraction of sorts to allow different template languages to be used with Exsm; the only places HTML::Template is explicitly used in the front-end code is in the Exsm::*->render() methods, so we're talking 3 or 4 methods to rewrite there. Of course, the admin interface uses it everywhere, in virtually every admin script, BUT the admin code is secondary to the actual Exsm system, and I've been thinking about re-writing it anyway, using something like CGI::Application to provide a cleaner interface. Ideas, anyone? What template systems would you be interested in seeing? HTML::Mason? TT2? Or would you rather just leave it open so you could write your own? From scott at illogics.org Mon Oct 28 03:16:36 2002 From: scott at illogics.org (Scott Walters) Date: Thu Aug 5 00:16:50 2004 Subject: Phoenix.pm: tieing things from afar Message-ID: <200210280916.g9S9Gb8j013343@slowass.net> Andrew (et el).. Previously I promised an example of tieing things from afar, but forgot I promised this until I stumbled over the code. I used this magic with the Mmap interface to graft on some logic that keeps Perl from attempting to reallocate the memory that is mapped when it is accessed from operations that would otherwise try to reallocate it (smaller or larger). In this example, I have a test file that uses the toy LineBuffer module. It creates a lexical and passes it to a function that ties it. The original $a is modified, rather than merely the copy, because the argument array (@_) is implemented by-reference for speed. If we read the argument into a variable in func() then tried to tie it, we would be working on a copy of the variable instead of the original, and we wouldn't be able to affect our caller from our subroutine. Enjoy, and as always, let me know if you have any questions. -scott # in a test file: #!/usr/bin/perl # can we tie a variable remotely? use LineBuffer; sub func { tie $_[0], LineBuffer; } my $a; func($a); $a = "hi there "; $a = "kids\n"; print $a; # yes! we can! yay! # in LineBuffer.pm: package LineBuffer; sub TIESCALAR { my $me; bless \$me, shift; } sub STORE { my $me = shift; $$me .= shift; } sub FETCH { my $me = shift; $$me =~ s/^(.*)\n//; return $1; } 1; From doug.miles at bpxinternet.com Mon Oct 28 11:37:31 2002 From: doug.miles at bpxinternet.com (Doug Miles) Date: Thu Aug 5 00:16:50 2004 Subject: Phoenix.pm: Donation Made Message-ID: <3DBD75DB.1030306@bpxinternet.com> The that was raised ($30 from raffle $30 from anonymous donor) $60 was donated to yetanother.org. Thanks! From codewell at earthlink.net Mon Oct 28 17:57:27 2002 From: codewell at earthlink.net (Hal Goldfarb) Date: Thu Aug 5 00:16:50 2004 Subject: Phoenix.pm: Donation Made In-Reply-To: <3DBD75DB.1030306@bpxinternet.com> References: <3DBD75DB.1030306@bpxinternet.com> Message-ID: On Monday 28 October 2002 10:37 am, you wrote: > The that was raised ($30 from raffle $30 from anonymous donor) $60 was > donated to yetanother.org. Thanks! Sorry, Doug. That sentence with "the that" is not clear to me. Did you mean to include more information? Was this a fundraiser; sorry, I was not there. Thanks, Hal From djmilesfamily at earthlink.net Mon Oct 28 19:56:46 2002 From: djmilesfamily at earthlink.net (Doug and Julie Miles) Date: Thu Aug 5 00:16:50 2004 Subject: Phoenix.pm: Donation Made In-Reply-To: <3DBD75DB.1030306@bpxinternet.com> Message-ID: <5.1.1.6.0.20021028185411.02d0c210@mail.earthlink.net> At 10:37 AM 10/28/2002 -0700, you wrote: >The that was raised ($30 from raffle $30 from anonymous donor) $60 was >donated to yetanother.org. Thanks! What was I on when I wrote this? Let's try again: The $60 ($30 from raffle, $30 from anonymous donor) that was raised from raffling off the O'Reilly books was donated to yetanother.org. Thanks to all who participated. From djmilesfamily at earthlink.net Tue Oct 29 17:20:05 2002 From: djmilesfamily at earthlink.net (Doug and Julie Miles) Date: Thu Aug 5 00:16:50 2004 Subject: Phoenix.pm: 3rd Ed. Camel In-Reply-To: <3DB04225.80004@bpxinternet.com> Message-ID: <5.1.1.6.0.20021029161929.02e5f830@mail.earthlink.net> At 10:17 AM 10/18/2002 -0700, you wrote: >Someone who's name I didn't get won the 3rd Ed. Camel last night. If you >are the holder of ticket number 1784722, please let me know. Thanks to >all who participated. We raised $30, which is being matched by another >$30 by an anonymous donor. So... Is no one going to claim this? From syz at broken-bit.com Tue Oct 29 17:25:54 2002 From: syz at broken-bit.com (Lowell Hamilton) Date: Thu Aug 5 00:16:50 2004 Subject: Phoenix.pm: 3rd Ed. Camel In-Reply-To: <5.1.1.6.0.20021029161929.02e5f830@mail.earthlink.net> References: <5.1.1.6.0.20021029161929.02e5f830@mail.earthlink.net> Message-ID: <1035933954.23477.5.camel@syzdesktop> W00 .. that would be me =) Lowell On Tue, 2002-10-29 at 16:20, Doug and Julie Miles wrote: > At 10:17 AM 10/18/2002 -0700, you wrote: > >Someone who's name I didn't get won the 3rd Ed. Camel last night. If you > >are the holder of ticket number 1784722, please let me know. Thanks to > >all who participated. We raised $30, which is being matched by another > >$30 by an anonymous donor. > > So... Is no one going to claim this? > -- | Concept Marketing Group, Inc. | http://www.marketingsource.com | 800-575-5369