Re: AJAX pseudo-push

2009-11-17 Thread Andy Armstrong
On 17 Nov 2009, at 16:49, Tom Schindl wrote: What you describe here is called Continuations in Java world :-) Continuations in the Java world are the same as continuations everywhere - but not quite what the OP described :) http://en.wikipedia.org/wiki/Comet_(programming) -- Andy Armstrong

Re: quick pure perl question

2009-06-30 Thread Andy Armstrong
trying to achieve. -- Andy Armstrong, Hexten

Re: quick pure perl question

2009-06-30 Thread Andy Armstrong
into a string you've turned it into the latter. Perl's warning that you're pushing character data into an octet hole. [1] of course it's /made/ of bytes but that's not how Perl sees it. -- Andy Armstrong, Hexten

Re: how did I get here?

2009-04-08 Thread Andy Armstrong
also take a look at Devel::DTrace[1] which uses a custom runops loop to instrument sub entry/exit. With minor hacking that could capture a raw trace. [1] http://search.cpan.org/dist/Devel-DTrace -- Andy Armstrong, Hexten

Re: some flawed benchmarks

2008-07-10 Thread Andy Armstrong
that high. It would be interesting to see how FCGI compares to those numbers. -- Andy Armstrong, Hexten

Re: How to debug bizarre memory corruption in mod_perl

2008-07-10 Thread Andy Armstrong
for that reason. While undefined behaviour can nominally include flying butt monkeys I don't think it's desirable for it to cause rampant memory corruption. -- Andy Armstrong, Hexten

Re: How to debug bizarre memory corruption in mod_perl

2008-07-10 Thread Andy Armstrong
or warn, but not dump core :-) Indeed. I've taken it to perl5-porters[1]. I'm not sure if it's a known problem with 5.10.0 but I certainly hadn't heard of it. [1] http://markmail.org/message/yfxkc6sbw2ydvcjz -- Andy Armstrong, Hexten

Re: How to debug bizarre memory corruption in mod_perl

2008-07-09 Thread Andy Armstrong
is checking 2 grep is checking 3 grep is checking 4 grep is checking 5 2, 2 I'm not suggesting that necessarily applies in this case - just a general observation. -- Andy Armstrong, Hexten

Re: Amazon

2008-02-23 Thread Andy Armstrong
On 23 Feb 2008, at 07:25, Jie Gao wrote: Choosing java for better performance would certainly be a joke. Java isn't slow you know :) Memory usage, well, that depends. But it's not slow. -- Andy Armstrong, Hexten

Re: Amazon

2008-02-23 Thread Andy Armstrong
On 23 Feb 2008, at 11:29, [EMAIL PROTECTED] wrote: I think what Jie meant was choosing java *just* for performance would certainly be a joke Ah. Sorry. -- Andy Armstrong, Hexten

DTrace in Perl: What probes should we have?

2008-01-11 Thread Andy Armstrong
-Uversiononly \ -Dusedtrace where $install is your preferred install base. Right now ./Configure displays a harmless error about '!' being an unknown command just after the questions. There's a patch in the pipeline to fix that. -- Andy Armstrong, Hexten

Re: [dtrace-discuss] DTrace in Perl: What probes should we have?

2008-01-11 Thread Andy Armstrong
it enters a Python function - so that a walk up the C stack visits all entries in the Python stack. Did I get that wrong? Perl doesn't recurse in C when it calls a Perl subroutine so walking up the stack won't yield a Perl call chain. -- Andy Armstrong, Hexten

Re: [RELEASE CANDIDATE] Apache-Test-1.30 RC1

2007-11-17 Thread Andy Armstrong
SUEXEC_BIN=/usr/local/apache2/bin/suexec -D DEFAULT_PIDLOG=logs/httpd.pid -D DEFAULT_SCOREBOARD=logs/apache_runtime_status -D DEFAULT_LOCKFILE=logs/accept.lock -D DEFAULT_ERRORLOG=logs/error_log -D AP_TYPES_CONFIG_FILE=conf/mime.types -D SERVER_CONFIG_FILE=conf/httpd.conf Thanks :) -- Andy Armstrong

Re: [RELEASE CANDIDATE] Apache-Test-1.30 RC1

2007-11-17 Thread Andy Armstrong
On 18 Nov 2007, at 00:34, Geoffrey Young wrote: I'm pretty sure that the only place we use straps is for the php interface. but yeah, I know about the migration (and even mentioned our needs on perl-qa ;) and I plan on migrating soonish Ah - that rings a bell :) -- Andy Armstrong, Hexten

Re: Parallel processing within mod_perl

2007-11-15 Thread Andy Armstrong
welcome. Let me know if you hit any other problems. -- Andy Armstrong, Hexten

Re: Parallel processing within mod_perl

