Re: [OT] Content- & user management, publishing

2000-08-28 Thread Perrin Harkins
On Mon, 28 Aug 2000, Matt Sergeant wrote: > Just to correct things here, Mediasurface is only Java in the client > editing front end bit They actually told me they were using Java servlets for various things, and seem to be downplaying the perl aspects of the server. Could be just marketing thou

Re: [OT] Content- & user management, publishing

2000-08-28 Thread Perrin Harkins
On Mon, 28 Aug 2000, Christian Jaeger wrote: > - is anything like the mentioned things already existent? (mainly: database > based content management system, and something of a sophisticated user > management) (We would probably even pay for it if that matters) There are lots, but the only ones I

RE: Producing an error page

2000-08-23 Thread Perrin Harkins
On Tue, 22 Aug 2000, Howard Jones wrote: > Something that may be worthwhile as a starting point for you is CGI::Debug There is an Apache::Debug in the standard distribution. If you turn on the debugging flag in Apache::Registry, it looks like it will send the errors to the client using this mod

Re: executing a cgi from within a handler (templating redux)

2000-08-23 Thread Perrin Harkins
On Wed, 23 Aug 2000, Todd Finney wrote: > We were looking for a way to do only templating, and leave > (essentially) everything else on the site alone. For that, Template Toolkit, HTML::Template, or CGI::FastTemplate are probably your best options. > Almost, but we still have a couple of concer

Re: Apache::Session and performance question

2000-08-21 Thread Perrin Harkins
On Mon, 21 Aug 2000, Chris Brooks wrote: > We have a fairly simple handler responsible for maintaining > state on our web server. Unfortunately, when we activate > it, server performance drops to about 1/10th of what it is > without. After going through the handler and commenting > out parts an

Re: Centralized Caching

