events
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 1033
TigerEvents 0.7.1
TigerEvents is a web-based event announcement system. more>>
TigerEvents is a novel, Web-based event announcement system for promoting upcoming and ongoing events to large communities such as university campuses, companies, or the general public.
Enhancements:
- This release has several bugfixes and enhancements.
- New to this release is the exporting of several calendar formats, including iCal, hCal, and being able to import events into Google Calendar.
<<lessEnhancements:
- This release has several bugfixes and enhancements.
- New to this release is the exporting of several calendar formats, including iCal, hCal, and being able to import events into Google Calendar.
Download (1.9MB)
Added: 2007-01-25 License: GPL (GNU General Public License) Price:
1003 downloads
@1 Know Your Events 1.0
Let your site visitors view or search events posted by you. more>> Let your site visitors view or search events posted by you. Support image upload.<<less
Download (12KB)
Added: 2009-04-11 License: Freeware Price: Free
195 downloads
App::Modular::Module::Events 0.1.2
App::Modular::Module::Events is a Perl module with event handling for App::Modular compatible applications. more>>
App::Modular::Module::Events is a Perl module with event handling for App::Modular compatible applications.
SYNOPSIS
####################################################################
package App::Modular::Module::Me;
use base qw(App::Modular::Module);
sub depends { return Events; }
sub start_listen {
my $self = shift;
$self->{modularizer}->module(Events)->
register(Listener, TelephoneRings);
};
sub event_handler {
my $self = shift;
my $event = shift;
print Yeah! Somebody thought about me!
if ($event eq TelephoneRings);
};
####################################################################
package App::Modular::Module::You;
use base qw(App::Modular::Module);
sub depends { return Events; }
sub call_me {
$self->{modularizer}->module(Events)->
trigger(TelephoneRings);
};
####################################################################
package main;
use App::Modular;
my $modul = instance App::Modular;
$modul->module(Me)->start_listen();
$modul->module(You)->callme();
exit;
App::Modular aims to provide a framework which should it make very easy to programmes to create any kind of modular program.
This module provides basic event handling as a contribution to that toolkit. Modules may register themselves as listeners for events, if an event is triggered, all the modules are notified by calling $module-event_handler(event, @params) >.
The events are speciefied as simple strings.
<<lessSYNOPSIS
####################################################################
package App::Modular::Module::Me;
use base qw(App::Modular::Module);
sub depends { return Events; }
sub start_listen {
my $self = shift;
$self->{modularizer}->module(Events)->
register(Listener, TelephoneRings);
};
sub event_handler {
my $self = shift;
my $event = shift;
print Yeah! Somebody thought about me!
if ($event eq TelephoneRings);
};
####################################################################
package App::Modular::Module::You;
use base qw(App::Modular::Module);
sub depends { return Events; }
sub call_me {
$self->{modularizer}->module(Events)->
trigger(TelephoneRings);
};
####################################################################
package main;
use App::Modular;
my $modul = instance App::Modular;
$modul->module(Me)->start_listen();
$modul->module(You)->callme();
exit;
App::Modular aims to provide a framework which should it make very easy to programmes to create any kind of modular program.
This module provides basic event handling as a contribution to that toolkit. Modules may register themselves as listeners for events, if an event is triggered, all the modules are notified by calling $module-event_handler(event, @params) >.
The events are speciefied as simple strings.
Download (0.016MB)
Added: 2007-02-28 License: Perl Artistic License Price:
969 downloads
WWW::Facebook::API::REST::Client::Events 0.0.3
WWW::Facebook::API::REST::Client::Events is a Perl module with events for Client. more>>
WWW::Facebook::API::REST::Client::Events is a Perl module with events for Client.
SYNOPSIS
use WWW::Facebook::API::REST::Client;
Methods for accessing events with WWW::Facebook::API::REST::Client
SUBROUTINES/METHODS
base
The WWW::Facebook::API::REST::Client::Base object to use to make calls to the REST server
get_in_window
The events.getInWindow method of the Facebook API
DIAGNOSTICS
This module is used by WWW::Facebook::API::REST::Client and right now does not have any unique error messages.
<<lessSYNOPSIS
use WWW::Facebook::API::REST::Client;
Methods for accessing events with WWW::Facebook::API::REST::Client
SUBROUTINES/METHODS
base
The WWW::Facebook::API::REST::Client::Base object to use to make calls to the REST server
get_in_window
The events.getInWindow method of the Facebook API
DIAGNOSTICS
This module is used by WWW::Facebook::API::REST::Client and right now does not have any unique error messages.
Download (0.011MB)
Added: 2007-01-25 License: Perl Artistic License Price:
1003 downloads
Event 1.09
Event is an Event loop processing. more>>
Event is an Event loop processing.
SYNOPSIS
use Event qw(loop unloop);
# initialize application
Event->flavor(attribute => value, ...);
my $ret = loop();
# and some callback will call
unloop(ok);
The Event module provide a central facility to watch for various types of events and invoke a callback when these events occur. The idea is to delay the handling of events so that they may be dispatched in priority order when it is safe for callbacks to execute.
Events (in the ordinary sense of the word) are detected by watchers, which reify them as events (in the special Event module sense). For clarity, the former type of events may be called "source events", and the latter "target events". Source events, such as signals arriving, happen whether or not they are being watched. If a source event occurs which a watcher is actively watching then the watcher generates a corresponding target event. Target events are only created by watchers. If several watchers are interested in the same source event then each will generate their own target event. Hence, any particular source event may result in zero, one, two, or any number of target events: the same as the number of watchers which were actively watching for it.
Target events are queued to be processed in priority order (priority being determined by the creating watcher) and in FIFO order among events of the same priority. Queued ("pending") events can, in some cases, be cancelled before being processed. A queued event is processed by being passed to the callback function (or method on a particular object or class) which was specified to the watcher.
A watcher, once created, operates autonomously without the Event user having to retain any reference to it. However, keeping a reference makes it possible to modify most of the watchers characteristics. A watcher can be switched between active and inactive states. When inactive, it does not generate target events.
Some types of source event are not reified as target events immediately. Signals received, for example, are counted initially. The counted signals are reified at certain execution points. Hence, signal events may be processed out of order, and if handled carelessly, on the wrong side of a state change in event handling. A useful way to view this is that occurrence of the source event is not actually the arrival of the signal but is triggered by the counting of the signal.
Reification can be forced when necessary. The schedule on which some other events are created is non-obvious. This is especially the case with watchers that watch for a condition rather than an event. In some cases, target events are generated on a schedule that depends on the operation of the event loop.
<<lessSYNOPSIS
use Event qw(loop unloop);
# initialize application
Event->flavor(attribute => value, ...);
my $ret = loop();
# and some callback will call
unloop(ok);
The Event module provide a central facility to watch for various types of events and invoke a callback when these events occur. The idea is to delay the handling of events so that they may be dispatched in priority order when it is safe for callbacks to execute.
Events (in the ordinary sense of the word) are detected by watchers, which reify them as events (in the special Event module sense). For clarity, the former type of events may be called "source events", and the latter "target events". Source events, such as signals arriving, happen whether or not they are being watched. If a source event occurs which a watcher is actively watching then the watcher generates a corresponding target event. Target events are only created by watchers. If several watchers are interested in the same source event then each will generate their own target event. Hence, any particular source event may result in zero, one, two, or any number of target events: the same as the number of watchers which were actively watching for it.
Target events are queued to be processed in priority order (priority being determined by the creating watcher) and in FIFO order among events of the same priority. Queued ("pending") events can, in some cases, be cancelled before being processed. A queued event is processed by being passed to the callback function (or method on a particular object or class) which was specified to the watcher.
A watcher, once created, operates autonomously without the Event user having to retain any reference to it. However, keeping a reference makes it possible to modify most of the watchers characteristics. A watcher can be switched between active and inactive states. When inactive, it does not generate target events.
Some types of source event are not reified as target events immediately. Signals received, for example, are counted initially. The counted signals are reified at certain execution points. Hence, signal events may be processed out of order, and if handled carelessly, on the wrong side of a state change in event handling. A useful way to view this is that occurrence of the source event is not actually the arrival of the signal but is triggered by the counting of the signal.
Reification can be forced when necessary. The schedule on which some other events are created is non-obvious. This is especially the case with watchers that watch for a condition rather than an event. In some cases, target events are generated on a schedule that depends on the operation of the event loop.
Download (0.24MB)
Added: 2007-06-06 License: Perl Artistic License Price:
872 downloads
Event::Stats 0.7
Event::Stats is a Perl module for event loop statistics. more>>
Event::Stats is a Perl module for event loop statistics. Instrument the Event module in order to gather statistics.
API
collect($yes)
Determines whether statistics are collected. Arithmetically adds $yes to the usage count. Stats are enabled while the usage count is positive.
$round_sec = round_seconds($sec)
Statistics are not collected in one second intervals. This function converts a *desired* time interval into an *available* time interval. Units are in seconds.
$elapse = total_time($sec)
Due to long-running callbacks, measurement intervals may take longer than expected. This function returns the actual clock-time for a given measurement interval.
($rans, $dies, $elapse) = idle_time($sec)
($runs, $dies, $elapse) = $watcher->stats($sec)
Return statistics for the last $sec seconds of operation. Three numbers are returned: the number of times the callback has been invoked, the number of uncaught exceptions and the number of seconds spent within the callback. Also see NetServer::ProcessTop.
enforce_max_callback_time($yes)
Useful for debugging. XXX
<<lessAPI
collect($yes)
Determines whether statistics are collected. Arithmetically adds $yes to the usage count. Stats are enabled while the usage count is positive.
$round_sec = round_seconds($sec)
Statistics are not collected in one second intervals. This function converts a *desired* time interval into an *available* time interval. Units are in seconds.
$elapse = total_time($sec)
Due to long-running callbacks, measurement intervals may take longer than expected. This function returns the actual clock-time for a given measurement interval.
($rans, $dies, $elapse) = idle_time($sec)
($runs, $dies, $elapse) = $watcher->stats($sec)
Return statistics for the last $sec seconds of operation. Three numbers are returned: the number of times the callback has been invoked, the number of uncaught exceptions and the number of seconds spent within the callback. Also see NetServer::ProcessTop.
enforce_max_callback_time($yes)
Useful for debugging. XXX
Download (0.005MB)
Added: 2007-04-04 License: Perl Artistic License Price:
933 downloads
Event::RPC 0.90
Event::RPC is a event based transparent Client/Server RPC framework. more>>
Event::RPC is a event based transparent Client/Server RPC framework.
SYNOPSIS
#-- Server Code
use Event::RPC::Server;
use My::TestModule;
my $server = Event::RPC::Server->new (
port => 5555,
classes => { "My::TestModule" => { ... } },
);
$server->start;
----------------------------------------------------------
#-- Client Code
use Event::RPC::Client;
my $client = Event::RPC::Client->new (
server => "localhost",
port => 5555,
);
$client->connect;
#-- Call methods of My::TestModule on the server
my $obj = My::TestModule->new ( foo => "bar" );
my $foo = $obj->get_foo;
ABSTRACT
Event::RPC supports you in developing Event based networking client/server applications with transparent object/method access from the client to the server. Network communication is optionally encrypted using IO::Socket::SSL. Several event loop managers are supported due to an extensible API. Currently Event and Glib are implemented.
<<lessSYNOPSIS
#-- Server Code
use Event::RPC::Server;
use My::TestModule;
my $server = Event::RPC::Server->new (
port => 5555,
classes => { "My::TestModule" => { ... } },
);
$server->start;
----------------------------------------------------------
#-- Client Code
use Event::RPC::Client;
my $client = Event::RPC::Client->new (
server => "localhost",
port => 5555,
);
$client->connect;
#-- Call methods of My::TestModule on the server
my $obj = My::TestModule->new ( foo => "bar" );
my $foo = $obj->get_foo;
ABSTRACT
Event::RPC supports you in developing Event based networking client/server applications with transparent object/method access from the client to the server. Network communication is optionally encrypted using IO::Socket::SSL. Several event loop managers are supported due to an extensible API. Currently Event and Glib are implemented.
Download (0.031MB)
Added: 2007-04-04 License: Perl Artistic License Price:
933 downloads
Tk::event 804.027
Tk::event contains miscellaneous event facilities: define virtual events and generate events. more>>
Tk::event contains miscellaneous event facilities: define virtual events and generate events.
SYNOPSIS
$widget->eventAction(?arg, arg, ...?);
The eventAction methods provides several facilities for dealing with window system events, such as defining virtual events and synthesizing events. Virtual events are shared by all widgets of the same MainWindow. Different MainWindows can have different virtual event.
The following methods are currently supported:
$widget->eventAdd(, sequence ?,sequence, ...?)
Associates the virtual event virtual with the physical event sequence(s) given by the sequence arguments, so that the virtual event will trigger whenever any one of the sequences occurs. Virtual may be any string value and sequence may have any of the values allowed for the sequence argument to the bind method. If virtual is already defined, the new physical event sequences add to the existing sequences for the event.
$widget->eventDelete( ?,sequence, sequence, ...?)
Deletes each of the sequences from those associated with the virtual event given by virtual. Virtual may be any string value and sequence may have any of the values allowed for the sequence argument to the bind method. Any sequences not currently associated with virtual are ignored. If no sequence argument is provided, all physical event sequences are removed for virtual, so that the virtual event will not trigger anymore.
$widget->eventGenerate(event ?,option => value, option => value, ...?)
Generates a window event and arranges for it to be processed just as if it had come from the window system. $window is a reference to the window for which the event will be generated. Event provides a basic description of the event, such as < Shift-Button-2 > or >. If Window is empty the whole screen is meant, and coordinates are relative to the screen. Event may have any of the forms allowed for the sequence argument of the bind method except that it must consist of a single event pattern, not a sequence. Option-value pairs may be used to specify additional attributes of the event, such as the x and y mouse position; see "EVENT FIELDS" below. If the -when option is not specified, the event is processed immediately: all of the handlers for the event will complete before the eventGenerate method returns. If the -when option is specified then it determines when the event is processed.
$widget->eventInfo(?>?)
Returns information about virtual events. If the argument is omitted, the return value is a list of all the virtual events that are currently defined. If is specified then the return value is a list whose elements are the physical event sequences currently defined for the given virtual event; if the virtual event is not defined then undef is returned.
<<lessSYNOPSIS
$widget->eventAction(?arg, arg, ...?);
The eventAction methods provides several facilities for dealing with window system events, such as defining virtual events and synthesizing events. Virtual events are shared by all widgets of the same MainWindow. Different MainWindows can have different virtual event.
The following methods are currently supported:
$widget->eventAdd(, sequence ?,sequence, ...?)
Associates the virtual event virtual with the physical event sequence(s) given by the sequence arguments, so that the virtual event will trigger whenever any one of the sequences occurs. Virtual may be any string value and sequence may have any of the values allowed for the sequence argument to the bind method. If virtual is already defined, the new physical event sequences add to the existing sequences for the event.
$widget->eventDelete( ?,sequence, sequence, ...?)
Deletes each of the sequences from those associated with the virtual event given by virtual. Virtual may be any string value and sequence may have any of the values allowed for the sequence argument to the bind method. Any sequences not currently associated with virtual are ignored. If no sequence argument is provided, all physical event sequences are removed for virtual, so that the virtual event will not trigger anymore.
$widget->eventGenerate(event ?,option => value, option => value, ...?)
Generates a window event and arranges for it to be processed just as if it had come from the window system. $window is a reference to the window for which the event will be generated. Event provides a basic description of the event, such as < Shift-Button-2 > or >. If Window is empty the whole screen is meant, and coordinates are relative to the screen. Event may have any of the forms allowed for the sequence argument of the bind method except that it must consist of a single event pattern, not a sequence. Option-value pairs may be used to specify additional attributes of the event, such as the x and y mouse position; see "EVENT FIELDS" below. If the -when option is not specified, the event is processed immediately: all of the handlers for the event will complete before the eventGenerate method returns. If the -when option is specified then it determines when the event is processed.
$widget->eventInfo(?>?)
Returns information about virtual events. If the argument is omitted, the return value is a list of all the virtual events that are currently defined. If is specified then the return value is a list whose elements are the physical event sequences currently defined for the given virtual event; if the virtual event is not defined then undef is returned.
Download (5.7MB)
Added: 2007-08-21 License: Perl Artistic License Price:
795 downloads
EventWatcher 0.4.3
EventWatcher is a KDE application which notifies you about various events. more>>
EventWatcher is a KDE application which notifies you about various events.
"Events" are pieces of information about, for example, news ticker or blog updates, new emails, user logons, system warnings, hardware events etc.
They get collected by EventWatcher plugins and sent to the main application which lives in the KDE system tray for most of the time and displays this information.
EventWatcher requires KDE/Qt 3.2.
Available Plugins
- DCOP: Receives "events" via KDEs desktop communication protocol, for example from other KDE applications or scripts.
- Log File Monitor: Reports changes in log files.
- RSS Feed Monitor: Watches RSS feeds provided by many news sites and blogs.
Enhancements:
- Event expiring:
- Remove events based on the time they were received
- Configuable behaviour: Expire agetime, Expire only unread events, Auto-expire
- KNotify support (Patch by Paul Eggleton)
- Hide plusminus button when list is empty.
<<less"Events" are pieces of information about, for example, news ticker or blog updates, new emails, user logons, system warnings, hardware events etc.
They get collected by EventWatcher plugins and sent to the main application which lives in the KDE system tray for most of the time and displays this information.
EventWatcher requires KDE/Qt 3.2.
Available Plugins
- DCOP: Receives "events" via KDEs desktop communication protocol, for example from other KDE applications or scripts.
- Log File Monitor: Reports changes in log files.
- RSS Feed Monitor: Watches RSS feeds provided by many news sites and blogs.
Enhancements:
- Event expiring:
- Remove events based on the time they were received
- Configuable behaviour: Expire agetime, Expire only unread events, Auto-expire
- KNotify support (Patch by Paul Eggleton)
- Hide plusminus button when list is empty.
Download (0.50MB)
Added: 2005-10-30 License: GPL (GNU General Public License) Price:
1454 downloads
Event::ExecFlow 0.62
Event::ExecFlow is a high level API for event-based execution flow control. more>>
Event::ExecFlow is a high level API for event-based execution flow control.
ABSTRACT
Event::ExecFlow provides a ligh level API for defining complex flow controls with asynchronous execution of external programs.
SYNOPSIS
use Event::ExecFlow;
my $job = Event::ExecFlow::Job::Group->new (
jobs => [
Event::ExecFlow::Job::Command->new (
name => "transcode",
title => "Transcoding DVD title to OGG",
command => "transcode -i /dev/dvd ...",
fetch_output => 1,
progress_max => 4711, # number of frames
progress_parser => sub {
my ($job, $buffer) = @_;
$job->set_progress_cnt($1) if $buffer =~ /[d+-(d+)]/;
#-- or simply write this:
#-- progress_parser => qr/[d+-(d+)]/,
},
),
Event::ExecFlow::Job::Code->new (
name => "checks",
title => "Do some checks",
depends_on => [ "transcode" ],
code => sub {
my ($job) = @_;
my $transcode = $job->get_group->get_job_by_name("transcode");
if ( $transcode->get_output !~ /.../ ) {
$job->set_error_message("XY check failed");
}
#-- this could be done easier as a post_callback added to
#-- the "transcode" job above, but its nevertheless a good
#-- example for the Code job type and shows how jobs can
#-- interfere with each other.
},
),
Event::ExecFlow::Job::Command->new (
title => "Muxing OGG file",
depends_on => [ "checks" ],
command => "ogmmerge ...",
no_progress => 1,
),
],
);
#-- this inherits from Event::ExecFlow::Frontend
my $frontend = Video::DVDRip::GUI::ExecFlow->new(...);
$frontend->start_job($job);
Event::ExecFlow offers a high level API to declare jobs, which mainly execute external commands, parse their output to get progress or other status information, triggers actions when the command has been finished etc. Such jobs can be chained together in a recursive fashion to fulfill rather complex tasks which consist of many jobs.
Additionally it defines an extensible API for communication with the frontend application, which may be a written using Gtk2, Tk or Qt or is a simple text console program.
In case of Gtk2 a custom widget for displaying an Event::ExecFlow job plan, including progress updates, is shipped with the Gtk2::Ex::FormFactory package.
<<lessABSTRACT
Event::ExecFlow provides a ligh level API for defining complex flow controls with asynchronous execution of external programs.
SYNOPSIS
use Event::ExecFlow;
my $job = Event::ExecFlow::Job::Group->new (
jobs => [
Event::ExecFlow::Job::Command->new (
name => "transcode",
title => "Transcoding DVD title to OGG",
command => "transcode -i /dev/dvd ...",
fetch_output => 1,
progress_max => 4711, # number of frames
progress_parser => sub {
my ($job, $buffer) = @_;
$job->set_progress_cnt($1) if $buffer =~ /[d+-(d+)]/;
#-- or simply write this:
#-- progress_parser => qr/[d+-(d+)]/,
},
),
Event::ExecFlow::Job::Code->new (
name => "checks",
title => "Do some checks",
depends_on => [ "transcode" ],
code => sub {
my ($job) = @_;
my $transcode = $job->get_group->get_job_by_name("transcode");
if ( $transcode->get_output !~ /.../ ) {
$job->set_error_message("XY check failed");
}
#-- this could be done easier as a post_callback added to
#-- the "transcode" job above, but its nevertheless a good
#-- example for the Code job type and shows how jobs can
#-- interfere with each other.
},
),
Event::ExecFlow::Job::Command->new (
title => "Muxing OGG file",
depends_on => [ "checks" ],
command => "ogmmerge ...",
no_progress => 1,
),
],
);
#-- this inherits from Event::ExecFlow::Frontend
my $frontend = Video::DVDRip::GUI::ExecFlow->new(...);
$frontend->start_job($job);
Event::ExecFlow offers a high level API to declare jobs, which mainly execute external commands, parse their output to get progress or other status information, triggers actions when the command has been finished etc. Such jobs can be chained together in a recursive fashion to fulfill rather complex tasks which consist of many jobs.
Additionally it defines an extensible API for communication with the frontend application, which may be a written using Gtk2, Tk or Qt or is a simple text console program.
In case of Gtk2 a custom widget for displaying an Event::ExecFlow job plan, including progress updates, is shipped with the Gtk2::Ex::FormFactory package.
Download (0.015MB)
Added: 2007-03-09 License: Perl Artistic License Price:
962 downloads
XML::Essex::Event 0.01
XML::Essex::Event is a base event class, also used for unknown event types. more>>
XML::Essex::Event is a base event class, also used for unknown event types. Stringifies as $event->type . "()" to indicate an event that has no natural way to represented in XML, or for ones that havent been handled yet in Essex.
Methods
new
XML::Event->new( a => 1, b => 2 );
XML::Event->new( { a => 1, b => 2 } );
## in a subclass:
sub new {
my $self = shift->SUPER::new( @_ );
...
return $self;
}
A generic constructor.
If a single value is passed in, a reference to it is kept. This must be a HASH for all builtin objects.
If an even number of parameters is passed in, treats them as key => value pairs and creates a HASH around them.
isa
Accepts shorthand; if the objects class starts with "XML::Essex::Event::", the parameter is checked against the string after "XML::Essex::Event::". So a XML::Essex::Event::foo->isa( "foo" ) is true (assuming it really is true; in other words, assuming that its @ISA is set properly).
clone
my $clone = $e->clone;
Does a deep copy of an event. Any events that require a deep copy must overload this to provide it, the default action is to just copy the main HASH.
type
Strips all characters up to the "::" and returns the remainder, so, for the XML::Essex::start_document class, this returns "start_document".
This must return a valid SAX event name, it is used to figure out how to serialize most event objects.
This is overloaded in most classes for speed and to allow subclasses to tweak the behavior of a class and still be reported as the proper type.
generate_SAX
$e->generate_SAX( $handler );
Emits the SAX event(s) necessary to serialize this event object and send them to $handler. $handler will always be defined.
Uses the type method to figure out what to send. Some classes (notably XML::Essex::characters) overload this for various reasons.
Assumes scalar context (which should not cause problems).
<<lessMethods
new
XML::Event->new( a => 1, b => 2 );
XML::Event->new( { a => 1, b => 2 } );
## in a subclass:
sub new {
my $self = shift->SUPER::new( @_ );
...
return $self;
}
A generic constructor.
If a single value is passed in, a reference to it is kept. This must be a HASH for all builtin objects.
If an even number of parameters is passed in, treats them as key => value pairs and creates a HASH around them.
isa
Accepts shorthand; if the objects class starts with "XML::Essex::Event::", the parameter is checked against the string after "XML::Essex::Event::". So a XML::Essex::Event::foo->isa( "foo" ) is true (assuming it really is true; in other words, assuming that its @ISA is set properly).
clone
my $clone = $e->clone;
Does a deep copy of an event. Any events that require a deep copy must overload this to provide it, the default action is to just copy the main HASH.
type
Strips all characters up to the "::" and returns the remainder, so, for the XML::Essex::start_document class, this returns "start_document".
This must return a valid SAX event name, it is used to figure out how to serialize most event objects.
This is overloaded in most classes for speed and to allow subclasses to tweak the behavior of a class and still be reported as the proper type.
generate_SAX
$e->generate_SAX( $handler );
Emits the SAX event(s) necessary to serialize this event object and send them to $handler. $handler will always be defined.
Uses the type method to figure out what to send. Some classes (notably XML::Essex::characters) overload this for various reasons.
Assumes scalar context (which should not cause problems).
Download (0.042MB)
Added: 2007-08-17 License: Perl Artistic License Price:
798 downloads
POE::Loop::Event 0.3502
POE::Loop::Event is a bridge that supports Gtks event loop from POE. more>>
POE::Loop::Event is a bridge that supports Gtks event loop from POE.
SYNOPSIS
See POE::Loop.
This class is an implementation of the abstract POE::Loop interface. It follows POE::Loops public interface exactly. Therefore, please see POE::Loop for its documentation.
<<lessSYNOPSIS
See POE::Loop.
This class is an implementation of the abstract POE::Loop interface. It follows POE::Loops public interface exactly. Therefore, please see POE::Loop for its documentation.
Download (0.32MB)
Added: 2006-07-18 License: Perl Artistic License Price:
1193 downloads
DateTime::Event::Sunrise 0.0501
DateTime::Event::Sunrise is a Perl DateTime extension for computing the sunrise/sunset on a given day. more>>
DateTime::Event::Sunrise is a Perl DateTime extension for computing the sunrise/sunset on a given day.
SYNOPSIS
use DateTime;
use DateTime::Event::Sunrise;
my $dt = DateTime->new( year => 2000,
month => 6,
day => 20,
);
my $sunrise = DateTime::Event::Sunrise ->sunrise (
longitude =>-118,
latitude =>33,
altitude => -0.833,
iteration => 1
);
my $sunset = DateTime::Event::Sunrise ->sunset (
longitude =>-118,
latitude =>33,
altitude => -0.833,
iteration => 1
);
my $tmp_rise = $sunrise->next( $dt );
my $dt2 = DateTime->new( year => 2000,
month => 12,
day => 31,
);
# iterator
my $dt_span = DateTime::Span->new( start =>$dt1, end=>$dt2 );
my $set = $sunrise->intersection($dt_span);
my $iter = $set->iterator;
while ( my $dt = $iter->next ) {
print ,$dt->datetime;
}
# is it day or night?
my $day_set = DateTime::SpanSet->from_sets(
start_set => $sunrise, end_set => $sunset );
print $day_set->contains( $dt ) ? day : night;
my $dt = DateTime->new( year => 2000, month => 6, day => 20, time_zone => America/Los_Angeles, );
my $sunrise = DateTime::Event::Sunrise ->new( longitude =>-118 , latitude => 33, altitude => -0.833, iteration => 1
);
my $tmp = $sunrise->sunrise_sunset_span($dt); print "Sunrise is:" , $tmp->start->datetime , "n"; print "Sunset is:" , $tmp->end->datetime;
my $dt1 = $sunrise->sunrise_datetime( $dt ); print "Sunrise is:" , $dt1->datetime , "n"; my $dt2 = $sunrise->sunset_datetime( $dt ); print "Sunset is:" , $dt2->datetime , "n";
<<lessSYNOPSIS
use DateTime;
use DateTime::Event::Sunrise;
my $dt = DateTime->new( year => 2000,
month => 6,
day => 20,
);
my $sunrise = DateTime::Event::Sunrise ->sunrise (
longitude =>-118,
latitude =>33,
altitude => -0.833,
iteration => 1
);
my $sunset = DateTime::Event::Sunrise ->sunset (
longitude =>-118,
latitude =>33,
altitude => -0.833,
iteration => 1
);
my $tmp_rise = $sunrise->next( $dt );
my $dt2 = DateTime->new( year => 2000,
month => 12,
day => 31,
);
# iterator
my $dt_span = DateTime::Span->new( start =>$dt1, end=>$dt2 );
my $set = $sunrise->intersection($dt_span);
my $iter = $set->iterator;
while ( my $dt = $iter->next ) {
print ,$dt->datetime;
}
# is it day or night?
my $day_set = DateTime::SpanSet->from_sets(
start_set => $sunrise, end_set => $sunset );
print $day_set->contains( $dt ) ? day : night;
my $dt = DateTime->new( year => 2000, month => 6, day => 20, time_zone => America/Los_Angeles, );
my $sunrise = DateTime::Event::Sunrise ->new( longitude =>-118 , latitude => 33, altitude => -0.833, iteration => 1
);
my $tmp = $sunrise->sunrise_sunset_span($dt); print "Sunrise is:" , $tmp->start->datetime , "n"; print "Sunset is:" , $tmp->end->datetime;
my $dt1 = $sunrise->sunrise_datetime( $dt ); print "Sunrise is:" , $dt1->datetime , "n"; my $dt2 = $sunrise->sunset_datetime( $dt ); print "Sunset is:" , $dt2->datetime , "n";
Download (0.012MB)
Added: 2007-02-15 License: Perl Artistic License Price:
981 downloads
XevdevServer 1.4.0
XevdevServer is a program that uses the Linux evdev interface to capture events from specific mouse and keyboard devices. more>>
XevdevServer is a program that uses the Linux evdev interface to capture events from specific mouse and keyboard devices.
It then translates these events and sends them to an X display using the XTEST extension. It can be helpful in a multi-seat X configuration.
Special keys
I dont know if this will work in the same way on other keyboard types, but on mine, the following special combinations work:
- Windows key + pause key: execute telinit 3. This may be useful if youre having some X-windows related problems.
- Windows key + keypad plus key: if multiple displays were specified to send events to, this selects the next display as the active one, allowing you to cycle through them.
<<lessIt then translates these events and sends them to an X display using the XTEST extension. It can be helpful in a multi-seat X configuration.
Special keys
I dont know if this will work in the same way on other keyboard types, but on mine, the following special combinations work:
- Windows key + pause key: execute telinit 3. This may be useful if youre having some X-windows related problems.
- Windows key + keypad plus key: if multiple displays were specified to send events to, this selects the next display as the active one, allowing you to cycle through them.
Download (0.060MB)
Added: 2007-03-27 License: GPL (GNU General Public License) Price:
946 downloads
DateTime::Event::Cron 0.07
DateTime::Event::Cron is a DateTime extension for generating recurrence sets from crontab lines and files. more>>
DateTime::Event::Cron is a DateTime extension for generating recurrence sets from crontab lines and files.
SYNOPSIS
use DateTime::Event::Cron;
# DateTime::Set construction from crontab line
$crontab = */3 15 1-10 3,4,5 */2;
$set = DateTime::Event::Cron->from_cron($crontab);
$iter = $set->iterator(after => DateTime->now);
while (1) {
my $next = $iter->next;
my $now = DateTime->now;
sleep(($next->subtract_datetime_absolute($now))->seconds);
# do stuff...
}
# List of DateTime::Set objects from crontab file
@sets = DateTime::Event::Cron->from_crontab(file => /etc/crontab);
$now = DateTime->now;
print "Now: ", $now->datetime, "n";
foreach (@sets) {
my $next = $_->next($now);
print $next->datetime, "n";
}
# DateTime::Set parameters
$crontab = * * * * *;
$now = DateTime->now;
%set_parms = ( after => $now );
$set = DateTime::Event::Cron->from_cron(cron => $crontab, %set_parms);
$dt = $set->next;
print "Now: ", $now->datetime, " and next: ", $dt->datetime, "n";
# Spans for DateTime::Set
$crontab = * * * * *;
$now = DateTime->now;
$now2 = $now->clone;
$span = DateTime::Span->from_datetimes(
start => $now->add(minutes => 1),
end => $now2->add(hours => 1),
);
%parms = (cron => $crontab, span => $span);
$set = DateTime::Event::Cron->from_cron(%parms);
# ...do things with the DateTime::Set
# Every RTFCT relative to 12am Jan 1st this year
$crontab = 7-10 6,12-15 10-28/2 */3 3,4,5;
$date = DateTime->now->truncate(to => year);
$set = DateTime::Event::Cron->from_cron(cron => $crontab, after => $date);
# Rather than generating DateTime::Set objects, next/prev
# calculations can be made directly:
# Every day at 10am, 2pm, and 6pm. Reference date
# defaults to DateTime->now.
$crontab = 10,14,18 * * * *;
$dtc = DateTime::Event::Cron->new_from_cron(cron => $crontab);
$next_datetime = $dtc->next;
$last_datetime = $dtc->previous;
...
# List of DateTime::Event::Cron objects from
# crontab file
@dtc = DateTime::Event::Cron->new_from_crontab(file => /etc/crontab);
# Full cron lines with user, such as from /etc/crontab
# or files in /etc/cron.d, are supported and auto-detected:
$crontab = * * * * * gump /bin/date;
$dtc = DateTime::Event::Cron->new(cron => $crontab);
# Auto-detection of users is disabled if you explicitly
# enable/disable via the user_mode parameter:
$dtc = DateTime::Event::Cron->new(cron => $crontab, user_mode => 1);
my $user = $dtc->user;
my $command = $dtc->command;
# Unparsed original cron entry
my $original = $dtc->original;
<<lessSYNOPSIS
use DateTime::Event::Cron;
# DateTime::Set construction from crontab line
$crontab = */3 15 1-10 3,4,5 */2;
$set = DateTime::Event::Cron->from_cron($crontab);
$iter = $set->iterator(after => DateTime->now);
while (1) {
my $next = $iter->next;
my $now = DateTime->now;
sleep(($next->subtract_datetime_absolute($now))->seconds);
# do stuff...
}
# List of DateTime::Set objects from crontab file
@sets = DateTime::Event::Cron->from_crontab(file => /etc/crontab);
$now = DateTime->now;
print "Now: ", $now->datetime, "n";
foreach (@sets) {
my $next = $_->next($now);
print $next->datetime, "n";
}
# DateTime::Set parameters
$crontab = * * * * *;
$now = DateTime->now;
%set_parms = ( after => $now );
$set = DateTime::Event::Cron->from_cron(cron => $crontab, %set_parms);
$dt = $set->next;
print "Now: ", $now->datetime, " and next: ", $dt->datetime, "n";
# Spans for DateTime::Set
$crontab = * * * * *;
$now = DateTime->now;
$now2 = $now->clone;
$span = DateTime::Span->from_datetimes(
start => $now->add(minutes => 1),
end => $now2->add(hours => 1),
);
%parms = (cron => $crontab, span => $span);
$set = DateTime::Event::Cron->from_cron(%parms);
# ...do things with the DateTime::Set
# Every RTFCT relative to 12am Jan 1st this year
$crontab = 7-10 6,12-15 10-28/2 */3 3,4,5;
$date = DateTime->now->truncate(to => year);
$set = DateTime::Event::Cron->from_cron(cron => $crontab, after => $date);
# Rather than generating DateTime::Set objects, next/prev
# calculations can be made directly:
# Every day at 10am, 2pm, and 6pm. Reference date
# defaults to DateTime->now.
$crontab = 10,14,18 * * * *;
$dtc = DateTime::Event::Cron->new_from_cron(cron => $crontab);
$next_datetime = $dtc->next;
$last_datetime = $dtc->previous;
...
# List of DateTime::Event::Cron objects from
# crontab file
@dtc = DateTime::Event::Cron->new_from_crontab(file => /etc/crontab);
# Full cron lines with user, such as from /etc/crontab
# or files in /etc/cron.d, are supported and auto-detected:
$crontab = * * * * * gump /bin/date;
$dtc = DateTime::Event::Cron->new(cron => $crontab);
# Auto-detection of users is disabled if you explicitly
# enable/disable via the user_mode parameter:
$dtc = DateTime::Event::Cron->new(cron => $crontab, user_mode => 1);
my $user = $dtc->user;
my $command = $dtc->command;
# Unparsed original cron entry
my $original = $dtc->original;
Download (0.010MB)
Added: 2007-05-16 License: Perl Artistic License Price:
891 downloads
Secleted [ 0 ] software to compare
Copyright Notice:
Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future software development. The above events search only lists software in full, demo and trial versions for free download. Download links are directly from our mirror sites or publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed