dan strong jsb
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 330
DansTuner 0.83
DansTuner project is a program that tells you if you are playing a pitch in tune. more>>
DansTuner project is a program that tells you if you are playing a pitch in tune.
Major features include automatic discovery of which note you are trying to play (good for trumpet, singer, etc.), the ability to play a guide tone at a configurable volume, a graphical moving "needle" with a red/green display and detail about how flat or sharp you are, and an easily configurable background noise threshold.
Main features:
- takes audio from the default device
- if it is above a background noise level, detects the pitch
- takes the difference between that pitch and an "ideal" (equal-tempered) pitch, and shows you that difference
- plays a guide tone along with you to help you tune
<<lessMajor features include automatic discovery of which note you are trying to play (good for trumpet, singer, etc.), the ability to play a guide tone at a configurable volume, a graphical moving "needle" with a red/green display and detail about how flat or sharp you are, and an easily configurable background noise threshold.
Main features:
- takes audio from the default device
- if it is above a background noise level, detects the pitch
- takes the difference between that pitch and an "ideal" (equal-tempered) pitch, and shows you that difference
- plays a guide tone along with you to help you tune
Download (0.22MB)
Added: 2006-11-02 License: GPL (GNU General Public License) Price:
1089 downloads
dtRdr::Config 0.0.11
dtRdr::Config is a Perl module with Factory class for configuration system. more>>
dtRdr::Config is a Perl module with Factory class for configuration system.
Factory Methods
factory_read_config
Constructor function (see new)
my $obj = factory_read_config($file);
new
$conf = dtRdr::Config->new($file);
get_library_info
my @libraries = $conf->get_library_info;
<<lessFactory Methods
factory_read_config
Constructor function (see new)
my $obj = factory_read_config($file);
new
$conf = dtRdr::Config->new($file);
get_library_info
my @libraries = $conf->get_library_info;
Download (2.8MB)
Added: 2007-03-14 License: Perl Artistic License Price:
955 downloads
StrongBad Emails 2.0
StrongBad Emails is an extension which adds the words Previous and Next to the StrongBad Emails. more>>
StrongBad Emails is an extension which adds the words "Previous" and "Next" to the StrongBad Emails.
Tired of having to go back to the main email page to view the next Strong Bad email cartoon? Well wake up and smell the coffee with this extension.
<<lessTired of having to go back to the main email page to view the next Strong Bad email cartoon? Well wake up and smell the coffee with this extension.
Download (0.003MB)
Added: 2007-04-10 License: GPL (GNU General Public License) Price:
928 downloads
WiKID Strong Authentication System 3.0.10
WiKID is a two-factor authentication system. more>> <<less
Download (MB)
Added: 2007-06-12 License: Other/Proprietary License Price:
866 downloads
Other version of WiKID Strong Authentication System
License:GPL (GNU General Public License)
License:Other/Proprietary License
Airhook 2
Airhook project is a reliable data delivery protocol, like TCP. more>>
Airhook is a transmission control and reliable data delivery protocol, like TCP.
Unlike TCP, Airhook gracefully handles intermittent, unreliable, or delayed networks.
Other features include session recovery, queue control, and delivery status notification.
Airhook is useful for keeping connections running over bad wireless networks (like CDPD), intermittent dial-up connections, and any other network that doesnt work very well.
The implementation includes a TCP proxy (so you can use HTTP, SSH, etc.) and a protocol library for applications that want more control (real-time media delivery, games, etc).
BUILDING
Theres no autoconf or automake or libtool here, just a very simple Makefile
you can edit to suit your system.
When youre done, "make" and "make install"
(or "make install PREFIX=/my/install/prefix") should work.
<<lessUnlike TCP, Airhook gracefully handles intermittent, unreliable, or delayed networks.
Other features include session recovery, queue control, and delivery status notification.
Airhook is useful for keeping connections running over bad wireless networks (like CDPD), intermittent dial-up connections, and any other network that doesnt work very well.
The implementation includes a TCP proxy (so you can use HTTP, SSH, etc.) and a protocol library for applications that want more control (real-time media delivery, games, etc).
BUILDING
Theres no autoconf or automake or libtool here, just a very simple Makefile
you can edit to suit your system.
When youre done, "make" and "make install"
(or "make install PREFIX=/my/install/prefix") should work.
Download (0.028MB)
Added: 2006-09-12 License: GPL (GNU General Public License) Price:
1138 downloads
Anonym.OS LiveCD
Anonym.OS is an OpenBSD 3.8 Live CD with strong tools for anonymizing and encrypting connections. more>>
Anonym.OS LiveCD is based on OpenBSD 3.8 with strong tools for anonymizing and encrypting connections.
Standard network applications are provided and configured to take advantage of the tor onion routing network.
Anonym.OS was first suggested by kaos.theory at Interzone 4 in Atlanta, March of 2005.
Nearly a year and a lot of marathon coding sessions later, its a reality and was released by elmore, fade, arcon, dr.kaos, digunix, atlas and beth of kaos.theory at Shmoocon 2006.
<<lessStandard network applications are provided and configured to take advantage of the tor onion routing network.
Anonym.OS was first suggested by kaos.theory at Interzone 4 in Atlanta, March of 2005.
Nearly a year and a lot of marathon coding sessions later, its a reality and was released by elmore, fade, arcon, dr.kaos, digunix, atlas and beth of kaos.theory at Shmoocon 2006.
Download (549.1MB)
Added: 2006-01-17 License: GPL (GNU General Public License) Price:
1380 downloads
dsync 0.9.4
dsync is a tool for merging or synchronizing contents of two directories, or just for backups. more>>
dsync is a tool for merging or synchronizing contents of two directories, or just for backups.
dsync project is written in Perl. dsync is inspired by Dan Kogais psync.
I sought something similar to (but more robust than!) the legacy PowerMerge programs available some years ago for classic releases of Mac OS. Dan Kogais nifty psync and supporting MacOSX::File modules seemed like a great start.
Having some time during the lull of the holiday season, I cobbled together Dsync. With Dsync, I attempted to capture the feature set of PowerMerge with the foundation of psync and a few ideas for improvement.
This is an early release. I use it on my systems with some degree of success, but the tool is far from well-tested, predictable, or reliable. Please treat it as development-grade software and help me improve it with your feedback.
While Dsyncs current focus aims exclusively at Mac OS X and its underlying idiosynchracies, I expect that it would be trivial to modify Dsync to work under any unix-like OS.
Installation:
Copy the program to wherever it is easily accessible:
$ cp dsync /usr/local/bin/
Make sure the executable bit is set:
$ ls -l /usr/local/bin/dsync
-rwxr-xr-x 1 root root 24841 Dec 25 13:54 /usr/local/bin/dsync
if not, then set it:
$ chmod +x /usr/local/bin/dsync
If you have Perl installed elsewhere than /usr/bin, then create a symbolic link:
$ cd /usr/bin
$ ln -s /usr/local/bin/perl
[or wherever you keep Perl]
You will also need MacOSX::File by Dan Kogai:
< http://search.cpan.org/dist/MacOSX-File/ >
To get started, take a look at dsync.html included with this distribution or type:
$ perlpod /usr/local/bin/dsync
[or wherever you stashed dsync]
Enhancements:
- Added an option for lax synchronization to foreign file systems.
<<lessdsync project is written in Perl. dsync is inspired by Dan Kogais psync.
I sought something similar to (but more robust than!) the legacy PowerMerge programs available some years ago for classic releases of Mac OS. Dan Kogais nifty psync and supporting MacOSX::File modules seemed like a great start.
Having some time during the lull of the holiday season, I cobbled together Dsync. With Dsync, I attempted to capture the feature set of PowerMerge with the foundation of psync and a few ideas for improvement.
This is an early release. I use it on my systems with some degree of success, but the tool is far from well-tested, predictable, or reliable. Please treat it as development-grade software and help me improve it with your feedback.
While Dsyncs current focus aims exclusively at Mac OS X and its underlying idiosynchracies, I expect that it would be trivial to modify Dsync to work under any unix-like OS.
Installation:
Copy the program to wherever it is easily accessible:
$ cp dsync /usr/local/bin/
Make sure the executable bit is set:
$ ls -l /usr/local/bin/dsync
-rwxr-xr-x 1 root root 24841 Dec 25 13:54 /usr/local/bin/dsync
if not, then set it:
$ chmod +x /usr/local/bin/dsync
If you have Perl installed elsewhere than /usr/bin, then create a symbolic link:
$ cd /usr/bin
$ ln -s /usr/local/bin/perl
[or wherever you keep Perl]
You will also need MacOSX::File by Dan Kogai:
< http://search.cpan.org/dist/MacOSX-File/ >
To get started, take a look at dsync.html included with this distribution or type:
$ perlpod /usr/local/bin/dsync
[or wherever you stashed dsync]
Enhancements:
- Added an option for lax synchronization to foreign file systems.
Download (0.015MB)
Added: 2005-12-20 License: Artistic License Price:
1406 downloads
Class::DBI::DataMigration::Mapping 0.02
Class::DBI::DataMigration::Mapping is an abstract parent class for objects that map a single column in a single row. more>>
Class::DBI::DataMigration::Mapping is an abstract parent class for objects that map a single column in a single row from the source database to the target database.
Synopsis
use Class::DBI::DataMigration::Mapping;
# ... Later, when building $mappings hashref for use by a
# Class::DBI::DataMigration::Mapper (which see for synopsis --
# in this example, assume an appropriate @source_keys):
foreach my $source_key (@source_keys) {
$mappings{$source_key} = new Class::DBI::DataMigration::Mapping;
}
# ... Now we can assign $mappings to our Mapper ...
Class::DBI::DataMigration::Mapping objects are used by Class::DBI::DataMigration::Mapper objects to retrieve the values for particular keys into source database objects; these will in turn be stored under particular keys into newly-created target database objects.
<<lessSynopsis
use Class::DBI::DataMigration::Mapping;
# ... Later, when building $mappings hashref for use by a
# Class::DBI::DataMigration::Mapper (which see for synopsis --
# in this example, assume an appropriate @source_keys):
foreach my $source_key (@source_keys) {
$mappings{$source_key} = new Class::DBI::DataMigration::Mapping;
}
# ... Now we can assign $mappings to our Mapper ...
Class::DBI::DataMigration::Mapping objects are used by Class::DBI::DataMigration::Mapper objects to retrieve the values for particular keys into source database objects; these will in turn be stored under particular keys into newly-created target database objects.
Download (0.012MB)
Added: 2006-10-06 License: Perl Artistic License Price:
1113 downloads
Esound 0.2.38
Esound project is an audio mixing server that allows multiple applications to output sound to the same audio device. more>>
Esound project is an audio mixing server that allows multiple applications to output sound to the same audio device. Development on Esound stopped several years ago, in the hope that someone would write a replacement.
Esound is seriously lacking in features required for a modern desktop environment, particularly for multi-channel audio and audio/video synchronization. However, it is part of the GNOME platform (for a little while longer), so we slavishly continue to maintain it. Please dont laugh at us.
Bugs should be reported at http://bugzilla.gnome.org. Its unlikely that theyll be fixed unless theyre regressions from recent versions or accompanied by patches.
Enhancements:
- Fix 100% CPU problem introduced in 0.2.37 (Joe Marcus Clarke)
- Fix libesddsp not linking against libesd (Loà ̄c Minier)
- Fix file descriptor leaks (Pierre Ossman)
- Fix a build problem with the read/write wrapper (Jean Bréfort)
- chdir to "/" when starting up (Dan Winship)
- Only install the esddsp man page if we build the binary
<<lessEsound is seriously lacking in features required for a modern desktop environment, particularly for multi-channel audio and audio/video synchronization. However, it is part of the GNOME platform (for a little while longer), so we slavishly continue to maintain it. Please dont laugh at us.
Bugs should be reported at http://bugzilla.gnome.org. Its unlikely that theyll be fixed unless theyre regressions from recent versions or accompanied by patches.
Enhancements:
- Fix 100% CPU problem introduced in 0.2.37 (Joe Marcus Clarke)
- Fix libesddsp not linking against libesd (Loà ̄c Minier)
- Fix file descriptor leaks (Pierre Ossman)
- Fix a build problem with the read/write wrapper (Jean Bréfort)
- chdir to "/" when starting up (Dan Winship)
- Only install the esddsp man page if we build the binary
Download (0.50MB)
Added: 2007-05-04 License: LGPL (GNU Lesser General Public License) Price:
905 downloads
autovaca 3716
autovaca is a probabilities simulator for contract bridge with a Web interface. more>>
autovaca is a probabilities simulator for contract bridge with a Web interface. autovaca game helps the user explore the probabilities of the presence of cards in each hand, color, and point lengths, as new information is learned during bidding and playing.
Enter known cards and properties of each hand. Enter for example: AT67 at S of NORTH to say that you know that north has the ace, the ten, the 6 and the 7 of spades.
Use A,K,Q and J for the honor cards. To say that you know positively that north does not have another spade enter both a min and a max of 4, except if you enter all the cards in norths hand.
Click the button below to compute the probabilities for each card to be in each hand, each hand to have any length in any colour or any number of honour points.
Enhancements:
- Produces output compliant with HTML 4.01 Transitional.
<<lessEnter known cards and properties of each hand. Enter for example: AT67 at S of NORTH to say that you know that north has the ace, the ten, the 6 and the 7 of spades.
Use A,K,Q and J for the honor cards. To say that you know positively that north does not have another spade enter both a min and a max of 4, except if you enter all the cards in norths hand.
Click the button below to compute the probabilities for each card to be in each hand, each hand to have any length in any colour or any number of honour points.
Enhancements:
- Produces output compliant with HTML 4.01 Transitional.
Download (0.030MB)
Added: 2005-12-13 License: GPL (GNU General Public License) Price:
1411 downloads
HTML::Sanitizer 0.04
HTML::Sanitizer is a HTML Sanitizer. more>>
HTML::Sanitizer is a HTML Sanitizer.
SYNOPSIS
my $safe = new HTML::Sanitizer;
$safe->permit_only(
qw/ strong em /,
a => {
href => qr/^(?:http|ftp):/,
title => 1,
},
img => {
src => qr/^(?:http|ftp):/,
alt => 1,
},
b => HTML::Element->new(strong),
);
$sanitized = $safe->filter_html_fragment($evil_html);
# or
my $tree = HTML::TreeBuilder->new->parse_file($filename);
$safe->sanitize_tree($tree);
ABSTRACT
This module acts as a filter for HTML. It is not a validator, though it might be possible to write a validator-like tool with it. Its intended to strip out unwanted HTML elements and attributes and leave you with non-dangerous HTML code that you should be able to trust.
<<lessSYNOPSIS
my $safe = new HTML::Sanitizer;
$safe->permit_only(
qw/ strong em /,
a => {
href => qr/^(?:http|ftp):/,
title => 1,
},
img => {
src => qr/^(?:http|ftp):/,
alt => 1,
},
b => HTML::Element->new(strong),
);
$sanitized = $safe->filter_html_fragment($evil_html);
# or
my $tree = HTML::TreeBuilder->new->parse_file($filename);
$safe->sanitize_tree($tree);
ABSTRACT
This module acts as a filter for HTML. It is not a validator, though it might be possible to write a validator-like tool with it. Its intended to strip out unwanted HTML elements and attributes and leave you with non-dangerous HTML code that you should be able to trust.
Download (0.009MB)
Added: 2007-07-11 License: Perl Artistic License Price:
835 downloads
Pidentd 3.0.19
Pidentd v3 is a much improved version of the original Ident daemon both in terms of speed, code quality and features. more>>
Pidentd is a program that implements the RFC1413 identification server. It was very much inspired by Dan Bernsteins original authd (but unlike that program doesnt use netstat to get some of the information).
It uses the kernel information directly. (And is due to that fact a lot faster). Dan has now written another version of the authd daemon that uses his kstuff to read the kernel information.
Unlike that daemon, this will use only normally available kernel access functions (and is due to that more limited in the different machines it support).
Please note that this daemon used to be called pauthd but has changed name to better reflect what it does (and to conform to the new RFC).
Enhancements:
- Support for Solaris 10 on AMD64 was added and the 64-bit support was generalized for Solaris.
- A minor compilation problem in k_sunos510.c was fixed.
<<lessIt uses the kernel information directly. (And is due to that fact a lot faster). Dan has now written another version of the authd daemon that uses his kstuff to read the kernel information.
Unlike that daemon, this will use only normally available kernel access functions (and is due to that more limited in the different machines it support).
Please note that this daemon used to be called pauthd but has changed name to better reflect what it does (and to conform to the new RFC).
Enhancements:
- Support for Solaris 10 on AMD64 was added and the 64-bit support was generalized for Solaris.
- A minor compilation problem in k_sunos510.c was fixed.
Download (0.14MB)
Added: 2005-10-19 License: Freeware Price:
1467 downloads
Avogadro 0.1.0
Avogadro is an advanced molecular editor designed for cross-platform use in computational chemistry, molecular modeling... more>>
Avogadro is an advanced molecular editor designed for cross-platform use in computational chemistry, molecular modeling, bioinformatics, materials science, and related areas.
This project offers a flexible rendering engine and a powerful plugin architecture.
The main concept behind Avogadro is to enable a strong framework for molecular visualization and editing. Each community has their own needs and goals for an ideal tool. So Avogadro seeks to allow users to easily provide their own plugins and scripts for rendering, tools, commands... etc.
Avogadro is based on top of existing chemistry software, including Open Babel. In the future, it will offer strong scripting abilities to allow for automated demos, submission of calculations to local computational resources, and user-defined customization.
<<lessThis project offers a flexible rendering engine and a powerful plugin architecture.
The main concept behind Avogadro is to enable a strong framework for molecular visualization and editing. Each community has their own needs and goals for an ideal tool. So Avogadro seeks to allow users to easily provide their own plugins and scripts for rendering, tools, commands... etc.
Avogadro is based on top of existing chemistry software, including Open Babel. In the future, it will offer strong scripting abilities to allow for automated demos, submission of calculations to local computational resources, and user-defined customization.
Download (0.25MB)
Added: 2007-06-04 License: GPL (GNU General Public License) Price:
875 downloads
QuantLib 0.8.1
QuantLib is a free/open-source library for quantitative finance. more>>
QuantLib project is aimed at providing a comprehensive software framework for quantitative finance. QuantLib is a free/open-source library for modeling, trading, and risk management in real-life.
QuantLib is written in C++ with a clean object model, and is then exported to different languages such as C#, Objective Caml, Java, Perl, Python, GNU R, Ruby, and Scheme. The QuantLibAddin/QuantLibXL project uses ObjectHandler to export an object-oriented QuantLib interface to a variety of end-user platforms including Microsoft Excel and OpenOffice.org Calc. Bindings to other languages and porting to Gnumeric, Matlab/Octave, S-PLUS/R, Mathematica, COM/CORBA/SOAP architectures, FpML, are under consideration. See the extensions page for details.
Appreciated by quantitative analysts and developers, it is intended for academics and practitioners alike, eventually promoting a stronger interaction between them. QuantLib offers tools that are useful both for practical implementation and for advanced modeling, with features such as market conventions, yield curve models, solvers, PDEs, Monte Carlo (low-discrepancy included), exotic options, VAR, and so on.
Finance is an area where well-written open-source projects could make a tremendous difference:
any financial institution needs a solid, time-effective, operative implementation of cutting edge pricing models and hedging tools. However, to get there, one is currently forced to re-invent the wheel every time. Even standard decade-old models, such as Black-Scholes, still lack a public robust implementation. As a consequences many good quants are wasting their time writing C++ classes which have been already written thousands of times.
By designing and building these tools in the open, QuantLib will both encourage peer review of the tools themselves, and demonstrate how this ought to be done for scientific and commercial software. Dan Gezelters talk at the first Open Source/Open Science conference discussed how the scientific tradition of peer review fits well with the philosophy of the Open Source movement. Open standards are the only fair way for science and technology to evolve.
The library could be exploited across different research and regulatory institutions, banks, software companies, and so on. Being a free/open-source project, quants contributing to the library would not need to start from scratch every time.
Students could master a library that is actually used in the real world and contribute to it in a meaningful way. This would potentially place them in a privileged position on the job market.
Researchers would have a framework at hand, which vastly reduces the amount of low-level work necessary to build models, so to be able to focus on more complex and interesting problems.
Financial firms could exploit QuantLib as base code and/or benchmark, while being able to engage in creating more innovative solutions that would make them more competitive on the market.
Regulatory institutions may have a tool for standard pricing and risk management practices.
The QuantLib license is a modified BSD license suitable for use in both free software and proprietary applications, imposing no constraints at all on the use of the library.
A few companies have committed significant resources to the development of this library, notably StatPro, a leading international risk-management provider, where the QuantLib project was born.
<<lessQuantLib is written in C++ with a clean object model, and is then exported to different languages such as C#, Objective Caml, Java, Perl, Python, GNU R, Ruby, and Scheme. The QuantLibAddin/QuantLibXL project uses ObjectHandler to export an object-oriented QuantLib interface to a variety of end-user platforms including Microsoft Excel and OpenOffice.org Calc. Bindings to other languages and porting to Gnumeric, Matlab/Octave, S-PLUS/R, Mathematica, COM/CORBA/SOAP architectures, FpML, are under consideration. See the extensions page for details.
Appreciated by quantitative analysts and developers, it is intended for academics and practitioners alike, eventually promoting a stronger interaction between them. QuantLib offers tools that are useful both for practical implementation and for advanced modeling, with features such as market conventions, yield curve models, solvers, PDEs, Monte Carlo (low-discrepancy included), exotic options, VAR, and so on.
Finance is an area where well-written open-source projects could make a tremendous difference:
any financial institution needs a solid, time-effective, operative implementation of cutting edge pricing models and hedging tools. However, to get there, one is currently forced to re-invent the wheel every time. Even standard decade-old models, such as Black-Scholes, still lack a public robust implementation. As a consequences many good quants are wasting their time writing C++ classes which have been already written thousands of times.
By designing and building these tools in the open, QuantLib will both encourage peer review of the tools themselves, and demonstrate how this ought to be done for scientific and commercial software. Dan Gezelters talk at the first Open Source/Open Science conference discussed how the scientific tradition of peer review fits well with the philosophy of the Open Source movement. Open standards are the only fair way for science and technology to evolve.
The library could be exploited across different research and regulatory institutions, banks, software companies, and so on. Being a free/open-source project, quants contributing to the library would not need to start from scratch every time.
Students could master a library that is actually used in the real world and contribute to it in a meaningful way. This would potentially place them in a privileged position on the job market.
Researchers would have a framework at hand, which vastly reduces the amount of low-level work necessary to build models, so to be able to focus on more complex and interesting problems.
Financial firms could exploit QuantLib as base code and/or benchmark, while being able to engage in creating more innovative solutions that would make them more competitive on the market.
Regulatory institutions may have a tool for standard pricing and risk management practices.
The QuantLib license is a modified BSD license suitable for use in both free software and proprietary applications, imposing no constraints at all on the use of the library.
A few companies have committed significant resources to the development of this library, notably StatPro, a leading international risk-management provider, where the QuantLib project was born.
Download (2.1MB)
Added: 2007-06-07 License: BSD License Price:
871 downloads
Hash::Type 1.05
Hash::Type module contains pseudo-hashes as arrays tied to a type (list of fields). more>>
Hash::Type module contains pseudo-hashes as arrays tied to a "type" (list of fields).
SYNOPSIS
use Hash::Type;
# create a Hash::Type
my $personType = new Hash::Type(qw(firstname lastname city));
# create and populate some hashes tied to $personType
tie %wolfgang, $personType, "wolfgang amadeus", "mozart", "salzburg";
$ludwig = new $personType ("ludwig", "van beethoven", "vienna");
$jsb = new $personType;
$jsb->{city} = "leipzig";
@{$jsb}{qw(firstname lastname)} = ("johann sebastian", "bach");
# add fields dynamically
$personType->add("birth", "death") or die "fields not added";
$wolfgang{birth} = 1750;
# More complete example : read a flat file with headers on first line
my ($headerline, @datalines) = map {chomp; $_} ;
my $ht = new Hash::Type(split /t/, $headerline);
foreach my $line (@datalines) {
my $data = new $ht(split /t/, $line);
work_with($data->{someField}, $data->{someOtherField});
}
# an alternative to Time::gmtime and Time::localtime
my $timeType = new Hash::Type qw(sec min hour mday mon year wday yday);
my $localtime = new $timeType (localtime);
my $gmtime = new $timeType (gmtime);
print $localtime->{hour} - $gmtime->{hour}, " hours difference to GMT";
# comparison functions
my $byAge = $personType->cmp("birth : -num, lastname, firstname");
my $byNameLength = $personType->cmp(lastname => {length($b) length($a)},
lastname => alpha,
firstname => alpha);
showPerson($_) foreach (sort $byAge @people);
showPerson($_) foreach (sort $byNameLength @people);
# special comparisons : dates
my $US_DateCmp = $myHashType->cmp("someDateField : m/d/y");
my $FR_InverseDateCmp = $myHashType->cmp("someDateField : -d.m.y");
<<lessSYNOPSIS
use Hash::Type;
# create a Hash::Type
my $personType = new Hash::Type(qw(firstname lastname city));
# create and populate some hashes tied to $personType
tie %wolfgang, $personType, "wolfgang amadeus", "mozart", "salzburg";
$ludwig = new $personType ("ludwig", "van beethoven", "vienna");
$jsb = new $personType;
$jsb->{city} = "leipzig";
@{$jsb}{qw(firstname lastname)} = ("johann sebastian", "bach");
# add fields dynamically
$personType->add("birth", "death") or die "fields not added";
$wolfgang{birth} = 1750;
# More complete example : read a flat file with headers on first line
my ($headerline, @datalines) = map {chomp; $_} ;
my $ht = new Hash::Type(split /t/, $headerline);
foreach my $line (@datalines) {
my $data = new $ht(split /t/, $line);
work_with($data->{someField}, $data->{someOtherField});
}
# an alternative to Time::gmtime and Time::localtime
my $timeType = new Hash::Type qw(sec min hour mday mon year wday yday);
my $localtime = new $timeType (localtime);
my $gmtime = new $timeType (gmtime);
print $localtime->{hour} - $gmtime->{hour}, " hours difference to GMT";
# comparison functions
my $byAge = $personType->cmp("birth : -num, lastname, firstname");
my $byNameLength = $personType->cmp(lastname => {length($b) length($a)},
lastname => alpha,
firstname => alpha);
showPerson($_) foreach (sort $byAge @people);
showPerson($_) foreach (sort $byNameLength @people);
# special comparisons : dates
my $US_DateCmp = $myHashType->cmp("someDateField : m/d/y");
my $FR_InverseDateCmp = $myHashType->cmp("someDateField : -d.m.y");
Download (0.008MB)
Added: 2007-08-06 License: Perl Artistic License Price:
813 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 dan strong jsb 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