2000-08-20 Thread Perrin Harkins
Angela Focazio wrote: > > It seems very inefficient on memory to have each child process forms > its own cache, so I was interested in creating a centralized cache that > all of the child processes could dip into (actually forming a module > that allows for I/O & control of a centralized cach

Re: using mod_perl with SSI-run perl scripts

2000-08-18 Thread Perrin Harkins
> Depends where you're coming from, surely? If you're purely SSI, then > you're adding overhead, if you're already heavily perl then you're > reducing the load (provided you play by the rules ;-). This guy already said he was trying to replace #exec calls to perl CGI scripts, so it should definit

Re: Large Memory Sizes

2000-08-18 Thread Perrin Harkins
> Ok. I finally got mod_perl doing what I want it to do. > Except for one problem. after anywhere from 10 minutes, to half an hour, on a > server with 768megs of ram, it starts eating swap. > > How can I keep the processes small and not growing to ungodly sizes (13 megs > per process, unsure of h

Re: using mod_perl with SSI-run perl scripts

2000-08-17 Thread Perrin Harkins
On Thu, 17 Aug 2000, Mike Hodson wrote: > I need to know if mod_perl can execute the perl scripts called by the > exec cgi SSI command, and if so, instructions on how to make this work > properly. Take a look at the mod_perl docs: http://perl.apache.org/src/mod_perl.html#mod_perl_and_mod_include_

Re: using modules written in C?

2000-08-17 Thread Perrin Harkins
On Thu, 17 Aug 2000, Mikael Claesson wrote: > I plan to keep all lowerlevel database stuff in C, and > embed it in a perl module. Will this make things run > slower than if I made it all in perl? It shouldn't. Keep in mind though, when you use DBI from perl you are still doing all the low-level

Re: Persistent db with PerlRunOnce On?

2000-08-17 Thread Perrin Harkins
> Is it possible to establish db connection pooling with PerlRunOnce On? No. Technically Apache::DBI doesn't do "pooling" at all. It simply keeps a connection established within a child process open, in that child process. Since PerlRunOnce On means each child will exit after serving a request,

Re: [OT] mod_proxy tuning info?

2000-08-15 Thread Perrin Harkins
Hi Ed, > * What affect does CacheGcInterval have on performance? You might find it useful to split GC out into a separate process, especially if you are sharing the cache directory over NFS. > * How does performance scale with 1GB, 2GB, or 4GB of memory? Your filesystem performance should impr

Re: HTML Template Comparison Sheet ETA

2000-08-14 Thread Perrin Harkins
On Tue, 15 Aug 2000, Gunther Birznieks wrote: > Was someone (or somepersons) committed to doing this or is the project > seeking volunteers or both? Drew Taylor <[EMAIL PROTECTED]> was working on the first cut, and I was planning to add some things on to that. As with The Guide, I'm sure that a

Re: segfault from Apache::Cookie and Apache::SSI

2000-08-10 Thread Perrin Harkins
On Fri, 11 Aug 2000, G.W. Haywood wrote: > What compiler(s)? gcc -v says: gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)

Re: segfault from Apache::Cookie and Apache::SSI

2000-08-10 Thread Perrin Harkins
On Fri, 11 Aug 2000, G.W. Haywood wrote: > DSO or static? Static. I'm using Red Hat's Perl RPM, but Apache/mod_perl is compiled from source. - Perrin

segfault from Apache::Cookie and Apache::SSI

2000-08-10 Thread Perrin Harkins
I'm getting repeatable segfaults (every time) by feeding a simple file to Apache::SSI. It does a virtual include and then calls a perl sub that creates a new Apache::Cookie object, at which point it segfaults. I've reduced my test case to this: It doesn't matter what's in foo.shtml (right no

Re: script-specific environment variables?

2000-08-07 Thread Perrin Harkins
On Mon, 7 Aug 2000, Shimon Rura wrote: > Perhaps there is some way I can actually use reasonable Perl scoping to set > a variable in the scope of a Virtual Host? If so, then I could just specify > a hash of environment variables called %myEnv in each or > section, and the web scripts could just

Re: Session woes -Anyone Please help.????

2000-08-07 Thread Perrin Harkins
On Mon, 7 Aug 2000, Jitesh Kumar wrote: > All I want is to store the generated key in the session variable so > that I could retrieve the same on the subsequent page user visits for > authentication purpose. I can't rely on client side cookies as they > are not full proof. If you don't want to us

Re: Template caches

2000-08-04 Thread Perrin Harkins
On Fri, 4 Aug 2000, Bill Moseley wrote: > Now, let say for once we do have a limited amount of memory, and we have a > very large number of templates, and the templates are very large and mostly > plain old text. In other words, the compiled templates are basically big > print statements with onl

RE: Package Lexicals and PerlModule

2000-08-04 Thread Perrin Harkins
On Fri, 4 Aug 2000, mgraham wrote: > Why should PerlFreshRestart be on, anyway? Ostensibly, it's so you > can make sure that your modules can survive a soft restart, but can't > you also gather that from 'apachectl graceful'? With PerlFreshRestart turned off, a graceful restart will not reload c

Re: Package Lexicals and PerlModule

2000-08-04 Thread Perrin Harkins
On Sun, 30 Jul 2000, mgraham wrote: > Under mod_perl, I find inconsistent behaviour. It works fine when a > module is loaded via the PerlModule directive in httpd.conf. However > when a module is loaded via startup.pl, the package lexicals "forget" > their values between calls. [...] > The stran

Re: Package Lexicals and PerlModule

2000-08-04 Thread Perrin Harkins
On Fri, 4 Aug 2000, darren chamberlain wrote: > Sharing a variable among children is difficult; you need to use IPC::Sharable > or something similar. Not if it's read-only after the fork, which this one appears to be. You can load it with a value at startup and it will be shared. - Perrin

Re: Method for clearing apache's mod_proxy cache?

2000-08-03 Thread Perrin Harkins
On Thu, 3 Aug 2000, Matthew Lewinski wrote: > We are wondering if there is a way to tell mod_proxy to clear > its cache aside from doing a server restart. We have tried > sending it signals to no avail, and removing the cache files > manually causes the proxy server to hang. Doesn't the built-

Re: Feature sets [was Re: Templating System]

2000-08-03 Thread Perrin Harkins
On Thu, 3 Aug 2000, Drew Taylor wrote: > Having recently discovered the joy of CVS, I look forward to it. Awfully > nice to able to roll back to a previous version - although (knock on > wood!) I haven't had to use it yet. I can help if you get stuck. > > I hope that you write the doc is POD :)

Re: Feature sets [was Re: Templating System]

2000-08-03 Thread Perrin Harkins
On Thu, 3 Aug 2000, Drew Taylor wrote: > > Gunther, has anyone found a good home for such a comparison to be > > hosted? It would be cool if it were at perl.apache.org, or even better > > at www.perl.com or something (since it's not mod_perl specific). As > > long as it's easily updatable by its

RE: was Re: template kit..... - now session handling

2000-08-02 Thread Perrin Harkins
On Wed, 2 Aug 2000, Jeffrey W. Baker wrote: > 2) The name change should happen. However, there is already a > Persistent:: set of classes, that is somewhat similar to Apache::Session. > For example, it implements LDAP, MySQL, Oracle, Sybase, mSQL, and File > storage. These classes use all obje

Re: Feature sets [was Re: Templating System]

2000-08-02 Thread Perrin Harkins
Gunther Birznieks wrote: > Of course, mod_perl support is crucial for those that want to "scale", but > normal CGI/Perl support is really a biggie that I haven't seen highlighted > within the context of this thread. Most of the popular template modules support CGI use. Almost everything except A

RE: Feature sets [was Re: Templating System]

2000-08-01 Thread Perrin Harkins
On Tue, 1 Aug 2000, Bill Moseley wrote: > In additions to a comparison of features, people (including me) might find > it useful to have a general overview and comparison of the different > templating _technologies_ and what type of applications work well with each > and why. I was planning to

RE: was Re: template kit..... - now session handling

2000-07-31 Thread Perrin Harkins
On Sun, 30 Jul 2000, brian moseley wrote: > using this vocabulary, i'd like to suggest that jeff's > module be renamed HTTP::SessionPersistence. Since it isn't really tied to HTTP or sessions, that would be kind of a misnomer as well. Jeff already suggested Persistent::Hash at once point, but ch

Re: tie question

2000-07-31 Thread Perrin Harkins
On Mon, 31 Jul 2000, Matt Sergeant wrote: > On Mon, 31 Jul 2000, dreamwvr wrote: > > > hi, > >why is tie considered not very efficient i use it often.. what is 'a' > > much better way? > > tie isn't very efficient simply because the code behind it (in the core of > Perl) is fairly complex a

Re: Templating system

2000-07-29 Thread Perrin Harkins
On Fri, 28 Jul 2000, Drew Taylor wrote: > Andy Wardley wrote: > > > > And the REALLY, REALLY smart ones (i.e. TT2) can write the Perl code to > > disk for persistance of compiled templates. That way, the templates > > never need to be re-compiled (i.e. from TT syntax to Perl code) unless > > you

Re: Feature sets [was Re: Templating System]

2000-07-29 Thread Perrin Harkins
On Fri, 28 Jul 2000, Drew Taylor wrote: > After all this discussion, what would benefit me most in choosing my > next template system would be a concise central repository of the > features & benefits for the major template systems (TT, Apache::ASP, > Embperl, Mason, & HTML::Template come to mind

Re: Templating System

2000-07-27 Thread Perrin Harkins
On Thu, 27 Jul 2000, Ian Kallen wrote: > Why the heck do we need more programming languages? I understand people > think they're performing some kind of service by cooking up something that > looks simple for non-programmers but it looks more like hamstringing to > me, no thanks. I'm impressed

Re: [is it time for something other than html?] RE: Templating system

2000-07-27 Thread Perrin Harkins
On Thu, 27 Jul 2000, Jauder Ho wrote: > The template may be kept in memory but it needs to be reparsed to > insert real values, no? No. With most of these systems it turns into a bunch of "print" calls and then into a bunch of perl opcodes, so it gets executed each time but not parsed. > What I

Re: [is it time for something other than html?] RE: Templating system

2000-07-27 Thread Perrin Harkins
On Thu, 27 Jul 2000, Jauder Ho wrote: > If there was somehow a way to cache say the template, leaving only the > same dynamic portion uncached, it would certainly help things along > quite a bit. If anyone knows of a good way of doing this I would > certainly be interested in hearing it. I believ

Re: Caching data from db

2000-07-27 Thread Perrin Harkins
On Thu, 27 Jul 2000, Jeff Beard wrote: > I have a couple of package globals that I'd like to populate with > information from a database when I fire up the web server [...] > I thought it might be as simple a declaring the variables and > populating them the first run of the program but that's no

Re: Templating System

2000-07-27 Thread Perrin Harkins
On Thu, 27 Jul 2000, Kenneth Lee wrote: > My ideal system would be those the designer can see the server-side > objects and data fields in the database, and only associate them with > the template by drag-n-drop. The designer doesn't sees any special > tags, and doesn't have to conform to those "

Re: Templating System

2000-07-27 Thread Perrin Harkins
On Thu, 27 Jul 2000, Erich L. Markert wrote: > OK, I'm nearing the end of one project so I'm able to take a look at new > solutions so one question comes to mind. What does the template toolkit > offer above and beyond HTML::Embperl or some other templating solution? Well, keep in mind that TT d

Re: Templating System

2000-07-27 Thread Perrin Harkins
On Thu, 27 Jul 2000, Jacob Davies wrote: > The first is easy template-coder-controlled HTML-escaping of > interpolated values, so I (the Perl programmer) can just throw > unescaped form data back into the template, and the templater-coder > can do: > > To do this with Template Toolkit, I map th

RE: Templating system

2000-07-27 Thread Perrin Harkins
On Thu, 27 Jul 2000, Douglas Wilson wrote: > Until now I've been leaning toward the Template Toolkit, if only > because the template elements can be filled in with other templates > (maybe that's just in the beta version, I forget). We'd like to just > have a standard Header/Footer, but have the H

Re: DBD::Oracle and Memory problem

2000-07-26 Thread Perrin Harkins
On Wed, 26 Jul 2000, Suresh wrote: > I am running RedHat Linux 6.1 / Apache 1.3.12 /Mod_Perl / DBI and > using Oracle 8.0.5 as database back end for web application we are > developing. Everything works fine, but when i was testing for memory > problems, i found that each request of any file acces

Re: module multi-config strategy

2000-07-24 Thread Perrin Harkins
On Mon, 24 Jul 2000, martin langhoff wrote: > Now, the idea is to have one codebase, written in a module that serves > all of our sites. Each site should have its own (rather complex) > config. Each and every subroutine must know in which context it's > being called, and I don't really want to pas

Re: Apache::Session - can't undef %session?

2000-07-24 Thread Perrin Harkins
On Mon, 24 Jul 2000, Kenneth Lee wrote: > I found that if I explicitly undef %session, CLEAR will be triggered > before DESTROY clearing $self->{data}, so $self->save actually update > nothing in the database. The perltie page says that this will happen when assigning the empty list to a tied h

Re: Foo::Bar vs. Foo::Bar

2000-07-23 Thread Perrin Harkins
Ade wrote: > I have a module I've written, let's call it Foo::Bar. Well, I have several > projects running under mod_perl that use this module. I add to the module > from time to time, and thus newer projects will rely on a newer version of > Foo::Bar. All these projects are running on the same

Re: OSS/Perl Conference Report

2000-07-23 Thread Perrin Harkins
On Sun, 23 Jul 2000, Matt Sergeant wrote: > I've put my report on the OSS/Perl conference online for all to > see. Hopefully you'll find it vaguely interesting in parts. Its at > http://modperl.sergeant.org/oss-conf-report.txt "On Wednesday I first went to Andy Wardley's Template Toolkit BOF whe

Re: YAM (Yet Another Module) - an IPC shared cache thing - anyoneinterested ?

2000-07-23 Thread Perrin Harkins
On Fri, 21 Jul 2000, Greg Cope wrote: > I've writen a small IPC sysV based shared cache thingy ... (useing > IPC::ShareLite), and I'd like some comments oin the design if anywants > to crtique... Can you explain how your approach is different from the ones in IPC::Shareable, IPC::Cache, IPC::Shar

Re: PerlRun question [RESOLVED]

2000-07-20 Thread Perrin Harkins
On Thu, 20 Jul 2000, Andrew Chen wrote: > Another mod_perl success :) Congratulations! If you have a chance, you might want to write a brief desccription for the Success Stories page at http://perl.apache.org/stories/. - Perrin

Re: Apache::ASP+

2000-07-20 Thread Perrin Harkins
On Fri, 21 Jul 2000, Kenneth Lee wrote: > See this link > > http://www.asptoday.com/articles/2712.htm He sure makes a lot of fuss over adding the functionality of HTML::FillInForms. The action => sub stuff doesn't look very difficult to me, but it also doesn't look like a significant impro

RE: Help needed for using Apache::DBI

2000-07-18 Thread Perrin Harkins
On Tue, 18 Jul 2000, PHANI MADHAVI wrote: > we have gone through all the guidelines But it is not working. It > is still trying to search the 'module' in Apache.pm which obviously is > not defined. You can't tell much about the Apache.pm module just by looking at the perl source because it's

RE: Apache segfault

2000-07-18 Thread Perrin Harkins
On Tue, 18 Jul 2000, Trond Arve Nordheim wrote: > Since it's ONLY DBI->connect that calls this segfault, I can't imagine > it beeing anything else BUT a but in some MySQL-libraries or > perl-modules. I'm getting kind of desperat here, so an answer would be > deeply appreciated :) Have you tried c

Re: PerlRun question

2000-07-17 Thread Perrin Harkins
On Mon, 17 Jul 2000, Andrew Chen wrote: > On Mon, 17 Jul 2000, Perrin Harkins wrote: > > > > I think it's trying to call a method for an object that doesn't exist > > > anymore. My guess is that I am keeping a certain variable that keeps a > > > list o

Re: PerlRun question

2000-07-17 Thread Perrin Harkins
On Mon, 17 Jul 2000, Andrew Chen wrote: > In the to-keep list, there's the obvious stuff (database and other base > libraries) but also I ran a blank script and kept all the variables > brought up in that blank list (Apache::*, &c.). This way I'm not clearing > stuff that I'm supposed to. I'd sug

Re: PerlRun question

2000-07-14 Thread Perrin Harkins
On Fri, 14 Jul 2000, Andrew Chen wrote: > > You can actually do this from one place, iterating through a list of > > namespaces to flush. Look at the code in > > Apache::PerlRun::flush_namepsace. It's pretty easy. > > We would still have to add code to every module, correct? Even though > there

Re: PerlRun question

2000-07-13 Thread Perrin Harkins
On 13 Jul 2000, David Hodgkinson wrote: > > Doesn't FastCGI have exactly the same issues with dirty code? It's an > > honest question; I'm not just being difficult. > > Almost. It runs in the main package as usual so at least you won't see > screams about "...won't stay shared..." and such. I

Re: PerlRun question

2000-07-13 Thread Perrin Harkins
On Thu, 13 Jul 2000, Andrew Chen wrote: > PerlRun already flushes everything, but from my understanding of it, > with PerlRunOnce Off mod_perl won't flush the packages that were loaded by > the CGIs. What makes you think they need to be flushed? Are they things you wrote in-house that didn't fol

Re: PerlRun question

2000-07-13 Thread Perrin Harkins
On 13 Jul 2000, David Hodgkinson wrote: > Andrew Chen <[EMAIL PROTECTED]> writes: > > > Hi, I'm researching the nicest way to migrate our CGIs to running under > > mod_perl, and although they are too dirty to run under Apache::Registry, > > Apache::PerlRun works just fine. > > *snip* > > How d

Re: PerlRun question

2000-07-13 Thread Perrin Harkins
On Thu, 13 Jul 2000, Andrew Chen wrote: > The second strategy is to get mod_perl to compromise between the effects > of PerlRunOnce On and PerlRunOnce Off. Is there an easy for for PerlRun to > flush everything (including packages) that wasn't preloaded in the > startup.pl file? That would be a c

RE: Why mod_perl does not like File::Recurse module?

2000-07-11 Thread Perrin Harkins
On Tue, 11 Jul 2000, Jerrad Pierce wrote: > But nobody is typically a rather priveleged account... Permissions are permissions. If you want the nobody user to read the files and directories, they have to be accessible by that user. > > > Why mod_perl does not like File::Recurse module??? > >

Re: Why mod_perl does not like File::Recurse module?

2000-07-11 Thread Perrin Harkins
On 11 Jul 2000, Alexei V. Barantsev wrote: > >From command line all is ok > > Untitled Document > File::Copy::copydir ok > File::Recurse::recurse ok > > In mod_perl I have the the different result > > Untitled Document > File::Copy::copydir ok > File::Recurse::recurse failed > > Why mod_p

Re: Apache/mod_perl

2000-07-06 Thread Perrin Harkins
On Thu, 6 Jul 2000, Richard Dice wrote: > > >(Another aspect of how it's > > >slower is that you won't be able to take advantage of Apache::DBI persistent > > >database connections with Apache::PerlRun.) > > > > I *think* this is incorrect. PerlRun modules can take advantage of other > > precach

Re: Apache::Session::Object

2000-07-06 Thread Perrin Harkins
On Thu, 6 Jul 2000, Nathan Wiger wrote: > > $session->STORE('visa_number') = '7'; > > print $session->FETCH('visa_number'); > > $session->DELETE('visa_number'); > > This isn't really a documented interface - it's an overloading of the > tie methods so that the tied hash interface works. You can't

Re: Apache::Session::Object

2000-07-06 Thread Perrin Harkins
On Thu, 6 Jul 2000, Nathan Wiger wrote: > I've created an object interface to Apache::Session. It's a simple > module that I've called Apache::Session::Object (seemed pretty > intuitive) that presents the following interface: > ># Create new session using the default File store >use Apach

Re: ANNOUNCE: Apache::ASP v1.93

2000-07-05 Thread Perrin Harkins
On Wed, 5 Jul 2000, Joshua Chamas wrote: > > This sounds interesting, but I don't quite understand what you did. The > > sessions are stored in a dbm file, right? Don't you still need locking if > > all servers are trying to update the same NFS-mounted dbm file? Or am I > > totally off on how s

Re: ANNOUNCE: Apache::ASP v1.93

2000-07-05 Thread Perrin Harkins
On Wed, 5 Jul 2000, Joshua Chamas wrote: > ++Better SessionManagement, more aware of server farms that > don't have reliable NFS locking. The key here is to have only > one process on one server in charge of session garbage collection > at any one time, and try to create this situation wi

Re: Urgent Assistantance Needed!

2000-07-02 Thread Perrin Harkins
On Sun, 2 Jul 2000 [EMAIL PROTECTED] wrote: > Hello. I am trying to get persistant connections for my cgi-scripts using DBI > and Mysql. I didn't see a "use pache::DBI;" or a "PerlModule apche::DBI" anywhere is your post. Did you forget it? - Perrin

Re: Global variables II [and DBI]

2000-06-30 Thread Perrin Harkins
On Fri, 30 Jun 2000, Tomas Zeman wrote: > but how I create a global variable, which will be > global for all apache processes together ? You have to use either shared memory (IPC::ShareLite, IPC::Shareable, IPC::MM) or an external storage method like flat files, dbm files, or a relational databa

possible distributed session server

2000-06-27 Thread Perrin Harkins
Saw this on Freshmeat today. It looks like it could be useful for handling session data within a cluster, as a low-end alternative to expensive replicated RDBMS stuff. http://www.fault-tolerant.org/recall/ - Perrin

Re: mod_perl and BerkeleyDB

2000-06-25 Thread Perrin Harkins
Geoffrey Gallaway wrote: > > I've been trying to get BerkeleyDB and mod_perl to work together for a > web database. I'm using BerkeleyDB version 3.1.14 on a RedHat 6.1 based > system with a stock kernel under apache 1.3.12 and mod_perl 1.21. I wrote > a simple script to open a berkeley database,

Re: Apache does't behave well with mod_perl

2000-06-23 Thread Perrin Harkins
On Fri, 23 Jun 2000, Jakub Vosahlo wrote: > I have tried to compile mod_perl statically into httpd using axps. I have > received httpd file much bigger than an "empty" one, but httpd didn't know > anything about mod_perl directives inside httpd.conf (it complained about > not loaded shared module

Re: Caching Net::LDAP connections

2000-06-23 Thread Perrin Harkins
On Fri, 23 Jun 2000, Yann Ramin wrote: > I've been using Net::LDAP in a mod_perl/Apache server for awhile and I > have a question. What would I need to do to cache the Net::LDAP > handler/connection, like Apache::DBI? You could start with something like this: use vars qw($ldap); $ldap ||= Net:

Re: using a module to contain settings.

2000-06-23 Thread Perrin Harkins
On Fri, 23 Jun 2000, Scott Alexander wrote: > package Mf7::Globals; > use strict; > use vars qw($VERSION); > my ( > $imgserver, > ); > $VERSION = '0.01'; > sub Initialize_globals { > $imgserver = 'http://www.musiciansfriend.com'; > } > 1; Okay, this is an easy one. You are dec

Re: MaxChildRequests and modperl - issue

2000-06-22 Thread Perrin Harkins
On Thu, 22 Jun 2000, Justin wrote: > What I think happens is the children die after their last request, > and apache does not kick off a new child straight away.. MinFree is > set to 2 Does it help if you crank MinSpareServers higher? > Perhaps having my own ChildRequest counter and dieing myse

Re: using a module to contain settings.

2000-06-22 Thread Perrin Harkins
On Thu, 22 Jun 2000, Scott Alexander wrote: > The way i've been trying to do this is to create a module Mf7::Globals > and then store the data inside. That should work fine. > I then have an Initialize_globals function that I run to reset all the > variables at the begining of a request. Why w

Re: Advice about mod_perl vs. fastcgi (specific)

2000-06-22 Thread Perrin Harkins
On Thu, 22 Jun 2000, Todd Federman wrote: > So, my main question: Is there a way to use mod_perl with remote > execution, or at that point is it just silly not to go with fastcgi? Not sure how you missed it, but go and read the discussion of using a reverse proxy with mod_perl in the guide or th

RE: Apache::DBI

2000-06-21 Thread Perrin Harkins
On Wed, 21 Jun 2000, Eric Jain wrote: > > > Is it be possible to modify Apache::DBI in sich a way that only > > > database connections specified in a PerlRequired startup.pl with > > > Apache::DBI->connect_on_init(...) are stored and all subsequent > > > DBI->connect(...) connections are properly

re: mod_perl vs. FastCGI

2000-06-21 Thread Perrin Harkins
On Wed, 21 Jun 2000, Scott Thomason wrote: > So, given that, here's the question again: why would you choose > Apache::Registry over FastCGI? If you're developing from scratch, why would you choose Apache::Registry at all when you can write directly to the Apache API with a mod_perl handler? But

Re: DBI connect_cached vs Apache::DBI

2000-06-20 Thread Perrin Harkins
On Tue, 20 Jun 2000, Andrew Dunstan wrote: > > The DBI manpage says this: > > connect_cached is like connect, except that the database handle returned is > also stored in a hash associated with the given parameters. If another call > is made to connect_cached with the same parameter values, the

Re: $r->print and references: Was RE: Slightly OT - Content-length

2000-06-19 Thread Perrin Harkins
On Mon, 19 Jun 2000, John Hughes wrote: > > Incidentally, the $r->print() method conveniently lets you pass the string > > you want to send by reference. > > Why is that "convenient": It's convenient for me because I have a scalar ref that I want to print. Maybe dereferencing it and passing by

Re: Apache::Session & Math::Currency thawing issue.

2000-06-19 Thread Perrin Harkins
On Mon, 19 Jun 2000, Jay Jacobs wrote: > I'm trying to use Math::currency with sessions, and I've run into a > stumper. I initialize variables and make them Math::Currency objects, > and display them just fine, but when I come back (unthaw the session) > instead of seeing the value I get the re

Re: Apache::DBI strategy/philosophy

2000-06-17 Thread Perrin Harkins
John M Vinopal wrote: > For programmer ease you probally want to connect inside a module, and for > mod_perl speed you want to preload that module. But you can't do both AND > connect once at the start. Mod_perl insists that dbh connections must not > be made in the parent and then used in the c

Re: Highly optimized mod_perl ?

2000-06-17 Thread Perrin Harkins
Vladislav Safronov wrote: > Does anyone know the way to highly optimize mod_perl for speed? > Any hacks, advices? All standard advices read from help are done... The Guide (http://perl.apache.org/guide/) is very comprehensive. If you've followed the perfromance tuning tips there, the main thing

RE: [OT] [JOB] mod_perl and Apache developers wanted

2000-06-16 Thread Perrin Harkins
On Thu, 15 Jun 2000, Paul Singh wrote: > While that may be true (as with many publications), I hope you're not > denying the facts of this case The basic facts are correct: eToys received complaints from parents about the content their children found on the etoy.com site and, after failing to rea

Re: Apache::DBI broken?

2000-06-16 Thread Perrin Harkins
Make sure you're loading it before DBI, including any scripts that use DBI. Try putting "PerlModule Apache::DBI" right up at the top of your httpd.conf and see if that fixes things. - Perrin On Fri, 16 Jun 2000, Ian Mahuron wrote: > > I've been searching through the mailing list and have seen

Re: Slightly OT - Content-length

2000-06-16 Thread Perrin Harkins
On Fri, 16 Jun 2000, Vivek Khera wrote: > The other alternative is to generate your entire page as a string, get > the string's length() and print that as your content-length header. This is what I do, for two reasons. First, most browsers give more information to the user if you supply this, in

Re: [OT] [JOB] mod_perl and Apache developers wanted

2000-06-15 Thread Perrin Harkins
"Jeffrey W. Baker" wrote: > You forgot the part about suing legitimate domain name holders, harrassing > artists with little or no income, and trying to extend USA jurisdiction to > the internet. > > While I'm sure the engineering department had no part in such things, I > believe the readers of

Re: Apache::Session weirdness

2000-06-13 Thread Perrin Harkins
On Tue, 13 Jun 2000, Jure Simsic wrote: > I see. That explains it.. > Perhaps it would be nice just to put a note about this in the > Apache::Session documentation.. It's already there: "Note that Apache::Session does only a shallow check to see if anything has changed. If nothing

Re: perl vs java

2000-06-12 Thread Perrin Harkins
On Mon, 12 Jun 2000, Shane Nay wrote: > If I were to write a new version of the chat engine I wrote, I > wouldn't do it this way. In fact I started re-writing it based on a > sigqueues, and CORBA. Shane, you are a maniac! You wrote a chat server using sigqueues and CORBA? Isn't that like killi

Re: Template techniques

2000-06-12 Thread Perrin Harkins
On Mon, 12 Jun 2000, Roger Espel Llima wrote: > The focus of my module (it'll probably be called 'iAct') is quite > different, though. The html-embedded command set is limited to a set of > strictly declarative features; You don't have to use the fancier stuff in TT. Our designers only use basi

Re: Perl vs Java [Now OT]

2000-06-12 Thread Perrin Harkins
On Mon, 12 Jun 2000, Gunther Birznieks wrote: > >Unless you use a cluster of servers for load balancing and high > >availability, in which case you're right back where you started and you > >need the Java equivalent of Apache::Session::DBI. I imagine someone has > >written one in one of the many

Re: Session-handling and multiple browser windows

2000-06-12 Thread Perrin Harkins
On Mon, 12 Jun 2000, Dylan Weed wrote: > Option three (removing all page-specific state from the session hash) > seems like the right thing to do. It is. I don't know any other way to handle this situation correctly. > I'd like to avoid it if possible, however, because it means passing > more i

Re: oracle error log

2000-06-12 Thread Perrin Harkins
> > [Mon Jun 12 17:43:35 2000] [notice] caught SIGTERM, shutting down > > ORACLE_HOME environment variable not set! > > > Does anybaody know why this happen. the ORACLE_HOME enviroment > > variable is defined and i don't know what can happen. > > > > thanks > > > >Jesús Maybe you need to

Re: Caching and mod_perl

2000-06-12 Thread Perrin Harkins
On Mon, 12 Jun 2000, Richard L. Goerwitz wrote: > What I'm interested in knowing is whether anybody's written an inter- > face to the actual Apache caching utility routines. If it's not in the Eagle book, the answer is most likely "no". Most of use dbm files or something similar for caching fro

Re: Perl vs Java [Now OT]

2000-06-11 Thread Perrin Harkins
On Sun, 11 Jun 2000, Gunther Birznieks wrote: > 1. Session management. Because servlets are multi-threaded they have easy, > quick access to a shared memory pool. All the locking and shared > persistence code used in Apache::Session is rendered moot by the shared > memory Java model. Unless yo

Re: Perl vs Java

2000-06-11 Thread Perrin Harkins
On Sun, 11 Jun 2000, Matt Sergeant wrote: > There are posts in the archive about this. Here's a quick summary: > > You can make Java slow. You can make mod_perl slow. > Java (servlets, jsp, etc) can use a lot of memory. mod_perl can use a lot > of memory. > Servlets can be very fast. mod_perl can

Apache::DProf tip

2000-06-10 Thread Perrin Harkins
Here's something that might be obvious to others but took me a while to figure out: If you want to get useful profiling information, you need to initialize the debugger before your modules get compiled. If you pull in your modules from startup.pl, you can accomplish this by putting a block like

Re: Template techniques

2000-06-09 Thread Perrin Harkins
On Fri, 9 Jun 2000, Roger Espel Llima wrote: > I'm developping yet another toolkit for templating under mod_perl (don't > flame me YET, it does things that are significantly different from > Mason, Embperl and others: namely completely separation of data and > code, good multilingual support, and

Re: [OT now] Re: Template techniques

2000-06-09 Thread Perrin Harkins
On Fri, 9 Jun 2000, Drew Taylor wrote: > I really like the fact that templates can be compiled to perl code & > cached. Any others besides Mason & EmbPerl (and TT in the near future)? Sure: Apache::ePerl, Apache::ASP, Text::Template, and about a million unreleased modules that people wrote for th

Re: Template techniques [ newbie alert + long ]

2000-06-08 Thread Perrin Harkins
On Thu, 8 Jun 2000, Greg Cope wrote: > > > - the area I was trying to explore was how to read a template (all > > > HTML with a few in it) and the sub in the new content. > > > > Embperl would work fine for that, but it's overkill. Your substitution > > approach is slower than compiling to perl

Re: Any suggestions or help, Thanks

2000-06-08 Thread Perrin Harkins
Turn on Apache::DBI's debugging messages and see if it's working properly. - Perrin On Wed, 7 Jun 2000, Hui Zhu wrote: > Hi Everybody: > > I got big problems. Same query and same script. Sometimes it works fine > but sometimes i get the following > errors (i am so frustrated, have no idea what

Re: [OT] Re: [performance/benchmark] printing techniques

2000-06-08 Thread Perrin Harkins
On Thu, 8 Jun 2000, Matt Sergeant wrote: > > The one that bugs me is when I see people doing this: > > > > $hash{"$key"} > > > > instead of this: > > > > $hash{$key} > > Those two now also result in the same code. ;-) > > But the former is just ugly. Sometimes it's worse than just ugly. Se

<    8   9   10   11   12   13   14   15   >