Re: unsubscribe

2009-01-21 Thread Raymond Wan
fREW Schmidt wrote: How many times to people have to tell 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. By default, my

Re: Apache2::Reload: Where is it?

2009-01-15 Thread Raymond Wan
Hello, fREW Schmidt wrote: I am trying to use Apache2::Reload for development, and I apparently configured my server incorrectly because I get these errors when I include the PerlMode Apache2::Reload and PerlInitHandler Apache2::Reload directives I get these errors: [Thu Jan 15 17:34:21 2009]

Re: Setting LD_LIBRARY_PATH for a forked process

2009-01-10 Thread Raymond Wan
Hi Torsten and Heiko, Heiko Jansen wrote: Am Freitag, den 09.01.2009, 10:25 +0100 schrieb Torsten Foertsch: On Fri 09 Jan 2009, Raymond Wan wrote: It is possible I'm doing something wrong, but so far, this isn't working. And if I replace the $cmd with a Perl script and try to print out

Setting LD_LIBRARY_PATH for a forked process

2009-01-09 Thread Raymond Wan
Hi all, I'm developing a web server which forks a process and then the child process goes off and does some processing and I do not want to wait for it to return. The child process runs a C++ program (i.e., not a Perl script). Thanks to replies here a while back, I got things working by

Re: Best filesystem type for mod_cache in reverse proxy?

2008-11-26 Thread Raymond Wan
Hi Michael, Michael Peters wrote: Raymond Wan wrote: I had looked at the effect compression has on web pages a while ago. Though not relevant to modperl, there is obviously a cost to compression and since most HTML pages are small, sometimes it is hard to justify. Not to discredit

Re: Best filesystem type for mod_cache in reverse proxy?

2008-11-25 Thread Raymond Wan
Hi Neil Gunton wrote: Well, that seemed to do the trick! So the caveat seems to be: Be careful using both mod_deflate and mod_cache (mod_disk_cache specifically) together if you have a large dynamic website that can generate a large number of distinct pages. Mod_deflate produces a This is

Re: Strange message in web page

2008-07-13 Thread Raymond Wan
Hi Ronald, Ronald J Kimball wrote: Those are the HTTP response headers. They are showing in the browser because your script is returning a malformed response, i.e. printing null device 1 before the headers. The browser is unable to parse the headers and treats them as part of the body.

Re: Problem getting started

2008-07-12 Thread Raymond Wan
Hi John, Unfortunately, I'm still muddy with modperl to help you even though I'm on Debian Etch. I have it working and can tell you what I have installed...but I can't help you with modperl specifics as I'll probably end up teaching the wrong thing. To answer Adam's question: Adam

Re: Problem getting started

2008-07-12 Thread Raymond Wan
Hi John, John M. Dlugosz wrote: OK, when I defined $r as you did, it worked. For documentation, I was looking at here: http://search.cpan.org/~joesuf/libapreq2-2.08/glue/perl/lib/Apache2/Request.pm I see you are just printing to standard output, like a CGI script. In the book, it used

Strange message in web page

2008-07-11 Thread Raymond Wan
Hi all, I'm receiving a strange message which I think is caused by something I'm doing with modperl and/or Mason, but I'm not sure what to look for. Basically, I have a page which refreshes every 3 seconds waiting for some spawned child process to complete. When it completes, it stops

Re: Strange message in web page

2008-07-11 Thread Raymond Wan
Hi John, I see...I didn't know it was possible to print anything before headers... I am not printing that statement, as far as I know, but maybe a library I am using is. I will look into it... So, the part after HTTP/1.1 ..., why is that shown? Is that a web server setting? What is odd

Timing a spawned process

2008-05-06 Thread Raymond Wan
Hi all, I'm having a problem with spawning a long-running process and timing it (i.e., with /usr/bin/time, for example). A while back, I posted a problem with spawning a process which I did not want to know if/when it comes back. Based on many helpful replies, I am now using: -

Forking a process [in Practical mod_perl book]

2008-04-17 Thread Raymond Wan
Hi all, I'm trying to fork a long-running process which I do not want to wait for. I was getting a lot of ssh defunct processes, so I did some googling and found this from the aforementioned O'reilly book: http://www.perl.com/lpt/a/701 And sure enough, there's a section on Avoiding

Re: Forking a process [in Practical mod_perl book]

2008-04-17 Thread Raymond Wan
Hi all, Raymond Wan wrote: - my $r = shift; $r-send_http_header('text/plain'); - Sorry for the trouble but while googling for the problem, I came by the reason: send the output of system() to the client: http://www.mail-archive.com/[EMAIL PROTECTED]/msg36062.html I also

Re: return DECLINED or OK?

2008-02-29 Thread Raymond Wan
Hi, J. Peng wrote: On Fri, Feb 29, 2008 at 7:03 PM, Torsten Foertsch [EMAIL PROTECTED] wrote: Example continued: The entry /var/www/a/b exists on disk either as file or as directory but /var/www/a/b/c does not. Then after MapToStorage $r-filename is /var/www/a/b and $r-path_info is

Re: return DECLINED or OK?

2008-02-29 Thread Raymond Wan
J. Peng wrote: Do you mean mod_rewrite for the trick? yes with mod_rewrite people can rewrite: http://example.com/archive/news/2008/02/29/index.html to something like: http://example.com/archive/news?object=/2008/02/29/index.html so here /archive/news is filename and /2008/02/29/index.html is

Re: MapToStorage and the use of path_info (was Re: return DECLINED...)

2008-02-29 Thread Raymond Wan
Hi Frank, Frank Maas wrote: I am using a mechanism where I use the path_info to carry information about the content to be served. However, as far as I know the only way to do this is to create a handler that is defined for the correct location. In the described situation, something like,

