Re: Porting POE to Moose

2009-04-28 Thread Robert Landrum
I, for one, found it humorous. But then, I instantly assume everyone is trolling. Too much fark, I suppose. I bet his approach got a lot more attention than a simple "Hey... check out Moose. It's like POE, only cleaner." Warranted or not, it seems to have been effective. Rob Rocco Cap

Re: _ping_more / dropping pings

2009-02-12 Thread Robert Landrum
skend...@fhcrc.org wrote: or perhaps somewhere in between: perhaps there is an OS buffer which holds the ICMP Echo Reply frames and unless POE pulls them out of the buffer fast enough, the buffer will overflow and POE won't see those responses This is almost certainly the issue. i notice

Re: POE and perl fork interaction

2009-01-14 Thread Robert Landrum
It's not clear what you're trying to do, but I suspect that you're doing it wrong. :( Is there a reason why you don't use POE::Wheel::Run to tail the files? There's also: http://search.cpan.org/~rcaputo/POE-1.003/lib/POE/Wheel/FollowTail.pm I suspect that your forked tail process may have ev

Re: calling $poe_kernel more than once

2008-03-17 Thread Robert Landrum
Matt Cashner wrote: Second, in your magic POE wrapping api, you can use POE::API::Peek to determine the state of the kernel. I've got a is_running() method in there that you can either use via my module or rip out and use with credit. Yay for the bsd license :) Using the module would help me kn

PoCo::IKC::Server question

2008-01-09 Thread Robert Landrum
I've got a piece of code taken from the cookbook... POE::Component::IKC::Server->spawn( port => $listen_port, name => 'WorkerBee' ); I need to die if it fails to set up a server connection because the address is in use. The only way I can see to do this is by subclassing and rew

Comprehensive POE

2007-09-13 Thread Robert Hicks
http://conferences.oreillynet.com/cs/os2004/view/e_sess/5179 Rocco, Did you give that and is it available? Robert

Re: There needs to be a book!

2007-09-11 Thread Robert Hicks
POE would be nice. Robert

Re: There needs to be a book!

2007-09-02 Thread Robert Hicks
(Randal L. Schwartz) wrote: "Robert" == Robert Hicks <[EMAIL PROTECTED]> writes: Robert> No really... : ) OK, convince someone here to work at minimum wage for a year instead of (or in addition to) whatever job they have. :) Book writing is *not* profitable. Milking t

There needs to be a book!

2007-08-31 Thread Robert Hicks
No really... : ) Robert

Re: POE suitability

2007-07-11 Thread Robert
hat I could setup events to monitor the "good" drop directory and then process those in "parallel" (all theory of course). It may be I can just use POE to handle the whole process more "nicely". Does POE have any issues running for a long length of time? We basically have a daemon running that waits for the emails to come it. Robert

Re: POE suitability

2007-07-11 Thread Robert Hicks
David Davis wrote: POE is a cooperative event system, so non of your computations would be running at the same time. BUT, you could use POE::Wheel::Run to run them in a pool of forked children and get the benefit you're looking for. That is probably what I was asking for. : ) Robert

POE suitability

2007-07-11 Thread Robert Hicks
the performance by re-implementing it in POE so I could process several of those as "events". Would POE be suitable for something like that? Robert

Re: POE & Tk excessive CPU usage?

2007-05-02 Thread Robert Landrum
Craig Votava wrote: When I use POE and Tk together, I see the process using up a constant 50% of my CPU, even when there's nothing going on. Am I doing something wrong, or is there a good explanation for this? Is there any way to reduce this? Attached is a small test program. truss (sun) or

Re: SimpleDBI -- Undefined subroutine &POE::Component::SimpleDBI::SubProcess::main

2006-12-07 Thread Robert Landrum
Jake Peavy wrote: Undefined subroutine &POE::Component::SimpleDBI::SubProcess::main called at C:/Perl/site/lib/POE/Component/SimpleDBI.pm line 810. POE::Component::SimpleDBI::SubProcess isn't loaded by SimpleDBI. It does two different things. For win32, it calls SubProcess::main(), and for

