field
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 1050
VoteField 1.0
VoteField provides a vote field to your archetypes contents. more>>
VoteField provides a vote field to your archetypes contents.
How does it work ?
From the view of the content, any user can vote for it by clicking on a button.
It also show the number of votes for the content.
Users can only vote once for a content. The vote verification is done with cookie.
From the edit page, owner can reset the counter with a checkbox.
See the examples in the folder to see how to add the field to your archetype content.
Plone is an open-source content management system built on top of the Zope application server. Plone is free software and is designed to be extensible. It is suited for an internal website or may be used as a server on the Internet, playing such roles as a document publishing system and groupware collaboration tool.
<<lessHow does it work ?
From the view of the content, any user can vote for it by clicking on a button.
It also show the number of votes for the content.
Users can only vote once for a content. The vote verification is done with cookie.
From the edit page, owner can reset the counter with a checkbox.
See the examples in the folder to see how to add the field to your archetype content.
Plone is an open-source content management system built on top of the Zope application server. Plone is free software and is designed to be extensible. It is suited for an internal website or may be used as a server on the Internet, playing such roles as a document publishing system and groupware collaboration tool.
Download (0.025MB)
Added: 2007-03-10 License: GPL (GNU General Public License) Price:
959 downloads
Mail::Field 1.74
Mail::Field is a base class for manipulation of mail header fields. more>>
Mail::Field is a base class for manipulation of mail header fields.
SYNOPSIS
use Mail::Field;
$field = Mail::Field->new(Subject, some subject text);
print $field->tag,": ",$field->stringify,"n";
$field = Mail::Field->subject(some subject text);
Mail::Field is a base class for packages that create and manipulate fields from Email (and MIME) headers. Each different field will have its own sub-class, defining its own interface.
This document describes the minimum interface that each sub-class should provide, and also guidlines on how the field specific interface should be defined.
<<lessSYNOPSIS
use Mail::Field;
$field = Mail::Field->new(Subject, some subject text);
print $field->tag,": ",$field->stringify,"n";
$field = Mail::Field->subject(some subject text);
Mail::Field is a base class for packages that create and manipulate fields from Email (and MIME) headers. Each different field will have its own sub-class, defining its own interface.
This document describes the minimum interface that each sub-class should provide, and also guidlines on how the field specific interface should be defined.
Download (0.047MB)
Added: 2006-06-29 License: Perl Artistic License Price:
1218 downloads
Sort::Fields 0.90
Sort::Fields is a Perl module that can sort lines containing delimited fields. more>>
Sort::Fields is a Perl module that can sort lines containing delimited fields.
SYNOPSIS
use Sort::Fields;
@sorted = fieldsort [3, 2n], @lines;
@sorted = fieldsort +, [-1, -3, 0], @lines;
$sort_3_2n = make_fieldsort [3, 2n], @lines;
@sorted = $sort_3_2n->(@lines);
Sort::Fields provides a general purpose technique for efficiently sorting lists of lines that contain data separated into fields.
Sort::Fields automatically imports two subroutines, fieldsort and make_fieldsort, and two variants, stable_fieldsort and make_stable_fieldsort. make_fieldsort generates a sorting subroutine and returns a reference to it. fieldsort is a wrapper for the make_fieldsort subroutine.
The first argument to make_fieldsort is a delimiter string, which is used as a regular expression argument for a split operator. The delimiter string is optional. If it is not supplied, make_fieldsort splits each line using /s+/.
The second argument is an array reference containing one or more field specifiers. The specifiers indicate what fields in the strings will be used to sort the data. The specifier "1" indicates the first field, "2" indicates the second, and so on. A negative specifier like "-2" means to sort on the second field in reverse (descending) order. To indicate a numeric rather than alphabetic comparison, append "n" to the specifier. A specifier of "0" means the entire string ("-0" means the entire string, in reverse order).
The order in which the specifiers appear is the order in which they will be used to sort the data. The primary key is first, the secondary key is second, and so on.
fieldsort [1, 2], @data is roughly equivalent to make_fieldsort([1, 2])->(@data). Avoid calling fieldsort repeatedly with the same sort specifiers. If you need to use a particular sort more than once, it is more efficient to call make_fieldsort once and reuse the subroutine it returns.
stable_fieldsort and make_stable_fieldsort are like their "unstable" counterparts, except that the items that compare the same are maintained in their original order.
EXAMPLES
Some sample data (in array @data):
123 asd 1.22 asdd
32 ewq 2.32 asdd
43 rewq 2.12 ewet
51 erwt 34.2 ewet
23 erww 4.21 ewet
91 fdgs 3.43 ewet
123 refs 3.22 asdd
123 refs 4.32 asdd
# alpha sort on column 1
print fieldsort [1], @data;
123 asd 1.22 asdd
123 refs 3.22 asdd
123 refs 4.32 asdd
23 erww 4.21 ewet
32 ewq 2.32 asdd
43 rewq 2.12 ewet
51 erwt 34.2 ewet
91 fdgs 3.43 ewet
# numeric sort on column 1
print fieldsort [1n], @data;
23 erww 4.21 ewet
32 ewq 2.32 asdd
43 rewq 2.12 ewet
51 erwt 34.2 ewet
91 fdgs 3.43 ewet
123 asd 1.22 asdd
123 refs 3.22 asdd
123 refs 4.32 asdd
# reverse numeric sort on column 1
print fieldsort [-1n], @data;
123 asd 1.22 asdd
123 refs 3.22 asdd
123 refs 4.32 asdd
91 fdgs 3.43 ewet
51 erwt 34.2 ewet
43 rewq 2.12 ewet
32 ewq 2.32 asdd
23 erww 4.21 ewet
# alpha sort on column 2, then alpha on entire line
print fieldsort [2, 0], @data;
123 asd 1.22 asdd
51 erwt 34.2 ewet
23 erww 4.21 ewet
32 ewq 2.32 asdd
91 fdgs 3.43 ewet
123 refs 3.22 asdd
123 refs 4.32 asdd
43 rewq 2.12 ewet
# alpha sort on column 4, then numeric on column 1, then reverse
# numeric on column 3
print fieldsort [4, 1n, -3n], @data;
32 ewq 2.32 asdd
123 refs 4.32 asdd
123 refs 3.22 asdd
123 asd 1.22 asdd
23 erww 4.21 ewet
43 rewq 2.12 ewet
51 erwt 34.2 ewet
91 fdgs 3.43 ewet
# now, splitting on either literal period or whitespace
# sort numeric on column 4 (fractional part of decimals) then
# numeric on column 3 (whole part of decimals)
print fieldsort (?:.|s+), [4n, 3n], @data;
51 erwt 34.2 ewet
43 rewq 2.12 ewet
23 erww 4.21 ewet
123 asd 1.22 asdd
123 refs 3.22 asdd
32 ewq 2.32 asdd
123 refs 4.32 asdd
91 fdgs 3.43 ewet
# alpha sort on column 4, then numeric on the entire line
# NOTE: produces warnings under -w
print fieldsort [4, 0n], @data;
32 ewq 2.32 asdd
123 asd 1.22 asdd
123 refs 3.22 asdd
123 refs 4.32 asdd
23 erww 4.21 ewet
43 rewq 2.12 ewet
51 erwt 34.2 ewet
91 fdgs 3.43 ewet
# stable alpha sort on column 4 (maintains original relative order
# among items that compare the same)
print stable_fieldsort [4], @data;
123 asd 1.22 asdd
32 ewq 2.32 asdd
123 refs 3.22 asdd
123 refs 4.32 asdd
43 rewq 2.12 ewet
51 erwt 34.2 ewet
23 erww 4.21 ewet
91 fdgs 3.43 ewet
<<lessSYNOPSIS
use Sort::Fields;
@sorted = fieldsort [3, 2n], @lines;
@sorted = fieldsort +, [-1, -3, 0], @lines;
$sort_3_2n = make_fieldsort [3, 2n], @lines;
@sorted = $sort_3_2n->(@lines);
Sort::Fields provides a general purpose technique for efficiently sorting lists of lines that contain data separated into fields.
Sort::Fields automatically imports two subroutines, fieldsort and make_fieldsort, and two variants, stable_fieldsort and make_stable_fieldsort. make_fieldsort generates a sorting subroutine and returns a reference to it. fieldsort is a wrapper for the make_fieldsort subroutine.
The first argument to make_fieldsort is a delimiter string, which is used as a regular expression argument for a split operator. The delimiter string is optional. If it is not supplied, make_fieldsort splits each line using /s+/.
The second argument is an array reference containing one or more field specifiers. The specifiers indicate what fields in the strings will be used to sort the data. The specifier "1" indicates the first field, "2" indicates the second, and so on. A negative specifier like "-2" means to sort on the second field in reverse (descending) order. To indicate a numeric rather than alphabetic comparison, append "n" to the specifier. A specifier of "0" means the entire string ("-0" means the entire string, in reverse order).
The order in which the specifiers appear is the order in which they will be used to sort the data. The primary key is first, the secondary key is second, and so on.
fieldsort [1, 2], @data is roughly equivalent to make_fieldsort([1, 2])->(@data). Avoid calling fieldsort repeatedly with the same sort specifiers. If you need to use a particular sort more than once, it is more efficient to call make_fieldsort once and reuse the subroutine it returns.
stable_fieldsort and make_stable_fieldsort are like their "unstable" counterparts, except that the items that compare the same are maintained in their original order.
EXAMPLES
Some sample data (in array @data):
123 asd 1.22 asdd
32 ewq 2.32 asdd
43 rewq 2.12 ewet
51 erwt 34.2 ewet
23 erww 4.21 ewet
91 fdgs 3.43 ewet
123 refs 3.22 asdd
123 refs 4.32 asdd
# alpha sort on column 1
print fieldsort [1], @data;
123 asd 1.22 asdd
123 refs 3.22 asdd
123 refs 4.32 asdd
23 erww 4.21 ewet
32 ewq 2.32 asdd
43 rewq 2.12 ewet
51 erwt 34.2 ewet
91 fdgs 3.43 ewet
# numeric sort on column 1
print fieldsort [1n], @data;
23 erww 4.21 ewet
32 ewq 2.32 asdd
43 rewq 2.12 ewet
51 erwt 34.2 ewet
91 fdgs 3.43 ewet
123 asd 1.22 asdd
123 refs 3.22 asdd
123 refs 4.32 asdd
# reverse numeric sort on column 1
print fieldsort [-1n], @data;
123 asd 1.22 asdd
123 refs 3.22 asdd
123 refs 4.32 asdd
91 fdgs 3.43 ewet
51 erwt 34.2 ewet
43 rewq 2.12 ewet
32 ewq 2.32 asdd
23 erww 4.21 ewet
# alpha sort on column 2, then alpha on entire line
print fieldsort [2, 0], @data;
123 asd 1.22 asdd
51 erwt 34.2 ewet
23 erww 4.21 ewet
32 ewq 2.32 asdd
91 fdgs 3.43 ewet
123 refs 3.22 asdd
123 refs 4.32 asdd
43 rewq 2.12 ewet
# alpha sort on column 4, then numeric on column 1, then reverse
# numeric on column 3
print fieldsort [4, 1n, -3n], @data;
32 ewq 2.32 asdd
123 refs 4.32 asdd
123 refs 3.22 asdd
123 asd 1.22 asdd
23 erww 4.21 ewet
43 rewq 2.12 ewet
51 erwt 34.2 ewet
91 fdgs 3.43 ewet
# now, splitting on either literal period or whitespace
# sort numeric on column 4 (fractional part of decimals) then
# numeric on column 3 (whole part of decimals)
print fieldsort (?:.|s+), [4n, 3n], @data;
51 erwt 34.2 ewet
43 rewq 2.12 ewet
23 erww 4.21 ewet
123 asd 1.22 asdd
123 refs 3.22 asdd
32 ewq 2.32 asdd
123 refs 4.32 asdd
91 fdgs 3.43 ewet
# alpha sort on column 4, then numeric on the entire line
# NOTE: produces warnings under -w
print fieldsort [4, 0n], @data;
32 ewq 2.32 asdd
123 asd 1.22 asdd
123 refs 3.22 asdd
123 refs 4.32 asdd
23 erww 4.21 ewet
43 rewq 2.12 ewet
51 erwt 34.2 ewet
91 fdgs 3.43 ewet
# stable alpha sort on column 4 (maintains original relative order
# among items that compare the same)
print stable_fieldsort [4], @data;
123 asd 1.22 asdd
32 ewq 2.32 asdd
123 refs 3.22 asdd
123 refs 4.32 asdd
43 rewq 2.12 ewet
51 erwt 34.2 ewet
23 erww 4.21 ewet
91 fdgs 3.43 ewet
Download (0.005MB)
Added: 2007-05-21 License: Perl Artistic License Price:
887 downloads
Field Designer 0.6.2
The Field Designer is a program for designing sub-air paintball fields. more>>
The Field Designer is a program for designing sub-air paintball fields. Field Designer helps you to prepare for a paintball tournament or fun game, or simply to get an overview of a field. Field owners can use it to provide online layouts of their fields.
Main features:
- Delete Figure
- Editable properties
- Default XML Encoding
- Tippie figure
- Tombstone figure
- Export a JPG picture of the field
- Povray Export
- Copy and Paste
- Context menu
- Tactics plugin
- Rotate figures
- 3D field walking
Enhancements:
- A tactics editor was added, allowing you to develop your tactics directly in the field designer.
- Real units of measure can be used, so 32px will represent whatever unit of measure you define.
- When you create a new field layout, you can set the size of the field, which will be shown while drawing the field.
- Fields can be exported to SVG, BMP, JPEG, or PDF.
- The last page of the field creation wizard does not work correctly under Win32.
<<lessMain features:
- Delete Figure
- Editable properties
- Default XML Encoding
- Tippie figure
- Tombstone figure
- Export a JPG picture of the field
- Povray Export
- Copy and Paste
- Context menu
- Tactics plugin
- Rotate figures
- 3D field walking
Enhancements:
- A tactics editor was added, allowing you to develop your tactics directly in the field designer.
- Real units of measure can be used, so 32px will represent whatever unit of measure you define.
- When you create a new field layout, you can set the size of the field, which will be shown while drawing the field.
- Fields can be exported to SVG, BMP, JPEG, or PDF.
- The last page of the field creation wizard does not work correctly under Win32.
Download (15MB)
Added: 2006-02-27 License: Eclipse Public License Price:
1338 downloads
fields::aliased 1.05
fields::aliased is a Perl module that can create aliases for object fields. more>>
fields::aliased is a Perl module that can create aliases for object fields.
SYNOPSIS
package MyPackage;
use strict;
use fields qw($scalar @array %hash);
sub new {
my $class = shift;
my $self = fields::new($class);
return $self;
}
sub mymethod {
my MyPackage $self = shift;
use fields::aliased qw($self $scalar @array %hash);
$scalar = 1;
@array = (2 .. 4);
%hash = (one => 1, two => 2);
}
This module is a companion to the fields module, which allows efficient handling of instance variables with checking at compile time. It goes one step further and actually creates lexical aliases to the instance values, which can make code not only easier to type, but easier to read as well.
Declarations
You declare the fields using the fields pragma, as always.
use fields qw($scalar @array %hash nosigil);
Each field name may be preceded by a type sigil to indicate which kind of variable it is. Names without the type sigil are treated as scalars.
For names beginning with an underscore, see "PRIVATE FIELDS" below.
Constructors
You call fields::new to create the object.
my $self = fields::new($class);
Usage
In each method that uses the individual fields, you add a line similar to the following:
use fields::aliased qw($self $scalar @array %hash nosigil);
That is, list the variable being used for the object reference, and then the names of the fields that you are going to use in this method. fields::aliased takes care of declaring the appropriate Perl lexical variables and linking them to the appropriate field. You only need to specify the fields you are actually going to use, including any inherited from superclasses.
<<lessSYNOPSIS
package MyPackage;
use strict;
use fields qw($scalar @array %hash);
sub new {
my $class = shift;
my $self = fields::new($class);
return $self;
}
sub mymethod {
my MyPackage $self = shift;
use fields::aliased qw($self $scalar @array %hash);
$scalar = 1;
@array = (2 .. 4);
%hash = (one => 1, two => 2);
}
This module is a companion to the fields module, which allows efficient handling of instance variables with checking at compile time. It goes one step further and actually creates lexical aliases to the instance values, which can make code not only easier to type, but easier to read as well.
Declarations
You declare the fields using the fields pragma, as always.
use fields qw($scalar @array %hash nosigil);
Each field name may be preceded by a type sigil to indicate which kind of variable it is. Names without the type sigil are treated as scalars.
For names beginning with an underscore, see "PRIVATE FIELDS" below.
Constructors
You call fields::new to create the object.
my $self = fields::new($class);
Usage
In each method that uses the individual fields, you add a line similar to the following:
use fields::aliased qw($self $scalar @array %hash nosigil);
That is, list the variable being used for the object reference, and then the names of the fields that you are going to use in this method. fields::aliased takes care of declaring the appropriate Perl lexical variables and linking them to the appropriate field. You only need to specify the fields you are actually going to use, including any inherited from superclasses.
Download (0.008MB)
Added: 2007-05-14 License: Perl Artistic License Price:
894 downloads
Crimson Fields 0.5.1
Crimson Fields is a tactical war game in the tradition of Battle Isle. more>>
Crimson Fields project is a tactical war game in the tradition of Battle Isle.
The outcome of the war lies in your hands. You decide which units are sent to the front lines, and when to unleash the reserves. Your mission objectives range from defending strategically vital locations to simply destroying all enemy forces in the area. Protect supply convoys or raid enemy facilities to uncover technological secrets or fill your storage bays so you can repair damaged units or build new ones in your own factories. Lead your troops to victory!
Tools are available to create custom maps and campaigns. You can also play the original Battle Isle maps if you have a copy of the game.
You can pit yourself against another human player either in hot-seat mode in front of the same machine or via e-mail, or against the computer.
Crimson Fields is distributed under the terms of the GNU General Public License (GPL). It has been developed and tested on Intel architecture with Linux, but it shouldnt be too hard to make it compile and run on other operating systems as well. So far it has been reported to work with Linux, various flavours of BSD, Sun Solaris, MacOS X, BeOS, and MS Windows.
<<lessThe outcome of the war lies in your hands. You decide which units are sent to the front lines, and when to unleash the reserves. Your mission objectives range from defending strategically vital locations to simply destroying all enemy forces in the area. Protect supply convoys or raid enemy facilities to uncover technological secrets or fill your storage bays so you can repair damaged units or build new ones in your own factories. Lead your troops to victory!
Tools are available to create custom maps and campaigns. You can also play the original Battle Isle maps if you have a copy of the game.
You can pit yourself against another human player either in hot-seat mode in front of the same machine or via e-mail, or against the computer.
Crimson Fields is distributed under the terms of the GNU General Public License (GPL). It has been developed and tested on Intel architecture with Linux, but it shouldnt be too hard to make it compile and run on other operating systems as well. So far it has been reported to work with Linux, various flavours of BSD, Sun Solaris, MacOS X, BeOS, and MS Windows.
Download (0.78MB)
Added: 2007-01-24 License: GPL (GNU General Public License) Price:
1005 downloads
Mail::Message::Field 2.072
Mail::Message::Field contains one line of a message header. more>>
Mail::Message::Field contains one line of a message header.
INHERITANCE
Mail::Message::Field
is a Mail::Reporter
Mail::Message::Field is extended by
Mail::Message::Field::Fast
Mail::Message::Field::Flex
Mail::Message::Field::Full
SYNOPSIS
my $field = Mail::Message::Field->new(From => fish@tux.aq);
print $field->name;
print $field->body;
print $field->comment;
print $field->content; # body & comment
$field->print(*OUT);
print $field->string;
print "$fieldn";
print $field->attribute(charset) || us-ascii;
This implementation follows the guidelines of rfc2822 as close as possible, and may there produce a different output than implementations based on the obsolete rfc822. However, the old output will still be accepted.
These objects each store one header line, and facilitates access routines to the information hidden in it. Also, you may want to have a look at the added methods of a message:
my @from = $message->from;
my $sender = $message->sender;
my $subject = $message->subject;
my $msgid = $message->messageId;
my @to = $message->to;
my @cc = $message->cc;
my @bcc = $message->bcc;
my @dest = $message->destinations;
my $other = $message->get(Reply-To);
<<lessINHERITANCE
Mail::Message::Field
is a Mail::Reporter
Mail::Message::Field is extended by
Mail::Message::Field::Fast
Mail::Message::Field::Flex
Mail::Message::Field::Full
SYNOPSIS
my $field = Mail::Message::Field->new(From => fish@tux.aq);
print $field->name;
print $field->body;
print $field->comment;
print $field->content; # body & comment
$field->print(*OUT);
print $field->string;
print "$fieldn";
print $field->attribute(charset) || us-ascii;
This implementation follows the guidelines of rfc2822 as close as possible, and may there produce a different output than implementations based on the obsolete rfc822. However, the old output will still be accepted.
These objects each store one header line, and facilitates access routines to the information hidden in it. Also, you may want to have a look at the added methods of a message:
my @from = $message->from;
my $sender = $message->sender;
my $subject = $message->subject;
my $msgid = $message->messageId;
my @to = $message->to;
my @cc = $message->cc;
my @bcc = $message->bcc;
my @dest = $message->destinations;
my $other = $message->get(Reply-To);
Download (0.58MB)
Added: 2007-07-13 License: Perl Artistic License Price:
833 downloads
Class::Struct::FIELDS 1.1
Class::Struct::FIELDS module combine Class::Struct, base and fields. more>>
Class::Struct::FIELDS module combine Class::Struct, base and fields.
SYNOPSIS
(This page documents Class::Struct::FIELDS v.1.1.)
use Class::Struct::FIELDS;
# declare struct, based on fields, explicit class name:
struct (CLASS_NAME => { ELEMENT_NAME => ELEMENT_TYPE, ... });
use Class::Struct::FIELDS;
# declare struct, based on fields, explicit class name
# with inheritance:
struct (CLASS_NAME => [qw(BASE_CLASSES ...)],
{ ELEMENT_NAME => ELEMENT_TYPE, ... });
package CLASS_NAME;
use Class::Struct::FIELDS;
# declare struct, based on fields, implicit class name:
struct (ELEMENT_NAME => ELEMENT_TYPE, ...);
package CLASS_NAME;
use Class::Struct::FIELDS;
# declare struct, based on fields, implicit class name
# with inheritance:
struct ([qw(BASE_CLASSES ...)], ELEMENT_NAME => ELEMENT_TYPE, ...);
package MyObj;
use Class::Struct::FIELDS;
# declare struct with four types of elements:
struct (s => $, a => @, h => %, x => &, c => My_Other_Class);
$obj = new MyObj; # constructor
# scalar type accessor:
$element_value = $obj->s; # element value
$obj->s (new value); # assign to element
# array type accessor:
$ary_ref = $obj->a; # reference to whole array
$ary_element_value = $obj->a->[2]; # array element value
$ary_element_value = $obj->a (2); # same thing
$obj->a->[2] = new value; # assign to array element
$obj->a (2, newer value); # same thing
# hash type accessor:
$hash_ref = $obj->h; # reference to whole hash
$hash_element_value = $obj->h->{x}; # hash element value
$hash_element_value = $obj->h (x); # same thing
$obj->h->{x} = new value; # assign to hash element
$obj->h (x, newer value); # same thing
# code type accessor:
$code_ref = $obj->x; # reference to code
$obj->x->(...); # call code
$obj->x (sub {...}); # assign to element
# regexp type accessor:
$regexp = $obj->r; # reference to code
$string =~ m/$obj->r/; # match regexp
$obj->r (qr/ ... /); # assign to element
# class type accessor:
$element_value = $obj->c; # object reference
$obj->c->method (...); # call method of object
$obj->c (My_Other_Class::->new); # assign a new object
Class::Struct::FIELDS exports a single function, struct. Given a list of element names and types, and optionally a class name and/or an array reference of base classes, struct creates a Perl 5 class that implements a "struct-like" data structure with inheritance.
The new class is given a constructor method, new, for creating struct objects.
Each element in the struct data has an accessor method, which is used to assign to the element and to fetch its value. The default accessor can be overridden by declaring a sub of the same name in the package. (See Example 2.)
Each elements type can be scalar, array, hash, code or class.
<<lessSYNOPSIS
(This page documents Class::Struct::FIELDS v.1.1.)
use Class::Struct::FIELDS;
# declare struct, based on fields, explicit class name:
struct (CLASS_NAME => { ELEMENT_NAME => ELEMENT_TYPE, ... });
use Class::Struct::FIELDS;
# declare struct, based on fields, explicit class name
# with inheritance:
struct (CLASS_NAME => [qw(BASE_CLASSES ...)],
{ ELEMENT_NAME => ELEMENT_TYPE, ... });
package CLASS_NAME;
use Class::Struct::FIELDS;
# declare struct, based on fields, implicit class name:
struct (ELEMENT_NAME => ELEMENT_TYPE, ...);
package CLASS_NAME;
use Class::Struct::FIELDS;
# declare struct, based on fields, implicit class name
# with inheritance:
struct ([qw(BASE_CLASSES ...)], ELEMENT_NAME => ELEMENT_TYPE, ...);
package MyObj;
use Class::Struct::FIELDS;
# declare struct with four types of elements:
struct (s => $, a => @, h => %, x => &, c => My_Other_Class);
$obj = new MyObj; # constructor
# scalar type accessor:
$element_value = $obj->s; # element value
$obj->s (new value); # assign to element
# array type accessor:
$ary_ref = $obj->a; # reference to whole array
$ary_element_value = $obj->a->[2]; # array element value
$ary_element_value = $obj->a (2); # same thing
$obj->a->[2] = new value; # assign to array element
$obj->a (2, newer value); # same thing
# hash type accessor:
$hash_ref = $obj->h; # reference to whole hash
$hash_element_value = $obj->h->{x}; # hash element value
$hash_element_value = $obj->h (x); # same thing
$obj->h->{x} = new value; # assign to hash element
$obj->h (x, newer value); # same thing
# code type accessor:
$code_ref = $obj->x; # reference to code
$obj->x->(...); # call code
$obj->x (sub {...}); # assign to element
# regexp type accessor:
$regexp = $obj->r; # reference to code
$string =~ m/$obj->r/; # match regexp
$obj->r (qr/ ... /); # assign to element
# class type accessor:
$element_value = $obj->c; # object reference
$obj->c->method (...); # call method of object
$obj->c (My_Other_Class::->new); # assign a new object
Class::Struct::FIELDS exports a single function, struct. Given a list of element names and types, and optionally a class name and/or an array reference of base classes, struct creates a Perl 5 class that implements a "struct-like" data structure with inheritance.
The new class is given a constructor method, new, for creating struct objects.
Each element in the struct data has an accessor method, which is used to assign to the element and to fetch its value. The default accessor can be overridden by declaring a sub of the same name in the package. (See Example 2.)
Each elements type can be scalar, array, hash, code or class.
Download (0.018MB)
Added: 2007-07-11 License: Perl Artistic License Price:
835 downloads
Validate_fields Class 1.34
Validate_fields Class is an easy-to-use form field validation PHP script. more>>
Validate_fields Class is an easy-to-use form field validation PHP script. This class can be used to validate database inputs or mail forms.
It can validate simple text, numbers, dates, urls, email addresses, and the presence of HTML tags. Invalid form fields will be reported inside a detailed error message.
Enhancements:
- A small improvement in the create_msg() method makes it possible to switch between the XHTML version and the simple HTML version.
- In the fields array one key was named "name", and it has been renamed to "value" to make it more clear.
- The variable declarations at the beginning of the validation method was removed.
- Because the value of a checkbox (radio) type field is only available if the element is checked, there are new functions to validate this elements.
<<lessIt can validate simple text, numbers, dates, urls, email addresses, and the presence of HTML tags. Invalid form fields will be reported inside a detailed error message.
Enhancements:
- A small improvement in the create_msg() method makes it possible to switch between the XHTML version and the simple HTML version.
- In the fields array one key was named "name", and it has been renamed to "value" to make it more clear.
- The variable declarations at the beginning of the validation method was removed.
- Because the value of a checkbox (radio) type field is only available if the element is checked, there are new functions to validate this elements.
Download (0.008MB)
Added: 2006-02-21 License: GPL (GNU General Public License) Price:
1340 downloads
Resizeable Form Fields 0.2.1
Resizeable Form Fields is an extension which allows you to resize HTML form fields, including textareas, select boxes and more. more>>
Resizeable Form Fields is an extension which allows you to resize HTML form fields, including textareas, select boxes and more.
Resize HTML form fields, including textareas, select boxes, text fields, and iframes.
<<lessResize HTML form fields, including textareas, select boxes, text fields, and iframes.
Download (0.004MB)
Added: 2007-04-04 License: MPL (Mozilla Public License) Price:
937 downloads
UnHide fields 0.2 for Firefox
UnHide fields provides this extension allow you to view and edit hidden fields content. more>>
UnHide fields provides this extension allow you to view and edit hidden fields content.
In computer science, data that has several parts can be divided into fields. For example, a computer may represent todays date as three distinct fields: the day, the month and the year.
Programming languages usually have a record data type to represent composite data types as a series of fields. An array of boolean values can be represented as a bit field.
<<lessIn computer science, data that has several parts can be divided into fields. For example, a computer may represent todays date as three distinct fields: the day, the month and the year.
Programming languages usually have a record data type to represent composite data types as a series of fields. An array of boolean values can be represented as a bit field.
Download (0.013MB)
Added: 2007-04-13 License: MPL (Mozilla Public License) Price:
926 downloads
Mail::Message::Field::Full 2.073
Mail::Message::Field::Full is a Perl module that can construct one smart line in a message header. more>>
Mail::Message::Field::Full is a Perl module that can construct one smart line in a message header.
INHERITANCE
Mail::Message::Field::Full
is a Mail::Message::Field
is a Mail::Reporter
Mail::Message::Field::Full is extended by
Mail::Message::Field::Structured
Mail::Message::Field::Unstructured
SYNOPSIS
!! UNDER CONSTRUCTION
!! The details of this module are NOT FINISHED yet
!! Most parts are already usable, however. With care!
# Getting to understand the complexity of a header field ...
my $fast = $msg->head->get(subject);
my $full = Mail::Message::Field::Full->from($fast);
my $full = $msg->head->get(subject)->study; # same
my $full = $msg->head->study(subject); # same
my $full = $msg->get(subject); # same
# ... or build a complex header field yourself
my $f = Mail::Message::Field::Full->new(To);
my $f = Mail::Message::Field::Full->new(Subject: hi!);
my $f = Mail::Message::Field::Full->new(Subject => hi!);
This is the full implementation of a header field: it has full understanding of all predefined header fields. These objects will be quite slow, because header fields can be very complex. Of course, this class delivers the optimal result, but for a quite large penalty in performance and memory consumption. Are you willing to accept?
This class supports the common header description from RFC2822 (formerly RFC822), the extensions with respect to character set encodings as specified in RFC2047, and the extensions on language specification and long parameter wrapping from RFC2231. If you do not need the latter two, then the Mail::Message::Field::Fast and Mail::Message::Field::Flex are enough for your application.
<<lessINHERITANCE
Mail::Message::Field::Full
is a Mail::Message::Field
is a Mail::Reporter
Mail::Message::Field::Full is extended by
Mail::Message::Field::Structured
Mail::Message::Field::Unstructured
SYNOPSIS
!! UNDER CONSTRUCTION
!! The details of this module are NOT FINISHED yet
!! Most parts are already usable, however. With care!
# Getting to understand the complexity of a header field ...
my $fast = $msg->head->get(subject);
my $full = Mail::Message::Field::Full->from($fast);
my $full = $msg->head->get(subject)->study; # same
my $full = $msg->head->study(subject); # same
my $full = $msg->get(subject); # same
# ... or build a complex header field yourself
my $f = Mail::Message::Field::Full->new(To);
my $f = Mail::Message::Field::Full->new(Subject: hi!);
my $f = Mail::Message::Field::Full->new(Subject => hi!);
This is the full implementation of a header field: it has full understanding of all predefined header fields. These objects will be quite slow, because header fields can be very complex. Of course, this class delivers the optimal result, but for a quite large penalty in performance and memory consumption. Are you willing to accept?
This class supports the common header description from RFC2822 (formerly RFC822), the extensions with respect to character set encodings as specified in RFC2047, and the extensions on language specification and long parameter wrapping from RFC2231. If you do not need the latter two, then the Mail::Message::Field::Fast and Mail::Message::Field::Flex are enough for your application.
Download (0.58MB)
Added: 2007-08-02 License: Perl Artistic License Price:
815 downloads
Max Fighter 1.0
Max Fighter is a vertical-scrolling asteroids shootemup. more>>
Max Fighter is a vertical-scrolling asteroids shootemup game.
You have a bad feeling about this: For only one brief moment you let your attention slip, and suddenly, you find your spaceship heading right into a vast asteroid field. Though it does not seem very dense at the outskirts, your board computer readouts make you doubt you will ever see the other side of it - and did your radar just pick up traces of pirate activity!?
Keep control of your spaceship as you go ever deeper into the asteroid field and the gameplay reaches breakneck speed. Shoot asteroids and containers and collect power-ups, shield energy and special weapons. And last but not least - beware of the pirates!
<<lessYou have a bad feeling about this: For only one brief moment you let your attention slip, and suddenly, you find your spaceship heading right into a vast asteroid field. Though it does not seem very dense at the outskirts, your board computer readouts make you doubt you will ever see the other side of it - and did your radar just pick up traces of pirate activity!?
Keep control of your spaceship as you go ever deeper into the asteroid field and the gameplay reaches breakneck speed. Shoot asteroids and containers and collect power-ups, shield energy and special weapons. And last but not least - beware of the pirates!
Download (16.9MB)
Added: 2006-09-11 License: GPL (GNU General Public License) Price:
1141 downloads
Qmail Auditor 0.4
Qmail Auditor consists of a email auditing tool. more>>
Qmail Auditor consists of a email auditing tool.
QMail Auditor provides simple a method for auditing emails. It is easy to configure and uses regular expressions as rules.
The format of audit file is :
Any e-mail (outbound or inbound) have passed at this filter.
The valids "field header"(s) :
all - field from or to of e-mails
to - field to
from - field from
In case of regular expression you read the
# man re_format
# man regex
E-mail to forward is a valid mail account to redirect.
Example of this :
from nelio@walk.* auditoria@spyware.walk.com.br
to nelio@spyware.* auditoria@spyware.walk.com.br
Enhancements:
- Now the config file name has renamed.
- From audit (in /var/qmail/control for /var/qmail/control/auditor) and qmail-queue-real-audit for qmail-queue-real-auditor.
<<lessQMail Auditor provides simple a method for auditing emails. It is easy to configure and uses regular expressions as rules.
The format of audit file is :
Any e-mail (outbound or inbound) have passed at this filter.
The valids "field header"(s) :
all - field from or to of e-mails
to - field to
from - field from
In case of regular expression you read the
# man re_format
# man regex
E-mail to forward is a valid mail account to redirect.
Example of this :
from nelio@walk.* auditoria@spyware.walk.com.br
to nelio@spyware.* auditoria@spyware.walk.com.br
Enhancements:
- Now the config file name has renamed.
- From audit (in /var/qmail/control for /var/qmail/control/auditor) and qmail-queue-real-audit for qmail-queue-real-auditor.
Download (0.16MB)
Added: 2007-01-22 License: BSD License Price:
1010 downloads
VFGEN 2.1.0
VFGEN is a Vector Field File Generator for differential equation solvers and other computational tools. more>>
VFGEN is a Vector Field File Generator for differential equation solvers and other computational tools.
There are many excellent programs available for solving differential equations and computing bifurcations of vector fields. However, each has its own format for specifying the vector field that defines the differential equation. VFGEN lets you define your vector field once (using XML), and export the vector field in several formats. VFGEN uses a C++ symbolic algebra library (GiNaC) to generate Jacobians and higher derivatives automatically.
Main features:
- Specify your equations once, and export to multiple file formats.
- Generate analytical expressions for Jacobians and higher derivatives automatically.
- Available export formats include MATLAB, Scilab, AUTO, GNU Scientific Library (GSL), SciPy, PyDSTool, XPP and more.
- New in Version 2.1.0: Octave, PyDSTool and RADAU5 commands added.
- New in Version 2.0.0: VFGEN can generate code for delay equations.
<<lessThere are many excellent programs available for solving differential equations and computing bifurcations of vector fields. However, each has its own format for specifying the vector field that defines the differential equation. VFGEN lets you define your vector field once (using XML), and export the vector field in several formats. VFGEN uses a C++ symbolic algebra library (GiNaC) to generate Jacobians and higher derivatives automatically.
Main features:
- Specify your equations once, and export to multiple file formats.
- Generate analytical expressions for Jacobians and higher derivatives automatically.
- Available export formats include MATLAB, Scilab, AUTO, GNU Scientific Library (GSL), SciPy, PyDSTool, XPP and more.
- New in Version 2.1.0: Octave, PyDSTool and RADAU5 commands added.
- New in Version 2.0.0: VFGEN can generate code for delay equations.
Download (MB)
Added: 2007-06-07 License: GPL (GNU General Public License) Price:
871 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 field 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