Main > Free Download Search >

Free ffffff software for linux

ffffff

Sponsored Links
Sponsored Links
Sort by >> Relevance
rss
Secleted [ 0 ] software to compare
Results 1 - 15 of about 6
Class::ParmList 1.05

Class::ParmList 1.05


Class::ParmList is a Perl module with methods for processing named parameter lists. more>>
Class::ParmList is a Perl module with methods for processing named parameter lists.

SYNOPSIS

use Class::ParmList qw(simple_parms parse_parms);

$thingy->some_method({
-bgcolor => #ff0000,
-textcolor => #000000
});

sub some_method {
my ($self) = shift;

my ($parm_ref) = @_;

my $parms = Class::ParmList->new ({
-parms => $parm_ref,
-legal => [qw (-textcolor -border -cellpadding)],
-required => [qw (-bgcolor)],
-defaults => {
-bgcolor => "#ffffff",
-textcolor => "#000000"
}
});

if (not defined $parms) {
my $error_message = Class::ParmList->error;
die ($error_message);
}

# Stuff...

}

sub another_method {
my $self = shift;
my ($name,$rank,$serial_number) = simple_parms([qw(-name -rank -serial_number)], @_);

#...
}

sub still_another {
my $parms = parse_parms ({
-parms => @_,
-legal => [qw (-textcolor -border -cellpadding)],
-required => [qw (-bgcolor)],
-defaults => {
-bgcolor => "#ffffff",
-textcolor => "#000000"
}
});
if (not defined $parms) {
my $error_message = Class::ParmList->error;
die ($error_message);
}

# ...
}

This is a simple package for validating calling parameters to a subroutine or method. It allows you to use "named parameters" while providing checking for number and naming of parameters for verifying inputs are as expected and meet any minimum requirements. It also allows the setting of default values for the named parameters if omitted.

<<less
Download (0.016MB)
Added: 2007-03-03 License: Perl Artistic License Price:
966 downloads
Tk::Mirror 0.02

Tk::Mirror 0.02


Tk::Mirror is a Perl extension for a graphic user interface to update local or remote directories in both directions. more>>
Tk::Mirror is a Perl extension for a graphic user interface to update local or remote directories in both directions.

SYNOPSIS

# in the simplest kind and manner
use Tk::Mirror;
use Tk;
my $mw->MainWindow->new();
$mw->Mirror()->grid();
MainLoop();
# in a detailed kind
use Tk;
use Tk::Mirror;
my $mw = MainWindow->new();
my $mirror = $mw->Mirror(
-localdir => "TestA",
-remotedir => "TestD",
-usr => my_ftp@username.de
-ftpserver => "ftp.server.de",
-pass => "my_password",
-debug => 1,
-delete => "enable",
-exclusions => ["private.txt", "secret.txt"],
-timeout => 60,
-connection => undef, # or a connection to a ftp-server
)->grid();
for(keys(%{$mirror->GetChilds()}))
{
$mirror->Subwidget($_)->configure(
-font => "{Times New Roman} 14 {bold}",
);
}
for(qw/
TreeLocalDir
TreeRemoteDir
/)
{
$mirror->Subwidget($_)->configure(
-background => "#FFFFFF",
-width => 40,
-height => 20,
);
}
for(qw/
bEntryUsr
EntryPass
bEntryFtpServer
bEntryLocalDir
bEntryRemoteDir
/)
{
$mirror->Subwidget($_)->configure(
-background => "#FFFFFF",
);
}
MainLoop();

This is a graphic user interface to compare and update local with remote directories in both directions.

<<less
Download (0.007MB)
Added: 2006-07-28 License: Perl Artistic License Price:
1183 downloads
miniCHESS 0.8

miniCHESS 0.8


miniCHESS is a chess game WindowMaker dockapp. more>>
miniCHESS is a chess game WindowMaker dockapp.

miniCHESS was born out of boredom. I warn you... if your a chess enthusiast and play a lot then please use xboard or some other chess gui.

Even though miniCHESS has that kinda cool factor, it does get hard on the eyes. I like using miniCHESS for games in which Im in no hurry to finish and go on for a couple days.

Sorry but miniCHESS has no save/restore features yet.

Usage:

miniCHESS has a variety of options:

-h help
-t play text game (def = mouse game)
-r more random moves by the engine
-a hard, engine will also think on your time (def = no)
-d n max search depth used by the engine (def = 29)
-c n max time the engine gets to make a move (def = inf)
-T n size of the transposition table (def = 150001)
-C n size of the cache table (def = 18001)
-k #color background color for a checkmated king (def = #ff0000)
-b #color background color for the black pieces (def = #000000)
-f #color foreground color for the black pieces (def = #ffffff)
-1 #color color for the dark squares (def = #c8c365)
-2 #color color for the light squares (def = #77a26d)

If you specify a search depth (-d) to (say) 4 ply, the program will search until all moves have been examined to a depth of 4. If you set a maximum time (-t) per move and also use the depth option, the search will stop at the specified time or the specified depth, whichever comes first.

