arbitrary
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 511
Arbitrary Command Output Colourer 0.7.1
acoc is a regular-expression based colour formatter for programs that display output on the command-line. more>>
acoc is a regular-expression based colour formatter for programs that display output on the command-line. It works as a wrapper around the target program, executing it and capturing the stdout stream. Optionally, stderr can be redirected to stdout, so that it, too, can be manipulated. acoc then applies matching rules to patterns in the output and applies colours to those matches.
Ever wondered why the output of your favourite UNIX/Linux commands is still displayed in black-and-white after all these years?
Ever had to search back through your scroll-buffer in search of gcc errors and salient information to tell you what went wrong with your programs execution?
acoc is a regular expression based colour formatter for programs that display output on the command-line. It works as a wrapper around the target program, executing it and capturing the stdout stream. Optionally, stderr can be redirected to stdout, so that it, too, can be manipulated.
acoc then applies matching rules to patterns in the output and applies colour sets to those matches. A picture is worth a thousand words, so look at the sample screenshots in the next section.
Configuration
The configuration files used by the program are /usr/local/etc/acoc.conf, /etc/acoc.conf and ~/acoc.conf. One or more of these must exist. A sample /etc/acoc.conf is supplied with some example matching rules.
Blank lines and those that begin with a # are ignored.
A program configuration stanza is introduced as follows:
[program_spec]
The square brackets are mandatory literal characters. Alternatively, the @ symbol may be used, to allow [ and ] to retain their usual semantics in program specs comprising a regular expression:
@program_spec@
program_spec is defined as one or more instances of the following component, separated by a comma:
invocation[/flags]
where invocation consists of the programs name (not including its directory path component) plus any initial arguments.
Alternatively, invocation may be a regular expression, which can be used to match multiple programs and/or command-line arguments in arbitrary order. Regular expressions are automatically anchored to the beginning of the command line.
flags, if present, is separated from invocation by a slash and consists of one or more of the following characters:
a
continue to attempt to find matching patterns after the first match has been found. By default, acoc will stop processing a line and display it after the first match has been found.
e
redirect the target programs stderr to stdout, allowing it, too, to be matched by rules
p
allocate a pseudo-terminal in which to run the target program
Some programs, such as ls(1), behave differently when their stdout is not connected to a tty. Use of this option will fool the target program into believing it is outputting to a tty, rather than a pipe to acoc.
Use of this flag requires Masahiro Tomitas Ruby/TPty library to be installed. Otherwise, the flag is silently ignored.
Note that the pseudo-terminal communication enabled by this flag is one-way only, from the target program to acoc. It is thus not possible to use acoc in combination with interactive programs, such as the interactive Ruby interpreter (irb).
t
apply colour formatting even if stdout is not a tty. By default, formatting is not applied if the output stream is not attached to a terminal.
Heres an example of a line that introduces a configuration stanza:
[rpm/ae,rpmbuild/ae]
which says to apply the following rules to the rpm and rpmbuild commands, attempt to apply all matching rules, and also apply those rules to the programs stderr stream.
Another example:
[ls/p]
This says to allocate a pseudo-terminal to ls(1), fooling it into believing that its output is being sent to a regular terminal instead of a pipe to acoc.
With this flag, the effect will be this:
$ ls
file1 file2 file3 file4 file5 file6
Without it, ls will detect that its stdout is connected to a pipe and behave accordingly:
$ ls
file1
file2
file3
file4
file5
file6
A third example:
[diff/t,rcsdiff/t,cvs diff/t,p4 diff/t]
This says that the rules that follow should be applied to all invocations of diff(1) and rcsdiff(1), as well as those invocations of cvs(1) and p4 that are followed by the argument diff.
Additionally, colouring should be applied even when stdout is not connected to a tty, so that the colours still show up when the output is displayed in a pager such as more(1) or less(1).
Yet another example:
/ps -.*(e.*f|f.*e)/
In this example, the ps(1) command will be matched, as long as the e and f options are both passed in either order.
An alternative way to write the above spec is:
@ps -.*[ef].*[ef]@
There are two things to note in this alternative:
1. @ has been used to delimit the spec, because [ and ] are required for the character lists in the regular expression.
2. While this form is less specific (in that it allows matches against duplicated command line options), it makes for considerably shorter specs if one wishes to test for the inclusion of a set of more than 2 or 3 command line flags. In the original form, one must manually list all of the possible permutations, which is equal to x! (factorial). For 3 command line flags, this is 6 permutations; for 4, it is 24, etc.
Heres one more example:
[tcpdump/r]
If this were placed in ~/.acoc.conf, it would remove any matching rules that had been installed for the diff command by either /etc/acoc.conf or /usr/local/etc/acoc.conf.
After defining the program name and operational flags, matching rules can be defined. These take the following form:
/regex/[flags] colour_spec
where regex is a Ruby-compatible regular expression. The delimiting / characters can be any character, as long as that character is not present in the regular expression itself. flags, if present, consists of one or more characters from the following list:
g
find every match on the line, not just the first. When using this flag, regex should not include parentheses.
colour_spec is defined as a comma-separated list of one or more colour_groups, which are defined as a plus-separated (+) list of one or more of the following:
* black
* blink
* blue
* bold
* clear
* concealed
* cyan
* dark
* green
* italic
* magenta
* negative
* on_black
* on_blue
* on_cyan
* on_green
* on_magenta
* on_red
* on_white
* on_yellow
* rapid_blink
* red
* reset
* strikethrough
* underline
* underscore
* white
* yellow
Examples of a colour_group are white+bold, black+on_white, etc. A complete colour_spec might look like this:
red+bold,white,yellow+bold,black+on_green
Except when using the g flag, each component of the regex that you wish to colour should be placed in parentheses. Text outside parentheses will be used for matching, but will not be coloured.
For example, examine the following:
/^(d+)foos*(w+)/
This will match a line that starts with more or one digits, followed by the string foo and any amount of white space, followed by one or more word characters. However, only the initial group of digits and the group of word characters will be coloured. The string foo and the white space that follows it will be used for matching, but will not be coloured.
Separated from the regex by white space is the colour_spec. Usually, you will include in this as many colours (separated by commas) as you have parenthesised expressions in the regex. However, its also permissible to have fewer. If, for example, you have three parenthesised expressions in the regex, but only two colours listed in the colour_spec, then the second colour will be used for colouring both the second and third matches.
If you have more colours listed in the colour_spec than there are parenthesised expressions in the regex, the surplus colours are ignored.
When using the g flag to perform a global match on the line, you may list as many colours as you want. The same rules apply here. If there are more matches than colours, the remaining matches will be coloured using the last colour listed. Surplus colours are ignored.
<<lessEver wondered why the output of your favourite UNIX/Linux commands is still displayed in black-and-white after all these years?
Ever had to search back through your scroll-buffer in search of gcc errors and salient information to tell you what went wrong with your programs execution?
acoc is a regular expression based colour formatter for programs that display output on the command-line. It works as a wrapper around the target program, executing it and capturing the stdout stream. Optionally, stderr can be redirected to stdout, so that it, too, can be manipulated.
acoc then applies matching rules to patterns in the output and applies colour sets to those matches. A picture is worth a thousand words, so look at the sample screenshots in the next section.
Configuration
The configuration files used by the program are /usr/local/etc/acoc.conf, /etc/acoc.conf and ~/acoc.conf. One or more of these must exist. A sample /etc/acoc.conf is supplied with some example matching rules.
Blank lines and those that begin with a # are ignored.
A program configuration stanza is introduced as follows:
[program_spec]
The square brackets are mandatory literal characters. Alternatively, the @ symbol may be used, to allow [ and ] to retain their usual semantics in program specs comprising a regular expression:
@program_spec@
program_spec is defined as one or more instances of the following component, separated by a comma:
invocation[/flags]
where invocation consists of the programs name (not including its directory path component) plus any initial arguments.
Alternatively, invocation may be a regular expression, which can be used to match multiple programs and/or command-line arguments in arbitrary order. Regular expressions are automatically anchored to the beginning of the command line.
flags, if present, is separated from invocation by a slash and consists of one or more of the following characters:
a
continue to attempt to find matching patterns after the first match has been found. By default, acoc will stop processing a line and display it after the first match has been found.
e
redirect the target programs stderr to stdout, allowing it, too, to be matched by rules
p
allocate a pseudo-terminal in which to run the target program
Some programs, such as ls(1), behave differently when their stdout is not connected to a tty. Use of this option will fool the target program into believing it is outputting to a tty, rather than a pipe to acoc.
Use of this flag requires Masahiro Tomitas Ruby/TPty library to be installed. Otherwise, the flag is silently ignored.
Note that the pseudo-terminal communication enabled by this flag is one-way only, from the target program to acoc. It is thus not possible to use acoc in combination with interactive programs, such as the interactive Ruby interpreter (irb).
t
apply colour formatting even if stdout is not a tty. By default, formatting is not applied if the output stream is not attached to a terminal.
Heres an example of a line that introduces a configuration stanza:
[rpm/ae,rpmbuild/ae]
which says to apply the following rules to the rpm and rpmbuild commands, attempt to apply all matching rules, and also apply those rules to the programs stderr stream.
Another example:
[ls/p]
This says to allocate a pseudo-terminal to ls(1), fooling it into believing that its output is being sent to a regular terminal instead of a pipe to acoc.
With this flag, the effect will be this:
$ ls
file1 file2 file3 file4 file5 file6
Without it, ls will detect that its stdout is connected to a pipe and behave accordingly:
$ ls
file1
file2
file3
file4
file5
file6
A third example:
[diff/t,rcsdiff/t,cvs diff/t,p4 diff/t]
This says that the rules that follow should be applied to all invocations of diff(1) and rcsdiff(1), as well as those invocations of cvs(1) and p4 that are followed by the argument diff.
Additionally, colouring should be applied even when stdout is not connected to a tty, so that the colours still show up when the output is displayed in a pager such as more(1) or less(1).
Yet another example:
/ps -.*(e.*f|f.*e)/
In this example, the ps(1) command will be matched, as long as the e and f options are both passed in either order.
An alternative way to write the above spec is:
@ps -.*[ef].*[ef]@
There are two things to note in this alternative:
1. @ has been used to delimit the spec, because [ and ] are required for the character lists in the regular expression.
2. While this form is less specific (in that it allows matches against duplicated command line options), it makes for considerably shorter specs if one wishes to test for the inclusion of a set of more than 2 or 3 command line flags. In the original form, one must manually list all of the possible permutations, which is equal to x! (factorial). For 3 command line flags, this is 6 permutations; for 4, it is 24, etc.
Heres one more example:
[tcpdump/r]
If this were placed in ~/.acoc.conf, it would remove any matching rules that had been installed for the diff command by either /etc/acoc.conf or /usr/local/etc/acoc.conf.
After defining the program name and operational flags, matching rules can be defined. These take the following form:
/regex/[flags] colour_spec
where regex is a Ruby-compatible regular expression. The delimiting / characters can be any character, as long as that character is not present in the regular expression itself. flags, if present, consists of one or more characters from the following list:
g
find every match on the line, not just the first. When using this flag, regex should not include parentheses.
colour_spec is defined as a comma-separated list of one or more colour_groups, which are defined as a plus-separated (+) list of one or more of the following:
* black
* blink
* blue
* bold
* clear
* concealed
* cyan
* dark
* green
* italic
* magenta
* negative
* on_black
* on_blue
* on_cyan
* on_green
* on_magenta
* on_red
* on_white
* on_yellow
* rapid_blink
* red
* reset
* strikethrough
* underline
* underscore
* white
* yellow
Examples of a colour_group are white+bold, black+on_white, etc. A complete colour_spec might look like this:
red+bold,white,yellow+bold,black+on_green
Except when using the g flag, each component of the regex that you wish to colour should be placed in parentheses. Text outside parentheses will be used for matching, but will not be coloured.
For example, examine the following:
/^(d+)foos*(w+)/
This will match a line that starts with more or one digits, followed by the string foo and any amount of white space, followed by one or more word characters. However, only the initial group of digits and the group of word characters will be coloured. The string foo and the white space that follows it will be used for matching, but will not be coloured.
Separated from the regex by white space is the colour_spec. Usually, you will include in this as many colours (separated by commas) as you have parenthesised expressions in the regex. However, its also permissible to have fewer. If, for example, you have three parenthesised expressions in the regex, but only two colours listed in the colour_spec, then the second colour will be used for colouring both the second and third matches.
If you have more colours listed in the colour_spec than there are parenthesised expressions in the regex, the surplus colours are ignored.
When using the g flag to perform a global match on the line, you may list as many colours as you want. The same rules apply here. If there are more matches than colours, the remaining matches will be coloured using the last colour listed. Surplus colours are ignored.
Download (0.04MB)
Added: 2005-04-11 License: GPL (GNU General Public License) Price:
1656 downloads
Math::BigRat 0.20
Math::BigRat package arbitrary big rational numbers. more>>
Math::BigRat package arbitrary big rational numbers.
SYNOPSIS
use Math::BigRat;
my $x = Math::BigRat->new(3/7); $x += 5/9;
print $x->bstr(),"n";
print $x ** 2,"n";
my $y = Math::BigRat->new(inf);
print "$y ", ($y->is_inf ? is : is not) , " infinityn";
my $z = Math::BigRat->new(144); $z->bsqrt();
Math::BigRat complements Math::BigInt and Math::BigFloat by providing support for arbitrary big rational numbers.
MATH LIBRARY
You can change the underlying module that does the low-level math operations by using:
use Math::BigRat try => GMP;
Note: This needs Math::BigInt::GMP installed.
The following would first try to find Math::BigInt::Foo, then Math::BigInt::Bar, and when this also fails, revert to Math::BigInt::Calc:
use Math::BigRat try => Foo,Math::BigInt::Bar;
If you want to get warned when the fallback occurs, replace "try" with "lib":
use Math::BigRat lib => Foo,Math::BigInt::Bar;
If you want the code to die instead, replace "try" with "only":
use Math::BigRat only => Foo,Math::BigInt::Bar;
<<lessSYNOPSIS
use Math::BigRat;
my $x = Math::BigRat->new(3/7); $x += 5/9;
print $x->bstr(),"n";
print $x ** 2,"n";
my $y = Math::BigRat->new(inf);
print "$y ", ($y->is_inf ? is : is not) , " infinityn";
my $z = Math::BigRat->new(144); $z->bsqrt();
Math::BigRat complements Math::BigInt and Math::BigFloat by providing support for arbitrary big rational numbers.
MATH LIBRARY
You can change the underlying module that does the low-level math operations by using:
use Math::BigRat try => GMP;
Note: This needs Math::BigInt::GMP installed.
The following would first try to find Math::BigInt::Foo, then Math::BigInt::Bar, and when this also fails, revert to Math::BigInt::Calc:
use Math::BigRat try => Foo,Math::BigInt::Bar;
If you want to get warned when the fallback occurs, replace "try" with "lib":
use Math::BigRat lib => Foo,Math::BigInt::Bar;
If you want the code to die instead, replace "try" with "only":
use Math::BigRat only => Foo,Math::BigInt::Bar;
Download (0.050MB)
Added: 2007-08-14 License: Perl Artistic License Price:
801 downloads
Java DIME Library 1.0.3
Java DIME Library implements Direct Internet Message Encapsulation. more>>
Java DIME Library project implements Direct Internet Message Encapsulation (DIME), which is a lightweight binary encapsulation format that can be used to encapsulate multiple payloads of arbitrary types and sizes into a single message.
DIME is ideal for incorporating binary attachments into any XML-based protocol. The library fully supports the latest DIME specifications.
Enhancements:
- Corrected DimeRecord.isFirst() thanks to John Russell
<<lessDIME is ideal for incorporating binary attachments into any XML-based protocol. The library fully supports the latest DIME specifications.
Enhancements:
- Corrected DimeRecord.isFirst() thanks to John Russell
Download (0.16MB)
Added: 2006-09-15 License: LGPL (GNU Lesser General Public License) Price:
1144 downloads
RAS::HiPerARC 1.03
RAS::HiPerARC.pm is a Perl Interface to 3Com/USR Total Control HiPerARC. more>>
RAS::HiPerARC.pm is a Perl Interface to 3Com/USR Total Control HiPerARC.
SYNOPSIS
RAS::HiPerARC is a PERL 5 module for interfacing with a 3Com/USR Total Control HiPerARC remote access server. Using this module, one can very easily construct programs to find a particular user in a bank of ARCs, disconnect users, get usage statistics, or execute arbitrary commands on a ARC.
<<lessSYNOPSIS
RAS::HiPerARC is a PERL 5 module for interfacing with a 3Com/USR Total Control HiPerARC remote access server. Using this module, one can very easily construct programs to find a particular user in a bank of ARCs, disconnect users, get usage statistics, or execute arbitrary commands on a ARC.
Download (0.006MB)
Added: 2007-04-18 License: Perl Artistic License Price:
921 downloads
Generic Hash Table library 0.6.2
Generic Hash Table library is a hash table implementation in C for storing arbitrary types of data. more>>
Generic Hash Table library is a hash table implementation in C for storing arbitrary types of data. Generic Hash Table library is meant to be small, easily extensible (in terms of hash functions etc), and easy to understand codewise.
Enhancements:
- config.guess and config.sub were updated to work with current systems.
- The API was extended with two new functions to allow returning the keysize on iteration.
<<lessEnhancements:
- config.guess and config.sub were updated to work with current systems.
- The API was extended with two new functions to allow returning the keysize on iteration.
Download (0.25MB)
Added: 2007-07-15 License: LGPL (GNU Lesser General Public License) Price:
837 downloads
Sunrise Data Dictionary 1.00
Sunrise Data Dictionary is a library for hashtable storage of arbitrary data objects. more>>
Sunrise Data Dictionary is a library for hashtable storage of arbitrary data objects with built-in reference counting and guaranteed order iteration for the C programming language.
Sunrise Data Dictionary library can participate in external reference counting systems or use its own built-in reference counting. It comes with a variety of hash functions and allows the use of runtime supplied hash functions via callback mechanism. The source code is well documented.
The Sunrise Data Dictionary was specifically designed for use within the Afelio and Callweaver telephony servers, the implementation focuses on performance and scalability.
Enhancements:
- This is the initial release of the full API (all header files) and a developer snapshot of the implementation.
<<lessSunrise Data Dictionary library can participate in external reference counting systems or use its own built-in reference counting. It comes with a variety of hash functions and allows the use of runtime supplied hash functions via callback mechanism. The source code is well documented.
The Sunrise Data Dictionary was specifically designed for use within the Afelio and Callweaver telephony servers, the implementation focuses on performance and scalability.
Enhancements:
- This is the initial release of the full API (all header files) and a developer snapshot of the implementation.
Download (0.17MB)
Added: 2007-07-16 License: MIT/X Consortium License Price:
832 downloads
Math::Roman 1.07
Math::Roman contains arbitrary sized Roman numbers and conversion from and to Arabic. more>>
Math::Roman contains arbitrary sized Roman numbers and conversion from and to Arabic.
SYNOPSIS
use Math::Roman qw(roman);
$a = new Math::Roman MCMLXXIII; # 1973
$b = roman(MCMLXI); # 1961
print $a - $b,"n"; # prints XII
$d = Math::Roman->bzero(); #
$d++; # I
$d += 1998; # MCMXCIX
$d -= MCM; # XCIX
print "$dn"; # string "MCMIC"
print $d->as_number(),"n"; # Math::BigInt "+1999"
<<lessSYNOPSIS
use Math::Roman qw(roman);
$a = new Math::Roman MCMLXXIII; # 1973
$b = roman(MCMLXI); # 1961
print $a - $b,"n"; # prints XII
$d = Math::Roman->bzero(); #
$d++; # I
$d += 1998; # MCMXCIX
$d -= MCM; # XCIX
print "$dn"; # string "MCMIC"
print $d->as_number(),"n"; # Math::BigInt "+1999"
Download (0.010MB)
Added: 2007-08-08 License: Perl Artistic License Price:
808 downloads
Fortress 0.3
Fortress is a simple script driven framework for performing security scans. more>>
Fortress is a simple script driven framework for performing security scans. The core of the application is an application which will execute testing scripts written using the embedded LUA scripting engine.
The scripts may perform almost arbitrary operations, including making HTTP requests, conducting port scanning, and taking advantage of several other provided primitives.
<<lessThe scripts may perform almost arbitrary operations, including making HTTP requests, conducting port scanning, and taking advantage of several other provided primitives.
Download (0.076MB)
Added: 2005-10-26 License: GPL (GNU General Public License) Price:
1478 downloads
Math::Fraction 0.53b
Math::Fraction is a Perl module to manipulate exact fractions. more>>
Math::Fraction is a Perl module to manipulate exact fractions.
SYNOPSIS
use Math::Fraction;
$a = frac(1,2); $b = frac(6,7);
print "$a + $b = ", $a + $b, "$a * $b = ", $a * $b;
print $a->num;
Main features:
- Being able to add, subtract, multiply, and divide, among other things just like you would normal numbers thats to the overload module.
- Being able to convert a decimal, including repeating ones, into a fraction. For example, 1.142857142857 would become 8/7.
- Being able to control how the fraction is displayed. For example 8/7 verses 1 1/7
- Being able to use arbitrary size numbers in the numerator and the denominator.
- Being able to covert between SMALL (using normal floats/integers) and BIG (using arbitrary size floats/integers) as needed so you do not have to worry about it. (New as of ver .4a)
- Being able to have multiple default sets so that a function can modify the defaults with out effecting other functions (New as of ver .4a)
<<lessSYNOPSIS
use Math::Fraction;
$a = frac(1,2); $b = frac(6,7);
print "$a + $b = ", $a + $b, "$a * $b = ", $a * $b;
print $a->num;
Main features:
- Being able to add, subtract, multiply, and divide, among other things just like you would normal numbers thats to the overload module.
- Being able to convert a decimal, including repeating ones, into a fraction. For example, 1.142857142857 would become 8/7.
- Being able to control how the fraction is displayed. For example 8/7 verses 1 1/7
- Being able to use arbitrary size numbers in the numerator and the denominator.
- Being able to covert between SMALL (using normal floats/integers) and BIG (using arbitrary size floats/integers) as needed so you do not have to worry about it. (New as of ver .4a)
- Being able to have multiple default sets so that a function can modify the defaults with out effecting other functions (New as of ver .4a)
Download (0.016MB)
Added: 2007-07-20 License: Perl Artistic License Price:
828 downloads
mod_corba 0.1
mod_corba is an exposes Apache module API via CORBA. more>>
mod_corba is an exposes Apache module API via CORBA. With this, any object in any language on any system can be used as a plugin module for an Apache web server, without recompiling or restarting the server. Since the entire internal operation of the Apache web server is based on the module API, the possibilities are almost limitless.
Mod_Corba uses C language bindings of the fast, lightweight ORBit ORB. This minimizes the overhead for using CORBA objects to extend the Web server.
The Mod_Corba distribution includes source code for a demonstration request handler as an example of an Apache CORBA extension.
Main features:
- Per-directory, per-URI, and per-server configuration
- Arbitrary number of handler objects
- Apache config files can set arbitrary environment variables for each handler
- Handler objects can process all 10 phases of Apache request handling, including authentication, authorization, and logging.
<<lessMod_Corba uses C language bindings of the fast, lightweight ORBit ORB. This minimizes the overhead for using CORBA objects to extend the Web server.
The Mod_Corba distribution includes source code for a demonstration request handler as an example of an Apache CORBA extension.
Main features:
- Per-directory, per-URI, and per-server configuration
- Arbitrary number of handler objects
- Apache config files can set arbitrary environment variables for each handler
- Handler objects can process all 10 phases of Apache request handling, including authentication, authorization, and logging.
Download (0.017MB)
Added: 2006-05-22 License: MPL (Mozilla Public License) Price:
1250 downloads
Data::PropertyList 1998.1217
Data::PropertyList is a Perl module that can convert arbitrary objects to/from strings. more>>
Data::PropertyList is a Perl module that can convert arbitrary objects to/from strings.
SYNOPSIS
use Data::PropertyList qw(astext fromtext);
$hash_ref = { items => [ 7 .. 11 ], key => value };
$string = astext($hash_ref);
# ...
$hash_ref = fromtext($string);
print $hash_ref->{items}[0];
$array_ref = [ 1, { key => value }, Omega ];
$string = astext($array_ref);
# ...
$array_ref = fromtext($string, -array=>1 );
print $array_ref->[1]{key};
Data::Propertylist provides functions that turn data structures with nested references into NeXTs Property List text format and back again.
You may find this useful for saving and loading application information in text files, or perhaps for generating error messages while debugging.
astext( $reference ) : $propertylist_string;
Writes out a nested Perl data structure in NeXT property list format.
fromtext( $propertylist_string ) : $hash_ref
fromtext( $propertylist_string, -array=>1 ) : $array_ref
Reconstructs a Perl data structure of nested references and scalars from a NeXT property list. Use the -array flag if the string encodes an array rather than a hash.
<<lessSYNOPSIS
use Data::PropertyList qw(astext fromtext);
$hash_ref = { items => [ 7 .. 11 ], key => value };
$string = astext($hash_ref);
# ...
$hash_ref = fromtext($string);
print $hash_ref->{items}[0];
$array_ref = [ 1, { key => value }, Omega ];
$string = astext($array_ref);
# ...
$array_ref = fromtext($string, -array=>1 );
print $array_ref->[1]{key};
Data::Propertylist provides functions that turn data structures with nested references into NeXTs Property List text format and back again.
You may find this useful for saving and loading application information in text files, or perhaps for generating error messages while debugging.
astext( $reference ) : $propertylist_string;
Writes out a nested Perl data structure in NeXT property list format.
fromtext( $propertylist_string ) : $hash_ref
fromtext( $propertylist_string, -array=>1 ) : $array_ref
Reconstructs a Perl data structure of nested references and scalars from a NeXT property list. Use the -array flag if the string encodes an array rather than a hash.
Download (0.008MB)
Added: 2006-08-17 License: Perl Artistic License Price:
1163 downloads
TRIPP 0.2 Alpha
TRIPP is a utility to rewrite incoming and outgoing IP packets. more>>
TRIPP is a utility to rewrite incoming and outgoing IP packets. Since it can rewrite both headers and payload, it can be used to configure the tcp/ip stack behavior in order to perform various tasks mainly intended for network tests, simulations and development.
It is configured via a small rule-based language, which allows the user to intercept packets, set arbitrary header values, increment or decrement numeric header fields, set an arbitrary payload, rewrite parts of the payload, or fragment, multiply, or drop packets.
TRIPP project is totally user-level and doesnt require any kernel module.
<<lessIt is configured via a small rule-based language, which allows the user to intercept packets, set arbitrary header values, increment or decrement numeric header fields, set an arbitrary payload, rewrite parts of the payload, or fragment, multiply, or drop packets.
TRIPP project is totally user-level and doesnt require any kernel module.
Download (0.20MB)
Added: 2006-06-15 License: GPL (GNU General Public License) Price:
1226 downloads
Mar 0.5
Mar project is a simple binary file format for storing arbitrary meta and user data. more>>
Mar project is a simple binary file format for storing arbitrary meta and user data.
Both the mar library and the accompanying utility are written in C with the intention of porting to many platforms. A set of C++ wrapper classes (along with a test file that utilises these classes) are included.
These classes provide familar stream and iterator abstractions over the mar library. The package has currently been tested on PCs running FreeBSD, Linux and Windows ME, 2000 & XP. Some testing has also been conducted on architectures running HPUX & Solaris
Enhancements:
- The general portability of the package has been improved.
- Alignment issues have been resolved on non-i386 architectures.
- A Makefile has now been added to the source directory.
- Additional debug output has been added.
- A number of API calls now return MAR_NOMATCH.
<<lessBoth the mar library and the accompanying utility are written in C with the intention of porting to many platforms. A set of C++ wrapper classes (along with a test file that utilises these classes) are included.
These classes provide familar stream and iterator abstractions over the mar library. The package has currently been tested on PCs running FreeBSD, Linux and Windows ME, 2000 & XP. Some testing has also been conducted on architectures running HPUX & Solaris
Enhancements:
- The general portability of the package has been improved.
- Alignment issues have been resolved on non-i386 architectures.
- A Makefile has now been added to the source directory.
- Additional debug output has been added.
- A number of API calls now return MAR_NOMATCH.
Download (0.072MB)
Added: 2006-02-17 License: MIT/X Consortium License Price:
1344 downloads
App::Serializer::Properties 0.965
App::Serializer::Properties is a Perl interface for serialization and deserialization. more>>
App::Serializer::Properties is a Perl interface for serialization and deserialization.
SYNOPSIS
use App;
$context = App->context();
$serializer = $context->service("Serializer"); # or ...
$serializer = $context->serializer();
$data = {
an => arbitrary,
collection => [ of, data, ],
of => {
arbitrary => depth,
},
};
$propdata = $serializer->serialize($data);
$data = $serializer->deserialize($propdata);
print $serializer->dump($data), "n";
<<lessSYNOPSIS
use App;
$context = App->context();
$serializer = $context->service("Serializer"); # or ...
$serializer = $context->serializer();
$data = {
an => arbitrary,
collection => [ of, data, ],
of => {
arbitrary => depth,
},
};
$propdata = $serializer->serialize($data);
$data = $serializer->deserialize($propdata);
print $serializer->dump($data), "n";
Download (0.12MB)
Added: 2007-06-21 License: Perl Artistic License Price:
856 downloads
fid-graphics 0.2
fid-graphics is a simple toolkit for the Frigand Imperial Desktop. more>>
fid-graphics project is a simple toolkit for the Frigand Imperial Desktop.
It is probably the easiest toolkit to write a display engine for, but it does not support any widgets.
Enhancements:
- src/Desktop/Fid/Window.lhs (displayWaitRedisplay): New function.
- (requestRedisplay): Tidy up.
- src/Desktop/Fid/Main.lhs (data WinCapLine): New type.
- (data WindowType): Use it.
- (&&*, ||*, isnt, haveEnvVar, haveOpt): Deleted.
- (lookupFeature, lookupProtocol, lookupKeywords): New functions.
- (windowTypes): Use WindowCapLine.
- (forkProcess): Unused; deleted.
- (data FidOpt): Unused; deleted.
- (fidMain): Dont consider forking.
- Only call getOpt to sort out verbose options.
- src/Desktop/Fid/Control.lhs (PrimKey): New type.
- (instance Eq PrimKey, instance Ord PrimKey)
- (instance Show PrimKey, instance Arbitrary PrimKey): Instances for t.
- (data Key): Use it.
- (charKey, control, keyToChar): Do the right thing with PrimKey.
- (symbolKey): New function.
- (instance Arbitrary Key): Use instance Arbitrary PrimKey.
- (instance Arbitrary Char): New Instance.
<<lessIt is probably the easiest toolkit to write a display engine for, but it does not support any widgets.
Enhancements:
- src/Desktop/Fid/Window.lhs (displayWaitRedisplay): New function.
- (requestRedisplay): Tidy up.
- src/Desktop/Fid/Main.lhs (data WinCapLine): New type.
- (data WindowType): Use it.
- (&&*, ||*, isnt, haveEnvVar, haveOpt): Deleted.
- (lookupFeature, lookupProtocol, lookupKeywords): New functions.
- (windowTypes): Use WindowCapLine.
- (forkProcess): Unused; deleted.
- (data FidOpt): Unused; deleted.
- (fidMain): Dont consider forking.
- Only call getOpt to sort out verbose options.
- src/Desktop/Fid/Control.lhs (PrimKey): New type.
- (instance Eq PrimKey, instance Ord PrimKey)
- (instance Show PrimKey, instance Arbitrary PrimKey): Instances for t.
- (data Key): Use it.
- (charKey, control, keyToChar): Do the right thing with PrimKey.
- (symbolKey): New function.
- (instance Arbitrary Key): Use instance Arbitrary PrimKey.
- (instance Arbitrary Char): New Instance.
Download (0.078MB)
Added: 2006-10-02 License: Academic Free License (AFL) Price:
1122 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 arbitrary 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