Re: Post processing Perl output through PHP

2001-07-15 Thread barries
On Sun, Jul 15, 2001 at 10:49:30AM -0400, darren chamberlain wrote: [EMAIL PROTECTED] [EMAIL PROTECTED] said something to this effect on 07/14/2001: I am having a nightmare trying to get some PHP into the output of a Perl script. PHP. I've heard rumours of Apache 2.0 allowing multiple

$r-finfo stability? [Was: lookup_uri() returns 200 when 404 expected]

2001-07-06 Thread barries
On Fri, Jul 06, 2001 at 11:53:52AM +0100, Paul Sharpe wrote: Presumably $s-finfo would be more efficient? Yes, if it's stable for your config. I've had coredumps with it in the past some time and have since stayed away from it by habit. 'course that was several versions of mod_perl and perl

Re: $r-finfo stability? [Was: lookup_uri() returns 200 when 404 expected]

2001-07-06 Thread barries
On Fri, Jul 06, 2001 at 09:54:12AM -0400, Geoffrey Young wrote: -Original Message- From: barries [mailto:[EMAIL PROTECTED]] Sent: Friday, July 06, 2001 9:38 AM To: Paul Sharpe Cc: [EMAIL PROTECTED] Subject: $r-finfo stability? [Was: lookup_uri() returns 200 when 404

Re: lookup_uri() returns 200 when 404 expected

2001-07-05 Thread barries
On Thu, Jul 05, 2001 at 03:21:12PM +0100, Paul Sharpe wrote: Here's my handler... package Foo::Test; use strict; use warnings; use Apache::Constants qw(:common HTTP_OK); sub handler { my $r = shift; my $uri = 'foo.html'; $r-content_type('text/plain'); $r-send_http_header;

Re: lookup_uri() returns 200 when 404 expected

2001-07-05 Thread barries
On Thu, Jul 05, 2001 at 04:03:00PM +0100, Paul Sharpe wrote: barries wrote: On Thu, Jul 05, 2001 at 03:21:12PM +0100, Paul Sharpe wrote: Here's my handler... package Foo::Test; use strict; use warnings; use Apache::Constants qw(:common HTTP_OK); sub handler { my

Re: lookup_uri() returns 200 when 404 expected

2001-07-05 Thread barries
On Thu, Jul 05, 2001 at 04:57:13PM +0100, Paul Sharpe wrote: What would happen if the URI translated to something other than a file e.g. CGI? You get the filename of the script. - Barrie

Re: [OT] mod_mime_magic in perl?

2001-05-31 Thread barries
On Wed, May 30, 2001 at 05:21:22PM +0200, Issac Goldstand wrote: Does anyone know if there is a perl module that implements the features of Apache's mod_mime_magic module? (e.g., you give it a file handle, or data and it tries to autodetect the correct mime-type) Here's a module (File::Type)

Re: [OT] mod_mime_magic in perl?

2001-05-31 Thread barries
On Thu, May 31, 2001 at 03:08:03PM +0200, Issac Goldstand wrote: Aside from that lack, it's perfect for me. Feel like patching in a magic-file parser? I'm swamped at the moment. - Barrie

Re: Lightweight CGI.pm for PerlHandlers

2001-05-19 Thread barries
On Fri, May 18, 2001 at 11:28:06PM -0400, Neil Conway wrote: Is there a simple (fast, light) module that generates HTML in a similar style to CGI.pm, for use with mod_perl? You can check out HTML::EasyTags[1] and HTML::TagMaker[2]. They're all kinda heavyweight, the first requires OO

Re: authorization and mod_perl

2001-05-16 Thread barries
On Wed, May 16, 2001 at 12:07:28PM -0400, Vivek Khera wrote: I don't think location takes a glob pattern. A nit: it can. Directory, Location and File can all take shell-like globs using ?, *, and []/[!...]/[^...] operators, looks like. No equivalent to {a,b,c} alternation, AFAICS. - Barrie

Re: Cutting down on the DEBUG bloat...

2001-05-11 Thread barries
On Thu, May 10, 2001 at 03:28:16PM -0700, Doug MacEachern wrote: http://perl.apache.org/~dougm/condsub-0.01.tar.gz see test.pl for the examples. i'm open to names/interface changes I've had good luck (on non performance critical code) doing something like (from memory): use

Re: Cutting down on the DEBUG bloat...

2001-05-10 Thread barries
On Thu, May 10, 2001 at 03:28:16PM -0700, Doug MacEachern wrote: On Tue, 10 Apr 2001, Paul Lindner wrote: DBG debug('whoa there boy'); FWIW, you may find the opcode-identical debug 'whoa there boy' if DBG ; more readable. Don't go to values other than 0 or 1 (not even 0 or 1) for

Re: an unusual [job request] + taking mod_perl to the commercial world

2001-04-29 Thread barries
On Sun, Apr 29, 2001 at 01:37:52PM +0800, Gunther Birznieks wrote: At 09:06 AM 4/28/01 -0400, barries wrote: Not sure either, except that this would be more targeted towards specific research projects, as opposed to the build a venue and they will come SourceXchange model. I guess my

Re: an unusual [job request] + taking mod_perl to the commercial world

2001-04-28 Thread barries
On Sat, Apr 28, 2001 at 12:16:18PM +0800, Gunther Birznieks wrote: If the person being sponsored by grants is a foreigner to the US, but wishes to be in the US Agreed, but I don't think that's a roadblock, just a situation to be dealt with. mod_perl infrastructure seems to be the kind of

Re: an unusual [job request] + taking mod_perl to the commercial world

2001-04-27 Thread barries
On Fri, Apr 27, 2001 at 11:44:49PM +0800, Stas Bekman wrote: Since mod_perl is an open source, it's a tough quest. Basically what I want is get some company that will benefit from me working on open source project full time and pay me a salary. Of course it's probably hard to get a full

Re: [OT] mod_perl 2 question...

2001-04-26 Thread barries
Not OT at all... On Thu, Apr 26, 2001 at 06:24:41PM +0200, Issac Goldstand wrote: Can any of the mod_perl 2 people provide some feedbak on this, as I'm sure you guys have looked at this much deeper than I have. Well, I'm not a mod_perl 2 person, but I can say that PerlInterpScope (it's been

Re: Sendmail or not?

2001-04-08 Thread barries
On Sun, Apr 08, 2001 at 12:07:01PM +0200, Per Einar wrote: What I was suggesting was that I could do the SMTP connection myself. But you're right, that might involve queuing problems. If you do this, make sure that the SMTP connection is to your local MTA, since 'net delays could mean a

Re: Object-XML serialization [was Re: AxKit Users?]

2001-02-02 Thread barries
On Wed, Jan 31, 2001 at 03:03:56AM +0100, Robin Berjon wrote: Alzabo (which is somewhat the opposite of Tangram) is designed with mod_perl in mind. XML serialization will be coming real soon now (as soon as Barrie Slaymaker finishes work on DBML). Cool. More pressure ;-). Anyway, we're

Re: Apache::SizeLimit, unshared RAM idea

2001-01-09 Thread barries
On Mon, Jan 08, 2001 at 11:48:36PM -0800, Joshua Chamas wrote: UNSHARED_SIZE = CURRENT_SIZE - CHILD_INIT_SIZE How would that account for pages that were shared post forked, but later copied-on-write? - Barrie

Re: Dynamic content that is static

2000-12-23 Thread barries
On Fri, Dec 22, 2000 at 09:51:55PM -0500, brian d foy wrote: however, i have been talking to a few people about something like a mod_makefile. :) I've used this approach succesfully on a lower volume site where the it was taking lots of time to build the final HTML but the data sources

