sanefile 1.05
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 46
Sanefile 1.05
Sanefile is a tool to easily and quickly clean and change a large number of filenames. more>>
Sanefile is a tool to easily and quickly clean and change a large number of filenames. The idea started when I started “ripping” my own CD’s and the filenames were all different and full of errors. When I started getting TV downloads from other sources, the issue became a problem.
I had to find an efficient way of changing a large number of filenames. Sanefile was the result. Simple, single-purpose and very efficient at it with total exploitation of Tcl’s rich Regular Expression capabilities.
What this tool is NOT: spy-ware, spam-ware, virus or any other crappy stuff.
With Sanefile, you can use the full power of regular expressions. For instance, imagine that you want to filter off all files starting with a A. To use the just A would remove from the list all the files with A in it. Not the solution. If you use ^A (Carat and A) it means that it has to match A only at the beginning of the text.
More examples:
^text matches "text" in the beginning of the name
text$ matches "text" in the END of the filename
. matches ANY character
[ ] range indicator as in:
[a-z] matches ONE letter "a" to "z"
[a-zA-Z] matches ONE letter "a" to "z" and "A" to "Z"
[0-9] matches ONE digit
[^range] (caret) matches if NOT in the range as in:
[^0-9] matches if it is NOT a digit
* operator for repetition
.* matches everything
[0-9]* multiple digits
[^a-zA-Z0-9]* a bunch of everything BUT a letter or digit
escape operator
t tab
( when you want to match (
. when you want to match .
when you want to match (RARELY DONE! Think why.)
() used to group expressions
ab* a followed with multiple bs
(ab)* multiple ab (different from above!)
^Doors.*([A-Z][0-9]*).*.mp3$ Matches all files starting with Doors, have somewhere in the middle a letter followed by digits and end in ".mp3"
<<lessI had to find an efficient way of changing a large number of filenames. Sanefile was the result. Simple, single-purpose and very efficient at it with total exploitation of Tcl’s rich Regular Expression capabilities.
What this tool is NOT: spy-ware, spam-ware, virus or any other crappy stuff.
With Sanefile, you can use the full power of regular expressions. For instance, imagine that you want to filter off all files starting with a A. To use the just A would remove from the list all the files with A in it. Not the solution. If you use ^A (Carat and A) it means that it has to match A only at the beginning of the text.
More examples:
^text matches "text" in the beginning of the name
text$ matches "text" in the END of the filename
. matches ANY character
[ ] range indicator as in:
[a-z] matches ONE letter "a" to "z"
[a-zA-Z] matches ONE letter "a" to "z" and "A" to "Z"
[0-9] matches ONE digit
[^range] (caret) matches if NOT in the range as in:
[^0-9] matches if it is NOT a digit
* operator for repetition
.* matches everything
[0-9]* multiple digits
[^a-zA-Z0-9]* a bunch of everything BUT a letter or digit
escape operator
t tab
( when you want to match (
. when you want to match .
when you want to match (RARELY DONE! Think why.)
() used to group expressions
ab* a followed with multiple bs
(ab)* multiple ab (different from above!)
^Doors.*([A-Z][0-9]*).*.mp3$ Matches all files starting with Doors, have somewhere in the middle a letter followed by digits and end in ".mp3"
Download (0.007MB)
Added: 2006-12-11 License: Artistic License Price:
1047 downloads
TxSig 1.05
TxSig is a small signature rotator. more>>
TxSig project is a small signature rotator.
It can randomly pick from a directory of files containing fortunes or quotes. It offers a variety of features such as compatibility with files from fortune. Users can generate their own quote files.
Main features:
- Quotes chosen based on length
- Quotes chosen based on rating
- Multiple configuration files
- Multiple quote/fortune files
- 100% Compatability with standard fortune files
- Drop-in compatability with pine V 4.44
- Optional apending of .signature (or any other file)
- Uses only standard perl modules
- Tastes Good
- Possibly Sexy
Enhancements:
- fixed a problem with creating and updating the data.cnt file
<<lessIt can randomly pick from a directory of files containing fortunes or quotes. It offers a variety of features such as compatibility with files from fortune. Users can generate their own quote files.
Main features:
- Quotes chosen based on length
- Quotes chosen based on rating
- Multiple configuration files
- Multiple quote/fortune files
- 100% Compatability with standard fortune files
- Drop-in compatability with pine V 4.44
- Optional apending of .signature (or any other file)
- Uses only standard perl modules
- Tastes Good
- Possibly Sexy
Enhancements:
- fixed a problem with creating and updating the data.cnt file
Download (0.028MB)
Added: 2006-12-13 License: GPL (GNU General Public License) Price:
1046 downloads
Text::FixEOL 1.05
Text::FixEOL is a Perl module which Canonicalizes text to a specified EOL/EOF convention, repairing any mixed usages. more>> <<less
Download (0.093MB)
Added: 2007-03-03 License: Perl Artistic License Price:
965 downloads
Five Chess 1.05
Five Chess is a connect-five board game. more>>
Five Chess is a connect-five board game. Five Chess is released under the terms of GNU General Public License version 2.
It was initially developed from a qt Tic-Tac-Toe example.
Main features:
- 4 ways to play -- Human vs Human, AI vs Human, Human vs AI, AI vs AI
- 6 board sizes available -- 9X9 to 19X19
- Save Played games
- View played games
- Not so smart AI
<<lessIt was initially developed from a qt Tic-Tac-Toe example.
Main features:
- 4 ways to play -- Human vs Human, AI vs Human, Human vs AI, AI vs AI
- 6 board sizes available -- 9X9 to 19X19
- Save Played games
- View played games
- Not so smart AI
Download (0.033MB)
Added: 2007-02-23 License: Freeware Price:
1064 downloads
NetCARD Config 1.05
NetCARD Config project helps linux users to configure network cards for two ip one for DSL network one for Local Network. more>>
NetCARD Config project helps linux users to configure network cards for two ip one for DSL network one for Local Network.
<<less Download (0.030MB)
Added: 2006-03-27 License: GPL (GNU General Public License) Price:
1315 downloads
Tie::FileLRUCache 1.05
Tie::FileLRUCache is a lightweight but robust filesystem based persistent LRU cache. more>>
Tie::FileLRUCache is a lightweight but robust filesystem based persistent LRU cache.
SYNOPSIS
OBJECT INTERFACE
use Tie::FileLRUCache;
my $cache = Tie::FileLRUCache->new({ -cache_dir => $directory, -keep_last => 100 });
# Inserting value into LRU cache using -key
$cache->update({ -key => $key, -value => $value });
# Inserting value into LRU cache using -cache_key
my $cache_key = $cache->make_cache_key({ -key => $key });
$cache->update({ -cache_key => $cache_key, -value => $value });
# Checking LRU cache
my ($in_cache,$value) = $cache->check({ -key => $key });
if ($in_cache) {
return $value;
}
# Not in cache - do something else
# Checking LRU cache with speed up hack for objects, hashes, arrays etc used as keys
my $cache_key = $cache->make_cache_key({ -key => $something });
my ($in_cache,$value) = $cache->check({ -cache_key => $cache_key });
if ($in_cache) {
return $value;
}
# Not in cache - do something else
# Deleting a key and its value from the cache
$cache->delete({ -key => $key });
# Clearing LRU cache
$cache->clear;
TIED INTERFACE
use Tie::FileLRUCache;
[$X =] tie %hash, Tie::FileLRUCache, $cache_dir, $keep_last_n;
# Adding a key/value to the cache
$hash{$key} = $value;
# Checking the cache
if (not exists $hash{$key}) {;
# No match
.
.
.
} else {
my $value = $hash{$key};
.
.
.
}
# Removing a value from the cache;
delete $hash{$key};
# Clearing the cache
%hash = ();
Note: Iteration over the cache (each, keys, values) is _NOT_ supported.
<<lessSYNOPSIS
OBJECT INTERFACE
use Tie::FileLRUCache;
my $cache = Tie::FileLRUCache->new({ -cache_dir => $directory, -keep_last => 100 });
# Inserting value into LRU cache using -key
$cache->update({ -key => $key, -value => $value });
# Inserting value into LRU cache using -cache_key
my $cache_key = $cache->make_cache_key({ -key => $key });
$cache->update({ -cache_key => $cache_key, -value => $value });
# Checking LRU cache
my ($in_cache,$value) = $cache->check({ -key => $key });
if ($in_cache) {
return $value;
}
# Not in cache - do something else
# Checking LRU cache with speed up hack for objects, hashes, arrays etc used as keys
my $cache_key = $cache->make_cache_key({ -key => $something });
my ($in_cache,$value) = $cache->check({ -cache_key => $cache_key });
if ($in_cache) {
return $value;
}
# Not in cache - do something else
# Deleting a key and its value from the cache
$cache->delete({ -key => $key });
# Clearing LRU cache
$cache->clear;
TIED INTERFACE
use Tie::FileLRUCache;
[$X =] tie %hash, Tie::FileLRUCache, $cache_dir, $keep_last_n;
# Adding a key/value to the cache
$hash{$key} = $value;
# Checking the cache
if (not exists $hash{$key}) {;
# No match
.
.
.
} else {
my $value = $hash{$key};
.
.
.
}
# Removing a value from the cache;
delete $hash{$key};
# Clearing the cache
%hash = ();
Note: Iteration over the cache (each, keys, values) is _NOT_ supported.
Download (0.017MB)
Added: 2007-03-03 License: Perl Artistic License Price:
965 downloads
FreeMIS 1.05
FreeMIS project is developing a free and better alternative to the commercial MIS products. more>>
FreeMIS project is developing a free and better alternative to the commercial MIS products. All the FreeMIS files and data are stored on a web server, and the FreeMIS system is accessed via the Internet. Users simply need an Internet connection and a modern web browser (preferrably Firefox, but Internet Explorer 6 and Safari work fine).
Each user has a unique username and password, which grant them access to the system. At present, only teachers can access the system, but the design of FreeMIS is ready for access by any of the stakeholders in the school system - students, parents, governors etc.
At present, FreeMIS is used to write reports to parents on pupil progress. Using FreeMIS, teachers can write reports at a time and place of their own choosing. Some choose to write reports in school, but many now write their reports from home.
Main features:
- Password protected access, to ensure security of data.
- Web-based, so it can be accessed on any computer connected to the Internet, without the need for special software.
- Storage of pupil and staff data
- Storage of class enrollment and course data
- Production of reports to parents/guardians on pupil progress
- Monitoring of pupil progress through a tracking and target setting system, which includes the automatic generation of letters to parents/guardians
- Noting of unexplained absences, which automatically generates a warning email to the school office
The FreeMIS project aims to provide schools with a high quality alternative to the proprietary Management Information Systems that abound in schools in the UK and beyond.
We at the FreeMIS project believe that the best way to create a high quality MIS is to develop it as an Open Source project. This means that the system and the code from which it is built will always be freely available.
At present, FreeMIS only offers a subset of the functionality of a comprehensive MIS. Development is ongoing, however, and FreeMIS has stood the test of being used in a Scottish High School.
Becta has recently published a report highlighting the financial savings possible if schools move towards Open Source alternatives. FreeMIS aims to be part of the package that schools will adopt.
Enhancements:
- Added user/admin_edit screen to simplify administration
- Cleaned up xhtml
- Fixed bug #1497176
- Refactored code to make it more DRY
- Removed historic tables from old PHP version
- Improved admin screen to edit pupil sets
- Increased coverage of unit/functional tests
- Cleared up css for reports, and switched full reports to print on blank page, rather than having fancy hiding of navigation stuff for printing.
- Fixed bug that made reports vanish if pupil was dropped from a pupil set
- Put together all academic_year related details on one form for ease of administration
- Gave Heads of Faculties write access to all faculty reports
<<lessEach user has a unique username and password, which grant them access to the system. At present, only teachers can access the system, but the design of FreeMIS is ready for access by any of the stakeholders in the school system - students, parents, governors etc.
At present, FreeMIS is used to write reports to parents on pupil progress. Using FreeMIS, teachers can write reports at a time and place of their own choosing. Some choose to write reports in school, but many now write their reports from home.
Main features:
- Password protected access, to ensure security of data.
- Web-based, so it can be accessed on any computer connected to the Internet, without the need for special software.
- Storage of pupil and staff data
- Storage of class enrollment and course data
- Production of reports to parents/guardians on pupil progress
- Monitoring of pupil progress through a tracking and target setting system, which includes the automatic generation of letters to parents/guardians
- Noting of unexplained absences, which automatically generates a warning email to the school office
The FreeMIS project aims to provide schools with a high quality alternative to the proprietary Management Information Systems that abound in schools in the UK and beyond.
We at the FreeMIS project believe that the best way to create a high quality MIS is to develop it as an Open Source project. This means that the system and the code from which it is built will always be freely available.
At present, FreeMIS only offers a subset of the functionality of a comprehensive MIS. Development is ongoing, however, and FreeMIS has stood the test of being used in a Scottish High School.
Becta has recently published a report highlighting the financial savings possible if schools move towards Open Source alternatives. FreeMIS aims to be part of the package that schools will adopt.
Enhancements:
- Added user/admin_edit screen to simplify administration
- Cleaned up xhtml
- Fixed bug #1497176
- Refactored code to make it more DRY
- Removed historic tables from old PHP version
- Improved admin screen to edit pupil sets
- Increased coverage of unit/functional tests
- Cleared up css for reports, and switched full reports to print on blank page, rather than having fancy hiding of navigation stuff for printing.
- Fixed bug that made reports vanish if pupil was dropped from a pupil set
- Put together all academic_year related details on one form for ease of administration
- Gave Heads of Faculties write access to all faculty reports
Download (2.2MB)
Added: 2006-06-13 License: GPL (GNU General Public License) Price:
1228 downloads
Peng 1.05
Peng project consists of an AOL Linux dialer. more>>
Peng project consists of an AOL Linux dialer.
Peng is a free program for Linux that sets up a PPP, cable, or DSL connection for AOL or other providers by using a reverse engineered version of the AOL protocol.
It can be used from the command line and is known to work in several countries.
<<lessPeng is a free program for Linux that sets up a PPP, cable, or DSL connection for AOL or other providers by using a reverse engineered version of the AOL protocol.
It can be used from the command line and is known to work in several countries.
Download (0.32MB)
Added: 2007-03-21 License: GPL (GNU General Public License) Price:
949 downloads
Data::Walker 1.05
Data::Walker is a tool for navigating through Perl data structures. more>>
Data::Walker is a tool for navigating through Perl data structures.
SYNOPSIS
Without any explicit objects:
use Data::Walker;
Data::Walker->cli( $data_structure );
Object-style invocation:
use Data::Walker;
my $w = new Data::Walker;
$w->walk( $data_structure );
$w->ls("-al");
$w->pwd;
$w->cli;
Importing methods into the current package:
use Data::Walker qw(:direct);
walk $data_structure;
ls "-al";
pwd;
cli;
This module allows you to "walk" an arbitrary Perl data structure in the same way that you can walk a directory tree from a UNIX command line. It reuses familiar unix commands (such as "ls", "cd", "pwd") and applies these to data structures.
It has a command-line interface which behaves like a UNIX shell. You can also use object-style sytax to invoke the CLI commands from outside the CLI. Data::Walker objects are encapsulated, so that you can hop into and out of a CLI without losing state, and you can have several Data::Walker objects pointing at different structures.
The main functions can also be imported and used directly from within the Perl debuggers CLI.
<<lessSYNOPSIS
Without any explicit objects:
use Data::Walker;
Data::Walker->cli( $data_structure );
Object-style invocation:
use Data::Walker;
my $w = new Data::Walker;
$w->walk( $data_structure );
$w->ls("-al");
$w->pwd;
$w->cli;
Importing methods into the current package:
use Data::Walker qw(:direct);
walk $data_structure;
ls "-al";
pwd;
cli;
This module allows you to "walk" an arbitrary Perl data structure in the same way that you can walk a directory tree from a UNIX command line. It reuses familiar unix commands (such as "ls", "cd", "pwd") and applies these to data structures.
It has a command-line interface which behaves like a UNIX shell. You can also use object-style sytax to invoke the CLI commands from outside the CLI. Data::Walker objects are encapsulated, so that you can hop into and out of a CLI without losing state, and you can have several Data::Walker objects pointing at different structures.
The main functions can also be imported and used directly from within the Perl debuggers CLI.
Download (0.020MB)
Added: 2007-06-30 License: Perl Artistic License Price:
846 downloads
Cache::Cache 1.05
Cache::Cache Perl module contains the Cache interface. more>>
Cache::Cache Perl module contains the Cache interface.
The Cache modules are designed to assist a developer in persisting data for a specified period of time. Often these modules are used in web applications to store data locally to save repeated and redundant expensive calls to remote machines or databases. People have also been known to use Cache::Cache for its straightforward interface in sharing data between runs of an application or invocations of a CGI-style script or simply as an easy to use abstraction of the filesystem or shared memory.
The Cache::Cache interface is implemented by classes that support the get, set, remove, size, purge, and clear instance methods and their corresponding static methods for persisting data across method calls.
USAGE
First, choose the best type of cache implementation for your needs. The simplest cache is the MemoryCache, which is suitable for applications that are serving multiple sequential requests, and wish to avoid making redundant expensive queries, such as an Apache/mod_perl application talking to a database. If you wish to share that data between processes, then perhaps the SharedMemoryCache is appropriate, although its behavior is tightly bound to the underlying IPC mechanism, which varies from system to system, and is unsuitable for large objects or large numbers of objects.
When the SharedMemoryCache is not acceptable, then FileCache offers all of the same functionality with similar performance metrics, and it is not limited in terms of the number of objects or their size. If you wish to maintain a strict limit on the size of a file system based cache, then the SizeAwareFileCache is the way to go. Similarly, the SizeAwareMemoryCache and the SizeAwareSharedMemoryCache add size management functionality to the MemoryCache and SharedMemoryCache classes respectively.
Using a cache is simple. Here is some sample code for instantiating and using a file system based cache.
use Cache::FileCache;
my $cache = new Cache::FileCache( );
my $customer = $cache->get( $name );
if ( not defined $customer )
{
$customer = get_customer_from_db( $name );
$cache->set( $name, $customer, "10 minutes" );
}
return $customer;
<<lessThe Cache modules are designed to assist a developer in persisting data for a specified period of time. Often these modules are used in web applications to store data locally to save repeated and redundant expensive calls to remote machines or databases. People have also been known to use Cache::Cache for its straightforward interface in sharing data between runs of an application or invocations of a CGI-style script or simply as an easy to use abstraction of the filesystem or shared memory.
The Cache::Cache interface is implemented by classes that support the get, set, remove, size, purge, and clear instance methods and their corresponding static methods for persisting data across method calls.
USAGE
First, choose the best type of cache implementation for your needs. The simplest cache is the MemoryCache, which is suitable for applications that are serving multiple sequential requests, and wish to avoid making redundant expensive queries, such as an Apache/mod_perl application talking to a database. If you wish to share that data between processes, then perhaps the SharedMemoryCache is appropriate, although its behavior is tightly bound to the underlying IPC mechanism, which varies from system to system, and is unsuitable for large objects or large numbers of objects.
When the SharedMemoryCache is not acceptable, then FileCache offers all of the same functionality with similar performance metrics, and it is not limited in terms of the number of objects or their size. If you wish to maintain a strict limit on the size of a file system based cache, then the SizeAwareFileCache is the way to go. Similarly, the SizeAwareMemoryCache and the SizeAwareSharedMemoryCache add size management functionality to the MemoryCache and SharedMemoryCache classes respectively.
Using a cache is simple. Here is some sample code for instantiating and using a file system based cache.
use Cache::FileCache;
my $cache = new Cache::FileCache( );
my $customer = $cache->get( $name );
if ( not defined $customer )
{
$customer = get_customer_from_db( $name );
$cache->set( $name, $customer, "10 minutes" );
}
return $customer;
Download (0.034MB)
Added: 2007-05-28 License: Perl Artistic License Price:
879 downloads
Convert::Cyrillic 1.05
Convert::Cyrillic is a Perl module with routines for converting from one cyrillic charset to another. more>>
Convert::Cyrillic is a Perl module with routines for converting from one cyrillic charset to another.
SYNOPSIS
use Convert::Cyrillic;
$src = koi8;
$dst = win;
$SrcBuf = text in koi8 here;
$DstBuf = Convert::Cyrillic::cstocs ($Src, $Dst, $SrcBuf);
This package implements routine for converting from one cyrillic charset to another. It is intended to be used from cgis which need built-in support for translations. For example, you may wish to use it in form processor to translate from user encoding to one used by your site.
Where $Src and $Dst are one of:
KOI8 - for KOI8-R
WIN - for WIN-1251
DOS - for DOS, alternative, CP-866
MAC - for Macintosh
ISO - for ISO-8859-5
UTF-8 - for UTF-8 (Unicode)
VOL - for Volapuk (transliteration)
Buffer may contain line breaks, which are preserved.
<<lessSYNOPSIS
use Convert::Cyrillic;
$src = koi8;
$dst = win;
$SrcBuf = text in koi8 here;
$DstBuf = Convert::Cyrillic::cstocs ($Src, $Dst, $SrcBuf);
This package implements routine for converting from one cyrillic charset to another. It is intended to be used from cgis which need built-in support for translations. For example, you may wish to use it in form processor to translate from user encoding to one used by your site.
Where $Src and $Dst are one of:
KOI8 - for KOI8-R
WIN - for WIN-1251
DOS - for DOS, alternative, CP-866
MAC - for Macintosh
ISO - for ISO-8859-5
UTF-8 - for UTF-8 (Unicode)
VOL - for Volapuk (transliteration)
Buffer may contain line breaks, which are preserved.
Download (0.024MB)
Added: 2006-08-23 License: Perl Artistic License Price:
1166 downloads
DateTime::Precise 1.05
DateTime::Precise can perform common time and date operations with additional GPS operations. more>>
DateTime::Precise can perform common time and date operations with additional GPS operations.
SYNOPSIS
use DateTime::Precise;
use DateTime::Precise qw(:TimeVars);
# Constructors and ways to set time.
$t1 = DateTime::Precise->new;
$t2 = DateTime::Precise->new(1998. 4. 3 12:13:44.054);
$t3 = DateTime::Precise->new(time() - 100.23456);
$t4 = DateTime::Precise->new(1998.04.24);
$t1->set_localtime_from_epoch_time;
$t1->set_gmtime_from_epoch_time(time + 120.987);
$t1->set_from_datetime(1998.03.23 16:58:14.65);
$t1->set_time(YDHMS, 1998, 177, 9, 15, 26.5);
# This is the same as $d3->set_from_datetime(...)
$t3->dscanf("%^Y.%M.%D %h:%m:%s", "1998.03.25 20:25:23");
if ($msg = $d1->dscanf("%~M", $input)) {
print "error: $msgn";
print "Must enter a three-letter month abbrev.n";
}
# Get different parts of the time.
$year = $t3->year;
$month = $t3->month;
$day = $t3->day;
$hours = $t3->hours;
$minutes = $t3->minutes;
$seconds = $t3->seconds;
($year, $day_of_year) = $t3->get_time(Yj);
# Print times and dates.
print $t2->asctime;
print $t2->strftime(%T %C%n);
print $t2->dprintf("%^Y.%M.%D %h:%m:%s"); # datetime
print $t2->dprintf("%~w %~M %-D %h:%m:%s CST %^Y"); # ctime
# Copy times.
my $t4 = $t2->copy;
# Set one time object to the same time as another: set $t3 equal to $t2.
$t3->clone($t2);
# Find the difference between two times.
$secs_from_midnight = $t4 - $t1;
$secs_from_midnight = $t4->diff($t1);
# Add seconds, days, months, etc to time.
$t1 = $t4 + 3600; # $t1 is now an hour after midnight
$t1->inc_month(2); # add two months to $t1
$t1->floor_month; # set $t1 to the first of the month
$t1 -= 0.25; # subtract 1/4 of a second from $t1
# Can compare and sort DateTime::Precise.
print "Its late!!!" if ($t1 > $t4);
@sorted = sort @birthdays; # normal comparisons work fine
# Get the GPS weeks, seconds and day.
$gps_week = $t1->gps_week;
$gps_seconds = $t1->gps_seconds;
$gps_day = $t1->gps_day;
($gps_week, $gps_seconds, $gps_day) = $t1->gps_week_seconds_day;
<<lessSYNOPSIS
use DateTime::Precise;
use DateTime::Precise qw(:TimeVars);
# Constructors and ways to set time.
$t1 = DateTime::Precise->new;
$t2 = DateTime::Precise->new(1998. 4. 3 12:13:44.054);
$t3 = DateTime::Precise->new(time() - 100.23456);
$t4 = DateTime::Precise->new(1998.04.24);
$t1->set_localtime_from_epoch_time;
$t1->set_gmtime_from_epoch_time(time + 120.987);
$t1->set_from_datetime(1998.03.23 16:58:14.65);
$t1->set_time(YDHMS, 1998, 177, 9, 15, 26.5);
# This is the same as $d3->set_from_datetime(...)
$t3->dscanf("%^Y.%M.%D %h:%m:%s", "1998.03.25 20:25:23");
if ($msg = $d1->dscanf("%~M", $input)) {
print "error: $msgn";
print "Must enter a three-letter month abbrev.n";
}
# Get different parts of the time.
$year = $t3->year;
$month = $t3->month;
$day = $t3->day;
$hours = $t3->hours;
$minutes = $t3->minutes;
$seconds = $t3->seconds;
($year, $day_of_year) = $t3->get_time(Yj);
# Print times and dates.
print $t2->asctime;
print $t2->strftime(%T %C%n);
print $t2->dprintf("%^Y.%M.%D %h:%m:%s"); # datetime
print $t2->dprintf("%~w %~M %-D %h:%m:%s CST %^Y"); # ctime
# Copy times.
my $t4 = $t2->copy;
# Set one time object to the same time as another: set $t3 equal to $t2.
$t3->clone($t2);
# Find the difference between two times.
$secs_from_midnight = $t4 - $t1;
$secs_from_midnight = $t4->diff($t1);
# Add seconds, days, months, etc to time.
$t1 = $t4 + 3600; # $t1 is now an hour after midnight
$t1->inc_month(2); # add two months to $t1
$t1->floor_month; # set $t1 to the first of the month
$t1 -= 0.25; # subtract 1/4 of a second from $t1
# Can compare and sort DateTime::Precise.
print "Its late!!!" if ($t1 > $t4);
@sorted = sort @birthdays; # normal comparisons work fine
# Get the GPS weeks, seconds and day.
$gps_week = $t1->gps_week;
$gps_seconds = $t1->gps_seconds;
$gps_day = $t1->gps_day;
($gps_week, $gps_seconds, $gps_day) = $t1->gps_week_seconds_day;
Download (0.034MB)
Added: 2007-08-09 License: Perl Artistic License Price:
807 downloads
djbdns 1.05
djbdns is a Domain Name System tools. more>>
djbdns is a collection of Domain Name System tools. Security is one of the primary motivations for the development of djbdns.
Every step of the design and implementation has been carefully evaluated from a security perspective. The djbdns package has been structured to minimize the complexity of security-critical code.
dnscache is immune to cache poisoning. It is advisable to use the package as a secure alternative to BIND.
Installation
Like any other piece of software (and information generally), djbdns comes with NO WARRANTY. Exception: See the djbdns security guarantee.
djbdns works only under UNIX. One UNIX flavor, SCO UnixWare, is not supported at this time.
Before installing djbdns, install daemontools 0.70 or above, and install ucspi-tcp.
As you go through the installation and configuration process, please keep notes of exactly what you did and exactly what the computer did. Put the notes on your web pages, and include the URL with any questions that you send to the dns mailing list.
1. If you would like a local copy of these web pages, download the djbdns documentation package and unpack it under under /doc:
gunzip < doc.tar.gz | (cd /; tar -xf -)
Then run slashdoc-merge to create indices such as /doc/commands.html.
2. Download the djbdns package. The latest published djbdns package is djbdns-1.05.tar.gz.
3. Unpack the djbdns package:
gunzip djbdns-1.05.tar
tar -xf djbdns-1.05.tar
cd djbdns-1.05
4. Compile the djbdns programs:
echo gcc -O2 -include /usr/include/errno.h > conf-cc
make
The first line, modifying conf-cc, is necessary for some Linux systems, to work around a Linux bug. It can be skipped under BSD, Solaris, and other systems that comply with IEEE Std 1003.1-1990.
5. As root, install the djbdns programs under /usr/local:
make setup check
6. Report success:
( echo First M. Last; cat `cat SYSDEPS` )
| mail djb-sysdeps@cr.yp.to
Replace First M. Last with your name.
<<lessEvery step of the design and implementation has been carefully evaluated from a security perspective. The djbdns package has been structured to minimize the complexity of security-critical code.
dnscache is immune to cache poisoning. It is advisable to use the package as a secure alternative to BIND.
Installation
Like any other piece of software (and information generally), djbdns comes with NO WARRANTY. Exception: See the djbdns security guarantee.
djbdns works only under UNIX. One UNIX flavor, SCO UnixWare, is not supported at this time.
Before installing djbdns, install daemontools 0.70 or above, and install ucspi-tcp.
As you go through the installation and configuration process, please keep notes of exactly what you did and exactly what the computer did. Put the notes on your web pages, and include the URL with any questions that you send to the dns mailing list.
1. If you would like a local copy of these web pages, download the djbdns documentation package and unpack it under under /doc:
gunzip < doc.tar.gz | (cd /; tar -xf -)
Then run slashdoc-merge to create indices such as /doc/commands.html.
2. Download the djbdns package. The latest published djbdns package is djbdns-1.05.tar.gz.
3. Unpack the djbdns package:
gunzip djbdns-1.05.tar
tar -xf djbdns-1.05.tar
cd djbdns-1.05
4. Compile the djbdns programs:
echo gcc -O2 -include /usr/include/errno.h > conf-cc
make
The first line, modifying conf-cc, is necessary for some Linux systems, to work around a Linux bug. It can be skipped under BSD, Solaris, and other systems that comply with IEEE Std 1003.1-1990.
5. As root, install the djbdns programs under /usr/local:
make setup check
6. Report success:
( echo First M. Last; cat `cat SYSDEPS` )
| mail djb-sysdeps@cr.yp.to
Replace First M. Last with your name.
Download (0.083MB)
Added: 2005-04-26 License: Freeware Price:
1644 downloads
cpdetector 1.05
cpdetector project is a small yet clever framework for codepage detection. more>>
cpdetector project is a small yet clever framework for codepage detection.
cpdetector is a small yet clever framework for codepage detection that integrates different strategies. It may be used as a library for third party software that accesses textual data over network.
It also includes a best-practice implementation in form of a command line tool that allows sorting and transforming large collections of documents based on their codepage.
Available strategies include: jchardet (exclusion, frequency analysis, and guessing), detection of the HTML charset property, and detection of the XML encoding declaration.
What is a code page?
At first, a textual document is nothing more than sequences of bits. A computer has to decide, how he can display this data in form of characters (which are identified by the computer as numbers).
A code page - which is also known as charset encoding - maps the raw data of a textual document to characters. The original ASCII code page for example only uses 7 bits of an octet (byte) for deciding the character that is represented thus allowing only to map 128 different characters. In the past memory was expensive and computers most often only had registers and busses for 8 bit.
When a mainframe was conceived it had to be decided, which characters it should support. Physicians and mathematicians for example needed special characters for equations. As a result, a computer often shipped with a special codepage.
<<lesscpdetector is a small yet clever framework for codepage detection that integrates different strategies. It may be used as a library for third party software that accesses textual data over network.
It also includes a best-practice implementation in form of a command line tool that allows sorting and transforming large collections of documents based on their codepage.
Available strategies include: jchardet (exclusion, frequency analysis, and guessing), detection of the HTML charset property, and detection of the XML encoding declaration.
What is a code page?
At first, a textual document is nothing more than sequences of bits. A computer has to decide, how he can display this data in form of characters (which are identified by the computer as numbers).
A code page - which is also known as charset encoding - maps the raw data of a textual document to characters. The original ASCII code page for example only uses 7 bits of an octet (byte) for deciding the character that is represented thus allowing only to map 128 different characters. In the past memory was expensive and computers most often only had registers and busses for 8 bit.
When a mainframe was conceived it had to be decided, which characters it should support. Physicians and mathematicians for example needed special characters for equations. As a result, a computer often shipped with a special codepage.
Download (0.70MB)
Added: 2007-04-21 License: MPL (Mozilla Public License) Price:
918 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 sanefile 1.05 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