newspaper archives
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 785
News::Archive 0.14
News::Archive is a Usenet news archiving package for downloading and later accessing news articles in bulk. more>>
News::Archive is a Usenet news archiving package for downloading and later accessing news articles in bulk.
It can load articles laid out in INN format, retrieve them from a running news server, or just take articles one-by-one. News::Archive module is compatible with News::Web and Net::NNTP::Server, so the articles can be shared either via the Web or via NNTP.
SYNOPSIS
use News::Archive;
my $archive = new News::Archive
( basedir => /home/tskirvin/kiboze );
# Get a news article
my $article = News::Article->new(*STDIN);
my $msgid = article->header(message-id);
die "Already processed $msgidn"
if ($archive->article( $messageid ));
# Get the list of groups were supposed to be saving the article into
my @groups = split(s*,s*, $article->header(newsgroups) );
map { s/s+//g } @groups;
# Make sure were subscribed to these groups
foreach (@groups) { $archive->subscribe($_) }
# Actually save the article.
my $ret = $archive->save_article(
[ @{$article->rawheaders}, , @{$article->body} ], @groups );
$ret ? print "Accepted article $messageidn"
: print "Couldnt save article $messageidn";
News::Archive keeps several files to keep track of its archives:
active file
Keeps track of all newsgroups we are "subscribed" to and all of the information that changes regularly - the number of articles we have archived, the current first and last article numbers, etc.
Watched over with News::Active.
history database
A simple database keeping track of articles by Message-ID. Makes access by ID easy, and ensures that we dont save the same article twice. The database chosen to maintain these is user-determined.
newsgroup file
Keeps track of more static information about the newsgroups we are subscribed to - descriptions, creation dates, etc.
Watched over with News::GroupInfo.
archive directory
Directory structure of all articles, with each article saved as a single textfile within a directory structure laid out at one section of the group name per directory, such as "rec/games/mecha". Crossposts are hardlinked to other directory structures.
Articles are actually divided into sub-directories containing up to 500 articles, to avoid Unix directory size performance limitations. Individual files are thus stored in a file such as "rec/games/mecha/1.500/1".
Each newsgroup also contains overview information, watched over with
News::Overview. This overview file goes in the top of the structure,
such as "rec/games/mecha/.overview".
You may note that these files are very similar to how INN does its work. This is intentional - this package is meant to act in many ways like a lighter-weight INN.
Usage:
Global Variables
The following variables are set within News::Archive, and are global throughout all invocations.
$News::Active::DEBUG
Default value for "debug()" in new objects.
$News::Active::HOSTNAME
Default value for "hostname()" in new objects. Obtained using
"Sys::Hostname::hostname()".
$News::Active::HASH
The number of articles to keep in each directory. Default is 500;
change this at your own peril, since things may get screwed up later
if you change it after archiving any articles!
<<lessIt can load articles laid out in INN format, retrieve them from a running news server, or just take articles one-by-one. News::Archive module is compatible with News::Web and Net::NNTP::Server, so the articles can be shared either via the Web or via NNTP.
SYNOPSIS
use News::Archive;
my $archive = new News::Archive
( basedir => /home/tskirvin/kiboze );
# Get a news article
my $article = News::Article->new(*STDIN);
my $msgid = article->header(message-id);
die "Already processed $msgidn"
if ($archive->article( $messageid ));
# Get the list of groups were supposed to be saving the article into
my @groups = split(s*,s*, $article->header(newsgroups) );
map { s/s+//g } @groups;
# Make sure were subscribed to these groups
foreach (@groups) { $archive->subscribe($_) }
# Actually save the article.
my $ret = $archive->save_article(
[ @{$article->rawheaders}, , @{$article->body} ], @groups );
$ret ? print "Accepted article $messageidn"
: print "Couldnt save article $messageidn";
News::Archive keeps several files to keep track of its archives:
active file
Keeps track of all newsgroups we are "subscribed" to and all of the information that changes regularly - the number of articles we have archived, the current first and last article numbers, etc.
Watched over with News::Active.
history database
A simple database keeping track of articles by Message-ID. Makes access by ID easy, and ensures that we dont save the same article twice. The database chosen to maintain these is user-determined.
newsgroup file
Keeps track of more static information about the newsgroups we are subscribed to - descriptions, creation dates, etc.
Watched over with News::GroupInfo.
archive directory
Directory structure of all articles, with each article saved as a single textfile within a directory structure laid out at one section of the group name per directory, such as "rec/games/mecha". Crossposts are hardlinked to other directory structures.
Articles are actually divided into sub-directories containing up to 500 articles, to avoid Unix directory size performance limitations. Individual files are thus stored in a file such as "rec/games/mecha/1.500/1".
Each newsgroup also contains overview information, watched over with
News::Overview. This overview file goes in the top of the structure,
such as "rec/games/mecha/.overview".
You may note that these files are very similar to how INN does its work. This is intentional - this package is meant to act in many ways like a lighter-weight INN.
Usage:
Global Variables
The following variables are set within News::Archive, and are global throughout all invocations.
$News::Active::DEBUG
Default value for "debug()" in new objects.
$News::Active::HOSTNAME
Default value for "hostname()" in new objects. Obtained using
"Sys::Hostname::hostname()".
$News::Active::HASH
The number of articles to keep in each directory. Default is 500;
change this at your own peril, since things may get screwed up later
if you change it after archiving any articles!
Download (0.033MB)
Added: 2006-03-24 License: Perl Artistic License Price:
1309 downloads
Extract archive 1.11
Extract archive is a service menu that allows you to extract any archive file that ark is capable to read + ACE files. more>>
Extract archive is a service menu that allows you to extract any archive file that ark is capable to read + ACE files.
You can chose to extract here, or in a subdirectory. In that case, it asks you the name of the subdirectory where you want to extract, and suggests you the archive name by default.
To install, simply extract, and move the 2 files in ~/.kde/share/apps/konqueror/servicemenus
Its highly recommended to download the latest version of unace on www.winace.com and to run this command line in the unace directory location : sudo cp unace /usr/bin/unace
You should desactivate ark integration into kde by going into the configuration menu of ark.
If you want translation to be added, post me comments.
Enhancements:
- thanks to shirka, extract archive path is now "test" for an "test.tar.bz2" file
- Name that appears in the menu is now "Extract archive" as suggested by dovidhalevi to differentiate with ark
<<lessYou can chose to extract here, or in a subdirectory. In that case, it asks you the name of the subdirectory where you want to extract, and suggests you the archive name by default.
To install, simply extract, and move the 2 files in ~/.kde/share/apps/konqueror/servicemenus
Its highly recommended to download the latest version of unace on www.winace.com and to run this command line in the unace directory location : sudo cp unace /usr/bin/unace
You should desactivate ark integration into kde by going into the configuration menu of ark.
If you want translation to be added, post me comments.
Enhancements:
- thanks to shirka, extract archive path is now "test" for an "test.tar.bz2" file
- Name that appears in the menu is now "Extract archive" as suggested by dovidhalevi to differentiate with ark
Download (MB)
Added: 2007-05-16 License: GPL (GNU General Public License) Price:
896 downloads
Archive sort 0.1
Archive sort is a bash script that sorts directories into manageable 4.4GB directories for the purpose of archiving onto DVDs. more>>
Archive sort is a bash script that sorts directories into manageable 4.4GB directories for the purpose of archiving onto DVDs.
It is useful if you have several tens or hundreds of GBs of data to archive. It can also be configured to sort into 700MB directories for archiving onto CDs.
Usage: ./archive-sort [-h] [-s SIZE] [-t] [-v] SOURCE DEST
Archive files from directory DEST to new directory SOURCE in 4.4GB chunks,
or any SIZE specified by the user.
This script has not been tested extensively, so it is recommended that you make a copy of the directory you want to archive, then run the script on that directory. Always use the -t (test) option first and carefully read the output before using the script.
Optional arguments.
-h Print this help message.
-s Size of the archive media (default 4.4 GB)
-t Test run with verbose messages.
-v Verbose
Examples:
First cd to directory containing directories to be archived:
cd /home/user/archive
archive-sort . ../disc01
This is useful if you have several large directories under /home/user/archive, but no files. The archive directory will not be included in disc01.
If you have a directory full of lots of files, then cd to the parent directory of the directory that needs to be archived:
cd /home/user
archive-sort archive disc01
<<lessIt is useful if you have several tens or hundreds of GBs of data to archive. It can also be configured to sort into 700MB directories for archiving onto CDs.
Usage: ./archive-sort [-h] [-s SIZE] [-t] [-v] SOURCE DEST
Archive files from directory DEST to new directory SOURCE in 4.4GB chunks,
or any SIZE specified by the user.
This script has not been tested extensively, so it is recommended that you make a copy of the directory you want to archive, then run the script on that directory. Always use the -t (test) option first and carefully read the output before using the script.
Optional arguments.
-h Print this help message.
-s Size of the archive media (default 4.4 GB)
-t Test run with verbose messages.
-v Verbose
Examples:
First cd to directory containing directories to be archived:
cd /home/user/archive
archive-sort . ../disc01
This is useful if you have several large directories under /home/user/archive, but no files. The archive directory will not be included in disc01.
If you have a directory full of lots of files, then cd to the parent directory of the directory that needs to be archived:
cd /home/user
archive-sort archive disc01
Download (0.006MB)
Added: 2006-07-24 License: GPL (GNU General Public License) Price:
1188 downloads
The PHP Photo Archive 1.0 RC1
LinPHA is an easy to use, multilingual, flexible photo/image archive/album/gallery written in PHP. more>>
LinPHA is an easy to use, multilingual, flexible photo/image archive/album/gallery written in PHP. It uses a SQL database to store information about your pictures.
It comes with a HTML based installer, so you dont need experience in setting up SQL DB.
<<lessIt comes with a HTML based installer, so you dont need experience in setting up SQL DB.
Download (1.2MB)
Added: 2005-04-12 License: GPL (GNU General Public License) Price:
1657 downloads
User::Identity::Archive 0.90
User::Identity::Archive is a base class for archiving user information. more>>
User::Identity::Archive is a base class for archiving user information.
INHERITANCE
User::Identity::Archive
is a User::Identity::Item
User::Identity::Archive is extended by
User::Identity::Archive::Plain
SYNOPSIS
use User::Identity::Archive::Plain;
my $friends = User::Identity::Archive::Plain->new(friends);
$friends->from(*FH);
$friends->from(.friends);
An archive stores collections. It depends on the type of archive how and where that is done. Some archivers may limit the kinds of selections which can be stored.
<<lessINHERITANCE
User::Identity::Archive
is a User::Identity::Item
User::Identity::Archive is extended by
User::Identity::Archive::Plain
SYNOPSIS
use User::Identity::Archive::Plain;
my $friends = User::Identity::Archive::Plain->new(friends);
$friends->from(*FH);
$friends->from(.friends);
An archive stores collections. It depends on the type of archive how and where that is done. Some archivers may limit the kinds of selections which can be stored.
Download (0.025MB)
Added: 2006-06-28 License: Perl Artistic License Price:
1214 downloads
Archive Search 0.9.2
Archive Search is an extension which displays an archived versions of the webpage. more>>
Archive Search is an extension which displays an archived versions of the webpage.
Displays an archived versions of the webpage.
First click: Internet Archive
Second click: Google cache
Third click: Yahoo
Fourth click: MSN
<<lessDisplays an archived versions of the webpage.
First click: Internet Archive
Second click: Google cache
Third click: Yahoo
Fourth click: MSN
Download (0.005MB)
Added: 2007-04-12 License: MPL (Mozilla Public License) Price:
931 downloads
Archive::Rar 1.9
Archive::Rar is a interface with the rar command. more>>
Archive::Rar is a interface with the rar command.
SYNOPSIS
use Archive::Rar;
my $rar =new Archive::Rar();
$rar->Add(
-size => $size_of_parts,
-archive => $archive_filename,
-files => @list_of_files,
);
This is a module for the handling of rar archives.
Locates the rar command (from PATH or from regedit for Win32) and encapsulate it to create, extract and list rar archives.
At the moment these methods are implemented:
new()
Returns a new Rar object. You can pass defaults options.
Add(%options)
Add file to an archive.
Extract(%options)
Extract the contains of an archive.
List(%options)
Fill the list variable of the object whith the index of an archive.
OPTIONS
-archive
Archive filename.
-files
List of files to add. You can use a scalar value or an array reference.
-quiet
No output for the rar command if True.
-sfx
Create self-extracting archive.
-size
Size of the parts in bytes.
-verbose
Level of verbosity.
<<lessSYNOPSIS
use Archive::Rar;
my $rar =new Archive::Rar();
$rar->Add(
-size => $size_of_parts,
-archive => $archive_filename,
-files => @list_of_files,
);
This is a module for the handling of rar archives.
Locates the rar command (from PATH or from regedit for Win32) and encapsulate it to create, extract and list rar archives.
At the moment these methods are implemented:
new()
Returns a new Rar object. You can pass defaults options.
Add(%options)
Add file to an archive.
Extract(%options)
Extract the contains of an archive.
List(%options)
Fill the list variable of the object whith the index of an archive.
OPTIONS
-archive
Archive filename.
-files
List of files to add. You can use a scalar value or an array reference.
-quiet
No output for the rar command if True.
-sfx
Create self-extracting archive.
-size
Size of the parts in bytes.
-verbose
Level of verbosity.
Download (0.008MB)
Added: 2006-06-28 License: Perl Artistic License Price:
1252 downloads
XArchive 0.2.8-6
XArchive is a generic front-end that uses external wrappers around command line archiving tools. more>>
XArchive is a generic front end for archives that uses external wrappers around the command line tools. XArchive checks its wrapper directory when it starts, consulting each wrapper found to see what file types are supported.
Thus, a new archive format can easily be supported by just writing a wrapper for it and dropping it in the wrappers directory.
Currently there are bash shell wrappers for: rar, tar, zip, and ace
(ace supported using unace, so only reading and extracting available).
These can easily be copied and modified to have xarchive support other command line tools and file types without having to touch xarchive at all.
Enhancements:
- This version supports adding files to an archive using Drag n Drog, and has a few GUI clean ups.
<<lessThus, a new archive format can easily be supported by just writing a wrapper for it and dropping it in the wrappers directory.
Currently there are bash shell wrappers for: rar, tar, zip, and ace
(ace supported using unace, so only reading and extracting available).
These can easily be copied and modified to have xarchive support other command line tools and file types without having to touch xarchive at all.
Enhancements:
- This version supports adding files to an archive using Drag n Drog, and has a few GUI clean ups.
Download (0.052MB)
Added: 2006-02-27 License: GPL (GNU General Public License) Price:
1339 downloads
Archive::Tyd 0.02
Archive::Tyd is a Perl extension for simple file archiving. more>>
Archive::Tyd is a Perl extension for simple file archiving.
SYNOPSIS
use Archive::Tyd;
my $tyd = new Archive::Tyd (password => secret password);
# Load an archive.
$tyd->openArchive ("./archive.tyd");
# Add a file.
$tyd->addFile ("./secret image.jpg");
# Write the archive.
$tyd->writeArchive ("./archive.tyd");
# Read the secret rules.
my $rules = $tyd->readFile ("rules.txt");
Tyd is a simple archiving algorith for merging multiple files together and encrypting the results, hence a password-protected archive.
Tyd Does: Reading and writing of encrypted Tyd archives and file operations within.
Tyd Does: Load all files into memory. Tyd is not good as a storage device for a large quanitity of large files. Tyd is best for keeping small text files and graphics together (maybe to keep a spriteset and definitions for a game?)
Tyd Does Not: support directories within the archive, compression of files, and many other things that WinZip and GZip support.
<<lessSYNOPSIS
use Archive::Tyd;
my $tyd = new Archive::Tyd (password => secret password);
# Load an archive.
$tyd->openArchive ("./archive.tyd");
# Add a file.
$tyd->addFile ("./secret image.jpg");
# Write the archive.
$tyd->writeArchive ("./archive.tyd");
# Read the secret rules.
my $rules = $tyd->readFile ("rules.txt");
Tyd is a simple archiving algorith for merging multiple files together and encrypting the results, hence a password-protected archive.
Tyd Does: Reading and writing of encrypted Tyd archives and file operations within.
Tyd Does: Load all files into memory. Tyd is not good as a storage device for a large quanitity of large files. Tyd is best for keeping small text files and graphics together (maybe to keep a spriteset and definitions for a game?)
Tyd Does Not: support directories within the archive, compression of files, and many other things that WinZip and GZip support.
Download (0.008MB)
Added: 2006-06-28 License: Perl Artistic License Price:
1213 downloads
Archive::Ar 1.13b
Archive::Ar is a Perl interface for manipulating ar archives. more>>
Archive::Ar is a Perl interface for manipulating ar archives.
SYNOPSIS
use Archive::Ar;
my $ar = new Archive::Ar("./foo.ar");
$ar->add_data("newfile.txt","Some contents", $properties);
$ar->add_files("./bar.tar.gz", "bat.pl")
$ar->add_files(["./again.gz"]);
$ar->remove("file1", "file2");
$ar->remove(["file1", "file2");
my $filedata = $ar->get_content("bar.tar.gz");
my @files = $ar->list_files();
$ar->read("foo.deb");
$ar->write("outbound.ar");
$ar->DEBUG();
Archive::Ar is a pure-perl way to handle standard ar archives.
This is useful if you have those types of old archives on the system, but it is also useful because .deb packages for the Debian GNU/Linux distribution are ar archives. This is one building block in a future chain of modules to build, manipulate, extract, and test debian modules with no platform or architecture dependence.
You may notice that the API to Archive::Ar is similar to Archive::Tar, and this was done intentionally to keep similarity between the Archive::* modules
Class Methods
new()
new($filename)
new(*GLOB,$debug)
Returns a new Archive::Ar object. Without a filename or glob, it returns an empty object. If passed a filename as a scalar or in a GLOB, it will attempt to populate from either of those sources. If it fails, you will receive undef, instead of an object reference.
This also can take a second optional debugging parameter. This acts exactly as if DEBUG() is called on the object before it is returned. If you have a new() that keeps failing, this should help.
read($filename)
read(*GLOB);
This reads a new file into the object, removing any ar archive already represented in the object. Any calls to DEBUG() are not lost by reading in a new file. Returns the number of bytes read, undef on failure.
read_memory($data)
This read information from the first parameter, and attempts to parse and treat it like an ar archive. Like read(), it will wipe out whatever you have in the object and replace it with the contents of the new archive, even if it fails. Returns the number of bytes read (processed) if successful, undef otherwise.
list_files()
This lists the files contained inside of the archive by filename, as an array.
add_files("filename1", "filename2")
add_files(["filename1", "filename2"])
Takes an array or an arrayref of filenames to add to the ar archive, in order. The filenames can be paths to files, in which case the path information is stripped off. Filenames longer than 16 characters are truncated when written to disk in the format, so keep that in mind when adding files.
Due to the nature of the ar archive format, add_files() will store the uid, gid, mode, size, and creation date of the file as returned by stat();
add_files() returns the number of files successfully added, or undef on failure.
add_data("filename", $filedata)
Takes an filename and a set of data to represent it. Unlike add_files, add_data is a virtual add, and does not require data on disk to be present. The data is a hash that looks like:
$filedata = {
"data" => $data,
"uid" => $uid, #defaults to zero
"gid" => $gid, #defaults to zero
"date" => $date, #date in epoch seconds. Defaults to now.
"mode" => $mode, #defaults to "100644";
}
You cannot add_data over another file however. This returns the file length in bytes if it is successful, undef otherwise.
write()
write("filename.ar")
This method will return the data as an .ar archive, or will write to the filename present if specified. If given a filename, write() will return the length of the file written, in bytes, or undef on failure. If the filename already exists, it will overwrite that file.
get_content("filename")
This returns a hash with the file content in it, including the data that the file would naturally contain. If the file does not exist or no filename is given, this returns undef. On success, a hash is returned with the following keys:
name - The file name
date - The file date (in epoch seconds)
uid - The uid of the file
gid - The gid of the file
mode - The mode permissions
size - The size (in bytes) of the file
data - The contained data
remove("filename1", "filename2")
remove(["filename1", "filename2"])
The remove method takes a filenames as a list or as an arrayref, and removes them, one at a time, from the Archive::Ar object. This returns the number of files successfully removed from the archive.
DEBUG()
This method turns on debugging. Optionally this can be done by passing in a value as the second parameter to new. While verbosity is enabled, Archive::Ar will toss a warn() if there is a suspicious condition or other problem while proceeding. This should help iron out any problems you have while using the module.
<<lessSYNOPSIS
use Archive::Ar;
my $ar = new Archive::Ar("./foo.ar");
$ar->add_data("newfile.txt","Some contents", $properties);
$ar->add_files("./bar.tar.gz", "bat.pl")
$ar->add_files(["./again.gz"]);
$ar->remove("file1", "file2");
$ar->remove(["file1", "file2");
my $filedata = $ar->get_content("bar.tar.gz");
my @files = $ar->list_files();
$ar->read("foo.deb");
$ar->write("outbound.ar");
$ar->DEBUG();
Archive::Ar is a pure-perl way to handle standard ar archives.
This is useful if you have those types of old archives on the system, but it is also useful because .deb packages for the Debian GNU/Linux distribution are ar archives. This is one building block in a future chain of modules to build, manipulate, extract, and test debian modules with no platform or architecture dependence.
You may notice that the API to Archive::Ar is similar to Archive::Tar, and this was done intentionally to keep similarity between the Archive::* modules
Class Methods
new()
new($filename)
new(*GLOB,$debug)
Returns a new Archive::Ar object. Without a filename or glob, it returns an empty object. If passed a filename as a scalar or in a GLOB, it will attempt to populate from either of those sources. If it fails, you will receive undef, instead of an object reference.
This also can take a second optional debugging parameter. This acts exactly as if DEBUG() is called on the object before it is returned. If you have a new() that keeps failing, this should help.
read($filename)
read(*GLOB);
This reads a new file into the object, removing any ar archive already represented in the object. Any calls to DEBUG() are not lost by reading in a new file. Returns the number of bytes read, undef on failure.
read_memory($data)
This read information from the first parameter, and attempts to parse and treat it like an ar archive. Like read(), it will wipe out whatever you have in the object and replace it with the contents of the new archive, even if it fails. Returns the number of bytes read (processed) if successful, undef otherwise.
list_files()
This lists the files contained inside of the archive by filename, as an array.
add_files("filename1", "filename2")
add_files(["filename1", "filename2"])
Takes an array or an arrayref of filenames to add to the ar archive, in order. The filenames can be paths to files, in which case the path information is stripped off. Filenames longer than 16 characters are truncated when written to disk in the format, so keep that in mind when adding files.
Due to the nature of the ar archive format, add_files() will store the uid, gid, mode, size, and creation date of the file as returned by stat();
add_files() returns the number of files successfully added, or undef on failure.
add_data("filename", $filedata)
Takes an filename and a set of data to represent it. Unlike add_files, add_data is a virtual add, and does not require data on disk to be present. The data is a hash that looks like:
$filedata = {
"data" => $data,
"uid" => $uid, #defaults to zero
"gid" => $gid, #defaults to zero
"date" => $date, #date in epoch seconds. Defaults to now.
"mode" => $mode, #defaults to "100644";
}
You cannot add_data over another file however. This returns the file length in bytes if it is successful, undef otherwise.
write()
write("filename.ar")
This method will return the data as an .ar archive, or will write to the filename present if specified. If given a filename, write() will return the length of the file written, in bytes, or undef on failure. If the filename already exists, it will overwrite that file.
get_content("filename")
This returns a hash with the file content in it, including the data that the file would naturally contain. If the file does not exist or no filename is given, this returns undef. On success, a hash is returned with the following keys:
name - The file name
date - The file date (in epoch seconds)
uid - The uid of the file
gid - The gid of the file
mode - The mode permissions
size - The size (in bytes) of the file
data - The contained data
remove("filename1", "filename2")
remove(["filename1", "filename2"])
The remove method takes a filenames as a list or as an arrayref, and removes them, one at a time, from the Archive::Ar object. This returns the number of files successfully removed from the archive.
DEBUG()
This method turns on debugging. Optionally this can be done by passing in a value as the second parameter to new. While verbosity is enabled, Archive::Ar will toss a warn() if there is a suspicious condition or other problem while proceeding. This should help iron out any problems you have while using the module.
Download (0.006MB)
Added: 2006-10-11 License: Perl Artistic License Price:
1120 downloads
Archive::Chm 0.06
Archive::Chm is a Perl module that performs some read-only operations on HTML help (.chm) files. more>>
Archive::Chm is a Perl module that performs some read-only operations on HTML help (.chm) files. Range of operations includes enumerating contents, extracting contents and getting information about one certain part of the archive.
The module supersedes Text::Chm written by Domenico Delle Side. The method get_filelist() and all its dependencies are taken nearly "as-is" from Text::Chm as written by Domenico.
SYNOPSIS
my $test = Archive::Chm->new("TestPrj.chm");
#make the module log its activity
$test->set_verbose(1);
$test->set_logfile("chmfile.log");
#set the auto-overwrite function to off
$test->set_overwrite(0);
#enumerate the contents of the archive
$test->enum_files("listing.txt", 1);
#extract all items in a certain directory
$test->extract_all("./out");
#extract a single item from the archive
$item = $test->("/Secret of Monkey Island Solution.html";
#or just get the length of the item
$test->get_item_length("/Secret of Monkey Island Solution.html");
#get complete information about the chm archive
@content = $test->get_filelist();
foreach (@content) {
print $_->{title} . "n" if defined $_->{title};
print $_->{path} . "n";
print $_->{size} . "n";
}
#p.s. There are ways to check for errors, just look up each method and see. :)
Archive::Chm is a module that provides access to Microsoft Compiled HTML Help files (chm files). A lot of todays software ships with documentation in .chm format. However Microsoft only provides viewing tools for their own OS and the company doesnt disclose the format specification.
Unofficial specs can be found at Matthew T. Russottos site: http://www.speakeasy.org/~russotto/chm/chmformat.html
The module is basically a wrapper of Jed Wings chmlib, a C library that provides access to all ITSS archives, though .chm is the only ITSS type file in use today. To use this module you need chmlib installed on your system. You can get it at: http://66.93.236.84/~jedwin/projects/chmlib/
Currently access to .chm files is read-only and this will change over time if Jed Wing upgrades his library. Supported operations are getting a listing of the contents, extracting one or all items in the archive and retrieving an items length.
<<lessThe module supersedes Text::Chm written by Domenico Delle Side. The method get_filelist() and all its dependencies are taken nearly "as-is" from Text::Chm as written by Domenico.
SYNOPSIS
my $test = Archive::Chm->new("TestPrj.chm");
#make the module log its activity
$test->set_verbose(1);
$test->set_logfile("chmfile.log");
#set the auto-overwrite function to off
$test->set_overwrite(0);
#enumerate the contents of the archive
$test->enum_files("listing.txt", 1);
#extract all items in a certain directory
$test->extract_all("./out");
#extract a single item from the archive
$item = $test->("/Secret of Monkey Island Solution.html";
#or just get the length of the item
$test->get_item_length("/Secret of Monkey Island Solution.html");
#get complete information about the chm archive
@content = $test->get_filelist();
foreach (@content) {
print $_->{title} . "n" if defined $_->{title};
print $_->{path} . "n";
print $_->{size} . "n";
}
#p.s. There are ways to check for errors, just look up each method and see. :)
Archive::Chm is a module that provides access to Microsoft Compiled HTML Help files (chm files). A lot of todays software ships with documentation in .chm format. However Microsoft only provides viewing tools for their own OS and the company doesnt disclose the format specification.
Unofficial specs can be found at Matthew T. Russottos site: http://www.speakeasy.org/~russotto/chm/chmformat.html
The module is basically a wrapper of Jed Wings chmlib, a C library that provides access to all ITSS archives, though .chm is the only ITSS type file in use today. To use this module you need chmlib installed on your system. You can get it at: http://66.93.236.84/~jedwin/projects/chmlib/
Currently access to .chm files is read-only and this will change over time if Jed Wing upgrades his library. Supported operations are getting a listing of the contents, extracting one or all items in the archive and retrieving an items length.
Download (0.41MB)
Added: 2006-10-30 License: Perl Artistic License Price:
1089 downloads
Archive::Zip 1.20
Archive::Zip is a Perl module which provides an interface to ZIP archive files. more>>
Archive::Zip is a Perl module which provides an interface to ZIP archive files.
SYNOPSIS
# Create a Zip file
use Archive::Zip qw( :ERROR_CODES :CONSTANTS );
my $zip = Archive::Zip->new();
# Add a directory
my $dir_member = $zip->addDirectory( dirname/ );
# Add a file from a string with compression
my $string_member = $zip->addString( This is a test, stringMember.txt );
$string_member->desiredCompressionMethod( COMPRESSION_DEFLATED );
# Add a file from disk
my $file_member = $zip->addFile( xyz.pl, AnotherName.pl );
# Save the Zip file
unless ( $zip->writeToFileNamed(someZip.zip) == AZ_OK ) {
die write error;
}
# Read a Zip file
my $somezip = Archive::Zip->new();
unless ( $somezip->read( someZip.zip ) == AZ_OK ) {
die read error;
}
# Change the compression type for a file in the Zip
my $member = $somezip->memberNamed( stringMember.txt );
$member->desiredCompressionMethod( COMPRESSION_STORED );
unless ( $zip->writeToFileNamed( someOtherZip.zip ) == AZ_OK ) {
die write error;
}
The Archive::Zip module allows a Perl program to create, manipulate, read, and write Zip archive files.
Zip archives can be created, or you can read from existing zip files.
Once created, they can be written to files, streams, or strings. Members can be added, removed, extracted, replaced, rearranged, and enumerated. They can also be renamed or have their dates, comments, or other attributes queried or modified. Their data can be compressed or uncompressed as needed.
Members can be created from members in existing Zip files, or from existing directories, files, or strings.
This module uses the Compress::Zlib library to read and write the compressed streams inside the files.
<<lessSYNOPSIS
# Create a Zip file
use Archive::Zip qw( :ERROR_CODES :CONSTANTS );
my $zip = Archive::Zip->new();
# Add a directory
my $dir_member = $zip->addDirectory( dirname/ );
# Add a file from a string with compression
my $string_member = $zip->addString( This is a test, stringMember.txt );
$string_member->desiredCompressionMethod( COMPRESSION_DEFLATED );
# Add a file from disk
my $file_member = $zip->addFile( xyz.pl, AnotherName.pl );
# Save the Zip file
unless ( $zip->writeToFileNamed(someZip.zip) == AZ_OK ) {
die write error;
}
# Read a Zip file
my $somezip = Archive::Zip->new();
unless ( $somezip->read( someZip.zip ) == AZ_OK ) {
die read error;
}
# Change the compression type for a file in the Zip
my $member = $somezip->memberNamed( stringMember.txt );
$member->desiredCompressionMethod( COMPRESSION_STORED );
unless ( $zip->writeToFileNamed( someOtherZip.zip ) == AZ_OK ) {
die write error;
}
The Archive::Zip module allows a Perl program to create, manipulate, read, and write Zip archive files.
Zip archives can be created, or you can read from existing zip files.
Once created, they can be written to files, streams, or strings. Members can be added, removed, extracted, replaced, rearranged, and enumerated. They can also be renamed or have their dates, comments, or other attributes queried or modified. Their data can be compressed or uncompressed as needed.
Members can be created from members in existing Zip files, or from existing directories, files, or strings.
This module uses the Compress::Zlib library to read and write the compressed streams inside the files.
Download (0.17MB)
Added: 2007-07-03 License: Perl Artistic License Price:
852 downloads
xDash::Archive::Pg 1.02
xDash::Archive::Pg is a base class for Archive. more>>
xDash::Archive::Pg is a base class for Archive.
SYNOPSIS
package Archive;
use base xDash::Archive::Pg;
# Set up your own database access parameters
sub SetParameters { shift->SUPER::SetDatabaseConnection(
name => xdash, user => , password => ) }
USAGE
The module is developed in the object orientated way. It can be used as the base class for archiving based on PostgreSQL as persistence. The base class has to implement a fixed set of methods, called by the derived class Archive. Archive is hardcoded in the xDash::Archivist (driver pattern).
For more details, how to set up all the needed components, see the introduction to the deployment: Planning and deploying xDash in a sandbox at http://xdash.jabberstudio.org/deployment/perl. By deriving from the class, as the way of passing arguments, you have to implement explicit methods listed below . The synopsis above is an example of the client script generated by the xdscr.
METHODS
SetDatabaseConnection( name => $database_name, user => $database_user, password => database_password )
Passes the self explanatory parameters to the DBI module, required by xDash::Archivist.
<<lessSYNOPSIS
package Archive;
use base xDash::Archive::Pg;
# Set up your own database access parameters
sub SetParameters { shift->SUPER::SetDatabaseConnection(
name => xdash, user => , password => ) }
USAGE
The module is developed in the object orientated way. It can be used as the base class for archiving based on PostgreSQL as persistence. The base class has to implement a fixed set of methods, called by the derived class Archive. Archive is hardcoded in the xDash::Archivist (driver pattern).
For more details, how to set up all the needed components, see the introduction to the deployment: Planning and deploying xDash in a sandbox at http://xdash.jabberstudio.org/deployment/perl. By deriving from the class, as the way of passing arguments, you have to implement explicit methods listed below . The synopsis above is an example of the client script generated by the xdscr.
METHODS
SetDatabaseConnection( name => $database_name, user => $database_user, password => database_password )
Passes the self explanatory parameters to the DBI module, required by xDash::Archivist.
Download (0.061MB)
Added: 2006-06-28 License: Perl Artistic License Price:
1213 downloads
Archive::SelfExtract 1.3
Archive::SelfExtract is a Perl module to bundle compressed archives with Perl code. more>>
Archive::SelfExtract is a Perl module to bundle compressed archives with Perl code.
SYNOPSIS
use Archive::SelfExtract;
# writes output script to STDOUT
Archive::SelfExtract::createExtractor( "perlcode.pl", "somefiles.zip" );
# with various options:
Archive::SelfExtract::createExtractor( "perlcode.pl", "somefiles.zip",
perlbin => "/opt/perl58/bin/perl",
output_fh => $someFileHandle,
);
See also the command line tool, mkselfextract.
Archive::SelfExtract allows you create Perl programs out of compressed zip archives. Given a piece of code and an archive, it creates a single file which, when run, unpacks the archive and then runs the code.
This module provides a function for creating a self-extractor script, a function to unpack the archive, and utility functions for wrapped programs
<<lessSYNOPSIS
use Archive::SelfExtract;
# writes output script to STDOUT
Archive::SelfExtract::createExtractor( "perlcode.pl", "somefiles.zip" );
# with various options:
Archive::SelfExtract::createExtractor( "perlcode.pl", "somefiles.zip",
perlbin => "/opt/perl58/bin/perl",
output_fh => $someFileHandle,
);
See also the command line tool, mkselfextract.
Archive::SelfExtract allows you create Perl programs out of compressed zip archives. Given a piece of code and an archive, it creates a single file which, when run, unpacks the archive and then runs the code.
This module provides a function for creating a self-extractor script, a function to unpack the archive, and utility functions for wrapped programs
Download (0.006MB)
Added: 2007-06-21 License: Perl Artistic License Price:
859 downloads
WormBase::Archive::Build 0.028
WormBase::Archive::Build can create archives of Wormbase releases. more>>
WormBase::Archive::Build can create archives of Wormbase releases.
SYNOPSIS
use Bio::GMOD::Admin::Archive;
my $archive = Bio::GMOD::Admin::Archive->new();
$archive->create_archive();
METHODS
Bio::GMOD::Admin::Archive->new(@options)
Create a new WormBase::Archive object for archiving WormBase releases.
The options consist largely of file system and remote paths. If none are provided, they will all be populated from the default file located on the primary WormBase server.
This is the recommended idiom as it insulates your programs from structural changes at WormBase. In this case, archives will be built in /pub/wormbase/RELEASE where RELEASE is a WSXXX release.
There are, however, at least two options that you will wish to provide:
--database_repository Full path where to store archives on your filesystem
--mysql_path Full path to the mysql data dir
See WormBase.pm for additional details on all system-dependent paths that can be overridden.
<<lessSYNOPSIS
use Bio::GMOD::Admin::Archive;
my $archive = Bio::GMOD::Admin::Archive->new();
$archive->create_archive();
METHODS
Bio::GMOD::Admin::Archive->new(@options)
Create a new WormBase::Archive object for archiving WormBase releases.
The options consist largely of file system and remote paths. If none are provided, they will all be populated from the default file located on the primary WormBase server.
This is the recommended idiom as it insulates your programs from structural changes at WormBase. In this case, archives will be built in /pub/wormbase/RELEASE where RELEASE is a WSXXX release.
There are, however, at least two options that you will wish to provide:
--database_repository Full path where to store archives on your filesystem
--mysql_path Full path to the mysql data dir
See WormBase.pm for additional details on all system-dependent paths that can be overridden.
Download (0.070MB)
Added: 2006-06-28 License: GPL (GNU General Public License) Price:
1214 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 newspaper archives 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