Re: The server encountered an internal error

2007-01-09 Thread Michael Peters
Tracy12 wrote: [snip] > More information about this error may be available > in the server error log. > > Apache/2.2.0 (Fedora) Server at localhost Port 80 > > > > What I am I missing? The line above says to check the error logs on the server. "tail -f" is

Re: Anyone using CGI::Simple?

2007-01-10 Thread Michael Peters
ave on memory and can't use the Apache::Request stuff. I'd try posting a query to perlmonks. -- Michael Peters Developer Plus Three, LP

Re: Lost ENV variable value .........

2007-01-12 Thread Michael Peters
tVar CASHost "testCasServer" > PerlSetVar CASPort "8443" Yep. If possible keep the configuration data inside the configuration s. -- Michael Peters Developer Plus Three, LP

Re: installing mod_perl for 2 servers

2007-01-12 Thread Michael Peters
multiple instances/ports. -- Michael Peters Developer Plus Three, LP

Re: installing mod_perl for 2 servers

2007-01-12 Thread Michael Peters
ed at build time. -- Michael Peters Developer Plus Three, LP

Re: Making .pm files run.

2007-01-16 Thread Michael Peters
ally change all '/' into '::' and then drop the final '.pm'. -- Michael Peters Developer Plus Three, LP

Re: Making .pm files run.

2007-01-16 Thread Michael Peters
uration you can then install stuff: cpan> install Mail::Sendmail That should get it installed for you. -- Michael Peters Developer Plus Three, LP

Re: Making warnings trigger errors.

2007-01-23 Thread Michael Peters
sometimes I need some help in tracking down warnings, so I do something like this: use Carp; $SIG{__WARN__} = \&Carp::cluck; -- Michael Peters Developer Plus Three, LP

Re: Perl Authentication Handler and Cookie Issue

2007-02-16 Thread Michael Peters
this. First thing I'd check is to make sure that the cookies are being sent by the browser. I normally use Firefox and the LiveHTTPHeaders plugin to check that it's sending what I think it should be sending. -- Michael Peters Developer Plus Three, LP

Re: Perl Authentication Handler and Cookie Issue

2007-02-20 Thread Michael Peters
ng first and consuming the cookie headers so that later phases don't see them. What else is configured to handle those .jsp pages? -- Michael Peters Developer Plus Three, LP

Re: MP1 Security issue (was Re: [mp1] PerlRun fails if path_info contains special symbols)

2007-03-23 Thread Michael Peters
want to raise too many alarms, but this means that every MP1 server > has a denial-of-service attack against it now. Not quite. It only affects people running PerlRun. Not insignificant, but definitely not everyone. -- Michael Peters Developer Plus Three, LP

Re: "Insecure dependency in eval while running setgid" error

2007-03-29 Thread Michael Peters
> taint mode in mod_perl2 to give it sufficient real world testing. Or it could be taint mode + mod_perl2 + your perl version. But that's something better asked on p5p. -- Michael Peters Developer Plus Three, LP

uploading problem

2007-03-30 Thread Michael Greenish
Hello, I doubt this is specifically a modperl problem but if not, perhaps someone can point me to a better group to post this message with? First, I am using: modperl 2.0.x perl 5.8.5 Linux I have a page on a site where users can upload as many pictures as they like. I am using the cgi class

Re: Charts and Graphs

2007-04-13 Thread Michael Peters
Sean Davis wrote: > On Thursday 12 April 2007 19:15, Bill Whillers wrote: >> Any suggestions? > > Have you looked at using gnuplot or R? There's also something RRDTool. Or you can go a different route and use Javascript for the presentation: http://www.solutoire.com/plotr

Re: Malformed header from script

2007-04-16 Thread Michael Peters
michael watson (IAH-C) wrote: > If I view source in IE, the very top of the web page starts: > > Ensembl release 43: Gallus gallus Features on Chromosome 23 > 6042217-6042217 You can't see HTTP headers when doing a 'view source'. No browser will include them. In or

Re: Perl and ASP.Net

2007-04-24 Thread Michael Peters
e http://jquery.com/ http://developer.yahoo.com/yui/ http://mootools.net/ http://dojotoolkit.org/ -- Michael Peters Developer Plus Three, LP

Re: Perl and ASP.Net

