search for: add_handler

Displaying 12 results from an estimated 12 matches for "add_handler".

Did you mean: add_handle
2014 Mar 14
3
Sys::Virt integration into other event loops
Hi all, I’m trying to integrate Perl’s Sys::Virt into an already existing AnyEvent program. I’m accustomed to writing things like this: use EV; use AnyEvent; use AnyEvent::Handle; my $h = AnyEvent::Handle->new(fh => $fh, …); $h->on_read(sub { … }); EV::run; ## start the event loop I can add some code in the on_read() handler and every time the $fh has something to read, it will fire
2007 Mar 08
6
Transfer-encoding: gzip
Hello! What is the simplest way to make merb respond to the client sending Accept-Encoding: gzip? Just checking if it exists, otherwise I''ll implement it myself. Regards, Magnus
2015 Jul 24
0
libvirt events and Ruby's EventMachine
Hello, I'm trying to adopt the Ruby event example from here https://www.libvirt.org/ruby/examples/event_test.rb to use EventMachine (a library for writing event driven programs). I have attached my attempt, which appears subscribe to events but never executes the callbacks I provide. I know this because when I reset domains (virsh reset VM) I see messages appear from the
2006 Feb 18
0
activerecord connections with xmlrpc
...:adapter => "mysql", # etc. etc. ) end # given a user id get the user name def get_username(id) u = User.find(id) return u.username end s = XMLRPC::Server.new(8080) s.add_handler("get_username") do |user_id| get_username(user_id) end s.set_default_handler do |name, *args| raise XMLRPC::FaultException.new(-99, "Method #{name} missing" + " or wrong number of parameters!") end -------------------------------...
2014 Mar 14
0
Re: Sys::Virt integration into other event loops
On Fri, Mar 14, 2014 at 09:01:22AM -0600, Scott Wiersdorf wrote: > Hi all, > > I’m trying to integrate Perl’s Sys::Virt into an already existing AnyEvent program. > > I’m accustomed to writing things like this: > > use EV; > use AnyEvent; > use AnyEvent::Handle; > my $h = AnyEvent::Handle->new(fh => $fh, …); > $h->on_read(sub { … }); > > EV::run;
2010 Apr 22
2
[PATCH 1/2] Try to load the loop module before running mkinitrd
mkinitrd needs to mount files using loop. loop might be a module, so try to load it first. --- lib/Sys/VirtV2V/GuestOS/RedHat.pm | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/lib/Sys/VirtV2V/GuestOS/RedHat.pm b/lib/Sys/VirtV2V/GuestOS/RedHat.pm index 0e469f5..08027b6 100644 --- a/lib/Sys/VirtV2V/GuestOS/RedHat.pm +++ b/lib/Sys/VirtV2V/GuestOS/RedHat.pm @@ -1114,6
2007 Apr 13
0
[954] branches/wxruby2/wxwidgets_282: Additions to Image API 2.6 -> 2.8, remove comment cruft
...;cx"> </span><span class="cx"> The following image handlers are available. *BMPHandler* is always </span><span class="cx"> installed by default. To use other image formats, install the appropriate </span><del>-handler with "Image#add_handler":image.html#Image_addhandler or </del><ins>+handler with "Image#add_handler":image.html#Image_addhandler or call </ins><span class="cx"> "InitAllImageHandlers":initallimagehandlers.html. </span><span class="cx"> &lt...
2006 Dec 03
0
[776] trunk/wxruby2: Added Bitmap#draw method, updated sample
...ry device context. </del><ins>+Do not delete a bitmap that is selected into a memory device context, +for example during a call to "draw":#Bitmap_draw . </ins><span class="cx"> </span><span class="cx"> h3(#Bitmap_addhandler). Bitmap#add_handler </span><span class="cx"> </span><span class="lines">@@ -286,6 +287,20 @@ </span><span class="cx"> </span><span class="cx"> "Bitmap.new":bitmap.html#Bitmap_new </span><span class="cx&quo...
2006 May 22
3
core-model-2
I''ve added experiments/core-model-2 to SVN. I think this is pretty clean and satisfactory. Jeff, please have a look and see if you like the placement of timeouts (which are currently unimplemented). Any event now has the possibility of a timeout. To get an application-level timeout, you''d just post an event with a timeout to a nil target. When the timeout expires, the errback
2009 Aug 03
1
[PATCH 1/2] Convert all TABs-as-indentation to spaces.
Per discussion on IRC, here are two changes to convert all TABs-as-indentation to spaces. The first one is the fully-automated conversion. However, note that the command mentioned uses a file (the .x-sc* one) that is added only in the following patch. The second patch adds rules to help keep things that way: Document and enforce the new spaces-only indentation policy. * cfg.mk
2010 Jan 29
4
[FOR REVIEW ONLY] ESX work in progress
The following patches are where I'm currently at with ESX support. I can now import a domain from ESX along with its storage. Note that I'm not yet doing any conversion. In fact, I've never even tested past the import stage (I just had an exit in there). The meat is really in the 4th patch. The rename of MetadataReader->Connection was because the Connection is now really providing
2010 Feb 01
9
[ESX support] Working ESX conversion for RHEL 5
With this patchset I have successfully[1] imported a RHEL 5 guest directly from ESX with the following command line: virt-v2v -ic 'esx://yellow.marston/?no_verify=1' -op transfer RHEL5-64 Login details are stored in ~/.netrc Note that this is the only guest I've tested against. I haven't for example, checked that I haven't broken Xen imports. Matt [1] With the exception of