Re: [mp2] mod_perl closes apache's stdin and/or stdout

2007-09-26 Thread Dmitry Karasik
> I took a quick swing at putting one together but my mod_perl environment > is a bit screwed up right now. Can you see if it runs on your setup? I don't know. I've run "perl ModPerl-Registry/t/cgi-bin/stdin.pl" and it (unsurprisingly) fails with a "Can't connect to localhost:8529", and I can'

Re: [mp2] mod_perl closes apache's stdin and/or stdout

2007-09-26 Thread Dmitry Karasik
> What did I wrong? Try the same input but with apache freshly started, it must be the very first apache request, then the error is fully reproducible. -- Sincerely, Dmitry Karasik

Re: Question...

2007-09-26 Thread Tobias Regneri
Hi Tyler, I gave your script a test run on an apache 1.3 and had the same effect (blank page). I then modified the script as follows and everything was fine. #!/usr/bin/perl -w my $time = 65; for(my $i = 0; $i < $time; $i++) { warn("iteration..." . $i); sleep(1); } print "Conte

basic mp questions

2007-09-26 Thread lists user
Hello, I'm reading the documents about modperl and C API for Apache.I have several questions again,thanks for any helps in advance. 1) what're the advantage of C modules than modperl modules?and what're the advantage of modperl modules than C's? 2) Where in startup.pl,I wrote, #startup.pl use M

Re: Genral application architecture question

2007-09-26 Thread André Warnier
Thanks for the answers so far, this is really the kind of stuff I was hoping for. I appreciate even the 2-cent suggestions ;-), they are not 2-cents to me. Keep them coming. About the MySQL suggestion : I have been thinking about the same lines, specially since with DBI, it solves several iss

Re: Genral application architecture question

2007-09-26 Thread Ben van Staveren
On 26/09/2007, at 4:53 PM, André Warnier wrote: Thanks for the answers so far, this is really the kind of stuff I was hoping for. I appreciate even the 2-cent suggestions ;-), they are not 2-cents to me. Keep them coming. About the MySQL suggestion : I have been thinking about the same

Sharing data between many requests

2007-09-26 Thread André Warnier
For quite a while now, I have been mulling the following issue, without ever seeming to get the final, bestest and greatest solution : how to best share a data structure over many Apache2 requests, in a multi-platform context. My doubts have to do with what exactly can be shared and how between

Re: Sharing data between many requests

2007-09-26 Thread Jim Brandt
André Warnier wrote: - if there is a mandatory difference between threaded/non-threaded mp2 perl code, can I check at run-time under which environment I'm running, and condition which code is executed accordingly ? To answer one question, you can use the Apache2::MPM module to find out what

Re: Genral application architecture question

2007-09-26 Thread Michael Peters
Ben van Staveren wrote: > Well, using mod_proxy to do some reverse proxying would work, but users > would still be able to more or less 'browse' the document tree if they > know where to look. No real way around that one ;) Actually, it's not that hard. Just have the public server proxy the reque

RE: $cnt doesn't work for me as advertised (fwd)

2007-09-26 Thread Todd White
I'm wondering if anyone on this list would have any knowledge regarding the following Embperl question? Is anyone aware of a bug I may have encountered? Thanks. -- Forwarded message -- Date: Wed, 26 Sep 2007 08:06:01 -0400 (EDT) From: Todd White <[EMAIL PROTECTED]> To: [EMAIL PR

Re: Genral application architecture question

2007-09-26 Thread Michael Peters
Ben van Staveren wrote: >> The whole application package is multi-platform (Linux, various >> Unixes, Win32) so any dependency can easily become a problem or an >> installation hassle on one or the other platform. (That is for >> instance one reason why I am not using one of the modules based on

Re: Sharing data between many requests

2007-09-26 Thread Michael Peters
André Warnier wrote: > My doubts focus (mainly) on the following issues > - wether or not I *can* declare and initialise some object e.g. in the > PerlChildInitHandler, and later access that same object in the request > handlers. Yes. > - also, if later from the request handler, I would call a m

Re: basic mp questions

2007-09-26 Thread Anthony Gardner
I think you're a bit confused here. Are you writing C programs or Perl programs? There's an API to mod_perl for C programs and an API to mod_perl for Perl programs. The whole point of use MIME::Base64 (); in startup.pl is so as NOT to import everything from a particular package. The point of u

mod_perl success stories on ZDNet

2007-09-26 Thread Perrin Harkins
My Google alert sent this to me today: http://whitepapers.zdnet.com/abstract.aspx?docid=257555 - Perrin

Re: basic mp questions

2007-09-26 Thread Perrin Harkins
On 9/26/07, lists user <[EMAIL PROTECTED]> wrote: > 1) what're the advantage of C modules than modperl modules?and what're > the advantage of modperl modules than C's? You can just look at any "Perl vs C" discussion for the answer to this. > from the documents I know that in Mymodule MIME::Base64

Re: Sharing data between many requests

