Apache Mobile Filter

2009-02-27 Thread Idel Fuschini
I have done a module for Apache Web Server that recognizes the device and redirect to the correct contents (WML, XHTML etc.) you have defined. Also it's possible to resize dynamically the images depends of the device characteristics. Do you think this module could be useful? The module is Open Sour

tUsing module

2009-02-27 Thread Justin Wyllie
Hi This is a beginner question. I want to instantiate an object just once in the lifetime of a script, not on every request. I'm used to Mason where you can use Mason's <%once> block. In mod_perl proper would the equivalent be to instantiate it in a BEGIN block? But it would need to be in sco

Re: Deployment strategies...

2009-02-27 Thread Adam Prime
Perrin Harkins wrote: On Fri, Feb 27, 2009 at 3:06 PM, Mark Hedges wrote: What about PerlOptions +Parent? http://perl.apache.org/docs/2.0/user/config/config.html#C_Parent_ That's the thing I was referring to that I haven't tried. Can anyone confirm that this works? There are some threads

Re: Deployment strategies...

2009-02-27 Thread Perrin Harkins
On Fri, Feb 27, 2009 at 3:06 PM, Mark Hedges wrote: > What about PerlOptions +Parent? > http://perl.apache.org/docs/2.0/user/config/config.html#C_Parent_ That's the thing I was referring to that I haven't tried. Can anyone confirm that this works? - Perrin

Re: Deployment strategies...

2009-02-27 Thread Mark Hedges
On Fri, 27 Feb 2009, Carl Johnstone wrote: > Perrin Harkins wrote: > > > I've heard people say that DBIx::Class has a slow startup, > > so if you use that you might look there first. > > We do, I'll look. If you're loading the schema from the database instead of defining it from all the modules

Re: How to require() a file?

2009-02-27 Thread Stanisław T. Findeisen
Michael A. Capone wrote: I believe the ../ in there may be what's throwing things off. That would probably interpolate as /home/stf/public_html/test/arcv/common.pl ... which, unless that is indeed where common.pl is located, would generate the error you're seeing. Yes this is where com

Re: How to require() a file?

2009-02-27 Thread Michael A. Capone
Stanisław T. Findeisen wrote: I am trying to require() a file using its absolute name. In command line mode everything works fine, but not in Apache: [Fri Feb 27 17:45:07 2009] [error] Can't locate /home/stf/public_html/test/arcv/public_html/../common.pl in @INC (@INC contains: /usr/lib/perl5/

How to require() a file?

2009-02-27 Thread Stanisław T. Findeisen
I am trying to require() a file using its absolute name. In command line mode everything works fine, but not in Apache: [Fri Feb 27 17:45:07 2009] [error] Can't locate /home/stf/public_html/test/arcv/public_html/../common.pl in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thr

Re: Deployment strategies...

2009-02-27 Thread Carl Johnstone
Perrin Harkins wrote: > different FastCGI backend because it would waste memory, so either way > you'll want to group things together as much as possible. Yeah, that confirms my thinking. > I've heard people say that DBIx::Class has a slow startup, > so if you use that you might look there first.

Re: migrating to 2.0 and getting tons of warnings

2009-02-27 Thread Perrin Harkins
On Fri, Feb 27, 2009 at 11:43 AM, Matthew Lenz wrote: > No, this is just a legacy app that runs straight CGI's via > ModPerl::RegistryPrefork I'd check for any $^W manipulation in ModPerl::RegsitryPrefork. > I thought that if a package does a 'use warnings;' that it only affects > code being exe

Re: Deployment strategies...

2009-02-27 Thread Perrin Harkins
On Fri, Feb 27, 2009 at 5:30 AM, Carl Johnstone wrote: > The thing is that as I'm running the app under Catalyst, once I've started > splitting off into different server instances, there's not as much of an > advantage in using mod_perl - I can use FastCGI or HTTP::Prefork or even > just run catal

Re: migrating to 2.0 and getting tons of warnings

2009-02-27 Thread Matthew Lenz
On Fri, 2009-02-27 at 11:29 -0500, Perrin Harkins wrote: > On Fri, Feb 27, 2009 at 7:58 AM, Matthew Lenz wrote: > > I looked through the packge diff: > > > > http://ftp.de.debian.org/debian/pool/main/liba/libapache2-mod-perl2/libapache2-mod-perl2_2.0.4-5.diff.gz > > > > and didn't spot any changes

Re: migrating to 2.0 and getting tons of warnings

2009-02-27 Thread Perrin Harkins
On Fri, Feb 27, 2009 at 7:58 AM, Matthew Lenz wrote: > I looked through the packge diff: > > http://ftp.de.debian.org/debian/pool/main/liba/libapache2-mod-perl2/libapache2-mod-perl2_2.0.4-5.diff.gz > > and didn't spot any changes that would have this affect. What about other CPAN modules you're u

Re: Deployment strategies...

2009-02-27 Thread Michael Peters
Carl Johnstone wrote: 1) We want to run different versions of the same app for different sites - this means I have a namespace problem for MyApp v1 vs MyApp v2 etc. Just my opinion, but it's sooo much easier to manage multiple sites if they are all using the same version of the application. W

Re: Deployment strategies...

2009-02-27 Thread Kurt Hansen
Hello, Perrin Harkins wrote: On Thu, Feb 26, 2009 at 12:38 PM, Carl Johnstone wrote: 1) We want to run different versions of the same app for different sites - this means I have a namespace problem for MyApp v1 vs MyApp v2 etc. This has been discussed many times on the list. You can

Re: migrating to 2.0 and getting tons of warnings

2009-02-27 Thread Matthew Lenz
On Thu, 2009-02-26 at 17:17 -0500, Perrin Harkins wrote: > On Thu, Feb 26, 2009 at 4:01 PM, Matthew Lenz wrote: > > Maybe the debian guys did something goofy with the modules. It wouldn't > > be the first time. That or maybe its just a bug in ModPerl. Even if > > some CPAN module out there has

Re: Deployment strategies...

2009-02-27 Thread Carl Johnstone
Perrin Harkins wrote: > You can't run two modules with the same name in the same perl > interpreter, so you either need to change the namespaces for > different versions or run separate servers. Yeah it's a pity that the perchild mpm never moved out of experimental. In theory something like loadi