Re: sharing tied dbm fd

2000-12-11 Thread barries
On Mon, Dec 11, 2000 at 05:08:29PM +0100, Stas Bekman wrote: At 22:11 10/12/2000 +0100, Stas Bekman wrote: I don't know whether or not you're correct as I haven't tested this (which I guess is the only way to really know :). I don't much about fd's either, I tested sharing fds beteen

Re: Gunther

2000-12-10 Thread barries
On Sun, Dec 10, 2000 at 05:42:28PM +0100, Robin Berjon wrote: I find installing mod_perl trivial in that it doesn't require anything that's actually hard to do. Just thinking is hard to do sometimes ;-). A config front end and a way of caching config settings would both be nice. I find

Re: [ANNOUNCE] Take23

2000-12-07 Thread barries
On Thu, Dec 07, 2000 at 09:20:55AM +, Matt Sergeant wrote: On Wed, 6 Dec 2000, Matt Sergeant wrote: OK, so this isn't really much of an announcement, since its still the same web site. Anyway, I'm renaming modperl.sergeant.org to take23.org. DNS should propogate shortly. Until then

Re: RFC: mod_perl advocacy project resurrection

2000-12-07 Thread barries
On Thu, Dec 07, 2000 at 07:56:09AM -0700, Nathan Torkington wrote: J. J. Horner writes: I'd be interested in something like this. Certification is a quagmire. If it's done well, it takes a lot of work by the certification authority, and that makes it expensive for those certified. If

