matches at wrestlemania 25
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 1048
Test::Exception 0.25
Test::Exception is a Perl module to test exception based code. more>>
Test::Exception is a Perl module to test exception based code.
SYNOPSIS
use Test::More tests => 5;
use Test::Exception;
# or if you dont need Test::More
use Test::Exception tests => 5;
# then...
# Check that something died
dies_ok { $foo->method1 } expecting to die;
# Check that something did not die
lives_ok { $foo->method2 } expecting to live;
# Check that the stringified exception matches given regex
throws_ok { $foo->method3 } qr/division by zero/, zero caught okay;
# Check an exception of the given class (or subclass) is thrown
throws_ok { $foo->method4 } Error::Simple, simple error thrown;
# all Test::Exceptions subroutines are guaranteed to preserve the state
# of $@ so you can do things like this after throws_ok and dies_ok
like $@, what the stringified exception should look like;
# Check that a test runs without an exception
lives_and { is $foo->method, 42 } method is 42;
# or if you dont like prototyped functions
dies_ok( sub { $foo->method1 }, expecting to die );
lives_ok( sub { $foo->method2 }, expecting to live );
throws_ok( sub { $foo->method3 }, qr/division by zero/,
zero caught okay );
throws_ok( sub { $foo->method4 }, Error::Simple,
simple error thrown );
lives_and( sub { is $foo->method, 42 }, method is 42 );
<<lessSYNOPSIS
use Test::More tests => 5;
use Test::Exception;
# or if you dont need Test::More
use Test::Exception tests => 5;
# then...
# Check that something died
dies_ok { $foo->method1 } expecting to die;
# Check that something did not die
lives_ok { $foo->method2 } expecting to live;
# Check that the stringified exception matches given regex
throws_ok { $foo->method3 } qr/division by zero/, zero caught okay;
# Check an exception of the given class (or subclass) is thrown
throws_ok { $foo->method4 } Error::Simple, simple error thrown;
# all Test::Exceptions subroutines are guaranteed to preserve the state
# of $@ so you can do things like this after throws_ok and dies_ok
like $@, what the stringified exception should look like;
# Check that a test runs without an exception
lives_and { is $foo->method, 42 } method is 42;
# or if you dont like prototyped functions
dies_ok( sub { $foo->method1 }, expecting to die );
lives_ok( sub { $foo->method2 }, expecting to live );
throws_ok( sub { $foo->method3 }, qr/division by zero/,
zero caught okay );
throws_ok( sub { $foo->method4 }, Error::Simple,
simple error thrown );
lives_and( sub { is $foo->method, 42 }, method is 42 );
Download (0.011MB)
Added: 2007-05-03 License: Perl Artistic License Price:
904 downloads
SnapMatcher 0.4
SnapMatcher provides an application to identify near-identical or similar images in large collections.c more>>
SnapMatcher provides an application to identify near-identical or similar images in large collections.
SnapMatcher is an application intended for photographers, artists, or image packrats who have very large collections of digital images, some of which may be duplicates or near duplicates.
By identifying images across multiple formats with the ability to filter out minor edits such as changes to contrast, brightness, color balance, resizing, or even the addition of text or borders, SnapMatcher can be a valuable tool in organizing/culling unwieldy collections.
Main features:
- Ability to create multiple image databases for later queries
- Customizable matching threshold allowing results to be generated anywhere from near exact matches only to identification of distinct images with very similar appearances
- Support of most standard image formats (JPEG, GIF, TIFF, PNG, and BMP by default, other formats possible using command line arguments)
- Ability to specify image types by extension in image DB creation process
- Output of match results into a simple text file
Install
Simply unzip SnapMatcher-src-0.1.tar.gz in an appropriate location. A directory
"snapmatcher" will be created containing the Python sources need to run the
application. Then run the application by executing:
# python SnapMatcher.py
inside the directory from your systems command line.vv
Enhancements:
- This release adds the ability to quickly match a small set of images against any image database.
- It re-fixes the bug preventing the directory scan process in database creation from working on Windows (the fix in version 0.3 was flawed).
- It adds PCX, PPM, XPM, and XBM to the previous default image extensions (JPG, JPEG, JPE, PNG, GIF, TIF, TIFF, and BMP) used when creating an image database.
- It improves reliability for the database and matches file updates by first writing updates to a temp file, so the original files are unmodified in the case of program interruption.
- It improves the efficiency of database updates.
<<lessSnapMatcher is an application intended for photographers, artists, or image packrats who have very large collections of digital images, some of which may be duplicates or near duplicates.
By identifying images across multiple formats with the ability to filter out minor edits such as changes to contrast, brightness, color balance, resizing, or even the addition of text or borders, SnapMatcher can be a valuable tool in organizing/culling unwieldy collections.
Main features:
- Ability to create multiple image databases for later queries
- Customizable matching threshold allowing results to be generated anywhere from near exact matches only to identification of distinct images with very similar appearances
- Support of most standard image formats (JPEG, GIF, TIFF, PNG, and BMP by default, other formats possible using command line arguments)
- Ability to specify image types by extension in image DB creation process
- Output of match results into a simple text file
Install
Simply unzip SnapMatcher-src-0.1.tar.gz in an appropriate location. A directory
"snapmatcher" will be created containing the Python sources need to run the
application. Then run the application by executing:
# python SnapMatcher.py
inside the directory from your systems command line.vv
Enhancements:
- This release adds the ability to quickly match a small set of images against any image database.
- It re-fixes the bug preventing the directory scan process in database creation from working on Windows (the fix in version 0.3 was flawed).
- It adds PCX, PPM, XPM, and XBM to the previous default image extensions (JPG, JPEG, JPE, PNG, GIF, TIF, TIFF, and BMP) used when creating an image database.
- It improves reliability for the database and matches file updates by first writing updates to a temp file, so the original files are unmodified in the case of program interruption.
- It improves the efficiency of database updates.
Download (0.014MB)
Added: 2007-03-19 License: GPL (GNU General Public License) Price:
949 downloads
autoblock.so 0.2 pre2
autoblock.so is a Gaim plugin that automatically blocks nicknames or messages that match regular expressions. more>>
This is a Gaim plugin that automatically blocks nicknames or messages based on regular expression matches. Right now it only works with yahoo since those are the only chat rooms I visit using gaim.
Installation:
To install, copy autoblock.c and autoblock.h to /path/to/gaim/sources/plugins and type "PLUGIN_LIBS=-lpcre make autoblock.so".
Then copy autoblock.so to your gaim plugins directory (On unices it is ~/.gaim/plugins).
The files ab_nicks.txt and ab_messages.txt are supplied; I spent a little time culling them; and they get most of the bots in the rooms I have been in.
Copy them to your gaim home dir (~/.gaim on unices).
Enhancements:
- Really fixed the problem with blocking IMs even when not chatting.
- Fixed the hang/crash when a non-yahoo IM is recieved.
NOTE - many of the preferences that used to be available are no longer available due to changes in the Gaim API and program flow.
<<lessInstallation:
To install, copy autoblock.c and autoblock.h to /path/to/gaim/sources/plugins and type "PLUGIN_LIBS=-lpcre make autoblock.so".
Then copy autoblock.so to your gaim plugins directory (On unices it is ~/.gaim/plugins).
The files ab_nicks.txt and ab_messages.txt are supplied; I spent a little time culling them; and they get most of the bots in the rooms I have been in.
Copy them to your gaim home dir (~/.gaim on unices).
Enhancements:
- Really fixed the problem with blocking IMs even when not chatting.
- Fixed the hang/crash when a non-yahoo IM is recieved.
NOTE - many of the preferences that used to be available are no longer available due to changes in the Gaim API and program flow.
Download (0.013MB)
Added: 2005-07-04 License: GPL (GNU General Public License) Price:
873 downloads
libsharedmime 0.5
libsharedmime is a library for reading freedesktop.orgs shared MIME database. more>>
libsharedmime is a library for reading freedesktop.orgs shared MIME database.
Installation:
All that should be required to install this is:
make
make install
Which will put libsharedmime1.so into /usr/local/lib and mime-types.h into /usr/local/include.
ToDo:
Fix the makefile to have proper dependency handling.
Write a ./configure script.
Write some docs.
Finish the other API functions (what do they actually do?).
Test some more. "Works for me".
Enhancements:
- Added code to check for a text file if the content lookup fails, if it matches it gets a text/plain type.
- Stopped the content lookup being performed on directories.
- Fixed a bug in the magic matching code that caused valid matches to fail. This means that some files will now return the correct mime type as opposed to a default "not found" type.
<<lessInstallation:
All that should be required to install this is:
make
make install
Which will put libsharedmime1.so into /usr/local/lib and mime-types.h into /usr/local/include.
ToDo:
Fix the makefile to have proper dependency handling.
Write a ./configure script.
Write some docs.
Finish the other API functions (what do they actually do?).
Test some more. "Works for me".
Enhancements:
- Added code to check for a text file if the content lookup fails, if it matches it gets a text/plain type.
- Stopped the content lookup being performed on directories.
- Fixed a bug in the magic matching code that caused valid matches to fail. This means that some files will now return the correct mime type as opposed to a default "not found" type.
Download (0.017MB)
Added: 2005-09-30 License: LGPL (GNU Lesser General Public License) Price:
1484 downloads
streamripagent 0.2
streamripagent is a simple Amarok script that watches the tracks streamed in Amarok. more>>
streamripagent is a simple Amarok script that watches the tracks streamed in Amarok. If any of the regexps in ~/.streamripagent matches the current title, streamripper is started and the track is ripped to a specified directory.
Its not exactly an amarok script that you can manage with the amarok script manager, but its related to amarok, so I put it in this category.
Please read the README before installing and running streamripagent!
<<lessIts not exactly an amarok script that you can manage with the amarok script manager, but its related to amarok, so I put it in this category.
Please read the README before installing and running streamripagent!
Download (0.012MB)
Added: 2007-08-09 License: GPL (GNU General Public License) Price:
810 downloads
I18N::AcceptLanguage 1.04
I18N::AcceptLanguage is a Perl module that matches language preference to available languages. more>>
I18N::AcceptLanguage is a Perl module that matches language preference to available languages.
SYNOPSIS
use I18N::AcceptLanguage;
my $supportedLanguages = [( en-us, fr )];
my $acceptor = I18N::AcceptLanguage->new();
my $language = $acceptor->accepts($ENV{HTTP_ACCEPT_LANGUAGE},
$supportedLanguages);
I18N::AcceptLanguage matches language preference to available languages per rules defined in RFC 2616, section 14.4: HTTP/1.1 - Header Field Definitions - Accept-Language.
PUBLIC METHODS
accepts( CLIENT_PREFERENCES, SUPPORTED_LANGUAGES )
Returns the highest priority common language between client and server. If no common language is found, the defaultLanguage is returned. If defaultLanuage is also not set, an empty string is returned. The method expects two arguments:
CLIENT_PREFERENCES
A string in the same format defined in RFC 2616, quoted here:
1#( ( ( 1*8ALPHA *( "-" 1*8ALPHA ) ) | "*" ) [ "" "q" "=" qvalue ] )
Examples:
da, en-gb;q=0.8, en;q=0.7
en-us, ja, *
SUPPORTED_LANGUAGES
A reference to a list of language ranges supported by the server.
new( [ OPTIONS ] )
Returns a new I18N::AcceptLanguage object. The method accepts the following key/value pair options:
debug
A boolean set to either 0 or 1. When set to 1, debug messages will be printed to STDOUT. The value of debug defaults to 0.
defaultLanguage
A string representing the servers default language choice. The value of defaultLanguage defaults to an empty string.
strict
A boolean set to either 0 or 1. When set to 1, the software strictly conforms to the protocol specification. When set to 0, the software will perform a secondary, aggressive language match regardless of country (ie, a client asking for only en-gb will get back en-us if the server does not accept en-gb or en but does accept en-us). The last matching language in the supported languages list will be chosen. The value of strict defaults to 1.
<<lessSYNOPSIS
use I18N::AcceptLanguage;
my $supportedLanguages = [( en-us, fr )];
my $acceptor = I18N::AcceptLanguage->new();
my $language = $acceptor->accepts($ENV{HTTP_ACCEPT_LANGUAGE},
$supportedLanguages);
I18N::AcceptLanguage matches language preference to available languages per rules defined in RFC 2616, section 14.4: HTTP/1.1 - Header Field Definitions - Accept-Language.
PUBLIC METHODS
accepts( CLIENT_PREFERENCES, SUPPORTED_LANGUAGES )
Returns the highest priority common language between client and server. If no common language is found, the defaultLanguage is returned. If defaultLanuage is also not set, an empty string is returned. The method expects two arguments:
CLIENT_PREFERENCES
A string in the same format defined in RFC 2616, quoted here:
1#( ( ( 1*8ALPHA *( "-" 1*8ALPHA ) ) | "*" ) [ "" "q" "=" qvalue ] )
Examples:
da, en-gb;q=0.8, en;q=0.7
en-us, ja, *
SUPPORTED_LANGUAGES
A reference to a list of language ranges supported by the server.
new( [ OPTIONS ] )
Returns a new I18N::AcceptLanguage object. The method accepts the following key/value pair options:
debug
A boolean set to either 0 or 1. When set to 1, debug messages will be printed to STDOUT. The value of debug defaults to 0.
defaultLanguage
A string representing the servers default language choice. The value of defaultLanguage defaults to an empty string.
strict
A boolean set to either 0 or 1. When set to 1, the software strictly conforms to the protocol specification. When set to 0, the software will perform a secondary, aggressive language match regardless of country (ie, a client asking for only en-gb will get back en-us if the server does not accept en-gb or en but does accept en-us). The last matching language in the supported languages list will be chosen. The value of strict defaults to 1.
Download (0.009MB)
Added: 2007-03-13 License: Perl Artistic License Price:
956 downloads
Test::Cmd 1.05
Test::Cmd is a Perl module for portable testing of commands and scripts. more>>
Test::Cmd is a Perl module for portable testing of commands and scripts.
SYNOPSIS
use Test::Cmd;
$test = Test::Cmd->new(prog => program_or_script_to_test,
interpreter => script_interpreter,
string => identifier_string,
workdir => ,
subdir => dir,
match_sub => $code_ref,
verbose => 1);
$test->verbose(1);
$test->prog(program_or_script_to_test);
$test->basename(@suffixlist);
$test->interpreter(script_interpreter);
$test->string(identifier string);
$test->workdir(prefix);
$test->workpath(subdir, file);
$test->subdir(subdir, ...);
$test->subdir([sub, dir], ...);
$test->write(file, read($contents, [subdir, file]);
$test->read(@lines, [subdir, file]);
$test->writable(dir);
$test->writable(dir, $rwflag);
$test->writable(dir, $rwflag, %errors);
$test->preserve(condition, ...);
$test->cleanup(condition);
$test->run(prog => program_or_script_to_test,
interpreter => script_interpreter,
chdir => dir, args => arguments, stdin => pass(condition, &func);
$test->fail(condition);
$test->fail(condition, &func);
$test->fail(condition, &func, $caller);
$test->no_result(condition);
$test->no_result(condition, &func);
$test->no_result(condition, &func, $caller);
$test->stdout;
$test->stdout($run_number);
$test->stderr;
$test->stderr($run_number);
$test->match(@lines, @matches);
$test->match($lines, $matches);
$test->match_exact(@lines, @matches);
$test->match_exact($lines, $matches);
$test->match_regex(@lines, @regexes);
$test->match_regex($lines, $regexes);
$test->diff_exact(@lines, @matches, @output);
$test->diff_exact($lines, $matches, @output);
$test->diff_regex(@lines, @regexes, @output);
$test->diff_regex($lines, $regexes, @output);
sub func {
my ($self, $lines, $matches) = @_;
# code to match $lines and $matches
}
$test->match_sub(&func);
$test->match_sub(sub { code to match $_[1] and $_[2] });
$test->here;
The Test::Cmd module provides a low-level framework for portable automated testing of executable commands and scripts (in any language, not just Perl), especially commands and scripts that interact with the file system.
The Test::Cmd module makes no assumptions about what constitutes a successful or failed test. Attempting to read a file that doesnt exist, for example, may or may not be an error, depending on the software being tested.
Consequently, no Test::Cmd methods (including the new() method) exit, die or throw any other sorts of exceptions (but they all do return useful error indications). Exceptions or other error status should be handled by a higher layer: a subclass of Test::Cmd, or another testing framework such as the Test or Test::Simple Perl modules, or by the test itself.
(That said, see the Test::Cmd::Common module if you want a similar module that provides exception handling, either to use directly in your own tests, or as an example of how to use Test::Cmd.)
In addition to running tests and evaluating conditions, the Test::Cmd module manages and cleans up one or more temporary workspace directories, and provides methods for creating files and directories in those workspace directories from in-line data (that is, here-documents), allowing tests to be completely self-contained. When used in conjunction with another testing framework, the Test::Cmd module can function as a fixture (common startup code for multiple tests) for simple management of command execution and temporary workspaces.
The Test::Cmd module inherits File::Spec methods (file_name_is_absolute(), catfile(), etc.) to support writing tests portably across a variety of operating and file systems.
A Test::Cmd environment object is created via the usual invocation:
$test = Test::Cmd->new();
Arguments to the Test::Cmd::new method are keyword-value pairs that may be used to initialize the object, typically by invoking the same-named method as the keyword.
<<lessSYNOPSIS
use Test::Cmd;
$test = Test::Cmd->new(prog => program_or_script_to_test,
interpreter => script_interpreter,
string => identifier_string,
workdir => ,
subdir => dir,
match_sub => $code_ref,
verbose => 1);
$test->verbose(1);
$test->prog(program_or_script_to_test);
$test->basename(@suffixlist);
$test->interpreter(script_interpreter);
$test->string(identifier string);
$test->workdir(prefix);
$test->workpath(subdir, file);
$test->subdir(subdir, ...);
$test->subdir([sub, dir], ...);
$test->write(file, read($contents, [subdir, file]);
$test->read(@lines, [subdir, file]);
$test->writable(dir);
$test->writable(dir, $rwflag);
$test->writable(dir, $rwflag, %errors);
$test->preserve(condition, ...);
$test->cleanup(condition);
$test->run(prog => program_or_script_to_test,
interpreter => script_interpreter,
chdir => dir, args => arguments, stdin => pass(condition, &func);
$test->fail(condition);
$test->fail(condition, &func);
$test->fail(condition, &func, $caller);
$test->no_result(condition);
$test->no_result(condition, &func);
$test->no_result(condition, &func, $caller);
$test->stdout;
$test->stdout($run_number);
$test->stderr;
$test->stderr($run_number);
$test->match(@lines, @matches);
$test->match($lines, $matches);
$test->match_exact(@lines, @matches);
$test->match_exact($lines, $matches);
$test->match_regex(@lines, @regexes);
$test->match_regex($lines, $regexes);
$test->diff_exact(@lines, @matches, @output);
$test->diff_exact($lines, $matches, @output);
$test->diff_regex(@lines, @regexes, @output);
$test->diff_regex($lines, $regexes, @output);
sub func {
my ($self, $lines, $matches) = @_;
# code to match $lines and $matches
}
$test->match_sub(&func);
$test->match_sub(sub { code to match $_[1] and $_[2] });
$test->here;
The Test::Cmd module provides a low-level framework for portable automated testing of executable commands and scripts (in any language, not just Perl), especially commands and scripts that interact with the file system.
The Test::Cmd module makes no assumptions about what constitutes a successful or failed test. Attempting to read a file that doesnt exist, for example, may or may not be an error, depending on the software being tested.
Consequently, no Test::Cmd methods (including the new() method) exit, die or throw any other sorts of exceptions (but they all do return useful error indications). Exceptions or other error status should be handled by a higher layer: a subclass of Test::Cmd, or another testing framework such as the Test or Test::Simple Perl modules, or by the test itself.
(That said, see the Test::Cmd::Common module if you want a similar module that provides exception handling, either to use directly in your own tests, or as an example of how to use Test::Cmd.)
In addition to running tests and evaluating conditions, the Test::Cmd module manages and cleans up one or more temporary workspace directories, and provides methods for creating files and directories in those workspace directories from in-line data (that is, here-documents), allowing tests to be completely self-contained. When used in conjunction with another testing framework, the Test::Cmd module can function as a fixture (common startup code for multiple tests) for simple management of command execution and temporary workspaces.
The Test::Cmd module inherits File::Spec methods (file_name_is_absolute(), catfile(), etc.) to support writing tests portably across a variety of operating and file systems.
A Test::Cmd environment object is created via the usual invocation:
$test = Test::Cmd->new();
Arguments to the Test::Cmd::new method are keyword-value pairs that may be used to initialize the object, typically by invoking the same-named method as the keyword.
Download (0.030MB)
Added: 2007-02-23 License: Perl Artistic License Price:
978 downloads
Championship Generator 3.2
Championship Generator produces a list of all the meetings which must occur between the participants of a championship. more>>
Championship Generator produces a list of all the meetings which must occur between the participants of a championship.
It can be used to produce the challenges between teams if competitions are not foreseen to directed elimination. Championship Generator project supports championships where it is necessary to consider the matches at home and away.
It can also try to avoid fights between the big teams in the first and last days. It also supports the case in which two teams have a mutual stadium, and therefore cannot simultaneously play at home or away.
<<lessIt can be used to produce the challenges between teams if competitions are not foreseen to directed elimination. Championship Generator project supports championships where it is necessary to consider the matches at home and away.
It can also try to avoid fights between the big teams in the first and last days. It also supports the case in which two teams have a mutual stadium, and therefore cannot simultaneously play at home or away.
Download (0.60MB)
Added: 2006-01-06 License: GPL (GNU General Public License) Price:
785 downloads
Regexp::MatchContext 0.0.2
Regexp::MatchContext is Perl module to replace (and improve) $MATCH, $PREMATCH, and $POSTMATCH more>>
Regexp::MatchContext is Perl module to replace (and improve) $MATCH, $PREMATCH, and $POSTMATCH
SYNOPSIS
use Regexp::MatchContext -vars;
$str = m/(?p) d+ /;
print "Before: $PREMATCHn";
print "Matched: $MATCHn";
print "After: $POSTMATCHn";
$MATCH = 2 * $MATCH; # substitute into original $str
The English.pm module provides named aliases for Perls built-in $`, $& and $ variables: $PREMATCH, $MATCH, and $POSTMATCH. Unfortunately, those aliases suffer the same problems as their originals: they degrade the performance of every single regex in your program, even if youre only using them to get information about a single match.
This module also provides $PREMATCH, $MATCH, and $POSTMATCH, but in a way that only impacts the performance of matches that you specify. That is, these three variables are only set if the most recently matched regex contained the special (non-standard) meta- flag: (?p).
That is:
use Regexp::MatchContext -vars;
$str = foobarbaz;
$str =~ /(?p) foo /x;
# $PREMATCH contains foo
# $MATCH contains bar
# $POSTMATCH contains baz
$str =~ / foo /x;
# $PREMATCH, $MATCH, and $POSTMATCH all undef
The (?p) marker can be placed anywhere within the regex and, except for setting the three context variables on a successful match, is otherwise totally ignored.
<<lessSYNOPSIS
use Regexp::MatchContext -vars;
$str = m/(?p) d+ /;
print "Before: $PREMATCHn";
print "Matched: $MATCHn";
print "After: $POSTMATCHn";
$MATCH = 2 * $MATCH; # substitute into original $str
The English.pm module provides named aliases for Perls built-in $`, $& and $ variables: $PREMATCH, $MATCH, and $POSTMATCH. Unfortunately, those aliases suffer the same problems as their originals: they degrade the performance of every single regex in your program, even if youre only using them to get information about a single match.
This module also provides $PREMATCH, $MATCH, and $POSTMATCH, but in a way that only impacts the performance of matches that you specify. That is, these three variables are only set if the most recently matched regex contained the special (non-standard) meta- flag: (?p).
That is:
use Regexp::MatchContext -vars;
$str = foobarbaz;
$str =~ /(?p) foo /x;
# $PREMATCH contains foo
# $MATCH contains bar
# $POSTMATCH contains baz
$str =~ / foo /x;
# $PREMATCH, $MATCH, and $POSTMATCH all undef
The (?p) marker can be placed anywhere within the regex and, except for setting the three context variables on a successful match, is otherwise totally ignored.
Download (0.005MB)
Added: 2007-01-26 License: Perl Artistic License Price:
1001 downloads
Apache::TimedRedirect 0.13
Apache::TimedRedirect is an Apache (mod_perl) TransHandler. more>>
Apache::TimedRedirect is an Apache (mod_perl) TransHandler.
SYNOPSIS
use Apache::TimedRedirect;
requires TimePeriod be installed (go to nearest CPAN)
requires Apache have mod_perl installed.
httpd.conf entry...
**** NOTE ***
CANNOT be inside < LOCATION >< /LOCATION > tags
PerlTransHandler Apache::TimedRedirect
PerlSetVar B< redirecturl > http://www.somewhere.far/
PerlSetVar B< timewindow > hr {6am-8pm}
PerlSetVar B< uriregex > foo|bar|do or maybe ..*(foo)>
PerlSetVar B< log > 1
PerlSetVar B< excludeip > 127.0.0.0
Apache::TimedRedirect is a mod_perl TransHandler module that allows the configuration of a timed redirect. In other words if someone enters a a website and the URI matches a regex AND it is within a certain time period they will be redirected somewhere else.
It was first created to politely redirect visitors away from database driven sections of a website while the databases were being refreshed.
<<lessSYNOPSIS
use Apache::TimedRedirect;
requires TimePeriod be installed (go to nearest CPAN)
requires Apache have mod_perl installed.
httpd.conf entry...
**** NOTE ***
CANNOT be inside < LOCATION >< /LOCATION > tags
PerlTransHandler Apache::TimedRedirect
PerlSetVar B< redirecturl > http://www.somewhere.far/
PerlSetVar B< timewindow > hr {6am-8pm}
PerlSetVar B< uriregex > foo|bar|do or maybe ..*(foo)>
PerlSetVar B< log > 1
PerlSetVar B< excludeip > 127.0.0.0
Apache::TimedRedirect is a mod_perl TransHandler module that allows the configuration of a timed redirect. In other words if someone enters a a website and the URI matches a regex AND it is within a certain time period they will be redirected somewhere else.
It was first created to politely redirect visitors away from database driven sections of a website while the databases were being refreshed.
Download (0.003MB)
Added: 2007-07-21 License: Perl Artistic License Price:
825 downloads
Gestinanna::Util 0.02
Gestinanna::Util Perl module contains utility functions. more>>
Gestinanna::Util Perl module contains utility functions.
SYNOPSIS
use Gestinanna::Util qw(:path);
my $regex = path2regex($path)
my $cmp = path_cmp($path_a, $path_b);
use Gestinanna::Util qw(:hash);
my $new_hash = deep_merge_hash(@hashes);
This module provides utility functions that have no better place to be. Sets of utility functions may be imported by specifying their tags.
:path
Imports: path2regex, path_cmp
PATHS
Paths are made up of a sub-set of the XPath language:
/
The slash (/) is the component separator. Alone, it describes the root of the
resource heirarchy.
//
The double slash (//) stands in place of any number of components (zero or more). Alone, it matches any possible path that does not specify attributes or a final component. To match any component with any attributes, use //*|//*@*.
@
The at sign (@) is the attribute separator. A path should only have one. It separates the final component from any attribute. If no attribute follows it, it stands for the general collection of attributes for an object.
|
The pipe symbol (|) separates paths which together specify a union.
&
The ampersand (&) separates paths which together specify an intersection. Intersection has higher precedence to union. For example, the path //a/* & //*@name | //b/* is considered to be (//a/* & //*@name) | //b/*, not //a/* & (//*@name | //b/*). There are no parenthesis for grouping in actual path expressions.
!
An odd number of initial bangs (!) will negate the following clause, up to a pipe (|) or ampersand (&). An even number of initial bangs will have no effect.
Examples:
The following are some examples of paths.
//*
This matches any path. Attaching attributes to this path will apply them to all objects.
//*@name
This matches the name attribute of all objects.
//*/*
This matches any component that is not at the top-level.
!//a//* & //b//*
This matches any path that has a b component and not an a component.
<<lessSYNOPSIS
use Gestinanna::Util qw(:path);
my $regex = path2regex($path)
my $cmp = path_cmp($path_a, $path_b);
use Gestinanna::Util qw(:hash);
my $new_hash = deep_merge_hash(@hashes);
This module provides utility functions that have no better place to be. Sets of utility functions may be imported by specifying their tags.
:path
Imports: path2regex, path_cmp
PATHS
Paths are made up of a sub-set of the XPath language:
/
The slash (/) is the component separator. Alone, it describes the root of the
resource heirarchy.
//
The double slash (//) stands in place of any number of components (zero or more). Alone, it matches any possible path that does not specify attributes or a final component. To match any component with any attributes, use //*|//*@*.
@
The at sign (@) is the attribute separator. A path should only have one. It separates the final component from any attribute. If no attribute follows it, it stands for the general collection of attributes for an object.
|
The pipe symbol (|) separates paths which together specify a union.
&
The ampersand (&) separates paths which together specify an intersection. Intersection has higher precedence to union. For example, the path //a/* & //*@name | //b/* is considered to be (//a/* & //*@name) | //b/*, not //a/* & (//*@name | //b/*). There are no parenthesis for grouping in actual path expressions.
!
An odd number of initial bangs (!) will negate the following clause, up to a pipe (|) or ampersand (&). An even number of initial bangs will have no effect.
Examples:
The following are some examples of paths.
//*
This matches any path. Attaching attributes to this path will apply them to all objects.
//*@name
This matches the name attribute of all objects.
//*/*
This matches any component that is not at the top-level.
!//a//* & //b//*
This matches any path that has a b component and not an a component.
Download (0.21MB)
Added: 2007-07-06 License: Perl Artistic License Price:
840 downloads
Hub::Perl::Language 04.00.012
Hub::Perl::Language is a Perl module that contains a lot of methods. more>>
Hub::Perl::Language is a Perl module that contains a lot of methods.
PUBLIC METHODS
sizeof
Integer size of hashes, arrays, and scalars
Usage: sizeof %hash
Usage: sizeof @array
Usage: sizeof $scalar_ref
Usage: sizeof $scalar
Usage: sizeof %more, @than, $one
Sizes are computed as follows:
HASH - Number of keys in the hash
ARRAY - Number of elements
SCALAR - Length as returned by C
The total size of all arguments is returned.
Example: Hash: (matches)
sizeof( { a=>1, b=>2, c=>3 } );
3
Example: Array: (matches)
sizeof( [ a1, b2, c3 ] );
3
Example: Scalar: (matches)
sizeof( "abc" );
3
Example: Scalar (ref): (matches)
sizeof( "abc" );
3
Example: Nothing: (matches)
sizeof( undef );
0
Example: Multiple values: (matches)
sizeof( "a", "b", "c" );
3
check
True if all items in list pass the test.
Usage: check [OPTIONS], [TEST], LIST
<<lessPUBLIC METHODS
sizeof
Integer size of hashes, arrays, and scalars
Usage: sizeof %hash
Usage: sizeof @array
Usage: sizeof $scalar_ref
Usage: sizeof $scalar
Usage: sizeof %more, @than, $one
Sizes are computed as follows:
HASH - Number of keys in the hash
ARRAY - Number of elements
SCALAR - Length as returned by C
The total size of all arguments is returned.
Example: Hash: (matches)
sizeof( { a=>1, b=>2, c=>3 } );
3
Example: Array: (matches)
sizeof( [ a1, b2, c3 ] );
3
Example: Scalar: (matches)
sizeof( "abc" );
3
Example: Scalar (ref): (matches)
sizeof( "abc" );
3
Example: Nothing: (matches)
sizeof( undef );
0
Example: Multiple values: (matches)
sizeof( "a", "b", "c" );
3
check
True if all items in list pass the test.
Usage: check [OPTIONS], [TEST], LIST
Download (0.14MB)
Added: 2007-07-06 License: Perl Artistic License Price:
840 downloads
Visual REGEXP 3.1
Visual REGEXP lets you easily design and debug regular expressions. more>>
Visual REGEXP project can easily design and debug regular expressions by providing a graphical visualization of the expression and its matches on a sample of your choice.
Version restrictions:
- some regexp can consume a lot of CPU time. This seems to be caused by the use of -all, -inline and -indices flags together.
- when a subexpression is not matched (empty match), the last character of the previous match are coloured. This is due to a problem in Tcl (bug submitted to Scriptics).
Enhancements:
- new version done by Martin Lemburg. Many thanks, Martin.
- it is now a tcl 8.5a4 starpack
- GUI layout changed to be based on a paned window
- GUI code looks different, to be more ergonomic
- the informational labels (replacements & matches) are now sunken
- there are now additional the "first" and "last" navigation buttons
- there is a new option to navigate through matches or matches and submatches
- the displayed count of matches is changed to display the current and the count of matches used for navigation (probably changes, if the new navigation option is changed)
- the replace widget is disabled on startup
- the tcl console is added to the help menu
- the key bindings inside the regexp text widget changed a bit to allow for expanded regexp (-expanded or (?x)) to contain tabs and newlines. Tabs are created with Control-Tab and newlines with Control-Return. Additional with Control-C|V|X (not c|v|x) it is possible to use the clipboard like with Control|Shift-Insert, Shift-Delete.
<<lessVersion restrictions:
- some regexp can consume a lot of CPU time. This seems to be caused by the use of -all, -inline and -indices flags together.
- when a subexpression is not matched (empty match), the last character of the previous match are coloured. This is due to a problem in Tcl (bug submitted to Scriptics).
Enhancements:
- new version done by Martin Lemburg. Many thanks, Martin.
- it is now a tcl 8.5a4 starpack
- GUI layout changed to be based on a paned window
- GUI code looks different, to be more ergonomic
- the informational labels (replacements & matches) are now sunken
- there are now additional the "first" and "last" navigation buttons
- there is a new option to navigate through matches or matches and submatches
- the displayed count of matches is changed to display the current and the count of matches used for navigation (probably changes, if the new navigation option is changed)
- the replace widget is disabled on startup
- the tcl console is added to the help menu
- the key bindings inside the regexp text widget changed a bit to allow for expanded regexp (-expanded or (?x)) to contain tabs and newlines. Tabs are created with Control-Tab and newlines with Control-Return. Additional with Control-C|V|X (not c|v|x) it is possible to use the clipboard like with Control|Shift-Insert, Shift-Delete.
Download (0.025MB)
Added: 2006-03-08 License: GPL (GNU General Public License) Price:
1329 downloads
Livestat 1.2
Livestat project is a statistics management system for academic competition tournaments. more>>
Livestat project is a statistics management system for academic competition tournaments.
Livestat is a Perl-based statistics management system designed for academic competition tournaments, a.k.a "College Bowl" or "quiz bowl" events.
Livestat is used to automate the processing of statistics from individual matches, and to quickly publish statistics on teams and players to the Web.
Enhancements:
- Now sorts teams by name when printing list in game.pl.
- New files common.head and common.foot store the top and bottom of all HTML pages to be generated.
- No longer prints "N/A: " in round views when no player has a positive score.
- Restructured head2head hash in standings.pl; now has fields for wins, losses, ties, points-for, and points-against.
- Added style number in tables -- useful for right-aligning numeric fields
<<lessLivestat is a Perl-based statistics management system designed for academic competition tournaments, a.k.a "College Bowl" or "quiz bowl" events.
Livestat is used to automate the processing of statistics from individual matches, and to quickly publish statistics on teams and players to the Web.
Enhancements:
- Now sorts teams by name when printing list in game.pl.
- New files common.head and common.foot store the top and bottom of all HTML pages to be generated.
- No longer prints "N/A: " in round views when no player has a positive score.
- Restructured head2head hash in standings.pl; now has fields for wins, losses, ties, points-for, and points-against.
- Added style number in tables -- useful for right-aligning numeric fields
Download (MB)
Added: 2006-10-27 License: GPL (GNU General Public License) Price:
1092 downloads
XSearch 0.4.1 Alpha
XSearch bridges the gap between Beagle and find/grep. more>>
XSearch project bridges the gap between Beagle (simple interface, large search net) and find/grep (powerful searching, small search net).
What is XSearch?
A fast real-time search engine for displaying all regular expression matches within a file, across multiple directories.
Why XSearch?
Linux currently has two leading search methods:
1.Beagle – simple to use, but shows too many matches.
2.Find/Grep – hard to use, but provides exact matching.
XSearch tales the best features from both.
It provides a simple to use interface, but has the power of find and grep combined. In addition, the end search result is an easy to browse list of matching files, and matching lines.
Who would benefit from XSearch?
Software engineers mainly, but anyone who has a large number of pure text files will benefit.
Searching a large amount of source code, across many directories, is both tedious, and time consuming. Think of this tool as a helper to finding that needle in a haystack!
How many times as a software engineer do you find it essential to search code looking for specific functions, or declarations within the source code? Now with XSearch, you can quickly look-up the code locations, and often get the info without having to open the file in your editor.
<<lessWhat is XSearch?
A fast real-time search engine for displaying all regular expression matches within a file, across multiple directories.
Why XSearch?
Linux currently has two leading search methods:
1.Beagle – simple to use, but shows too many matches.
2.Find/Grep – hard to use, but provides exact matching.
XSearch tales the best features from both.
It provides a simple to use interface, but has the power of find and grep combined. In addition, the end search result is an easy to browse list of matching files, and matching lines.
Who would benefit from XSearch?
Software engineers mainly, but anyone who has a large number of pure text files will benefit.
Searching a large amount of source code, across many directories, is both tedious, and time consuming. Think of this tool as a helper to finding that needle in a haystack!
How many times as a software engineer do you find it essential to search code looking for specific functions, or declarations within the source code? Now with XSearch, you can quickly look-up the code locations, and often get the info without having to open the file in your editor.
Download (0.13MB)
Added: 2006-08-30 License: LGPL (GNU Lesser General Public License) Price:
1152 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 matches at wrestlemania 25 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