Re: mod_perl on Apache 2.0.32

2002-03-22 Thread Stas Bekman
2.0/user/install/install.pod ______ Stas BekmanJAm_pH --> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com

Re: 'Pinning' the root apache process in memory with mlockall

2002-03-22 Thread Stas Bekman
try to avoid situations where the system needs to swap at all, by adding more memory, reducing the number of child servers or spreading the load across more machines, if reducing the number of child servers is not an options because of the request rate demands. ___

Re: Can't open perl script " -spi.bak"

2002-03-22 Thread Stas Bekman
X, ' -spi.bak ', ' -e ', "\"s/sub mod_perl::hooks.*/sub mod_perl::hooks { qw($hooks) }/\"", 'lib/mod_perl_hooks.pm'); + my @args = ($^X, '-spi.bak ', ' -e ', "\"s/sub mod_perl::hooks.*/sub +mod_perl::hooks { qw($ho

Re: Off topic question & a little worried

2002-03-21 Thread Stas Bekman
ing and probably >>not understanding why, you will be able to check the logs to see what IP >>the script was called from and hopefully trace down the bugger. Of course as Tom Brown has whispered to my ear, you simply need to run your code with PerlTaintCheck On, without mod

Re: 0 being appended to non mod_perl scripts.

2002-03-21 Thread Stas Bekman
ead. > > As to why it's not happening in an Apache::Registry script, I cannot > say. > Because , the output of system(), exec(), and open(PIPE,"|program") calls will not be sent to the browser unless your Perl was configured with sfio. http://perl.apache.org/guide/

Re: 0 being appended to non mod_perl scripts.

2002-03-21 Thread Stas Bekman
gt;>mod_cgi without setting ScriptAlias or using > > > I'm sorry, I forgot to throw in the ScriptAlias with the config block I > emailed earlier. I do indeed have a ScriptAlias set to: > > ScriptAlias /cgi-bin/ "/home/www/cgi-bin/" cool

Re: 0 being appended to non mod_perl scripts.

2002-03-21 Thread Stas Bekman
use system? Also, if PerlSendHeader is making > the script behave differently, it sounds like mod_perl is > handling your script (you can check for $ENV{MOD_PERL}). > > (darren) > > -- > People who are willing to give up freedom for the sake of short > term security, deserve neither freedom nor security. > -- Ben Franklin -- _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://ticketmaster.com http://apacheweek.com http://singlesheaven.com http://perl.apache.org http://perlmonth.com/

Re: Subroutines taking time to return..

2002-03-21 Thread Stas Bekman
>>You aren't doing it wrong. Next step is to run the script and usually it >>helps to read the docs :) > > > > > -- _____ Stas Bekman JAm_pH -- Just Another mod_perl Hacker h

Re: Subroutines taking time to return..

2002-03-21 Thread Stas Bekman
is being created in the > dprof directory in the server-root. > > What am I doing wrong ? You aren't doing it wrong. Next step is to run the script and usually it helps to read the docs :) http://thingy.kcilink.com/modperlguide/performance/Code_Profiling_Techniques.html ___

Re: Non-web use for Apache/mod_perl

2002-03-21 Thread Stas Bekman
can we adapt your story for our success stories collection? http://perl.apache.org/stories/ If so, can you please send me an adapted version, or I can simply throw it in as is :) _ Stas Bekman JAm_pH

Re: Off topic question & a little worried

2002-03-21 Thread Stas Bekman
lag #!/usr/bin/perl -T In addition for the hacker not being able to run anything and probably not understanding why, you will be able to check the logs to see what IP the script was called from and hopefully trace down the bugger. __

Re: Subroutines taking time to return..

2002-03-20 Thread Stas Bekman
e SQL execution profiling. I'm not sure if Tim has this unctionality in the latest DBI. > > DBIx::Profile does a good job of this. cool :) -- _________ Stas Bekman JAm_pH -- Just Another mod_perl Hac

Fwd: performance: using mlock(2) on httpd parent process

2002-03-20 Thread Stas Bekman
: performance: using mlock(2) on httpd parent process Date: Wed, 20 Mar 2002 11:08:51 -0800 (PST) From: Scott Hess <[EMAIL PROTECTED]> To: Stas Bekman <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] On Thu, 21 Mar 2002, Stas Bekman wrote: > > On Wed, 20 Mar 2002, Stas Bekman wrote: &g