2007-11-15 Thread Andy Armstrong
. New release on its way to CPAN. -- Andy Armstrong, Hexten

Re: Parallel processing within mod_perl

2007-11-14 Thread Andy Armstrong
it useful. And if you give it a go and hit problems let me know - if nothing else I should be able to improve the doc / examples as a result :) [1] http://search.cpan.org/~andya/Parallel-Iterator/ -- Andy Armstrong, Hexten

Re: mod_perl.so is garbled - expected signature 41503232 but saw 41503230

2007-10-31 Thread Andy Armstrong
= '0' So you're trying to load an Apache 2.0 module into a 2.2 server. -- Andy Armstrong, Hexten

Re: mod_perl.so is garbled - expected signature 41503232 but saw 41503230

2007-10-31 Thread Andy Armstrong
On 31 Oct 2007, at 12:05, Noah wrote: thanks Andy, how can I choose to install an AP2.2 module from /usr/ports I dont know how to make that change? I've no idea I'm afraid - I was just decoding hexadecimal for you :) -- Andy Armstrong, Hexten

Re: Q: Build.PL/Makefile.PL, and CPAN testers...

2007-09-26 Thread Andy Armstrong
. (and no, I don't have an answer I'm afraid :) -- Andy Armstrong, hexten.net

Re: Replacement for CGI.pm escape and unescape

2007-06-07 Thread Andy Armstrong
On 7 Jun 2007, at 16:05, cfaust-dougot wrote: Yes, I'm trying to HTML escape/unescape, although looking at URI::Escape it seems like it might work. I'll have to give it a try. There's a lightweight HTML escaper in HTML::Tiny. No unescaper though. -- Andy Armstrong, hexten.net

Re: few newbie quesitons..

2007-05-11 Thread Andy Armstrong
be owned by any of the things that refer to it. It remains allocated until nothing refers to it and then is freed. -- Andy Armstrong, hexten.net

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

2007-05-11 Thread Andy Armstrong
at once, do the processing, serve it to the client, and then, undef the buffer. Far easier than doing chunk by chunk. Same thing: you'd presumably wrap that data in an object. -- Andy Armstrong, hexten.net

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

2007-05-11 Thread Andy Armstrong
the references to it go away. -- Andy Armstrong, hexten.net

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

2007-05-10 Thread Andy Armstrong
is not freed until you explicitly break the reference cycle. -- Andy Armstrong, hexten.net

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

2007-05-10 Thread Andy Armstrong
On 10 May 2007, at 23:00, Tom Schindl wrote: Right: http://www.nntp.perl.org/group/perl.perl5.porters/2006/03/ msg111095.html Yeah, that's lexicals - not things referred to by lexicals. The example was a reference to an array. -- Andy Armstrong, hexten.net

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

2007-05-10 Thread Andy Armstrong
used directly by a lexical - in case it needs it again. But it doesn't hold on to things referred to by the lexical. -- Andy Armstrong, hexten.net

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

2007-05-10 Thread Andy Armstrong
memory management. -- Andy Armstrong, hexten.net

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

2007-05-10 Thread Andy Armstrong
for 1 .. 10; prints x x x x x x x x x x -- Andy Armstrong, hexten.net

Re: regex quickie

2007-04-26 Thread Andy Armstrong
; }, ); my $match = join('|', map {quotemeta} keys %despatch); my $re = qr/($match)/i; # or whatever print Using: $re\n; for my $t ('I like yahoo', 'and also google') { $despatch{lc($1)}-() if $t =~ $re; } -- Andy Armstrong, hexten.net

Re: regex quickie

2007-04-26 Thread Andy Armstrong
On 26 Apr 2007, at 14:15, Andy Armstrong wrote: my %despatch = ( 'yahoo' = sub { print Yahoo!\n; }, 'google' = sub { print Google!\n; }, ); my $match = join('|', map {quotemeta} keys %despatch); my $re = qr/($match)/i; # or whatever print Using: $re

Re: regex quickie

2007-04-26 Thread Andy Armstrong
in the despatch table. It'd be better to parse the query parameters into a hash and pass that to the handlers - it's the per site handlers that should know how to extract the query. IMO of course :) -- Andy Armstrong, hexten.net

Re: regex quickie

2007-04-26 Thread Andy Armstrong
On 26 Apr 2007, at 20:04, John ORourke wrote: Come on people, someone's gotta do this for a laugh... {do_.lc(($r-uri()=~/(\w+)\.com\//i))}(); sub AUTOLOAD { return undef; } sub do_google { } sub do_yahoo { } Nice :) -- Andy Armstrong, hexten.net

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

2007-03-22 Thread Andy Armstrong
}) - length ($path_info)) : $self-{URI}; -- Andy Armstrong, hexten.net

Re: Anyone using CGI::Simple?

