Re: Multiple LWP::UserAgents at the same time

2012-04-03 Thread Mike Schilli
n this bug, feel free to chime in: https://rt.cpan.org/Ticket/Display.html?id=76125 -- -- Mike Mike Schilli m...@perlmeister.com Fetching the $url should be a non-blocking action that you give it a postback (or configured session/event to post) to notify you when a response is ready for read

Re: POE/Gtk2/POE::Loop::Glib don't bring up the GUI?

2010-09-26 Thread Mike Schilli
On Sun, 26 Sep 2010, Mike Schilli wrote: Looks like POE stopped working with Gtk2 GUIs with Gtk2-1.222, POE-1.293, and POE-Loop-Glib-0.038. Please ignore, saving the widgets in the POE heap fixed it. -- Mike Mike Schilli m...@perlmeister.com

POE/Gtk2/POE::Loop::Glib don't bring up the GUI?

2010-09-26 Thread Mike Schilli
my $window = Gtk2::Window->new ('toplevel'); my $button = Gtk2::Button->new ('Quit'); $button->signal_connect (clicked => sub { Gtk2->main_quit }); $window->add ($button); $window->show_all; Gtk2->main; Anything I missed in the first snippet? Or are there any known issues with Gtk2-1.222, POE-1.293, and POE-Loop-Glib-0.038? Any help appreciated. -- Mike Mike Schilli m...@perlmeister.com

Re: POE::Wheel::Run and sig_child

2010-04-22 Thread Mike Schilli
Couple of more issues resolved, this time regarding daemonization of POE processes, see below. Thanks! -- Mike Mike Schilli m...@perlmeister.com -- Forwarded message -- From: "p...@0ne.us" To: Mike Schilli Subject: Re: POE::Wheel::Run and sig_child Date: Thu, 22 A

POE::Wheel::Run and sig_child

2010-04-20 Thread Mike Schilli
=> "down" ); warn "starting ..."; }, down => sub { warn "killing process"; $_[HEAP]->{wheel}->kill(); }, sig_child => sub { warn("waitpid for " . [ARG1]); waitpid $_[ARG1], 0; }, }); $poe_kernel->run(); Looks like the 'sig_child' handler is never run ... suggestions? -- Mike Mike Schilli m...@perlmeister.com

Re: Callback to delay a Server::TCP component?

2010-04-20 Thread Mike Schilli
rd if server isn't up yet return if ! $heap->{client_heap}->{connected}; # forward to server $heap->{client_heap}-> {server}->put( $request ); } Thanks! -- Mike Mike Schilli m...@perlmeister.com

Re: Callback to delay a Server::TCP component?

2010-04-18 Thread Mike Schilli
, I'm not ready for this callback yet, come back after two seconds" unless the component implements this explicitly. -- Mike Mike Schilli m...@perlmeister.com http://search.cpan.org/~rcaputo/POE-1.289/lib/POE/Component/Server/TCP.pm#Concurrency You must have missed that part or t

Callback to delay a Server::TCP component?

2010-04-18 Thread Mike Schilli
like that it's a global variable that allows only single use of this component. Is there a better way? -- Mike Mike Schilli m...@perlmeister.com

Re: POE::Loop::Glib/Gtk2 trips over Wheel output

2010-03-09 Thread Mike Schilli
? Anything I can do from 'userland'? -- Mike Mike Schilli m...@perlmeister.com -- Rocco Caputo - rcap...@pobox.com On Mar 9, 2010, at 03:10, p...@perlmeister.com wrote: I'm trying to combine POE with a Gtk2 event loop, but it seems that this trips up POE, which then stops processing a

Re: There needs to be a book!

2007-09-12 Thread Mike Schilli
isations. Believe it or not, they're in there for the money. They make it by the one or two out of 100 books that are bestsellers and sell 500,000 copies over several years. -- Mike Mike Schilli [EMAIL PROTECTED]

Re: There needs to be a book!

2007-09-12 Thread Mike Schilli
wikis, is that a person with a vision takes the reader by the hand and leads them onto path where understanding basic concepts just falls in place, anticipating questions as they come. This requires talent. Very few people can do it properly. -- Mike Mike Schilli [EMAIL PROTECTED]

Re: POE::Wheel::Run and subroutines

2006-06-05 Thread Mike Schilli
On Tue, 6 Jun 2006, Justin Hawkins wrote: > Ha! > I spent several hours last night puzzling over exactly this Thanks, I appreciate your help :). So obvious in hindsight, but really hard to figure out without helpful error messages. -- Mike Mike Schilli [EMAIL PROTECTED]

POE::Wheel::Run and subroutines

2006-06-05 Thread Mike Schilli
{ my ($heap, $input, $wheel_id) = @_[HEAP, ARG0, ARG1]; DEBUG "Child process in wheel $wheel_id wrote to STDOUT: $input"; } } ); -- Mike Mike Schilli [EMAIL PROTECTED]

Re: run_one_timeslice() changed between POE-0.3007 and POE-0.31

2005-12-26 Thread Mike Schilli
() function. The plugin's POE sessions are now dancing happily around gaim's Glib event loop. Thanks so much! -- Mike Mike Schilli [EMAIL PROTECTED]

run_one_timeslice() changed between POE-0.3007 and POE-0.31

2005-12-24 Thread Mike Schilli
k or have a parameter that would enable it. Thanks for any help. -- Mike P.S.: The gaim plugin is available at ftp://www.linux-magazin.de/pub/listings/magazin/2005/10/Perl/pmwatcher.pl and the corresponding article (sorry, only in German) is here: http://www.linux-magazin.de/Artikel/ausgab