Re: Confused about two development utils [EXT]

2021-01-01 Thread Mark Blackman
s to be true, I am pretty sure the FCGI servers can also be modified to manage memory as tightly as Apache2::SizeLimit. - Mark

Re: Question about deployment of math computing [EXT]

2020-08-05 Thread Mark Blackman
great for weird, special cases, like supporting some legacy, 3rd party code, but I don’t believe it’s the best option for the common case. - Mark

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

2020-08-04 Thread Mark Blackman
e to share a Perl based webserver which can be guaranteed to be > comparable to apache in terms of reliability and stability ? > > On Tue, Aug 4, 2020 at 3:48 PM Mark Blackman <mailto:m...@blackmans.org>> wrote: > > >> On 4 Aug 2020, at 21:41, Mithun Bhattacharya &

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

2020-08-04 Thread Mark Blackman
> On 4 Aug 2020, at 21:41, Mithun Bhattacharya wrote: > > I am genuinely curious what are these other "well known" means ? > > On Tue, Aug 4, 2020 at 3:37 PM Mark Blackman <mailto:m...@blackmans.org>> wrote: > > > > On 4 Aug 2020, at 17:58, M

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

2020-08-04 Thread Mark Blackman
> On 4 Aug 2020, at 17:58, Mithun Bhattacharya wrote: > > mod_perl does have value because it does a more efficient utilization of > resources - this is important when fast response time and scalability is > important. The complexity is a known problem but it is not a mystery box > either -

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

2020-08-04 Thread Mark Blackman
rl adds less value than it used to, though. You can get most of the benefits of mod_perl without the complexity. It’s only if you have to do really really unusual things in the request cycle where mod_perl helps a lot. - Mark

Re: HTTP and MPM support

2019-01-28 Thread Mark Blackman
> On 28 Jan 2019, at 23:00, Paul B. Henson wrote: > > On 1/28/2019 1:53 PM, Mark Blackman wrote: >> https://perldoc.perl.org/threads.html#WARNING Threads are discouraged in >> Perl these days > > Yes, that is indeed what the documentation says; however, there is

Re: HTTP and MPM support

2019-01-28 Thread Mark Blackman
> On 28 Jan 2019, at 21:34, Paul B. Henson wrote: > > On 1/28/2019 12:38 PM, Mark Blackman wrote: > > >> Given that Perl is single-threaded by design and history and has no reliable >> support for threading, I think that mod_perl and direct http/2 > > Pe

Re: HTTP and MPM support

2019-01-28 Thread Mark Blackman
I think Perl is fine, but naive Perl (or anything else) doesn’t scale. Are you actually maxing out your CPU (re-examine your code) or are your mod_perl instances all hanging around waiting for a database to return (re-examine your queries/indices). - Mark > On 28 Jan 2019, at 21:27, J

Re: HTTP and MPM support

2019-01-28 Thread Mark Blackman
time for more cores or optimising your Perl? > On 28 Jan 2019, at 21:10, John Dunlap wrote: > > I'm pretty sure that they are but, unfortunately, we make a lot of dynamic > requests. > > On Mon, Jan 28, 2019 at 9:08 PM Mark Blackman <mailto:m...@blackmans.org>&g

Re: HTTP and MPM support

2019-01-28 Thread Mark Blackman
exonetric.com/>) and would love to sell you some hosting! On the other hand, if your Perl just needs some TLC, then plenty of contractors can help find the hotspots and optimise for you. - Mark

Re: HTTP and MPM support

2019-01-28 Thread Mark Blackman
cause > we're already pulling all of our static content directly from Amazon > Cloudfront. The vast majority of our requests are for dynamic content. > > On Mon, Jan 28, 2019 at 8:38 PM Mark Blackman <mailto:m...@blackmans.org>> wrote: > > Given that Perl is si

Re: HTTP and MPM support

2019-01-28 Thread Mark Blackman
ver front-end proxy makes sense handling HTTP/2 requests for both static and dynamic content requests. This was standard advice 20 years ago as far as I recall and is even more prudent now. - Mark

RE: beginning and testing

2014-10-08 Thread Mark Hedges
-- the fewest number of function calls between the request and the response. Mark