2007-04-24 Thread Michael Peters
t compilers hide from me). #2 is just all around bad since you have to learn the complexity of the thing anyway, just with some bad wrapper interface instead of the real one. -- Michael Peters Developer Plus Three, LP

Re: Perl and ASP.Net

2007-04-25 Thread Michael Peters
d files. (And this is only to boost download time since if every site using the YUI libraries uses the same URL, a browser should just be able to use a cached version). But even then you can specify specific versions. -- Michael Peters Developer Plus Three, LP

Re: Perl and ASP.Net

2007-04-25 Thread Michael Peters
possible currently since everyone has a different >> framework and different concept of 'right' place. > > Doing this at the mod_perl level is probably one level too low. ASP.Net > is not the equivalent of mod_perl. It is more like any one of the > frameworks such as

Re: File Handle problems - mod_perl 2.0

2007-04-26 Thread Michael Peters
e are were no threaded mpms in Apache 1, so none in mod_perl 1 either. -- Michael Peters Developer Plus Three, LP

Re: Perl and ASP.Net

2007-04-26 Thread Michael Peters
. From my experience though, Prototype, jQuery and Mootools feel more Perlish (see, I brought it back to Perl!) and Dojo and YUI feel more Javaish. I do like http://ajaxian.com/. It mentions various tools, projects and frameworks all the time. -- Michael Peters Developer Plus Three, LP

Re: [mp1] Failed to build mod_perl-1.30 with apache_1.3.37

2007-04-27 Thread Michael Peters
Saltbreez wrote: > Did you build perl, or are you using a distribution supplied binary? You don't have to compile your own perl, but you do need to make sure that you use the same compiler for perl, mod_perl and apache. -- Michael Peters Developer Plus Three, LP

Re: Apache::DBI - Can two different connection handles have the same reference/address at different times?

2007-05-07 Thread Michael Peters
Lionel MARTIN wrote: > This would save me the need to prepare at every request, while I could > benefit from old prepared statements. Just use prepare_cached() -- Michael Peters Developer Plus Three, LP

YAPC Europe 2007 Reminder - CFP and CFH Deadlines Approaching

2007-05-08 Thread Michael Kröll
in topic for the conference, it will not be the only one, and as such we will also be accepting talks on just about any theme. Types of talks include 20 or 40 minutes talks, 60-90 minute tutorials, or 3 hour Hack-a-thons, BOFs or Workshops. There are still some slots free! Hope to see you in Vien

Re: Apache::DBI - Can two different connection handles have the same reference/address at different times?

2007-05-08 Thread Michael Peters
you start caching your own statement handlers you'd have to re-implement all of that. -- Michael Peters Developer Plus Three, LP

Re: Apache::DBI - Can two different connection handles have the same reference/address at different times?

2007-05-08 Thread Michael Peters
e (but with a new connection), using an > already prepared statement would fail... Exactly right. I think this would be the much more common type of bug to occur when you try caching statement handles on their own. They don't exist independent of their db connections which might change or go away. -- Michael Peters Developer Plus Three, LP

Re: TIF image file

2007-05-08 Thread Michael Peters
isplayed by web browsers. -- Michael Peters Developer Plus Three, LP

Re: TIF image file