2007-01-16 Thread Andy Armstrong
On 16 Jan 2007, at 16:09, JupiterHost.Net wrote: Randal L. Schwartz wrote: Andy == Andy Armstrong [EMAIL PROTECTED] writes: Has anyone heard from James Freeman, the maintainer of CGI::Simple (http://search.cpan.org/dist/Cgi-Simple/)? It's not been updated in a couple of years

Re: Anyone using CGI::Simple?

2007-01-16 Thread Andy Armstrong
On 16 Jan 2007, at 16:25, Jiří Pavlovský wrote: I use it too. In CGI::Application run under Registry. I had to make few changes for it to run under mp2 IIRC. Do you still have those changes? I'd be interested to see a diff against the released version if possible. -- Andy Armstrong

Re: Anyone using CGI::Simple?

2007-01-16 Thread Andy Armstrong
On 16 Jan 2007, at 16:45, Jiří Pavlovský wrote: Do you still have those changes? I'd be interested to see a diff against the released version if possible. Those were just Apache - Apache2 renaming issues. OK, I think I got all those, thanks. -- Andy Armstrong, hexten.net

Re: Anyone using CGI::Simple?

2007-01-10 Thread Andy Armstrong
. -- Andy Armstrong, hexten.net

Anyone using CGI::Simple?

2007-01-10 Thread Andy Armstrong
to check that CGI::Simple works in place of CGI.pm as it should. Thanks all. - -- Andy Armstrong, hexten.net -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (Darwin) iD8DBQFFpPRDwoknRJZQnCERAl9CAJ49PYh3BxWaWzYOpzwcKEY8gkz4jQCfVGoy rc69ELKqznH8C7qrAUArTwk= =wzKo -END PGP SIGNATURE-

Re: Anyone using CGI::Simple?

2007-01-10 Thread Andy Armstrong
(and corresponding t/response/TestModules/cgi*.pm) to use CGI::Simple, rather than CGI, to test the compatibility. I had a quick look at this, and there seems to be still problems in this area. Ah - I didn't check that MP tested CGI.pm. Thanks for the lead. I'll investigate further. -- Andy Armstrong

Re: Apache::DB - What am I doing wrong?

2006-03-06 Thread Andy Armstrong
to - you don't know which pid will handle the request. -- Andy Armstrong, hexten.net

Re: Perl Script using MapToStorageHandler

2006-03-01 Thread Andy Armstrong
these changes after the request is completed... How would i remove theses changes and what handler would you suggest for me to tie in to? You're doing it wrong I'm afraid. Why do you want to change the server config during a request? -- Andy Armstrong, hexten.net

Re: Perl Script using MapToStorageHandler

2006-03-01 Thread Andy Armstrong
On 1 Mar 2006, at 22:13, Philippe M. Chiasson wrote: And you get pre-request behaviour just like you wanted. And it's tons faster too ;-) Yup, what he said. -- Andy Armstrong, hexten.net

Re: mutex

2004-07-11 Thread Andy Armstrong
normal operations [Sat Jul 10 13:46:54 2004] [notice] Accept mutex: sysvsem (Default: sysvsem) What's that mutex thingy? Is it OK here? It's fine. -- Andy Armstrong -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http

Re: Hmmmm....

2004-07-11 Thread Andy Armstrong
. You can't have a scalar called just '$'. $f-send_http_header('text/plain'); $r-print(Mod_Perl Rules Bigtime!\n); return OK; } 1; -- Andy Armstrong -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http

Re: Time and day based authorization

2004-07-11 Thread Andy Armstrong
an authorization strategy in mod perl? I'm not looking for complete code, just general suggestions. Controlling the lifecycle of the documents doesn't have anything to do with authorization surely? -- Andy Armstrong -- Report problems: http://perl.apache.org/bugs/ Mail list info: http

Re: My::Utils

2004-07-10 Thread Andy Armstrong
David Arnold wrote: All, I've skipped to Recipe 13.3 on page 418 of the Cookbook. Where can I find My::Utils and what does it do? Is it a previous package defined in the Cookbook? Or what? Maybe you shouldn't have skipped :) -- Andy Armstrong -- Report problems: http://perl.apache.org/bugs/ Mail

Re: My::Utils

2004-07-10 Thread Andy Armstrong
is but I assume it's a placeholder in the example for 'some module you wrote yourself'. -- Andy Armstrong -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Re: Error upon install

2004-06-29 Thread Andy Armstrong
then? -- Andy Armstrong -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Re: Error upon install

2004-06-29 Thread Andy Armstrong
the mod_perl-1.29 sources from CPAN. He was :) We sorted it out off-list. -- Andy Armstrong -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Re: mod_perl presence at OSCON (and other CONs) is at danger

2004-06-09 Thread Andy Armstrong
from there. -- Andy Armstrong -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html