RE: beginning and testing

2014-10-07 Thread Mark Hedges
-Original Message- From: Vincent Veyron [mailto:vv.li...@wanadoo.fr] Sent: Tuesday, October 07, 2014 2:32 PM On Tue, 7 Oct 2014 17:42:56 + Mark Hedges wrote: > > I have found Apache::Test extremely useful for testing web applications. > Don't let anyone tell you

RE: beginning and testing

2014-10-07 Thread Mark Hedges
. You can also write t/TEST.PL, which gets added to the generated t/TEST script. It has to run: use Apache::TestRunPerl (); Apache::TestRunPerl->new->run(@ARGV); ... at the end, since this does not seem to get added to the generated t/TEST script when t/TEST.PL is used. HTH. Mark

RE: lost directory indexes

2014-09-17 Thread Mark Hedges
ath args after the requested URI? It looks like embperl did it, but I didn't look too far into it. HTH. Mark Hedges

RE: Shared Dirty memory of Apache parent process

2014-09-17 Thread Mark Hedges
d you will only use the amount of memory once for all processes. Using package vars to cache data is nice for small amounts that don't change in size. If you go too far down that road you run into the problem you described... it's no longer manageable. HTH. Mark Hedges

RE: Authorization without Authentication?

2014-08-03 Thread Mark jensen
Thanks I guess your answer will work for me if I have only static IPs but what I have suggested is an example, my DB or DNS zone is changing dynamically, can mod_perl deal with them as a DB?

Authorization without Authentication?

2014-08-03 Thread Mark jensen
. but what if I don't want to authenticate users (BECAUSE I have already authenticate them using freeRADIUS and IEE802.1x) , I want only to authorize them, you would ask me how can we get the username. I have usernames with there IPs in mysql DB like this: user IP Mark 192.168.1.10

RE: mod_perl2 on Solaris 10 (01/2013, x86) with Apache 2.4.9 and Perl 5.20.0

2014-07-28 Thread Mark Hedges
I've always found I have to build apr, apr-util and apr-iconv separately first if I am building mod_perl from scratch. You might try that, then build Apache using --with-apr, --with-apr-util and --with-apr-iconv args, then build mod_perl using MP_APR_CONFIG and see if you get past that.

RE: pass extra args to a test in Apache::Test?

2014-07-25 Thread Mark Hedges
Hey nevermind, setting env vars works. I guess I must have typed that wrong before when I tried that. Thank you. Mark -Original Message- From: Mark Hedges Sent: Friday, July 25, 2014 3:46 PM To: modperl@perl.apache.org Cc: Mark Hedges Subject: pass extra args to a test in Apache

pass extra args to a test in Apache::Test?

2014-07-25 Thread Mark Hedges
have that show up in $ENV in t/foobar.t. The only way I have found so far is to put files somewhere for the script to read. That seems a little kludgy. Any tips? Thank you. Mark

libpthread problem, docs error

2014-07-03 Thread Mark Hedges
s what I should do? I am not sure how to use gdb. Thanks. Mark

RE: Apache2::URI::unescape_url bug?

2014-06-29 Thread Mark Hedges
Another library providing the same function in working order is not a reason to not fix the function in Apache2::URI. s/b Apache2::URI::unescape_url()... [...] Mark -Original Message- From: Vincent Veyron [mailto:vv.li...@wanadoo.fr] Sent: Saturday, June 28, 2014 7:02 AM To: Mark

RE: Apache2::URI::unescape_url bug?

2014-06-27 Thread Mark Hedges
The intent was to report that Apache2::URI::unescape does not seem to work correctly. Mark -Original Message- From: David Booth [mailto:da...@dbooth.org] Sent: Thursday, June 26, 2014 8:43 PM To: modperl@perl.apache.org Subject: Re: Apache2::URI::unescape_url bug? On 06/26/2014 08:42

Apache2::URI::unescape_url bug?

2014-06-26 Thread Mark Hedges
1913/UK1\0UK1 ?? -Mark

RE: bug in trunk in Apache::Reload test

2014-06-26 Thread Mark Hedges
ne by itself is certainly less computation. However I'm not sure about the last one. That is a cool idea. We'd have to benchmark it. :-) Also is '&&' faster than 'and'? Mark From: sergiy.borod...@gmail.com [mailto:sergiy.borod...@gmail.com] On Behalf