2007-05-08 Thread Michael Greenish
-0481 -Original Message- From: Robert Landrum [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 08, 2007 2:18 PM To: Michael Peters Cc: Vaughn, Terry; modperl@perl.apache.org Subject: Re: TIF image file Michael Peters wrote: > Vaughn, Terry wrote: > >> I have some TIF files that I t

problems with Makefile.PL for libapreq 1.33

2007-05-10 Thread Michael Peters
for mod_perl version before the test for Apache::Test. -- Michael Peters Developer Plus Three, LP --- Makefile.PL 2004-12-06 10:31:08.0 -0500 +++ Makefile.PL.new 2007-05-10 11:19:46.0 -0400 @@ -6,6 +6,18 @@ use File::Path qw(mkpath); use lib qw(Apache-Test/lib); +BEGIN { +

Re: problems with Makefile.PL for libapreq 1.33

2007-05-10 Thread Michael Peters
Michael Peters wrote: > The attached patch should fix this problem in Makefile.PL by doing the test > for > mod_perl version before the test for Apache::Test. Weird. This seems to have been a problem that was noticed in 2005 and Stas recommended almost the exact same patch. ht

Re: problems with Makefile.PL for libapreq 1.33

2007-05-10 Thread Michael Peters
Marius Feraru wrote: > Michael Peters wrote: >> Weird. This seems to have been a problem that was noticed in 2005 and Stas >> recommended almost the exact same patch. >> http://mail-archives.apache.org/mod_mbox/perl-modperl/200505.mbox/[EMAIL >> PROTECTED] > >

Re: After retrieving data from DB, the memory doesn't seem to be freed up

2007-05-11 Thread Michael Peters
Lionel MARTIN wrote: >> - Don't load large amounts of data into scalars. > Fine. Now I know why. But sometimes, you don't have the choice. I'd like to know what situations you encounter where you are forced to load large amounts of data into scalars. I can't thin

Re: After retrieving data from DB, the memory doesn't seem to be freed up

2007-05-11 Thread Michael Peters
ng happens all the time. Think of SAX XML parsers or mod_perl filters. It's not terribly difficult to parse something in chunks like that. I wasn't saying that it wouldn't be easier to have everything in memory. Heck I'd love it if I never had to read a file in line by line anymore

Re: After retrieving data from DB, the memory doesn't seem to be freed up

2007-05-11 Thread Michael Peters
rchives: The issue we're discussing is not "data persistance". Data persistance is when the data sticks around between requests. When lexicals go out of scope the data disappears. It's the actual system memory being reserved by Perl for future use of that variable that sticks aro

Re: apache2 does not deny acces though PerlAuthenHandler returns HTTP_UNAUTHORIZED

2007-05-15 Thread Michael Peters
user" directive that I set. > My problem is, that apache executes my handler, but it does not take > care of my return-values. Instead it always serves the request and > grants access. The HTTP codes are HTTP return codes, not handler return codes. Use FORBIDDEN instead. -- Michael Peters Developer Plus Three, LP

Re: Both mod_perl 1 and 2 on same machine

2007-05-15 Thread Michael Peters
g under mod_perl by trying to use 'Apache2' instead of looking at $ENV, but that's a different story... -- Michael Peters Developer Plus Three, LP

Re: stupid optimization question

2007-05-17 Thread Michael Peters
lexically scope the array to that sub: { my @items = qw| 1 2 3 |; sub b { foreach my $b (@items) { } } } -- Michael Peters Developer Plus Three, LP

Re: problem calling a file under mod_perl2

2007-05-30 Thread Michael Peters
Jonathan Vanasco wrote: > in our setup, we do this: > > port 80:nginx > ports: 7000-9000modperl ( handlers assigned to individual ports ) Out of curiosity, why use a different port for each hander instead of just a different url? -- Michael Peters Develope

Re: Which template engine is best to create a perl site

2007-06-05 Thread Michael Greenish
Hello. Rather than being most concerned about the learning curve, I would be more concerned with using a flexible and powerful template engine. Because once you start down the road of building templates, if your template engine isn't capable enough, you have to go back and redo them and maybe

Re: Replacement for CGI.pm escape and unescape

2007-06-07 Thread Michael Peters
Jonathan Vanasco wrote: > I use URI::Escape > > http://search.cpan.org/~gaas/URI-1.35/URI/Escape.pm > > its small, and comes in the std perl distro Good for URI escaping, but that's not the same thing as HTML escaping, which is what CGI's escape/unescape do r

Re: Where is Perl compilation output when using modperl ?

2007-06-28 Thread Michael Peters
for you, but I get errors like that to my error log all the time. So it's not something that's always a problem. In fact, I think it's always worked right for me. Don't know if this is encouraging or not :) -- Michael Peters Developer Plus Three, LP

Re: Where to store uploads

2007-07-03 Thread Michael Peters
lly have much more overhead than a database. -- Michael Peters Developer Plus Three, LP

Re: passing CGI paramters

2007-07-05 Thread Michael Peters
can reference things that were declared in the same scope as it self. http://en.wikipedia.org/wiki/Closure_%28computer_science%29 and in Perl http://www.perl.com/pub/a/2002/05/29/closure.html Depending on the other languages you know, you might never have encountered a closure before since they don't exist in languages like C, C++ or Java. -- Michael Peters Developer Plus Three, LP

Re: [mp2] apache2::build missing from fedora 7 mod_perl?

2007-07-12 Thread Michael Peters
ith just the defaults. But this does look like a bug on RH's part, so I'd report it to: [EMAIL PROTECTED] -- Michael Peters Developer Plus Three, LP

Re: php/mod_perl + mysql woes

2007-07-20 Thread Michael Peters
e proxy) then you can use a smaller lightweight proxy like squid. -- Michael Peters Developer Plus Three, LP

