10-10-2011
Have to agree with Yazu - Game of Thrones is absoluteley stunning. Can't all fantasy movies be like this series?!
The books are also very recommendable.
9 More Discussions You Might Find Interesting
1. OS X (Apple)
i Movie HD will not play sound from an imported movie :confused: (2 Replies)
Discussion started by: fgjiu
2 Replies
2. UNIX for Dummies Questions & Answers
i have process that was started few days ago , is there way to know by its id how long it was alive in the system ?
Thanks (2 Replies)
Discussion started by: umen
2 Replies
3. Shell Programming and Scripting
I have small question i should solve it (1 Reply)
Discussion started by: Ame
1 Replies
4. OS X (Apple)
hello,
I have installed on my MacBookPro Ubuntu via Boot Camp, but bootcamp has deletet that MacOS partion and created just one new and installed ubuntu.
Now I can not install MacOS 10 from the DVD, the gray screen comes when I use the "C" key during the boot process. it starts booting... (2 Replies)
Discussion started by: ingwio
2 Replies
5. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
2. Relevant commands, code, scripts, algorithms:
3. The attempts at a solution (include all... (2 Replies)
Discussion started by: jsk319342
2 Replies
6. What is on Your Mind?
So what is everyones all time favourite games console and why do you like it?
(Please - no comments on why they are better than others as that would be opinion based and cause arguments, positive comments only) (28 Replies)
Discussion started by: Tommyk
28 Replies
7. What is on Your Mind?
Hi all,
there have been a tremendous evolution in the computer games from games like Tetris or DAVE or Prince of Persia or wolf3d... to Call of Duty or BattleField or tomb raider etc etc
so let us know the games which you liked the most....
you can also mention about the gaming rig you... (32 Replies)
Discussion started by: vivek d r
32 Replies
8. Shell Programming and Scripting
Hallo Team,
I have thousands of lines and i would like to manilpute a pattern but i am getting an error:
File lo0ks like below:
... (5 Replies)
Discussion started by: kekanap
5 Replies
9. UNIX Desktop Questions & Answers
Most of the people think that they can not use Unix as desktop.
By this poll we gone tell them that we not just use Unix as desktop but also love different display managers like GNOME, KDE etc..... (35 Replies)
Discussion started by: ynilesh
35 Replies
LEARN ABOUT DEBIAN
class::dbi::pager
Class::DBI::Pager(3pm) User Contributed Perl Documentation Class::DBI::Pager(3pm)
NAME
Class::DBI::Pager - Pager utility for Class::DBI
SYNOPSIS
package CD;
use base qw(Class::DBI);
__PACKAGE__->set_db(...);
use Class::DBI::Pager; # just use it
# then, in client code!
package main;
use CD;
my $pager = CD->pager(20, 1); # ($items_per_page, $current_page)
my @disks = $pager->retrieve_all;
DESCRIPTION
Class::DBI::Pager is a plugin for Class::DBI, which glues Data::Page with Class::DBI. This module reduces your work a lot, for example when
you have to do something like:
* retrieve objects from a database
* display objects with 20 items per page
In addition, your work will be reduced more, when you use Template-Toolkit as your templating engine. See "EXAMPLE" for details.
EXAMPLE
# Controller: (MVC's C)
my $query = CGI->new;
my $template = Template->new;
my $pager = Film->pager(20, $query->param('page') || 1);
my $movies = $pager->retrieve_all;
$template->process($input, {
movies => $movies,
pager => $pager,
});
# View: (MVC's V)
Matched [% pager.total_entries %] items.
[% WHILE (movie = movies.next) %]
Title: [% movie.title | html %]
[% END %]
### navigation like: [1] [2] [3]
[% FOREACH num = [pager.first_page .. pager.last_page] %]
[% IF num == pager.current_page %][[% num %]]
[% ELSE %]<a href="display?page=[% num %]">[[% num %]]</a>[% END %]
[% END %]
### navigation like: prev 20 | next 20
[% IF pager.previous_page %]
<a href="display?page=[% pager.previous_page %]">
prev [% pager.entries_per_page %]</a> |
[% END %]
[% IF pager.next_page %]
<a href="display?page=[% pager.next_page %]">
next [% pager.entries_per_page %]</a>
[% END %]
NOTE
/ TODO
This modules internally retrieves itertors, then creates "Data::Page" object for paging utility. Using SQL clauses "LIMIT" and/or "OFFSET"
with "DBIx::Pager" might be more memory efficient.
AUTHOR
Tatsuhiko Miyagawa <miyagawa@bulknews.net>
Original idea by Tomohiro Ikebe <ikebe@cpan.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
Class::DBI, Data::Page
perl v5.10.0 2006-03-01 Class::DBI::Pager(3pm)