Re: Apache::SSI pain

1999-10-13 Thread Perrin Harkins
The thing that works best for me is to use an Apache::SSI object myself rather than using any kind of chaining. my $ssi = Apache::SSI-new($text, $r); print $q-header; # send the HTTP header $ssi-output(); Or you can capture the output instead of just sending it, like this: my $ssi=

Re: Apache::DBI MySQL

1999-10-13 Thread Perrin Harkins
Viren Jain wrote: I included the command "PerlModule Apache::DBI" in my mod_perl Apache configuration files. Yet, over time there builds up more connection in mysql than apache processes (only Apache/CGI should be accessing MySQL) and most processes seem to have very high "Time"s

Re: More on web application performance with DBI

1999-10-14 Thread Perrin Harkins
On Thu, 14 Oct 1999, Jeffrey Baker wrote: Zero optimization: 41.67 requests/second Stage 1 (persistent connections): 140.17 requests/second Stage 2 (bound parameters): 139.20 requests/second Stage 3 (persistent statement handles): 251.13 requests/second I know you said you don't like it

Re: RegistryNG docs?

1999-11-13 Thread Perrin Harkins
Ken Williams wrote: The only thing keeping RegistryNG from being the main version of Registry (which it will be in the future) is that it hasn't been tested enough by people like you. So go for it! It's probably going to be a much cleaner way to proceed than mucking around in Registry.

Re: Summary of DB_File locking wrappers

2000-01-11 Thread Perrin Harkins
David Harris wrote: There are three locking wrappers for DB_File in CPAN right now. Each one implements locking differently and has different goals in mind. It is therefore worth knowing the difference, so that you can pick the right one for your application. Good summary. Thanks! Note

Re: Summary of DB_File locking wrappers

2000-01-11 Thread Perrin Harkins
On Tue, 11 Jan 2000, Stas Bekman wrote: There are three locking wrappers for DB_File in CPAN right now. Each one implements locking differently and has different goals in mind. It is therefore worth knowing the difference, so that you can pick the right one for your application.

Re: problems with module at root of web site