Re: Apache::DBI startup?

2002-03-20 Thread Stas Bekman
Doug Silver wrote: > On Wed, 20 Mar 2002, Stas Bekman wrote: > > >>Doug Silver wrote: >> >>>I don't know if this is a PostgreSQL oddity, but in the startup.pl file, I >>>can have the entry like so and it seems to start fine: >>> >>

Re: Subroutines taking time to return..

2002-03-20 Thread Stas Bekman
sures wallclock time if I remember correctly :( You best bet is to use DProf as suggested Garth. _____ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.ap

Re: mod_perl does not see multipart POSTs --> SOLVED

2002-03-20 Thread Stas Bekman
h that would be very helpful. Thanks. _____ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://ticketmaster.com http://apachewe

Re: Accessing Apache master process pid

2002-03-19 Thread Stas Bekman
Jon Jensen wrote: > Forgive me if this is really elementary. > > Within mod_perl, I would like to know the pid of the master Apache daemon, perldoc -f getppid _____ Stas Bekman JAm_pH -- Just Another

Re: Global configuration

2002-03-19 Thread Stas Bekman
} now you can access %MyAppConfig::c everywhere in your apps. This an other techniques are covered here: http://perl.apache.org/guide/perl.html#Using_Global_Variables_and_Shari BTW, in perl 'there is no right way', but TIMTOWTDI :) ___

Re: Apache::DBI startup?

2002-03-19 Thread Stas Bekman
or die "Cannot connect to database: $DBI::errstr"; > > The error log shows a couple of > "Apache::DBI PerlChildInitHandler" entries, so I think it's working, but > would like to confirm it. Yes see http://perl.apache.org/guide/databases.html#Debugging_Apa

Re: trouble with interactive debugger in apache

2002-03-19 Thread Stas Bekman
7; for more help. > > > > That's all folks. > > I'd love to be able to use the debugger. > > Could my problem have anything to do with the fact that mod_perl > is compiled as a shared object? Or the fact that these scripts > are Apache::Registry sc

ANNOUNCE: Apache::GTopLimit v1.02

2002-03-19 Thread Stas Bekman
gt; for the spot. _____ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://ticketmaster.com http://apacheweek.com http://singlesheaven.com http://perl

Re: Trouble w/ LWP during mod_perl install

