hai
the point I want one server and additional backup server just like winnt pdc , bdc concept . anybody know any solutions for this. the thing is i don't have that much amount to spend for additional hardwares. Is any software or anything ?????
rgds
sun (5 Replies)
Hi,
I have this scenario; where there are two classes:- apple and orange.
1,2,3,4,5,6,apple
1,1,0,4,2,3,apple
1,3,3,3,3,4,apple
1,1,1,1,1,1,orange
1,2,3,1,1,1,orange
Basically for apple, i have 3 entries in the file, and for orange, I have 2 entries. Im trying to edit the file and find... (5 Replies)
Hi Folks,
We have 6 processors in our sun server. I do see that CPU usage by one of the processor is always more than 70-80% and for remaining 5 processors, its only 20%. Is there a way to delegate the excess CPU load on one of the processors in server to other processors in same server? Is... (3 Replies)
I have a dir as /library/utility/apache-tomcat/tbase-6001/repositories which has many huge directories and files. I am planning to replicate it to another folder
/library/utility/apache-tomcat/tbase2008-6001/repositories
Normal copy command is taking a hell lot of time and getting hung in... (1 Reply)
Hi,
I am using putty client to connect to my remote Linux server box, and I am connecting through ssh. That system runs bash shell. So, if I use multiple putty terminal, how can I replicate those commands that I ran in other terminals to be available/shared in the current terminal window (i.e)... (1 Reply)
We usually use the following awk code to delete of find out the replicate record.
awk -F, '{a++} END {for (i in a) if (a>=2) print i a}' file
My question is how can I print the whole record. The following code doesn't work.
awk -F, '{a++} END {for (i in a) if (a>=2) print $0}' file
... (8 Replies)
Hello, I have a 2 column file with an ID column and a column with some string.
ID String
EN03 typehellobyedogcatcatdog
EN09 typehellobye
EN08 dogcatcatdog
EN09 catcattypehello
EN10 typehellobyedogcatcatdog
EN10 typehellobyedogcatcatdogdog
I would like to count the amount of times... (9 Replies)
Hi,
I have to install 5 servers with same OS level and same packs,
i wonder if there is an way to install 1 and then copy or clone the instalattion to the other 4?
any suggetions?
Rgs, (1 Reply)
Hello to all guys,
Maybe some expert could help me.
I have a working ruby script shown below that reads a big binary file (more than 2GB). The chunks of data I want to analyze
is separated by the sequence FF47 withing the binary. So, in the ruby script is defined as "line separator" =... (10 Replies)
Hello all,
I have a large csv file where there are four types of rows I need to merge into one row per person, where there is a column for each possible code / type of row, even if that code/row isn't there for that person.
In the csv, a person may be listed from one to four times... (9 Replies)
Discussion started by: RalphNY
9 Replies
LEARN ABOUT DEBIAN
test::image::gd
Test::Image::GD(3pm) User Contributed Perl Documentation Test::Image::GD(3pm)NAME
Test::Image::GD - A module for testing images using GD
SYNOPSIS
use Test::More plan => 1;
use Test::Image::GD;
cmp_image('test.gif', 'control.gif', '... these images should match');
# or
my $test = GD::Image->new('test.gif');
my $control = GD::Image->new('control.gif');
cmp_image($test, $control, '... these images should match');
# some other test functions ...
size_ok('camel.gif', [ 100, 350 ], '... the image is 100 x 350");
height_ok('test.gif', 200, '... the image has a height of 200');
width_ok('test.gif', 200, '... the image has a width of 200');
DESCRIPTION
This module is meant to be used for testing custom graphics, it attempts to "visually" compare the images, this means it ignores invisible
differences like color palettes and metadata. It also provides some extra functions to check the size of the image.
FUNCTIONS
cmp_image ($got, $expected, $message)
This function will tell you whether the two images will look different, ignoring differences in the order of colors in the color
palette and other invisible changes.
Both $got and $expected can be either instances of "GD::Image" or either a file handle or a file path (both are valid parameters to the
"GD::Image" constructor).
size_ok ($got, [ $width, $height ], ?$message)
This function will check if an image is a certain size.
As with the "cmp_image" function, the $got parameter can be either an instance of "GD::Image" or a file handle or a file path (all are
valid parameters to the "GD::Image" constructor).
height_ok ($got, $height, ?$message)
This function will check if an image is a certain height.
As with the "cmp_image" function, the $got parameter can be either an instance of "GD::Image" or a file handle or a file path (all are
valid parameters to the "GD::Image" constructor).
width_ok ($got, $width, ?$message)
This function will check if an image is a certain width.
As with the "cmp_image" function, the $got parameter can be either an instance of "GD::Image" or a file handle or a file path (all are
valid parameters to the "GD::Image" constructor).
TO DO
Add more functions
This module currently serves a very basic need of mine, however, I am sure as I start writing more tests against images I will find a
need for other testing functions. Any suggestions are welcome.
BUGS
None that I am aware of. Of course, if you find a bug, let me know, and I will be sure to fix it.
CODE COVERAGE
I use Devel::Cover to test the code coverage of my tests, below is the Devel::Cover report on this module test suite.
---------------------------- ------ ------ ------ ------ ------ ------ ------
File stmt bran cond sub pod time total
---------------------------- ------ ------ ------ ------ ------ ------ ------
Test/Image/GD.pm 100.0 91.7 63.6 100.0 100.0 100.0 93.7
---------------------------- ------ ------ ------ ------ ------ ------ ------
Total 100.0 91.7 63.6 100.0 100.0 100.0 93.7
---------------------------- ------ ------ ------ ------ ------ ------ ------
SEE ALSO
The "compare" function of "GD::Image" class, that is how this "cmp_image" is implemented.
AUTHOR
Stevan Little, <stevan@iinteractive.com>
COPYRIGHT AND LICENSE
Copyright 2005 by Infinity Interactive, Inc.
<http://www.iinteractive.com>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.1 2005-12-09 Test::Image::GD(3pm)