Re: Serial communications

2006-12-06 Thread Robert Landrum
Matt Sickler wrote: isnt serial comms done with readwrite on /dev/serialdevice or something? although that is a good idea to write a Driver for serial comms. Not exactly. A serial device is actually a little bit of hardware (the serial port, if you will) that you have to tell how to functio

Poe's delay method...

2004-07-09 Thread Robert Boone
x27;[EMAIL PROTECTED]'); $smtp->data(); $smtp->datasend("To: [EMAIL PROTECTED]"); $smtp->datasend("From: [EMAIL PROTECTED]"); $smtp->datasend("Subject: WebCam Died..."); $smtp->datasend("\n\n"); $smtp->datasend("Webcam failed will retry in one minute."); $smtp->datasend("\n\nDate: ".$todayDate."\nTime: ".$failTime."\n\n"); $smtp->dataend(); $smtp->quit; $kernel->yield(get_pic => 60); } sub stop { print "That's All\n"; } Thanks, Robert Boone

Doing Something Wrong?

2003-03-14 Thread Robert Landrum
But similar examples are shown in the POE Cookbook that (I assume) work. I've tried adding inline_states and InlineStates to POE::Wheel::Run, but I get an error when I try. Any suggestions or thoughts would be very helpful... Thanks, Rob -- Robert Landrum Systems Programmer

Feedback on POE::Wheel::Run changes

2003-03-05 Thread Robert . Casey
I understand that there is a long-term goal to supercede POE::Wheel::Run with a component module with the tentative title of POE::Component::Process (http://poe.perl.org/?V1.0-TODOS) and there has been a discussion on the mailing list previously about how the POE::Wheel::Run module could be improve

RE: Q: Need recipe for a generic wizard application

2003-02-17 Thread Robert . Casey
> I deployed a rather complex script, but drove against walls when searching > for package-housed events, instead of inlined ones. This kept me from further using it, > because my major goal was to use C OOP. I had the same problem but found some good information at: http://poe.perl.org/?POE_FAQ/

RE: POE::Wheel::Run ErrorEvent

2003-02-11 Thread Robert . Casey
> That output indicates ErrorEvent has been triggered twice. The first > time when the child process closes STDERR, and the second time when it > closes STDOUT. I added some extra output to the sample code: Based upon your earlier comments, this is as I had expected. What does concern me howeve

RE: POE::Wheel::Run ErrorEvent

2003-02-10 Thread Robert . Casey
> 2. I am surprised that ErrorEvent is not triggered in that case. Are > you using POE 0.25? If there is a problem in Wheel::Run, it would > help greatly if you could submit a test case that reproduces it. I was running 0.24 on my system - I have updated this to 0.2501 from CVS and the error per

RE: RFC: Persistent Object Client/Server Scheme

2003-02-10 Thread Robert . Casey
> Unfortunately I cannot say. It seems that the concept overlaps remote > persistent objects and remote method calls. Which is it more like? I think there would be a better response for this project if these concepts were implemented individually (or in a component nature) permitting more flexib

POE::Wheel::Run ErrorEvent

2003-02-10 Thread Robert . Casey
I seem to be having an ErrorEvent triggered within POE::Wheel::Run upon the end of the input from STDERR and STDOUT. eg. sub _error { my ( $syscall, $errno, $error, $id, $handle ) = @_[ ARG0 .. ARG4 ]; print Dumper( $syscall, $errno, $error, $id, $handle ); } $VAR1 = 'read'; $VAR2 = '0';

Problems under 5.005.03

2003-02-04 Thread Robert . Casey
Due to circumstances outside of my control, much of my development time currently is being spent working within a perl 5.005.03 environment. In this environment, I have found some problems with POE::Kernel and the passing of arguments to the import method of Time::HiRes. The code in question ...