Re: Apache::DBI problem

2000-09-12 Thread Perrin Harkins
On Tue, 12 Sep 2000, Evelin Halling wrote: I am using Apache::DBI for user authentication and it works just fine with one exception, it does not kill the sql backend server process starting up during authentication, so after some time postgres is running out of allowed backend server

Re: persistent info (storing config?)

2000-09-11 Thread Perrin Harkins
On Sun, 10 Sep 2000, Neil Conway wrote: However, I'd rather not parse the entire config file for every single request (the config file may be very long, and/or consist of multiple files). Is there any way to parse the config file once, store the results, and make the data available to any of

Re: Memory leak hell...

2000-09-10 Thread Perrin Harkins
Matt Sergeant wrote: Can anyone give me _any_ help in figuring out where this might be coming from? When I'm working on problems like this, there are two basic things I try. They're not rocket science, but they usually work. The first is removing sections of code until the leak goes away.

Re: open(FH,'|qmail-inject') fails

2000-09-08 Thread Perrin Harkins
On Fri, 8 Sep 2000, Stas Bekman wrote: As far as benchmarks are concerned, I'm sending one mail after having displayed the page, so it shoul'dnt matter much ... Yeah, and everytime you get 1M process fired up... Nevertheless, in benchmarks we ran we found forking qmail-inject to be quite

Re: SELECT cacheing

2000-09-08 Thread Perrin Harkins
On Fri, 8 Sep 2000, Tim Sweetman wrote: - Use the DBIx namespace for the module. Possibly. SQL is not the only application for this sort of tool, though it seems to be the main one. The module we're discussing is DBI-specific. At least the interesting part of it is. The actual caching

Re: SELECT cacheing

2000-09-08 Thread Perrin Harkins
On Fri, 8 Sep 2000, Roger Espel Llima wrote: - If possible, use some existing cache module for the storage, like Apache::Session or one of the m/Cache/ modules on CPAN. Others have suggested Storable. I've used this one before, and I can agree that it's probably a good solution.

Re: Auto rollback using Apache::DBI

2000-09-07 Thread Perrin Harkins
On Thu, 7 Sep 2000, Nicolas MONNET wrote: I might get something wrong, but while in non-autocommit, if a script dies before rollbacking or commiting, looks like the transaction never gets cancelled until I kill -HUP httpd! Quite a problem ... Is there any known way to catch this? Well,

Re: Auto rollback using Apache::DBI

2000-09-07 Thread Perrin Harkins
On Thu, 7 Sep 2000, Nicolas MONNET wrote: |Well, Apache::DBI does push a cleanup handler that does a rollback if |auto-commit is off. Are you saying this isn't working? I've run into a situation where it was'nt. I wanted to make sure it's not the desired behaviour, before I can dig more

Re: SELECT cacheing

2000-09-07 Thread Perrin Harkins
On Thu, 7 Sep 2000, Roger Espel Llima wrote: The question now is: is there any interest in releasing this? I could write some minimal docs and give it a 'proper' module name, if there's interest. I'd say this is probably useful to some people, so go ahead. A few suggestions: - Use the DBIx

Re: Poor man's connection pooling

2000-09-06 Thread Perrin Harkins
On Wed, 6 Sep 2000, Jay Strauss wrote: Being a database guy but new to Mod_Perl (disclaimer: If these aspects have already been implemented and/or talked about please excuse me). Before going down this road again, I suggest reading the definitive work on the subject, which is a post from

Re: upgrading mod_perl on production machine

2000-09-06 Thread Perrin Harkins
On Wed, 6 Sep 2000, Bill Moseley wrote: I hope I didn't miss anything in the Guide at install.html and in control.html, but I was looking for any suggestions on upgrading mod_perl and Perl on a running production machine to limit the amount of down time. We use RPMs. Some form of package,

Re: Poor man's connection pooling

2000-09-06 Thread Perrin Harkins
On Wed, 6 Sep 2000, Stas Bekman wrote: Just a small correction: You can cause pages to become unshared in perl just by writing a variable, ^^^ so it's almost certain to happen sooner or later. Or for example calling pos() which

Re: HTML Template Comparison Sheet ETA

2000-09-04 Thread Perrin Harkins
"Paul J. Lucas" wrote: And I still think that: DIV CLASS="employee_info" Name: SPAN CLASS="text::name"John Q. Public/SPANBR Job: SPAN CLASS="text::job"mod_perl guru/SPAN /DIV is cleaner still: *pure* HTML (no fake elements)

Re: HTML Template Comparison Sheet ETA

2000-09-04 Thread Perrin Harkins
"Paul J. Lucas" wrote: What about conditionals and loops though? Wouldn't they break the "preview" ability? No: for loops, you just get one iteration; for conditionals, you get the result as if the condition were true. Thanks for the explanation. I can still think of

