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
trying to
achieve.
--
Andy Armstrong, Hexten
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
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
that high.
It would be interesting to see how FCGI compares to those numbers.
--
Andy Armstrong, Hexten
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
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
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
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
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
-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
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
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
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
welcome. Let me know if you hit any other problems.
--
Andy Armstrong, Hexten
. New release on its way to CPAN.
--
Andy Armstrong, Hexten
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
= '0'
So you're trying to load an Apache 2.0 module into a 2.2 server.
--
Andy Armstrong, Hexten
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
.
(and no, I don't have an answer I'm afraid :)
--
Andy Armstrong, hexten.net
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
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
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
the references to it go away.
--
Andy Armstrong, hexten.net
is not freed until you explicitly break the
reference cycle.
--
Andy Armstrong, hexten.net
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
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
memory
management.
--
Andy Armstrong, hexten.net
for 1 .. 10;
prints
x
x
x
x
x
x
x
x
x
x
--
Andy Armstrong, hexten.net
; },
);
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
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
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
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
}) - length
($path_info))
: $self-{URI};
--
Andy Armstrong, hexten.net
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
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
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
.
--
Andy Armstrong, hexten.net
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-
(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
to - you
don't know which pid will handle the request.
--
Andy Armstrong, hexten.net
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
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
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
. 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
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
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
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
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
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
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
51 matches
Mail list logo