legion field
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 1053
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
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
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
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
Legendary Legions 20070411
Legendary Legions is a turn-based strategy game with fantasy theme and rpg-elements. more>>
Legendary Legions is a turn-based strategy game with fantasy theme and rpg-elements (e.g. leveling the units, and skills which you could raise).
Your mission is to destroy enemys castle. You can be on good or evil side. A the moment game supports only 2 human player game, but in future we plan to add AI and network play. The gameplay is similar to this in Heroes of Might and Magic but its much simpler of course.
Game was written with allegro for graphic and:
- allegromp3 for music
- loadpng for png support
Note:
All units have been taken from Celtic Legends (an old Amiga game), the concept is a hybrid of Celtic Legends (its not clone), Heroes of Might & Magic and Civilization :D . The dragon in menu and in interface is not ours too as well as music in trailer ;D. Hmmm whats more... the code is ours (but we wont public it yet and everything is in polish so you wont understand it at all), the rest graphic are ours. Oh and sound when the unit is building is not ours too. I think its all about copyrights. The game is freeware, non-profit etc.
Enhancements:
- network multiplayer support
- graphic feature: dynamic clouds with lightining
- builder now can build tower or town
- performance tweak: framelimiter
- fixed bug: tower capture
- some optimization and bugfixes
<<lessYour mission is to destroy enemys castle. You can be on good or evil side. A the moment game supports only 2 human player game, but in future we plan to add AI and network play. The gameplay is similar to this in Heroes of Might and Magic but its much simpler of course.
Game was written with allegro for graphic and:
- allegromp3 for music
- loadpng for png support
Note:
All units have been taken from Celtic Legends (an old Amiga game), the concept is a hybrid of Celtic Legends (its not clone), Heroes of Might & Magic and Civilization :D . The dragon in menu and in interface is not ours too as well as music in trailer ;D. Hmmm whats more... the code is ours (but we wont public it yet and everything is in polish so you wont understand it at all), the rest graphic are ours. Oh and sound when the unit is building is not ours too. I think its all about copyrights. The game is freeware, non-profit etc.
Enhancements:
- network multiplayer support
- graphic feature: dynamic clouds with lightining
- builder now can build tower or town
- performance tweak: framelimiter
- fixed bug: tower capture
- some optimization and bugfixes
Download (3.6MB)
Added: 2007-05-26 License: Freeware Price:
882 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
Lucene 0.13
Lucene is a Perl API to the C++ port of the Lucene search engine. more>>
Lucene is a Perl API to the C++ port of the Lucene search engine.
SYNOPSIS
Initialize/Empty Lucene index
my $analyzer = new Lucene::Analysis::Standard::StandardAnalyzer();
my $store = Lucene::Store::FSDirectory->getDirectory("/home/lucene", 1);
my $tmp_writer = new Lucene::Index::IndexWriter($store, $analyzer, 1);
$tmp_writer->close;
undef $tmp_writer;
Choose your Analyzer (string tokenizer)
# lowercases text and splits it at non-letter characters
my $analyzer = new Lucene::Analysis::SimpleAnalyzer();
# same as before and removes stop words
my $analyzer = new Lucene::Analysis::StopAnalyzer();
# same as before but you provide your own stop words
my $analyzer = new Lucene::Analysis::StopAnalyzer([qw/that this in or and/]);
# splits text at whitespace characters
my $analyzer = new Lucene::Analysis::WhitespaceAnalyzer();
# lowercases text, tokenized it based on a grammer that
# leaves named authorities intact (e-mails, company names,
# web hostnames, IP addresses, etc) and removed stop words
my $analyzer = new Lucene::Analysis::Standard::StandardAnalyzer();
# same as before but you provide your own stop words
my $analyzer = new Lucene::Analysis::Standard::StandardAnalyzer([qw/that this in or and/]);
# takes string as it is (only when using clucene-0.9.17 or above)
my $analyzer = new Lucene::Analysis::KeywordAnalyzer();
Create a custom Analyzer
package MyAnalyzer;
use base Lucene::Analysis::Analyzer;
# You MUST called SUPER::new if you implement new()
sub new {
my $class = shift;
my $self = $class->SUPER::new();
# ...
return $self;
}
sub tokenStream {
my ($self, $field, $reader) = @_;
my $ret = new Lucene::Analysis::StandardTokenizer($reader);
if ($field eq "MyKeywordField") {
return $ret;
}
$ret = new Lucene::Analysis::LowerCaseFilter($ret);
$ret = new Lucene::Analysis::StopFilter($ret, [qw/foo bar bax/]);
return $ret;
}
package main;
my $analyzer = new MyAnalyzer;
Choose your Store (storage engine)
# in-memory storage
my $store = new Lucene::Store::RAMDirectory();
# disk-based storage
my $store = Lucene::Store::FSDirectory->getDirectory("/home/lucene", 0);
Open and configure an IndexWriter
my $writer = new Lucene::Index::IndexWriter($store, $analyzer, 0);
# optional settings for power users
$writer->setMergeFactor(100);
$writer->setUseCompoundFile(0);
$writer->setMaxFieldLength(255);
$writer->setMinMergeDocs(10);
$writer->setMaxMergeDocs(100);
Create Documents and add Fields
my $doc = new Lucene::Document;
# field gets analyzed, indexed and stored
$doc->add(Lucene::Document::Field->Text("content", $content));
# field gets indexed and stored
$doc->add(Lucene::Document::Field->Keyword("isbn", $isbn));
# field gets just stored
$doc->add(Lucene::Document::Field->UnIndexed("sales_rank", $sales_rank));
# field gets analyzed and indexed
$doc->add(Lucene::Document::Field->UnStored("categories", $categories));
<<lessSYNOPSIS
Initialize/Empty Lucene index
my $analyzer = new Lucene::Analysis::Standard::StandardAnalyzer();
my $store = Lucene::Store::FSDirectory->getDirectory("/home/lucene", 1);
my $tmp_writer = new Lucene::Index::IndexWriter($store, $analyzer, 1);
$tmp_writer->close;
undef $tmp_writer;
Choose your Analyzer (string tokenizer)
# lowercases text and splits it at non-letter characters
my $analyzer = new Lucene::Analysis::SimpleAnalyzer();
# same as before and removes stop words
my $analyzer = new Lucene::Analysis::StopAnalyzer();
# same as before but you provide your own stop words
my $analyzer = new Lucene::Analysis::StopAnalyzer([qw/that this in or and/]);
# splits text at whitespace characters
my $analyzer = new Lucene::Analysis::WhitespaceAnalyzer();
# lowercases text, tokenized it based on a grammer that
# leaves named authorities intact (e-mails, company names,
# web hostnames, IP addresses, etc) and removed stop words
my $analyzer = new Lucene::Analysis::Standard::StandardAnalyzer();
# same as before but you provide your own stop words
my $analyzer = new Lucene::Analysis::Standard::StandardAnalyzer([qw/that this in or and/]);
# takes string as it is (only when using clucene-0.9.17 or above)
my $analyzer = new Lucene::Analysis::KeywordAnalyzer();
Create a custom Analyzer
package MyAnalyzer;
use base Lucene::Analysis::Analyzer;
# You MUST called SUPER::new if you implement new()
sub new {
my $class = shift;
my $self = $class->SUPER::new();
# ...
return $self;
}
sub tokenStream {
my ($self, $field, $reader) = @_;
my $ret = new Lucene::Analysis::StandardTokenizer($reader);
if ($field eq "MyKeywordField") {
return $ret;
}
$ret = new Lucene::Analysis::LowerCaseFilter($ret);
$ret = new Lucene::Analysis::StopFilter($ret, [qw/foo bar bax/]);
return $ret;
}
package main;
my $analyzer = new MyAnalyzer;
Choose your Store (storage engine)
# in-memory storage
my $store = new Lucene::Store::RAMDirectory();
# disk-based storage
my $store = Lucene::Store::FSDirectory->getDirectory("/home/lucene", 0);
Open and configure an IndexWriter
my $writer = new Lucene::Index::IndexWriter($store, $analyzer, 0);
# optional settings for power users
$writer->setMergeFactor(100);
$writer->setUseCompoundFile(0);
$writer->setMaxFieldLength(255);
$writer->setMinMergeDocs(10);
$writer->setMaxMergeDocs(100);
Create Documents and add Fields
my $doc = new Lucene::Document;
# field gets analyzed, indexed and stored
$doc->add(Lucene::Document::Field->Text("content", $content));
# field gets indexed and stored
$doc->add(Lucene::Document::Field->Keyword("isbn", $isbn));
# field gets just stored
$doc->add(Lucene::Document::Field->UnIndexed("sales_rank", $sales_rank));
# field gets analyzed and indexed
$doc->add(Lucene::Document::Field->UnStored("categories", $categories));
Download (0.018MB)
Added: 2007-05-10 License: Perl Artistic License Price:
897 downloads
LoginServer 0.0.2
LoginServer provides a multi-client TCP server class with username/password access control. more>>
LoginServer provides a multi-client TCP server class with username/password access control.
A multi-client TCP server with username/password access control. This server binds to a port and waits for connections. It then spawns LoginServerThreads. In order to create your own server you have to extend the LoginServerThread class to your needs.
Field Details
ALLOW
public static final int ALLOW
This doubleLoginPolicy allows a user to be connected to this LoginServer several times at once.
Field Value:
0
DENY
public static final int DENY
This doubleLoginPolicy denies any additional connections to a particular user when he is already logged on at this LoginServer.
Field Value:
2
KICK
public static final int KICK
This doubleLoginPolicy will close the first (=old) connection when a user logs on twice at this LoginServer.
Field Value:
1
<<lessA multi-client TCP server with username/password access control. This server binds to a port and waits for connections. It then spawns LoginServerThreads. In order to create your own server you have to extend the LoginServerThread class to your needs.
Field Details
ALLOW
public static final int ALLOW
This doubleLoginPolicy allows a user to be connected to this LoginServer several times at once.
Field Value:
0
DENY
public static final int DENY
This doubleLoginPolicy denies any additional connections to a particular user when he is already logged on at this LoginServer.
Field Value:
2
KICK
public static final int KICK
This doubleLoginPolicy will close the first (=old) connection when a user logs on twice at this LoginServer.
Field Value:
1
Download (0.013MB)
Added: 2007-04-19 License: GPL (GNU General Public License) Price:
918 downloads
CGI::FormBuilder 3.0501
CGI::FormBuilder is a Perl module to easily generate and process stateful forms. more>>
CGI::FormBuilder is a Perl module to easily generate and process stateful forms.
SYNOPSIS
use CGI::FormBuilder;
# Assume we did a DBI query to get existing values
my $dbval = $sth->fetchrow_hashref;
# First create our form
my $form = CGI::FormBuilder->new(
name => acctinfo,
method => post,
stylesheet => /path/to/style.css,
values => $dbval, # defaults
);
# Now create form fields, in order
# FormBuilder will automatically determine the type for you
$form->field(name => fname, label => First Name);
$form->field(name => lname, label => Last Name);
# Setup gender field to have options
$form->field(name => gender,
options => [qw(Male Female)] );
# Include validation for the email field
$form->field(name => email,
size => 60,
validate => EMAIL,
required => 1);
# And the (optional) phone field
$form->field(name => phone,
size => 10,
validate => /^1?-?d{3}-?d{3}-?d{4}$/,
comment => optional);
# Check to see if were submitted and valid
if ($form->submitted && $form->validate) {
# Get form fields as hashref
my $field = $form->fields;
# Do something to update your data (you would write this)
do_data_update($field->{lname}, $field->{fname},
$field->{email}, $field->{phone},
$field->{gender});
# Show confirmation screen
print $form->confirm(header => 1);
} else {
# Print out the form
print $form->render(header => 1);
}
<<lessSYNOPSIS
use CGI::FormBuilder;
# Assume we did a DBI query to get existing values
my $dbval = $sth->fetchrow_hashref;
# First create our form
my $form = CGI::FormBuilder->new(
name => acctinfo,
method => post,
stylesheet => /path/to/style.css,
values => $dbval, # defaults
);
# Now create form fields, in order
# FormBuilder will automatically determine the type for you
$form->field(name => fname, label => First Name);
$form->field(name => lname, label => Last Name);
# Setup gender field to have options
$form->field(name => gender,
options => [qw(Male Female)] );
# Include validation for the email field
$form->field(name => email,
size => 60,
validate => EMAIL,
required => 1);
# And the (optional) phone field
$form->field(name => phone,
size => 10,
validate => /^1?-?d{3}-?d{3}-?d{4}$/,
comment => optional);
# Check to see if were submitted and valid
if ($form->submitted && $form->validate) {
# Get form fields as hashref
my $field = $form->fields;
# Do something to update your data (you would write this)
do_data_update($field->{lname}, $field->{fname},
$field->{email}, $field->{phone},
$field->{gender});
# Show confirmation screen
print $form->confirm(header => 1);
} else {
# Print out the form
print $form->render(header => 1);
}
Download (0.16MB)
Added: 2007-03-06 License: Perl Artistic License Price:
962 downloads
PloneFilesZip 1.1.0 RC2
PloneFilesZip allows your visitor download the files and images from folders in a single ZIP file. more>>
PloneFilesZip allows your visitor download the files and images from folders in a single ZIP file.
loneFilesZip provides a new document action in all folderish contents (ATFolder, ...) that let the user download files (and images) contained in the fields of any AT based content (ATContentTypes and others) in that folder.
PloneFilesZip works - out of the box - with any content type which schema has a FileField, an ImageField or any field that acts like a FileField, as the AttachmentField.
Customizing (site manager)
.Choose the content types that can profide files to the user among compatible types.
.Add Dublin Core information (RDF formatted) about the contents in the ZIP archive.
.Tweak the condition/permission to let the user download.
.Customizing (content type developers)
Some content types have schemas that do not "show" the compatible fields through the standard AT API. In order to let these content types provides files in a ZIP archive, developers can add type adapter classes in the PloneFilesZip types registry. An adapter for PloneArticle is less than 20 Python lines.
Some custom field types may provide files. In order to let the content types built with such fields provide files to a ZIP archive, developers can add field adapter classes in the PloneFilesZip fields registry.
Enhancements:
- Fix a bug in file retrieving. Append arg (full=True) while creating BaseUnit to make sure we get the entire file and not a chunk file
- Fix a bug on DeepZipStructurePolicy:getZipFilePath (add **kwargs on method)
<<lessloneFilesZip provides a new document action in all folderish contents (ATFolder, ...) that let the user download files (and images) contained in the fields of any AT based content (ATContentTypes and others) in that folder.
PloneFilesZip works - out of the box - with any content type which schema has a FileField, an ImageField or any field that acts like a FileField, as the AttachmentField.
Customizing (site manager)
.Choose the content types that can profide files to the user among compatible types.
.Add Dublin Core information (RDF formatted) about the contents in the ZIP archive.
.Tweak the condition/permission to let the user download.
.Customizing (content type developers)
Some content types have schemas that do not "show" the compatible fields through the standard AT API. In order to let these content types provides files in a ZIP archive, developers can add type adapter classes in the PloneFilesZip types registry. An adapter for PloneArticle is less than 20 Python lines.
Some custom field types may provide files. In order to let the content types built with such fields provide files to a ZIP archive, developers can add field adapter classes in the PloneFilesZip fields registry.
Enhancements:
- Fix a bug in file retrieving. Append arg (full=True) while creating BaseUnit to make sure we get the entire file and not a chunk file
- Fix a bug on DeepZipStructurePolicy:getZipFilePath (add **kwargs on method)
Download (0.12MB)
Added: 2007-02-20 License: GPL (GNU General Public License) Price:
976 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
SBCLinks 0.5
SBC is a collection of scripts consisting in several PHP scripts for webpages. more>>
SBC is a collection of scripts consisting in several PHP scripts for webpages that have the following objetives in common:
- Easy to use and install.
- Fully customizable.
- Commented code in order newbies to learn some PHP.
- XHTML 1.0 compliant
- Fast and simple.
It can be very easily integrated in any Web site just by including "sbclinks.php" after configuring it.
SBCLinks is a PHP/MySQL script that lets you run your link/download directory. At the moment it has implemented only a hits counter. If I see that people is interested in this stuff, I will implement some other cool features such as:
- Vote system.
- Broken link reports
- Link reviews.
Installation:
mysqladmin -u root -p create sbc
mysql -u root -p sbc < sbclinks.sql
now edit config.php and change the variables.
Add new categories and links and it should work loading the URL in the browser.
When you import the database to MySQL, you can remove sql directory.
Usage:
Using SBCLinks is very easy. The only thing that you have to do is installing phpMyAdmin and add links and categories.
When you add a category, if it "pid" field is 0, it will hang at the root of the directory. If "pid" is the "id" of another category, it will hang at that category... its very easy. For that root categories, there is a field called "icon" that will load an image for that category in img/ directory. There is also a "descr" field to add a description of that category. If you add subcategories, leave this
fields in blank.
When you add a link, in the field "pid" you must enter the ID of the parent category where you want to hang that link.
If you add a link to a webpage, insert "0" in field "kind".
If you add a link to a file, insert "1" in the field "kind".
<<less- Easy to use and install.
- Fully customizable.
- Commented code in order newbies to learn some PHP.
- XHTML 1.0 compliant
- Fast and simple.
It can be very easily integrated in any Web site just by including "sbclinks.php" after configuring it.
SBCLinks is a PHP/MySQL script that lets you run your link/download directory. At the moment it has implemented only a hits counter. If I see that people is interested in this stuff, I will implement some other cool features such as:
- Vote system.
- Broken link reports
- Link reviews.
Installation:
mysqladmin -u root -p create sbc
mysql -u root -p sbc < sbclinks.sql
now edit config.php and change the variables.
Add new categories and links and it should work loading the URL in the browser.
When you import the database to MySQL, you can remove sql directory.
Usage:
Using SBCLinks is very easy. The only thing that you have to do is installing phpMyAdmin and add links and categories.
When you add a category, if it "pid" field is 0, it will hang at the root of the directory. If "pid" is the "id" of another category, it will hang at that category... its very easy. For that root categories, there is a field called "icon" that will load an image for that category in img/ directory. There is also a "descr" field to add a description of that category. If you add subcategories, leave this
fields in blank.
When you add a link, in the field "pid" you must enter the ID of the parent category where you want to hang that link.
If you add a link to a webpage, insert "0" in field "kind".
If you add a link to a file, insert "1" in the field "kind".
Download (0.016MB)
Added: 2006-02-28 License: MIT/X Consortium License Price:
1333 downloads
Plucene 1.25
Plucene is a Perl port of the Lucene search engine. more>>
Plucene is a Perl port of the Lucene search engine.
SYNOPSIS
Create Documents by adding Fields:
my $doc = Plucene::Document->new;
$doc->add(Plucene::Document::Field->Text(content => $content));
$doc->add(Plucene::Document::Field->Text(author => "Your Name"));
Choose Your Analyser and add documents to an Index Writer
my $analyzer = Plucene::Analysis::SimpleAnalyzer->new();
my $writer = Plucene::Index::Writer->new("my_index", $analyzer, 1);
$writer->add_document($doc);
undef $writer; # close
Search by building a Query
my $parser = Plucene::QueryParser->new({
analyzer => Plucene::Analysis::SimpleAnalyzer->new(),
default => "text" # Default field for non-specified queries
});
my $query = $parser->parse(author:"Your Name");
Then pass the Query to an IndexSearcher and collect hits
my $searcher = Plucene::Search::IndexSearcher->new("my_index");
my @docs;
my $hc = Plucene::Search::HitCollector->new(collect => sub {
my ($self, $doc, $score) = @_;
push @docs, $searcher->doc($doc);
});
$searcher->search_hc($query => $hc);
<<lessSYNOPSIS
Create Documents by adding Fields:
my $doc = Plucene::Document->new;
$doc->add(Plucene::Document::Field->Text(content => $content));
$doc->add(Plucene::Document::Field->Text(author => "Your Name"));
Choose Your Analyser and add documents to an Index Writer
my $analyzer = Plucene::Analysis::SimpleAnalyzer->new();
my $writer = Plucene::Index::Writer->new("my_index", $analyzer, 1);
$writer->add_document($doc);
undef $writer; # close
Search by building a Query
my $parser = Plucene::QueryParser->new({
analyzer => Plucene::Analysis::SimpleAnalyzer->new(),
default => "text" # Default field for non-specified queries
});
my $query = $parser->parse(author:"Your Name");
Then pass the Query to an IndexSearcher and collect hits
my $searcher = Plucene::Search::IndexSearcher->new("my_index");
my @docs;
my $hc = Plucene::Search::HitCollector->new(collect => sub {
my ($self, $doc, $score) = @_;
push @docs, $searcher->doc($doc);
});
$searcher->search_hc($query => $hc);
Download (0.32MB)
Added: 2007-06-23 License: Perl Artistic License Price:
856 downloads
Parse::Binary::FixedFormat 0.10
Parse::Binary::FixedFormat is a Perl module to convert between fixed-length fields and hashes. more>>
Parse::Binary::FixedFormat is a Perl module to convert between fixed-length fields and hashes.
SYNOPSIS
use Parse::Binary::FixedFormat;
my $tarhdr =
new Parse::Binary::FixedFormat [ qw(name:a100 mode:a8 uid:a8 gid:a8 size:a12
mtime:a12 chksum:a8 typeflag:a1 linkname:a100
magic:a6 version:a2 uname:a32 gname:a32
devmajor:a8 devminor:a8 prefix:a155) ];
my $buf;
read TARFILE, $buf, 512;
# create a hash from the buffer read from the file
my $hdr = $tarhdr->unformat($buf); # $hdr gets a hash ref
# create a flat record from a hash reference
my $buf = $tarhdr->format($hdr); # $hdr is a hash ref
# create a hash for a new record
my $newrec = $tarhdr->blank();
Parse::Binary::FixedFormat can be used to convert between a buffer with fixed-length field definitions and a hash with named entries for each field. The perl pack and unpack functions are used to perform the conversions. Parse::Binary::FixedFormat builds the format string by concatenating the field descriptions and converts between the lists used by pack and unpack and a hash that can be reference by field name.
<<lessSYNOPSIS
use Parse::Binary::FixedFormat;
my $tarhdr =
new Parse::Binary::FixedFormat [ qw(name:a100 mode:a8 uid:a8 gid:a8 size:a12
mtime:a12 chksum:a8 typeflag:a1 linkname:a100
magic:a6 version:a2 uname:a32 gname:a32
devmajor:a8 devminor:a8 prefix:a155) ];
my $buf;
read TARFILE, $buf, 512;
# create a hash from the buffer read from the file
my $hdr = $tarhdr->unformat($buf); # $hdr gets a hash ref
# create a flat record from a hash reference
my $buf = $tarhdr->format($hdr); # $hdr is a hash ref
# create a hash for a new record
my $newrec = $tarhdr->blank();
Parse::Binary::FixedFormat can be used to convert between a buffer with fixed-length field definitions and a hash with named entries for each field. The perl pack and unpack functions are used to perform the conversions. Parse::Binary::FixedFormat builds the format string by concatenating the field descriptions and converts between the lists used by pack and unpack and a hash that can be reference by field name.
Download (0.031MB)
Added: 2006-08-09 License: Perl Artistic License Price:
1171 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 legion 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