Re: php/mod_perl + mysql woes

2007-07-20 Thread Michael Peters
; completely different install trees, which is sorta painful when you need > 5 different apaches running with practically the same install, just a > different httpd.conf to load the right DSO. That should work. I haven't done it with PHP, but I have done it for apache/mod_perl. -- Michael Peters Developer Plus Three, LP

Re: Problem with loading dynamic libraries

2007-08-15 Thread Michael Peters
; if necessary) which one is used by mod_perl ? mod_perl doesn't pick a perl binary to use. It is a Perl interpreter. And it's the same version that you compiled it against. The only way to change it's version is to recompile mod_perl using another perl binary. -- Michael Peters Developer Plus Three, LP

Re: How to display images ?

2007-08-21 Thread Michael Peters
?HTML::Template) but if you're coming from PHP then Mason might be more up your alley (http://search.cpan.org/perldoc?HTML::Mason) -- Michael Peters Developer Plus Three, LP

Re: Special characters

2007-08-23 Thread Michael Peters
And it's not mod_perl, it's Apache. > PerlSetEnv NLS_LANG AMERICAN_AMERICA.WE8ISO8859P1 PerlPassEnv NLS_LANG If you're setting NLS_LANG correctly in your environment, you can simply make that PerlPassEnv NLS_LANG Or if you want to make it available to anything else that might need it PassEnv NLS_LANG -- Michael Peters Developer Plus Three, LP

Re: regarding the debuging CSS file using apache

2007-08-27 Thread Michael Peters
lease find a more appropriate list. -- Michael Peters Developer Plus Three, LP

Re: Basic Auth

2007-09-05 Thread Michael Peters
/perl.apache.org/docs/2.0/api/Apache2/RequestRec.html#C_user_ -- Michael Peters Developer Plus Three, LP

Re: Memory usage

2007-09-11 Thread Michael Peters
side of apache and just have a simple Perl script that does nothing but sleep after it's created the large data structure you want. Then use something like top (or whatever the best tool on your OS is) to see how much memory it takes us. -- Michael Peters Developer Plus Three, LP

Re: resend: Bug report re: Apache 2.2.6 on Windows

2007-09-18 Thread Michael Lackhoff
o try this but since I am not a C programmer, can you say what the changed line in log.c should look like? And is there a similar fix for 2.0.61? I would prefer to stay with the 2.0.x branch for the time being. - Michael

Re: resend: Bug report re: Apache 2.2.6 on Windows

2007-09-18 Thread Michael Lackhoff
change log lists quite a few security fixes for the new versions. As long as all that could be broken is logging, I think I would like to upgrade or could the change effect other parts as well (security)? - Michael

Re: Problem with perl-status memory usage

2007-09-19 Thread Michael Peters
.xxx/perl-status Maybe it's as simple as B::TerseSize simplying not using/requiring Devel::Symdump? -- Michael Peters Developer Plus Three, LP

Re: URI redirection

2007-09-21 Thread Michael Peters
eet that requirement, it seems like is a good place to > reference the handler. That seems like a good spot. And if you plan on using it for ever request, it's a good reason to read the url map into memory before you begin. -- Michael Peters Developer Plus Three, LP

Re: Downloading SpreadSheet Data with Apache

2007-09-21 Thread Michael Peters
#x27;s happening HTTP wise, use some network analyzing tool like ethereal. But my guess is just that your web server isn't sending the info yet cause it's buffer isn't full. -- Michael Peters Developer Plus Three, LP

modperl on Plesk

2007-09-21 Thread Michael Preslar
Was wondering.. Do any of you have any experience with mod_perl on Plesk managed servers?

Re: modperl on Plesk

2007-09-21 Thread Michael Preslar
On 9/21/07, Michael Preslar <[EMAIL PROTECTED]> wrote: > Was wondering.. > > Do any of you have any experience with mod_perl on Plesk managed servers? > On the box I have here.. mod_perl 1.99 (Yeah, that should be 2.x) CentOS 4.5..And plesk is as up to date as it can b

