Re: design patters with mod_perl

2006-09-13 Thread Matt Sergeant
Frank Wiles wrote: What I typically recommend to people is that they use a template engine like Template-Toolkit.org. You simply pass it a Perl data structure and then you have all of the same transformation possibilities as XSLT ( at least as I understand it ). And if you ever need t

Re: acceptable memory leaks?

2006-08-21 Thread Matt Sergeant
It does. But you may need: sub DBI::FIRSTKEY {} somewhere in your code. Not sure why. I'll ask Artur. On 21-Aug-06, at 5:48 PM, Jonathan Vanasco wrote: Devel::GC::Helper con: doesn't work with DBI installed

ANNOUNCE: AxKit2 1.0

2006-08-18 Thread Matt Sergeant
d, and enjoy. Begin forwarded message: From: PAUSE <[EMAIL PROTECTED]> Date: August 18, 2006 8:37:42 PM EDT (CA) To: "Matt Sergeant" <[EMAIL PROTECTED]> Subject: CPAN Upload: M/MS/MSERGEANT/AxKit2-1.0.tar.gz Reply-To: cpan-testers@perl.org The uploaded file AxKit2-1.0.

Re: Dumping / Profiling Memory ?

2006-08-15 Thread Matt Sergeant
On 15-Aug-06, at 4:25 PM, Arshavir Grigorian wrote: I guess I was more interested in type of structures that continuously increase the memory footprint with each request (memory leaks). I've had moderate success with Devel::GC::Helper [*]. It's not mod_perl integrated, but easy enough to add

Re: go crazy with me

2005-12-21 Thread Matt Sergeant
On 20 Dec 2005, at 12:00, Ken Simpson wrote: Not sure what you mean by it not scaling - can you elaborate? Sure it uses more ram than multiplexing, but even for a high traffic mail server like apache.org's the mail-in-apache2 model works well (apache.org uses Apache::Qpsmtpd for email). I'm cur

Re: go crazy with me

2005-12-20 Thread Matt Sergeant
On 19 Dec 2005, at 14:33, Stas Bekman wrote: JT Smith wrote: Yup, I've actually already done it that way with both Parallel::ForkManager in one instance and Proc::Queue as an alternative. I added in event handling with both Event and Event::Lib as seperate trials. All those implementations we

Re: Time::localtime under mod_perl2 showing output in client-side time zones

2005-12-01 Thread Matt Sergeant
On 6 Nov 2005, at 10:12, Richard N. Fogle wrote: We've tried the script with CGI(), I currently have it posted without. Same results. We've tried placing the time functions in a subroutine with private variables with the same results. Tried using Thread::Semaphore with the same results. If

Re: a faster html::template?

2005-09-09 Thread Matt Sergeant
On 9 Sep 2005, at 17:07, Praveen Ray wrote: Here is a very very simple script comparing three approaches to build a large html table. I was surprised to see TT2 being the fastest..run it yourself and see. Note that XSLT timings include the time to build XML data string since in real life all dat

Re: a faster html::template?

2005-09-09 Thread Matt Sergeant
On 9 Sep 2005, at 12:12, Perrin Harkins wrote: HTML::Template (or HTML::Template::JIT, to compare C code to C code) has a *very* limited set of logical operations (not Turing complete by any stretch) that operates directly on Perl variables. By comparison, XSP will be making method calls to us

Re: a faster html::template?