RE: APREQ_ERROR_MISMATCH error, I think

2014-06-23 Thread Mark Hedges
D'oh sorry bad value for POST_MAX, please ignore. -Mark -Original Message- From: Mark Hedges Sent: Monday, June 23, 2014 4:02 PM To: apreq-...@httpd.apache.org; mod_perl list Cc: Mark Hedges Subject: RE: APREQ_ERROR_MISMATCH error, I think No one seems home on the apreq-dev list s

RE: APREQ_ERROR_MISMATCH error, I think

2014-06-23 Thread Mark Hedges
ssage "Conflicting information," which seems to be related to the APREQ_ERROR_MISMATCH constant, but I don't know how to debug this. When I comment out creating the Apache2::Request object from $r, my dummy test handler runs fine. How would I try to debug this? Mark -Origin

RE: any way to get the uri path part that matches $r->location?

2014-06-23 Thread Mark Hedges
I was thinking about this, I think I can do something like: my $loc = $r->location; $loc =~ s{/$}{}; my ($loc_match, $rest_of_path) = $r->uri =~ m{^(\Q$loc\E.*?/)(.*?)$}mxs; I will try it out when I get a chance. Mark -Original Message- From: Mark Hedges Sent: Monday, June 23, 2

error in Apache::TestSSLCA, cannot build libapreq

2014-06-23 Thread Mark Hedges
5805. HTH. -Mark --- /ntfhome/local/lib/perl5/site_perl/5.20.0/x86_64-linux-thread-multi-ld/Apache/TestSSLCA.pm.orig2014-06-23 14:49:44.712628000 -0700 +++ /ntfhome/local/lib/perl5/site_perl/5.20.0/x86_64-linux-thread-multi-ld/Apache/TestSSLCA.pm

bug in Apache2::BuildConfig using trunk and event MPM

2014-06-23 Thread Mark Hedges
It seems like mpm_is_threaded should answer 1 for the event MPM, but it answers 0, and the test fails. The patch works around this by detecting whether it is actually prefork or not, but there may be a deeper problem here. HTH. -Mark 2014-06-23 14:02:45 Mon $ svn diff ModPerl-Registry/t

bug in trunk in Apache::Reload test

2014-06-23 Thread Mark Hedges
2::Reload->unregister_module($package); ModPerl::Util::unload_package($package); $pass = 0; Also reported on Apache::Reload at rt.cpan.org. Thanks. Mark

RE: bug in test script t/api/err_headers_out.t in released mod_perl 2.0.8 - patch supplied

2014-06-23 Thread Mark Hedges
This worked in trunk. Thanks. I guess I spun my wheels for a couple hours. Would it be a good idea to roll out 2.0.9 as a bugfix, and make httpd24 2.1.0? 2.0.10? Mark -Original Message- From: Mark Hedges Sent: Monday, June 23, 2014 12:22 AM To: modperl@perl.apache.org Cc: Mark

any way to get the uri path part that matches $r->location?

2014-06-23 Thread Mark Hedges
om the config block instead of the part of the path that matched it. If that is a weird pattern, then it is not found in the literal URI. Is there a way to get at what part of the URI matched the or directive? Thanks. Mark

RE: what is "world domination series"?

2014-06-23 Thread Mark Hedges
I'm the one who didn't get it, apparently. -Mark $ ack 'world domination series' ack: perl/perl-5.20.0/t/pleaseletthisfilenotexist.pag: cannot open file for reading ack: perl/perl-5.20.0/t/pleaseletthisfilenotexist.dir: cannot open file for reading perl/mod_perl-2.0.8/t/c

bug in test script t/api/err_headers_out.t in released mod_perl 2.0.8 - patch supplied

2014-06-23 Thread Mark Hedges
t/api/err_headers_out.t was recently changed to accommodate changes in HTTP::Headers 6.0, but the change did not make it forward-compatible for further versions of HTTP::Headers. The patch for the test script is below at the end. Thank you. HTH. -Mark s...@tst1.ntf.cftdev1 /ntfhome/local

