From randysleek at hotmail.com Wed May 5 15:38:42 2004 From: randysleek at hotmail.com (Randall Hennig) Date: Mon Aug 2 21:23:24 2004 Subject: APM: Putting Perl in my program Message-ID: I want to be able to embed and run a Perl interpreter and call it from within a Windows application. Is there a way to do this? How? Randy _________________________________________________________________ Express yourself with the new version of MSN Messenger! Download today - it's FREE! http://messenger.msn.com/go/onm00200471ave/direct/01/ From wwalker at bybent.com Wed May 5 22:19:00 2004 From: wwalker at bybent.com (Wayne Walker) Date: Mon Aug 2 21:23:24 2004 Subject: APM: Putting Perl in my program In-Reply-To: References: Message-ID: <20040506031900.GA1924@bybent.com> http://iis1.cps.unizar.es/Oreilly/perl/advprog/ch19_01.htm On Wed, May 05, 2004 at 08:38:42PM +0000, Randall Hennig wrote: > I want to be able to embed and run a Perl interpreter and call it from > within a Windows application. Is there a way to do this? How? > > Randy > > _________________________________________________________________ > Express yourself with the new version of MSN Messenger! Download today - > it's FREE! http://messenger.msn.com/go/onm00200471ave/direct/01/ > > _______________________________________________ > Austin mailing list > Austin@mail.pm.org > http://mail.pm.org/mailman/listinfo/austin -- Wayne Walker wwalker@bybent.com Do you use Linux?! http://www.bybent.com Get Counted! http://counter.li.org/ Perl - http://www.perl.org/ Perl User Groups - http://www.pm.org/ Jabber IM: wwalker@jabber.phototropia.org AIM: lwwalkerbybent From jbrooks4 at austin.rr.com Wed May 12 17:02:14 2004 From: jbrooks4 at austin.rr.com (Jeremy Brooks) Date: Mon Aug 2 21:23:24 2004 Subject: APM: %udat - embperl only partially updates sessions records Message-ID: <1084399334.17541.89.camel@willow.mobile-o.com> I'm experimenting with emperl sessions using MySQL and am pretty empressed so far. ...but. I have a simple test embperl file that presents a login form and if you submit anything at all then $udat{un}, $udat{time} and $udat{cid} get created with the username, unix timestamp, and username respectively. A record gets created in state.sessions but only the 'id' ( $udat{_session_id} ) gets inserted into the record. The browser receives the cookie and the %udat values hang around but they don't get added to the session record. I've added session debug output to the embperl log and I see SES: entries indicating that the user data has changed but, still, nothing but the id appears in the session record. [- $udat{time} = time; -] is at the top of the file and ensures that the session gets updated at every request. Does anyone have an idea as to why the other %udat values are not getting inserted into sessions? I'll include code samples if need be. I've included info about the sessions table and the system/software. thanks in advance, Jeremy +-----------+-------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-----------+-------------+------+-----+---------+-------+ | id | varchar(32) | | PRI | | | | a_session | text | YES | | NULL | | | un | blob | YES | | NULL | | | cid | blob | YES | | NULL | | | time | varchar(10) | YES | | NULL | | +-----------+-------------+------+-----+---------+-------+ RedHat 9.0 1. Perl 5.8.0 2. Apache 2.0.49 compiled from source: ./configure --prefix=/usr/local/apache2.0.49 --enable-rewrite=yes --with-mpm=prefork 3. mod_perl-1.99_13 compiled from source: perl Makefile.PL MP_INST_APACHE2=1 MP_AP_PREFIX=/usr/local/apache2.0.49 4. Embperl-2.0b10 compiled from source: perl Makefile.PL Apache headers from /usr/local/apache2.0.49 no XALAN 5. CGI.pm-3.0.5 6. DBI-1.42 7. Apache-SessionX-2.00b5 8. mysql-standard-4.0.18-pc-linux-i686 9. DBD-mysql-2.9003 10. Apache-Session-1.6 From bill_raty at yahoo.com Thu May 13 14:20:48 2004 From: bill_raty at yahoo.com (Bill Raty) Date: Mon Aug 2 21:23:24 2004 Subject: APM: FWIW-- Perl debugger trick Message-ID: <20040513192048.73154.qmail@web20422.mail.yahoo.com> For quite some time I've been dropping persistent debugging break points in my code via: $DB::single = 1; This does nothing appreciable to the code when it runs outside of the debugger, but will cause the debbugger to stop at the following line. Today while reading perl_debug doc page (comes with most dists or can be seen on www.perldoc.com), that you can leave commands for the debugger to execute before showing its prompt by stacking them in @DB::typeahead. So if you make a little sub like this: sub _BREAK_HERE_ { if(@_) { @DB::typeahead = @_ } $DB::single = 1; } Then later in your code, like this try block: use Error (:try); sub _BREAK_HERE_ { if(@_) { @DB::typeahead = @_ } $DB::single = 1; } try { die "for example.\n"; } otherwise { my ($exception) = @_; _BREAK_HERE_ 'w', 'x $exception'; 1; # debugger will stop here } The debugger will show a 'window' of code around the line of execution, and dump the $exception structure. Hint: put the _BREAK_HERE_ sub in a .pl or .pm file so you can 'require' or 'use' it later. Enjoy!, -Bill ===== Let's not elect Bush in '04 either. From michalk at awpi.com Thu May 13 15:18:54 2004 From: michalk at awpi.com (Brian Michalk) Date: Mon Aug 2 21:23:24 2004 Subject: APM: RE: FWIW-- Perl debugger trick In-Reply-To: <20040513192048.73154.qmail@web20422.mail.yahoo.com> Message-ID: As a programmer afflicted with debugging issues, I appreciate this nugget. I'll have to add it to my base_debug.pm class. Since I mentioned it, I like to add debugging statements to my code, but it's not always a good thing to have to go in and turn debugging on and off in classes that I might not even be debugging at the moment. For instance, let's say I have some code that sends a command to a database, and I want to make sure that database is getting the correct format. Furthermore, let's say that said code is in yet another subclass. Rather than mucking through subclassed with (un)commenting print statements, I insert a simple command: use base_debug; ... $self->pd("This is my debugging statement"); My base_debug.pm file is the following: package base_debug; sub new { ... } ################################################################ sub sd2 { # turn debugging on or off my $self = shift; my $sub = shift; # subroutine name is here my $val = shift; # if nonzero, debugging is enabled $self->{debug}{$sub} = $val; } ################################################################ sub pd { # debugging print utility my $self = shift; my ($mst) = @_; # text of message to send my $msg; # prepend to all output my ($pck, $fname, $line, $sub) = caller 1; # who called me $sub = (split('::',$sub))[1]; # name of the subroutine that wants to print debugging info if (defined $self->{debug}{$sub}) { # need to make sure we don't grow the hash with the next statement if (1 == $self->{debug}{$sub}) { # has debugging been enabled for this sub? $mst = substr($mst, 0, 120); # chop the content to something reasonable. $msg = "$sub--$mst"; # little note of who threw the debug message print $msg."\n"; } } } Now, let's say I'm writing a program, and I want to turn on debugging for a method called send_2_database #!/usr/bin/perl use somepackage; my $pkg = somepackage->new(); # somepackage inherits base_debug. $pkg->sd2('connect_2_database', 0); # optional, but debugging is turned off for any method by this name $pkg->sd2('send_2_database', 1); # debugging turned on for any method by this name. Now anytime send_2_database is called the debugging statements in that method will be called. > -----Original Message----- > From: austin-bounces@mail.pm.org [mailto:austin-bounces@mail.pm.org]On > Behalf Of Bill Raty > Sent: Thursday, May 13, 2004 2:21 PM > To: austin-pm@pm.org > Subject: APM: FWIW-- Perl debugger trick > > > For quite some time I've been dropping persistent debugging > break points in my code via: > > $DB::single = 1; > > ===== > Let's not elect Bush in '04 either. Better yet, disable the two party system and the gerrymandering that goes with it. Then your vote will be the voice of the people. I could go on, but don't get me started. From dbii at mudpuddle.com Mon May 17 00:13:25 2004 From: dbii at mudpuddle.com (David Bluestein II) Date: Mon Aug 2 21:23:24 2004 Subject: APM: Wednesday's meeting Message-ID: <20040517051325.GX3203@mudpuddle.com> Where are we meeting? Website still has downtown, but I though we were moving to up north for this one? Any confirmation on that so we can let people know (and I can find a Poke Jo's) David From ian at remmler.org Mon May 17 10:04:09 2004 From: ian at remmler.org (Ian Remmler) Date: Mon Aug 2 21:23:24 2004 Subject: APM: Wednesday's meeting In-Reply-To: <20040517051325.GX3203@mudpuddle.com> References: <20040517051325.GX3203@mudpuddle.com> Message-ID: <20040517150409.GA28486@remmler.org> On Mon, May 17, 2004 at 12:13:25AM -0500, David Bluestein II wrote: > Where are we meeting? Website still has downtown, but I though > we were moving to up north for this one? We are meeting at ARL (as far as I know). I've scheduled the auditorium from 7:00-9:00. The entrance is at 10000 Burnet directly across from Rutland. There'll be a sign-in sheet at the guard's desk in the lobby, and there are doors to the auditorium on either side of that desk. We'll have a projector and access to one ethernet port. I'm checking on whether we can connect a router to share it. Directions at: http://www.arlut.utexas.edu/visiting > Any confirmation on that so we can let people know (and I can > find a Poke Jo's) Looks like the nearest Jo's is a couple of miles away on Great Hills. Perhaps we could find something different for the north meetings, and do Jo's for the south, just for a bit of variety. I've been reading good things about Texas Rib Kings at Burnet and 183, so I'd be up for trying that. Any other suggestions? -- Ian Remmler | A monk asked Joshu, "Has a dog Buddha ian@remmler.org | nature or not?" Joshu replied, "Mu!" http://remmler.org | -- Mumon, "The Gateless Gate" From ian at remmler.org Mon May 17 14:32:03 2004 From: ian at remmler.org (Ian Remmler) Date: Mon Aug 2 21:23:24 2004 Subject: APM: Wednesday's meeting In-Reply-To: <20040517150409.GA28486@remmler.org> References: <20040517051325.GX3203@mudpuddle.com> <20040517150409.GA28486@remmler.org> Message-ID: <20040517193203.GA1643@remmler.org> On Mon, May 17, 2004 at 10:04:09AM -0500, Ian Remmler wrote: > to one ethernet port. I'm checking on whether we can connect a > router to share it. OK, so the word is NO on wireless (period.), but regular NAT is acceptable as long as there is no funny business. I don't have a router to bring, though. -- Ian Remmler | A monk asked Joshu, "Has a dog Buddha ian@remmler.org | nature or not?" Joshu replied, "Mu!" http://remmler.org | -- Mumon, "The Gateless Gate" From dbii at mudpuddle.com Mon May 17 15:54:55 2004 From: dbii at mudpuddle.com (David Bluestein II) Date: Mon Aug 2 21:23:24 2004 Subject: APM: Wednesday's meeting [Dinner Location] In-Reply-To: <20040517150409.GA28486@remmler.org> References: <20040517051325.GX3203@mudpuddle.com> <20040517150409.GA28486@remmler.org> Message-ID: <20040517205455.GH3203@mudpuddle.com> We've done the Poke's at Great Hills, so that works as a fallback position. Anyone eaten at Texas Rib Kings and can provide feedback on that? David On Mon, May 17, 2004 at 10:04:09AM -0500, Ian Remmler wrote: > > > Any confirmation on that so we can let people know (and I can > > find a Poke Jo's) > > Looks like the nearest Jo's is a couple of miles away on Great > Hills. Perhaps we could find something different for the north > meetings, and do Jo's for the south, just for a bit of variety. > I've been reading good things about Texas Rib Kings at Burnet and > 183, so I'd be up for trying that. Any other suggestions? > > -- > Ian Remmler | A monk asked Joshu, "Has a dog Buddha > ian@remmler.org | nature or not?" Joshu replied, "Mu!" > http://remmler.org | -- Mumon, "The Gateless Gate" > _______________________________________________ > Austin mailing list > Austin@mail.pm.org > http://mail.pm.org/mailman/listinfo/austin From mlehmann at marklehmann.com Tue May 18 18:06:50 2004 From: mlehmann at marklehmann.com (Mark Lehmann) Date: Mon Aug 2 21:23:24 2004 Subject: APM: Wed May 19th, Cutting and Pasting being windows and linux using Perl Message-ID: <57107.66.45.70.241.1084921610.squirrel@www.marklehmann.com> When: Tomorrow Night: Wed May 19th, 2004 5:30pm for dinner 7:00pm for presentation What: Cutting and Pasting being Windows and Linux using Perl Group interactive problem solving session Who: Heath Malmstrom Where: Advanced Research Lab The entrance is at 10000 Burnet directly across from Rutland. There'll be a sign-in sheet at the guard's desk in the lobby, and there are doors to the auditorium on either side of that desk. Directions at: http://www.arlut.utexas.edu/visiting Dinner: Poke-e-Jo's at Great Hills -- Mark Lehmannn mlehmann@marklehmann.com - mobile 512 689-7705 From mlehmann at marklehmann.com Tue May 18 18:24:02 2004 From: mlehmann at marklehmann.com (Mark Lehmann) Date: Mon Aug 2 21:23:24 2004 Subject: APM: Tomorrows meeting is up in North Austin Message-ID: <59858.66.45.70.241.1084922642.squirrel@www.marklehmann.com> Just a reminder that the meeting tomorrow night is at the NORTH location. It's at the Applied Research Lab. Directions: http://www.arlut.utexas.edu/visiting -- Mark Lehmannn mlehmann@marklehmann.com - mobile 512 689-7705 From mlehmann at marklehmann.com Wed May 19 10:26:35 2004 From: mlehmann at marklehmann.com (Mark Lehmann) Date: Mon Aug 2 21:23:24 2004 Subject: APM: Reminder: Meeting tonight, North Austin, 7:00pm / 5:30pm Dinner Message-ID: <30527.66.45.70.241.1084980395.squirrel@www.marklehmann.com> Remember that we have a meeting tonight. If you have a laptop and a wired ethernet connection, feel free to bring it. Also, if someone would bring a wired hub that would be helpful. The meeting topics are: - Cutting and Pasting between Windows and Linux using Perl - Group interactive problem solving The location is the Applied Research Lab (In the Pickle Center). You can get directions from the Austin Perl Mongers Website at: http://austin.pm.org and click on the ARL hyperlink. -- Mark Lehmannn mlehmann@marklehmann.com - mobile 512 689-7705 From dbii at mudpuddle.com Wed May 19 10:42:40 2004 From: dbii at mudpuddle.com (David Bluestein II) Date: Mon Aug 2 21:23:24 2004 Subject: APM: Dinner tonight Message-ID: <20040519154240.GC3203@mudpuddle.com> To follow up on Mark's email, dinner tonight is Poke Jo's at Great Hills, where we used to eat. Time is 5:30, since the meeting location is further from Poke's than the 5th street location, we'll leave for ARL around 6:30ish. For details on Poke's, see: http://www.pokejos.com/locations.html Great Hills POK-E-JO's David From itnomad at access4less.net Wed May 19 10:38:14 2004 From: itnomad at access4less.net (itnomad@access4less.net) Date: Mon Aug 2 21:23:24 2004 Subject: APM: Fedora Core2 Message-ID: <40ab7f66.3cf.3433.1073343124@access4less.net> Is anyone attending this meeting who has access to Fedora 2cds that were made available yesterday. I would gladly payfor a copy of the ISOs and the source cds, or just the ISOswould be okay. jack lupton 720-232-3396 carpentry perl mysql From wwalker at bybent.com Wed May 19 11:42:34 2004 From: wwalker at bybent.com (Wayne Walker) Date: Mon Aug 2 21:23:24 2004 Subject: APM: Fedora Core2 In-Reply-To: <40ab7f66.3cf.3433.1073343124@access4less.net> References: <40ab7f66.3cf.3433.1073343124@access4less.net> Message-ID: <20040519164234.GB18694@bybent.com> Email me at wwalker@servergraph.com if you want a set. I have them and can burn a few sets today. On Wed, May 19, 2004 at 11:38:14AM -0400, itnomad@access4less.net wrote: > Is anyone attending this meeting who has access to Fedora > 2cds that were made available yesterday. I would gladly > payfor a copy of the ISOs and the source cds, or just the > ISOswould be okay. > > jack lupton > 720-232-3396 > carpentry > perl > mysql > _______________________________________________ > Austin mailing list > Austin@mail.pm.org > http://mail.pm.org/mailman/listinfo/austin -- Wayne Walker wwalker@bybent.com Do you use Linux?! http://www.bybent.com Get Counted! http://counter.li.org/ Perl - http://www.perl.org/ Perl User Groups - http://www.pm.org/ Jabber IM: wwalker@jabber.phototropia.org AIM: lwwalkerbybent From mlehmann at marklehmann.com Wed May 19 13:25:04 2004 From: mlehmann at marklehmann.com (Mark Lehmann) Date: Mon Aug 2 21:23:24 2004 Subject: APM: Anyone interested in a SpamAssassin Presentation Message-ID: <36505.66.45.70.241.1084991104.squirrel@www.marklehmann.com> Is anyone interested in a SpamAssassin presenetation. SpamAssassin is implemented in perl. Would people be interested in looking at the configuration of SpamAssassin as well as looking at how SpamAssassin does it's work? -- Mark Lehmannn mlehmann@marklehmann.com - mobile 512 689-7705 From davdunc at grandecom.net Wed May 19 13:18:52 2004 From: davdunc at grandecom.net (David Duncan) Date: Mon Aug 2 21:23:24 2004 Subject: APM: Anyone interested in a SpamAssassin Presentation In-Reply-To: <36505.66.45.70.241.1084991104.squirrel@www.marklehmann.com> References: <36505.66.45.70.241.1084991104.squirrel@www.marklehmann.com> Message-ID: <1084990714.2753.4.camel@davlaptop> On Wed, 2004-05-19 at 14:25, Mark Lehmann wrote: > Is anyone interested in a SpamAssassin presenetation. SpamAssassin is > implemented in perl. > > Would people be interested in looking at the configuration of SpamAssassin > as well as looking at how SpamAssassin does it's work? I would be interested in that. -- David Duncan From itnomad at access4less.net Thu May 20 12:15:43 2004 From: itnomad at access4less.net (itnomad@access4less.net) Date: Mon Aug 2 21:23:24 2004 Subject: APM: social meetings this summer Message-ID: <40ace7bf.2b7.6ace.354008545@access4less.net> This subject came up at the meeting last night. I am using the wireless at the new Ruta Maya that is behind Expose on south Congress. This place is really nice (except the idiot smoking the cigar). It has a few good beers on tap, strong coffee, and snacks. It is very spacious inside, has good parking, and has comfortable outdoor seating. The wireless is really good. There are two band stands; one inside and one outside. That might put a crimp in a social meeting if there is a band playing. Otherwise, this place is well on the way to being my wireless hotspot of choice after Babbos (name soon to change) and La Tazza Fresca (poor parking). The Brewhouse Pub, as cool as it is, is not going to be a good place to meet. I got a lot out of the two main discussions last night( cut and paste, and processing 30,000 files). I always come away from these meetings with new ideas. jack lupton 720-232-3396 carpentry perl mysql From austin.pm at sam-i-am.com Fri May 21 11:26:58 2004 From: austin.pm at sam-i-am.com (Sam Foster) Date: Mon Aug 2 21:23:24 2004 Subject: APM: queue server and 30,000 files Message-ID: <40AE2DD2.8030202@sam-i-am.com> thanks for all your time and advice with my 30,000 files problem. At the wednesday meeting we sketched out a "queue server" that would maintain a central queue of say - filenames - that one or more clients could request and process. I found more boilerplate code in the perdocs at and around /perldoc/lib/Pod/perlipc.html#sockets__client_server_communication .. that I *almost* have working. There are also lots of implementations of one kind and another on cpan. I guess there's things I'm supposed to know about Queues that I would have been taught had I ever been taught anything about programming. But I'm a fine arts graduate picking it up as I go along. Please bear with me :) The urgent need for this stuff is about passed, but I'll continue to tinker. thanks, Sam From bob at blacklab.com Sat May 22 14:24:39 2004 From: bob at blacklab.com (Bob Richards) Date: Mon Aug 2 21:23:24 2004 Subject: APM: languages Message-ID: No, not perl, java and c but Spanish and Portuguese. I've written a web based project manager/document sharing/blog/rss program and now the guy wants it in Spanish. What's the best way to do this? Things I've thought about: html::template build all the files in each language. Would still be a mess because of all the if/thens for permissions on what shows up on the menus and tables depending on the level of the user flat text file have a file that looks like this: hello chao name nombre push the button pusha el button then loading them up to a hash/array/variable to print out database throwing the stuff in a database and calling it up. Ideas? Suggestions? Bob Richards http://www.blacklab.com 512-275-0099 From wwalker at bybent.com Sun May 23 22:57:30 2004 From: wwalker at bybent.com (Wayne Walker) Date: Mon Aug 2 21:23:24 2004 Subject: APM: testing, please respond Message-ID: <20040524035719.GC2515@bybent.com> www.pm.org went down. I've just now re-enabled sendmail after an OS reload/upgrade. I want to know if this list works... -- Wayne Walker wwalker@bybent.com Do you use Linux?! http://www.bybent.com Get Counted! http://counter.li.org/ Perl - http://www.perl.org/ Perl User Groups - http://www.pm.org/ Jabber IM: wwalker@jabber.phototropia.org AIM: lwwalkerbybent From dbii at mudpuddle.com Sun May 23 23:43:17 2004 From: dbii at mudpuddle.com (David Bluestein II) Date: Mon Aug 2 21:23:24 2004 Subject: [dbii@mudpuddle.com: Re: APM: testing, please respond] Message-ID: <20040524044317.GW3203@mudpuddle.com> ----- Forwarded message from David Bluestein II ----- Date: Sun, 23 May 2004 23:42:23 -0500 From: David Bluestein II To: aystub@mudpuddle.com, on@mudpuddle.com, irg@mudpuddle.com Subject: Re: APM: testing, please respond In-Reply-To: <20040524035719.GC2515@bybent.com> User-Agent: Mutt/1.4i X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on nuthag.interaction.net X-Spam-Status: No, hits=-5.0 required=5.0 tests=LOCAL_RULE_3 autolearn=no version=2.63 X-Spam-Level: Works for me:) David On Sun, May 23, 2004 at 10:57:30PM -0500, Wayne Walker wrote: > www.pm.org went down. I've just now re-enabled sendmail after an OS > reload/upgrade. I want to know if this list works... > > -- > > Wayne Walker > wwalker@bybent.com Do you use Linux?! > http://www.bybent.com Get Counted! http://counter.li.org/ > Perl - http://www.perl.org/ Perl User Groups - http://www.pm.org/ > Jabber IM: wwalker@jabber.phototropia.org AIM: lwwalkerbybent > _______________________________________________ > Austin mailing list > Austin@mail.pm.org > http://mail.pm.org/mailman/listinfo/austin ----- End forwarded message ----- From wwalker at bybent.com Mon May 24 00:12:11 2004 From: wwalker at bybent.com (Wayne Walker) Date: Mon Aug 2 21:23:24 2004 Subject: APM: testing, please respond In-Reply-To: <20040524035719.GC2515@bybent.com> References: <20040524035719.GC2515@bybent.com> Message-ID: <20040524051211.GF2515@bybent.com> Thanks for your replies. Our mailing list is working again. Should be all the Mailman lists are working. The poor folks on majordomo are about to get a shock though... On Sun, May 23, 2004 at 10:57:30PM -0500, Wayne Walker wrote: > www.pm.org went down. I've just now re-enabled sendmail after an OS > reload/upgrade. I want to know if this list works... > > -- > > Wayne Walker > wwalker@bybent.com Do you use Linux?! > http://www.bybent.com Get Counted! http://counter.li.org/ > Perl - http://www.perl.org/ Perl User Groups - http://www.pm.org/ > Jabber IM: wwalker@jabber.phototropia.org AIM: lwwalkerbybent > _______________________________________________ > Austin mailing list > Austin@mail.pm.org > http://mail.pm.org/mailman/listinfo/austin -- Wayne Walker wwalker@bybent.com Do you use Linux?! http://www.bybent.com Get Counted! http://counter.li.org/ Perl - http://www.perl.org/ Perl User Groups - http://www.pm.org/ Jabber IM: wwalker@jabber.phototropia.org AIM: lwwalkerbybent