Bug? Make test fails on configure_httpd/configure_apxs

2004-10-31 Thread Steven
=> '-rdynamic -L/usr/local/lib /usr/local/lib/perl5/5.8.3/i686-linux/auto/DynaLoader/DynaLoader.a -L/usr/local/lib/perl5/5.8.3/i686-linux/CORE -lperl -lnsl -ldl -lm -lcrypt -lutil -lc', 'MODPERL_CP' => 'cp', 'file_makefile&#

Re: Bug? Make test fails on configure_httpd/configure_apxs

2004-11-01 Thread Steven
On Sunday 31 October 2004 22:18, Stas Bekman wrote: > Steven, can you please tell me where did you see the suggestion to post > here the script t/REPORT and not the output of its execution? If it wasn't > clear in the help document, please suggest how to improve the wording. Whoops,

newbie confused, documentation seems contradictory and/or incomplete.

2004-06-16 Thread Steven Scotten
Hello, and thanks in advance for your patience as I ask how to do something rudimentary, but I seem to be rather dense and a week up to my eyeballs in documentation has left me no closer than when I began. My problem is that I'm trying to pick up mod_perl2 without ever having used mod_perl befo

Re: newbie confused, documentation seems contradictory and/or incomplete.

2004-06-17 Thread Steven Scotten
Thanks Chuck, Glenn, and Stas! On Jun 16, 2004, at 6:53 PM, Goehring, Chuck Mr., RCI - San Diego wrote: If you were not using mod_perl 1.x in your old cgi programs, you probably don't need to be using any of the request stuff. ModPerl::Registry does all the voodoo for you for ordinary cgi progr

Re: newbie confused, documentation seems contradictory and/or incomplete.

2004-06-23 Thread Steven Scotten
On Jun 17, 2004, at 9:25 PM, Sam Tregar wrote: On Wed, 16 Jun 2004, Steven Scotten wrote: My problem is that I'm trying to pick up mod_perl2 without ever having used mod_perl before. I agree. I think you should back up a step and get comfortable with mod_perl 1. Unless you're doing thi

Re: [OT] System for development support

2004-09-21 Thread Steven Lembark
-- Carlo Pecchia <[EMAIL PROTECTED]> Hi all, I apologize for the OT... Can anyone suggest some development support tool (something over the classical CVS, or AEGIS, etc.) well utilizaed with mod_perl (and derivative like HTML::Mason) ?? subversion. -- Steven L

Re: Urgent justification for perl

2004-11-19 Thread Steven Lembark
lse about their internal workings) but our language does the deed on Wall Street. The perl advocacy group's 'success stores' page has quite a few more. -- Steven Lembark 85-09 90th Street Workhorse ComputingWoodha

Re: Tar process not dying after user hits "stop"

2004-12-12 Thread Steven Lembark
ss the stuff being tarballed is already squished (e.g., .gz files or jpeg) you can gzip the output on the fly, at which point the archive and filesystem overhead will get balanced by any squish factor. -- Steven Lembark 85-09 90th Street Workhorse Com

Re: Free Software as a "Security Hole"

2005-01-12 Thread Steven Lembark
there ARE people who do look through the source for them than trusting most proprietary development efforts. At least with OSS (e.g., apache, mod_perl) any problems will be publically reported and tend to get dealt with. -- Steven Lembark 85-09 90th Stree

Re: DBI memory usage