Re: HTML Template Comparison Sheet ETA

2000-09-04 Thread Perrin Harkins
I was trying to stay out of this one, but... brian moseley wrote: % for my $thing (sort @list) { a href="% $thing-{url} %"b% $thing-{name} %/b/a % } [...] there are no sophisticated or mysterious constructs in those examples... Just two kinds of data structures, hash de-referencing

Re: HTML Template Comparison Sheet ETA

2000-09-04 Thread Perrin Harkins
brian moseley wrote: On Mon, 4 Sep 2000, Perrin Harkins wrote: [% FOREACH thing = list %] a href="[% thing.url %]"b[% thing.name %]/b/a [% END %] what's the value? It's easier for some people to understand and write without help from an engineer. you have to writ

Re: Modperl in E-Business apps

2000-08-31 Thread Perrin Harkins
On Thu, 31 Aug 2000, Ken Kosierowski wrote: The subject of this message might be better worded as "Is mod_perl ready for E-Business apps, and is anyone using it for such?". Yes. Many businesses run their primary web applications on mod_perl. Take a look at the sites and success stories on

Re: question on code snippet in mod_perl guide

2000-08-31 Thread Perrin Harkins
On Thu, 31 Aug 2000 [EMAIL PROTECTED] wrote: What I think is going on is that the script gets killed by Oracle for being idle and tries to ping the connection, but the ping fails. It is supposed to reconnect when the ping fails. I've had problems getting reconnects to Oracle 8 working. The

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

Re: Apache::Session and performance question

2000-08-28 Thread Perrin Harkins
On Mon, 28 Aug 2000, Chris Brooks wrote: I went back through the documentation on Apache::Session, Apache::Session::DBIStore, and Apache::DBI, and I haven't found a problem in the way we have implemented this. Does anyone else have suggestions, or has anyone else experienced a similar

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 concerns

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

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 and

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 cache -

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 how

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

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: 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: 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:

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

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 all

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: !--#include virtual="foo.shtml"-- !--#perl

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: 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 use

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: 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 strange

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

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 only a

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 :) I

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-in

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

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 object

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: 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 and slow.

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

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-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 change

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

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

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: 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: [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 believe

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: 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: 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

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 hash,

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 pass

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,

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 where

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: 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

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 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

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: 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 suggest

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 could

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

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 dirty is

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

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 always

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 HTML LANG="en-US"HEADTITLEUntitled Document/TITLE /HEADBODYPFile::Copy::copydir ok/P PFile::Recurse::recurse ok/P/BODY/HTML In mod_perl I have the the different result HTML LANG="en-US"HEADTITLEUntitled

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: 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 find this

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 precached module

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 with

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 session

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

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: 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 declaring

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 ||=

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: 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 myself,

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

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 [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 servlet

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

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 killing

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 be

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: [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 their

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 a

Re: Template techniques

2000-06-08 Thread Perrin Harkins
On Thu, 8 Jun 2000, Bernhard Graf wrote: Chris Winters wrote: The newest version of Template Toolkit (currently in alpha) supports compiling templates to perl code. See about 2/3 of the way down the the README at www.template-toolkit.org. Why reinvent the wheel? :) Also the current

Re: Template techniques [ newbie alert + long ]

2000-06-08 Thread Perrin Harkins
On Thu, 8 Jun 2000, Greg Cope wrote: My original question was not related to templates (I'll use embperl for that) Well, I'm confused now. You'll use Embperl for templates but you're not using Embperl for templates? - the area I was trying to explore was how to read a template (all HTML

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. See the entry in

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 i

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 !--TAGS-- 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: [performance/benchmark] printing techniques

2000-06-07 Thread Perrin Harkins
On Wed, 7 Jun 2000, Stas Bekman wrote: And the results are: single_print: 1 wallclock secs ( 1.74 usr + 0.05 sys = 1.79 CPU) here_print:3 wallclock secs ( 1.79 usr + 0.07 sys = 1.86 CPU) list_print:7 wallclock secs ( 6.57 usr + 0.01 sys = 6.58 CPU) multi_print: 10

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

2000-06-07 Thread Perrin Harkins
On Wed, 7 Jun 2000, Matt Sergeant wrote: On Wed, 7 Jun 2000, Eric Cholet wrote: This said, i hurry back to s/"constant strings"/'constant strings'/g; Those two are equal. Yes, although it's counter-intutive there's no real performance hit from double-quoting constant strings. The one

Re: Data structure question

2000-06-06 Thread Perrin Harkins
On Tue, 6 Jun 2000, Drew Taylor wrote: I know about tied hashes - Thanks Damien for your excellent book! - but there is a performance penalty. How big is this penalty? Is it worth using tied hashes? Versus an array of hash refs? They're a lot slower than normal data structures, or even normal

<    7   8   9   10   11   12   13   >