Re: RFC: mod_perl advocacy project resurrection

2000-12-07 Thread barries
On Thu, Dec 07, 2000 at 03:52:01PM +0100, Stas Bekman wrote: What's so complicated about this: When everything goes right, and when you happen to have lwp installed and a tar that uncompresses :-). Seems like a good process to encode in a build_my_mod_perl.pl, FWIW. - Barrie

Re: mod_perl advocacy project resurrection

2000-12-06 Thread barries
On Wed, Dec 06, 2000 at 12:08:59PM +, Matt Sergeant wrote: We could do that with AxKit - just ship it with Apache, mod_perl, the whole lot. But I don't think that would appeal to Perl people somehow. Thoughts? We're not (really) talking about appealing to "Perl people" here, I think, but

Re: enterprise mod_perl architectures

2000-12-06 Thread barries
On Wed, Dec 06, 2000 at 01:33:29AM -0500, Ed Park wrote: I've been using mod_perl for two years, and I'm currently particularly interested in: 1) Definitively establishing mod_perl as a credible player in the enterprise space. 2) Discussing enterprise-level architecture considerations,

Re: mod_perl advocacy project resurrection

2000-12-06 Thread barries
On Wed, Dec 06, 2000 at 04:55:37PM +0800, Gunther Birznieks wrote: Has anyone written a Perl IDE in Perl? Tom Christiansen wrote an IDE-like lash-up of vi and perl, IIRC, but I don't recall the specifics and I can't find in on-web right now. You might search the perl5-porters archives for

Re: Validating Parsers

2000-12-06 Thread barries
On Wed, Dec 06, 2000 at 10:57:44AM -0800, [EMAIL PROTECTED] wrote: hello Does anyone know of a xml parsing module that validates using built-in functionality, or is there a method to validate xml using XML::Parser with another module? XML::Checker::Parser? - Barrie

Re: RFC: mod_perl advocacy project resurrection

2000-12-05 Thread barries
On Tue, Dec 05, 2000 at 03:54:36PM +, David Hodgkinson wrote: Is the RH7.0 installation stable? It comes with everything as a DSO and _should_ work... That's the problem: DSOs aren't stable enough, so it all too often doesn't just work :(.

XML::ValidWriter - \$scaler [Was: mod_perl advocacy project resurrection]

2000-12-05 Thread barries
On Tue, Dec 05, 2000 at 05:31:49PM -0500, Drew Taylor wrote: I've used XML::Checker::Parser with no big issues. My biggest problem with XML::Writer (and hence XML::ValidWriter) is that I can't write to a string, unless there is some hackish workaround. XML::ValidWriter writes to a string

Re: XML::ValidWriter - \$scaler [Was: mod_perl advocacy project resurrection]

2000-12-05 Thread barries
On Tue, Dec 05, 2000 at 07:03:58PM -0500, Drew Taylor wrote: barries wrote: I stand corrected. :-) I'll play around with XML::ValidWriter and see what happens. It also requires a more recent XML::Parser to slurp up DTDs, but DTDs can be saved as Perl modules and you don't need to load XML

Re: mod_perl advocacy project resurrection

2000-12-05 Thread barries
On Tue, Dec 05, 2000 at 04:10:01PM -0500, Drew Taylor wrote: I know this goes a little off topic, so I apologize in advance. One big sticking point with Perl I'm just starting to run into is XML. Yes, Perl has great XML modules, and many more promising ones. But where is the _validating_

Re: Tempfile and send_fd()

2000-11-17 Thread barries
On Fri, Nov 17, 2000 at 03:51:03PM +0100, Roger Espel Llima wrote: Internally sysopen() does a plain libc open(), but then it follows with a fdopen() call to get a stdio handle anyway. That explains the results I saw, thanks. - Barrie

Re: porting mod_perl content handler to CGI

