Tue, 22 Jan 2008 19:00:00 GMT
GNU/Linux inherits a tradition of small programs that do one thing very well. A modern example of this tradition is Alexandria, a dedicated book cataloger for GNOME. Although a few workarounds would make it almost as useful as KDE's Tellico for other collections, especially music, Alexandria's focus remains squarely on books and their organization by library, status, and ratings. Perhaps its closest analogy is the online LibraryThing, although Alexandria actually predates LibraryThing and is designed for private, desktop use.
hello
I am looking for book reference far Linux books that have information that is up to date.
Example:
Running Linux, O`Reilly, year 1995.
Or
Linux Administration, A beginners guide, 5`th ed, Mc Graw Hill Osbourn, year 2009.
Thank you (2 Replies)
Hi,
can someone give a recommendation for this book?
Oracle 11g For Dummies (For Dummies (Computers)): Amazon.de: Chris Zeis, Chris Ruel, Michael Wessler: Englische Bücher
I am absolulety new to Oracle and databases in general.
Would this be helpful or which one might be better?
... (1 Reply)
hi,
I'm searching for a perfect book to learn awk programming, i started with sed&awk book, but i think this book might be outdated as it is written way back in 97 and also it doesn't have many examples. So, I thought of getting some advice from the experts here. Pls suggest me some books.
... (1 Reply)
On the basic concepts of programming. I mean I am 100% self taught so I need a book to fix all my bad habits and misconceptions. I mean I want a solid book over the basics. Explains what an array is, a string, variable, stacks, and so forth.
I only know how to write code in shell,... (7 Replies)
I want to download larry wall's programming perl any edition book for free.
will anybody tell me the location or url where i can get this book. (3 Replies)
Hey friends Anyone tell me the best book for learning RHEL5 from basic to master including everything that we can do with microsoft windows and server.
Does anyone know any good institute for red hat linux server in delhi,india (1 Reply)
Hi All,
Can anybody worked on Alexandria backup tool. What are the versions are available? What are the platforms it support? Does it support solaris 9?
Please help me. Even if you can refer some URL it is great.
Charles C. (4 Replies)
Hi everybody
I a new one
And I have just wanted to research on Sun Solaris
So can you help me what e-book to read ( and if can you give me the
direct address to load )
Thks so much (3 Replies)
HTML::FormHandler::Manual::Testing(3pm) User Contributed Perl Documentation HTML::FormHandler::Manual::Testing(3pm)NAME
HTML::FormHandler::Manual::Testing - testing forms
VERSION
version 0.40013
SYNOPSIS
Manual Index
One of the big advantages of FormHandler compared to many other form packages is that you can test the same form that you use in your
controller.
DESCRIPTION
It's difficult to test forms that are instantiated in controllers with 'add_element' calls and from YAML, and that have no form class. It's
one of the reasons that 'dynamic' forms generated with a field_list aren't a good idea for anything except the simplest forms. If you have
a form class that contains everything that is needed for processing the form, it's really really easy to create tests for forms. Look in
the FormHandler 't' directory. It's full of tests for forms.
You can test that the validations work, that the database is getting updated correctly, even that the HTML that's being rendered is
correct. If something isn't working correctly, it's ten times easier to debug in a test case than sitting in a controller somewhere. And
when you finally start up your application and use the form, there should be very few surprises.
FormHandler provides a simple function to test whether the HTML output is correct, 'is_html' in HTML::FormHandler::Test, which uses
HTML::TreeBuilder. If you need to build forms that use the rendering code to produce particular output, it can be helpful.
Example
Here's an example of a test, originally copied from one of the DBIC model tests. But you should download the tar.gz or checkout the
distribution from github and browse through the tests.
use Test::More;
use lib 't/lib';
use_ok( 'BookDB::Form::Book');
use_ok( 'BookDB::Schema::DB');
my $schema = BookDB::Schema::DB->connect('dbi:SQLite:t/db/book.db');
ok($schema, 'get db schema');
my $form = BookDB::Form::Book->new(schema => $schema);
# This is munging up the equivalent of param data from a form
my $good = {
'title' => 'How to Test Perl Form Processors',
'author' => 'I.M. Author',
'genres' => [2, 4],
'format' => 2,
'isbn' => '123-02345-0502-2' ,
'publisher' => 'EreWhon Publishing',
};
ok( $form->process( params => $good ), 'Good data' );
my $book = $form->item;
END { $book->delete };
ok ($book, 'get book object from form');
my $num_genres = $book->genres->count;
is( $num_genres, 2, 'multiple select list updated ok');
is( $form->field('format')->value, 2, 'get value for format' );
my $bad_1 = {
notitle => 'not req',
silly_field => 4,
};
ok( !$form->process( $bad_1 ), 'bad 1' );
my $bad_2 = {
'title' => "Another Silly Test Book",
'author' => "C. Foolish",
'year' => '1590',
'pages' => 'too few',
'format' => '22',
};
ok( !$form->process( $bad_2 ), 'bad 2');
ok( $form->field('year')->has_errors, 'year has error' );
ok( $form->field('pages')->has_errors, 'pages has error' );
ok( !$form->field('author')->has_errors, 'author has no error' );
ok( $form->field('format')->has_errors, 'format has error' );
my $good = {
title => "Another Silly Test Book",
author => "C. Foolish",
year => 1999,
pages => 101,
format => 2
};
ok( $form->process($good), 'now form validates' );
done_testing;
AUTHOR
FormHandler Contributors - see HTML::FormHandler
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Gerda Shank.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.14.2 2012-06-25 HTML::FormHandler::Manual::Testing(3pm)