Gnuchess is a cpu hog while its thinking. Be aware. When the hard option (-a) is specified then the engine thinks all the time and pins your cpu.

Also gnuchess can be a memory hog. Specifying the size of the transposition and cache tables will modify the memory used. See the memory usage excerpt from the gnuchess FAQ below.

White piece colors are the reverse of what is specified for the black pieces.
<<less
Download (0.025MB)
Added: 2006-10-18 License: GPL (GNU General Public License) Price:
1101 downloads
Tk::Image::Cut 0.07

Tk::Image::Cut 0.07


Tk::Image::Cut is a Perl extension for a graphic user interface to cut pictures. more>>
Tk::Image::Cut is a Perl extension for a graphic user interface to cut pictures.

SYNOPSIS

use Tk::Image::Cut;
my $mw = MainWindow->new();
$mw->title("Picture-Cutter");
$mw->geometry("+5+5");
my $cut = $mw->Cut()->grid();
$mw->Button(
-text => "Exit",
-command => sub { exit(); },
)->grid();
for(qw/
ButtonSelectImage
LabelShape
bEntryShape
ButtonColor
LabelWidthOut
EntryWidthOut
LabelHeightOut
EntryHeightOut
ButtonIncrease
ButtonReduce
LabelNameOut
EntryNameOut
ButtonCut
/)
{
$cut->Subwidget($_)->configure(
-font => "{Times New Roman} 10 {bold}",
);
}
for(qw/
bEntryShape
EntryWidthOut
EntryHeightOut
EntryNameOut
Canvas
/)
{
$cut->Subwidget($_)->configure(
-background => "#FFFFFF",
);
}
for(qw/
bEntryShape
EntryWidthOut
EntryHeightOut
/)
{
$cut->Subwidget($_)->configure(
-width => 6,
);
}
$cut->Subwidget("EntryNameOut")->configure(
-width => 40,
);
$cut->Subwidget("Canvas")->configure(
-width => 1000,
-height => 800,
);
MainLoop();

Perl extension for a graphic user interface to cut pictures. The module is a mixed widget from Buttons, Labels, BrowseEntry, Entrys and Canvas widgets.

I hope the graphic user interface is simple enough to be understood without great declarations.

It can be used as an independent application or just like how any other widget. Try out the test.pl program.You can select between four cutting forms.

"rectangle", "oval", "circle" or "polygon"

In order to cut out pictures in circular form or ovally click with the left mouse button onto the upper left corner and hold the button pressed while the mouse is moved.
In order to cut pictures in polygon form you click with the left mouse button on the first point and draw the mouse to the next point. If you have drawn the last point you click with the right mouse button.

You can use all standard widget options.

<<less
Download (0.030MB)
Added: 2006-07-28 License: Perl Artistic License Price:
1188 downloads
Tk::Image::Calculation 0.04

Tk::Image::Calculation 0.04


Tk::Image::Calculation is a Perl extension for graphic calculations. more>>
Tk::Image::Calculation is a Perl extension for graphic calculations.

SYNOPSIS

#------------------------------------------------- use Tk::Image::Calculation; my @points_oval = (10, 10, 30, 50); my @points_circle = (20, 20, 60, 60); my @points_polygon = (136, 23, 231, 55, 463, 390, 338, 448, 182, 401, 148, 503, 15, 496, 9, 87); # polygon = (x1, y1, x2, y2, x3, y3, x4, y4, ... and so on) #------------------------------------------------- my $cal = Tk::Image::Calculation->new(); my $ref_array = $cal->GetPointsInOval(@points_oval); # my $ref_array = $cal->GetPointsOutOval(@points_oval); # my $ref_array = $cal->GetPointsInCircle(@points_circle); # my $ref_array = $cal->GetPointsOutCircle(@points_circle); # my $ref_array = $cal->GetPointsInPolygon(@points_polygon); # my $ref_array = $cal->GetPointsOutPolygon(@points_polygon); for(@{$ref_array}) { print("x:$_->[0] y:$_->[1]n"); } my $ref_array1 = $cal->GetLinesInOval(@points_oval); # my $ref_array1 = $cal->GetLinesOutOval(@points_oval); # my $ref_array1 = $cal->GetLinesInCircle(@points_circle); # my $ref_array1 = $cal->GetLinesOutCircle(@points_circle); # my $ref_array1 = $cal->GetLinesInPolygon(@points_polygon); # my $ref_array1 = $cal->GetLinesOutPolygon(@points_polygon); for(@{$ref_array1}) { print("x1:$_->[0] y1:$_->[1] x2:$_->[2] y2:$_->[3]n"); } #------------------------------------------------- my $cal1 = Tk::Image::Calculation->new( -points => @points_circle, -form => "circle", # or "oval" or "polygon" ); for my $subset ("points_inside", "points_outside") { print("n$subset circle : n"); for(@{$cal1->{$subset}}) { print("x:$_->[0] y:$_->[1]n"); } } for my $subset ("lines_inside", "lines_outside") { print("n$subset circle : n"); for(@{$cal1->{$subset}}) { print("x1:$_->[0] y1:$_->[1] x2:$_->[2] y2:$_->[3]n"); } } #------------------------------------------------- my $cal2 = Tk::Image::Calculation->new( -points => @points_polygon, # need three points at least -form => "polygon", -subset => "lines_outside", # defaults to "all" ); use Tk; my $mw = MainWindow->new(); my $canvas = $mw->Canvas( -width => 800, -height => 600, )->pack(); for(@{$cal2->{lines_outside}}) { $canvas->createLine(@{$_}); } MainLoop(); #------------------------------------------------- use Tk; use Tk::JPEG; my $mw = MainWindow->new(); my $image = $mw->Photo(-file => "test.jpg"); my $cal3 = Tk::Image::Calculation->new(); my $ref_points = $cal3->GetPointsOutCircle(50, 50, 150, 150); $image->put("#FFFFFF", -to => $_->[0], $_->[1]) for(@{$ref_points}); $image->write("new.jpg", -from => 50, 50, 150, 150); #-------------------------------------------------