[ANNOUNCE] Krang V2.20

2007-09-25 Thread Michael Peters
Krang v2.20 is now available (the source release is up now and binary builds should be up soon). Notable changes in this release: * Lots and lots of bug fixes * Implemented desk security as specified in docs/permissions.pod * Added --below_category_id option and implemented --limited_to_category

Re: Question...

2007-09-25 Thread Michael Peters
rinting out a null byte (or anything really) just to tell the browser that you're still working... print "\0"; > > } > > in::ct(); > print("version 2.x suceeded!!!"); -- Michael Peters Developer Plus Three, LP

Re: Genral application architecture question

2007-09-26 Thread Michael Peters
d mount (NFS?) * Use scp or rsync to periodically sync the indexes (works well if combined with a cronjob that periodically creates the index) * Use the experimental swished which is a swish-e server (or multiple servers) to handle really large sets of documents. Btw, how many documents are we talking about? -- Michael Peters Developer Plus Three, LP

Re: Genral application architecture question

2007-09-26 Thread Michael Peters
7;s a single Perl interpreter (am I right about this on Windows?). Preloading modules on prefork under an OS that doesn't do COW memory does not have any of that shared. -- Michael Peters Developer Plus Three, LP

Re: Sharing data between many requests

2007-09-26 Thread Michael Peters
ode, can I check at run-time under which environment I'm running, > and condition which code is executed accordingly ? Jim already gave you a good answer here. -- Michael Peters Developer Plus Three, LP

Two versions of the same app in one Apache with mod_perl?

2007-10-11 Thread Michael Lackhoff
I would like to avoid that if possible. Any other ideas what I could do? Thanks Michael

Re: Two versions of the same app in one Apache with mod_perl?

2007-10-11 Thread Michael Lackhoff
t's it!" but damn... Thanks anyway Michael

Re: Two versions of the same app in one Apache with mod_perl?

2007-10-11 Thread Michael Lackhoff
On 11.10.2007 12:07 Michael Lackhoff wrote: > But when I try to start Apache with this setting it just dies during > startup without any error message. > Perhaps this doesn't work on Windows? > My config: Apache 2.0.59, Perl 5.8.8 compiled with VC6 everything > running under

Apache::TestMB quitting too early

2007-10-11 Thread Michael Peters
Skipping the test suite execution, while returning success status Any ideas why it's not running any tests when it should be? -- Michael Peters Developer Plus Three, LP

Re: Mod_Perl and MaxRequestsPerChild

