Badai Aqrandista wrote:
My mod_perl web app uses memcached to cache most of the (MySQL) database
query results and as the session storage (Apache::Session::Memcached).
Would it be a problem for your application if you suddenly lost all of your
session data? That could happen with memcached
Michael G Schwern wrote:
On Mon, Aug 15, 2005 at 05:54:53PM -0700, Stas Bekman wrote:
Where does it go then? Are you sure you've applied the patch and the warn
statement is there?
Grepping the source tree the only instance of "myip" is in
t/response/TestAPI/access2.pm which I put in there
On Mon, Aug 15, 2005 at 05:54:53PM -0700, Stas Bekman wrote:
> Where does it go then? Are you sure you've applied the patch and the warn
> statement is there?
Grepping the source tree the only instance of "myip" is in
t/response/TestAPI/access2.pm which I put in there according to your
instruct
Badai Aqrandista wrote:
My mod_perl web app uses memcached to cache most of the (MySQL) database
query results and as the session storage (Apache::Session::Memcached).
Would it be a problem for your application if you suddenly lost all of
your session data? That could happen with memcached.
On Fri, 12 Aug 2005, Stas Bekman wrote:
OK, I wrote a test case that reproduces the problem.
If you run:
perl Makefile.PL
make test
things work, but if you do:
t/TEST -start
t/TEST -run
the process starts spinning in the getline() call, as $sock->recv doesn't
fail.
[ ... ]
Here is a rewri
On 8/15/05, Matisse Enzer <[EMAIL PROTECTED]> wrote:
> Just a data point:
> I'm the maintainer of Text::TagTemplate and will soon release a version
> that lets you set the regexes that define the start and end of a tag.
FWIW, I have just uploaded TipJar::Template::fill to CPAN. It
is an abst
UPDATE: I hadn't done much testing when I wrote this... Well, after a bit
more testing they don't wait for each other apparently...
Sorry for filling up your mailbox...
But the actual question remains: How to optimize this web app? I'll send
more questions later with more details...
Thanks f
Hi all,
My mod_perl web app uses memcached to cache most of the (MySQL) database
query results and as the session storage (Apache::Session::Memcached). When
doing performance tests with httperf, I found that apache processes waits
for each other. I mean: all requests are accepted (apache forks
Michael G Schwern wrote:
On Fri, Aug 12, 2005 at 09:19:13PM -0700, Stas Bekman 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 yo
First, give dprofpp the flag that makes it sort by wall time, not by CPU
time. Otherwise, things that take most of the time in the average program,
like I/O, will appear to be very fast.
Second, make sure you initialize the debugger before loading any of the
code that you want to profile, l
On Mon, 15 Aug 2005 11:42:52 -0400
Perrin Harkins <[EMAIL PROTECTED]> wrote:
> Frank Wiles wrote:
> > Give Apache::SmallProf a try. Where Apache::DProf shows you the
> > subroutine calls, SmallProf will show you a profile on a line by
> > line basis. This should help you zero in on what is
%Template_vars = qw (
misattribution microsoft
correction macromedia
mailinglist modperl@perl.apache.org
product dreamweaver
);
$Template_vars{retractor} = 'David L. Nicol';
$TEMPLATE = <
On 15 Aug 2005, at 23:02, David Nicol wrote:
(getting tired of this thread)
It's also now firmly off topic of the mod_perl list!
Dave // Having spent most of today explaining the principle of doing
\\ the least possible computation at run time...
On Mon, 2005-08-15 at 17:02 -0500, David Nicol wrote:
> How do you get, for instance, netscape composer, to generate a "span" tag?
I don't think people use Netscape Composer for real websites. I
sometimes use it for writing documentation, but that's about it.
> Do the industrial GUI HTML tools a
On 8/15/05, Perrin Harkins <[EMAIL PROTECTED]> wrote:
> On Mon, 2005-08-15 at 15:48 -0500, David Nicol wrote:
>> Tell the designer to make the variable substitution names red,
>> and specify in your template system configuration
> > target_regex => qr{\s*([^<]+?)\s*};
> You won't g
On Mon, 2005-08-15 at 17:18 -0400, Jonathan Vanasco wrote:
> Yeah, I never mentioned that... although it was mostly because I
> assumed that most templating languages would provide for that.
It's actually an unusual thing to want. Valid XHTML templates are not
guaranteed to look correct in a br
On Fri, Aug 12, 2005 at 09:19:13PM -0700, Stas Bekman 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?
On Aug 15, 2005, at 4:45 PM, Perrin Harkins wrote:
Since Petal (and HTML_Tree, but that's a dead project) are the only
ones
that do this at all, I'd say most people are doing just fine without
templates that are valid XML. I don't remember you mentioning this
requirement earlier. If you had,
On Mon, 2005-08-15 at 15:48 -0500, David Nicol wrote:
> If the target regex was set to something like
>
> use hypothetical_substituting_template_system
> template_vars_hashref => \(our %TemplateVars),
> target_regex => qr{\s*([^<]+?)\s*};
>
> for example, the designer wou
On 8/15/05, David Hodgkinson <[EMAIL PROTECTED]> wrote:
> > HTML::Template got ruled out because the only way to get templates
> > to render as xhtml valid is to use info as comments
>
> Huh? you want to validate templates? A template is just that. What
> it renders to should be validated!
By ha
On Mon, 2005-08-15 at 16:39 -0400, Jonathan Vanasco wrote:
> What the template renders to better damn well be valid -- but if I
> use a templating system that allows for invalid templates, then it
> becomes my job to restructure them to be valid in addition to doing
> the logic and substituti
Yep. Validate templates.
What the template renders to better damn well be valid -- but if I
use a templating system that allows for invalid templates, then it
becomes my job to restructure them to be valid in addition to doing
the logic and substitution. Thats a mess.
I want designers
On 15 Aug 2005, at 06:06, jonathan vanasco wrote:
HTML::Template got ruled out because the only way to get templates
to render as xhtml valid is to use info as comments
Huh? you want to validate templates? A template is just that. What
it renders to should be validated!
On Mon, 15 Aug 2005, David Nicol wrote:
>
> I'm seriously considering publishing a Template::Substitution::KISS or
> something like that in a futile attempt to piss higher than Uri Guttman.
Just a data point:
I'm the maintainer of Text::TagTemplate and will soon release a version
that lets yo
On 8/15/05, jonathan vanasco <[EMAIL PROTECTED]> wrote:
> Petal templates do look nice, because
> Hola, Mundo!
> is valid xhtml AND lets you have mockup text that is then replaced
>
> Unfortunately, petal supports all the smart features of tal like if/
> loops (stuff I didn't want in there
Philip M. Gollucci wrote:
> Nikolay Ananiev wrote:
>
>> Hello,
>> Is there any way to get the SERVER_SOFTWARE string in mod_perl 2?
>> I tried $r->psignature, but this doesn't work if ServerSignature is
>> Off in
>> httpd.conf.
>>
>>
> my $server_software = $ENV{SERVER_SOFTWARE};
Apache2::Serve
Nikolay Ananiev wrote:
Hello,
Is there any way to get the SERVER_SOFTWARE string in mod_perl 2?
I tried $r->psignature, but this doesn't work if ServerSignature is Off in
httpd.conf.
my $server_software = $ENV{SERVER_SOFTWARE};
--
END
Hello,
Is there any way to get the SERVER_SOFTWARE string in mod_perl 2?
I tried $r->psignature, but this doesn't work if ServerSignature is Off in
httpd.conf.
> I saw that.. The link of perl.apache.org is blank though right ?
I'm not quite with the program yet... what do you mean?
httpd.apache.org/test links to perl.apache.org/Apache-Test.
--Geoff
Terr!
I used CGI.pm for my web development. Now I trying to migrate to
modperl, and so i look replacement for CGI-module, because using CGI for
html-creating is no point when there is a Apache::Request involved for
managing requests. Maybe someone can suggest something similar for
CGI.pm-styl
Geoffrey Young wrote:
I believe anyone that is an httpd committer can change it.
I think that's right.
speaking of which, the real Apache-Test homepage is here
http://perl.apache.org/Apache-Test/
anyone looking for something to contribute back might spend some time
sprucing it up - IIRC t
Philip M. Gollucci wrote:
> Jim Martinez wrote:
>
>> Who maintains http://httpd.apache.org/test/ ?
>>
>> There's a image on it that reads "ApacheCon Europe 2005" that links to
>> the
>> ApacheCon US 2005 (via a redirect).
>>
>> ApacheCon Europe 2005 was, according to the web site, held around Ju
Frank Wiles wrote:
Give Apache::SmallProf a try. Where Apache::DProf shows you the
subroutine calls, SmallProf will show you a profile on a line by line
basis. This should help you zero in on what is causing the slowness.
I'd say just the opposite in most cases. Usually you want to see
Badai Aqrandista wrote:
I doubt the ApacheHandler::handler subroutine runs that long, because it
only shows the accumulated time used by other subroutines it calls. That
makes the profile isn't really accurate. How do I make it to show the
statistics of the subroutines called from the handler?
On Mon, 15 Aug 2005 14:59:00 +1000
"Badai Aqrandista" <[EMAIL PROTECTED]> wrote:
> I doubt the ApacheHandler::handler subroutine runs that long, because
> it only shows the accumulated time used by other subroutines it
> calls. That makes the profile isn't really accurate. How do I make it
> to
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
[...]
> This was apparently caused by code like this
>
> use File::Temp qw();
> my $fh = File::Temp->new();
> File::Temp::unlink0($fh, $fh->filename);
> print "Content-Type:text/plain\n\n";
>
> On Win32 this would delay unlinking the temp fil
Don't think that works, though. The only way I can get a cookie being
delivered to the browser is by explicitly returning a html page
containting a meta refresh tag using a subroutine like this:
sub doRefresh {
my ( $url, $delay, $cookie ) = @_;
my $name = $cookie->name;
my $value = $coo
37 matches
Mail list logo