Re: url mangling/rewriting

2001-08-13 Thread Perrin Harkins
> > I see. You mean your session state is not stored on the database, > > but stored as encrypted text in session id itself. > > Yes, and the problem is whether there is some good > algorithm, which will generate this kind of session > ids. Security is not main part of this solution, but > easy fi

Re: my OR our that is the question ?!

2001-08-09 Thread Perrin Harkins
> So what is the REASON for this copy-on-first-call behaviour.(there have to > be some reason, if i'm not totaly dull to see it ) It's called a closure. You can read up on it in the Camel book or in Damian Conway's OO book. - Perrin

Re: Compiling with RegistryLoader

2001-08-09 Thread Perrin Harkins
> I try to precompile a perl script on SERVER start-up using the typical > configuration. But I start the server a get a lot of errors or warnings that > refer to standard Perl modules. It looks like you're having problem stemming from mod_perl executing the PerlRequire command twice during start

Re: Help with cookies

2001-08-08 Thread Perrin Harkins
> Umm... Is > > > return OK; > > the correct thing to return when using multiple handlers? Yes, according the mod_perl docs. It only stops if you return something other than OK or DECLINED. - Perrin

Re: Help with cookies

2001-08-08 Thread Perrin Harkins
> Long time no hear... I heard you moved to NY... This is true. I'm exploring new territory. > I think I do send a response back to Apache! I > mean I return OK status. Or do you mean something else? Like > $r->header_out(...)? You need to send the headers (with $r->send_http_header or somethi

Re: Help with cookies

2001-08-08 Thread Perrin Harkins
> Can some one tell me why I can not set a cookie... > I have a module that is supposed to set a cookie called Cookie_Check: > And after my second handler should kick in and do some other magic. In > my httpd.conf I have: > > > SetHandler perl-script > PerlHandler MIS_APPS::RHS

PerlRequire/PerlModule and %INC

2001-08-06 Thread Perrin Harkins
There have been some messages on the Mason list about people experiencing startup.pl being loaded twice, even without PerlFreshRestart on. I know the server restarts during startup, but PerlRequire and PerlModule are both supposed to obey the laws of %INC, right? I seem to remember some discussi

Re: odd behavior with Cache::Cache

2001-08-05 Thread Perrin Harkins
> My impression was that the locking in Apache::Session is a one-time lock so > it just fixes data integrity issues. So I am not sure if it is fancier than > Cache::Cache unless Cache::Cache has no locking at all (or no concept of > lock choice). What I meant was that since there is a separate lo

Re: odd behavior with Cache::Cache

2001-08-05 Thread Perrin Harkins
on 8/4/01 1:34 PM, brian moseley at [EMAIL PROTECTED] wrote: > also, has there been any thought given to locking cached > items? when i'm using a shared cache with multiprocess > apache, the opportunity exists for multiple requests to > access a single session simultaneously, which can lead to > r

Re: Again, Modperl running scripts slower than non-modperl!?

2001-08-05 Thread Perrin Harkins
> > Not having read anything before this, but it seems that your machine is > > going into swap because there is not enough RAM available. That kills > your > > performance always. Could you run your test on a different machine or > > temporarily switch off the regular server? > > > > Trying to

Re: dbi abstraction layer on perlmonks

2001-08-03 Thread Perrin Harkins
Robert Landrum wrote: > The guide is a great thing, and removing items from it is risky. Think of it as refactoring.

Re: dbi abstraction layer on perlmonks

2001-08-03 Thread Perrin Harkins
Stas Bekman wrote: >>>Maybe the guide should include links to the most mature peristence >>>abstraction layer projects out there: >>>- Class::DBI >>>- Alzabo >>>- Tangram >>>- SPOPS >>> > >I suppose that could fit into the help.pod. Otherwise it's not directly >related to mod_perl, and the guide

Re: require v.s. do in modperl

2001-08-01 Thread Perrin Harkins
Gunther Birznieks wrote: > > At 07:16 PM 8/1/2001 -0400, Perrin Harkins wrote: > > > I have a CGI application where I do: > > > > > > require 'db.pl'; > > > > > > where db.pl defines some functions and variables related to connecting t

Re: Apache::DBI Oracle LOB problem

2001-08-01 Thread Perrin Harkins
> Mmm, haven't seen it, but we use LONG instead of CLOB as the datatype > for the sequence. Is there any reason to use CLOB, and does using LONG > make the problem disappear? Oracle doesn't want you to use LONG anymore. It's deprecated. Questions for Steven: Have you followed all the documentat

Re: require v.s. do in modperl

2001-08-01 Thread Perrin Harkins
> I have a CGI application where I do: > > require 'db.pl'; > > where db.pl defines some functions and variables related to connecting to > the database, and then executes C<$dbh = DBI->connect(...)>. > I can get around this by changing C to C, but is that the > "correct" way of doing things?

Re: [OT] Inspired by closing comments from the UBB thread.

2001-08-01 Thread Perrin Harkins
> http://axkit.org/docs/presentations/tpc2001/anydbd.axp Is this basically a hash of SQL statements, indexed by DBD type? Or is there something more that I'm missing? (I should have gone to your TPC talk...)

Re: Not embedding SQL in perl

2001-08-01 Thread Perrin Harkins
> > I have found that stored procedures + perl module wrapper around the procs. > > is a nice, balanced approach. > > > > The procs. give a nice performance boost as they are precompiled into the > > server (we use Sybase). > > They are definitely faster, and significantly so. Maybe so for S

Re: [OT] Inspired by closing comments from the UBB thread.

2001-08-01 Thread Perrin Harkins
> As for SQL, I just wish people would expand their horizons a little and > start doing a bit of reading. There are so many different ways to avoid > embedding SQL in application code and I sincerely wish programmers would > THINK before just coding... it's what differentiates scripters from > en

Re: [OT] Inspired by closing comments from the UBB thread.

2001-08-01 Thread Perrin Harkins
> "not to mention the HTML embedded all throughout the perl (are they on > glue?)" > > What's the alternative there? Embed perl in the HTML? You could do that (Text::Template), or you could use a tool like Template Toolkit or HTML::Template. See http://perl.apache.org/features/tmpl-cmp.html for

Re: [OT] Inspired by closing comments from the UBB thread.

2001-08-01 Thread Perrin Harkins
> I think a lot of people's approach, including mine, is to have OO Perl > modules for all database access. In my code (I use Mason), a web page > only gets its data through calls like this: > > my $obj = NAIC::User->(DBH=>$dbh, EMAIL=>'[EMAIL PROTECTED]'); > $obj->load; > my $groups_list = $obj-

Re: More stuff not working with conversion to modperl?

2001-08-01 Thread Perrin Harkins
John Buwa wrote: > Isnt there a way to clear global variable to a null after a web transaction > is complete? Apache::PerlRun does that. - Perrin

[ANNOUNCE] Perl Templating Guide, v 0.9

2001-07-31 Thread Perrin Harkins
http://perl.apache.org/features/tmpl-cmp.html The article "Choosing a Templating System" is now available at the above URL. This is the same material I presented at the O'Reilly conference, but a bit less rushed. It gives an overview of currently available templating tools and their basic featu

Re: Buffering Output

2001-07-31 Thread Perrin Harkins
> Anybody know if exist some module how CGI::Out for buffering output in CGI script ? Is there a reason you can't just append everything to a variable until the end? If that won't work, you can tie STDOUT. Apache::Filter might help. - Perrin

Re: RewriteRule Proxy problems

2001-07-30 Thread Perrin Harkins
> > > But if I go to http://www.buildreferrals.com/rotatorstats.asp?login=pmak0 > > > (that's the same URL, but with a query string added), then I get a "404 > > > Not Found" error. > > > > Of course you do. Your regex ^/(.*)\.asp doesn't match that URL with > > the query string. > > Why not? I di

Re: RewriteRule Proxy problems

2001-07-30 Thread Perrin Harkins
> In my lightweight httpd.conf, I have: > > RewriteRule ^/(.*)\.asp http://66.33.85.239/$1.asp [p] > > If I go to http://www.buildreferrals.com/rotatorstats.asp, it gets proxy'd > correctly. > > But if I go to http://www.buildreferrals.com/rotatorstats.asp?login=pmak0 > (that's the same URL, but w

Re: Child Interprocess Data

2001-07-23 Thread Perrin Harkins
> Kevin Schroeder wrote: > I want to create a program for mod_perl that shares information in > between all the child processes so they all have current information. There are many CPAN modules that cover this. Check the guide at http://perl.apache.org/guide/. One option that's easy to get

Re: custom config directives

2001-07-14 Thread Perrin Harkins
> is there any good thorough documentation on building custom > config directives other than what's in the eagle book? i > left mine back in au and i don't really want to buy another > one :) You're in luck, that chapter is on-line: http://www.modperl.com/book/chapters/ch8.html