2007-10-16 Thread Michael Peters
e structures (are they just cache? then memcached. Are they important? Then some sort of shared memory, BDB, SQLite or MySQL might be more appropriate. -- Michael Peters Developer Plus Three, LP

Re: Mod_Perl and MaxRequestsPerChild

2007-10-17 Thread Michael Peters
problem with thread-safety is that you probably won't notice it on low traffic (like development) and it's really hard to pinpoint when it does go wrong. More and more systems and languages are going for a shared-nothing approach. Especially now that OSes like Linux make having multiple processes much lighter than they used to be. -- Michael Peters Developer Plus Three, LP

Apache config and mod_perl location?

2007-10-20 Thread Michael Moon
When I attempt to start apache I get the error Invalid command PerlModule. Obviously I don't have httpd.conf configured correctly, but in reading the instructions I don't understand what directory I am supposed to use for the Alias /perl/ directory. Make test and make install ran without

RE: Apache config and mod_perl location?

2007-10-20 Thread Michael Moon
Sorry, forgot to mention. The environment is CentOS 5 Apache 1.30, mod_perl 1.3 I am using older versions due to recommendations for installing request tracker. From: Michael Moon [mailto:[EMAIL PROTECTED] Sent: Saturday, October 20, 2007 9:58 AM To

Re: ANNOUNCE: XS-based minifiers for JS/CSS

2007-10-22 Thread Michael Peters
of that JS into a single file, > minified, and with a long expiry date. And then include the few lines of > custom JS in a separate request, or even inline in the page itself. You obviously haven't built a JSON API yet :) Each request will be JS and will be different. -- Michael Peters Developer Plus Three, LP

Error Can't locate Apache/DBI.pm

2007-10-22 Thread Michael Moon
I have installed mod_perl 1.3 and Apache 1.39 on a CentOS 5 system in order get Request Tracker running. When I attempt to start apache I get the following error: Syntax error on line 969 of /usr/local/apache/conf/httpd.conf: Can't locate Apache/DBI.pm in @INC (@INC contains: /usr/lib/pe

Re: Error Can't locate Apache/DBI.pm

2007-10-22 Thread Michael Peters
Michael Moon wrote: > I have installed mod_perl 1.3 and Apache 1.39 on a CentOS 5 system in > order get Request Tracker running. When I attempt to start apache I get > the following error: > > Syntax error on line 969 of /usr/local/apache/conf/httpd.conf: Can't > locat

Re: stringified enumeration

2007-10-23 Thread Michael Peters
, banana : 'yellow' } And the URL will look like http://www.example.com?fruit=%7Bgrape%3A'purple'%2Capple%3A'red'%2Cbanana%3A'yellow'%7D And then you can use JSON, or JSON::XS, JSON::Syck or whatever JSON module you want from CPAN to deserialize it into a Perl structure on your server side. -- Michael Peters Developer Plus Three, LP

Re: Rose::DB and Apache::DBI

2007-10-23 Thread Michael Peters
try and stash a DB handle somewhere you'll end up having to re-implement what Apache::DBI does for you automatically. -- Michael Peters Developer Plus Three, LP

Re: mod_perl and CGI::Application.. Strange Behaviour

2007-10-26 Thread Michael Peters
#x27;s quite likely that you are loading that instead of your test package. > use lib '/docroot/cgi-perl/test'; This adds the path to @INC at the end for searching. So your Test.pm will be found after the core Perl one. -- Michael Peters Developer Plus Three, LP

Re: mod_perl and CGI::Application.. Strange Behaviour

2007-10-26 Thread Michael Peters
>Options ExecCGI > -- Michael Peters Developer Plus Three, LP

Re: mod_perl and CGI::Application.. Strange Behaviour

2007-10-26 Thread Michael Peters
Dileep Eduri wrote: > No change. still getting headers in browser. > this one is pretty annoying. Make that change to your config, take out the send_http_headers and the CGI->print(). -- Michael Peters Developer Plus Three, LP

Re: 32 & 64 bit memory differences

2007-11-06 Thread Michael Peters
just let mod_auth_tkt handle it on the non-mod_perl apache. It's extremely light weight and really fast. -- Michael Peters Developer Plus Three, LP

Re: mod_auth_tkt [was: 32 & 64 bit memory differences]

2007-11-06 Thread Michael Peters
Carl Johnstone wrote: > Michael Peters wrote: >> mod_auth_tkt. You can set the authorization ticket with mod_perl and >> then just >> let mod_auth_tkt handle it on the non-mod_perl apache. It's extremely >> light >> weight and really fast. >> > Got

Re: mod_perl2 and Apache::SharedMem

2007-11-07 Thread Michael Peters
modules into the Apache process's memory before it forks. Anything loaded before the fork will be shared (as long as it doesn't change) with Copy-On-Write. -- Michael Peters Developer Plus Three, LP

Re: mod_perl2 and Apache::SharedMem

