RE: Strange mod_perl error. Help needed!

2001-04-17 Thread Vladislav Safronov
Ok! Thanx! I found the bug :-) Try to install the AUTOLOAD sub and trace the calls: use Carp; sub AUTOLOAD{ Carp::cluck("trying to load $AUTOLOAD"); } at least you will figure out where the sub is called from. It looks

RE: Advice needed. (web app. performance)

2001-01-30 Thread Vladislav Safronov
What about this idea: open N 'ispell -a' processes for writing and reading at httpd start up, save their descriptors into an array in some Perl module and then mark decriptors in the table then as "busy" or "idle". But the question is how to share this dynamicly modified table among all httpd

Advice needed. (web app. performance)

2001-01-29 Thread Vladislav Safronov
Hi, I've just finished a simple web based spellcheck application based on ispell, it's written as perl module which just call ispell on every request (actually keeps it open afert first request). The bad thing is N users used spellcheck there are N running useless ispells and it is not good I

RE: Advice needed. (web app. performance)

2001-01-29 Thread Vladislav Safronov
I swear, I searched CPAN before posting the question to the conference and I used Lingua::Ispell in my application. But Lingua::Ispell just opens 'ispell -a' on reading and writing for every new httpd process, so it take time to open dictionaries or switch to other language dictionary. It provide

[OT] Mixing C and HTML code just like in ePerl?

2000-11-28 Thread Vladislav Safronov
Hi, I use ePerl and it's good, but some things need better performance. Is there any "chtml" compiler that allow me freely mix C and html code just like in ePerl: HTML code % C code .. % HTML code %=(C expr.)% .. Vlad. - To

[OT] advice needed.

2000-09-29 Thread Vladislav Safronov
Hi, I know it's very OT, but don't kick me I just need advice. I am going to work in a Web Company to write some mod_perl apps. They gave me a contract (I think the terrible one) which contains paragraph (among the others) that signs the rights to all inventions over to them. The problem is ..

RE: [OT] advice needed.

2000-09-29 Thread Vladislav Safronov
, September 29, 2000 4:32 PM Cc: [EMAIL PROTECTED] Subject: Re: [OT] advice needed. Vladislav Safronov wrote: I am going to work in a Web Company to write some mod_perl apps. They gave me a contract (I think the terrible one) which contains paragraph (among the others) that signs the rights

How to close connect and continue processing?

2000-09-14 Thread Vladislav Safronov
Hi, After user request my script should say that the request is accepted and continue processing user data (it takes a time) so I want to tell the browser that all data is sent. I searched mod_perl guide but I didn't find such code snippet. Could you send me such example? == Vlad.

RE: How to close connect and continue processing?

2000-09-14 Thread Vladislav Safronov
I read the guide and I think the best is just add "" :) (how could I forget it!) .. system("myprog la la "); print "/html"; # end On Thu, 14 Sep 2000, Matt Sergeant wrote: On Thu, 14 Sep 2000, Matt Sergeant wrote:

RE: How to close connect and continue processing?

2000-09-14 Thread Vladislav Safronov
On Thu, 14 Sep 2000, Vladislav Safronov wrote: I read the guide and I think the best is just add "" :) (how could I forget it!) .. system("myprog la la "); print "/html"; # end True, but what happens if your program tries to print

RE: Question about $sth-finish;

2000-08-17 Thread Vladislav Safronov
On Tue, Aug 15, 2000 at 03:26:03PM +0400, Vladislav Safronov wrote: Hi, Could you have a look at the lines and answer the question .. --- sub foo { my $dbh = shift; my $sql = ... my $sth = $dbh-prepare($sql); $sth-execute; $sth-finish

RE: Apache::ePerl

2000-08-17 Thread Vladislav Safronov
Hi! ;) see the benchmarks http://www.chamas.com/bench/index.html /Vlad Can anyone say some words about perfomance issues of Embedded Perl - ePerl (don't mix up with HTML::Embperl). I mean running under mod_perl using Apache::ePerl. Maybe anyone has done some perfomance testing? Thanx

RE: Question about $sth-finish;

2000-08-16 Thread Vladislav Safronov
Well, summarizing all the answers and assuming using Mysql 1. $sth-finish should be used if (and ONLY if) the the returned data (any SELECT, but not INSERT, UPDATE?) has not been fetched ALL and $sth is going to be overwritten.. 2. $sth (defined as 'my') should not call finish before

Question about $sth-finish;

2000-08-15 Thread Vladislav Safronov
Hi, Could you have a look at the lines and answer the question .. --- sub foo { my $dbh = shift; my $sql = ... my $sth = $dbh-prepare($sql); $sth-execute; $sth-finish; } === Do I always need to call $sth-finish? Wouldn't it be automaticly called when sub

RE: Question about $sth-finish;

2000-08-15 Thread Vladislav Safronov
On Tue, 15 Aug 2000, Vladislav Safronov wrote: Hi, Could you have a look at the lines and answer the question .. --- sub foo { my $dbh = shift; my $sql = ... my $sth = $dbh-prepare($sql); $sth-execute; $sth-finish; } === Do I always need

RE: Question about $sth-finish;

2000-08-15 Thread Vladislav Safronov
Ok. I think, the answers clear the problem, but I have yet more question. What can you say about this code? is it ok (overwriting previous handle)? == sub foo { my $dbh = shift; my $sql1 = "select *... my $sql2 = "select *... my $sth = $dbh-prepare($sql1);

RE: parsing SSI in cgi scripts?

2000-08-14 Thread Vladislav Safronov
Hi, Is there way for processing SSI commands in perl? (my templates may contains SSI commands, so what should I do - just type in real html or process them somehow?) Check out Apache::SSI. It can solve the problem. Can be used with Apache::Filter or by instantiating an Apache::SSI

parsing SSI in cgi scripts?

2000-08-11 Thread Vladislav Safronov
Hi, Is there way for processing SSI commands in perl? (my templates may contains SSI commands, so what should I do - just type in real html or process them somehow?) /Vlad

does __END__ at the end save memory?

2000-06-29 Thread Vladislav Safronov
Hi, Does __END__ directive at the end of every mod_perl script reduce memory used by httpd ? Best regards, /Vlad

RE: Highly optimized mod_perl ?

2000-06-26 Thread Vladislav Safronov
Ok ! -Original Message- From: Stas Bekman [mailto:[EMAIL PROTECTED]] Sent: Friday, June 23, 2000 2:02 PM To: Vladislav Safronov Cc: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]' Subject: RE: Highly optimized mod_perl ? Hi, ( ili privet ) I was looking any tips and tricks

RE: search engine for the Guide

2000-06-23 Thread Vladislav Safronov
Hi, Try http://www.comptek.ru/yandex/YandexFree.html search engine for web servers with highlighting searched words... -Original Message- From: Stas Bekman [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 04, 2000 2:10 PM To: Matt Sergeant Cc: mod_perl list Subject: Re: search

Highly optimized mod_perl ?

2000-06-17 Thread Vladislav Safronov
Hi! Does anyone know the way to highly optimize mod_perl for speed? Any hacks, advices? All standard advices read from help are done... Best regards, Vlad Safronov, mailto: [EMAIL PROTECTED]