Re: Using mod_perl handlers for max speed?

2001-07-11 Thread Perrin Harkins
> Does this mean that if there's a heavily used script on my system that > needs to be VERY fast, then it may be worth making it into a mod_perl > handler? Not unless you get astonishing amounts of traffic and your script does almost nothing. These are very simple test cases, so they exaggerate

Re: [ANNOUNCE] Hello World Benchmarks, updated

2001-07-11 Thread Perrin Harkins
> I do feel that compile time matters, but really with 60 seconds > and high MaxRequestsPerChild, these systems are getting plenty > of compiling caching. The thing is, if mod_caucho takes 5 seconds the first time it hits each template, but is the fastest afterwards, these numbers don't give a ve

Re: [ANNOUNCE] Hello World Benchmarks, updated

2001-07-11 Thread Perrin Harkins
Good work as usual, Joshua. > mod_caucho > used to look a lot faster, but my testing methodology changed. > I used to take the results of the second benchmark run, and > publish those, but this time only ran the -test for minor > caching after starting resin ( & tomcat ). So, I'

Re: [ANNOUNCE] Hello World Benchmarks, updated

2001-07-11 Thread Perrin Harkins
Good work as usual, Joshua. > mod_caucho > used to look a lot faster, but my testing methodology changed. > I used to take the results of the second benchmark run, and > publish those, but this time only ran the -test for minor > caching after starting resin ( & tomcat ). So, I'