2007-11-07 Thread Michael Peters
n in your application you can just access the data as @My::Constructs::data and it will be shared by all your child processes (assuming you don't modify it during a request). -- Michael Peters Developer Plus Three, LP

Re: mod_perl2 and Apache::SharedMem

2007-11-08 Thread Michael Peters
. If I use A which uses B which uses C, then they should all be in %INC. There's no trickery involved or anything special about mod_perl. If Perl knows about the module and has loaded it, it's in memory. -- Michael Peters Developer Plus Three, LP

Re: OffTopic (slightly) - Module Feedback Wanted - Authen::Ticketless

2007-11-13 Thread Michael Peters
dow of validity can be controlled > there is no need to store / session stuff on the server > > Any feedback would be greatly appreciated Sounds an awful lot like mod_auth_tkt to me, or am I missing something? -- Michael Peters Developer Plus Three, LP

Re: OffTopic (slightly) - Module Feedback Wanted - Authen::Ticketless

2007-11-13 Thread Michael Peters
s that user's account. The second compromises every users account. -- Michael Peters Developer Plus Three, LP

Parallel processing within mod_perl

2007-11-14 Thread Michael Lackhoff
re doesn't seem to be a way back from the forked children to the parent because the children get their own copy of @result as soon as they write to it (correct?) If my analysis is correct I would like to know: 1. How to properly wait for the children and 2. How to get the results back to the main process Is there some common storage in apache/mod_perl where the children can write and the parent can read the results when the children are finished? Can I use pnotes for this? Thanks, -Michael

Re: Parallel processing within mod_perl

2007-11-15 Thread Michael Lackhoff
first. 3. My original code returns objects Storable has problems to digest. I will have to partly rewrite my code to only return data that is easyly serializable and (re)build the objects later. Thanks for this fine module! - Michael

Re: Parallel processing within mod_perl

2007-11-15 Thread Michael Lackhoff
On 15.11.2007 13:06 Andy Armstrong wrote: > On 15 Nov 2007, at 08:35, Michael Lackhoff wrote: >> Thanks, it really works (more tests to come but it looks good so far)! >> I had only some easy to fix problems: >> 1. in line 434 of Iterator.pm I had to replace 'exit

Re: Cannot get UTF-8 out of mod_perl

2007-11-16 Thread Michael Peters
Michael Lackhoff wrote: > use utf8; > sub streamtest { > my $self = shift; > $self->header_type('none'); # for streaming > # Write the content type to the client... > my $r = $self->param('r'); > $r->content_ty

Re: Cannot get UTF-8 out of mod_perl

2007-11-16 Thread Michael Lackhoff
On 16.11.2007 17:39 E R wrote: > On Nov 16, 2007 10:34 AM, Michael Lackhoff <[EMAIL PROTECTED]> wrote: >> On 16.11.2007 17:08 Michael Peters wrote: > >> > binmode(STDOUT, ':utf8'); >> >> that did the trick, many thanks! >> >> -

Cannot get UTF-8 out of mod_perl

2007-11-16 Thread Michael Lackhoff
ode of a CGI::Application but it shouldn't make a difference because I don't use the CGI::Application magic (sending headers and output of the result) in this runmode. Any ideas what may be going wrong here and why the output is converted back to latin1? -Michael

Re: Cannot get UTF-8 out of mod_perl

2007-11-16 Thread Michael Lackhoff
On 16.11.2007 17:08 Michael Peters wrote: > Is this a mod_perl problem? You didn't mention if it occurred in plain CGI or not. It would be difficult to port the application to plain CGI but you are right, I could have built an independent test script. But because I could swear I did

[mp1] PerlFreshRestart, perl_reload_inc, segmentation fault (patch)

2007-11-20 Thread Michael Rendell
he string (it uses the memory that is in the perl hash); at line 17, the hash entry is deleted (memory free'd), and at line 19, the value is used. Changing the ap_table_setn() to ap_table_set() fixes this particular problem. Hope this is useful, Michael

Re: CGI->params() should be tainted, right?

2007-11-23 Thread Michael Peters
y adding PerlSwitches -T to your httpd.conf -- Michael Peters Developer Plus Three, LP

Re: REST

2007-11-27 Thread Michael Peters
ing CGI::Application::Dispatch (warning, the latter is my module). Or you can do the same thing with Catalyst or REST::Application. -- Michael Peters Developer Plus Three, LP

Re: Using dtrace to determine which modules aren't loaded at startup time

2007-12-11 Thread Michael Peters
past by dumping %INC to a file at startup and then at the end of a request (using a cleanup handler) and then comparing the 2. And I get the benefit of the full path to the file. Is there something else that dtrace provides that my approach doesn't? -- Michael Peters Developer Plus Three, LP

register_cleanup and %ENV

2007-12-20 Thread Michael Schout
runs. I don't really see any way to prevent this from happening from what the docs say. If anyone has any ideas on how to prevent %ENV from getting wiped before my cleanup handler fires, or has any suggestions about how to do a "long running process" under mod_perl 2 while preserving %ENV from the request, I'd love to hear them ;). Thanks Michael Schout

Re: register_cleanup and %ENV

2007-12-20 Thread Michael Schout
reset the environment before the cleanup function is called. I realize I shouldn't rely on %ENV under MP2 for thread safety reasons, but this app is never going to run on anything other than a prefork MPM and I can live with that :). Regards, Michael Schout

<    1   2   3   4   5   6   7   >