Re: [MP2]mod_perl and index.html

2008-06-25 Thread titetluc titetluc
2008/6/25 titetluc titetluc <[EMAIL PROTECTED]>: > Hello all > > I am writing a Perl module to authenticate users (using mod_perl2 and httpd > 2.2.6. > I would like to display the user name (r->user) when accessing a directory > (/test_index/index.html) > > I have the following httpd configuration

Re: mod_captcha

2008-06-25 Thread adam . prime
Quoting Aaron Collins <[EMAIL PROTECTED]>: Hello, I'm trying to write a perl based mod_captcha using the recaptcha service, I was wondering is someone could tell me which handler I should use that would allow me to have mod_perl intercept a request going to a specific location and if it i return

mod_captcha

2008-06-25 Thread Aaron Collins
Hello, I'm trying to write a perl based mod_captcha using the recaptcha service, I was wondering is someone could tell me which handler I should use that would allow me to have mod_perl intercept a request going to a specific location and if it i return true continue with the request. In my

Re: mod_perl: performance tips

2008-06-25 Thread Perrin Harkins
On Wed, Jun 25, 2008 at 4:24 PM, tyju tiui <[EMAIL PROTECTED]> wrote: > hmmm, I read the performance chapters from http://www.modperlbook.org/ but > there really isn't much in the way of mod_perl-specific tweaks. > It's mostly about hardware tips, benchmarking tips, and apache server tweaks > (an

Re: mod_perl: performance tips

2008-06-25 Thread Michael Peters
tyju tiui wrote: > hmmm, I read the performance chapters from http://www.modperlbook.org/ but > there really isn't much in the way of mod_perl-specific tweaks. > It's mostly about hardware tips, benchmarking tips, and apache server tweaks > (and of course perl language tweaks). mod_perl is the c

Re: mod_perl: performance tips

2008-06-25 Thread tyju tiui
hmmm, I read the performance chapters from http://www.modperlbook.org/ but there really isn't much in the way of mod_perl-specific tweaks. It's mostly about hardware tips, benchmarking tips, and apache server tweaks (and of course perl language tweaks). The book recommended preloading perl modul

Re: Segfault when connecting during Apache startup with Apache::DBI

2008-06-25 Thread Tobias Kremer
On 25.06.2008, at 20:58, Amiri Barksdale wrote: I had big trouble with DBD::mysql 4.007. I didn't get rid of my segfault problem running mod_perl 1.31 until I went back to 4.004. Thanx. It really looks a lot like my problem: http://bugs.mysql.com/bug.php?id=36810 I'll try reverting to an ear

Re: Segfault when connecting during Apache startup with Apache::DBI

2008-06-25 Thread Amiri Barksdale
I had big trouble with DBD::mysql 4.007. I didn't get rid of my segfault problem running mod_perl 1.31 until I went back to 4.004. Amiri On Jun 25, 2008, at 12:14 PM, Perrin Harkins wrote: On Wed, Jun 25, 2008 at 5:49 AM, Tobias Kremer <[EMAIL PROTECTED]> wrote: After de-installing the la

Re: mod_perl: performance tips

2008-06-25 Thread adam . prime
Quoting Perrin Harkins <[EMAIL PROTECTED]>: On Wed, Jun 25, 2008 at 11:19 AM, Christopher Taranto <[EMAIL PROTECTED]> wrote: Try here: http://www.modperlbook.org/ Specifically - Part II: mod_perl Performance Yes, read that, profile your code, and then ask for help with specific slow parts.

Re: mod_perl: performance tips

2008-06-25 Thread Perrin Harkins
On Wed, Jun 25, 2008 at 11:19 AM, Christopher Taranto <[EMAIL PROTECTED]> wrote: > Try here: > > http://www.modperlbook.org/ > > Specifically - Part II: mod_perl Performance Yes, read that, profile your code, and then ask for help with specific slow parts. There's lots of performance information

Re: Segfault when connecting during Apache startup with Apache::DBI

2008-06-25 Thread Perrin Harkins
On Wed, Jun 25, 2008 at 5:49 AM, Tobias Kremer <[EMAIL PROTECTED]> wrote: > After de-installing the latest (self-rolled) DBI and DBD::mysql modules and > installing the corresponding packages provided by Ubuntu (libdbd-mysql-perl > and > libdbi-perl) the segfaults are gone. It sound like this is

Re: mod_perl: performance tips

2008-06-25 Thread Christopher Taranto
On Wed, June 25, 2008 7:57 am, tyju tiui wrote: > Hi, > > > I'm curious to know if anyone has any mod_perl-specific performance tips? > I've scoured google but most of the performance tips are related > specifically to perl which is good, but my application is still quite > slow. > > I managed to

mod_perl: performance tips

2008-06-25 Thread tyju tiui
Hi, I'm curious to know if anyone has any mod_perl-specific performance tips? I've scoured google but most of the performance tips are related specifically to perl which is good, but my application is still quite slow. I managed to work out the same module in C and I got nearly 5 times the thr

Re: Segfault when connecting during Apache startup with Apache::DBI

2008-06-25 Thread Tobias Kremer
Quoting André Warnier <[EMAIL PROTECTED]>: > I don't know if the above versions are imposed to you, but in case you > have a choice, I would recommend de-installing your Apache and mod_perl, > and re-install the Apache 2.2 version and the mod_perl that goes with it. > Apache 1.x and mod_perl 1.x ar

Re: Segfault when connecting during Apache startup with Apache::DBI

2008-06-25 Thread Tobias Kremer
Quoting Tobias Kremer <[EMAIL PROTECTED]>: > > - Ubuntu Feisty with apache-perl. > > - stock Ubuntu Perl 5.8.8 (which unfortunately comes with threads) > > - self-rolled DBD::mysql (against libmysqlclient15-dev), DBI and > Apache::DBI > > I should have mentioned that we're using DBI 1.605, Apache:

Re: Segfault when connecting during Apache startup with Apache::DBI

2008-06-25 Thread Tobias Kremer
> - Ubuntu Feisty with apache-perl. > - stock Ubuntu Perl 5.8.8 (which unfortunately comes with threads) > - self-rolled DBD::mysql (against libmysqlclient15-dev), DBI and Apache::DBI I should have mentioned that we're using DBI 1.605, Apache::DBI 1.07 and DBD::mysql 4.007. The Ubuntu apache-perl

Segfault when connecting during Apache startup with Apache::DBI

2008-06-25 Thread Tobias Kremer
We have a mod_perl application that needs to connect to the database during Apache startup to prefetch some data. The database handle for this is not stored or re-used in any way. According to the documentation, Apache::DBI does not cache database connections made during server startup, so I shoul

Re: graphics in perl

2008-06-25 Thread Foo JH
michael watson (IAH-C) wrote: Did you try GD::Graph? GD::Graph is a good graphing tool. It can get quite low-level as well, so you have to decide which visualiser works for you. The advantage of GD::Graph is that it'd likely be rendered as a JPEG/ GIF, and that's something you can download