confused. What is '$request' in that example? If you
mean it's the request object, then that doesn't do what I expect.
No, it's a simple counter. It's just a variable in some module that
counts requests.
--
Bill Moseley [EMAIL PROTECTED]
, is there a way, via mod-perl, of a
request knowing how many requests have been served by the current
child?
$request++;
That's what I do in some handler, and then I log it along with the PID.
--
Bill Moseley [EMAIL PROTECTED]
on the server.
--
Bill Moseley [EMAIL PROTECTED]
(unmodified) for the simplest sites.
Anyone using PubCookie?
http://www.washington.edu/pubcookie/
--
Bill Moseley [EMAIL PROTECTED]
Searching the archives I don't see much discusson of Sys::Signal. Is it
still needed to restore sig handlers?
Thanks,
--
Bill Moseley [EMAIL PROTECTED]
On Sunday 22 December 2002 03:49, Ged Haywood wrote:
Hi there,
On Sat, 21 Dec 2002, eric lin wrote:
The image file:///home/enduser/mytest.jpg cannot be displayed, because
it contains errors
I think I understand your question but I am not sure of it.
It seems that you have sent a
Linux only?
oops, I meant to write:
And sent messages about using Windows to a Linux list
--
Bill Moseley [EMAIL PROTECTED]
At 11:17 AM 12/20/02 +0200, Issac Goldstand wrote:
>>>>
http://www.perl.com/pub/a/2002/12/18/hohoho.html>http://www.perl.com/pub/a/2002/12/18/hohoho.html
That sounds a lot like Perrin's story. Didn't he save Christmas one year?
--
Bill Moseley
mailto:[EMAIL PROTECTED]
' = {
Options = '+ExecCGI',
SetHandler = 'cgi-script',
},
},
},
},
};
__END__
--
Bill Moseley
mailto:[EMAIL PROTECTED]
this anyway). BTW --
what would you recommend for caching the md5 strings. Cache::Cache or
DBM? I suppose a Cache::Cache file cache would be the easiest.
Any other ideas on the easy to implement side?
--
Bill Moseley [EMAIL PROTECTED]
symlinks.
If the spammers put in the work to figure out the word by check-summing the
images I can use imagemagic to modify the images -- that could be a nice
mod_perl handler.
See any glaring holes?
--
Bill Moseley
mailto:[EMAIL PROTECTED]
logout page.
--
Bill Moseley [EMAIL PROTECTED]
it for. Yahoo is the most extreme
example of a performance-driven situation.
I also wonder if it's cheaper/easier to hire and train PHP programmers that
Perl programmers.
--
Bill Moseley
mailto:moseley;hank.org
log a history of changes, but it doesn't have all the features of
cvs.
Is anyone using cvs to manage updates made with web-based forms?
--
Bill Moseley
mailto:moseley;hank.org
/lib/perl5 before make install.)
--
Bill Moseley
mailto:moseley;hank.org
and reporting. Currently, billing is by invoice, but
we would like an on-line payment option.
Anyone know of something similar?
Thanks,
Bill Moseley
mailto:[EMAIL PROTECTED]
between requests and only
reopen if stat() shows that the file was renamed. So far been lucky.
--
Bill Moseley
mailto:[EMAIL PROTECTED]
parameters.
Anyone have a good way of dealing with this?
Thanks,
P.S. and thanks for the discussion so far. It's been very interesting.
--
Bill Moseley
mailto:[EMAIL PROTECTED]
(mostly controller code)
that does a good job of M and C separation, and good ways to propagate
errors back to the C?
--
Bill Moseley
mailto:[EMAIL PROTECTED]
to get
an idea how it acts under load. ab to the rescue, I suppose.
Thanks much,
--
Bill Moseley
mailto:[EMAIL PROTECTED]
of the best books on my bookshelf. I
have a couple of Apache-specific books and I learned a lot more about
Apache from the Eagle than those. The cook book has been a great addition.
--
Bill Moseley
mailto:[EMAIL PROTECTED]
with a
slow site or if they do something silly like check referer on requests.
Bill Moseley
mailto:[EMAIL PROTECTED]
didn't use the underscore as well.
And the design that won didn't use one. It's a design -- it doesn't have
to be accurate to the name.
Besides, if it changes does it mean that the winning design received no
votes? ;)
--
Bill Moseley
mailto:[EMAIL PROTECTED]
Sorry for the Way Off Topic, and sorry if I missed this on the list already:
http://www.google.com/programming-contest/
They say C++ or Java. What, no Perl?
--
Bill Moseley
mailto:[EMAIL PROTECTED]
any manager's mind on the technology they pick to run their
applications.
Of course, most people here have access to big pipes. So, there's always
bulk mail ads. I got mail just today saying that it's an effective way to
advertise. In fact I got about ten of those today!
--
Bill Moseley
: LWP HTTP/1.1 support is experimental
--
Bill Moseley
mailto:[EMAIL PROTECTED]
headers
don't show up.
--
Bill Moseley
mailto:[EMAIL PROTECTED]
/Handling_Server_Timeout_Cases_an.html
--
Bill Moseley
mailto:[EMAIL PROTECTED]
At 05:17 PM 12/30/01 -0600, Ryan Thompson wrote:
use Template;
my %vars;
$var{foo} = bar; # About 30 scalars like this
.
.
my $tt = new Template({INTERPOLATE = 1});
Cache your template object between requests.
--
Bill Moseley
mailto:[EMAIL
.
http://search.apache.org/docs-dev/ (this URL is temporary!)
Bill Moseley
mailto:[EMAIL PROTECTED]
users might not have cookies enabled.
Bill Moseley
mailto:[EMAIL PROTECTED]
as a community (of programmers not designers) we could hire a
professional designer to help develop our brand. Cool web site. Some
print ads in the trades. What's a small amount in dues to the Association
of Mod_perl Programmers compared to increase of mod_perl work overall?
/crazy idea
Bill
per sec = 524
Package C7 - Cache::SharedMemoryCache
Sets per sec = 42
Gets per sec = 29
Mixes per sec = 32
Bill Moseley
mailto:[EMAIL PROTECTED]
At 08:19 AM 12/06/01 -0800, Paul Lindner wrote:
Ok, hit me over the head. Why wouldn't you want to use a caching proxy?
BTW -- I think where the docs are cached should be configurable. I don't
like the idea of the document root writable by the web process.
Bill Moseley
mailto:[EMAIL
At 10:33 AM 12/06/01 -0800, Paul Lindner wrote:
On Thu, Dec 06, 2001 at 10:04:26AM -0800, Bill Moseley wrote:
At 08:19 AM 12/06/01 -0800, Paul Lindner wrote:
Ok, hit me over the head. Why wouldn't you want to use a caching proxy?
Apache::CacheContent gives you more control over the caching
on this list?
Just kidding.
Bill Moseley
mailto:[EMAIL PROTECTED]
02 747M 745M cpu14 27.1H 47.57% wusage
Well at least after another 8 hours of CPU it's not leaking ;)
Bill Moseley
mailto:[EMAIL PROTECTED]
CPU COMMAND
17223 operator 1 442 747M 745M cpu14 19.2H 45.24% wusage
Bill Moseley
mailto:[EMAIL PROTECTED]
failing to work, too)
Bill Moseley
mailto:[EMAIL PROTECTED]
: 0.069 seconds
# Run time: 0.074 seconds
This is pushing the limit for little old swish, but here's indexing a few
more very small xml files (~150 bytes each)
3830016 files indexed. 582898349 total bytes.
Elapsed time: 00:48:22 CPU time: 00:44:01
/plug
Bill Moseley
mailto:[EMAIL PROTECTED]
very well designed. To me, usability is
the main design goal. Keep up the good work!
Does it need to render well in old browsers? (e.g. netscape 4.08)
There's a lot of old browsers out there, but maybe anyone looking at
mod_perl would be a bit more up to date...
Bill Moseley
mailto:[EMAIL
At 11:43 AM 11/23/2001 +, Jean-Michel Hiver wrote:
PROBLEM HERE
A head request should * NOT * return the body of the document
You should check $r-header_only in your handler.
http://thingy.kcilink.com/modperlguide/correct_headers/3_1_HEAD.html
Bill Moseley
mailto:[EMAIL PROTECTED]
* Your password was incorrect
Has anyone else come across the same requirement/issue, and how have you
solved it?
Apache::AuthCookieURL does that. IIRC, it sets a cookie with the failure
reason that's returned from authen_cred call.
Bill Moseley
mailto:[EMAIL PROTECTED]
be able to run as standalone CGIs...
Am I right?
Right, maybe that's a good thing ;) (I acutally mix mod_perl code in
applicatins that will run under both.)
Bill Moseley
mailto:[EMAIL PROTECTED]
. Maybe I'll have better
luck repairing my car today.
Bill Moseley
mailto:[EMAIL PROTECTED]
court, and it's
too little to get much help from lawyers in a law suit, I'd guess. Ask
them if they want to pay partially in hardware and you might get a good
idea of their direction ;).
Good luck,
Bill Moseley
mailto:[EMAIL PROTECTED]
areful about session hijacking.
Bill Moseley
mailto:[EMAIL PROTECTED]
). If
it comes back with a cookie then they are enabled.
Bill Moseley
mailto:[EMAIL PROTECTED]
make install libxml2?
> which xml2-config
/usr/local/bin/xml2-config
>>>>
Bill Moseley
mailto:[EMAIL PROTECTED]
method, and why?
/verbose
Thanks very much,
Bill Moseley
mailto:[EMAIL PROTECTED]
do need a way to read every key in the
store. Order is not important.
Bill Moseley
mailto:[EMAIL PROTECTED]
perl -V in quotes to use a
phrase search it will find what you are looking for most likely, even if
the dash is not indexed.
Bill Moseley
mailto:[EMAIL PROTECTED]
to make this easy and portable from project to
project?
Bill Moseley
mailto:[EMAIL PROTECTED]
: and _ are ok in words, but you have to think carefully about
others. It's more flexible to split the words and use phrases in many cases.
Bill Moseley
mailto:[EMAIL PROTECTED]
setting the header, and so on.
Bill Moseley
mailto:[EMAIL PROTECTED]
current modules that do this?
Another thing I find odd: this server has three virtual hosts. In the
second and third VH's logs I find requests for files found on the first,
default, VH. I've logged the Host: header and indeed it was there. Odd.
Bill Moseley
mailto:[EMAIL PROTECTED]
down responses as long as I don't tie up too
many of my processes. If they ignore FORBIDDEN maybe they will see the
timeouts.
Time to look at the Throttle modules, I suppose.
Bill Moseley
mailto:[EMAIL PROTECTED]
.
Is that a reasonable thing to do, and if so, is there anything else you
would suggest?
Thanks,
Bill Moseley
mailto:[EMAIL PROTECTED]
all my icons and mime.types files from 1.3.12 will
be just fine.
Bill Moseley
mailto:[EMAIL PROTECTED]
1.26
I use perl sections farther down in httpd.conf, but I seem to need it at
the very top. If a PerlTaintCheck On comes before the perl/perl then I
get that error.
Why is that?
Bill Moseley
mailto:[EMAIL PROTECTED]
-10
Failed 3/10 tests, 70.00% okay
In error_log:
[Fri Aug 3 16:27:16 2001] [error]
Can't locate object method inh_tree via package Devel::Symdump
at /data/_g/lii/apache/1.26/mod_perl-1.26/blib/lib/Apache/Status.pm line
222, fh1b chunk 1.
Do I need an updated Devel::Symdump?
Bill
their own way. I'm very disappointed that I had to cancel after adding
everything up.
Bill Moseley
mailto:[EMAIL PROTECTED]
, working less, or having more, eh, sleep, either.)
Bill Moseley
mailto:[EMAIL PROTECTED]
I assume everyone saw this... ;)
http://www.oreilly.com/parrot/
Bill Moseley
mailto:[EMAIL PROTECTED]
what that man page
is describing. It's not a CGI script if there's not a content-type: header
sent. And the docs are not implying that you can turn on PerlSendHeader
and then go through all your CGI scripts and remove the print
"Content-type: text/html\n\n" lines.
Bill Moseley
mailto:[EMAIL PROTECTED]
::SharedMemoryCache, and
Cache::SizeAwareFileCache.
When you say successor to File::Cache does that means File::Cache will not
be maintained as a separate module anymore?
Have you though about making SharedMemoryCache flush to disk if it becomes
full but before it's time to expire the data?
Bill
oup and go for the group rate?
Is there a BOF schedule yet?
Bill Moseley
mailto:[EMAIL PROTECTED]
If you have a database entry that says they are logged out why don't you see this when they send their request and return a "Sorry, logged out" page?
I wouldn't count on doing anything on the client side.
Bill Moseley
mailto:[EMAIL PROTECTED]
clients -- if even then.
If your problem is that some clients don't use cookies, then perhaps
Apache::AuthCookieURL might help.
Bill Moseley
mailto:[EMAIL PROTECTED]
same thing that happens when you have a timeout.
So, you can catch SIGTERM and then have three seconds to clean up. You
won't see a SIGPIPE unless you try to print in that three second gap.
Does it do the same thing under NT?
Bill Moseley
mailto:[EMAIL PROTECTED]
pes.
I'm scratching my head at this point. Any ideas what to look for?
Bill Moseley
mailto:[EMAIL PROTECTED]
{ $aborted++ };
Then mod_cgi I'm still unclear on.
The cgi application does receive the SIGPIPE... well it did 1/2 hour ago
before I rebooted my machine. Now I can't seem to catch it.
But, printing again after the SIGPIPE will kill the CGI script.
Bill Moseley
mailto:[EMAIL PROTECTED]
/File::Cache -- it
seemed better than using an Apache child to do that clean up work. But on
Solaris /tmp is carved out of swap. Do you think it's risky to use /tmp
this way (since full /tmp could use up all swap)?
Thanks very much,
Bill Moseley
mailto:[EMAIL PROTECTED]
::Cache::_GET_PARENT_DIRECTORY('/') called at
/data/_g/lii/perl_lib/lib/site_perl/5.005/File/Cache.pm line 962
But I haven't seen it happen since then.
Bill Moseley
mailto:[EMAIL PROTECTED]
require a few seconds of downtime to switch live (and
back again if needed)?
Then I wonder which CPAN module I'll forget to install...
Bill Moseley
mailto:[EMAIL PROTECTED]
At 09:59 AM 01/10/01 +0100, [EMAIL PROTECTED] wrote:
NEVERTHELESS, I get 404 when I enter
http://myserver//hello/world
and it is looking in the htdocs directory according to the error_log.
Can you please post the entire error_log message.
Bill Moseley
mailto:[EMAIL PROTECTED]
and instead use a temp file when
creating and then do an (atomic?) rename?
Thanks very much,
Bill Moseley
mailto:[EMAIL PROTECTED]
was going to ask you why or what makes it "faster" and if that applies to
SWISH-E 2.x, but that's a bit too off topic. Maybe in separate email.
BTW: http://homepage.mac.com/pauljlucas/software/swish/man/ seems broken.
Bill Moseley
mailto:[EMAIL PROTECTED]
bin/perl -w
use strict;
$|=1;
warn "In $0 pid=$$\n";
while (1) {
my @headers = ();
while ( ) {
chomp;
if ( $_ ) {
warn "$0: Read '$_'\n";
push @headers, $_;
} else {
for ( @headers ) {
warn "$0:
every five minutes
from a cron job and if anything changes, touch the top level files and then
run ttree again.
I'd like this because I'm generating cobarnded pages with mod_perl, and
many of the pages are really static content.
Bill Moseley
mailto:[EMAIL PROTECTED]
child that won't die even with kill -9, is it?
Eagerly awaiting,
Bill Moseley
mailto:[EMAIL PROTECTED]
ce? Does mod_cgi explicitly close the socket file descriptor(s)
before forking?
Thanks,
Bill Moseley
mailto:[EMAIL PROTECTED]
constant DEBUG_QUERY = 1; # ON
use constant DEBUG_QUERY_PARSED = 0;
warn $query if DEBUG_QUERY || DEBUG_QUERY_PARSED;
Bill Moseley
mailto:[EMAIL PROTECTED]
}
}
sub loop {
$|=1;
my $x;
warn "in child loop $$\n";
sleep 1, ++$x, print "$x\n" while 1;
}
Bill Moseley
mailto:[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
before sunrise.
Sure is nice to have you back, Stas! ;)
Bill Moseley
mailto:[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
not Apache::Util::ht_time()?
Bill Moseley
mailto:[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
at a different site?
I am logging
information about the user to a database when they login to a site, and
I need to clean up this data when they leave.
Define "leave" and you will have the answer.
All you can do is set an inactivity timeout, I'd suspect. cron is your
friend in these cases.
Chee
site
under their userid, but I can't allow them to enter if they are currently
logged in from elsewhere.
Why? What if they want two windows open at the same time? Is that
allowed? That design limitation sounds like it's going to make trouble.
Bill M
trying to explain (over three
emails now) the problem to their customer support.
Bill Moseley
mailto:[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
applications like mod_perl handlers -- could run as CGI on other
servers, but when they want speed they are ready to use mod_perl.
Anyway, does a mod_perl emulator for CGI exist?
Bill Moseley
mailto:[EMAIL PROTECTED
, but what effect does the presence of a query string
in the URL have on this?
Bill Moseley
mailto:[EMAIL PROTECTED]
ed in Apache and end up with a reasonably
light-weight perl enabled Apache? I understand you would not have
Dynaloader support, but it might be nice for simple rewriting.
Curiously yours,
Bill Moseley
mailto:[EMAIL PROTECTED]
thing like the untested:
my $uri = $r-prev-uri;
my $query = $r-prev-args;
$uri = "$uri?$query" if $query;
print qq[INPUT TYPE=hidden NAME=destination VALUE="$uri"];
Bill Moseley
mailto:[EMAIL PROTECTED]
At 07:38 PM 11/15/00 -0600, Les Mikesell wrote:
- Original Message -
From: "Bill Moseley" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 15, 2000 12:30 PM
Subject: Microperl
I don't build mod_rewrite into a mod_perl Apache as I like rewriting with
mod
on a budget and no boss to pay my way, which conference will
have more mod_perl?
And for my 2 cents, I'd be interested in hearing about mod_perl and
designing for scalability, whatever that means. Or was that the
mod_backhand talk I missed?
Bill Moseley
mailto:[EMAIL PROTECTED]
kup.
Ok, possibly 8 chars in Linux and 16 under Solaris. Anything else to
consider regrading the maximum number of files in a given directory?
How about issues regarding file size? If you had larger files/records
would DBM or RDBMS provider larger cache sizes?
Bill Moseley
mailto:[EMAIL PROTECTED]
sing /proc/pid/statm to show shared and private memory
under these same test showed that pre-loading was a big win. So it seems
like a Solaris issue.
Bill Moseley
mailto:[EMAIL PROTECTED]
is finding a good way to detect them...
And in my experience blocking doesn't always mean the requests from that
spider stop coming ;)
Bill Moseley
mailto:[EMAIL PROTECTED]
oo. Ten megs a
child will add up. It doesn't really make sense to me, but that's what
pmap is showing.
Maybe this isn't that interesting. Anyway, I'll try a non DSO Apache and
see if it makes a difference, and also try with an Apache that forks off
more clients than just one, but I can't imagine that making a difference.
Later,
Bill Moseley
mailto:[EMAIL PROTECTED]
robots.txt that, if followed, would add that IP to the blocked list. It
was interesting to see one spider get caught by that trick because it took
thousands and thousands of 403 errors before that spider got a clue that it
was blocked on every request.
Thanks,
Bill Moseley
mailto:[EMAIL PROTECTED]
1 - 100 of 178 matches
Mail list logo