2002-03-18 Thread Stas Bekman
-MURI -e1 > I get >No such job %perl :) I use % as a prompt example, of course no need to copy-n-paste % :) Hope you get it right now. Using CPAN.pm is the easiest way to go about Perl modules installation. perl -MCPAN -eshell (this time I'm not including the % prompt :) > W

Re: Perl 5.7.3 breaks mod_perl tied handles [PATCH]

2002-03-18 Thread Stas Bekman
#x27;, Nullch, 0); \ } + +#else + +#define TIEHANDLE(name,obj) \ +{ \ + dHANDLE(name); \ + sv_unmagic((SV*)GvIOp((SV*)handle), 'q'); \ + sv_magic((SV*)GvIOp((SV*)handle), obj, 'q', Nullch, 0); \ +} + +#endif #if 0 #define TIED tied_handle __

Re: Trouble w/ LWP during mod_perl install

2002-03-18 Thread Stas Bekman
>>>BEGIN failed--compilation aborted at >>> >>/usr/lib/perl5/site_perl/5.005/LWP/UserAgent.pm line >>108. -- _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache

Re: loss of shared memory in parent httpd (2)

2002-03-18 Thread Stas Bekman
mory >>than older kernels. >> >>Again, I wish you strength in fixing this problem... >> >> >>Elizabeth Mattijsen >> >> > > http://www.kwinternet.com/eric > (250) 655 - 9513 (PST Time Zone) > > > -- __

Re: Trouble w/ LWP during mod_perl install

2002-03-17 Thread Stas Bekman
e installed an RPM or a similar package of libwww-perl without installing its prerequisites. Do: perl -MCPAN -eshell cpan> install URI HTML::HeadParser LWP need to specify explicitly since LWP is already installed. and 'make test' should work. _

Re: [OT]RE: loss of shared memory in parent httpd

2002-03-14 Thread Stas Bekman
as a student project. And unless someone tells me differently wasn't picked up by community. In any case I've mentioned this as a proof of concept. Of course I'd love to see a working tool too. _________ Stas Bekman

Re: [OT]RE: loss of shared memory in parent httpd

2002-03-14 Thread Stas Bekman
; > next if /^Filename/; > chop; > my($f,$t,$s,$used,$p) = split; > my $disk = $f; > $disk =~ s/\d+$//; > $prio{$disk} ||= 5; > $prio{$disk}--; > if ($used == 0) { > print "Unused, skipping\n"; > next PARTIT

[ANNOUNCE] Apache::VMonitor v0.7

2002-03-14 Thread Stas Bekman
<[EMAIL PROTECTED]>. _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://ticketmaster.com http://apachewe

Re: loss of shared memory in parent httpd

2002-03-13 Thread Stas Bekman
Stas Bekman wrote: > Bill Marrs wrote: > >>> One more piece of advice: I find it easier to tune memory control >>> with a single parameter. Setting up a maximum size and a minumum >>> shared size is not as effective as setting up a maximum *UNSHARED* >>

[ANNOUNCE] Apache::GTopLimit v1.01

2002-03-13 Thread Stas Bekman
onish. _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://ticketmaster.com http://apacheweek.com http://singlesheaven.com

Re: Exiting a script, or how do you do exit?

2002-03-13 Thread Stas Bekman
t; >>in a script, because the script continues to run. I have some >>code, where I may send a redirect, and then I am done. Is there >>a pseudo exit, or return command? >> >>brian >>-- >>Brian Lavender >>http://www.brie.com/brian/ >> > --

Re: loss of shared memory in parent httpd

2002-03-12 Thread Stas Bekman
se, I'll simply add this third option, so you can control it by either SIZE/SHARED or UNSHARED. _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide ma

Re: Serious bug, mixing mod-perl content

2002-03-12 Thread Stas Bekman
> Can someone please direct me how can I solve this problem ? Could this be your problem? http://perl.apache.org/guide/config.html#A_Script_From_One_Virtual_Host_C -- _________ Stas Bekman JAm_pH -- Jus

Re: Debugging mod_perl

2002-03-12 Thread Stas Bekman
ot figure out how to do it yourself read the SUPPORT file in the mod_perl distribution and follow the instructions on how to send the gdb backtrace to the list. _____ Stas Bekman JAm_pH -- Just Another mod_perl

Re: loss of shared memory in parent httpd

2002-03-12 Thread Stas Bekman
1st edition, by Maurice J. Bach. Prentice Hall: ISBN 0-13-201799-7. The Solaris memory system, sizing, tools and architecture: http://www.sun.com/sun-on-net/performance/vmsizing.pdf If you have other interesting resources please let me know. Don't you love mod_perl for what it makes you learn

Re: BerkeleyDB Problems

2002-03-12 Thread Stas Bekman
e different major versions of BerkeleyDB. The latest BerkeleyDB versions 2 and 3 require a different Perl module: BerkeleyDB.pm and it won't work with older 1st version of BerkeleyDB lib. _ Stas Bekman JAm_p

Re: File upload example

2002-03-12 Thread Stas Bekman
t to the guide? Thanks! _____ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://ticketmaster.com http://apacheweek.com http://singlesheaven.com http://perl.apache.org http://perlmonth.com/

Re: loss of shared memory in parent httpd

2002-03-12 Thread Stas Bekman
d (or whatever you call it) language, therefore it's extremely hard to share memory, because in Perl almost everything is data. Though as you could see Bill was able to share 43M out of 50M which is damn good! ___

Re: loss of shared memory in parent httpd

2002-03-12 Thread Stas Bekman
p running on the same machine which started to use more memory, and that takes the ballance off. Hope that my guess was right. If so make sure that your system never swaps. Swap is for emergency short term extra memory requirement, not for normal operation. ___

Re: mod_perl training companies?

2002-03-10 Thread Stas Bekman
Gabor Szabo wrote: > On 2002.03.06 04:05 Stas Bekman wrote: > >>>>I'm compiling a list of companies giving mod_perl training for our new >>>>mod_perl site. Currently I have only: >>>> > > Stats and others, > > I am k

Re: Site Host Providers that Support mod_perl?

2002-03-07 Thread Stas Bekman
L advertising your service (assuming that you provide mod_perl hosting). Thanks! _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECT

Re: mod_perl training companies?

2002-03-07 Thread Stas Bekman
ny are you talking about? ... two hours later ... --- sorry, I still don't know what company you are talking about. *** the modperl company!!! Aarrrgg Hope you get the idea ;) _ Stas Bekman

Re: Breaks in mod_perl, works in Perl

2002-03-06 Thread Stas Bekman
m. >> > > That's your opinion. In my opinion, a bunch of disk IO and file seeks are a > waste of resources. The bigger issue here is that it is better to store in > memory, and it saddens me that it doesn't seem possible. Hmm, then create a ramdisk and read from

Re: Prolem with scripts running under Apache:RegistryLoader

2002-03-06 Thread Stas Bekman
/databases.html#Preopening_DBI_connections Also see a very nice article about Singletons in the perl review magazine vol 1 issue 0: theperlreview.com. _____ Stas Bekman JAm_pH -- Just Another mod_perl Hacker htt

Re: Where was that success story?

2002-03-06 Thread Stas Bekman
submitted to me but don't appear yet on the current site. They will appear on the new site when that gets released. _____ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl

Re: Site Host Providers that Support mod_perl?

2002-03-06 Thread Stas Bekman
guide and other docs on the perl.apache.org have to offer, since you probably will have more questions in the future. _____ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide

Re: Breaks in mod_perl, works in Perl

2002-03-05 Thread Stas Bekman
ttp://perl.apache.org/guide/porting.html#Redirecting_STDOUT_into_a_Scalar _____ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://tic

Re: mod_perl training companies?

2002-03-05 Thread Stas Bekman
Rich Bowen wrote: > On Tue, 5 Mar 2002, Stas Bekman wrote: > > >>I'm compiling a list of companies giving mod_perl training for our new >>mod_perl site. Currently I have only: >> >>http://training.gbdirect.co.uk/courses/linux/customized_and_bespoke.ht

Re: Apache::DB patch

2002-03-05 Thread Stas Bekman
guide, but I really hope that the module gets fixed. >>I wish someone with perl/Tk knowledge could solve the hanging problem. >> >> > > I wish me too! > After a brief ptkdb.pm code analysis, I've seen that the debugger seems to hang, >after last 'Run

Re: Problem installing Apache::Request

2002-03-05 Thread Stas Bekman
t; you let me know who I would need to speak with to get this resolved. > Thanks. _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://ticketmaster.com http://apacheweek.com http://singlesheaven.com http://perl.apache.org http://perlmonth.com/

mod_perl training companies?

2002-03-04 Thread Stas Bekman
hanks. _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://ticketmaster.com http://apacheweek.com

Re: Apache::DB patch

2002-03-04 Thread Stas Bekman
Enrico Sorcinelli wrote: > On Fri, 01 Mar 2002 11:16:15 +0800 > Stas Bekman <[EMAIL PROTECTED]> wrote: > > >>Enrico Sorcinelli wrote: >> >>>Hi all, >>>I started to use Apache::DB (0.06) to interactively debug under mod_perl using >ptkdb.

Re: ANNOUNCE: Apache::GTopLimit v1.0

2002-03-04 Thread Stas Bekman
le, settable via PerlSetVar >> >>* A few code style changes and doc fixes >> >>* this module has spent enough time in alpha/beta incubator >>=> going 1.0. >> >> >>_ >>Sta

Re: Apache::MP3 requires "PerlSetupEnv on", patch to convert to Apache::Request

2002-03-04 Thread Stas Bekman
s > of CGI.pm, but if you'd like, I'd be willing to tackle that, too, as > it would be nice to not require the large size of CGI.pm. > _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http

Re: ANNOUNCE: Apache::Watchdog::RunAway v0.3

2002-02-28 Thread Stas Bekman
oops, wrong changes file. corrected below: Stas Bekman wrote: > > The uploaded file > > Apache-Watchdog-RunAway-0.3.tar.gz > > has entered CPAN as > > file: $CPAN/authors/id/S/ST/STAS/Apache-Watchdog-RunAway-0.3.tar.gz > size: 7722 bytes >md5: 70

ANNOUNCE: Apache::GTopLimit v1.0

2002-02-28 Thread Stas Bekman
via PerlSetVar * A few code style changes and doc fixes * this module has spent enough time in alpha/beta incubator => going 1.0. _____ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.

ANNOUNCE: Apache::Watchdog::RunAway v0.3

2002-02-28 Thread Stas Bekman
constant variable, settable via PerlSetVar * A few code style changes and doc fixes * this module has spent enough time in alpha/beta incubator => going 1.0. _____ Stas Bekman JAm_pH -- Just Another mod_perl Hacker h

Re: Apache::DB patch

2002-02-28 Thread Stas Bekman
t'll work for the first request, but then will hang. I see that ptkdb hasn't changed since the last time I've tried it. May be it's a newer perlTk that works better now? _________ Stas Bekman JAm_pH

Re: Status of mod_perl 2.0

2002-02-27 Thread Stas Bekman
- Original Message - > From: "Stas Bekman" <[EMAIL PROTECTED]> > To: "Jeff Stuart" <[EMAIL PROTECTED]> > Cc: "Mod Perl Devel List" <[EMAIL PROTECTED]>; "Mod perl mailing list" > <[EMAIL PROTECTED]> > Sent: Wed

Re: Status of mod_perl 2.0

2002-02-27 Thread Stas Bekman
nresolved (e.g. chdir() in the threaded env). If you plan on adding a testing platform for you product, make sure to use the Apache::Test framework from 2.0 distro, which rocks! _____ Stas Bekman JAm_pH -- Just An

Re: another article on perl.com

2002-02-27 Thread Stas Bekman
Keith G. Murphy wrote: > Stas Bekman wrote: > >>If you know of other prospective magazines looking for articles please >>let me know. >> > > Well, on the web side of things, there's this: > > http://www-106.ibm.com/developerworks/ > > They have

Re: another article on perl.com

2002-02-27 Thread Stas Bekman
ings. Just to assure you, 99.9% of the old code will run as is. Though there are many new things ;) > But it's still a useful thing to have... > > Issac > > - Original Message - > From: "Stas Bekman" <[EMAIL PROTECTED]> > To: "Geoffrey Y