2007-09-26 Thread Perrin Harkins
On 9/26/07, André Warnier <[EMAIL PROTECTED]> wrote: > - For portability and ease-of-installation reasons, I would like to > avoid the usage of an external DBMS. I think you're making a mistake there. An RDBMS is the easiest way to achieve what you want. There is no simple way to share a Perl da

Re: $cnt doesn't work for me as advertised (fwd)

2007-09-26 Thread Perrin Harkins
On 9/26/07, Todd White <[EMAIL PROTECTED]> wrote: > I'm wondering if anyone on this list would have any knowledge regarding > the following Embperl question? I don't use Embperl, but it looks like you forgot to write all the code to loop through your array and increment $cnt. - Perrin

Re: $cnt doesn't work for me as advertised (fwd)

2007-09-26 Thread Todd White
That's part of the "magic" of this variable. Explicit looping is not required. http://perl.apache.org/embperl/pod/doc/Embperl.-page-3-.htm#sect_8 # Embperl can generate dynamic tables (one- or two-dimensional). You on

Re: PerlResponseHandler + mod_jk

2007-09-26 Thread Perrin Harkins
On 9/25/07, André Warnier <[EMAIL PROTECTED]> wrote: > From what I understand of the documentation, by the time we get to the > input filter, we are already at the Response stage, which means all the > stuff about interpreting the headers, and assigning the request to > mod_jk, is already done. No

Re: Sharing data between many requests

2007-09-26 Thread André Warnier
Michael Peters wrote: André Warnier wrote: My doubts focus (mainly) on the following issues - wether or not I *can* declare and initialise some object e.g. in the PerlChildInitHandler, and later access that same object in the request handlers. Yes. - also, if later from the request handler,

Re: mod_perl success stories on ZDNet

2007-09-26 Thread Jeff Pang
Great story,thanks. btw,is there any article about performance comparsion between modperl and php? 2007/9/26, Perrin Harkins <[EMAIL PROTECTED]>: > My Google alert sent this to me today: > http://whitepapers.zdnet.com/abstract.aspx?docid=257555 > > - Perrin >

Q: Build.PL/Makefile.PL, and CPAN testers...

2007-09-26 Thread Graham TerMarsch
Wanted to ping the list about something that's irked me the last few days... After recently releasing Apache2::Filter::Minifier::JavaScript/CSS, I saw several failed CPAN testers reports, generally due to the tester not having the required modules on their machine. Now, admittedly these are lik

Re: Q: Build.PL/Makefile.PL, and CPAN testers...

2007-09-26 Thread Andy Armstrong
On 26 Sep 2007, at 17:58, Graham TerMarsch wrote: Wanted to ping others, though, and see what you guys are doing with regards to trying to make sure that you get as few CPAN testers failures as possible. Obviously I can't prevent -all- of the failures, but I'd like to reduce them wherever p

Re: Q: Build.PL/Makefile.PL, and CPAN testers...

2007-09-26 Thread Fred Moyer
Graham TerMarsch wrote: Wanted to ping the list about something that's irked me the last few days... After recently releasing Apache2::Filter::Minifier::JavaScript/CSS, I saw several failed CPAN testers reports, generally due to the tester not having the required modules on their machine. I

Re: Q: Build.PL/Makefile.PL, and CPAN testers...

2007-09-26 Thread Geoffrey Young
Fred Moyer wrote: > Graham TerMarsch wrote: >> Wanted to ping the list about something that's irked me the last few >> days... >> >> After recently releasing Apache2::Filter::Minifier::JavaScript/CSS, I >> saw several failed CPAN testers reports, generally due to the tester >> not having the requ

Re: Q: Build.PL/Makefile.PL, and CPAN testers...

2007-09-26 Thread Graham TerMarsch
On Wednesday 26 September 2007 12:23 pm, Geoffrey Young wrote: > sorry, I got a private copy of this email and responded to that instead > of on list :) > > in the end, what graham seemed to want was a variant of this: > > http://search.cpan.org/src/GEOFF/Apache-Clean-0.05/Makefile.PL > > which s

Re: Genral application architecture question

2007-09-26 Thread André Warnier
The least that can be said is that people on this list are eager to help. Thanks for the ideas, and keep them coming. About this "gen(e)ral application architecture question", I would just like to narrow down the scope a bit, if it's allright for everyone. I do already have the full-text inde

Solution to apr stdio/msvc crt/service handles and logging

2007-09-26 Thread William A. Rowe, Jr.
Presented in two parts, the first; http://people.apache.org/~wrowe/apr-1.x-win32-nohandle.patch contains several changes that I believe will help the modperl community, the mod_fcgid folks and virtually anyone attempting to do handle mashups of different posix based engines on Win32. In the prev

Re: Solution to apr stdio/msvc crt/service handles and logging

2007-09-26 Thread William A. Rowe, Jr.
> http://people.apache.org/~wrowe/apr-1.x-win32-nohandle.patch FYI - that one does not apply cleanly to apr-1.2 (it's trunk) if you want the easily applied flavor, that would be; http://people.apache.org/~wrowe/apr-1.2-win32-nohandle.patch The httpd patch applies with little pain.