Main > Free Download Search >

Free format 1.27 software for linux

format 1.27

Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 3381
Test::Reporter::Date::Format 1.27

Test::Reporter::Date::Format 1.27


Test::Reporter::Date::Format Perl module contains date formating subroutines. more>>
Test::Reporter::Date::Format Perl module contains date formating subroutines.

SYNOPSIS

use Test::Reporter::Date::Format;

@lt = localtime(time);

print time2str($template, time);
print strftime($template, @lt);

print time2str($template, time, $zone);
print strftime($template, @lt, $zone);

print ctime(time);
print asctime(@lt);

print ctime(time, $zone);
print asctime(@lt, $zone);

This module provides routines to format dates into ASCII strings. They correspond to the C library routines strftime and ctime.

time2str(TEMPLATE, TIME [, ZONE])

time2str converts TIME into an ASCII string using the conversion specification given in TEMPLATE. ZONE if given specifies the zone which the output is required to be in, ZONE defaults to your current zone.

strftime(TEMPLATE, TIME [, ZONE])

strftime is similar to time2str with the exception that the time is passed as an array, such as the array returned by localtime.

ctime(TIME [, ZONE])

ctime calls time2str with the given arguments using the conversion specification "%a %b %e %T %Yn"

asctime(TIME [, ZONE])

asctime calls time2str with the given arguments using the conversion specification "%a %b %e %T %Yn"

<<less
Download (0.023MB)
Added: 2007-07-24 License: Perl Artistic License Price:
822 downloads
Time::Format 1.02

Time::Format 1.02


Time::Format is a Perl module for easy-to-use date/time formatting. more>>
Time::Format is a Perl module for easy-to-use date/time formatting.

SYNOPSIS

use Time::Format qw(%time %strftime %manip);

$time{$format}
$time{$format, $unixtime}

print "Today is $time{yyyy/mm/dd}n";
print "Yesterday was $time{yyyy/mm/dd, time-24*60*60}n";
print "The time is $time{hh:mm:ss}n";
print "Another time is $time{H:mm am tz, $another_time}n";
print "Timestamp: $time{yyyymmdd.hhmmss.mmm}n";
%time also accepts Date::Manip strings and DateTime objects:
$dm = Date::Manip::ParseDate(last monday);
print "Last monday was $time{Month d, yyyy, $dm}";
$dt = DateTime->new (....);
print "Heres another date: $time{m/d/yy, $dt}";
It also accepts most ISO-8601 date/time strings:
$t = 2005/10/31T17:11:09; # date separator: / or - or .
$t = 2005-10-31 17.11.09; # in-between separator: T or _ or space
$t = 20051031_171109; # time separator: : or .
$t = 20051031171109; # separators may be omitted
$t = 2005/10/31; # date-only is okay
$t = 17:11:09; # time-only is okay
# But not:
$t = 20051031; # date-only without separators
$t = 171109; # time-only without separators
# ...because those look like epoch time numbers.
%strftime works like POSIXs strftime, if you like those %-formats.
$strftime{$format}
$strftime{$format, $unixtime}
$strftime{$format, $sec,$min,$hour, $mday,$mon,$year, $wday,$yday,$isdst}

print "POSIXish: $strftime{%A, %B %d, %Y, 0,0,0,12,11,95,2}n";
print "POSIXish: $strftime{%A, %B %d, %Y, 1054866251}n";
print "POSIXish: $strftime{%A, %B %d, %Y}n"; # current time
%manip works like Date::Manips UnixDate function.
$manip{$format};
$manip{$format, $when};

print "Date::Manip: $manip{%m/%d/%Y}n"; # current time
print "Date::Manip: $manip{%m/%d/%Y,last Tuesday}n";
These can also be used as standalone functions:
use Time::Format qw(time_format time_strftime time_manip);

print "Today is ", time_format(yyyy/mm/dd, $some_time), "n";
print "POSIXish: ", time_strftime(%A %B %d, %Y,$some_time), "n";
print "Date::Manip: ", time_manip(%m/%d/%Y,$some_time), "n";

This module creates global pseudovariables which format dates and times, according to formatting codes you pass to them in strings.