2005-09-09 Thread Matt Sergeant
On 8 Sep 2005, at 14:18, Perrin Harkins wrote: Not sure why you say "certainly not". XSLT is very fast and easy to optimise (because it's assignment free) and the C implementations are very quick. Remember that an XSLT transform is executing all its tight loops in C-space, not in perl-space. Y

Re: a faster html::template?

2005-09-08 Thread Matt Sergeant
On 6 Sep 2005, at 11:37, Perrin Harkins wrote: On Mon, 2005-09-05 at 06:42 -0700, Praveen Ray wrote: XSLT transforms are VERY fast Compared to what? Certainly not compared to HTML::Template. Not sure why you say "certainly not". XSLT is very fast and easy to optimise (because it's assignm

Re: UDP Protocol Handler?

2005-08-02 Thread Matt Sergeant
On 2 Aug 2005, at 13:27, Ken Simpson wrote: BTW Matt: Have you released the super-caching DNS query system that you were discussing a few months back? The one that works way better than Net::DNS for doing nasty things like lots of SPF checks? Sort of. There's code as part of Qpsmtpd that will

Re: UDP Protocol Handler?

2005-08-02 Thread Matt Sergeant
On 20 Jul 2005, at 10:40, Dan Sully wrote: Has anyone written a protocol handler for UDP? If so - could you share any examples? I haven't, but IIRC there is/was a talk at YAPC::EU about using mod_perl as a DNS server... I think it is by mock, who did the mod_perl as a mail server in Belfast

[PATCH] Apache::Test can never use mp1 with mp2 installed

2005-07-15 Thread Matt Sergeant
There's a bug in Apache::Test that prevents it from working properly when you're trying to test something with mp1 when you've got mp2 installed. What happens is that Apache::TestConfig does this: use constant IS_MOD_PERL_2 => eval { require mod_perl2 } || 0; Which of course is wron

Re: Urgent justification for perl

2004-11-19 Thread Matt Sergeant
On 19 Nov 2004, at 12:35, Martin Moss wrote: I've had an urgent request for a few paragraphs on the justification for the use of perl. In particularly mod_perl. Someone in the powers that be read an outdated description and thinks that using perl is a security risk - (I know, its not what you use,

Re: ANNOUNCE: Apache::Qpsmtpd

2004-09-22 Thread Matt Sergeant
On 22 Sep 2004, at 17:34, mock wrote: I think there is the potential for an even better speed increase with a little reworking of how QPSMTPD works. Some of the stuff you're doing (the timeout bits you showed me) might be better left to Apache to handle. Also, you might want to try it with the

Re: ANNOUNCE: Apache::Qpsmtpd

2004-09-21 Thread Matt Sergeant
On 19 Sep 2004, at 10:34, Matt Sergeant wrote: Last week I was at YAPC and attended mock's talk about building an SMTPd in mod_perl2/apache2. But before going I wanted to be able to build something like that for myself. So I wrote Apache:Qpsmtpd - a mod_perl2 handler that embeds Qpsmtpd

ANNOUNCE: Apache::Qpsmtpd

2004-09-19 Thread Matt Sergeant
Last week I was at YAPC and attended mock's talk about building an SMTPd in mod_perl2/apache2. But before going I wanted to be able to build something like that for myself. So I wrote Apache:Qpsmtpd - a mod_perl2 handler that embeds Qpsmtpd (http://smtpd.develooper.com/) http://www.sergeant.o

Re: XML::XSLT and mod_perl 2.0

2004-06-16 Thread Matt Sergeant
On 16 Jun 2004, at 12:42, Jesse Stay wrote: Partially because XML::XSLT is more widely used Actually I don't think that's true (based on traffic on the perl-xml list). Matt. -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquett

Re: reverse IP lookup for check all doimains on the server

2004-06-15 Thread Matt Sergeant
On 11 Jun 2004, at 23:49, Maxipoint Rep Office wrote: RE: yes I wish reverse lookup from IPs on any server at the web! any help? :-) Sure. What you want to do isn't possible. DNS maps host names to IPs, not generally the other way around. You can lookup $reverse_ip.in-addr.arpa, and hope to get a

Re: CDB_File

2004-03-20 Thread Matt Sergeant
On 20 Mar 2004, at 07:54, David Hodgkinson wrote: On 20 Mar 2004, at 0:54, Lester Vecsey wrote: I'm serving many web requests with an apache modperl handler, and I'm doing lookups on a CDB_File within the handler, using 'tie' to open the cdb file for every request that comes through. Is there a

Re: [QUESTION] B::TerseSize won't run

2004-01-24 Thread Matt Sergeant
On 22 Jan 2004, at 10:02, Ask Solem Hoel wrote: When I access /perl-status/ on this server i get a 500 Internal Server Error, and not much information in the error log but "Undefined subroutine &Apache::Status::handler called". If I remove the PerlModule B::TerseSize line from the apacheconfig,