Re: CGI and character encoding

2011-02-24 Thread Michael Schout
On 02/24/2011 03:31 PM, André Warnier wrote: > Hi. > > I wonder if someone here can give me a clue as to where to look... If you have a fairly recent CGI.pm, it will decode utf-8 properly for you (even avoiding double-decoding), but there are some caveats. In addition to what others have already

[RELEASE CANDIDATE] Apache-SizeLimit-0.96 RC1

2011-02-24 Thread Fred Moyer
Please download, test, and report back. Changes include a change to the unshared size measurement. See the thread here for details - http://www.gossamer-threads.com/lists/modperl/modperl/102674 http://people.apache.org/~phred/Apache-SizeLimit-0.96-rc1.tar.gz MD5 (Apache-SizeLimit-0.96-rc1.tar.gz

Re: Apache::DBI and DBD::mysql ping not working

2011-02-24 Thread Cosimo Streppone
On Thu, 24 Feb 2011 03:28:19 +1100, Daniel Manley wrote: I've been digging around in my mod_perl-based apps and trying to figure out why setting up the DB connections for pinging is still randomly producing first-thing-in-the-morning "mysql server has gone away" errors. I read up about

Re: CGI and character encoding

2011-02-24 Thread André Warnier
Michael Peters wrote: On 02/24/2011 04:31 PM, André Warnier wrote: I wonder if someone here can give me a clue as to where to look... The CGI.pm documentation talks about the -utf8 import flag which is probably what you're looking for. But it does caution not to use it for anything that nee

RE: CGI and character encoding

2011-02-24 Thread Lloyd Richardson
FWIW, with CGI.pm I always iterate through the params and Encode::decode with the appropriate encoding with an exception for anything binary. (file uploads etc) -Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: Thursday, February 24, 2011 3:31 PM To: mod_perl list S

Re: CGI and character encoding

2011-02-24 Thread Cees Hek
Hi André, There is a perlmonks post from a few years ago that explains one way of automating this with CGI.pm. I've used this for several years now without problems. http://www.perlmonks.org/?node_id=651574 Just remember that decoding params is just one part of dealing with utf-8. You need to

Re: CGI and character encoding

2011-02-24 Thread Michael Peters
On 02/24/2011 04:31 PM, André Warnier wrote: I wonder if someone here can give me a clue as to where to look... The CGI.pm documentation talks about the -utf8 import flag which is probably what you're looking for. But it does caution not to use it for anything that needs to do file uploads.

CGI and character encoding

2011-02-24 Thread André Warnier
Hi. I wonder if someone here can give me a clue as to where to look... I am using Apache/2.2.9 (Debian) DAV/2 SVN/1.5.1 mod_jk/1.2.26 PHP/5.2.6-1+lenny9 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g mod_apreq2-20051231/2.6.0 mod_perl/2.0.4 Perl/v5.10.0 perl -MCGI -e 'print $CGI::VERSION' 3.

Re: [Mason] ANNOUNCE: Mason 2

2011-02-24 Thread André Warnier
Jonathan Swartz wrote: Also, I realize now that "first major version in ten years" was a potentially misleading choice of words. Mason was actively developed until 2006, and has had maintenance releases since then. It's just that 1.00 was released ten years ago. Hi. I do not really know Mas

Re: On memory consumption - request for comments

2011-02-24 Thread Dave Hodgkinson
On 24 Feb 2011, at 15:44, Fred Moyer wrote: > 2011/2/24 Torsten Förtsch : >> On Thursday, February 24, 2011 11:27:42 Dave Hodgkinson wrote: >>> What's the rough ETA before this makes it to CPAN? >> >> end of April, perhaps. > > We can release this earlier than 2.0.6 if there are enough testers

Re: On memory consumption - request for comments

2011-02-24 Thread Fred Moyer
2011/2/24 Torsten Förtsch : > On Thursday, February 24, 2011 11:27:42 Dave Hodgkinson wrote: >> What's the rough ETA before this makes it to CPAN? > > end of April, perhaps. We can release this earlier than 2.0.6 if there are enough testers to give feedback.

Re: Factoring out Apache::SizeLimit::Core?

2011-02-24 Thread Max Kanat-Alexander
On 02/24/2011 05:47 AM, Perrin Harkins wrote: > Oh, maybe Proc::Processtable is what you want. Ah, no, it doesn't work on Win32 as far as I can tell. (Working on Win32 is one of my requirements.) SizeLimit is the only module I've been able to find that can reliably determine process size a

Re: Apache::DBI and DBD::mysql ping not working

2011-02-24 Thread Perrin Harkins
On Wed, Feb 23, 2011 at 4:07 PM, Daniel Manley wrote: > well, I think I figured this one out on my own.  Though I've used Perl for a > number of years, I've never gotten to the XS file coding.  and so after > running this under perl debug, I finally get the hint that maybe the mysql > ping() is do

Re: Factoring out Apache::SizeLimit::Core?