The %time formatting codes are designed to be easy to remember and use, and to take up just as many characters as the output time value whenever possible. For example, the four-digit year code is "yyyy", the three-letter month abbreviation is "Mon".

The nice thing about having a variable-like interface instead of function calls is that the values can be used inside of strings (as well as outside of strings in ordinary expressions). Dates are frequently used within strings (log messages, output, data records, etc.), so having the ability to interpolate them directly is handy.

Perl allows arbitrary expressions within curly braces of a hash, even when that hash is being interpolated into a string. This allows you to do computations on the fly while formatting times and inserting them into strings. See the "yesterday" example above.

The format strings are designed with programmers in mind. What do you need most frequently? 4-digit year, month, day, 24-based hour, minute, second -- usually with leading zeroes. These six are the easiest formats to use and remember in Time::Format: yyyy, mm, dd, hh, mm, ss. Variants on these formats follow a simple and consistent formula. This module is for everyone who is weary of trying to remember strftime(3)s arcane codes, or of endlessly writing $t[4]++; $t[5]+=1900 as you manually format times or dates.

Note that mm (and related codes) are used both for months and minutes. This is a feature. %time resolves the ambiguity by examining other nearby formatting codes. If its in the context of a year or a day, "month" is assumed. If in the context of an hour or a second, "minute" is assumed.

The format strings are not meant to encompass every date/time need ever conceived. But how often do you need the day of the year (strftimes %j) or the week number (strftimes %W)?

For capabilities that %time does not provide, %strftime provides an interface to POSIXs strftime, and %manip provides an interface to the Date::Manip modules UnixDate function.

If the companion module Time::Format_XS is also installed, Time::Format will detect and use it. This will result in a significant speed increase for %time and time_format.

<<less
Download (0.038MB)
Added: 2007-07-19 License: Perl Artistic License Price:
830 downloads
Tie::Formatted 0.02

Tie::Formatted 0.02


Tie::Formatted is a Perl module embed sprintf() formatting in regular print(). more>>
Tie::Formatted is a Perl module embed sprintf() formatting in regular print().

SYNOPSIS

use Tie::Formatted;
print "The value is $format{$number, "%3d"} ",
"(or $format{$number, "%04x"} in hex)n";

print "some numbers: $format{ 12, 492, 1, 8753, "%04d"}n";

This module creates a global read-only hash, %format, for formatting data items with standard sprintf format specifications. Since its a hash, you can interpolate it into strings as well as use it standalone.

The hash should be "accessed" with two or more "keys". The last key is interpreted as a sprintf format for each data item specified in the preceeding arguments. This allows you to format multiple items at once using the same format for each.

Alternate name

If you prefer, you can specify a different name for the magical formatting hash by supplying it as as argument when useing the module:

use Tie::Formatted qw(z);

This makes %z the magic hash instead.

print "This is hex: $z{255, "%04x"}n";

Tie::Formatted currently supports only one format in the final argument; this may change if there is demand for it.

<<less
Download (0.005MB)
Added: 2007-01-15 License: Perl Artistic License Price:
1012 downloads
Format on Save 1.1.0

Format on Save 1.1.0


Format on Save is a Eclipse plugin to automatically organizes imports and formats code when saving a Java editor. more>>
Format on Save is a Eclipse plugin to automatically organizes imports and formats code when saving a Java editor.

This is the exact equivalent as doing Ctrl-Shift-O, Ctrl-Shift-F before saving. New features: - Sort Members and Correct Indentation - preference page to configure defaults

<<less
Download (0.051MB)
Added: 2006-09-13 License: GPL (GNU General Public License) Price:
1138 downloads
File::MMagic 1.27

File::MMagic 1.27


File::MMagic is a Perl module to guess file type. more>>
File::MMagic is a Perl module to guess file type.

SYNOPSIS

use File::MMagic;
use FileHandle;

$mm = new File::MMagic; # use internal magic file
# $mm = File::MMagic->new(/etc/magic); # use external magic file
# $mm = File::MMagic->new(/usr/share/etc/magic); # if you use Debian
$res = $mm->checktype_filename("/somewhere/unknown/file");

$fh = new FileHandle "< /somewhere/unknown/file2";
$res = $mm->checktype_filehandle($fh);