Re: return DECLINED or OK? [off-topic]

2008-02-29 Thread Raymond Wan
Colin Wetherbee wrote: Ronald Dai. wrote: Actually RTFM would not be a problem for people from academic background (meaning MS or PHD educated) at all since they have to do it all the timebut for people with more team work background these days, it might not be politically very correct...

Re: MapToStorage and the use of path_info (was Re: return DECLINED...)

2008-02-29 Thread Raymond Wan
Joy, J. Peng wrote: I'm still confused why we need a path_info for the additional info to CGI/modperl scripts? Generally under CGI we say x.cgi?key=value to pass arguments, under modperl handler we say /myHandler/?key=value to do it, or using POST method. Under what case we use path_info?

Re: Amazon

2008-02-23 Thread Raymond Wan
Hi, One of the first things I would look is their job postings...if they are switching, that would be one sign. Indeed, I saw a few software development jobs on amazon asking for Java and C/C++ experience. Only found one asking for any two of Java, C/C++, and Perl. Of course, this is

Re: handler using a module

2008-02-15 Thread Raymond Wan
Hi Malcolm, Malcolm wrote: Mason uses it's own namespace for the code it generates from your templates. So unless you have a use lib...; use myOwnFunctions; in your template, it won't have your functions in scope. I see. So if myOwnFunctions is used by many of my components, there is

handler using a module

2008-02-14 Thread Raymond Wan
Hi all, I have written a handler to take care of requests and there is something unexpected [to me, anyway :-) ] happening which may be my fault, but I was wondering if someone can explain it to me. Perhaps there is a problem with my programming style. The code is long, so I'll briefly

Re: handler using a module

2008-02-14 Thread Raymond Wan
Hi Marcel, Marcel Greter wrote: I can only tell why myHandler::myFunction () is working. I think you export the myFunction in Module myOwnFunctions. I assume you didn't post that part of the code? Ah, yes -- I didn't think that was doing it but yes, I also have: require Exporter; our @ISA

Re: Unsubscribe request

2008-01-26 Thread Raymond Wan
Hi Vijayram, Vijayram Arya wrote: I would like to be unsubscribed from this mailing list, I kindly request the moderator to unsubscribe me.. Take a look at this web site and do what it says to unsubscribe yourself:

Cookie questions

2007-12-24 Thread Raymond Wan
Hi all, Sorry, but I'm not entirely sure if this is relevant to modperl... I was wondering if it was possible to delete cookies. I read that using Javascript, cookies can be deleted by setting it to a time in the past. I'm not sure how to do it in Mason, though. I think I know how to get

Re: Cookie questions

2007-12-24 Thread Raymond Wan
Hi John, John ORourke wrote: Cookie names are unique to a given domain (the domain which can optionally be explicitly set using $cookie-domain ) - if you write another cookie with the same name and domain and path it'll overwrite the previous one. Ah, thanks for this! I guess I had a bug

Re: Cookie questions

2007-12-24 Thread Raymond Wan
Hi bop, Thanks for the e-mail. I ended up doing a mix of both your suggestion and John's and it seems to work ok. Both of your suggestions were great; thank you! Ray Boysenberry Payne wrote: Oops, I forgot the some code: # to set $cookie = { -name = foo, -value = bar, -path = / }; my

Re: Memory usage

2007-09-12 Thread Raymond Wan
Michael Peters wrote: Any links or discussion would be great. You really need to benchmark it for yourself using the version you are targetting and the OS. You can do it outside of apache and just have a simple Perl script that does nothing but sleep after it's created the large data

Re: Can't install mod_perl

2007-07-15 Thread Raymond Wan
Hi Octavian, Octavian Rasnita wrote: Please tell me, have you succeeded to install mod_perl under a X86_64 machine? If yes, please advice what should I do. Yes, I have, and haven't noticed any problems. I installed Debian stable (AMD64 version): http://www.debian.org/ports/amd64/ . The

Re: First time being here, Need Big help here!

2007-07-09 Thread Raymond Wan
Xin, I have run Apache with Debian and I do recommend (if it's not too late) to uninstall Apache 1.3 and modperl 1 before installing Apache 2.x and modperl 2. They seem to install in different directories, but if you're not too attached to the old version, it'll save you headaches later

Re: modperl2 + apache2.2 unable to restart

2007-06-15 Thread Raymond Wan
Hi, Foo JH wrote: What's the actual error from the error_log? Below shows apache shutting and and restarting...and failed. [Thu Jun 14 17:30:19 2007] [notice] Parent: Received restart signal -- Restarting the server. [Thu Jun 14 17:30:19 2007] [notice] Child 5780: Exit event signaled.

Re: End of file found error

2007-06-11 Thread Raymond Wan
Hi Joe, Joe Schaefer wrote: Anything here looks suspicious? Yes. Your code behaves as if CGI.pm was being used by Mason instead of apreq. When that happens, CGI.pm steals the post data, and apreq sees nothing but an End of File situation. If I were you, I'd double-check how you

Re: End of file found error for file uploading

2007-06-10 Thread Raymond Wan
Hi Joe, Joe Schaefer wrote: with a form using the post method and an enctype of multipart/form-data. In my browser, I am getting a single message: End of file found. That is, the single line. What's happening is that $req-upload calls $req-body, and that is die'ing with the End of

Re: End of file found error

2007-06-10 Thread Raymond Wan
Hi Joe, Joe Schaefer wrote: running on a test machine (i.e., the web server isn't live on the Internet) so perhaps I didn't set it up correctly? I really don't know, it could be the parser is just misbehaving on your particular html form. What you can do to further investigate is