Re: another article on perl.com

2002-02-27 Thread Stas Bekman
lications. Soon I will start working on the new articles for 2.0, but not before the new site is released. _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PRO

mod_perl jobs at http://perl.apache.org/jobs.html

2002-02-25 Thread Stas Bekman
FER] or similar. _________ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://ticketmaster.com http://apac

Re: [OT] New mod_perl logo (revisited)

2002-02-21 Thread Stas Bekman
http://beverley2.digital-word.com/mod_perl/logos/raul_a_ligad_1.jpg http://beverley2.digital-word.com/mod_perl/buttons/juergen_specht.gif On the other hand is there a deadline for this contest? Would be nice to decide on the logo(s) before we finish the new site, which should be very soon now.

Re: ANNOUNCE Bricolage-Devel 1.3.0

2002-02-21 Thread Stas Bekman
Bricolage can be found on its home page. > > http://bricolage.thepirtgroup.com/ > > And it can be downloaded from SourceForge. > > http://sourceforge.net/project/showfiles.php?group_id=34789 I've added the description at http://perl.apache.org/#appservers Thanks David! _

Re: "Use of uninitialized value." with no line number in error log

2002-02-21 Thread Stas Bekman
eceived signal shift() at line1 at -e line 1 main::__ANON__('dohdoh at -e line 1.^J') called at -e line 1 The Carp::cluck trick is correct, unless someone somewhere redefines $SIG{__WARN__}. > martin > > > Tim Noll wrote: > >> Stas Bekman wrote: >&