This module calculates points and lines inside or outside from simple graphic objects. At this time possible objects:
"oval",
"circle",
"polygon"

<<less
Download (0.007MB)
Added: 2006-07-28 License: Perl Artistic License Price:
1183 downloads
Template::Manual::Directives 2.19

Template::Manual::Directives 2.19


Template::Manual::Directives is a Perl module that contains template directives. more>>
Template::Manual::Directives is a Perl module that contains template directives.

Accessing and Updating Template Variables

GET

The GET directive retrieves and outputs the value of the named variable.

[% GET foo %]

The GET keyword is optional. A variable can be specified in a directive tag by itself.

[% foo %]

The variable can have an unlimited number of elements, each separated by a dot .. Each element can have arguments specified within parentheses.

[% foo %]
[% bar.baz %]
[% biz.baz(10) %]
...etc...

See Template::Manual::Variables for a full discussion on template variables.
You can also specify expressions using the logical (and, or, not, ?:) and mathematic operators (+ - * / % mod div).

[% template.title or default.title %]

[% score * 100 %]

[% order.nitems ? checkout(order.total) : no items %]

The div operator returns the integer result of division. Both % and mod return the modulus (i.e. remainder) of division. mod is provided as an alias for % for backwards compatibility with version 1.

[% 15 / 6 %] # 2.5
[% 15 div 6 %] # 2
[% 15 mod 6 %] # 3

CALL

The CALL directive is similar to GET in evaluating the variable named, but doesnt print the result returned. This can be useful when a variable is bound to a sub-routine or object method which you want to call but arent interested in the value returned.

[% CALL dbi.disconnect %]

[% CALL inc_page_counter(page_count) %]

SET

The SET directive allows you to assign new values to existing variables or create new temporary variables.

[% SET title = Hello World %]

The SET keyword is also optional.

[% title = Hello World %]

Variables may be assigned the values of other variables, unquoted numbers (digits), literal text (single quotes) or quoted text ("double quotes"). In the latter case, any variable references within the text will be interpolated when the string is evaluated. Variables should be prefixed by $, using curly braces to explicitly scope the variable name where necessary.

[% foo = Foo %] # literal value Foo
[% bar = foo %] # value of variable foo
[% cost = $100 %] # literal value $100
[% item = "$bar: ${cost}.00" %] # value "Foo: $100.00"

Multiple variables may be assigned in the same directive and are evaluated in the order specified. Thus, the above could have been written:

[% foo = Foo
bar = foo
cost = $100
item = "$bar: ${cost}.00"
%]

Simple expressions can also be used, as per GET.

[% ten = 10
twenty = 20
thirty = twenty + ten
forty = 2 * twenty
fifty = 100 div 2
six = twenty mod 7
%]

You can concatenate strings together using the _ operator. In Perl 5, the . is used for string concatenation, but in Perl 6, as in the Template Toolkit, the . will be used as the method calling operator and _ will be used for string concatenation. Note that the operator must be specified with surrounding whitespace which, as Larry says, is construed as a feature:

[% copyright = (C) Copyright _ year _ _ author %]

You can, of course, achieve a similar effect with double quoted string interpolation.

[% copyright = "(C) Copyright $year $author" %]

DEFAULT

The DEFAULT directive is similar to SET but only updates variables that are currently undefined or have no "true" value (in the Perl sense).

[% DEFAULT
name = John Doe
id = jdoe
%]

This can be particularly useful in common template components to ensure that some sensible default are provided for otherwise undefined variables.

[% DEFAULT
title = Hello World
bgcol = #ffffff
%]
< html>
< head>
< title>[% title %]
< /head>

< body bgcolor="[% bgcol %]">

<<less
Download (0.76MB)
Added: 2007-07-11 License: Perl Artistic License Price:
836 downloads
Secleted [ 0 ] software to compare
  • Page: 1 of 1
  • 1