Re: help about ap_pool in Perl

2001-07-11 Thread Perrin Harkins
> I need to save some status informations about each request (in my > "filter" each request passes through 3 phases : PerlTransHandler, > PerlAccessHandler and PerlHandler. You want $r->pnotes. - Perrin

Re: detecting ssl

2001-07-10 Thread Perrin Harkins
> no need to do a lookup or rely on PerlSetupEnv On I wouldn't think... > > my $ssl = Apache::URI->parse($r)->scheme =~ m/^https/; Or maybe just look at the port # of the request. - Perrin

Re: The latest templating system: PSP in DDJ

2001-07-09 Thread Perrin Harkins
> What is needed, IMHO, is a clear > framework,/description/phlogeny/geneology of perl templating systems. I'm writing such a beast for TPC this month, and will publish it when it's ready. I'm not covering every templating module on CPAN though, just the ones that people seem to actually use bas

Re: CGI module or Apache

2001-07-09 Thread Perrin Harkins
Take a look at http://perl.apache.org/guide/ and read the stuff on libapreq. - Perrin

Re: Apache::SimpleTemplate (don't do it!)

2001-07-09 Thread Perrin Harkins
> I think that CGI::FastTemplate does all of that. > Please have a look at it, and see if everything you need is not > already in it. It's a good module for CGI, since it doesn't rely on caching/compiling techniques, just simple regex stuff. It will use a lot less RAM than tools that compile in-

Re: 2 questions

2001-07-09 Thread Perrin Harkins
> I've sent this email to Template-Toolkit mailing list... but there doesn't > seem to be anyone, so I'm sending it here ... Um, you did send it at 6:30PM on a Sunday (yesterday). Support on that list is really good, but you can't expect everyone to be on the same schedule as you. > How can in

Re: Apache::SimpleTemplate

2001-07-08 Thread Perrin Harkins
on 7/8/01 2:46 AM, Gunther Birznieks at [EMAIL PROTECTED] wrote: > In addition one of the criteria for "useful" to me is "fast". If the > template system is slow, it's quite annoying. However, this goes against > other people's ideas of "useful" being "full featured". As Steven Wright > says (para

RE: ePerl (fragment of Re: Apache::SimpleTemplate)

2001-07-08 Thread Perrin Harkins
> We use ePerl for a fair number of things, and I have yet to run into > something we needed of which it was not capable. What are you > thinking of? It's not a question of it not being capable, it's just that most people seem to choose one of the more full-featured tools. There's lots of talk

Re: The latest templating system: PSP in DDJ

2001-07-07 Thread Perrin Harkins
on 7/7/01 9:30 PM, Ron Pero at [EMAIL PROTECTED] wrote: > Just received my issue of Dr. Dobbs Journal today, and one of the articles > is "A Tiny Perl Server Pages Engine". Pretty nifty. > > Read about it here: > http://www.ddj.com/articles/2001/0108/0108g/0108g.htm > > Here is an excerpt: > "P

Re: Apache::SimpleTemplate

2001-07-07 Thread Perrin Harkins
> i had looked at many other modules, and i > know other people who have as well but want a simpler > alternative. Simpler in terms of how quickly it can be learned? Text::Template and Apache::ePerl are both pretty trivial. In fact, most of these packages are pretty easy if you just want to use

Re: Apache::SimpleTemplate

2001-07-07 Thread Perrin Harkins
> yes, i have *yet another* templating mechanism for > mod_perl, and i'd like to add it to CPAN if there are > no major objections. I hate to be a naysayer, but this doesn't look sufficiently different from the other options to merit adding it to CPAN. The trouble is, there are already too many

Re: returning one instance of an object per request

2001-07-06 Thread Perrin Harkins
> I'm building a web application that has a User perl module. I have several other perl modules that need to know the user id of the current logged in user (or 0 for a guest user). I was thinking that I could write the User class in such a way that every time (except the first) a constructor was

Re: mod_perl child processes using way too much RAM

2001-07-02 Thread Perrin Harkins
> 2. Cause any httpd_perl child process which exceeds 20 megabytes in > memory usage to terminate after it's done. Apache::SizeLimit (and others) can do this. - Perrin

Re: API Design Question

2001-06-30 Thread Perrin Harkins
> The minimal-module approach can be managed nicely via Autosplit, which > puts eash sub in its own module with a stub AUTOLOAD that snags things > into core only when they are called Note that if they do get called this will end up using more memory than if you had just loaded them during startu

Re: SSI Lost with Mod Perl?

2001-06-26 Thread Perrin Harkins
> I've given Filter and SSI a shot according to the perldocs. > > It didn't work. I stated to hhack on some of the problems, which first involved > in the make install depositing them in the wrong diretory, and then they SSI > needed use Apache::Filter statements added. > > Finally, Filter cam ba

Re: SSI Lost with Mod Perl?

2001-06-24 Thread Perrin Harkins
> IS there a way of pre-processing and post processing a handler? Only by using something like Apache::Filter. Apache itself does not support chaining handlers. - Perrin

Re: SSI Lost with Mod Perl?

2001-06-23 Thread Perrin Harkins
Brooklyn Linux Solutions CEO wrote: > > I have modules controlling all the files and their access and content in the > directy. I have no idea > really why SSI is shut down. I never used it before. It looks like you're trying to post-process the output of a PerlHandler with SSI. The only way

Re: SSI advocacy Was:: Multiple AddHandler statements

2001-06-23 Thread Perrin Harkins
Joachim Zobel wrote: > Including If-Modified-Since - 304 responding? No, none of them handle that (well, AxKit?), probably because most sites need to do more than stat-ing the template files to determine if the page content has been modified. A site with no dynamic content could be pre-generated

Re: SSI Lost with Mod Perl?

2001-06-23 Thread Perrin Harkins
> I've seemed to have lost my ability to use SSI whenI use the content > handlers with Mod_perl. > > > Is there anyway I can fix this? Can you be more specific about what you're trying to do? You can still use mod_include with mod_perl installed, and you can use Apache::SSI either alone or a

Re: SSI advocacy Was:: Multiple AddHandler statements

2001-06-22 Thread Perrin Harkins
> At 14:33 19.06.2001 +0530, you wrote: > >Is there something in SSI which cant be done in a better way using Perl > >?? > > Yes. > > 1. SSI with XBitHack full plays the 304 game for me. Every time the catalog > database is updated, its SSI frame gets a touch. Thats it. Simple. Efficient. > > 2. S

Re: Curious About Require

2001-06-20 Thread Perrin Harkins
I hate to belabor this point, but I don't want people to get the wrong idea: > > BEGIN { do '/foo/bar/query.pl'; } > > Sorry, I guess I should have been more explicit. I don't want to > require in the file on every request, but rather only allow the > same file to be require'd multiple times (to

Re: ModPerl package Q

2001-06-20 Thread Perrin Harkins
> Well, this is the last time I am going to bring this up. I am on Apache NT, > and I have the following .pm file that I believe I localized everything in > order to create a socket. The code below does work. But it never makes a > new socket. As you can see I print out the IO::Socket::GLOB and i

Re: Curious About Require

2001-06-20 Thread Perrin Harkins
> > > BEGIN { > > > delete $INC{'/foo/bar/query.pl'} if exists $INC{'/foo/bar/query.pl'}; > > > require '/foo/bar/query.pl'; > > > } > > > > Mark, your suggestion doesn't work because of BEGIN. > > Ooops, gotta go to sleep. Your suggestion, Mark, will work :) but only in > Registry/PerlR

Re: Curious About Require

2001-06-20 Thread Perrin Harkins
> I have a question about require when using mod-perl. The full story is at http://theoryx5.uwinnipeg.ca/guide/porting/Name_collisions_with_Modules_and. html It sounds like you're having trouble because your .pl files are not real modules but rather subs that get added into the current package s

Re: Cached Code Disappeared?

2001-06-19 Thread Perrin Harkins
> Still seeking assistance form anyone who is experienced with sockets and > mod-perl /apache on NT. No NT here, but... > Anyway, as my previous email showed, I built a site which used a global > filehandle to a socket. It worked great for about two hours, and then all of > a sudden stopped. Aft

Re: Capturing CGI output

2001-06-17 Thread Perrin Harkins
From: "Steve Wells" <[EMAIL PROTECTED]> > I can use $r->lookup_uri('/cgifile.cgi') to gather up the subrequest and > run it using the run() command. However, the information from the CGI > is passed back to the browser instead of handed off to me for > processing. Is there some way to capture th

Re: templating benchmarks...

2001-06-13 Thread Perrin Harkins
"Tom Lancaster" <[EMAIL PROTECTED]> wrote: > Absolutely. But I'd like to bring up something I've noticed in benchmarking > 'real' sites: many, if not all, of the templating solutions appear to > parse the whole of an html page. This is at least true of Apache::ASP and > HTML::Mason, which I have u

Re: templating benchmarks...

2001-06-13 Thread Perrin Harkins
> > wow. template toolkil took a big hit, there. (no mod_perl on > > this list? hmm!) > > This benchmark can be very non-representive. If you don't know how to > optimize each and every "thing" under test, you end up with unfair > benchmark and come to potentially wrong conclusions. Take TT, add c

Re: Apache pnotes

2001-06-11 Thread Perrin Harkins
> You use notes (or pnotes) when you want a kind of global variable that is > localised to the request, but also accessible to sub-requests. It's also useful for caching things that MUST be cleaned up at the end of the request. You can put a database handle in pnotes and be confident that it wil

Re: IP based instant throttle?

2001-06-11 Thread Perrin Harkins
[EMAIL PROTECTED] (Randal L. Schwartz) wrote: > I'm told that my CPU throttler > was used at etoys.com for a similar purpose, and permitted them to > keep from losing millions of dollars of revenue due to people > spidering their catalog. That's correct, although it was actually a bunch of DoS at

Re: Apache::Session / No-Cookie-Tracking

2001-05-25 Thread Perrin Harkins
> Sure - I believe in magic, depending on your definition of it. I KNOW > there's a 4th method, because I've seen it work. There is an e-commerce web > site which uses an outside cart programmed in CGI (Perl?). The original web > site passes no identifying marks such as the session ID through the

Re: mod_perl and 700k files...

2001-05-12 Thread Perrin Harkins
on 5/12/01 5:46 PM, Morbus Iff at [EMAIL PROTECTED] wrote: >> I store a .stor file which is a storable dump of my XML tree. I check the >> mtime of that against the mtime of the .xml file. Whichever is newer I >> load that. Works fast and is very simple. > > I'll certainly check it out. The only

Re: mod_perl and 700k files...

2001-05-10 Thread Perrin Harkins
on 5/9/01 5:45 PM, Morbus Iff at [EMAIL PROTECTED] wrote: >> Keep in mind, if you load this data during startup (in the parent) it will >> be shared, but reloading it later will make a separate copy in each child, >> chewing up a large amount of memory. You might have better luck using dbm > > T

Re: looking for a functin to move %fdat to the symbol table..

2001-05-10 Thread Perrin Harkins
It's not hard to do, but it is potentially dangerous since you could overwrite globals like $/ and change the behavior of your program. In general, it's best to avoid cluttering the symbol table. - Perrin

Re: mod_perl and 700k files...

2001-05-09 Thread Perrin Harkins
on 5/9/01 5:14 PM, Morbus Iff at [EMAIL PROTECTED] wrote: > That, unfortunately doesn't tell me what causes a USR2 signal to be sent to > Apache. You can use the kill command to send a USR2 signal. > Or when it's caused. When you send it. > I only want to reload the file when said file > has c

Re: Throwing die in Apache::Registry

2001-05-04 Thread Perrin Harkins
on 5/4/01 9:28 AM, Mark Maunder at [EMAIL PROTECTED] wrote: > I have an Apache::Registry script that is using XML::Parser. The parser throws > a > 'die' call if it encounters a parse error (Why?). Because it's an exception and the parser can't continue. > I was handling this by > putting > the c

Re: Exception modules

2001-04-30 Thread Perrin Harkins
on 4/30/01 8:47 PM, brian moseley at [EMAIL PROTECTED] wrote: > On Mon, 30 Apr 2001, Jeffrey W. Baker wrote: > >> type of exception. Right now I cannot in fact think of >> any program I have written that branches on the type of >> exception. Java encourages this with multiple catch > > in CP

Re: modperl/ASP and MVC design pattern

2001-04-20 Thread Perrin Harkins
On Fri, 20 Apr 2001, Francesco Pasqualini wrote: > But are there in the mod_perl architecture some guidelines and/or > frameworks that encourages the MVC design patern ? I think that > Apache::ASP could be (for example) the right tool, adding the > "forward" feature. The forward feature looks lik

Re: Fast DB access

2001-04-18 Thread Perrin Harkins
> "Chutzpah" is an interesting way of putting it. I've been thinking > of them as "slimeballs in the busy of conning webkids into > thinking they have a real RDBM product". > > (It isn't a moot point, because it's the same people working on > it: human character issues are actually relevant when

Re: Fast DB access

2001-04-17 Thread Perrin Harkins
> b) Flat file : Create a Linux directory structure with the same hierarchy as > the attributesi.e., directory structure has > ///. ip numbers is the file name which > contains a list of ads. Objective is to pick the right file, open this file >and create a hash with the contents of the file.

Re: from the "quick hacks" department... x-bit controls mod_cgi

2001-04-16 Thread Perrin Harkins
> Can you briefly explain why it leaks memory? I haven't tried it, but I'm guessing it's creating a new anonymous sub on every request. > I have been playing with Apache::Leak and Devel::Leak trying to figure out > what is happening when Perl code leaks memory, but I haven't got my head > around

Re: Dynamic httpd.conf file using mod_perl...

2001-04-16 Thread Perrin Harkins
> > It might be easier and more bulletproof to build the conf file > > off-line with > > a simple perl script and a templating tool. We did this with Template > > Toolkit and it worked well. > > - Perrin > > That would be fine and dandy, but it's not exactly what I'm going after. > Currently if I

Re: Dynamic httpd.conf file using mod_perl...

2001-04-16 Thread Perrin Harkins
> What I'm trying to do is have apache build the httpd.conf > file dynamically when it starts from a MySQL database. It might be easier and more bulletproof to build the conf file off-line with a simple perl script and a templating tool. We did this with Template Toolkit and it worked well. - Pe

Re: mac_check in eagle book

2001-04-16 Thread Perrin Harkins
> On 16 Apr 2001, Chip Turner wrote: > > > The modperl book mentions it double hashes to prevent a > > malicious user from concatenating data onto the values being checked. > > I don't know if they are referring to this weakness, but I suspect > > they are. Sadly, the book doesn't seem to offer a

Re: negative LocationMatch syntax?

2001-04-12 Thread Perrin Harkins
Matt Sergeant wrote: > > Is there a way I could use to specify a not condition? > > as in > > > > SSLVerifyClient require > > > > > > That would let me list the exceptions, and everything else would be > > restricted by default.. > > It's really frustrating, but this is *not* possible...

Re: Cutting down on the DEBUG bloat...

2001-04-10 Thread Perrin Harkins
> As part of my ongoing effort to streamline my mod_perl apps, I've come > to discover the joy of constant subroutines and perl's ability to > inline or eliminate code at compile time. I have a solution that > works, but would be interested in seeing if others had better > syntactic sugar.. You

Re: mirroring data across a server cluster

2001-04-01 Thread Perrin Harkins
> I'm trying to address 2 issues: > > A. Avoiding a single point of failure associated with a >having a central repository for the data, such as a NFS >share or a single database server. > B. Avoiding the overhead from using heavyweight tools like >database replication. > > So I've bee

Re: Storable (lock_store lock_retrieve) question

2001-04-01 Thread Perrin Harkins
> I am currently using Storables lock_store and lock_retrieve to maintain > a persistent data structure. I use a session_id as a key and each data > structure has a last modified time that I use to expire it. I was under > the impression that these two functions would be safe for concurrent > ac

Re: ASP / Apache

2001-03-28 Thread Perrin Harkins
On Thu, 29 Mar 2001, Victor Michael Blancas wrote: > I'm planning to implement a DBI session management integrated with > Apache::ASP, much like how Apache::Session works. Might as well just use Apache::Session, if it already does what you need. > Is this better for clustered web servers with a

Re: Getting a Cache::SharedMemoryCache started

2001-03-27 Thread Perrin Harkins
On Tue, 27 Mar 2001, DeWitt Clinton wrote: > Now, this implies that a module, such as the Cache::MemoryCache, which > currently shares data for a particular process by creating a global > hash, would only share data for one instance of the Perl interpreter > associated with that thread. If I want

Re: Getting a Cache::SharedMemoryCache started

2001-03-27 Thread Perrin Harkins
On Tue, 27 Mar 2001, DeWitt Clinton wrote: > Which reminds me of something. These cache objects are not currently > thread safe. When should I start expecting multi-threaded > apache/mod_perl to become mainstream enough to warrant an overhaul of > the code? I imagine that nearly most Perl libra

Re: [ANNOUNCE} mod_perl moduile you may be interested in

2001-03-25 Thread Perrin Harkins
> have done a search on CPAN for "resume" and "cv" did not come up with anything > like what i am doing http://www.zeuscat.com/andrew/work/resume/formats.shtml - Perrin

Re: dbm locking info in the guide

2001-03-21 Thread Perrin Harkins
> Ok, what about calling sync before accesing the database? (read and write) > Will it force the process to sync its data with the disk, or will it cause > the corruption of the file on the disk, as the process might have a stale > data? Well, that's what we don't know. As David Harris pointed o

Re: dbm locking info in the guide

2001-03-20 Thread Perrin Harkins
Stas Bekman wrote: > So basically what you are saying is that sync() is broken and shouldn't be > used at all. Something fishy is going on. The purpose of sync() is to > flush the modifications to the disk. Saving changes to disk isn't the problem. The issue is that some of the database gets cac

Re: dbm locking info in the guide

2001-03-20 Thread Perrin Harkins
On Wed, 21 Mar 2001, Stas Bekman wrote: > > You mean with DB_File? There's a big warning in the current version > > saying not to do that, because there is some initial buffering that > > happens when opening a database. > > The warning says not to lock on dbm fd but an external file! I think y

Re: dbm locking info in the guide

2001-03-20 Thread Perrin Harkins
On Tue, 20 Mar 2001, Joshua Chamas wrote: > I know the tie/untie MLDBM::Sync strategy with DB_File is > slow, but what size data are you caching? I'm not. Well, actually I am, but I use BerkeleyDB which handles its own locking. I just noticed this in the Guide and figured that either it was out

Re: understanding memory via ps -ely | grep http

2001-03-20 Thread Perrin Harkins
On Tue, 20 Mar 2001, Tim Gardner wrote: > I understand that the RSS is the resident size in KB and the SZ > column is the size of the process, but what should I be seeing in the > way of reduced memory? The 13MB/18MB is not much different from when > I don't preload anything. Should I be seei

Re: Problem with Tie::DBI and DBI in modperl

2001-03-20 Thread Perrin Harkins
On Tue, 20 Mar 2001, John Mulkerin wrote: > There is no error message returned, it just goes back to the httpd 403 > error screen. What about in the error log? Have you read the DBI docs on how to get your error message to print? You should either have RaiseError on or be checking return codes

Re: dbm locking info in the guide

2001-03-20 Thread Perrin Harkins
On Tue, 20 Mar 2001, Stas Bekman wrote: > > Is anyone aware of a safe to way to do multi-process read/write access > > through a dbm module other than BerkeleyDB.pm without tie-ing and > > untie-ing every time? I thought that was the only safe thing to do > > because of buffering issues, but this

Re: Problem with Tie::DBI and DBI in modperl

2001-03-19 Thread Perrin Harkins
On Mon, 19 Mar 2001, John Mulkerin wrote: > I'm trying to use the plain vanilla TicketTool.pm from O'Reilly's mod > perl book, Apache Modules with Perl and C. It uses Tie::DBI to create > a hash of the mysql connection. When I run just the authentication > subroutine with Perl -d "authenticate.p

dbm locking info in the guide

2001-03-19 Thread Perrin Harkins
While working on adding info on Berkeley DB to the Guide, I came across this statement: "If you need to access a dbm file in your mod_perl code in the read only mode the operation would be much faster if you keep the dbm file open (tied) all the time and therefore ready to be used. This will work

Re: [OT] ApacheCon BOF

2001-03-19 Thread Perrin Harkins
On Mon, 19 Mar 2001, Charles J. Brabec wrote: > The Perl advocate's version: > >mod_perl: Let's see you try to do this with Python. I know you're only joking, but let's not fall into that trap of confusing arrogance with advocacy. This is my chief complaint about Pythoners: they're always i

Re: [ANNOUNCE] MLDBM::Sync v.07

2001-03-19 Thread Perrin Harkins
On Mon, 19 Mar 2001, Joshua Chamas wrote: > A recent API addition allows for a secondary cache layer with > Tie::Cache to be automatically used When one process writes a change to the dbm, will the others all see it, even if they use this? - Perrin

RE: enable normal SSI for output of mod_perl script

2001-03-16 Thread Perrin Harkins
On Sat, 17 Mar 2001, Surat Singh Bhati wrote: > Once I generate someoutput or page using my handler, I want to > pass it to apache to process the #exec. > > Apache::SSI does not support #exec and "PerlSSI disabled in DSO build" > I am using the DSO mod_perl. > > > Any solution? Apache::SSI do

Re: cgi_to_mod_perl manpage suggestion

2001-03-14 Thread Perrin Harkins
On Wed, 14 Mar 2001, Issac Goldstand wrote: > I still think that the above line is confusing: It is because mod_perl is > not sending headers by itelf, but rather your script must provide the > headers (to be returned by mod_perl). However, when you just say "mod_perl > will send headers" it i

Re: cgi_to_mod_perl manpage suggestion

2001-03-13 Thread Perrin Harkins
On Tue, 13 Mar 2001, Andrew Ho wrote: > PH>Um, you're getting me confused now, but PerlSendHeader On means that > PH>mod_perl WILL send headers. > > I recognize this confusion. Most recovering CGI programmers think that > "PerlSendHeader On" means that you no longer have to do this in your CGI: >

Re: cgi_to_mod_perl manpage suggestion

2001-03-13 Thread Perrin Harkins
On Tue, 13 Mar 2001, Issac Goldstand wrote: > The only problem was the PerlSendHeaders option. The first fifty or > so times that I read the manpages, I understood that PerlSendHeader On > means that mod_perl will SEND HEADERS, and that off meant supply your > own... Somehow I figured out (eventu

Re: Apache request object

2001-03-12 Thread Perrin Harkins
On Mon, 12 Mar 2001, Gene Dascher wrote: > How can I access the Apache Request object from a Perl package that I am > calling from a Perl Authorization handler? $r is the first argument passed to your handler. my $r = shift; > I tried using the following code in TestPackage.pm: > > my $r = Apa

Re: [OT] Re: mod_perl shared memory with MM

2001-03-11 Thread Perrin Harkins
> Can I ask why you are not useing IPC::Sharedlight (as its pure C and > apparently much faster than IPC::Shareable - I've never benchmarked it > as I've also used IPC::Sharedlight). Full circle back to the original topic... IPC::MM is implemented in C and offers an actual hash interface backed b

<    5   6   7   8   9   10   11   12   13   14   >