2000-11-17 Thread barries
On Fri, Nov 17, 2000 at 11:53:05AM -0800, Bill Moseley wrote: Now, I'd like to use a few of my modules under CGI -- for an administration part of the application that's bigger and not used enough to use up space in the mod_perl server. But it would be nice to have a common code base. One

Re: mod_proxy caching documentation

2000-11-16 Thread barries
On Thu, Nov 16, 2000 at 01:37:41AM -0500, Dan McCormick wrote: I came up with some documentation below by sifting through the source code. Excellent, thanks! If a malformed Expires: prevents mod_proxy from caching a response ( The response will then be cached UNLESS any of the following

Re: Tempfile and send_fd()

2000-11-16 Thread barries
On Fri, Nov 17, 2000 at 02:42:43PM +1100, Steve Smith wrote: Hi, All I get is an empty document. My understanding is that the data written to the tmpfile should be available immediately through the filehandle even if it hasn't been flushed. I wouldn't bet on it flushing: mod_perl may not

Re: Tempfile and send_fd()

2000-11-16 Thread barries
On Fri, Nov 17, 2000 at 03:51:35PM +1100, Steve Smith wrote: "Steve" == Steve Smith [EMAIL PROTECTED] writes: Hi, Could somebody tell me why the following testcase doesn't work? snip Nevermind, I got it from the archives eventually : seek $f, 0, 0; Had a look in

Re: Tempfile and send_fd()

2000-11-16 Thread barries
On Fri, Nov 17, 2000 at 12:32:33AM -0500, barries wrote: On Fri, Nov 17, 2000 at 03:51:35PM +1100, Steve Smith wrote: seek $f, 0, 0; Had a look in Apache::File (below), and it sysopens, so you might want to sysseek(...) instead. No, nevermind, don't: sysseek won't flush

Re: Changing REMOTE_ADDR passing to a request.

2000-11-12 Thread barries
On Sun, Nov 12, 2000 at 09:09:49PM +0800, Alson Wong wrote: The $ENV{'REMOTE_ADDR'}of server B still return the real ip address of server A. Check out the link I sent to The Guide (tm), there's a Perl snippet to recover the IP and do the -remote_ip() call: From: barries [EMAIL PROTECTED

Re: Changing REMOTE_ADDR passing to a request.

2000-11-11 Thread barries
On Sun, Nov 12, 2000 at 11:07:59AM +0800, Alson Wong wrote: So, how do I pass/set the environment variable of REMOTE_ADDR from server A ? So that I can control the env of remote_addr at the server B ? Well, you could do it several ways. The "normal" way is to set a header in the request

Re: pre-loaded modules on Solaris

2000-11-10 Thread barries
On Thu, Nov 09, 2000 at 04:24:31PM -0800, Bill Moseley wrote: And here's comparing the totals returned by the pmap program that should detail shared and private memory (according to the paper cited above). Address Kbytes Resident Shared Private -- -- ---

Re: Building a ModPerl ISP for you!

2000-11-10 Thread barries
On Thu, Nov 09, 2000 at 10:12:10PM -0800, Joshua Chamas wrote: It would likely begin with our first cluster built out in California in the next year - year + 1/2, and grow on from there. Many thanks for your help. Cool. Best of luck. 1. How many dynamic web requests do you serve per

Re: dynamic vs. mostly static data

2000-11-10 Thread barries
On Fri, Nov 10, 2000 at 10:46:03AM -0800, Jason Liu wrote: Is a package global var, such as %CACHE in the code below, persistent during the life of a child process? Yup. Does each child get a copy of %CACHE after the parent forks? For all intents and purposes, yes. Most OSs will mark those

Re: Fast DB access

2000-11-08 Thread barries
On Wed, Nov 08, 2000 at 10:49:00AM -0800, Perrin Harkins wrote: Also, you could try using mmap for reading the files, or possibly the Cache::Mmap module. If you do play with mmap, note that it can lose some or all of it's effeciency in SMP environments, or so I've read. - Barrie

Re: input from external process

2000-11-07 Thread barries
Have you found a workable approach yet? Just curious :-). - Barrie

Re: input from external process

2000-11-05 Thread barries
On Sun, Nov 05, 2000 at 01:48:04AM +0200, Eric Smith wrote: Nasty way of effecting this communication is to have each mail message saved to a file and do a readdir every time interval. Ugh. You're not talking mod_perl here, though, are you? Is it possible to have the mod_perl process