Re: caching questions

2003-07-23 Thread Peter Haworth
On Tue, 22 Jul 2003 13:05:00 +0300, Stas Bekman wrote: > Peter Haworth wrote: > > Cache::Mmap (which I wrote) isn't threadsafe, but should work OK in a > > forking MPM. If anyone wants to contribute code to make it threadsafe > > (preferably without impacting single-thr

Re: caching questions

2003-07-22 Thread Peter Haworth
tionned in mod_perl2? Cache::Mmap (which I wrote) isn't threadsafe, but should work OK in a forking MPM. If anyone wants to contribute code to make it threadsafe (preferably without impacting single-threaded performance too much), I'll be very grateful. I'd do it myself, but I've

ANNOUNCE: Cache::Mmap 0.07

2003-06-18 Thread Peter Haworth
nd add t/04utf8.t) This changes the file format, so added format version number to file header Existing files which aren't cache files are not overwritten From: PAUSE <[EMAIL PROTECTED]> To: "Peter Haworth" <[EMAIL PROTECTED]> Subject: CPAN Upload: P/PM/PMH/Cache

Re: [OT] Better Linux server platform: Redhat or SuSe?

2002-07-03 Thread Peter Haworth
x27;re always adding new stuff, so it only ever gets bigger. -- Peter Haworth [EMAIL PROTECTED] "We don't care how they do it in New York."

Re: Commercial use of mod_perl / modules]

2002-07-01 Thread Peter Haworth
On 29 Jun 2002 01:46:00 +0400, Ilya Martynov wrote: > >>>>> On Fri, 28 Jun 2002 16:38:25 -0500, Stephen Clouse > >>>>> <[EMAIL PROTECTED]> said: > > SC> On Fri, Jun 28, 2002 at 01:09:21PM +0100, Peter Haworth wrote: > >> The GPL doe

[ANNOUNCE] Cache::Mmap 0.04

2001-12-31 Thread Peter Haworth
ll the details of refreshing cache contents, and updating underlying data, if necessary. -- Peter Haworth [EMAIL PROTECTED] "I don't know what kinds of evil I've done in the past. I don't even want to know. I just want that evil to carry on having its good effects" -- Damian Conway on his use of pack/unpack/vec

[ANNOUNCE] Cache::Mmap 0.03

2001-12-28 Thread Peter Haworth
ges since version 0.01 Fixed serious bug in read(), which didn't update the current bucket content size when expiring entries. This caused infinite loops in _find() and _insert(), which have also been fixed, should anything else ever go wrong in a similar way -- Peter

[ANNOUNCE] HTML::StickyForms 0.05