RE: what is "world domination series"?

2014-06-22 Thread Mark Hedges
*lol* ... `force install App::Ack` ... silly people :-) From: Mark Hedges Sent: Sunday, June 22, 2014 11:10 PM To: modperl@perl.apache.org Cc: Mark Hedges Subject: what is "world domination series"? Apache/2.2.27 (Unix) world domination series/2.0 mod_perl/2.0.8 Perl/v5.20.0 Server at

bug in test lib in mod_perl 2.0.8 / apache 2.2.27 - w/ patch

2014-06-22 Thread Mark Hedges
This appears to be a bug in a test library in the released current version mod_perl 2.0.8. $r->args can return undef if there is no ? in the url to specify a query string, apparently. Patch is at the bottom. HTH. -Mark s...@tst1.ntf.cftdev1 /ntfhome/local/src/perl/mod_perl-2.0.8 2014-06

what is "world domination series"?

2014-06-22 Thread Mark Hedges
Apache/2.2.27 (Unix) world domination series/2.0 mod_perl/2.0.8 Perl/v5.20.0 Server at localhost Port 8529 ... rather ominous ... Thanks. Mark

t/compat/conn_rec.t fails in httpd24threading

2014-06-09 Thread Mark Hedges
1. Problem Description: Generated test t/compat/conn_rec.t fails with incorrect test count. It wasn't there to begin with and I didn't know what bootstrapped it so the error log first shows the output of the other failed test that I just reported, then it goes on to show this test output.

t/hooks/authen_digest.t fails in httpd24threading

2014-06-09 Thread Mark Hedges
1. Problem Description: t/hooks/authen_digest.t fails s...@nta1.ntf.cftdev1 /ntfhome/local/src/mod_perl2_svn/mod_perl 2014-06-09 18:15:28 Mon $ t/TEST -verbose t/hooks/authen_digest.t /ntfhome/local/bin/httpd -d /ntfhome/local/src/mod_perl2_svn/mod_perl/t -f /ntfhome/local/src/mod_perl2_svn/

RE: http24threading t/protocol/eliza.t does not exit

2014-06-07 Thread Mark Hedges
BTW it timed out after Test 6 and then I hit ctl-C. -Original Message- From: Mark Hedges Sent: Friday, June 06, 2014 5:50 PM To: modperl@perl.apache.org Cc: Mark Hedges Subject: http24threading t/protocol/eliza.t does not exit 1. Problem Description: This is Apache 2.4.9 using the

http24threading t/protocol/eliza.t does not exit

2014-06-06 Thread Mark Hedges
1. Problem Description: This is Apache 2.4.9 using the bundled apr/apr-util. Trying to build http24threading branch. t/protocol/eliza.t never exits after the last statement. I am confused by t/protocol/TestProtocol/eliza.pm. It seems like it expects a readline interface. But I added some de

Can't build httpd24threading with perl built with -Duserelocatableinc

2014-06-06 Thread Mark Hedges
setup, where the same perl on NFS has a different absolute path on different servers where the volume is mounted on different paths, but then a consistent symlink is provided. Maybe I don't understand what the userelocatableinc option is for. Thanks. Mark

Re: failure using Socket in PerlSection

2012-11-11 Thread Mark Heiges
On Nov 10, 2012, at 10:22 AM, Torsten Förtsch wrote: > On 11/10/2012 03:43 PM, Mark Heiges wrote: >> >> On Nov 9, 2012, at 10:36 PM, Mark Heiges wrote: >> >>> I have a name-based virtual host and want to use Socket.pm in a PerlSection: >>> >>>

Re: failure using Socket in PerlSection

2012-11-11 Thread Mark Heiges
On Nov 9, 2012, at 10:36 PM, Mark Heiges wrote: > I have a name-based virtual host and want to use Socket.pm in a PerlSection: > > > use Socket; > > > but when starting httpd I get the error, > > $parms->add_config() has failed: Invalid command 'INADDR_ANY

Re: failure using Socket in PerlSection

2012-11-10 Thread Mark Heiges
On Nov 9, 2012, at 10:36 PM, Mark Heiges wrote: > I have a name-based virtual host and want to use Socket.pm in a PerlSection: > > > use Socket; > > > but when starting httpd I get the error, > > $parms->add_config() has failed: Invalid command 'INADDR_ANY