$fh->read($data, 0x8564);
$res = $mm->checktype_contents($data);

<<less
Download (0.021MB)
Added: 2007-01-11 License: Perl Artistic License Price:
1017 downloads
Math::String 1.27

Math::String 1.27


Math::String module contains arbitrary sized integers having arbitrary charsets to calculate with key rooms. more>>
Math::String module contains arbitrary sized integers having arbitrary charsets to calculate with key rooms.

SYNOPSIS

use Math::String;
use Math::String::Charset;

$a = new Math::String cafebabe; # default a-z
$b = new Math::String deadbeef; # a-z
print $a + $b; # Math::String ""

$a = new Math::String aa; # default a-z
$b = $a;
$b++;
print "$b > $a" if ($b > $a); # prove that ++ makes it greater
$b--;
print "$b == $a" if ($b == $a); # and that ++ and -- are reverse

$d = Math::String->bzero( [0...9] ); # like Math::Bigint
$d += Math::String->new ( 9999, [ 0..9 ] );
# Math::String "9999"

print "$dn"; # string "00000n"
print $d->as_number(),"n"; # Math::BigInt "+11111"
print $d->last(5),"n"; # string "99999"
print $d->first(3),"n"; # string "111"
print $d->length(),"n"; # faster than length("$d");

$d = Math::String->new ( , Math::String::Charset->new ( {
minlen => 2, start => [ a..z ], } );

print $d->minlen(),"n"; # print 2
print ++$d,"n"; # print aa

<<less
Download (0.060MB)
Added: 2007-06-30 License: Perl Artistic License Price:
846 downloads
metaf2xml 1.27

metaf2xml 1.27


metaf2xml parses and decodes METAR and TAF messages and stores them as XML. more>>
metaf2xml project parses and decodes aviation routine weather reports (METAR, SPECI), aerodrome forecasts (TAF), and synoptic observations (SYNOP) and stores the components in XML (all done in Perl). There are also XSLT style sheets to convert the XML to plain language (text, HTML), or XML with different schemas, and a command line and a web-based (CGI) user interface.
All parts of the messages are parsed, some common format errors are corrected or tolerated.
METAR and SPECI (weather observation) and TAF (weather forecast) information is essential for flight planning and in-flight decisions (real flight and simulation). It is regularily compiled by meteorologists at about 3,500 airports worldwide and distributed via reliable, non-public networks. Information for SYNOP is collected by more than 11,000 manned and unmanned meteorological stations around the world and is used for weather forecasting and climatic statistics. The raw format is abbreviated, some items are coded. Here are some METAR, TAF, and SYNOP messages from Rio (SBGL, 83746), New York (KJFK, 74486), and Tokyo (RJTT, 47662):
SBGL 300600Z 33002KT 9999 SCT015 BKN070 14/11 Q1027
SBGL 300300Z 300606 33005KT 8000 SCT020 BECMG 0810 5000 BR SCT013 BECMG 1113 27005KT
8000 NSW SCT018 BECMG 1517 21010KT SCT020 BECMG 2123 17005KT BECMG 0002 00000KT SCT015 TN17/09Z TX22/16Z RMK PGY
KJFK 300551Z 00000KT 5SM HZ BKN030 BKN048 OVC130 23/20 A2996
AMD KJFK 300255Z 300324 VRB04KT 5SM BR SCT020 BKN060 TEMPO 0406 BKN020 FM0600 VRB03KT
3SM BR OVC009 FM1300 VRB05KT 6SM HZ SCT025 BKN100 FM1700 17008KT P6SM SCT040CB BKN100
RJTT 300630Z 08012KT 9999 -SHRA FEW010 BKN040 23/20 Q1008
RJTT 300552Z 300615 05014KT 9000 FEW010 SCT030 TEMPO 1215 3000 TSRA FEW008 SCT010 FEW015CB BKN020
RJTT 300249Z 301206 04015KT 7000 FEW008 SCT020 BKN030 TEMPO 1218 3000 TSRA BKN008
BKN020 SCT020CB TEMPO 1821 4000 BR BECMG 0306 14006KT
AAXX 30034 83746 41462 73404 10136 20115 40291 58005 71022 84530
AAXX 30064 74486 31558 80000 10228 20200 30134 40144 58003 705// 90551 333 10250 20222 555 93006
AAXX 30064 47662 11/70 70706 10231 20180 30043 40085 50000 60151 70298 8527/
The intended users are flight simmers, private pilot (students) who want to extend their knowledge about the message formats, and everyone who just wants to know what the weather is/will be at some station in plain language.
Enhancements:
- This release brings changes to the user interface and a few smaller improvements and bugfixes.
<<less
Download (0.13MB)
Added: 2007-08-22 License: GPL (GNU General Public License) Price:
794 downloads
AudioFormat 0.5.1

AudioFormat 0.5.1


AudioFormat is a simple, unobtrusive audio format converter for your GNOME desktop. more>>
AudioFormat is a simple, unobtrusive audio format converter for your GNOME desktop. The project integrates with Nautilus and the desktop-wide audio profile settings.

AudioFormat is available under the terms of the BSD License.

<<less
Download (0.013MB)
Added: 2007-03-24 License: BSD License Price:
944 downloads
domadi 0.2

domadi 0.2


domadi [DO MAilDIr] is a daemon that monitors the contents of mail folders stored in maildir format. more>>
domadi [DO MAilDIr] is a daemon that monitors the contents of mail folders stored in maildir format.

When changes are seen, actions can be taken. It can be used together with an IMAP server to automatically learn email that is moved into a junk folder as spam.

<<less
Download (0.019MB)
Added: 2007-04-23 License: GPL (GNU General Public License) Price:
915 downloads
Flawfinder 1.27

Flawfinder 1.27


Flawfinder searches through source code looking for potential security flaws. more>>
Flawfinder searches through source code looking for potential security flaws. This is the main web site for flawfinder, a program that examines source code and reports possible security weaknesses (``flaws) sorted by risk level. Its very useful for quickly finding and removing at least some potential security problems before a program is widely released to the public. See ``how does Flawfinder work?, below, for more information on how it works.
Flawfinder is specifically designed to be easy to install and use. After installing it, in a text terminal just type:
flawfinder directory_with_source_code
Flawfinder works on Unix-like systems today (its been tested on GNU/Linux), and it should be easy to port to Windows systems. It requires Python 1.5 or greater to run (Python 1.3 or earlier wont work).
Enhancements:
- The ability to review only the changes to a program was added.
- Other minor improvements and bugfixes were made.
<<less
Download (0.075MB)
Added: 2007-01-17 License: GPL (GNU General Public License) Price:
1011 downloads
Fortran::Format 0.90

Fortran::Format 0.90


Fortran::Format is a Perl module to read and write data according to a standard Fortran 77 FORMAT. more>>
Fortran::Format is a Perl module to read and write data according to a standard Fortran 77 FORMAT.

SYNOPSYS

use Fortran::Format;

my $f = Fortran::Format->new("2(N: ,I4,2X)");
print $f->write(1 .. 10);
# prints the following:
# N: 1 N: 2
# N: 3 N: 4
# N: 5 N: 6
# N: 7 N: 8
# N: 9 N: 10

# if you dont want to save the format object,
# just chain the calls:
Fortran::Format->new("2(N: ,I4,2X)")->write(1 .. 10);

This is a Perl implementation of the Fortran 77 formatted input/output facility. One possible use is for producing input files for old Fortran programs, making sure that their column-oriented records are rigorously correct. Fortran formats may also have some advantages over printf in some cases: it is very easy to output an array, reusing the format as needed; and the syntax for repeated columns is more concise. Unlike printf, for good or ill, Fortran-formatted fields never exceed their desired width. For example, compare

printf "%3d", 12345; # prints "12345"
print Fortran::Format->new("I3")->write(12345); # prints "***"

This implementation was written in pure Perl, with portability and correctness in mind. It implements the full ANSI standard for Fortran 77 Formats (or at least it should). It was not written with speed in mind, so if you need to process millions of records it may not be what you need.

<<less
Download (0.018MB)
Added: 2007-04-20 License: Perl Artistic License Price:
925 downloads
HTML::Macro 1.27

HTML::Macro 1.27


HTML::Macro can process HTML templates with loops, conditionals, macros and more! more>>
HTML::Macro can process HTML templates with loops, conditionals, macros and more!

SYNOPSIS

use HTML::Macro;
$htm = new HTML::Macro (template.html);
$htm->print;

sub myfunc {
$htm->declare (var, missing);
$htm->set (var, value);
return $htm->process;
}

( in template.html ):

< html >< body >
< eval expr="&myfunc" >
< if def="missing" >
Message about missing stuff...
< else / >
Vars value is #var#.
< /if >
< /eval >
< /body >< /html >

HTML::Macro is a module to be used behind a web server (in CGI scripts). It provides a convenient mechanism for generating HTML pages by combining "dynamic" data derived from a database or other computation with HTML templates that represent fixed or "static" content of a page.

There are many different ways to accomplish what HTML::Macro does, including ASP, embedded perl, CFML, etc, etc. The motivation behind HTML::Macro is to keep everything that a graphic designer wants to play with *in a single HTML template*, and to keep as much as possible of what a perl programmer wants to play with *in a perl file*. Our thinking is that there are two basically dissimilar tasks involved in producing a dynamic web page: graphic design and programming. Even if one person is responsible for both tasks, it is useful to separate them in order to aid clear thinking and organized work. I guess you could say the main motivation for this separation is to make it easier for emacs (and other text processors, including humans) to parse your files: its yucky to have a lot of HTML in a string in your perl file, and its yucky to have perl embedded in a special tag in an HTML file.

HTML::Macro began with some simple programming constructs: macro expansions, include files, conditionals, loops and block quotes. Since then weve added very little: only a define tag to allow setting values and an eval tag to allow perl function calls in a nested macro scope. Our creed is "less is more, more or less."

HTML::Macro variables will look familiar to C preprocessor users or especially to Cold Fusion people. They are always surrounded with single or double hash marks: "#" or "##". Variables surrounded by double hash marks are subject to html entity encoding; variables with single hash marks are substituted "as is" (like single quotes in perl or UNIX shells). Conditionals are denoted by the and tags, and loops by the tag. Quoting used to be done using a tag, but we now deprecate that in favor of the more familiar CFML quoting syntax: < !--- --- >.

<<less
Download (0.023MB)
Added: 2006-07-31 License: Perl Artistic License Price:
1180 downloads
File::Format::RIFF 1.0.1

File::Format::RIFF 1.0.1


File::Format::RIFF is a Perl module to Resource Interchange File Format/RIFF files. more>>
File::Format::RIFF is a Perl module to Resource Interchange File Format/RIFF files.

SYNOPSIS

use File::Format::RIFF;

open( IN, file ) or die "Could not open file: $!";
my ( $riff1 ) = File::Format::RIFF->read( *IN );
close( IN );
$riff1->dump;

my ( $riff2 ) = new File::Format::RIFF( TYPE );
foreach my $chunk ( $riff1->data )
{
next if ( $chunk->id eq LIST );
$riff2->addChunk( $chunk->id, $chunk->data );
}
open( OUT, ">otherfile" ) or die "Could not open file: $!";
$riff2->write( *OUT );
close( OUT );

File::Format::RIFF provides an implementation of the Resource Interchange File Format. You can read, manipulate, and write RIFF files.

CONSTRUCTORS

$riff = new File::Format::RIFF( $type, $data );

Creates a new File::Format::RIFF object. $type is a four character code that identifies the type of this particular RIFF file. Certain types are defined to have a format, specifying which chunks must appear (e.g., WAVE files). If $type is not specified, it defaults to (four spaces). $data must be an array reference containing some number of RIFF lists and/or RIFF chunks. If $data is undef or not specified, then the new RIFF object is initialized empty.

$riff = File::Format::RIFF->read( $fh, $filesize );

Reads and parses an existing RIFF file from the given filehandle $fh. An exception will be thrown if the file is not a valid RIFF file. $filesize controls one aspect of the file format checking -- if $filesize is not specified, then stat will be called on $fh to determine how much data to expect. You may explicitly specify how much data to expect by passing in that value as $filesize. In either case, the amount of data read will be checked to make sure it matches the amount expected. Otherwise, it will throw an exception. If you do not wish it to make this check, pass in undef for $filesize.

Please note, if you wish to read an "in memory" filehandle, such as by doing this: open( $fh, read( $fh, $filesize );

The read constructor may also be used as a method. If used in this manner, then all existing data contained in $riff will be discarded, and replaced by the contents read from $fh.

$riff->write( $fh );

Outputs a properly-formatted RIFF file to the given filehandle $fh.

<<less
Download (0.009MB)
Added: 2007-04-27 License: Perl Artistic License Price:
916 downloads
PmWiki 2.1.27

PmWiki 2.1.27


PmWiki project is a wiki-based system for collaborative creation and maintenance of websites. more>>
PmWiki project is a wiki-based system for collaborative creation and maintenance of websites.
PmWiki pages look and act like normal web pages, except they have an "Edit" link that makes it easy to modify existing pages and add new pages into the website, using basic editing rules.
You do not need to know or use any HTML or CSS. Page editing can be left open to the public or restricted to small groups of authors.
Main features:
- Templates: PmWiki offers a template scheme (skins) that makes it possible to change its layout with a high degree of flexibility in both functionality and appearance.
- Access control: PmWiki permits users to establish password protection for individual pages or groups of pages, for example to establish defined zones for collaborative work by certain groups, such as in a company intranet. Password protection can be applied to reading, editing, uploading to and changing passwords for the restricted zone. PmWiki can also be configured to make use of existing password databases, such as .htaccess, LDAP servers, and MySQL databases.
- Customization: PmWiki follows a design philosophy. Its main objectives are ease of installation, maintainablilty, and keeping non-required features out of the core engine. PmWikis core engine design seeks to encourage customization with a varied selection of custom extensions, collectively known as the "Cookbook".
Enhancements:
- This version backports from 2.2.0-beta a bugfix for $TableRowIndexMax and also support for the [@{*$Variable}@] markup.
<<less
Download (MB)
Added: 2006-12-11 License: GPL (GNU General Public License) Price:
1047 downloads
DBIx::SQLCrosstab::Format 1.17

DBIx::SQLCrosstab::Format 1.17


DBIx::SQLCrosstab::Format is a Perl module with formats results created by DBIx::SQLCrosstab. more>>
DBIx::SQLCrosstab::Format is a Perl module with formats results created by DBIx::SQLCrosstab.

SYNOPSIS

use DBIx::SQLCrosstab::Format;
my $dbh=DBI->connect("dbi:driver:database"
"user","password", {RaiseError=>1})
or die "error in connection $DBI::errstrn";

my $params = {
dbh => $dbh,
op => [ [ SUM, salary] ],
from => person INNER JOIN departments USING (dept_id),
rows => [
{ col => country},
],
cols => [
{
id => dept,
value =>department,
from =>departments
},
{
id => gender, from => person
}
]
};
my $xtab = DBIx::SQLCrosstab::Format->new($params)
or die "error in creation ($DBIx::SQLCrosstab::errstr)n";

my $query = $xtab->get_query("#")
or die "error in query building $DBIx::SQLCrosstab::errstrn";

if ( $xtab->get_recs) {
# do something with records, or use a built-in function
# to produce a well formatted HTML table
#
print $xtab->as_html;

print $xtab->as_xml;
print $xtab->as_yaml;
print $xtab->as_csv(header);
$xtab->as_xls("xtab.xls");
use Data::Dumper;
print Data::Dumper->Dump ([ $xtab->as_perl_struct(hoh)],
[hoh]);
print Data::Dumper->Dump ([ $xtab->as_perl_struct(losh)],
[losh]);
print Data::Dumper->Dump ([ $xtab->as_perl_struct(loh)],
[loh]);
}
else {
die "error in execution $DBIx::SQLCrosstab::errstrn";
}

DBIx::SQLCrosstab::Format is a class descending from DBIx::SQLCrosstab. Being a child class, it inherits its parent methods and can be used in the same way.

In addition, it provides methods to produce formatted output.

<<less
Download (0.065MB)
Added: 2006-09-27 License: Perl Artistic License Price:
1122 downloads
Secleted [ 0 ] software to compare
  • Page: 1 of 5
  • 1
  • 2
  • 3
  • 4
  • 5