2001-06-18 Thread Peter Haworth
ues_as_labels attribute to checkbox_group()/radio_group()/select() The uploaded file HTML-StickyForms-0.05.tar.gz has entered CPAN as file: $CPAN/authors/id/P/PM/PMH/HTML-StickyForms-0.05.tar.gz size: 5663 bytes md5: 18406762bcd4657064ce7f026ee93adb -- Peter Haworth [EM

[ANNOUNCE] Cache::Mmap 0.02

2001-06-07 Thread Peter Haworth
Request entered by: PMH (Peter Haworth) Request entered on: Thu, 07 Jun 2001 17:26:01 GMT Request completed: Thu, 07 Jun 2001 17:26:57 GMT Virtually Yours, Id: paused,v 1.74 2001/05/20 14:59:52 k Exp k -- Peter Haworth [EMAIL PROTECTED] `I wouldn't quite call it &quo

Re: Lightweight CGI.pm for PerlHandlers

2001-05-21 Thread Peter Haworth
f you just care about CGI.pm's "stickiness", my HTML::StickyForms module in combination with Apache::Request will generate form elements. You'll have to do the other elements yourself, though. -- Peter Haworth [EMAIL PROTECTED] "This seems dangerously close to COBOL, something difficult to argue in favor of." -- Tom Christiansen

RE: dynamic vs. mostly static data

2000-11-03 Thread Peter Haworth
t;this cache periodically (say every 10 minutes)? Also, this > >solution should work on any reasonably modern UNIX system > >(Win32 is not important for now). > > > >I couldn't find this anywhere, but if someone tells me where, > >I'd be happy to RTFM. Ask me

[ANNOUNCE] Cache::Mmap 0.01

2000-09-20 Thread Peter Haworth
lows cache entries to be stored manually, with the option of updating the original data store (writethrough or write-on-demand). You can find it at $CPAN/authors/id/P/PM/PMH/Cache-Mmap-0.01.tar.gz I'm giving a talk about the module at yapc::Europe this weekend. -- Peter Haworth [EMAI

[ANNOUNCE] HTML-StickyForms-0.03.tar.gz

2000-08-30 Thread Peter Haworth
arded Message --- From: [EMAIL PROTECTED] To: "Peter Haworth" <[EMAIL PROTECTED]>, [EMAIL PROTECTED] Sent: Wed, 30 Aug 2000 12:05:14 +0200 Subject: CPAN Upload: P/PM/PMH/HTML-StickyForms-0.03.tar.gz The uploaded file HTML-StickyForms-0.03.tar.gz has entered CPAN as file:

ANNOUNCE: HTML::StickyForms 0.02

2000-06-27 Thread Peter Haworth
-- The uploaded file HTML-StickyForms-0.02.tar.gz has entered CPAN as file: $CPAN/authors/id/P/PM/PMH/HTML-StickyForms-0.02.tar.gz size: 4716 bytes md5: c2c216faba385af3186a3e5d83923700 No action is required on your part Request entered by: PMH (Peter Haworth) Request entered on: Tue, 27

Re: my && param

2000-06-23 Thread Peter Haworth
utting them in a hash: sub function_2{ my @array=param('This_Param'); my %params; foreach(@array){ @{$params{$_}}=param($_); } # Now, instead of print @whatever, do this: print @{$params{whatever}}; } -- Peter Haworth [EMAIL PROTECTED] "C++ gives me the willies. Physical willies. I take medication for it." -- Kurt Starsinic on p6p

Re: Crazy browser issues

2000-06-22 Thread Peter Haworth
rver, the browser just sends the request *without* asking for a username, repeatedly, until I hit STOP. This never happens when using the fully qualified server name. Something else about authen handlers confuses me: does $r->get_basic_auth_pw call $r->note_basic_auth_failure when it returns AUT

Re: [ANNOUNCE] HTML::StickyForms 0.01

2000-06-16 Thread Peter Haworth
to new() can be one of: an Apache::Request (or subclass) instance, a CGI (or subclass) instance (CGI 2.x, 3.x), a CGI::State (or subclass) instance (CGI 3.x), or you can leave it out completely, in which case, there won't be any sticky values. This will all get documented very soo

[ANNOUNCE] HTML::StickyForms 0.01

2000-06-15 Thread Peter Haworth
HTML-StickyForms-0.01.tar.gz has entered CPAN as file: $CPAN/authors/id/P/PM/PMH/HTML-StickyForms-0.01.tar.gz size: 2804 bytes md5: a52d669328840c0314309d3e615a540a No action is required on your part Request entered by: PMH (Peter Haworth) Request entered on: Thu, 15 Jun 2000 13:49:15 G

Re: Form generation libraries

2000-05-25 Thread Peter Haworth
On 24-May-00 at 18:50, Jeffrey W. Baker ([EMAIL PROTECTED]) wrote: > On Wed, 24 May 2000, Peter Haworth wrote: > > Jeffrey W. Baker wrote: > > > On Wed, 24 May 2000, Peter Haworth wrote: > > > > Jeffrey W. Baker wrote: > > > > > myInput = hfTextI

Re: Form generation libraries

2000-05-24 Thread Peter Haworth
Jeffrey W. Baker wrote: > On Wed, 24 May 2000, Peter Haworth wrote: > > Jeffrey W. Baker wrote: > > > myInput = hfTextInputNew(); > > > myInput->addAttr(myInput, "name", "first_name"); > > > myInput->addAttr(myInput, &qu

Re: Form generation libraries

2000-05-24 Thread Peter Haworth
c that won't be duplicated for > the other types. The implementation is also quite fast, rendering 10 > simple text inputs to /dev/null in .78 seconds, without optimizations. Sounds good. > If people think this is the way to go, I will write up a Makefile and > release

Re: RFC: Apache::Request::Forms (or something similar)

2000-05-24 Thread Peter Haworth
Vivek Khera wrote: > >>>>> "PH" == Peter Haworth <[EMAIL PROTECTED]> writes: > > >> > >> HTML::Form? :) > > PH> Well, duh! Why didn't I think of that? Unfortunately though, > PH> HTML::Form already exists, and doesn&

Re: RFC: Apache::Request::Forms (or something similar)

2000-05-23 Thread Peter Haworth
brian moseley wrote: > On Mon, 22 May 2000, Peter Haworth wrote: > > In light of the non-dependency on mod_perl, the > > Apache::Request::Form name is also out. I'd still rather > > not use the CGI::Form name, in case there are any > > current users whose in

Re: RFC: Apache::Request::Forms (or something similar)

2000-05-22 Thread Peter Haworth
prefer to stick with one style of interface, to keep things small and simple. Named parameters as above seem most flexible, and allow for unexpected things like omMouseOver attributes to be added easily. I'm inclined to only allow method style calls, although I suppose there's nothing wr

Re: RFC: Apache::Request::Forms (or something similar)

2000-05-18 Thread Peter Haworth
::Form (no "s", for name similarity with CGI::Form) now. It is dependent on Apache::Request, after all, and reusing the CGI::Form name makes it look more general than it really is, not to mention any strange version skew effects CPAN.pm might introduce when people try to install things. -

Re: RFC: Apache::Request::Forms (or something similar)

2000-05-17 Thread Peter Haworth
Autarch wrote: > On Wed, 17 May 2000, Peter Haworth wrote: > > > Drew Taylor and I are about to write a subclass of Apache::Request which > > includes form element generation methods, a la CGI.pm. The current > > favourite name is Apache::Request::Forms, but we'd lik

RFC: Apache::Request::Forms (or something similar)

2000-05-17 Thread Peter Haworth
th feature requests. -- Peter Haworth [EMAIL PROTECTED] "We're sorry. The brain you have mailed has been disconnected or is no longer in service. Please re-check the address and send your message again. If you feel you have reached this recording in error, JUST STOP CREATI

Re: Newbie Question -

2000-05-09 Thread Peter Haworth
module. It's easy enough to write for yourself though. Plus you get to restrict the API to one style which makes your code much simpler and faster than CGI.pm -- Peter Haworth [EMAIL PROTECTED] "Psychos do not explode when sunlight hits them. I don't give a f**k how crazy

Re: Caching DB queries amongst multiple httpd child processes

2000-02-03 Thread Peter Haworth
of data in a memory mapped file, which can be shared by an arbitrary number of processes. Unfortunately, it's not publically available yet, but I hope to get it released soon. -- Peter Haworth [EMAIL PROTECTED] "The warts in a language tend to be more orthogonal than

Re: squid performance

2000-01-25 Thread Peter Haworth
I have the socket buffer set to the max allowed 64K (on Solaris), with a 1M application buffer. In my opinion, ProxyReceiveBufferSize should be called ProxySocketBufferSize, leaving the old name free for my new use. This would also remove some of the confusion about what it actually does. -- Peter Haworth [EMAIL PROTECTED] "Save the whales. Feed the hungry. Free the mallocs."

Re: [Re: [Re: again - more then one PerlTransHandler]]

1999-12-22 Thread Peter Haworth
($test_uri,$uri_sub,$sub)=@$_; if($uri_sub->($uri)){ my $code=$sub->($r,$test_uri); return $code if $code!=DECLINED; } } $r->log->error("No handler matching $uri found"); }else{ $r->log->crit('

Re: eval'ed Apache::Session tie panics with POPSTACK?

1999-10-20 Thread Peter Haworth
. It's fixed in 5.005_62, but you might not want to go to a development version. Unfortunately, I've never used Apache::Session, so I don't know how you can avoid the call to croak. -- Peter Haworth [EMAIL PROTECTED] "I think that's very legible. If you don't, you need to read more perl." -- Tom Christiansen