failure using Socket in PerlSection

2012-11-09 Thread Mark Heiges
I have a name-based virtual host and want to use Socket.pm in a PerlSection: use Socket; but when starting httpd I get the error, $parms->add_config() has failed: Invalid command 'INADDR_ANY', perhaps misspelled or defined by a module not included in the server configuration at /usr/lib64/pe

Random build failures

2011-07-29 Thread Mark Fowler
h the tests run since I've set I was wondering if anyone had any experience of anything like this before? Mark. P.S. In case it's important: Ubuntu 10.4 LTS on intel Perl 5.12.3 httpd-2.2.16 t/apache/read3.t Failed 1/1 subtests Test Summary Report -

perl -c fails with FilterSnoop example in docs

2011-02-22 Thread Mark Hedges
ed at Lame.pm line 26. If I comment those subs out it checks fine, so Apache2::Filter is loading. It doesn't help if I also do "use Apache2::Filter ()" first. Any ideas how to make this check okay for my build test to include it? --mark-- #file:MyAp

Re: undefined symbol modperl_xs_sv2request_rec

2011-02-04 Thread Mark Hedges
On Wed, 2 Feb 2011, Mark Hedges wrote: > > A change in Module::Build recently brought it in line with > the behavior of ExtUtils::MakeMaker, which caused an error > to crop up in test cases: > > # Error: Can't load > '/usr/lib/perl5/site_perl/5.8.8/i386-linu

undefined symbol modperl_xs_sv2request_rec

2011-02-04 Thread Mark Hedges
le seem inclined to think it is a problem with mod_perl and not apreq. Any ideas? Thanks. --mark-- -- Forwarded message -- Date: Thu, 3 Feb 2011 01:02:16 -0500 From: Michael G Schwern via RT To: mar...@cpan.org Subject: Re: [rt.cpan.org #65382] https://rt.cpan.org/Ticket/Di

undefined symbol modperl_xs_sv2request_rec

2011-02-03 Thread Mark Hedges
Request (libapreq2) but people seem inclined to think it is a problem with mod_perl and not apreq. mod_perl 2.0.4 6.el5, perl 5.8.8 32.el5_5.2 CentOS Any ideas? Thanks. --mark-- -- Forwarded message -- Date: Thu, 3 Feb 2011 01:02:16 -0500 From: Michael G Schwern via

Re: Apache2::SizeLimit for threaded MPM's

2010-12-30 Thread Mark Copper
I should have searched the source file for that "die" command myself. Sorry for the noise; thanks for the gentle reply. MC On Thu, Dec 30, 2010 at 3:07 PM, Fred Moyer wrote: > On Thu, Dec 30, 2010 at 9:50 AM, Mark Copper wrote: >> >> Do the the Apache2::SizeLimit m

Apache2::SizeLimit for threaded MPM's

2010-12-30 Thread Mark Copper
removed, but I don't see anything about it in the CPAN module changes file. Thanks. Mark Copper

logging $! with $r->log_error

2010-12-11 Thread Mark Copper
urse, but is then I won't get the error message when it *does* get set. So my question: when "open" to a pipe does not return a process PID and $! is not set, is there any other source of information regarding what caused the error? I'm pretty ignorant on this type of thing, so sorry if it's a stupid question. Mark

Re: Suggestion on perl handler to reject request with large content length

2010-11-18 Thread Mark J. Reed
$r->custom_response(Apache2::Const::HTTP_REQUEST_ENTITY_TOO_LARGE,"Bad request"); } return Apache2::Const::OK } That way you don't have to duplicate the logic of the check yourself, you're just arranging for a customized response when it fails. -- Mark J. Reed

Re: Suggestion on perl handler to reject request with large content length

2010-11-18 Thread Mark J. Reed
_type("text/plain"); >     $r->print ("Too Large, Bye!!"); > #Send xml delimited back to the client assuming it will not continue > sending this request to mod_jk worker >  } > >  return Apache2::Const::HTTP_REQUEST_ENTITY_TOO_LARGE; # Return back to client > -- Mark J. Reed