2005-01-17 Thread Steven Lembark
the query or build some incremental data structures using row-by-row iteration instead of fetchall_arrayref. -- Steven Lembark 85-09 90th Street Workhorse ComputingWoodhaven, NY 11421 [EMAIL PROTECTED

RE: Using home-grown modules in mod-perl

2005-01-31 Thread Steven Lembark
portable (on *NIX at least). -- Steven Lembark 85-09 90th Street Workhorse ComputingWoodhaven, NY 11421 [EMAIL PROTECTED] 1 888 359 3508

Re: [mp1 and mp2] Grokking memory

2005-02-13 Thread Steven Lembark
tion for the proc's, Does it grow if you use the hash? If so then the O/S is sharing the hash until its written. -- Steven Lembark 85-09 90th Street Workhorse ComputingWoodhaven, NY 11421 [EMAIL PROTECTED] 1 888 359 3508

Re: measuring shared memory on linux (was [Fwd: Re: /proc/*/statm, exactly what does "shared" mean?)]

2005-02-15 Thread Steven Lembark
ng a limit based on sum(virtual - shared) + shared will usually work; it just leaves the amount of acceptable swap use up to the user. That use sum(RSS) as the cutoff, leaving a fudge factor for shared (which tends to be fairly consistent) and acceptable swap use. -- Steven Lembark

Re: OOP or functional?

2005-04-02 Thread Steven Lembark
asking yourself how the thing really works and what sort of methods are useful (vs. just using Class::Foo on a hash to generate accessors by key). -- Steven Lembark 85-09 90th Street Workhorse ComputingWoodhaven, NY 11421 [EMAIL PR

Re: Persistent storage

2005-07-08 Thread Steven Lembark
ut needing to use Apache::Reload or other avoidable overhead. <http://search.cpan.org/~ams/Storable-2.15/Storable.pm> -- Steven Lembark 85-09 90th Street Workhorse ComputingWoodhaven, NY 11421 [EMAIL PROTECTED] 1 888 359 3508

Re: Persistent storage

2005-07-08 Thread Steven Lembark
ween platforms. -- Steven Lembark 85-09 90th Street Workhorse ComputingWoodhaven, NY 11421 [EMAIL PROTECTED] 1 888 359 3508

Re: Persistent storage (storable preferred as mechanism)

2005-07-11 Thread Steven Lembark
> My gripe with Storable is that it is not possible to access into the Break the structure into smaller pieces (e.g., a heavily nested hash into separate values) and store them individually. This works nicely with a database backend using blobs to manage access to the frozen data. -- Ste

Re: how to share data among modperl processes

2005-10-20 Thread Steven Lembark
issue: NFS does not handle locking well at all. -- Steven Lembark 85-09 90th Street Workhorse ComputingWoodhaven, NY 11421 [EMAIL PROTECTED] 1 888 359 3508

Re: Advocacy and Talking Points

2005-10-23 Thread Steven Lembark
nal blocks at the top levels. The Test::* modules support both styles of coding well, which allows for complete coverage. Take a look at the Phalanx project's results for a good overview on the wonderfulness of testing in all its forms. All of this applies to Perl in general,

Re: making versioned libraries work on the same server

2006-01-12 Thread Steven Lembark
-- Ron Savage <[EMAIL PROTECTED]> Hi Folks You can use FindBin and set it relative to your script's directory. Is FindBin::Real a better choice? FindBin::libs will locate the lib dir's based on your path (using FindBin). -- Steven Lembark

Re: RegEx Hell

2006-01-31 Thread Steven Lembark
> Better yet, somebody please profer a solution? :-) perldoc File::Basename; perldoc File::Spec; -- Steven Lembark 85-09 90th Street Workhorse ComputingWoodhaven, NY 11421 [EMAIL PROTEC

Re: RegEx Hell

2006-01-31 Thread Steven Lembark
> this kind of question would best go to your local perl mongers chapter Er... no. Unless the issue is splitting up a path to the nearest beer, I'd suggest keeping it out of ny.pm.org :-) -- Steven Lembark 85-09 90th Street Workhorse C

Mod_perl using wrong version of perl

2006-01-31 Thread Steven Bush
an attempt to fix this, but it is still using 5.8.3. Both perl and mod_perl were made in directories that had never been used for that before, and I make clean just in case anyways, so there should be no pollution. Please help me get this working. Thanks in advance. ~Steven Output from mp2bug

Re: Converting a String of bits into a binary number in perl?

2007-03-05 Thread Steven Lembark
with the storage on the architecture you are using (low- or high-endian) or you have to force the bits into network order before making the bitstring. -- Steven Lembark 85-09 90th Street Workhorse ComputingWoodhaven, NY 11421 [EMAIL PROTECTED] 1 888 359 3508

Weird problem - local variable appears to be available in 2 instances of mod-perl

2007-06-05 Thread Steven Heimann
been trying to find an answer for much of the day without success. Any suggestions of how to track down this problem would be appreciated. Thank you and regards Steven

Fwd: MPM-safe mp2 Singleton Pattern?

2008-11-07 Thread Steven Siebert
Hello, I want to implement a singleton pattern on my logger module. During initial instantiation, the logger module is seeded with some information (ie. transactionId) and creates some (ie. requestTime). What I want is for the logger object to be instantiated (if needed) and/or retrieved from the

Re: Fwd: MPM-safe mp2 Singleton Pattern?

2008-11-07 Thread Steven Siebert
Perfect! Great info from both...exactly what I needed. After Torsten's response, I theorized that I could abstract that functionality up and reveal a thin API for the creation/calling of singleton objects within a namespace in pnotesbut that seems to have already been done with Apache::Single

MPM-safe mp2 Singleton Pattern?

2008-11-08 Thread Steven Siebert
Hello, I want to implement a singleton pattern on my logger module. During initial instantiation, the logger module is seeded with some information (ie. transactionId) and creates some (ie. requestTime). What I want is for the logger object to be instantiated (if needed) and/or retrieved from the

Re: mod_perl survey results

2008-11-10 Thread Steven Siebert
More memory but potentially faster, correct? Since we don't have to spawn as many processes to accommodate a load? Although i don't use worker MPM since the codebase I adopted is not thread safe, I would investigate if it was an option. Memory is fairly cheap and, with my web servers (without DB

Re: mod_perl survey results

2008-11-10 Thread Steven Siebert
I'm relatively new to mod_perl - moving to a new job who's application is solely written in it. This is a return to Perl for me, having worked in PHP, Java, and .NET since Perl 4. As I'm learning to love mod_perl and Perl in general, perhaps it's a good time for me to contribute back by writing p

Re: Class method or Object method?

2009-01-29 Thread Steven Siebert
It depends. (always the expected answer with an OOP design question =) Generally, if the method you are calling on class A does not work on/effect the state of a specific object, its a canidate to be a static (class) method. However, you should be careful about coupling your objects and understan

Re: Class method or Object method?

2009-01-29 Thread Steven Siebert
s an added bonus, by containing the PurchaseItems within the cart you can easily provide convience methods to iterate over the collection for things like calculating the total weight, total price, etc. Regards, S On Thu, Jan 29, 2009 at 2:11 PM, kropotkin wrote: > > Hi Steven > > The me

Re: Class method or Object method?

2009-01-29 Thread Steven Siebert
> > > This isn't quite informative. But objects also make it easier >> to inter-relate a bunch of methods that you haven't necessarily >> programmed yet without having to remember what arguments you >> have to pass around from method to method, because you can get >> them out of $self when you nee

Re: distributing software built on mod_perl

2009-09-10 Thread Steven Siebert
Hi Mike, The information you provided indicates that you have determined your customer base for this application might not always have a dedicated IT staff to conduct these installs. Your company has a couple options in achieving this "last mile", which can be observed across the industry, mod_pe

Re: Why people not using mod_perl

2009-09-16 Thread Steven Siebert
I would also add, in addition to the frameworks, the availability of tools such as Netbeans and Eclipse IDE's are unmatched in the perl domain. These IDE's provide many high-level conveniences for enterprise developers, most notably in the realm of SOA (such as graphical building of BPEL and CEP).

Re: Why people not using mod_perl

2009-09-17 Thread Steven Siebert
> > Add to this Jeff's comment on the availability of high caliber perl > > engineers...we are almost forced to make this decision. > > Maybe you aren't looking in the right places: > > http://jobs.perl.org > YAPC::* > This email list > The Perl Mongers groups > > Dice, Craigslist, Monster, etc. ar

Re: What a strange error...

2010-06-29 Thread Steven Siebert
nice. On a related note...some of our developers use the EPIC plugin in eclipse to create/modify remote .pl and .pm files. Same issue (CR/LF) - we usually run a clean.pl script recursively on directories on the dev server during development/prior to generating a build. Needless to say, this gets

Re: ApacheCon

2010-10-05 Thread Steven Siebert
I will be =). R/ Steve On Tue, Oct 5, 2010 at 12:56 PM, Fred Moyer wrote: > Anyone going to Apachecon in Atlanta this year? > > http://na.apachecon.com/c/acna2010/ >

Re: API Docs

2014-05-16 Thread Steven Siebert
$r is a Apache2::RequestRec instance. On Wed, May 14, 2014 at 7:52 PM, Worik Stanton wrote: > I am still trying to fathom the API. > > I have struck a snag with the documentation. > > > https://perl.apache.org/docs/2.0/api/Apache2/Connection.html#Synopsis > says > > use Apache2::Connection

Re: Thread-safe & vars scope clarification

2016-04-05 Thread Steven Lembark
p to the level of Perl (vs. C) you are probably better off dealing with the work using forks (at least on *NIX) in order to avoid all of the locking, memory, and pool-manglement issues. -- Steven Lembark 3646 Flora Pl Workhorse Co

Re: recompiling perl

2016-05-18 Thread Steven Lembark
l do this on linux (env may be "/usr/bin/env" on BSD, Solaris). One advantage is that this allows you to install a test version of perl in, say, /opt/perl/5.24 then update your path to include that directory for testing. -- Steven Lembark 3646

Re: which framework is best suitable for modperl?

2016-07-20 Thread Steven Lembark
from twiggy to starman to apache when you are done. -- Steven Lembark 3646 Flora Pl Workhorse Computing St Louis, MO 63110 lemb...@wrkhors.com+1 888 359 3508

Re: Building mod_perl2.pm

2020-02-11 Thread Steven Lembark
ew of your favorite beverages a month to maintain and induces far less annoyance... Enjoy -- Steven Lembark3646 Flora Place Workhorse ComputingSt. Louis, MO 63110 lemb...@wrkhors.com+1 888 359 3508

Re: suggestions for perl as web development language [EXT]

2020-12-20 Thread Steven Lembark
ake a look at the servers listed on Plack's website. -- Steven Lembark Workhorse Computing lemb...@wrkhors.com +1 888 359 3508

Re: suggestions for perl as web development language [EXT]

2020-12-20 Thread Steven Lembark
helluva lot easier to install, manage, develop on, and maintain. -- Steven Lembark Workhorse Computing lemb...@wrkhors.com +1 888 359 3508

Moving ExecCGI to mod_perl - performance and custom 'modules'

2021-02-06 Thread Steven Haigh
list - am I on the right track? wasting my time? or just a simple mistake? -- Steven Haigh 📧 net...@crc.id.au <mailto:net...@crc.id.au> 💻 https://www.crc.id.au <https://www.crc.id.au/>

RE: Moving ExecCGI to mod_perl - performance and custom 'modules' [EXT]

2021-02-07 Thread Steven Haigh
reload or DBI sharing yet - as that'll end up needing a bit of a rewrite of code to take advantage of. I'd be open to suggestions here from those who have done it in the past to save me going down some dead ends :D -- Steven Haigh 📧 net...@crc.id.au <mailto:net...@crc.id.au> 💻 http

RE: Moving ExecCGI to mod_perl - performance and custom 'modules' [EXT]

2021-02-07 Thread Steven Haigh
s in the apache config that still had H=cgi-script - changed those to H=perl-script and saw similar improvements: ExecCGI - Requests per second:11.84 [#/sec] (mean) mod_perl - Requests per second:130.97 [#/sec] (mean) That's quite some gains for a days work. --

Re: Moving ExecCGI to mod_perl - performance and custom'modules'[EXT]

2021-02-08 Thread Steven Haigh
ormal 'use strict; use warnings;' standards good enough? Are there other ways to confirm correct operations? -- Steven Haigh 📧 net...@crc.id.au <mailto:net...@crc.id.au> 💻 https://www.crc.id.au <https://www.crc.id.au/>

RE: Moving ExecCGI to mod_perl - performance and custom'modules'[EXT]

2021-02-08 Thread Steven Haigh
shipping The joys of being on an island a long way from anything ;) -- Steven Haigh 📧 net...@crc.id.au <mailto:net...@crc.id.au> 💻 https://www.crc.id.au <https://www.crc.id.au/>

Re: XSLoader error

2006-01-27 Thread Steven M Peters
On Thu, Jan 26, 2006 at 10:28:59AM -0600, Ryan Perry wrote: > on FreeBSD 5.4 I get: > > # perl Makefile.PL MP_APXS=/usr/local/apache2/bin/apxs > String found where operator expected at /usr/local/lib/perl5/5.8.6/ > mach/IO.pm line 11, near "XSLoader::load 'IO'" > (Do you need to predeclar

Apache 2.4 integration

2014-04-18 Thread Wells, Steven S.
Hi, I'm having trouble integrating mod_perl with the latest (2.4) versions of Apache - build fails as unable to locate APR directories make[1]: Entering directory `/usr/local/west/perl/mod_perl-2.0.8/src/modules/perl' cc -I/usr/local/west/perl/mod_perl-2.0.8/src/modules/perl -I/usr/local/west/

PerlSetEnv vars not available in PerlRequire script

2010-07-22 Thread Steven van der Vegt
e configuration: PerlSetEnv BASE /home/steven/foo/base PerlPostConfigRequire /home/steven/foo/handler.pl SetHandler perl-script PerlHandler Ech::Mason In the handler I've got this: use Data::Dumper; print Dumper(\%ENV); With a apache2ctl start the output is: $VAR1

Re: PerlSetEnv vars not available in PerlRequire script

2010-07-23 Thread Steven van der Vegt
handler { my $r = shift; ... my $site = $r->dir_config('mason_site') || ''; $ah{$site}->prepare_request($r$); ... } As you can see I want to use the ENV vars in the global scope. Is this possible? On Thu, 22 Jul 2010 20:55:26 -0400, Mike Diehn wrote: > Steven

Confusion about SQL results - row counts and contents differ

2023-01-26 Thread Steven Haigh via modperl
hat leaves me completely stuck - how can old data be returned - even after a full machine reboot? Am I missing something kinda obvious? The system is Fedora 37 with the following versions: mariadb-10.9.4-1 mod_perl-2.0.12-5 httpd-2.4.54-5 perl-DBD-MariaDB-1.22-3 perl-DBD-MySQL-4.050-15

Re: Confusion about SQL results - row counts and contents differ

2023-01-26 Thread Steven Haigh via modperl
On Fri, Jan 27 2023 at 09:50:42 +0800, demerphq wrote: On Fri, 27 Jan 2023, 09:43 Steven Haigh via modperl, mailto:modperl@perl.apache.org>> wrote: Hi all, I'm a little confused about my little mod_perl web site at the moment. I'm doing an SQL query, then punting th

Re: Confusion about SQL results - row counts and contents differ

2023-01-26 Thread Steven Haigh via modperl
On Thu, Jan 26 2023 at 21:07:17 -0500, Perrin Harkins wrote: Maybe you haven't committed some manual change on the server, so it isn't visible to other connections. I thought about this - but surely, restarting *everything* (db + apache + entire VM) would cause this to fall out. Also, w

Re: Confusion about SQL results - row counts and contents differ

2023-01-26 Thread Steven Haigh via modperl
On Fri, Jan 27 2023 at 10:41:02 +0800, demerphq wrote: On Fri, 27 Jan 2023, 10:35 Steven Haigh via modperl, mailto:modperl@perl.apache.org>> wrote: On Thu, Jan 26 2023 at 21:07:17 -0500, Perrin Harkins mailto:phark...@gmail.com>> wrote: Maybe you haven't committed some man

stdout from scripts goes to apache logs

2024-05-12 Thread Steven Haigh via modperl
pen3(0, \*READER, 0, $cmd, @args); while ( my $output = ) {     print $output; } print "Speed test complete."; waitpid $pid,0; Does anyone have any clues as to why STDOUT would end up in the apache log and not in the web page being served when using perl-script as the handler? -- Steven Haigh 📧 net...@crc.id.au 💻 https://crc.id.au

Re: stdout from scripts goes to apache logs

2024-05-13 Thread Steven Haigh via modperl
Handler ModPerl::Registry   or PerlHandler SomeLib::SomePAckage type thing... (this would be as well as the Set/AddHandler line) Kind regards, On Mon, May 13, 2024 at 7:54 AM Steven Haigh via modperl mailto:modperl@perl.apache.org>> wrote: Hi all, I'm playing around with mo

Re: stdout from scripts goes to apache logs

2024-05-13 Thread Steven Haigh via modperl
:53 AM Steven Haigh via modperl mailto:modperl@perl.apache.org>> wrote: Hi all, I'm playing around with mod_perl on apache on docker - and now I've finally got all the module issues sorted, I'm trying to figure out why when using mod_perl, the output of s

Re: stdout from scripts goes to apache logs

2024-05-13 Thread Steven Haigh via modperl
o stream the ouput line after line, and not whatever terminal buffer is in place that will return the output in a chunk. However, all output from running the command ends up in the apache logs. That means that never gets anything, and therefore the print is never called. Does that make more sense?

Re: stdout from scripts goes to apache logs

2024-05-13 Thread Steven Haigh via modperl
#AddHandler cgi-script .pl AddHandler perl-script .pl PerlResponseHandler ModPerl::Registry Options Indexes FollowSymLinks ExecCGI Require all granted To test between the two options, I change the comment for AddHandler. On 14/5/24 13:21, Joseph He wrote: Steven, how do

Re: stdout from scripts goes to apache logs

2024-05-13 Thread Steven Haigh via modperl
On 14/5/24 14:18, Ed Sabol wrote: On May 13, 2024, at 11:00 PM, Steven Haigh via modperl wrote: If I was to guess, it seems like an interaction with open3 and modperl. https://perldoc.perl.org/IPC::Open3 Yes, this is a known problem with IPC::Open3 that is commonly seen with mod_perl