Re: method handlers and push_handlers / set_handlers

2002-02-20 Thread Stas Bekman
; back trace in the error log? I guess because any code can disable your setting locally or globally by overriding $SIG{__WARN__} using local() or without it after you've defined it. Or simply turning warnings off locally or again globally (horrors). __

Re: "Use of uninitialized value." with no line number in error log

2002-02-20 Thread Stas Bekman
t; in the Apache error log, with > absolutely no line number or back trace or anything else. Does anybody know > what might cause this? Thanks. Where did you set $SIG{__WARN__}? Try in startup.pl as early as possible. ________

Re: method handlers and push_handlers / set_handlers

2002-02-20 Thread Stas Bekman
} ); > > -Tim > See http://perl.apache.org/guide/config.html#Perl_Method_Handlers, the eagle and cookbook books. PERL_METHOD_HANDLERS=1 + $$ prototype for Apache::Test::handler -- _____ Stas Bekman JA

[Fwd: ApacheCon news]

2002-02-20 Thread Stas Bekman
/Apache-Server.Com/ "Millennium hand and shrimp!" - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- _____ Stas Bekman

Re: Segmentation fault

2002-02-20 Thread Stas Bekman
mething before the potentially segfaulting handler and the status after the handler is run. So in case of segfaults the status will be missing. _____ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/

