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 Armstr
m
of wide characters. By reading utf8 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
27;re trying to
achieve.
--
Andy Armstrong, Hexten
rself you could 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
It
should maybe DWIM or die 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
have been that high.
It would be interesting to see how FCGI compares to those numbers.
--
Andy Armstrong, Hexten
to p5p 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
is checking 2
grep is checking 1
grep 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 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
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
cursing when 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
pm \
-Duseithreads -Duseshrplib -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
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 :)
--
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
Thanks :)
--
Andy Armstrong, Hexten
. New release on its way to CPAN.
--
Andy Armstrong, Hexten
is fine module!
You're welcome. Let me know if you hit any other problems.
--
Andy Armstrong, Hexten
ou find 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
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
50 = 'P'
32 = '2'
30 = '0'
So you're trying to load an Apache 2.0 module into a 2.2 server.
--
Andy Armstrong, Hexten
pecific problem.
(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
y will be freed
when all the references to it go away.
--
Andy Armstrong, hexten.net
would prefer to retrieve the file all 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
and can't reasonably 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
x27;;
return $x;
}
print frog(), "\n" for 1 .. 10;
prints
x
x
x
x
x
x
x
x
x
x
--
Andy Armstrong, hexten.net
7;t start littering your code with unnecessary explicit memory
management.
--
Andy Armstrong, hexten.net
emory 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
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
le
$x = \$x;
will mean that $x is not freed until you explicitly break the
reference cycle.
--
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
ve to maintain the site names in two places - once in the RE
and once 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 14:15, Andy Armstrong wrote:
my %despatch = (
'yahoo' => sub { print "Yahoo!\n"; },
'google' => sub { print "Google!\n"; },
);
my $match = join('|', map {quotemeta} keys %despatch);
o!\n"; },
'google' => sub { print "Google!\n"; },
);
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
? substr($self->{URI}, 0, length($self->{URI}) - length
($path_info))
: $self->{URI};
--
Andy Armstrong, hexten.net
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
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 Arms
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
(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.
--
t I need to beef the tests up first.
--
Andy Armstrong, hexten.net
On 10 Jan 2007, at 17:13, Michael Peters wrote:
Andy Armstrong wrote:
Part of my reason for posting is to try and work out whether anyone's
actually using it.
I'd say the user's of it on this list would be pretty small. But
I've heard it's
popular for normal CGI fo
eople like it for
whatever reason.
Part of my reason for posting is to try and work out whether anyone's
actually using it.
--
Andy Armstrong, hexten.net
sonably simple MP2 applications
that currently use CGI.pm that I could install here 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)
iD8DBQFFpPRDwoknRJZQnCERAl9C
ch to - you
don't know which pid will handle the 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
move 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
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
ft;
That's the error. 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:
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 etiqu
at My::Utils 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
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://
Geoffrey Young wrote:
just as a gentle reminder, keeping everything on-list means that other new
users can find the problem answered in the archives, which saves everybody
some cycles.
I didn't take it off-list...
--
Andy Armstrong
--
Report problems: http://perl.apache.org/bugs/
Mail list
b 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
?
--
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
he reasons for the popularity of Perl as a command line
tool is the low cost of entry: within a few minutes of seeing your first
Perl script you can knock up a useful five liner of your own. For the
web PHP and ASP occupy that space. They're probably already installed so
you can dip your toe
Bob Smith wrote:
hello
My name is Greger, I'm new here...
could some person please gimme a hello world application written with
mod_perl
Google broken? :)
http://www.google.com/search?q=mod_perl+Hello+World
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/mai
55 matches
Mail list logo