Re: shared variable between PerlChildInitHandler and PerlResponseHandler

2010-08-19 Thread Mark Risher
Thank you for the suggestions. Unfortunately, I am still not able to make it work. Spurred by your advice, I examined my apache2.conf config. Here it is: PerlSwitches -I/mnt/hgfs/src/api# the path where my modules live PerlModule StartupLog PerlChildInitHandler StartupLog::child_init Se

shared variable between PerlChildInitHandler and PerlResponseHandler

2010-08-19 Thread Mark Risher
Hi, all: I am trying to load a configuration file into a hash during my PerlChildInitHandler and then access the values from PerlResponseHandler. However, even though the process number is the same, it seems that variables changed during the child_init() call revert back to their default values

Re: CPAN Upload: P/PH/PHRED/Apache2-Dispatch-0.13.tar.gz

2010-02-10 Thread Mark Stosberg
>    Apache2-Dispatch-0.13.tar.gz This looks like a useful module, Fred. Is anyone here using this as an initial dispatcher to pass things on to CGI::Application::Dispatch? Mark -- . . . . . . . . . . . . . . . . . . . . . . . . . . . Mark StosbergPrincipal Develo

Re: ErrorDocument from a registry script

2010-02-09 Thread Mark Stosberg
r this be solved at a toolkit level so folks don't have to keep re-inventing solutions for this. Have I missed a better way to handle this? Mark

Re: mod_perl-2.0.4 with Apache 2.2.9 and perl 5.10.0 intermittent crashing

2010-01-28 Thread Mark Copper
uot;/just|another|perl|hacker/" > > References > > 1. mailto:demer...@gmail.com >2. mailto:pas.arge...@gmail.com Looks like Bug #37027 for DBD-mysql: mysql_auto_reconnect I struggled with this one a while back myself. Mark

Re: intermittent segfaults, ssl?

2010-01-13 Thread Mark Copper
Despite what I said, this seems to be CPAN bug 37027 or, in my case, Debian bug #520406 involving module DBD-mysql. Mark On Tue, Jan 12, 2010 at 12:24:17PM -0600, Mark Copper wrote: > Hi, > > I have a server like this: > Server Version: Apache/2.2.9 (Debian) mod_ssl/2.2.9 Op

intermittent segfaults, ssl?

2010-01-12 Thread Mark Copper
mposing on list-readers time without doing more work, but I just wonder is it isn't something really elementary that I'm missing. Mark

planning an upgrade to Perl 5.10.1 and mod_perl

2009-09-10 Thread Mark Stosberg
pache/mod_perl compiled against 5.8 if I need to. Am I missing anything major here? I realize there are some details about port allocation that I'll need to address. Mark -- . . . . . . . . . . . . . . . . . . . . . . . . . . . Mark StosbergPrincipal Developer

Help requested with a CGI.pm / mod_perl bug

2009-09-04 Thread Mark Stosberg
hes are welcome. The code is on GitHub now [1], but a diff against the latest release would also be welcome. 1. http://github.com/markstos/CGI.pm/tree/master Thanks! Mark -- http://mark.stosberg.com/

Re: unreadable output after internal redirect

2009-08-21 Thread Mark Copper
On Thu, Aug 20, 2009 at 11:47:56PM -0700, Fred Moyer wrote: > On Thu, Aug 20, 2009 at 7:54 AM, Mark Copper > wrote: > > Hi, > > > > I have a Mason dhandler that generates an HTML page containing a form. > > The action of the form is to get the same page that is displ

unreadable output after internal redirect

2009-08-20 Thread Mark Copper
ully? Sorry if *this* page is gibberish. Thanks for reading. Mark

Accessing apache request configuration from mp2

2009-07-09 Thread Mark Moseley
This is a case of I'm pretty sure I saw this before but can't for the life of me remember where -- so it might not even be possible. I'm trying to access the values of the 'Order', 'Allow', and 'Deny' apache directives, as they're set at request time, i.e. after merging. Basically what I want to d

Re: config? internal_redirect wants internal_re.al