2011-02-24 Thread Perrin Harkins
Hi Max, I see a couple of things out there, like Memory::Usage. They don't look as comprehensive though. It would be fine to take code from SizeLimit if you want to put it into some other module. It should probably be distributed outside of mod_perl to make it useful in the way you're describin

Re: Factoring out Apache::SizeLimit::Core?

2011-02-24 Thread Perrin Harkins
Oh, maybe Proc::Processtable is what you want. - Perrin On Thu, Feb 24, 2011 at 8:46 AM, Perrin Harkins wrote: > Hi Max, > > I see a couple of things out there, like Memory::Usage.  They don't > look as comprehensive though.  It would be fine to take code from > SizeLimit if you want to put it i

Re: [Mason] ANNOUNCE: Mason 2

2011-02-24 Thread Jonathan Swartz
Also, I realize now that "first major version in ten years" was a potentially misleading choice of words. Mason was actively developed until 2006, and has had maintenance releases since then. It's just that 1.00 was released ten years ago. On Feb 24, 2011, at 2:49 AM, xiaolan wrote: > oops is

Re: [Mason] ANNOUNCE: Mason 2

2011-02-24 Thread Jonathan Swartz
Four years ago, Amazon.com was completing a huge conversion to a new site platform including Mason as the primary templating language. While they may be moving away from it in newer development, I'd have to guess a substantial part of the site still uses it. They still mention Mason in many curr

Re: [Mason] ANNOUNCE: Mason 2

2011-02-24 Thread Perrin Harkins
On Thu, Feb 24, 2011 at 5:49 AM, xiaolan wrote: > oops is there any big player using Mason these days? Amazon.com. And this list is probably dated, but I'm sure some of them still exist: http://masonhq.com/?MasonPoweredSites I work on some sites using Mason, including MoveOn.org, ONE.org, and c

Re: [Mason] ANNOUNCE: Mason 2

2011-02-24 Thread Dave Hodgkinson
Lovefilm big enough for you? On 24 Feb 2011, at 10:49, xiaolan wrote: > oops is there any big player using Mason these days? > > On Tue, Feb 22, 2011 at 2:24 AM, Perrin Harkins wrote: >> In case any of you Mason users on the mod_perl list aren't on the Mason >> list... >> >> - Perrin >> >>

Re: On memory consumption - request for comments

2011-02-24 Thread Torsten Förtsch
On Thursday, February 24, 2011 11:27:42 Dave Hodgkinson wrote: > What's the rough ETA before this makes it to CPAN? end of April, perhaps. Torsten Förtsch -- Need professional modperl support? Hire me! (http://foertsch.name) Like fantasy? http://kabatinte.net

Re: [Mason] ANNOUNCE: Mason 2

2011-02-24 Thread xiaolan
oops is there any big player using Mason these days? On Tue, Feb 22, 2011 at 2:24 AM, Perrin Harkins wrote: > In case any of you Mason users on the mod_perl list aren't on the Mason > list... > > - Perrin > > -- Forwarded message -- > From: Jonathan Swartz > Date: Mon, Feb 21, 2

Re: On memory consumption - request for comments

2011-02-24 Thread Dave Hodgkinson
What's the rough ETA before this makes it to CPAN? Working out if I want to add the patch to our build process or not... On 24 Feb 2011, at 08:41, Torsten Förtsch wrote: > On Thursday, February 24, 2011 09:29:23 Max Kanat-Alexander wrote: >> On 02/23/2011 11:40 PM, Torsten Förtsch wrote: >>> On

Re: On memory consumption - request for comments

2011-02-24 Thread Max Kanat-Alexander
On 02/24/2011 12:41 AM, Torsten Förtsch wrote: > Max, could you please check if the following patch does what you want and try > it out in your environment? Hey Torsten. Yes, I tested it and it works. Thank you so much! :-) -Max -- http://www.bugzillasource.com/ Competent, Frien

Factoring out Apache::SizeLimit::Core?

2011-02-24 Thread Max Kanat-Alexander
Hey folks. Would it be possible to factor the memory-sizing code in Apache::SizeLimit::Core into a separate module (or is there already a separate module that does something similar)? I'd love a module that can just reliably tell me how much memory a process is using across all platforms.

Re: On memory consumption - request for comments

2011-02-24 Thread Torsten Förtsch
On Thursday, February 24, 2011 09:29:23 Max Kanat-Alexander wrote: > On 02/23/2011 11:40 PM, Torsten Förtsch wrote: > > On Thursday, February 24, 2011 07:45:29 Max Kanat-Alexander wrote: > >> Hey Fred. So given the discussion that we've had on this, do you > >> think that the next version of S

Re: On memory consumption - request for comments

2011-02-24 Thread Max Kanat-Alexander
On 02/23/2011 11:40 PM, Torsten Förtsch wrote: > On Thursday, February 24, 2011 07:45:29 Max Kanat-Alexander wrote: >> Hey Fred. So given the discussion that we've had on this, do you think >> that the next version of SizeLimit could change its Linux behavior to >> return the more appropriate