Michael G Schwern wrote:
On Fri, Aug 12, 2005 at 08:47:30PM -0700, Stas Bekman wrote:
e.g. inside a handler t/response/TestAPI/access2.pm
Put it in there and didn't see any extra output in STDERR or error.log.
what test are you running?
t/TEST t/api/access2.t
error_log:
myip: 127.0.0.1
Or may be we could just:
Index: t/response/TestAPI/access2.pm
===
--- t/response/TestAPI/access2.pm (revision 225490)
+++ t/response/TestAPI/access2.pm (working copy)
@@ -98,9 +98,7 @@
# needed to test $r-
Michael G Schwern wrote:
On Fri, Aug 12, 2005 at 07:22:34PM -0700, Stas Bekman wrote:
Replacing "Allow from localhost" with "Allow from All" did it.
Why the localhost setting doesn't work?
Dunno. localhost looks ok from my end.
$ host localhost
localhost has address 127.0.0.1
$ hostname
Randy Kobes wrote:
On Sun, 31 Jul 2005, Randy Kobes wrote:
On Sun, 31 Jul 2005, Randy Kobes wrote:
[ ... ]
Here's a scaled-down version of the problem - I used
commands with single letters, as my Win32 console sent a \r\n after
each letter.
[ ... ]
sub handler {
my $c = shift;
$| = 1
Michael G Schwern wrote:
On Thu, Aug 11, 2005 at 11:09:06PM -0500, Randy Kobes wrote:
On Thu, 11 Aug 2005, Michael G Schwern wrote:
On Thu, Aug 11, 2005 at 04:21:18PM -0400, Philip M. Gollucci wrote:
What was in the t/error_log file?
Logs for running t/api/access2.t attached.
Does the
On 8/12/05, Jonathan Vanasco <[EMAIL PROTECTED]> wrote:
> working across the spectrum from design only to code only and in
> between , I realized what works and is efficient for me and the people
> I collaborate with -- and that is them making little pretty things and
> not being able to have any
'all I want' is pretty much the idea. Really a
lowest-common-denominator type thing.
I started out as a designer, then moved onto 'design tech' mediating
the arguments between the cto and the creative director.
two years ago my cto went on sabbatical to work on python and
twistedmatrix. i ha
> On 8/12/05, Perrin Harkins <[EMAIL PROTECTED]> wrote:
> > On Fri, 2005-08-12 at 15:45 -0500, David Nicol wrote:
> > > my $output = $TemplateCache{$template_name};
> > > $output =~ s/\[(\w+)\]/$InsertableVariables{$1}/g;
> > > print $output;
> >
> > The second it gets more complex t
On 8/12/05, Perrin Harkins <[EMAIL PROTECTED]> wrote:
> On Fri, 2005-08-12 at 15:45 -0500, David Nicol wrote:
> > my $output = $TemplateCache{$template_name};
> > $output =~ s/\[(\w+)\]/$InsertableVariables{$1}/g;
> > print $output;
>
> The second it gets more complex than that, sto
On Aug 12, 2005, at 4:45 PM, David Nicol wrote:
Just pick a naming convention and run what you get back from the
designers through the substitution operator. I like square brackets
around the variable names, since that convention has some history.
my $output = $TemplateCache{$template_na
On Fri, 2005-08-12 at 15:45 -0500, David Nicol wrote:
> my $output = $TemplateCache{$template_name};
> $output =~ s/\[(\w+)\]/$InsertableVariables{$1}/g;
> print $output;
The second it gets more complex than that, stop and use one from CPAN.
> SSI sounds like PHP.
PHP is a full-fl
On 8/12/05, Jonathan Vanasco <[EMAIL PROTECTED]> wrote:
> I want all of my templates in the apache process - they're going to be
> reused constantly and if they need to be changed i have no problem
> doing a graceful restart.
my $TemplateCache;
BEGIN{
opendir TD, "./templates.d";
On Fri, 2005-08-12 at 16:45 -0400, Jonathan Vanasco wrote:
> In terms of memory, I was thinking more along the lines of how much
> memory the HTML::Template and Text::TagTemplate modules take up
> themselves.
>
> I want all of my templates in the apache process - they're going to be
> reused co
In terms of memory, I was thinking more along the lines of how much
memory the HTML::Template and Text::TagTemplate modules take up
themselves.
I want all of my templates in the apache process - they're going to be
reused constantly and if they need to be changed i have no problem
doing a gra
On 8/12/05, Jonathan Vanasco <[EMAIL PROTECTED]> wrote:
>
> If/else and loops are already 'too much' -- I essentially just want
> variable substitution. I want designers to be able to work on a page
> and not need to know anything about the code/logic. Names go here,
> dates go here, etc. I ha
Jonathan Vanasco <[EMAIL PROTECTED]> writes:
[...]
> If/else and loops are already 'too much' -- I essentially just want
> variable substitution. I want designers to be able to work on a page
> and not need to know anything about the code/logic. Names go here,
> dates go here, etc. I have a
On Fri, 2005-08-12 at 16:07 -0400, Jonathan Vanasco wrote:
> This looks useful as well. I think i might bench HTML::Template and
> Text::TagTemplate against one another for memory usage.
HTML::Template can store the parsed templates on disk outside of the
apache process. Check the section on ca
This looks useful as well. I think i might bench HTML::Template and
Text::TagTemplate against one another for memory usage. (i'm sure
speed is comparable and barely noticeable. the more apache forks i can
get the better though)
If/else and loops are already 'too much' -- I essentially jus
Justin Wheeler wrote:
> 0x0807be3f in modperl_handler_perl_get_handlers (my_perl=0x82a90c0,
> handp=0x8137370, p=0x8566f90) at modperl_handler.c:579
> 579 CV *cv = modperl_mgv_cv(gv);
> (gdb) info locals
> cv = (CV *) 0x84a9260
> handler = (modperl_handler_t *) 0x8192c58
> gv =
On Fri, 2005-08-12 at 14:30 -0400, Jonathan Vanasco wrote:
> can someone suggest to me a templating system that does not have a
> mini-language or is 'executed' - or if it is, it is with low overhead
> -- i don't want to compile more into the mod_perl process than
> necessary
You basically just
That is pretty much EXACTLY what I was looking for. Thanks!
I really wanted to shy away from using anything TAL oriented, and
mason/template toolkit are great - but require too much overhead (as
i'm not making a mason/tt app, requiring them for rendering is just
silly).
OT: i know some pe
Have you tried Text::TagTemplate?
-Original Message-
From: Jonathan Vanasco [mailto:[EMAIL PROTECTED]
Sent: Friday, August 12, 2005 12:31 PM
To: mod_perl List
Subject: is there a templating system that
can someone suggest to me a templating system that does not have a
mini-langua
can someone suggest to me a templating system that does not have a
mini-language or is 'executed' - or if it is, it is with low overhead
-- i don't want to compile more into the mod_perl process than
necessary
i don't have a need for any of the mini-language features -- i think i
mostly need
On Fri, 12 Aug 2005 12:04:34 -0500
Boysenberry Payne <[EMAIL PROTECTED]> wrote:
> I a module written in an object orient syntax that does this:
>
> sub new {
>
> my $class = shift;
> my $this = {};
> bless( $this, $class );
> $this->_init( @_ );
>
> return $
I a module written in an object orient syntax that does this:
sub new {
my $class = shift;
my $this = {};
bless( $this, $class );
$this->_init( @_ );
return $this;
}
Is $this considered Global (i.e. am I going to run into the scoping
issues
of
That's it!
Thx a lot.
Cheers,
Mesel
-Original Message-
From: Perrin Harkins [mailto:[EMAIL PROTECTED]
Sent: Friday, August 12, 2005 16:25
To: Tesfaiesus, Mesel
Cc: modperl@perl.apache.org
Subject: Re: Apache::Singleton (sharing one object)
On Fri, 2005-08-12 at 15:40 +0200, Tesfai
On Fri, 2005-08-12 at 15:40 +0200, Tesfaiesus, Mesel wrote:
> I'm using the Aapache::Singleton Module and mod_perl 2.x/Apache2.x but I
> always seem to get a new Object as the properties are set to default
> every time.
It defaults to request scope, as described in the documentation. To
make it s
Shouldn't you be using the database itself to store the
state? Will Apache::Singleton instance replicate itself if
you were to run your application on multiple servers behind
load balancers (for scalability and fail-over purposes)?
If yes, you probably should usw Storage Module to save your
SQL obj
Hi,
I'm trying to write an application, that allows the user to generate
complex SQL Queries step by step.
Therefore I need to make the same SQL-object available over many
requests.
I'm using the Aapache::Singleton Module and mod_perl 2.x/Apache2.x but I
always seem to get a new Object as the
On Thu, Aug 11, 2005 at 11:09:06PM -0500, Randy Kobes wrote:
> On Thu, 11 Aug 2005, Michael G Schwern wrote:
>
> >On Thu, Aug 11, 2005 at 04:21:18PM -0400, Philip M. Gollucci wrote:
> >>What was in the t/error_log file?
> >
> >Logs for running t/api/access2.t attached.
>
> Does the suggestion at
30 matches
Mail list logo