2000-01-12 Thread Perrin Harkins
Sean Chittenden wrote: Mind if I ask a nit-pick of a performance question? Currently speed and performance are of upmost importance (I'm currently involved in a mod_perl vs JServ development race). If you're on Linux, I can tell you right now that mod_perl is significantly faster

Re: ANNOUNCE: HTML::Mason 0.8

2000-01-24 Thread Perrin Harkins
On Sun, 23 Jan 2000, Jonathan Swartz wrote: - New in-memory code cache keeps track of component usage, and discards the most infrequently used components as needed. You can specify the cache size with interp-max_code_cache_size. This sounds cool, but does it work, i.e. when you

Re: mod_perl flashback

2000-01-19 Thread Perrin Harkins
now, i have the exact same problem: i need my SSI to filter thru everithing: HTML, CGIs, PHP, etc. You get HTML filtering already. For CGIs, why not write a minimal PerlHandler to emulate CGI (i.e. set up the environment and execute the CGI script) and then run the output through SSI? For

Re: oracle : The lowdown

2000-01-20 Thread Perrin Harkins
Perrin Harkins wrote: Greg Stark wrote: For example, it makes it very hard to mix any kind of long running query with OLTP transactions against the same data, since rollback data accumulates very quickly. I would give some appendage for a while to tell Oracle to just use the most recent

Re: ApacheDBI question

2000-01-28 Thread Perrin Harkins
On Fri, 28 Jan 2000, Deepak Gupta wrote: How does connection pooling determine how many connections to keep open? The reason I ask is that I am afraid my non-modperl scripts are getting rejected by the db server b/c all (or most) connections are being dedicated to Apache activity. Please

Re: splitting mod_perl and sql over machines

2000-01-28 Thread Perrin Harkins
On Fri, 28 Jan 2000, Marko van der Puil wrote: There has been an discussion in the Mod_Perl mailing list about whether you would profit from splitting your Mod_Perl enabled Apache server and a SQL database like MySQL over multiple machines. To give this discussion some technical and

Re: Novel technique for dynamic web page generation

2000-01-28 Thread Perrin Harkins
On Fri, 28 Jan 2000, Paul J. Lucas wrote: but it seems like it does tie your program closely to the structure of the documents. It does somewhat, but much less so than existing techniques: 1. Conventional CGI (a print-statement-laden Perl script): this tightly

Re: ANNOUNCE: Updated Hello World Web Application Benchmarks

2000-01-29 Thread Perrin Harkins
Joshua Chamas wrote: There is no way that people are going to benchmark 10+ different environments themselves, so this merely offers a quick fix to get people going with their own comparisons. I agree that having the code snippets for running hello world on different tools collected in one

Re: ANNOUNCE: Updated Hello World Web Application Benchmarks

2000-01-29 Thread Perrin Harkins
I think too that the OS/machine results at http://www.chamas.com/bench/hello_bycode.html could be more accurate in comparing results if the results are also grouped by tester, network connection type, and testing client so each grouping would well reflect the relative speed differences web

Re: ANNOUNCE: Updated Hello World Web Application Benchmarks

2000-01-30 Thread Perrin Harkins
On Sun, 30 Jan 2000, Perrin Harkins wrote: I can understand that; I just don't want mod_perl users to get a reputation as the Mindcraft of web application benchmarks. I'm not sure I see how that can happen when we quite clearly state that php4 is faster than mod_perl. Only one person

Re: IPC::Cache version 0.01 available

2000-01-30 Thread Perrin Harkins
Hi, A week or two ago, in the squid performance thread, I mentioned that I was looking for ways to eliminate squid from our production servers. I noted that we are using squid to save an expensive trip to the database to retrieve mostly static files. At that time I said that I planned to

Re: Using network appliance Filer with modperl

2000-01-31 Thread Perrin Harkins
On Mon, 31 Jan 2000, siberian wrote: My question is : Has anyone experienced any 'gotchas' in putting perl code that modperl handlers use on a Network Attached file server like a network appliance box ( www.netapp.com )? Just make sure you have time synchronized between your servers and the

Re: Caucho faster than mod_perl?

2000-02-01 Thread Perrin Harkins
Sean Chittenden wrote: http://www.caucho.com/articles/benchmark.html Supposedly, according to its benchmarks, it's faster than mod_perl... impressive to say the least. Any chance someone has any experience with this or would like to benchmark this technology? External validation would

Re: Caucho faster than mod_perl?

2000-02-01 Thread Perrin Harkins
Sean Chittenden wrote: http://www.caucho.com/articles/benchmark.html Supposedly, according to its benchmarks, it's faster than mod_perl... impressive to say the least. Any chance someone has any experience with this or would like to benchmark this technology? External

Re: Caucho faster than mod_perl?

2000-02-02 Thread Perrin Harkins
Bill Moseley wrote: Is Apache::Registry really that much of a hit in performance over a plain old Apache content handler? And if so, why? No, it isn't. This is a "Hello World" benchmark we're talking about here, designed to show the difference in startup costs. A real app would not have

Re: XML Configuration [Was: Re: Caucho faster than mod_perl?]

2000-02-02 Thread Perrin Harkins
Matt Sergeant wrote: Also, what's different between Resin's smart caching and mod_perl's? Is it just like StatINC? It can cache output in a way similar to Mason. They call this "Smart Caching". It reloads servlet classes pretty cleanly when code is updated, but doesn't track dependencies, so

Re: Mod_Perl learning track

2000-02-08 Thread Perrin Harkins
On Tue, 8 Feb 2000, Scott Chapman wrote: What magazines are good on Perl? At least two of the members on this list write for Web Techniques (Lincoln and Randal). And of course The Perl Journal is good. - Perrin

Re: Apache::ASP and Apache::SSI problems

2000-02-10 Thread Perrin Harkins
On Thu, 10 Feb 2000 [EMAIL PROTECTED] wrote: Okay, I installed mod_perl, Apache::ASP and required modules like Apache::Filter, and Apache::SSI. (Note, some of the Apache:: modules will not isntall via CPAN.pm, they look for HTTP in some messed up directory where it oviously doesn't exist,

Re: What's the benefits of using XML ?

2000-02-10 Thread Perrin Harkins
On Thu, 10 Feb 2000, Vlad Safronov wrote: What's the benefits of using XML in building web site with dynamic content? (web site is a front end to database) This is off-topic for this list, but I can't resist... What's the benefit of using XML? You get to buy expensive application servers!

Re: Apache::ASP and Apache::SSI problems

2000-02-10 Thread Perrin Harkins
On Thu, 10 Feb 2000, Ken Williams wrote: Yeah, I just saw the message. Since I tend not to use CPAN.pm (I like to tinker around with stuff when I download/install) I've been ignorant of its procedures. The main thing to know is that it won't install if the tests fail, unless you force it.

Re: What's the benefits of using XML ?

2000-02-11 Thread Perrin Harkins
On Fri, 11 Feb 2000, Matt Sergeant wrote: XML and XSLT can provide this. Rather than write pages to a specific style with toolbars in the right place, and format things how I want them, I can write in XML, and down transform to HTML using a stylesheet. When I want to change the look of my

Re: Apache::Session, DBD::Oracle

2000-02-08 Thread Perrin Harkins
On Wed, 9 Feb 2000, Robert Locke wrote: We've been using the latest Apache::Session::DBI with some success using Oracle 8i (DBD::Oracle 1.03) as the data store. (Basically, we applied Ajit Deshpande's recommendation of patching DBIStore.pm with a large number for LongReadLen. See

Re: ORA-12154: TNS:could not resolve service name with DBI under Apache

2000-03-29 Thread Perrin Harkins
On Wed, 29 Mar 2000, Jerome MOUREAUX wrote: Alias /indicators2/perl "/disc1/sherpa_a/indicators2/perl" [...] PerlSetEnv ORACLE_HOME /disc1/sherpa/oracle Do you really have a /disc1/sherpa directory and a /disc1/sherpa_a directory? - Perrin

Re: ORA-12154: TNS:could not resolve service name with DBI under Apache

2000-03-29 Thread Perrin Harkins
On Wed, 29 Mar 2000, Jerome MOUREAUX wrote: My scripts run well if I launch it from the command line. Have you tried running them from the command line as the user who the webserver runs as? There may be something in your user environment that allows them to work which is not set up for this

Re: performance mongers: since when is using CGI.pm or Apache::Registry dishonorable?

2000-03-31 Thread Perrin Harkins
On Fri, 31 Mar 2000, Vivek Khera wrote: My question to all of you who use handlers directly, how do you manage all your handler mappings? I've seen it done where you add a Location mapping for each handler you use, which corresponds to each "program" you need. This, in my experience, tends

Re: Transitioning from Apache::Registry

2000-04-03 Thread Perrin Harkins
On Mon, 3 Apr 2000, Drew Taylor wrote: In light of the recent "performance monger" thread, I am interested in information about transitioning from Registry scripts to Apache handlers. Here is my situation, which I'm guessing is pretty common. [...] use Search; use CGI; my $q = new CGI; my

Re: Transitioning from Apache::Registry

2000-04-03 Thread Perrin Harkins
On Mon, 3 Apr 2000, Drew Taylor wrote: So I just write a small handler which does the same thing as the .pl script and add a Location /cgi-bin/search.pl directive to use this handler? Yes, that should work fine. And I would need to setup a Location directive for each function (Search,

Re: prepare_cached and Apache::DBI.

2000-04-05 Thread Perrin Harkins
On Wed, 5 Apr 2000, Paul Sullivan wrote: When attempting to use prepare_cached along with Apache::DBI, it returns this error once it has ran through each of the apache children. [Wed Apr 5 ...] [error] prepare_cached(...) statement handle DBI::st=HASH(0x8296788) is still active at

Re: [slightly OT] Problem with cookies

2000-04-06 Thread Perrin Harkins
On Thu, 6 Apr 2000, Drew Taylor wrote: I have a site which uses cookies for user tracking. If you go to http://cloudstock.com/, the server is sending the cookie but the browser is not accepting it ("warn before accepting cookie" is on). If I go to http://www.cloudstock.com/ the cookie is sent

Re: [slightly OT] Problem with cookies

2000-04-07 Thread Perrin Harkins
Jim Winstead wrote: An important point is that although "Host:" wasn't required until HTTP/1.1, all of the common browsers have sent it with 1.0 requests for some time. Yes, but I've had problems with corporate proxy servers that don't send it. - Perrin

Re: Apache::Session -- Go Out of Scope!!!

2000-04-07 Thread Perrin Harkins
On Fri, 7 Apr 2000, Russell D. Weiss wrote: Normally, this works great. No problem at all. This object goes out of scope at the end of the script (it's scoped lexically with "my"). It also goes out of scope when "die" is explicitly called. If I add "die 'Blah blah blah'" to an app, things

Re: REDIRECT missing Cookie

2000-04-11 Thread Perrin Harkins
Jim Winstead wrote: On Apr 08, Zeqing Xia wrote: Hi, I'm having a problem with setting the cookie in a REDIRECT. Basically, I'm doing this in a handler: $r-headers_out-add('Set-Cookie' = $cookie); $r-headers_out-add('Location' = $location); return REDIRECT; The

Re: Modperl/Apache deficiencies... Memory usage.

2000-04-15 Thread Perrin Harkins
Each process of apache has it's registry which holds the compiled perl scripts in..., a copy of each for each process. This has become an issue for one of the companies that I work for, and I noted from monitoring the list that some people have apache processes that are upwards of 25Megs,

Re: Modperl/Apache deficiencies... Memory usage.

2000-04-17 Thread Perrin Harkins
[EMAIL PROTECTED] wrote: Now with modperl the Perl garbage collector is NEVER used. Because the reference count of those variables is never decremented... it's because it's all in the registry, and it's hard to tell... hmm... what should I throw away, and what should I keep? ;-). What I

Re: Modperl/Apache deficiencies... Memory usage.

2000-04-17 Thread Perrin Harkins
[EMAIL PROTECTED] wrote: my $i=0; dosomefunnierstuff(); sub dosomefunnierstuff { my $funnierstuff; if($funnierstuff=~/funnier/) { dosomefunnierstuff(); } else { $funnierstuff="funnier".$i++; } print "Funnierstuff is

Re: Problem with CGI::Carp under mod_perl

2000-04-18 Thread Perrin Harkins
On Tue, 18 Apr 2000, Steve Hay wrote: I'm having problems using "CGI::Carp qw(fatalsToBrowser);" in modperl scripts. [...] The first one calls die() itself. Under Apache/CGI the die() message appears in the web browser (albeit preceded by a spurious Content-Type line), but under

Re: Problem with CGI::Carp under mod_perl

2000-04-19 Thread Perrin Harkins
On Wed, 19 Apr 2000, Steve Hay wrote: Sounds like a difference in the way CGI scripts and mod_perl buffer. I fyou really want CGI::Carp to work, you need to make sure you don't send any output before it gets called. Maybe you have PerlSendHeader on? I did have PerlSendHeader On:

Re: Apache::DBI disconnect?

2000-04-25 Thread Perrin Harkins
"John S. Evans" wrote: Weird. The whole point of Apache::DBI (or so I understand it) is so that your $dbh stays valid across CGI or Handler calls. That's right. The disconnect call is a no-op when using Apache::DBI. I can only think of two reasons why I get the error message: 1) My

Re: Modperl/Apache deficiencies... Memory usage.

2000-04-26 Thread Perrin Harkins
On Tue, 25 Apr 2000 [EMAIL PROTECTED] wrote: With mod_proxy you really only need a few mod_perl processes because no longer is the mod_perl ("heavy") apache process i/o bound. It's now CPU bound. (or should be under heavy load) I think for most of us this is usually not the case, since most

Re: Modperl/Apache deficiencies... Memory usage.

2000-04-26 Thread Perrin Harkins
On Wed, 26 Apr 2000, Leslie Mikesell wrote: According to Perrin Harkins: On Tue, 25 Apr 2000 [EMAIL PROTECTED] wrote: With mod_proxy you really only need a few mod_perl processes because no longer is the mod_perl ("heavy") apache process i/o bound. It's now CPU bound.

Re: [RFC] modproxy:modperl ratios...

2000-04-27 Thread Perrin Harkins
On Thu, 27 Apr 2000, Matt Sergeant wrote: Is there any benefit of mod_proxy over a real proxy front end like "Oops"? There's a big study of proxy servers posted at http://bakeoff.ircache.net/N02/. There are some expensive ones with dedicated hardware that perform well. Of course, there are

Re: OOP, Inheritance, and mod_perl

2000-04-27 Thread Perrin Harkins
On Thu, 27 Apr 2000, bahwi wrote: I have a question about OOP, Inheritance, and mod_perl. I have OO pre-loaded module A, which clients B, C, and D use. Each one get's their own, and the configuration variables are different. My question here is how much memory does this take up? Is the

Re: speed up/load balancing of session-based sites

2000-04-27 Thread Perrin Harkins
On Thu, 27 Apr 2000, Dan McCormick wrote: If you split things between a proxy and a mod_perl server, the first hit would have to go through to the mod_perl server to initiate the session, but subsequent requests which may not need the session info could be sent to the proxy. Is that

Re: growing processes

2000-05-08 Thread Perrin Harkins
On Mon, 8 May 2000, Wim Kerkhoff wrote: On a fresh restart of apache, my processes are about 20 ~ 25 MB each, which is about normal for mod_perl (as far as I know). However, within a few hours (with little use except by our development team), the size is up to 40MB, and by the end of the day

Re: Am I Defeating The Purpose?

2000-05-08 Thread Perrin Harkins
On Mon, 8 May 2000, Pierre J. Nicolas wrote: I've been tyring for the past several days to stop the infamous "Undefined Subroutine" messages. I implemented "solution 2" by adding a "require" statement in all of my scripts. That still didn't do it. Why do you have this problem in the first

Re: speed up/load balancing of session-based sites

2000-05-09 Thread Perrin Harkins
Autarch wrote: On Mon, 8 May 2000, Perrin Harkins wrote: Some apps that use Apache::Session, like Embperl and Mason, have chosen to rely on cookies. They implement the cookie part themselves. Apache::Session has nothing to do with cookies. I don't know about Embperl but Mason

Re: speed up/load balancing of session-based sites

2000-05-09 Thread Perrin Harkins
On Tue, 9 May 2000, Jeffrey W. Baker wrote: If you are using an RDBMS which has atomic operations, you can turn off locking in Apache::Session with no effect. I think every RDBMS I've seen, includig MySQL, guarantees atomicity at this level. On the subject of locking, I think that the daemon

Re: growing processes

2000-05-09 Thread Perrin Harkins
On Tue, 9 May 2000, Wim Kerkhoff wrote: On 09-May-2000 Perrin Harkins wrote: On Mon, 8 May 2000, Wim Kerkhoff wrote: On a fresh restart of apache, my processes are about 20 ~ 25 MB each, which is about normal for mod_perl (as far as I know). However, within a few hours (with little use

Re: speed up/load balancing of session-based sites

2000-05-09 Thread Perrin Harkins
On Tue, 9 May 2000, Jeremy Howard wrote: Murali said: As I understand from this discussion we have 2 methods involving creating a session-server which will store all session data. a) NFS mount a server which will store all session data b) Have a DB in this server which stores this data.

Re: Best approach for loading several modules

2000-05-11 Thread Perrin Harkins
On Thu, 11 May 2000, Martin Wood wrote: Our Apache::Registry CGIs need access to a dozen or so core modules - is there an elegant solution to loading these without seeing a dozen or so use statements at the head of the script? Yes. As Vivek pointed out, you can move them all into a

Re: KHTTPD for static and Apache/mod_perl for dynamic??

2000-05-15 Thread Perrin Harkins
On Mon, 15 May 2000, raptor wrote: My question is instead of using two Apache servers OR Apache+proxy scenario (static vs dynamic pages) will it be possible to leave static pages to kHTTPD and run only one APACHE server. It will, but you're missing part of the benefit from the proxy

Re: make test of Apache::SSI

2000-05-15 Thread Perrin Harkins
On Mon, 15 May 2000, Wang, Pin-Chieh wrote: I am installing Apache::SSI under Mod_perl.. When I ran make test I have permission denied when it trying to start httpd , therefore the test failed. It doesn't work for me either. I think Ken was going to make this test optional. Anyway, if

Re: make test of Apache::SSI

2000-05-15 Thread Perrin Harkins
On Mon, 15 May 2000, Ken Williams wrote: I'd prefer to figure out why the test is failing, because most of the real testing is done using that test. But it's difficult because I've never seen the test fail. Looks like the problem lies in this line in t/real.t: my $HTTPD =

Re: Apache::DBI and autocommit

2000-05-16 Thread Perrin Harkins
On Tue, 16 May 2000, William Deegan wrote: If autocommit is not set and a script exits the transaction will be rolled back. The question I have is when the database handle is re-used will the autocommit still be unset if the script that set it errors out? Yes, Apache::DBI doesn't touch

Re: Guide search engine (was Re: multiple copies of a module)

2000-05-17 Thread Perrin Harkins
I know I'm late to this party, but I thought I'd point out a couple of options: - The Search::InvertedIndex module on CPAN (uses dbm files, I think). - The DBIx::TextIndex module on CPAN (uses MySQL). - The WAIT module on CPAN (uses dbm files). - Glimpse: http://webglimpse.org/. - Swish++:

Re: Confusion on Apache::DBI

2000-05-18 Thread Perrin Harkins
On Thu, 18 May 2000, Niral Trivedi wrote: Now, with Apache::DBI, we'll have one DBI handle per child process during the server startup. Now, let's say one child has started its processing and hasn't served any request yet. Now, first request comes in and it will look for DB handle, which is

Re: LARGE PERL footprint

2000-05-19 Thread Perrin Harkins
On Fri, 19 May 2000, David Larkin wrote: Can anyone help explain why PERL gives such a large memory footprint advise how to get around it. Your array might be smaller if you pre-extend it to the size you need (see perldata). You could also look at some of the sneaky bit vector modules on

Re: speed up/load balancing of session-based sites - POT

2000-05-12 Thread Perrin Harkins
On Sat, 13 May 2000, Greg Cope wrote: : Likewise with sessions. Even if you load balance across multiple machines : you don't need to access a session database on every request. Most load : balancing systems have something so they'll send the seme "session" : (typically ip address) to the

Re: [newbie] Passing Session Object Twixt Handlers

2000-05-22 Thread Perrin Harkins
On Mon, 22 May 2000 [EMAIL PROTECTED] wrote: It seems the Apache::Session::DBI isn't actually changing anything in the database, since next time I tie the session the only thing it has is the _session_id I tied it with in the first place. Keep in mind that Apache::Session only writes to the

Re: Apache::DBI

2000-05-22 Thread Perrin Harkins
On Mon, 22 May 2000, Mark Holt wrote: Newbie to the list, apologies if this is a FAQ, but I checked the archives... I built a modperl-enabled server, (Apache/1.3.9 Ben-SSL/1.37 (Unix) mod_perl/1.21) and have been running it for some time. I have the mod_perl as a shared module, and I

Re: [Re: Questions about Apache::Session]

2000-05-22 Thread Perrin Harkins
On 22 May 2000, Edgardo Szulsztein wrote: Now, I would like to make it work with the postgresql database server. How could I do it (I don't like the list, but I couldn't find this information in the documentation). See the Apache::iNcom::Session module on CPAN. It does exactly this. -

Re: DBD::Oracle Apache::DBI

2000-05-22 Thread Perrin Harkins
On Mon, 22 May 2000, Ian Kallen wrote: I've done everything I can think of to shore up any DB connection flakiness but I'm still plagued by errors such as these: DBD::Oracle::db selectcol_arrayref failed: ORA-12571: TNS:packet writer failure ...this is only a problem under mod_perl, outside

Re: Apache::DBI

2000-05-22 Thread Perrin Harkins
On Mon, 22 May 2000, Mark Holt wrote: I have tried pulling in *any* DBI or DBD module one at a time and ALL of them cause the server to fail to start. There is no error log message. Does DBI work for you from command-line scripts? Did the tests for DBD::mysql pass? Is there an order I

Re: global variables and reparsing question (low priority ;)

2000-05-23 Thread Perrin Harkins
I don't quite understand what you're trying to do, but what you have here is a closure and it looks like you want a real global instead. (man perlref if "closure" doesn't ring a bell.) Some of your language makes it look like you may have some confusion between global and lexicals. At any

Re: global variables and reparsing (short reproducible example)

2000-05-24 Thread Perrin Harkins
On Wed, 24 May 2000, Marc Lehmann wrote: On Wed, May 24, 2000 at 12:52:37AM +0300, Stas Bekman [EMAIL PROTECTED] wrote: You can control what's being reloaded and what's not: http://perl.apache.org/guide/config.html#Apache_Restarts_Twice_On_Start

Re: global variables and reparsing (short reproducible example)

2000-05-24 Thread Perrin Harkins
On Wed, 24 May 2000, Marc Lehmann wrote: I was under the impression that you cannot configure Apache from a PerlRequire. If that is not the case (and somehow works) I'd really like to get away from perlsections. You can only configure Apache from Perl sections, but you can load all your

Re: High-volume mod_perl based ecommerce sites?

2000-05-25 Thread Perrin Harkins
On Thu, 25 May 2000, Barry Robison wrote: You may want to check out http://www.opensales.org/html/source.shtml, rather than starting from scratch .. I haven't used it, but it's a Perl based GPL commerce solution. Or you may not. It doesn't support mod_perl. I'd suggest looking at Tallyman

Re: CGI.pm broken with Apache/mod_perl/warnings? (was Re: XHTML_DTDredefined?)

2000-05-25 Thread Perrin Harkins
On 25 May 2000, Randal L. Schwartz wrote: I got no "no warnings". this is still 5.5.3 :) There's always the time-honored { local $^W; } - Perrin

books (was High-volume mod_perl based ecommerce sites?)

2000-05-25 Thread Perrin Harkins
On Thu, 25 May 2000, Neil Conway wrote: I'm probably a novice programmer, at least by the standards of most of the people on this list. I'm 16, and since I haven't taken Computer Science at university yet, I'm a bit lacking in 'formal programming education'. I'd rather not form bad habits -

Re: ques on error msg

2000-05-26 Thread Perrin Harkins
On Fri, 26 May 2000, amy wrote: ## second error DBI::db=HASH(0x1ff304)-disconnect invalidates 1 active statement handle (either destroy statement handles or call finish on them before disconnecting) at /usr/local/bin/apache/cgi-bin/lib.pl line 41. ## I avoid this type of error by pushing

Re: [ANNOUNCE] Apache::Session 1.51

2000-05-26 Thread Perrin Harkins
On Fri, 26 May 2000, Jeffrey W. Baker wrote: I have released Apache::Session 1.51. The addition of the Oracle backing store took less time than expected. It is included and tested in this release. This is the only change from 1.50.

Re: [ANNOUNCE] Apache::Session 1.51

2000-05-30 Thread Perrin Harkins
On Fri, 26 May 2000, Jeffrey W. Baker wrote: A couple of notes on the Oracle storage module: - Using "FOR UPDATE" forces the transactional lock model. Is it possible to make this optional? The other modes allow the use of a "enforce data integrity only" locking style which is

Re: Changes to module code only take effect if perl program updated

2000-05-31 Thread Perrin Harkins
On Wed, 31 May 2000, Karl Djemal wrote: I'm trying to get up to speed with mod_perl and have been playing around with Apache::StatINC so that any perl modules I update get reloaded. From what I can see in the error_log file it does get re-loaded, but the changes don't seem to take effect

Re: [OT] Bean::*?

2000-05-31 Thread Perrin Harkins
On Wed, 31 May 2000, DeWitt Clinton wrote: My question is this -- has anyone written an implementation of the Java Bean standard in Perl? I don't think we need to have a major debate about the shortcomings of beans on the mod_perl list. But I am wondering if anyone has pulled this off yet.

Re: Human readable flatfiles

2000-05-31 Thread Perrin Harkins
I have a perl (non-modperl) program that needs some input data. Currently, it reads in the data by "require"ing another perl script that has statements to set the variables (as global variables). I did it this way so that I can easily edit the include file if I want to change values, and I

Re: Human readable flatfiles

2000-06-01 Thread Perrin Harkins
Philip Mak wrote: I can't seem to get "do" to work. I did this: my $series_name; do "series_$series.i"; # -- note include filename depends on a variable print "$series_name\n"; Your lexical ("my") variable in the same scope is taking precedence, and the "do' is not allowed to see lexicals

Re: Changes to module code only take effect if perl program updated

2000-06-01 Thread Perrin Harkins
Karl Djemal wrote: Thanks for the reply. I'm not quite sure what you are asking here - may be what I asked wasn't to clear. I was asking if you import any subs or variables from MyModule.pm. If you don't know what I mean, then you probably don't. I'm using Apache::Registry as a PerlHandler

Re: Apache::Session

2000-06-01 Thread Perrin Harkins
On Thu, 1 Jun 2000, Niral Trivedi wrote: Now, only way to remove this information from backing store is to do 'tied(%session_hash)-delete', Am I right? I mean is there any way we can remove these entries by setting 'time_out_interval' or something like that?? Your cron job idea sounds

Re: global variables and reparsing question (low priority ;)

2000-06-01 Thread Perrin Harkins
On Thu, 1 Jun 2000, Marc Lehmann wrote: It's easy, I just have to kick my ass each time I want to use a lexical for data abstraction and use a package variable instead, with only the exception that I have to be very careful that I never re-use the same name. This is quite difficult for code

Re: FW: [Q] session mgmt

2000-06-02 Thread Perrin Harkins
On Thu, 1 Jun 2000 [EMAIL PROTECTED] wrote: So my questions are: how to save session info from page 1 and allow a web server that services age 3 to access it. Have a look at Apache::Session. Use a database or files over NFS if you have a cluster. I've had better luck with databases than NFS.

Re: [benchmark] DBI/preload (was Re: [RFC] improving memory mappingthru code exercising)

2000-06-02 Thread Perrin Harkins
On Sat, 3 Jun 2000, Stas Bekman wrote: * install_driver (2): DBI-install_driver("mysql"); I've never seen that before, and it isn't in the DBI perldoc. Is it safer than "use DBD::mysql;"? - Perrin

Re: [benchmark] DBI/preload (was Re: [RFC] improving memory mappingthru code exercising)

2000-06-02 Thread Perrin Harkins
On Sat, 3 Jun 2000, Stas Bekman wrote: correction for the 3rd version (had the wrong startup), but it's almost the same. Version Size SharedDiff Test type 1 3469312 2609152 860160

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

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

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

  1   2   3   4   5   6   7   8   9   10   >