2009-04-22 Thread Mark Copper
Thank you. Adding "use Apache2::SubRequest ();" to my startup.pl solves the problem, and it explains the divergent behavior between the two virtual hosts. Mark On Wed, Apr 22, 2009 at 09:03:50AM -0400, Adam Prime wrote: > Mark Copper wrote: > >Hi, > > > >I&#

config? internal_redirect wants internal_re.al

2009-04-21 Thread Mark Copper
e Apache location is SetHandler perl-script PerlHandler MyApp::Mason DefaultType text/html Thank you. Mark

Re: cannot install Apache2::Request from CPAN

2009-04-01 Thread Mark Hedges
On Tue, 31 Mar 2009, Mark Hedges wrote: > On Tue, 31 Mar 2009, Fred Moyer wrote: > > > Do you have /usr/lib64 in your /etc/ld.so.conf? Been a > > while since I've done 64 bit but that always seemed to > > be the issue. Run ldconfig if needed after you add it. >

Re: cannot install Apache2::Request from CPAN

2009-03-31 Thread Mark Hedges
/hapi/bin /opt/dell/srvadmin/oma/bin /opt/dell/srvadmin/omsa/bin /opt/dell/srvadmin/rac5/bin /opt/dell/srvadmin/rac5/libs /opt/dell/srvadmin/shared/bin /opt/dell/srvadmin/sm /opt/dell/srvadmin/sm/dellvl ?? what is this stuff? Argh why can't I just use `apt-get`? Mark

Re: cannot install Apache2::Request from CPAN

2009-03-31 Thread Mark Hedges
/libdb-4.3.so: could not read symbols: File in wrong format collect2: ld returned 1 exit status make[2]: *** [libapreq2.la] Error 1 Mark

cannot install Apache2::Request from CPAN

2009-03-31 Thread Mark Hedges
This worked at one time on this machine. Can't do it now, nor on new similarly configured machines. Any ideas? --mark-- hed...@anubis:~/DeSpam$ sudo updatedb hed...@anubis:~/DeSpam$ locate Request.pm /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/APR/Request.pm /usr/lib/

Re: To learn perl... [was: decline and fall of modperl?]

2009-03-26 Thread Mark Blackman
t;. Chromatic's blog on the subject, http://www.modernperlbooks.com/mt/, is probably the best starting place for that idea. - Mark

Re: tUsing module

2009-03-01 Thread Mark Hedges
traight CGI, you probably can't do this, because the interpreter gets started up fresh for every hit to the url. Mark

Re: Deployment strategies...

2009-02-27 Thread Mark Hedges
nge the namespaces > for different versions or run separate servers. What about PerlOptions +Parent? http://perl.apache.org/docs/2.0/user/config/config.html#C_Parent_ Mark

Re: PerlConfigRequire and die

2009-02-23 Thread Mark Hedges
rce apache not to start eval {load_application(); 1} || do { warn $@; die }; ?? Mark

Re: Bug with cgi->header() + mod_perl ?

2009-02-20 Thread Mark Hedges
ou expand your application you don't have to keep passing it around. You get what you wanted in the first place by using objects and containing all the per-request objects like CGI within the one per-request WebApp object. Mark

Re: Capturing Apache response

2009-02-13 Thread Mark Hedges
I'm trying to say that you shouldn't use custom headers to save this information, when you should be using the correct facility, which is pnotes. Why do you want to use the wrong thing when the right thing is available? Mark On Fri, 13 Feb 2009, Solutio at Gmail wrote: > I un

Re: mod_perl2 with mod_dbd and Apache2

2009-02-13 Thread Mark Hedges
ant to do is to factor the parts of your application that require the database onto a separate server with a different URL, that way you can manage them. Mark On Wed, 11 Feb 2009, Ivan Heffner wrote: > I realize that this response is months late, but this thread is only > now coming to my a

Re: Manipulating @INC and tremendous blank page

2009-02-13 Thread Mark Hedges
ip of @INC in the App::Engine module > within a BEGIN block but then move it to the import function of App::Engine, > to > no unvail. Would this work in your CGI instead of fiddling with @INC: use FindBin; use lib "$FindBin::Bin/../lib"; or something like that? Mark

Re: Capturing Apache response