Re: @INC Not exported in older perl's?

2002-02-20 Thread Stas Bekman
equire Time::DaysInMonth. > > Is there an easy solution to this? Am I missing something? Elizabeth, if I understand you correctly one of the modules adjusts @INC but other modules relying on this don't see the adjusted @INC. Changing the @INC value at server startup will so

Re: scripts running under Apache::Registry and tie()/untie()

2002-02-20 Thread Stas Bekman
;, ... and then in your code: print $Foo::Bar::dbm{taz}; beware that if you use each(), keys(), values() on this dbm it won't be shared anymore between the processes (though still work properly, but more memory will be used). For more info read: http://perl.apache.org/guide/performance.html

Re: [?] Same Named Modules, Different Paths

2002-02-03 Thread Stas Bekman
Sam Tregar wrote: > On Sun, 3 Feb 2002, Stas Bekman wrote: > > >>I think the best solution is to run your staging server on a different >>port and use a front-end proxy to rewrite to the right server based on >>the Host: name. Alternatively put 2 NICs with 2 IPs, th

Re: [?] Same Named Modules, Different Paths

2002-02-02 Thread Stas Bekman
de/config.html#Is_There_a_Way_to_Modify_INC_on I think the best solution is to run your staging server on a different port and use a front-end proxy to rewrite to the right server based on the Host: name. Alternatively put 2 NICs with 2 IPs, that will work if you don't hardcode the ser

Re: problems with DirectoryIndex under mod_perl + Template Toolkit

2002-02-01 Thread Stas Bekman
ache configuration issue. So you should probably talk to httpd people. mod_perl simply let's you solve the problem with a custom fixup handler. _____ Stas Bekman JAm_pH -- Just Another mod_perl Hacker

Re: problems with DirectoryIndex under mod_perl + Template Toolkit

2002-01-29 Thread Stas Bekman
an see, the content response phase is not run, but possible modules are listed as defined. If we run a mod_perl script, the response phase looks like: Request phase: response handler (type: perl-script) mod_perl defined ___

Re: Apache::args vs Apache::Request speed

2002-01-28 Thread Stas Bekman
Joe Schaefer wrote: > Stas Bekman <[EMAIL PROTECTED]> writes: > > >>Well, I've run the benchmark and it wasn't the case. Did it change >>recently? Or do you think that the benchmark is not fair? >> >>we are talking about this ite

Re: UI Regression Testing

2002-01-26 Thread Stas Bekman
ting things down as a doc explaining how things work, with some light examples, to add to our knowledge base would be really cool! I'm sure other folks with similar experience will help working on perfecting the document. _____

Re: performance coding project? (was: Re: When to cache)

2002-01-26 Thread Stas Bekman
gt; work on those things. I'm submitting a proposal for a talk on data > sharing techniques at this year's Perl Conference, so hopefully I can > contribute that to the guide after I finish it. Go Perrin! _ Stas

Re: UI Regression Testing

2002-01-25 Thread Stas Bekman
e new Apache::Test framework that will be released with mod_perl 2.0. You can get it from here: http://cvs.apache.org/snapshots/modperl-2.0/ (or use cvs) Some docs are here: http://cvs.apache.org/viewcvs.cgi/modperl-docs/src/docs/2.0/devel/testing/testing.pod _

Re: performance coding project? (was: Re: When to cache)

2002-01-25 Thread Stas Bekman
picking your favorite coding style and change it as the language evolves. But you shouldn't blindly apply the outcomes of the benchmarks without running your own benchmarks. _________ Stas Bekman JAm_pH -- Jus

Apache::args vs Apache::Request speed

2002-01-25 Thread Stas Bekman
ll, I've run the benchmark and it wasn't the case. Did it change recently? Or do you think that the benchmark is not fair? we are talking about this item http://perl.apache.org/guide/performance.html#Apache_args_vs_Apache_Request _

Re: Tracing script with problem

2002-01-25 Thread Stas Bekman
Jon Molin wrote: > Stas Bekman wrote: > >>It's actually easy, take a look at the Apache::SizeLimit or >>Apache::GTopLimit, look at the cleanup handler that they register. Now >>take this handler and dump whatever you need to the file or error_log >>when you f

Re: Tracing script with problem

