offsets
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 131
Tie::OffsetArray 0.01
Tie::OffsetArray can tie one array to another, with index offset. more>>
Tie::OffsetArray can tie one array to another, with index offset.
SYNOPSIS
use Tie::OffsetArray;
tie @a, Tie::OffsetArray, 1, @b; # offset=1; use given array.
tie @c, Tie::OffsetArray, 2; # use anonymous array.
$a[0] = x; # assign to $b[1];
tied(@a)->array->[0] = y; # assign to $b[0].
When tied to this class, an arrays behavior is completely normal. For its internal storage, it uses another array, either one supplied by the caller, or a new anonymous one. Accesses to the tied array are mapped down to the storage array by offsetting the index by some constant amount.
A special method on the tied object returns a reference to the storage array, so that the elements below the offset can be accessed. This is particularly useful if the storage array was not supplied by the caller.
<<lessSYNOPSIS
use Tie::OffsetArray;
tie @a, Tie::OffsetArray, 1, @b; # offset=1; use given array.
tie @c, Tie::OffsetArray, 2; # use anonymous array.
$a[0] = x; # assign to $b[1];
tied(@a)->array->[0] = y; # assign to $b[0].
When tied to this class, an arrays behavior is completely normal. For its internal storage, it uses another array, either one supplied by the caller, or a new anonymous one. Accesses to the tied array are mapped down to the storage array by offsetting the index by some constant amount.
A special method on the tied object returns a reference to the storage array, so that the elements below the offset can be accessed. This is particularly useful if the storage array was not supplied by the caller.
Download (0.008MB)
Added: 2007-08-10 License: Perl Artistic License Price:
805 downloads
FRET 0.0.6
FRET is a tool that examines any file or files and attempts to identify the data structures and patterns within those file(s). more>>
FRET is a *nix command line tool that examines any file or files and attempts to identify the data structures and patterns within those file(s).
FRET project does this by firstly scanning files using heuristic algorithms to identify structures and then by comparing files to identify common patterns. Results are compared and ranked using a probabilistic approach.
It outputs a sorted list of the detected structures within the file(s) which can then be parsed by other tools and scripts. libfret is the library used to implement FRET. It provides a clear interface to allow for the analysis of buffers of raw data.
It is designed to be integrated with a range of other programs such as hex editors, packet analysers and other development tools.
FRET and libfret are at an early development stage and do not yet provide a lot of useful functionality. FRET (and libfret) scans a single or multiple files (buffers) and currently identifies the following structures:
- data that is common to multiple files or buffers
- arrays of ASCII bytes
- arrays of fill bytes
- offsets to other fields in a file
Enhancements:
- New --phase and --scan options were added, which allow specific tests to be performed.
- The results list was made clearer, and some internal redesign streamlined the code.
<<lessFRET project does this by firstly scanning files using heuristic algorithms to identify structures and then by comparing files to identify common patterns. Results are compared and ranked using a probabilistic approach.
It outputs a sorted list of the detected structures within the file(s) which can then be parsed by other tools and scripts. libfret is the library used to implement FRET. It provides a clear interface to allow for the analysis of buffers of raw data.
It is designed to be integrated with a range of other programs such as hex editors, packet analysers and other development tools.
FRET and libfret are at an early development stage and do not yet provide a lot of useful functionality. FRET (and libfret) scans a single or multiple files (buffers) and currently identifies the following structures:
- data that is common to multiple files or buffers
- arrays of ASCII bytes
- arrays of fill bytes
- offsets to other fields in a file
Enhancements:
- New --phase and --scan options were added, which allow specific tests to be performed.
- The results list was made clearer, and some internal redesign streamlined the code.
Download (0.45MB)
Added: 2006-01-20 License: GPL (GNU General Public License) Price:
1375 downloads
convert2tifgrayscale
convert2tifgrayscale is a GIMP plugin that can batch convert to tif grayscale for Offset-Printing. more>>
convert2tifgrayscale is a GIMP plugin that can batch convert to tif grayscale for Offset-Printing.
Converts all images in a specified directory to grayscale, then uses unsharp mask and adjusts levels.
<<lessConverts all images in a specified directory to grayscale, then uses unsharp mask and adjusts levels.
Download (MB)
Added: 2006-08-16 License: GPL (GNU General Public License) Price:
1167 downloads
Autofs NG 0.4.1
Autofs NG is an autofs automounter for Linux that strives to be interoperable. more>>
Autofs NG is a Linux automounter that is intended to be completely interoperable with autofs implementations on other Unix platforms. As such, it supports some features that the current Linux automounters do not.
This includes direct mounts, /net (--hosts access), lazy mounting and unmounting of hierarchical multimounts, and browsing. Autofsng also supports the usual indirect map support available elsewhere.
Maps are supported from flat files, executable maps, NIS maps, NIS+ maps, LDAP maps, and hesiod (DNS) filsys namespace.
AutofsNG was originally developed at Sun Microsystems, but has been cancelled as a project. Fortunately, it has been released as GPL, so I am continuing its development in my spare time.
Enhancements:
- Initscript fixup for path to /proc/mounts
- We no longer update /etc/mtab because the kernel does all unmounting. Current recommendation is to symlink /proc/mounts to /etc/mtab if you want to see the what is actually mounted with calling mount
- Fixed SuSE/LSB initscript issue where ypbind wasnt neccesarily started before autofsng.
- Added an RPM .spec file to the tree.
- Fixed initscript install
- Fixed possible crash when using the -hosts map.
- Redimentary mount option translation. Currently translates the common Solaris NFS mount options to Linux specific ones. Hard-coded.
- Initscript fixups for unknown systems (Debian in particular)
- Fixed a bug where the -hosts map would return duplicate map offsets, which is a semantic error for usual entries.
<<lessThis includes direct mounts, /net (--hosts access), lazy mounting and unmounting of hierarchical multimounts, and browsing. Autofsng also supports the usual indirect map support available elsewhere.
Maps are supported from flat files, executable maps, NIS maps, NIS+ maps, LDAP maps, and hesiod (DNS) filsys namespace.
AutofsNG was originally developed at Sun Microsystems, but has been cancelled as a project. Fortunately, it has been released as GPL, so I am continuing its development in my spare time.
Enhancements:
- Initscript fixup for path to /proc/mounts
- We no longer update /etc/mtab because the kernel does all unmounting. Current recommendation is to symlink /proc/mounts to /etc/mtab if you want to see the what is actually mounted with calling mount
- Fixed SuSE/LSB initscript issue where ypbind wasnt neccesarily started before autofsng.
- Added an RPM .spec file to the tree.
- Fixed initscript install
- Fixed possible crash when using the -hosts map.
- Redimentary mount option translation. Currently translates the common Solaris NFS mount options to Linux specific ones. Hard-coded.
- Initscript fixups for unknown systems (Debian in particular)
- Fixed a bug where the -hosts map would return duplicate map offsets, which is a semantic error for usual entries.
Download (0.085MB)
Added: 2005-04-08 License: GPL (GNU General Public License) Price:
1659 downloads
Unicode Utilities 2.25
Unicode Utilities project are a set of programs for manipulating and analyzing Unicode text. more>>
Unicode Utilities project are a set of programs for manipulating and analyzing Unicode text. uniname defaults to printing the character offset of each character, its byte offset, its hex code value, its encoding, the glyph itself, and its name. Command line options allow undesired information to be suppressed and the Unicode range to be added.
unidesc reports the character ranges to which different portions of the text belong. unihist generates a histogram of the characters in its input. ExplicateUTF8 is intended for debugging or for learning about Unicode. It determines and explains the validity of a sequence of bytes as a UTF-8 encoding. unirev reverses UTF-8 strings.
Enhancements:
- Adds to unidesc the option -r which causes it to list the ranges detected after reading all input rather than listing them as they are encountered, and adds to uniname the option -B which causes it to ignore characters within the Basic Multilingual Plane.
<<lessunidesc reports the character ranges to which different portions of the text belong. unihist generates a histogram of the characters in its input. ExplicateUTF8 is intended for debugging or for learning about Unicode. It determines and explains the validity of a sequence of bytes as a UTF-8 encoding. unirev reverses UTF-8 strings.
Enhancements:
- Adds to unidesc the option -r which causes it to list the ranges detected after reading all input rather than listing them as they are encountered, and adds to uniname the option -B which causes it to ignore characters within the Basic Multilingual Plane.
Download (0.25MB)
Added: 2007-07-04 License: GPL (GNU General Public License) Price:
849 downloads
Class::Bits 0.05
Class::Bits is a Perl module with class wrappers around bit vectors. more>>
Class::Bits is a Perl module with class wrappers around bit vectors.
SYNOPSIS
package MyClass;
use Class::Bits;
make_bits( a => 4, # 0..15
b => 1, # 0..1
c => 1, # 0..1
d => 2, # 0..3
e => s4 # -8..7
f => s1 # -1..0
);
package;
$o=MyClass->new(a=>12, d=>2);
print "o->b is ", $o->b, "n";
print "bit vector is ", unpack("h*", $$o), "n";
$o2=$o->new();
$o3=MyClass->new($string);
ABSTRACT
Class::Bits creates class wrappers around bit vectors.
Class::Bits defines classes using bit vectors as storage.
Object attributes are stored in bit fields inside the bit vector. Bit field sizes have to be powers of 2 (1, 2, 4, 8, 16 or 32).
There is a class constructor subroutine:
make_bits( field1 => size1, field2 => size2, ...)
exports in the calling package a ctor, accessor methods, some utility methods and some constants:
Sizes can be prefixed by s or u to define signedness of the field. Default is unsigned.
$class->new()
creates a new object with all zeros.
$class->new($bitvector)
creates a new object over $bitvector.
$class->new(%fields)
creates a new object and initializes its fields with the values in %fields.
$obj->new()
clones an object.
$obj->$field()
$obj->$field($value)
gets or sets the value of the bit field $field inside the bit vector.
$class->length
$obj->lenght
returns the size in bits of the bit vector used for storage.
$class->keys
$obj->keys
returns an array with the names of the object attributes
$obj->as_hash
returns a flatten hash with the object attributes, i.e.:
my %values=$obj->as_hash;
%INDEX
hash with offsets as used by vec perl operator (to get an offset in bits, the value has to be multiplied by the corresponding bit field size).
%SIZES
hash with bit field sizes in bits.
%SIGNED
hash with signedness of the fields
Bit fields are packed in the bit vector in the order specified as arguments to make_bits.
Bit fields are padded inside the bit vector, i.e. a class created like
make_bits(A=>1, B=>2, C=>1, D=>4, E=>8, F=>16);
will have the layout
AxBBCxxx DDDDxxxx EEEEEEEE xxxxxxxx FFFFFFFF FFFFFFFF
<<lessSYNOPSIS
package MyClass;
use Class::Bits;
make_bits( a => 4, # 0..15
b => 1, # 0..1
c => 1, # 0..1
d => 2, # 0..3
e => s4 # -8..7
f => s1 # -1..0
);
package;
$o=MyClass->new(a=>12, d=>2);
print "o->b is ", $o->b, "n";
print "bit vector is ", unpack("h*", $$o), "n";
$o2=$o->new();
$o3=MyClass->new($string);
ABSTRACT
Class::Bits creates class wrappers around bit vectors.
Class::Bits defines classes using bit vectors as storage.
Object attributes are stored in bit fields inside the bit vector. Bit field sizes have to be powers of 2 (1, 2, 4, 8, 16 or 32).
There is a class constructor subroutine:
make_bits( field1 => size1, field2 => size2, ...)
exports in the calling package a ctor, accessor methods, some utility methods and some constants:
Sizes can be prefixed by s or u to define signedness of the field. Default is unsigned.
$class->new()
creates a new object with all zeros.
$class->new($bitvector)
creates a new object over $bitvector.
$class->new(%fields)
creates a new object and initializes its fields with the values in %fields.
$obj->new()
clones an object.
$obj->$field()
$obj->$field($value)
gets or sets the value of the bit field $field inside the bit vector.
$class->length
$obj->lenght
returns the size in bits of the bit vector used for storage.
$class->keys
$obj->keys
returns an array with the names of the object attributes
$obj->as_hash
returns a flatten hash with the object attributes, i.e.:
my %values=$obj->as_hash;
%INDEX
hash with offsets as used by vec perl operator (to get an offset in bits, the value has to be multiplied by the corresponding bit field size).
%SIZES
hash with bit field sizes in bits.
%SIGNED
hash with signedness of the fields
Bit fields are packed in the bit vector in the order specified as arguments to make_bits.
Bit fields are padded inside the bit vector, i.e. a class created like
make_bits(A=>1, B=>2, C=>1, D=>4, E=>8, F=>16);
will have the layout
AxBBCxxx DDDDxxxx EEEEEEEE xxxxxxxx FFFFFFFF FFFFFFFF
Download (0.004MB)
Added: 2007-07-30 License: Perl Artistic License Price:
816 downloads
gnome-settings-visualeffects 0.4
gnome-settings-visualeffects allows the control of the xcompmgr composite manager. more>>
gnome-settings-visualeffects allows the control of the xcompmgr composite manager, it provides the user with control of the shadow radius,opacity,offsets and colour, and the speed of fades and where they are applied.
Main features:
- Splitting shadow configuration into active and inactive windows
- Adding a path locator and version checker for xcompmgr/transset
- Incorporating window translucency (decided on a minimum of 25%)
- Window translucency can be added to active/inactive windows by single windows or window types i.e. File Chooser, applications or application children, and Im hoping that I can make this persistent.
- Increase compatibility with gdesklets
- Propose to luminocity developers a configuration standard for these types of settings, therefore improving the future of the project.
- Incorporate code from xcompmgr/transset to reduce reliance on what are intended to be demos rather than real life tools.
- Notification area tool/Panel applet for accessing effects quickly.
<<lessMain features:
- Splitting shadow configuration into active and inactive windows
- Adding a path locator and version checker for xcompmgr/transset
- Incorporating window translucency (decided on a minimum of 25%)
- Window translucency can be added to active/inactive windows by single windows or window types i.e. File Chooser, applications or application children, and Im hoping that I can make this persistent.
- Increase compatibility with gdesklets
- Propose to luminocity developers a configuration standard for these types of settings, therefore improving the future of the project.
- Incorporate code from xcompmgr/transset to reduce reliance on what are intended to be demos rather than real life tools.
- Notification area tool/Panel applet for accessing effects quickly.
Download (0.44MB)
Added: 2005-08-02 License: GPL (GNU General Public License) Price:
1548 downloads
GSubEdit 0.4pre1
GSubEdit, or GNOME Subtitle Editor, is a tool for editing and converting DivX ;-) subtitles. more>>
GSubEdit, or GNOME Subtitle Editor, is a tool for editing and converting DivX ;-) subtitles. It currently features read/write of SubRip (.srt) and MicroDVD (.sub) subtitles.
Framerate conversion and frame displacement (Increase/decrease all frames by a given offset) is also supported.
Main features:
- Open and saving of SubRip (.srt) and MicroDVD (.sub)
- Framerate conversion (.sub and .srt)
- Frame displacement. Used if the frames is shown to early or to late. (.sub and .srt)
- Removing of the text used for hearing impaired. (.sub and .srt)
- Split file into two parts
- Join two files into one
- Editing of text, start- and end- frame/time (.sub and .srt)
- DragnDrop, search and replace and support for i18n (only Swedish is currently available)
- Spellcheck
<<lessFramerate conversion and frame displacement (Increase/decrease all frames by a given offset) is also supported.
Main features:
- Open and saving of SubRip (.srt) and MicroDVD (.sub)
- Framerate conversion (.sub and .srt)
- Frame displacement. Used if the frames is shown to early or to late. (.sub and .srt)
- Removing of the text used for hearing impaired. (.sub and .srt)
- Split file into two parts
- Join two files into one
- Editing of text, start- and end- frame/time (.sub and .srt)
- DragnDrop, search and replace and support for i18n (only Swedish is currently available)
- Spellcheck
Download (0.078MB)
Added: 2005-08-17 License: GPL (GNU General Public License) Price:
1533 downloads
DBIx::FetchLoop 0.6
DBIx::FetchLoop is a Perl module that can fetch with change detection and aggregates. more>>
DBIx::FetchLoop is a Perl module that can fetch with change detection and aggregates.
SYNOPSIS
use DBIx::FetchLoop;
$lph = DBIx::FetchLoop->new($sth, $dbi_method);
$hash_ref = $lph->fetch_current_data;
$rowset = $hash_ref->{previous};
$rowset = $hash_ref->{current};
$rowset = $hash_ref->{next};
$rowset = $lph->fetch_current_row;
$rowset = $lph->previous;
$rowset = $lph->current;
$rowset = $lph->next;
$lph->set_aggregate($new_field, $field);
$lph->reset_aggregate($new_field);
$lph->set_concatenate($new_field, $field);
$lph->reset_concatenate($new_field);
$boolean = $lph->pre_loop($field);
$boolean = $lph->post_loop($field);
$boolean = $lph->pre_loop_substr($field,$offset,$length);
$boolean = $lph->post_loop_substr($field,$offset,$length);
$boolean = $lph->is_first;
$boolean = $lph->is_last;
$count = $lph->count;
DBIx::FetchLoop is a supplemental approach for data retrieval with DBI. Result rows are queued with hash references to previous, current and next rows. Utility functions allow for simplified comparison of a field between previous and current or current and next rows. Additional functions allow you automatically create new fields for aggregating or concatenating based on fields in the resulting dataset.
Note: This module was created with ease of use and performance in mind. This module is intended to eliminate the need for temporary variables for loop detection as well as aggregation and concatenation. The reason that not all DBI methods for data retrieval are not implemented (such as selectall_arrayref) is that the modules design for performance would be defeated.
In essence you can write cleaner looking, more efficient code minus a few hassles.
<<lessSYNOPSIS
use DBIx::FetchLoop;
$lph = DBIx::FetchLoop->new($sth, $dbi_method);
$hash_ref = $lph->fetch_current_data;
$rowset = $hash_ref->{previous};
$rowset = $hash_ref->{current};
$rowset = $hash_ref->{next};
$rowset = $lph->fetch_current_row;
$rowset = $lph->previous;
$rowset = $lph->current;
$rowset = $lph->next;
$lph->set_aggregate($new_field, $field);
$lph->reset_aggregate($new_field);
$lph->set_concatenate($new_field, $field);
$lph->reset_concatenate($new_field);
$boolean = $lph->pre_loop($field);
$boolean = $lph->post_loop($field);
$boolean = $lph->pre_loop_substr($field,$offset,$length);
$boolean = $lph->post_loop_substr($field,$offset,$length);
$boolean = $lph->is_first;
$boolean = $lph->is_last;
$count = $lph->count;
DBIx::FetchLoop is a supplemental approach for data retrieval with DBI. Result rows are queued with hash references to previous, current and next rows. Utility functions allow for simplified comparison of a field between previous and current or current and next rows. Additional functions allow you automatically create new fields for aggregating or concatenating based on fields in the resulting dataset.
Note: This module was created with ease of use and performance in mind. This module is intended to eliminate the need for temporary variables for loop detection as well as aggregation and concatenation. The reason that not all DBI methods for data retrieval are not implemented (such as selectall_arrayref) is that the modules design for performance would be defeated.
In essence you can write cleaner looking, more efficient code minus a few hassles.
Download (0.006MB)
Added: 2006-12-21 License: Perl Artistic License Price:
1037 downloads
Parrot::OpTrans 0.4.5
Parrot::OpTrans is a Perl module that can transform Ops to C Code. more>>
Parrot::OpTrans is a Perl module that can transform Ops to C Code.
Parrot::OpTrans is the abstract superclass for the Parrot op to C transforms. Each transform contains various bits of information needed to generate the C code, and creates a different type of run loop. The methods defined here supply various default values and behaviour common to all transforms.
The subclass hierarchy is as follows:
OpTrans
|_________________________
| | |
C CGoto Compiled
| |
CPrederef |
| | |
| |_________|
| |
CSwitch CGP
Class Methods
new()
Returns a new instance.
Instance Methods
prefix()
Returns the default Parrot_ prefix.
Used by Parrot::Ops func_name() to individuate op function names.
suffix()
Implemented in subclasses to return a suffix with which to individuate variable names. This default implementation returns an empty string.
defines()
Implemented in subclasses to return the C #define macros required.
opsarraytype()
Returns the type for the array of opcodes. By default here its an array opcode_t, but the prederef runops core uses an array of void* to do its clever tricks.
core_type()
Implemented in subclasses to return the type of core created by the transform. This default implementation raises an exception indicating that the core type is missing. See the Parrot_Run_core_t enum in include/parrot/interpreter.h for a list of the core types.
core_prefix()
Implemented in subclasses to return a short prefix indicating the core type used to individuate core function names.
run_core_func_decl($base)
Optionally implemented in subclasses to return the C code for the run core function declaration. $base is the name of the main ops file minus the .ops extension.
ops_addr_decl($base_suffix)
Optionally implemented in subclasses to return the C code for the ops address declaration. $base_suffix is the name of the main ops file minus the .ops extension with suffix() and an underscore appended.
run_core_func_decl($base)
Optionally implemented in subclasses to return the C code for the run core function declaration. $base is the same as for run_core_func_decl().
run_core_func_start()
Implemented in subclasses, if run_core_func_decl() is implemented, to return the C code prior to the run core function.
run_core_after_addr_table($base_suffix)
Optionally implemented in subclasses to return the run core C code for section after the address table. $base_suffix is the same as for ops_addr_decl().
run_core_finish($base)
Implemented in subclasses to return the C code following the run core function. $base is the same as for run_core_func_decl().
init_func_init1($base)
Optionally implemented in subclasses to return the C code for the cores init function. $base is the same as for run_core_func_decl().
init_set_dispatch($base_suffix)
Optionally implemented in subclasses to return the C code for initializing the dispatch mechanism within the cores init function. $base_suffix is the same as for ops_addr_decl().
Macro Substitutions
The following methods are called by Parrot::OpFile to perform ops file macro substitutions.
access_arg($type, $value, $op)
Implemented in subclasses to return the C code for the specified op argument type and value. $op is an instance of Parrot::Op.
gen_goto($where)
The various goto_X methods below call this method with the return value of an expr_X method (implemented in subclass).
restart_address($address)
Implemented in subclasses to return the C code for restart ADDRESS($address).
restart_offset($offset)
Implemented in subclasses to return the C code for restart OFFSET($offset).
goto_address($address)
Transforms the goto ADDRESS($address) macro in an ops file into the relevant C code.
goto_offset($offset)
Transforms the goto OFFSET($offset) macro in an ops file into the relevant C code.
goto_pop()
Transforms the goto POP($address) macro in an ops file into the relevant C code.
expr_offset($offset)
Implemented in subclasses to return the C code for OFFSET($offset). Called by goto_offset().
expr_address($address)
Implemented in subclasses to return the C code for ADDRESS($address). Called by goto_address().
<<lessParrot::OpTrans is the abstract superclass for the Parrot op to C transforms. Each transform contains various bits of information needed to generate the C code, and creates a different type of run loop. The methods defined here supply various default values and behaviour common to all transforms.
The subclass hierarchy is as follows:
OpTrans
|_________________________
| | |
C CGoto Compiled
| |
CPrederef |
| | |
| |_________|
| |
CSwitch CGP
Class Methods
new()
Returns a new instance.
Instance Methods
prefix()
Returns the default Parrot_ prefix.
Used by Parrot::Ops func_name() to individuate op function names.
suffix()
Implemented in subclasses to return a suffix with which to individuate variable names. This default implementation returns an empty string.
defines()
Implemented in subclasses to return the C #define macros required.
opsarraytype()
Returns the type for the array of opcodes. By default here its an array opcode_t, but the prederef runops core uses an array of void* to do its clever tricks.
core_type()
Implemented in subclasses to return the type of core created by the transform. This default implementation raises an exception indicating that the core type is missing. See the Parrot_Run_core_t enum in include/parrot/interpreter.h for a list of the core types.
core_prefix()
Implemented in subclasses to return a short prefix indicating the core type used to individuate core function names.
run_core_func_decl($base)
Optionally implemented in subclasses to return the C code for the run core function declaration. $base is the name of the main ops file minus the .ops extension.
ops_addr_decl($base_suffix)
Optionally implemented in subclasses to return the C code for the ops address declaration. $base_suffix is the name of the main ops file minus the .ops extension with suffix() and an underscore appended.
run_core_func_decl($base)
Optionally implemented in subclasses to return the C code for the run core function declaration. $base is the same as for run_core_func_decl().
run_core_func_start()
Implemented in subclasses, if run_core_func_decl() is implemented, to return the C code prior to the run core function.
run_core_after_addr_table($base_suffix)
Optionally implemented in subclasses to return the run core C code for section after the address table. $base_suffix is the same as for ops_addr_decl().
run_core_finish($base)
Implemented in subclasses to return the C code following the run core function. $base is the same as for run_core_func_decl().
init_func_init1($base)
Optionally implemented in subclasses to return the C code for the cores init function. $base is the same as for run_core_func_decl().
init_set_dispatch($base_suffix)
Optionally implemented in subclasses to return the C code for initializing the dispatch mechanism within the cores init function. $base_suffix is the same as for ops_addr_decl().
Macro Substitutions
The following methods are called by Parrot::OpFile to perform ops file macro substitutions.
access_arg($type, $value, $op)
Implemented in subclasses to return the C code for the specified op argument type and value. $op is an instance of Parrot::Op.
gen_goto($where)
The various goto_X methods below call this method with the return value of an expr_X method (implemented in subclass).
restart_address($address)
Implemented in subclasses to return the C code for restart ADDRESS($address).
restart_offset($offset)
Implemented in subclasses to return the C code for restart OFFSET($offset).
goto_address($address)
Transforms the goto ADDRESS($address) macro in an ops file into the relevant C code.
goto_offset($offset)
Transforms the goto OFFSET($offset) macro in an ops file into the relevant C code.
goto_pop()
Transforms the goto POP($address) macro in an ops file into the relevant C code.
expr_offset($offset)
Implemented in subclasses to return the C code for OFFSET($offset). Called by goto_offset().
expr_address($address)
Implemented in subclasses to return the C code for ADDRESS($address). Called by goto_address().
Download (3.1MB)
Added: 2006-07-06 License: Perl Artistic License Price:
1205 downloads
GOPDIT 0.2.8
GOPDIT (GOP accurate eDITor) is a simple program that lets you cut and merge MPEG2-PS files. more>>
GOPDIT (GOP accurate eDITor) is a simple program that allows you to cut and merge MPEG2-PS files at GOP boundaries without reencoding. Thats it. No other file types, no other operations! I use it mainly for removing commercials out of tv recordings.
The state of this program is more or less beta. GOPDIT project is usable, when you know, what works and when you have MPEG2 files like the ones I use.
The interface isnt much tested yet. So if you are doing something unexpected and currently nearly everything is unexpected this could result in in strange behaviour!
As for MPEG2 file formats currently I work only with two different types resulting from ATI and Hauppauge encoders. So I dont know, how this program will behave on other formats.
Encoders that encode with closed GOPs are preferable, because transitions are usually smoother.
Usage:
- open a mpeg2 file (file -> open ... )
- navigate to the beginning of your wanted clip
- (via playing, scrolling, keyboard accelerators - zoom in, when youre close)
- click the clip begin button left below the clip table
- navigate to the end of your clip
- click the clip end button right below the clip table the clip will now appear in the table
- you can repeat steps 2-5 or 1-5
- save the concatenated clips to a new mpeg2 file (file -> save as ...)
Closing a file will close the actual file (the one that is displayed below the screen) and remove ALL clips from the clip table.
Clips can be selected and then cut, copied or pasted.
In order to speed up the search for the correct cut point, you can zoom in: the slider will then range over a smaller section of the file.
The numbers displayed arent GOP or frame numbers, the numbers are simply file offsets divided by a constant (1000000). They should give you some idea of where you are.
The time displayed is just the time found in the GOP structure.
If the checkbox I-frames is checked, only I-frames are displayed. It helps reducing traffic, when you want to work remote (i.e. with a wireless laptop).
With the checkbox inclusive you have the choice of the GOP boundry to be before (checked) or after the picture actually displayed.
You can inhibit X firing up:
# gopdit [< options >] -x [< mpegin >] < editlist > < mpegout >
< editlist > and < mpegout > can be replaced by -, meaning stdin and stdout respectively. Parameters are read from .gopditrc, but can be overriden by options (see gopdit -h). When < mpegin > isnt specified, the editlist must contain commands for opening mpeg files.
As the cuts are done just before the pack headers, that preceed a GOP, the transition results are totally dependent on the way how mpeg2 encoding is done. In the case of Hauppauge cards, the results seem to be pretty good (especially if you have closed GOP encoding).
With other encodings transitions might look awful and before generating DVDs, some further processing (i.e. replex see DVB Replex at freshmeat.net) is usually necessary.
Version restrictions:
- Crashes (please tell me about them, in order to improve stability).
- End of file handling isnt clean yet.
- Though GOPs are marked broken after clip transitions, transitions might still look awful.
- There seem to be Linux distribution, where the QT installation isnt correctly detected (I would be extremely greatful for a more complete autoconf macro than the one in autoqt-0.03).
- If you load several shows at once, they must have the same characteristics, frame size, frame rate etc - otherwise the program will probably crash.
<<lessThe state of this program is more or less beta. GOPDIT project is usable, when you know, what works and when you have MPEG2 files like the ones I use.
The interface isnt much tested yet. So if you are doing something unexpected and currently nearly everything is unexpected this could result in in strange behaviour!
As for MPEG2 file formats currently I work only with two different types resulting from ATI and Hauppauge encoders. So I dont know, how this program will behave on other formats.
Encoders that encode with closed GOPs are preferable, because transitions are usually smoother.
Usage:
- open a mpeg2 file (file -> open ... )
- navigate to the beginning of your wanted clip
- (via playing, scrolling, keyboard accelerators - zoom in, when youre close)
- click the clip begin button left below the clip table
- navigate to the end of your clip
- click the clip end button right below the clip table the clip will now appear in the table
- you can repeat steps 2-5 or 1-5
- save the concatenated clips to a new mpeg2 file (file -> save as ...)
Closing a file will close the actual file (the one that is displayed below the screen) and remove ALL clips from the clip table.
Clips can be selected and then cut, copied or pasted.
In order to speed up the search for the correct cut point, you can zoom in: the slider will then range over a smaller section of the file.
The numbers displayed arent GOP or frame numbers, the numbers are simply file offsets divided by a constant (1000000). They should give you some idea of where you are.
The time displayed is just the time found in the GOP structure.
If the checkbox I-frames is checked, only I-frames are displayed. It helps reducing traffic, when you want to work remote (i.e. with a wireless laptop).
With the checkbox inclusive you have the choice of the GOP boundry to be before (checked) or after the picture actually displayed.
You can inhibit X firing up:
# gopdit [< options >] -x [< mpegin >] < editlist > < mpegout >
< editlist > and < mpegout > can be replaced by -, meaning stdin and stdout respectively. Parameters are read from .gopditrc, but can be overriden by options (see gopdit -h). When < mpegin > isnt specified, the editlist must contain commands for opening mpeg files.
As the cuts are done just before the pack headers, that preceed a GOP, the transition results are totally dependent on the way how mpeg2 encoding is done. In the case of Hauppauge cards, the results seem to be pretty good (especially if you have closed GOP encoding).
With other encodings transitions might look awful and before generating DVDs, some further processing (i.e. replex see DVB Replex at freshmeat.net) is usually necessary.
Version restrictions:
- Crashes (please tell me about them, in order to improve stability).
- End of file handling isnt clean yet.
- Though GOPs are marked broken after clip transitions, transitions might still look awful.
- There seem to be Linux distribution, where the QT installation isnt correctly detected (I would be extremely greatful for a more complete autoconf macro than the one in autoqt-0.03).
- If you load several shows at once, they must have the same characteristics, frame size, frame rate etc - otherwise the program will probably crash.
Download (0.18MB)
Added: 2006-01-06 License: GPL (GNU General Public License) Price:
1386 downloads
resample 0.1
Resample is a small commandline application for samplerate conversion and playback of audio data. more>>
resample is a small commandline application for samplerate conversion and playback of audio data. It is based on a 16 bit fix-point MMX optimized polyphase filterbank, and should run in realtime on any almost any processor. It is processor independent but requires Linux
open sound system (OSS) to run.
resample takes its input from standard input and sends the resampled sound to the soundcard. It can convert from any samplerate to any other samplerate, and supports up to 6 channels (see resample --help for options). It is optimixed for converting ftom 44.1kHz to 48kHz, and may give a small frequency offset for other combinations.
Below is an example of how to use resample with cdparanoia to rip a track from a audio CD in realtime and play it at 48kHz using the soundcard:
cdparanoia -p -Z -Y -r -e -q 1 - | resample -q
<<lessopen sound system (OSS) to run.
resample takes its input from standard input and sends the resampled sound to the soundcard. It can convert from any samplerate to any other samplerate, and supports up to 6 channels (see resample --help for options). It is optimixed for converting ftom 44.1kHz to 48kHz, and may give a small frequency offset for other combinations.
Below is an example of how to use resample with cdparanoia to rip a track from a audio CD in realtime and play it at 48kHz using the soundcard:
cdparanoia -p -Z -Y -r -e -q 1 - | resample -q
Download (0.018MB)
Added: 2006-07-31 License: GPL (GNU General Public License) Price:
1180 downloads
Net::DNS::ToolKit 0.29
Net::DNS::ToolKit are tools for working with DNS packets. more>>
Net::DNS::ToolKit are tools for working with DNS packets.
SYNOPSIS
use Net::DNS::ToolKit qw(
get1char
get16
get32
put1char
put16
put32
getIPv4
putIPv4
putIPv6
getIPv6
getstring
putstring
dn_comp
dn_expand
parse_char
gethead
newhead
getflags
get_qdcount
get_ancount
get_nscount
get_arcount
put_qdcount
put_ancount
put_nscount
put_arcount
inet_aton
inet_ntoa
ipv6_aton
ipv6_n2x
ipv6_n2d
sec2time
ttlAlpha2Num
collapse
strip
get_ns
gettimeofday
);
$char = get1char($buffer,$offset);
($int, $newoff) = get16($buffer,$offset);
($long, $newoff) = get32($buffer,$offset);
$newoff = put1char($buffer,$offset,$u_char);
$newoff = put16($buffer,$offset,$int);
$newoff = put32($buffer,$offset,$long);
$flags = getflags($buffer);
$int = get_qdcount($buffer);
$int = get_ancount($buffer);
$int = get_nscount($buffer);
$int = get_arcount($buffer);
$newoff = put_qdcount($buffer,$int);
$newoff = put_ancount($buffer,$int);
$newoff = put_nscount($buffer,$int);
$newoff = put_arcount($buffer,$int);
($netaddr,$newoff)=getIPv4($buffer,$offset);
$newoff = putIPv4($buffer,$offset,$netaddr);
($ipv6addr,$newoff)=getIPv6($buffer,$offset);
$newoff = putIPv6($buffer,$offset,$ipv6addr);
($offset,
$id,$qr,$opcode,$aa,$tc,$rd,$ra,$mbz,$ad,$cd,$rcode,
$qdcount,$ancount,$nscount,$arcount)
= gethead($buffer);
$newoff = newhead($buffer,$id,$flags,
$qdcount,$ancount,$nscount,$arcount);
($b,$h,$d,$a)=parse_char($char);
($newoff,$name) = dn_expand($buffer,$offset);
($newoff,@dnptrs)=dn_comp($buffer,$offset,$name,@dnptrs);
$dotquad = inet_ntoa($netaddr);
$netaddr = inet_aton($dotquad);
$ipv6addr = ipv6_aton($ipv6_text);
$hex_text = ipv6_n2x($ipv6addr);
$dec_text = ipv6_n2d($ipv6addr);
$timetxt = sec2time($seconds);
$seconds = ttlAlpha2Num($timetext);
$shorthost = collapse($zonename,$longhost);
$tag = strip($P_tag);
@nameservers = get_ns();
($secs,$usecs) = gettimeofday();
Routines to pick apart, examine and put together DNS packets. They can be used for diagnostic purposes or as building blocks for DNS applications such as DNS servers and clients or to allow user applications to interact directly with remote DNS servers.
<<lessSYNOPSIS
use Net::DNS::ToolKit qw(
get1char
get16
get32
put1char
put16
put32
getIPv4
putIPv4
putIPv6
getIPv6
getstring
putstring
dn_comp
dn_expand
parse_char
gethead
newhead
getflags
get_qdcount
get_ancount
get_nscount
get_arcount
put_qdcount
put_ancount
put_nscount
put_arcount
inet_aton
inet_ntoa
ipv6_aton
ipv6_n2x
ipv6_n2d
sec2time
ttlAlpha2Num
collapse
strip
get_ns
gettimeofday
);
$char = get1char($buffer,$offset);
($int, $newoff) = get16($buffer,$offset);
($long, $newoff) = get32($buffer,$offset);
$newoff = put1char($buffer,$offset,$u_char);
$newoff = put16($buffer,$offset,$int);
$newoff = put32($buffer,$offset,$long);
$flags = getflags($buffer);
$int = get_qdcount($buffer);
$int = get_ancount($buffer);
$int = get_nscount($buffer);
$int = get_arcount($buffer);
$newoff = put_qdcount($buffer,$int);
$newoff = put_ancount($buffer,$int);
$newoff = put_nscount($buffer,$int);
$newoff = put_arcount($buffer,$int);
($netaddr,$newoff)=getIPv4($buffer,$offset);
$newoff = putIPv4($buffer,$offset,$netaddr);
($ipv6addr,$newoff)=getIPv6($buffer,$offset);
$newoff = putIPv6($buffer,$offset,$ipv6addr);
($offset,
$id,$qr,$opcode,$aa,$tc,$rd,$ra,$mbz,$ad,$cd,$rcode,
$qdcount,$ancount,$nscount,$arcount)
= gethead($buffer);
$newoff = newhead($buffer,$id,$flags,
$qdcount,$ancount,$nscount,$arcount);
($b,$h,$d,$a)=parse_char($char);
($newoff,$name) = dn_expand($buffer,$offset);
($newoff,@dnptrs)=dn_comp($buffer,$offset,$name,@dnptrs);
$dotquad = inet_ntoa($netaddr);
$netaddr = inet_aton($dotquad);
$ipv6addr = ipv6_aton($ipv6_text);
$hex_text = ipv6_n2x($ipv6addr);
$dec_text = ipv6_n2d($ipv6addr);
$timetxt = sec2time($seconds);
$seconds = ttlAlpha2Num($timetext);
$shorthost = collapse($zonename,$longhost);
$tag = strip($P_tag);
@nameservers = get_ns();
($secs,$usecs) = gettimeofday();
Routines to pick apart, examine and put together DNS packets. They can be used for diagnostic purposes or as building blocks for DNS applications such as DNS servers and clients or to allow user applications to interact directly with remote DNS servers.
Download (0.20MB)
Added: 2006-07-27 License: Perl Artistic License Price:
1185 downloads
Spreadsheet::Perl 0.07
Spreadsheet::Perl is a pure Perl implementation of a spreadsheet engine. more>>
Spreadsheet::Perl is a pure Perl implementation of a spreadsheet engine.
SYNOPSIS
use Spreadsheet::Perl;
use Spreadsheet::Perl::Arithmetic ;
my $ss = tie my %ss, "Spreadsheet::Perl"
$ss->SetNames("TEST_RANGE" => A5:B8) ;
$ss{TEST_RANGE} = 7 ;
DefineSpreadsheetFunction(AddOne, &AddOne) ;
$ss{A3} = PerlFormula($ss->AddOne("A5") + $ss{A5}) ;
print "A3 formula => " . $ss->GetFormulaText(A3) . "n" ;
print "A3 = $ss{A3}n" ;
$ss{ABC1:ABD5} = 10 ;
$ss{A4} = PerlFormula($ss->Sum("A5:B8", "ABC1:ABD5")) ;
print "A4 = $ss{A4}n" ;
...
Main features:
- set and get values from cells or ranges
- handle cell private data
- has fetch/store callback
- has cell attributes access
- has cell/range fillers (auto-fill functionality)
- set formulas (pure perl and common format)
- compute the dependencies between cells
- formulas can fetch data from multiple spreadsheets and the dependencies still work
- checks for circular dependencies
- debugging triggers
- has a simple architecture for expansion
- has a simple architecture for debugging (and some flags are already implemented)
- can read its data from a file
- supports cell naming
- cell and range locking
- input validators
- cell formats (pod, HTML, ...)
- can define spreadsheet functions from the scripts using it or via a new module of your own
- Recalculate() / AUTOCALC
- value caching to speed up formulas and volatile cells
- cell address offsetting functions
- Automatic formula offsetting
- Relative and fixed cell addresses
- slice access
- Perl scalar mapping to a cell
- some debugging tool (dump, dump table, dump to HTML, formula stack trace, ...)
<<lessSYNOPSIS
use Spreadsheet::Perl;
use Spreadsheet::Perl::Arithmetic ;
my $ss = tie my %ss, "Spreadsheet::Perl"
$ss->SetNames("TEST_RANGE" => A5:B8) ;
$ss{TEST_RANGE} = 7 ;
DefineSpreadsheetFunction(AddOne, &AddOne) ;
$ss{A3} = PerlFormula($ss->AddOne("A5") + $ss{A5}) ;
print "A3 formula => " . $ss->GetFormulaText(A3) . "n" ;
print "A3 = $ss{A3}n" ;
$ss{ABC1:ABD5} = 10 ;
$ss{A4} = PerlFormula($ss->Sum("A5:B8", "ABC1:ABD5")) ;
print "A4 = $ss{A4}n" ;
...
Main features:
- set and get values from cells or ranges
- handle cell private data
- has fetch/store callback
- has cell attributes access
- has cell/range fillers (auto-fill functionality)
- set formulas (pure perl and common format)
- compute the dependencies between cells
- formulas can fetch data from multiple spreadsheets and the dependencies still work
- checks for circular dependencies
- debugging triggers
- has a simple architecture for expansion
- has a simple architecture for debugging (and some flags are already implemented)
- can read its data from a file
- supports cell naming
- cell and range locking
- input validators
- cell formats (pod, HTML, ...)
- can define spreadsheet functions from the scripts using it or via a new module of your own
- Recalculate() / AUTOCALC
- value caching to speed up formulas and volatile cells
- cell address offsetting functions
- Automatic formula offsetting
- Relative and fixed cell addresses
- slice access
- Perl scalar mapping to a cell
- some debugging tool (dump, dump table, dump to HTML, formula stack trace, ...)
Download (0.042MB)
Added: 2007-07-05 License: Perl Artistic License Price:
844 downloads
Bio::Tools::Run::PiseApplication::fasta 1.4
Bio::Tools::Run::PiseApplication::fasta is a Bioperl class for sequence database search. more>>
Bio::Tools::Run::PiseApplication::fasta is a Bioperl class for sequence database search.
Parameters:
fasta (Excl)
Fasta program
query (Sequence)
Query sequence File
pipe: seqfile
seqtype (Excl)
Is it a DNA or protein sequence (-n)
protein_db (Excl)
Protein Database
nucleotid_db (Excl)
Nucleotid Database
break_long (Integer)
Break long library sequences into blocks (-N)
ktup (Integer)
ktup : sensitivity and speed of the search (protein:2, DNA:6)
optcut (Integer)
OPTCUT : the threshold for optimization. (-c)
gapinit (Integer)
Penalty for gap initiation (-12 by default for fasta with proteins, -16 for DNA) (-f)
gapext (Integer)
Penalty for gap extention (-2 by default for fasta with proteins, -4 for DNA) (-g)
high_expect (Float)
Maximal expectation value threshold for displaying scores and alignments (-E)
low_expect (Float)
Minimal expectation value threshold for displaying scores and alignments (-F)
nucleotid_match (Integer)
Reward for a nucleotid match (-r)
nucleotid_mismatch (Integer)
Penalty for a nucleotid mismatch (-r)
matrix (Excl)
Scoring matrix file (-s)
X_penalty (Integer)
Penalty for a match to X (independently of the PAM matrix) (-x)
frameshift (Integer)
Penalty for frameshift between codon (fast[xy]/tfast[xy])(-h)
frameshift_within (Integer)
Penalty for frameshift within a codon (fasty/tfasty)(-j)
threeframe (Switch)
Search only the three forward frames (tfasta) (-3)
invert (Switch)
Reverse complement the query sequence (all tfasta) (-i)
genetic_code (Excl)
Use genetic code for translation (tfasta/tfast[xy]/fast[xy]) (-t)
band (Integer)
band-width used for optimization (-y)
swalig (Switch)
unlimited Smith-Waterman alignment for DNA (-A)
noopt (Switch)
no limited optimization (-o)
stat (Excl)
Specify statistical calculation. (-z)
random (Switch)
Estimate stat parameters from shuffled copies of each library sequence (-z)
histogram (Switch)
No histogram (-H)
scores (Integer)
number of similarity scores to be shown (-b)
alns (Integer)
number of alignments to be shown (-d)
html_output (Switch)
HTML output (-m)
markx (Excl)
Alternate display of matches and mismatches in alignments
init1 (Switch)
sequences ranked by the z-score based on the init1 score (-1)
z_score_out (Excl)
Show normalize score as (-B)
showall (Switch)
both sequences are shown in their entirety in alignments (fasta only) (-a)
linlen (Integer)
output line length for sequence alignments (max. 200) (-w)
offsets (String)
Start numbering the aligned sequences at position x1 x2 (2 numbers) (-X)
info (Switch)
Display more information about the library sequence in the alignment (-L)
statfile (OutFile)
Write out the sequence identifier, superfamily number, and similarity scores to this file (-R)
filter (Switch)
Lower case filtering (-S)
outfile (OutFile)
pipe: mview_input
html_outfile (OutFile)
<<lessParameters:
fasta (Excl)
Fasta program
query (Sequence)
Query sequence File
pipe: seqfile
seqtype (Excl)
Is it a DNA or protein sequence (-n)
protein_db (Excl)
Protein Database
nucleotid_db (Excl)
Nucleotid Database
break_long (Integer)
Break long library sequences into blocks (-N)
ktup (Integer)
ktup : sensitivity and speed of the search (protein:2, DNA:6)
optcut (Integer)
OPTCUT : the threshold for optimization. (-c)
gapinit (Integer)
Penalty for gap initiation (-12 by default for fasta with proteins, -16 for DNA) (-f)
gapext (Integer)
Penalty for gap extention (-2 by default for fasta with proteins, -4 for DNA) (-g)
high_expect (Float)
Maximal expectation value threshold for displaying scores and alignments (-E)
low_expect (Float)
Minimal expectation value threshold for displaying scores and alignments (-F)
nucleotid_match (Integer)
Reward for a nucleotid match (-r)
nucleotid_mismatch (Integer)
Penalty for a nucleotid mismatch (-r)
matrix (Excl)
Scoring matrix file (-s)
X_penalty (Integer)
Penalty for a match to X (independently of the PAM matrix) (-x)
frameshift (Integer)
Penalty for frameshift between codon (fast[xy]/tfast[xy])(-h)
frameshift_within (Integer)
Penalty for frameshift within a codon (fasty/tfasty)(-j)
threeframe (Switch)
Search only the three forward frames (tfasta) (-3)
invert (Switch)
Reverse complement the query sequence (all tfasta) (-i)
genetic_code (Excl)
Use genetic code for translation (tfasta/tfast[xy]/fast[xy]) (-t)
band (Integer)
band-width used for optimization (-y)
swalig (Switch)
unlimited Smith-Waterman alignment for DNA (-A)
noopt (Switch)
no limited optimization (-o)
stat (Excl)
Specify statistical calculation. (-z)
random (Switch)
Estimate stat parameters from shuffled copies of each library sequence (-z)
histogram (Switch)
No histogram (-H)
scores (Integer)
number of similarity scores to be shown (-b)
alns (Integer)
number of alignments to be shown (-d)
html_output (Switch)
HTML output (-m)
markx (Excl)
Alternate display of matches and mismatches in alignments
init1 (Switch)
sequences ranked by the z-score based on the init1 score (-1)
z_score_out (Excl)
Show normalize score as (-B)
showall (Switch)
both sequences are shown in their entirety in alignments (fasta only) (-a)
linlen (Integer)
output line length for sequence alignments (max. 200) (-w)
offsets (String)
Start numbering the aligned sequences at position x1 x2 (2 numbers) (-X)
info (Switch)
Display more information about the library sequence in the alignment (-L)
statfile (OutFile)
Write out the sequence identifier, superfamily number, and similarity scores to this file (-R)
filter (Switch)
Lower case filtering (-S)
outfile (OutFile)
pipe: mview_input
html_outfile (OutFile)
Download (0.081MB)
Added: 2007-06-06 License: Perl Artistic License Price:
872 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 offsets 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