2009-02-13 Thread Mark Hedges
lem. We'll give it a try. To recap, you shouldn't use the custom header, you should probably use $r->pnotes or maybe $c->pnotes to store the information from the beginning to be accessed at the end. This is what the pnotes tables are for. Don't mess with the headers. Headers are for communicating with the client. Mark

Re: Capturing Apache response

2009-02-10 Thread Mark Hedges
>pnotes seems to work these days, I would have expected $c->pnotes->{request_data} = $data; or something like that. Mark

Re: Capturing Apache response

2009-02-09 Thread Mark Hedges
directives with Apache2::Module. Some good examples are in Apache2::Controller::Directives (as a separate package) or Apache2::AuthenOpenID (built into a handler package). Also see http://perl.apache.org/docs/2.0/user/config/custom.html#Creating_and_Using_Custom_Configuration_Directives . Mark

Re: Class method or Object method?

2009-01-29 Thread Mark Hedges
singleton. It can be accessed from anywhere in the > interpreter that has access to the Cart namespace by a static call to > Cart->new Under mod_perl, doesn't that mean that if user A is the first to hit an interpreter and the cart instance is created for them, then if user B's request is the next to be served by the mod_perl child, that user B will get user A's cart? Mark

Re: Class method or Object method?

2009-01-29 Thread Mark Hedges
m out of $self when you need them in whatever routine. That, I would say, is the biggest benefit (to me) for being strict about using object structure whenever it makes sense. Mark

Re: Class method or Object method?

2009-01-29 Thread Mark Hedges
catalog should not contain the cart. Maybe your application should be a sort of "view" controller that contains references to both the catalog object (source of product data) and the cart object (contains items they bought). view object / \ catalog cart Then, the view selects what items to display, and asks the cart if it contains those items when deciding whether to display the flag. Mark

Re: Class method or Object method?

2009-01-29 Thread Mark Hedges
. And if your objects need to be persistent and have storage associated with them, start with DBIx::Class from the beginning, don't try to add that later after you've written "simple" data getters/setters. ;-) Mark

Apache::compat, perldoc modules?

2009-01-27 Thread Mark Hedges
/usr/lib/perl5/5.8.8 . /etc/httpd) at (eval 167) line 3.\n There is no Apache2.pm module. And even without that, there is no Apache::compat module, either: Starting httpd: Syntax error on line 59 of /etc/httpd/sites.d/blah.conf: Can't locate Apache/compat.pm in @INC (...) Am I missing something obvious here? Thanks. Mark

Re: unsubscribe

2009-01-20 Thread Mark Hedges
you to look at the > > headers of the e-mail for the list management addresses? > > --mark-- > > When using gmail it's not exactly obvious. I agree with someone who > posted a few days ago. It wouldn't hurt to put it in a footer. I apologize for my irasci

Re: unsubscribe

2009-01-20 Thread Mark Hedges
How many times to people have to tell you to look at the headers of the e-mail for the list management addresses? --mark-- On Tue, 20 Jan 2009, Yuan Zhang wrote: > unsubscribe >

Re: Initializing Sleepycat::DbXml (Berkeley, Oracle) objects in startup.pl

2009-01-15 Thread Mark Hedges
e List::MoreUtils::natatime() under threads. (But the rest of that library works.) It's a sad state of affairs that a large chunk of CPAN doesn't play nice with threads, and there's usually not any way of knowing which library is causing the problem. It might not even be the oracle thingy, maybe something else you're loading. Mark

Re: Apache2::Reload - Very fickle, or is it just me?

2009-01-14 Thread Mark Hedges
1 or 2 (as > opposed to the default 1) will help ease the pain. Helps to test this kind of thing (when testing manually) by starting httpd with -X... less confusing. Mark

Re: Initializing Sleepycat::DbXml (Berkeley, Oracle) objects in startup.pl

2009-01-14 Thread Mark Hedges
u'll have to balance how many writes you expect to get with how many reads, maybe reading actions do not require locks on the data file. Mark

Re: mod_perl v2 documentation bugs: location of PerlOptions +Parent, PerlSwitches

2009-01-11 Thread Mark Hedges
es it work to do: PerlOptions +Parent use lib '/var/blah'; Or use the lib dir from a startup script called in the vhost block with PerlRequire? Mark

  1   2   3   4   >