2002-01-25 Thread Stas Bekman
d dump whatever you need to the file or error_log when you find that the process was taking too much memory. Take a look at this code and you will see that it's very simple. _ Stas Bekman JAm_pH -

Re: performance coding project? (was: Re: When to cache)

2002-01-25 Thread Stas Bekman
stright numbers for some definitely bad coding practices (e.g. map() in the void context), and things which vary a lot depending on the context, but are interesting to think about (e.g. the last example of caching the result of ref() or a method call) _______

performance coding project? (was: Re: When to cache)

2002-01-24 Thread Stas Bekman
the test again. add examples of map vs for. add examples of method lookup vs. procedures add examples of concat vs. list vs. other stuff from the guide. mod_perl specific examples from the guide/book ($r->args vs Apache::Request::param, etc) If you understand where I try to take you, help

Re: slow regex [BENCHMARK]

2002-01-24 Thread Stas Bekman
so check Devel::FindAmpersand and Devel::SawAmpersand. cpan> i /ampersand/ DistributionA/AN/ANDK/Devel-SawAmpersand-0.20.tar.gz Module Apache::SawAmpersand (Contact Author The Perl/Apache Mailing List <[EMAIL PROTECTED]>) Module B::FindAmpersand (A/AN/ANDK/Devel-Sa

Re: Cross-site scripting vulnerability in Apache::Util

2002-01-24 Thread Stas Bekman
ed who understands the issues better >than I > do :) Well I suggested to reap from bleadperl, which is mostly written in C :) But having a nicely implemented code in Perl is a good start. It's much easier to rewrite in C than starting from scratch. _

Re: Cross-site scripting vulnerability in Apache::Util

2002-01-24 Thread Stas Bekman
it to 1.x. Sounds like a more promising scenario. So what spec are you working with? Can we just reap the functionality from some Perl core module in bleadperl that does it right? _ Stas Bekman JAm_pH

Re: PerlRun Gotchas?

2002-01-24 Thread Stas Bekman
"Can't open $dbmx/accom.dbmx: $!\n"; > >[...] > > The error log reveals that it's this tie that kills the program -- $dbmx > remains undef, so the file isn't found. I think your problem is that you don't declare the local variable when you import

Re: slow regex [BENCHMARK]

2002-01-20 Thread Stas Bekman
amples so I won't repeat them here. Please fix your benchmark and run it again. Also you may want to check certain sections in http://perl.apache.org/guide/performance.html _ Stas Bekman JAm_pH -- J

Re: mod_deflate problem with chunked encoding

2002-01-18 Thread Stas Bekman
rks. Stay tuned. _________ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://ticketmaster.com http://apacheweek.com http://singles

Re: mod_deflate problem with chunked encoding

2002-01-18 Thread Stas Bekman
So if you want to send me some short instructions which can be plugged here: http://perl.apache.org/guide/scenario.html, please do that. But first run the submitted doc through the list, for polishing. Once it's done I'll add them to the mod_perl guide. _

Re: segfault when using PerlRequire

2002-01-13 Thread Stas Bekman
amic Linking: > dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' -R > /opt/perl/lib/5.6.1/i86pc-solaris/CORE' > cccdlflags='-fPIC', lddlflags='-G -L/opt/gnu/lib -R/opt/gnu/lib' > > > Characteristics of this binary (from libperl

Re: Modperl 2.0 error

2002-01-13 Thread Stas Bekman
bleadperl. What you saw is the change in httpd 2.0's API, which was adjusted in mod_perl 2.0. in some cases you need to run: % make source_scan If the maps weren't updated yet in cvs. and then run perl Makefile.PL again. _ Stas Bekman JAm_pH

the trick of using $SIG{__DIE__} with eval {} disregarding the $^S value

2002-01-11 Thread Stas Bekman
L PROTECTED]>http://www.pobox.com/~schwern/ Perl Quality Assurance <[EMAIL PROTECTED]> Kwalitee Is Job One And God created Cat to be a companion to Adam. And Cat would not obey Adam. And when Adam gazed into Cat's eyes, he was reminded that he was not the

Re: Apache::Util segfaulting

2002-01-09 Thread Stas Bekman
lt > against the same mysql libraries. > > Any ideas? To get the core dumped, you need to tell the shell to allow core dumps and set the allowed size of the core file. The simplest is to set it to unlimited. In bash do: ulimit -c unlimited; httpd -X ________

<    10   11   12   13   14   15   16   17   18   19   >