Re: [mp2] mason and not using compat? - Can't locate object method "server_root_relative"

2004-10-25 Thread Carl Brewer
Randy Kobes wrote:
From the mp2 Changes file, ($r|$c|$s)->server_root_relative
has been removed. There is a suggested alternative, which
for MasonX::Apache2Handler translates to (untested):
===
--- Apache2Handler.pm~  Sun Apr 11 17:02:16 2004
+++ Apache2Handler.pm   Mon Oct 25 22:47:12 2004
@@ -615,7 +615,7 @@
 if (exists $allowed_params->{data_dir} and not exists $params{data_dir})
 {
# constructs path to /mason
-   my $def = $defaults{data_dir} = Apache->server->server_root_relative('mason');
+my $def = $defaults{data_dir} = 
File::Spec->catfile(Apache::ServerUtil::server_root, 'mason');
param_error "Default data_dir (MasonDataDir) '$def' must be an absolute path"
unless File::Spec->file_name_is_absolute($def);
=
That works, btw.  Thankyou.  Now if Beau can update
the Apache2Handler, it'll all be good!
Carl

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: [mp2] mason and not using compat? - Can't locate object method "server_root_relative"

2004-10-25 Thread Carl Brewer
Randy Kobes wrote:
From the mp2 Changes file, ($r|$c|$s)->server_root_relative
has been removed. There is a suggested alternative, which
for MasonX::Apache2Handler translates to (untested):
===
--- Apache2Handler.pm~  Sun Apr 11 17:02:16 2004
+++ Apache2Handler.pm   Mon Oct 25 22:47:12 2004
@@ -615,7 +615,7 @@
 if (exists $allowed_params->{data_dir} and not exists $params{data_dir})
 {
# constructs path to /mason
-   my $def = $defaults{data_dir} = Apache->server->server_root_relative('mason');
+my $def = $defaults{data_dir} = 
File::Spec->catfile(Apache::ServerUtil::server_root, 'mason');
param_error "Default data_dir (MasonDataDir) '$def' must be an absolute path"
unless File::Spec->file_name_is_absolute($def);
=
Thanks Randy,
Has this been submitted to Beau Cox by you or anyone?
Carl

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: [mp2] mason and not using compat? - Can't locate object method "server_root_relative"

2004-10-25 Thread Randy Kobes
On Tue, 26 Oct 2004, Carl Brewer wrote:

> Philippe M. Chiasson wrote:
> > Carl Brewer wrote:
> >
>
> > I believe there is a CPAN module that makes it a bit cleaner and
> > less hack-ish:
> >
> > MasonX::Apache2Handler
> > http://search.cpan.org/dist/MasonX-Apache2Handler
>
> Thanks Philippe, I've found that now and built a NetBSD pkg for it.
>
> But, I'm having trouble using it.  I really want to stay clear of
> mp1, but am having trouble getting this handler to work.
>
> I keep seeing this :
>
> [Tue Oct 26 13:28:53 2004] [error] [client 211.26.251.34] Can't locate
> object method "server_root_relative" via package "Apache::ServerRec" at
> /usr/pkg/lib/perl5/site_perl/5.8.4/MasonX/Apache2Handler.pm line 618.\n

>From the mp2 Changes file, ($r|$c|$s)->server_root_relative
has been removed. There is a suggested alternative, which
for MasonX::Apache2Handler translates to (untested):
===
--- Apache2Handler.pm~  Sun Apr 11 17:02:16 2004
+++ Apache2Handler.pm   Mon Oct 25 22:47:12 2004
@@ -615,7 +615,7 @@
 if (exists $allowed_params->{data_dir} and not exists $params{data_dir})
 {
# constructs path to /mason
-   my $def = $defaults{data_dir} = Apache->server->server_root_relative('mason');
+my $def = $defaults{data_dir} = 
File::Spec->catfile(Apache::ServerUtil::server_root, 'mason');
param_error "Default data_dir (MasonDataDir) '$def' must be an absolute path"
unless File::Spec->file_name_is_absolute($def);

=

-- 
best regards,
randy kobes

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Re: [mp2] mason and not using compat? - Can't locate object method "server_root_relative"

2004-10-25 Thread Carl Brewer
Philippe M. Chiasson wrote:
Carl Brewer wrote:

I believe there is a CPAN module that makes it a bit cleaner and
less hack-ish:
MasonX::Apache2Handler
http://search.cpan.org/dist/MasonX-Apache2Handler
Thanks Philippe, I've found that now and built a NetBSD pkg for it.
But, I'm having trouble using it.  I really want to stay clear of
mp1, but am having trouble getting this handler to work.
I keep seeing this :
[Tue Oct 26 13:28:53 2004] [error] [client 211.26.251.34] Can't locate 
object method "server_root_relative" via package "Apache::ServerRec" at 
/usr/pkg/lib/perl5/site_perl/5.8.4/MasonX/Apache2Handler.pm line 618.\n

My setup at the moment (which is very fluid as I try things to try and
fix the problem!) :

DocumentRoot /home/benfab/htdocs
ServerName benfab.bl.echidna.id.au
ErrorLog /home/benfab/logs/error_log
CustomLog /home/benfab/logs/access_log common
Alias /admin/ "/home/benfab/admin/"
# these four lines apply to Apache2+mod_perl2 only: {{{
PerlSetVar MasonArgsMethod CGI
#PerlModule Apache2 Apache::compat
PerlModule Apache2
PerlRequire "/home/benfab/lib/startup.pl"
#PerlModule Apache::Reload
#PerlModule Apache::Request
#PerlModule Apache::Cookie
#PerlInitHandler Apache::Reload
#PerlSetVar ReloadAll Off
#PerlSetVar _MasonUser www
#PerlSetVar _MasonGroup www
#PerlSetVar _MasonDefaultDocumentRoot "/home/benfab/htdocs"
#RewriteEngine On
#RewriteRule ^(.*)/$ $1/index.html

  SetHandler perl-script
  #PerlHandler HTML::Mason::ApacheHandler
  PerlResponseHandler MasonX::Apache2Handler


  SetHandler perl-script
  #PerlInitHandler Apache::Constants::NOT_FOUND


#SetHandler perl-script
#PerlHandler HTML::Mason::ApacheHandler
SetOutputFilter DEFLATE


the startup.pl script is :
# http://perl.apache.org/docs/2.0/user/config/config.html
use Apache2 ();
  # /usr/pkg/lib/perl5/site_perl/5.8.4/HTML/Mason/ApacheHandler.pm
  use lib qw(/home/benfab/lib 
/usr/pkg/lib/perl5/site_perl/5.8.4/HTML/Mason/);

  use ModPerl::Util (); #for CORE::GLOBAL::exit
  use Apache::RequestRec ();
  use Apache::RequestIO ();
  use Apache::RequestUtil ();
  use Apache::ServerRec ();
  use Apache::ServerUtil ();
  use Apache::Connection ();
  use Apache::Log ();
  use APR::Table ();
  use APR::Pool ();
  use ModPerl::Registry ();
  use Apache::Const -compile => ':common';
  use APR::Const -compile => ':common';
1;
From googling around, the error message is something to
do with mp2 in compat mode, which I'm specifically trying to
eliminate and avoid - and as my test page is simply this :
/home/benfab/htdocs/index.html
<% 2+2 %>
I'm not using anything that should or could call it?
any suggestions?
Carl

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: Apache::PerlRun - Constant subroutine redefined

2004-10-25 Thread David Radunz
Hey,

I just tested it and it works perfectly - I wont be able to roll out the
next version that encorporates Devel::Unload for a week or two, but if I
encounter any problems I will let you know.

Cheers,

David

On Tue, 2004-10-26 at 04:22, Philippe M. Chiasson wrote:
> Philippe M. Chiasson wrote:
> > David Radunz wrote:
> > 
> > [...]
> > 
> > I think that you have just uncovered a small bug in the unload_package() 
> > implementation
> > and I'd like to know exactly how you've reproduced this. After looking 
> > over code, it is
> > now clear to me that any namespace entry that has a name <= 2 characters 
> > long (e.g 'qs')
> > will not be deleted. That's a bug, and I expect to have it fixed both in 
> > mp2 and in Devel::Unload
> > soon.
> 
> I've found and fixed the bug.
> 
> > I'll let you know when there is another version of Devel::Unload you can 
> > try out. 
> 
> It's available at the same place as before:
>   http://svn.ectoplasm.org/projects/perl/Devel-Unload/
> 
> > In the meantime,
> > could you please give me more information about how you have tested 
> > this, since the size of the
> > string doesn't matter AFAIK.
> > 
> > Thanks!
-- 
David Radunz,
Developer / Programmer

Netspace Online Systems Pty Ltd
Ground Floor, 293 Camberwell Road
Camberwell, Victoria 3124
Ph:  +613 9811 0087
Fx:  +613 9811 0044
Mo:  +614 0549 9719
Em:  [EMAIL PROTECTED]

This email and any files transmitted with it are confidential and intended solely for 
the 
use of the individual or entity to whom they are addressed. Please notify the sender 
immediately by email if you have received this email by mistake and delete this email 
from your system. Please note that any views or opinions presented in this email are 
solely
 those of the author and do not necessarily represent those of the organisation. 
Finally, the recipient should check this email and any attachments for the presence of 
viruses. The organisation accepts no liability for any damage caused by any virus 
transmitted by this email. 


--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Re: [mp2] mason and not using compat?

2004-10-25 Thread Philippe M. Chiasson
Carl Brewer wrote:
Hello,
I'm fiddling with Mason on apache2 (NetBSD 1.6.2 & 2.0RC's)
and I'd like to use mp2 in native mode, not compat.
I found :
http://www.masonhq.com/?ApacheModPerl2
And the hack in there I haven't yet tried, but does anyone
know of any plans to make this a bit neater?
I believe there is a CPAN module that makes it a bit cleaner and
less hack-ish:
MasonX::Apache2Handler
http://search.cpan.org/dist/MasonX-Apache2Handler
Thanks
Carl

--

Philippe M. Chiasson m/gozer\@(apache|cpan|ectoplasm)\.org/ GPG KeyID : 88C3A5A5
http://gozer.ectoplasm.org/ F9BF E0C2 480E 7680 1AE5 3631 CB32 A107 88C3A5A5


signature.asc
Description: OpenPGP digital signature


Re: mod_perl hosting

2004-10-25 Thread Philippe M. Chiasson
David Hodgkinson wrote:
Hi all,
I'm currently hosting a site which is to be hosted elsewhere. It's got a
small mod_perl gadget embedded that does a little magic with charsets
and the Template Toolkit. The site runs to about 60G of bandwidth per
month and has a faar few mailing lists.
And thoughts on reasonable cost hosting?
There is a list of mod_perl friendly ISPs here :
http://perl.apache.org/help/isps.html

Philippe M. Chiasson m/gozer\@(apache|cpan|ectoplasm)\.org/ GPG KeyID : 88C3A5A5
http://gozer.ectoplasm.org/ F9BF E0C2 480E 7680 1AE5 3631 CB32 A107 88C3A5A5


signature.asc
Description: OpenPGP digital signature


Re: Apache::PerlRun - Constant subroutine redefined

2004-10-25 Thread Philippe M. Chiasson
Philippe M. Chiasson wrote:
David Radunz wrote:
[...]
I think that you have just uncovered a small bug in the unload_package() 
implementation
and I'd like to know exactly how you've reproduced this. After looking 
over code, it is
now clear to me that any namespace entry that has a name <= 2 characters 
long (e.g 'qs')
will not be deleted. That's a bug, and I expect to have it fixed both in 
mp2 and in Devel::Unload
soon.
I've found and fixed the bug.
I'll let you know when there is another version of Devel::Unload you can 
try out. 
It's available at the same place as before:
 http://svn.ectoplasm.org/projects/perl/Devel-Unload/
In the meantime,
could you please give me more information about how you have tested 
this, since the size of the
string doesn't matter AFAIK.

Thanks!
--

Philippe M. Chiasson m/gozer\@(apache|cpan|ectoplasm)\.org/ GPG KeyID : 88C3A5A5
http://gozer.ectoplasm.org/ F9BF E0C2 480E 7680 1AE5 3631 CB32 A107 88C3A5A5


signature.asc
Description: OpenPGP digital signature


RE: mod_perl hosting

2004-10-25 Thread Clayton Cottingham
Hub.org is pretty good too
 

> -Original Message-
> From: The Doctor [mailto:[EMAIL PROTECTED] 
> Sent: October 25, 2004 4:35 AM
> To: David Hodgkinson
> Cc: Modperl List
> Subject: Re: mod_perl hosting
> 
> On Mon, Oct 25, 2004 at 09:39:15AM +0100, David Hodgkinson wrote:
> > 
> > Hi all,
> > 
> > I'm currently hosting a site which is to be hosted 
> elsewhere. It's got 
> > a small mod_perl gadget embedded that does a little magic with 
> > charsets and the Template Toolkit. The site runs to about 60G of 
> > bandwidth per month and has a faar few mailing lists.
> > 
> > And thoughts on reasonable cost hosting?
> >
> 
> Look at http://www.nk.ca 
>  
> > Ta,
> > 
> > Dave
> > 
> > --
> > Dave Hodgkinson
> > CTO, Rockit Factory Ltd.
> > http://www.rockitfactory.com/
> > Web sites for rock bands
> > 
> > 
> > --
> > Report problems: http://perl.apache.org/bugs/ Mail list info: 
> > http://perl.apache.org/maillist/modperl.html
> > List etiquette: http://perl.apache.org/maillist/email-etiquette.html
> > 
> 
> -- 
> Member - Liberal International
> This is [EMAIL PROTECTED] Ici [EMAIL PROTECTED]
> God Queen and country! Beware Anti-Christ rising!
> Alberta Boot out Ralph Klein - Vote Liberal!!
> 
> --
> Report problems: http://perl.apache.org/bugs/ Mail list info: 
> http://perl.apache.org/maillist/modperl.html
> List etiquette: http://perl.apache.org/maillist/email-etiquette.html
> 
> 



-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Re: Customer looking for packages with the following

2004-10-25 Thread Perrin Harkins
On Fri, 2004-10-22 at 19:04, The Doctor wrote:
> The purpose of this
> software is to protect the information while it travels as an e-mail from
> your server to the client's computer. There seems to be plenty of
> e-mail-to-email encryption software around, but this was to only
> *form*-to-Email package I could find. Anything you find that will achieve
> this goal is acceptable.

Any one of the Crypt:: modules from CPAN would probably be a fine
replacement for this.  It's simple to do basic encryption/decryption of
data in perl.

> - double opt-in
> - double-opt out
> - browser-based administration (sending, viewing lists , etc.)
> - built-in HTML editor for creating newsletters
> - ability to import and export mailing lists
> - supports text and HTML formats, lets user choose
> - free tech support
> - full user tracking and reporting (who opens them, who unsubscribes, etc.)
> - bounce filters (removes from list after X bounces)
> - ability to schedule deliveries
> - can collect information (name etc) when the user subscribes, and use it
> to personalize emails
> - database is fully secure

You're not likely to find something already written that does all of
this in an acceptable way.  Most companies have very specific
requirements for this sort of application.  I'd suggest you find a
package that is close to what you need and in a language you can hack
and customize it.

- Perrin


-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Re: mod_perl hosting

2004-10-25 Thread The Doctor
On Mon, Oct 25, 2004 at 09:39:15AM +0100, David Hodgkinson wrote:
> 
> Hi all,
> 
> I'm currently hosting a site which is to be hosted elsewhere. It's got a
> small mod_perl gadget embedded that does a little magic with charsets
> and the Template Toolkit. The site runs to about 60G of bandwidth per
> month and has a faar few mailing lists.
> 
> And thoughts on reasonable cost hosting?
>

Look at http://www.nk.ca 
 
> Ta,
> 
> Dave
> 
> -- 
> Dave Hodgkinson
> CTO, Rockit Factory Ltd.
> http://www.rockitfactory.com/
> Web sites for rock bands
> 
> 
> -- 
> Report problems: http://perl.apache.org/bugs/
> Mail list info: http://perl.apache.org/maillist/modperl.html
> List etiquette: http://perl.apache.org/maillist/email-etiquette.html
> 

-- 
Member - Liberal International  
This is [EMAIL PROTECTED]   Ici [EMAIL PROTECTED]
God Queen and country! Beware Anti-Christ rising!
Alberta Boot out Ralph Klein - Vote Liberal!!

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



mod_perl hosting

2004-10-25 Thread David Hodgkinson
Hi all,
I'm currently hosting a site which is to be hosted elsewhere. It's got a
small mod_perl gadget embedded that does a little magic with charsets
and the Template Toolkit. The site runs to about 60G of bandwidth per
month and has a faar few mailing lists.
And thoughts on reasonable cost hosting?
Ta,
Dave
--
Dave Hodgkinson
CTO, Rockit Factory Ltd.
http://www.rockitfactory.com/
Web sites for rock bands
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html