Sponsored Content
Full Discussion: My Work Is Like This Movie!
The Lounge What is on Your Mind? My Work Is Like This Movie! Post 302144989 by bakunin on Monday 12th of November 2007 07:45:06 AM
Old 11-12-2007
The closest was Jack Nicholsons masterpiece "One flew over the cuckoos nest", left to my own i would have picked "Casablanca". My work is like that - the only difference is that compared to my work the film has a much happier end. ;-))

Shakespeare described it best in his Hamlet-monologue, hence the film version by Kenneth Brannagh would be suitable:

For who would bear the whips and scorns of time,
Th' oppressor's wrong, the proud man's contumely
The pangs of despised love, the law's delay,
The insolence of office, and the spurns
That patient merit of th' unworthy takes,

When he himself might his quietus make
With a bare bodkin? ...


bakunin
 

6 More Discussions You Might Find Interesting

1. OS X (Apple)

i Movie HD

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

Script doesn't work, but commands inside work

Howdie everyone... I have a shell script RemoveFiles.sh Inside this file, it only has two commands as below: rm -f ../../reportToday/temp/* rm -f ../../report/* My problem is that when i execute this script, nothing happened. Files remained unremoved. I don't see any error message as it... (2 Replies)
Discussion started by: cheongww
2 Replies

3. UNIX for Dummies Questions & Answers

Movie file help

I have a movie i'm trying to watch using the vlc player but it says it's a unix executable file that can't be played. Help?! (2 Replies)
Discussion started by: sunshine210
2 Replies

4. What is on Your Mind?

How to make a movie like a pro...

Hi All, I am in the process of shooting home made movie, I need to do lot of editing. What is the best software for this? I have seen few free but there is always some kind of limit as to what you can do. I don't mind paying $100 or $150 to buy the software. I am using Canon Digital... (0 Replies)
Discussion started by: samnyc
0 Replies

5. Shell Programming and Scripting

My script work on Linux but not work in sunos.

My script work on Linux but not work in sun os. my script. logFiles="sentLog1.log sentLog2.log" intial_time="0 0" logLocation="/usr/local/tomcat/logs/" sleepTime=600 failMessage=":: $(tput bold)Log not update$(tput rmso) = " successMessage="OK" arr=($logFiles)... (7 Replies)
Discussion started by: ooilinlove
7 Replies

6. IP Networking

Discussion at work, would a router work pluging a cable in wan1 and lan1?

hi all. and sorry for the random question, but this sparkled a raging flame-war at work and i want more points of view situation a router, with linux of some sort, dhcp client requesting for ip in wan1 (as usual with wan ports) dhcp server listening in lan1, and assigning ip (as usual... (9 Replies)
Discussion started by: broli
9 Replies
Class::DBI::FromCGI(3pm)				User Contributed Perl Documentation				  Class::DBI::FromCGI(3pm)

NAME
Class::DBI::FromCGI - Update Class::DBI data using CGI::Untaint SYNOPSIS
package Film; use Class::DBI::FromCGI; use base 'Class::DBI'; # set up as any other Class::DBI class. __PACKAGE__->untaint_columns( printable => [qw/Title Director/], integer => [qw/DomesticGross NumExplodingSheep/], date => [qw/OpeningDate/], ); # Later on, over in another package ... my $h = CGI::Untaint->new( ... ); my $film = Film->retrieve('Godfather II'); $film->update_from_cgi($h); my $new_film = Film->create_from_cgi($h); if (my %errors = $film->cgi_update_errors) { while (my ($field, $problem) = each %errors) { warn "Problem with $field: $problem "; } } # or $film->update_from_cgi($h => @columns_to_update); # or $film->update_from_cgi($h => { ignore => @cols_to_ignore, required => @cols_needed, all => @columns_which_may_be_empty }); my $how = $film->untaint_type('Title'); # printable DESCRIPTION
Lots of times, Class::DBI is used in web-based applications. (In fact, coupled with a templating system that allows you to pass objects, such as Template::Toolkit, Class::DBI is very much your friend for these.) And, as we all know, one of the most irritating things about writing web-based applications is the monotony of writing much of the same stuff over and over again. And, where there's monotony there's a tendency to skip over stuff that we all know is really important, but is a pain to write - like Taint Checking and sensible input validation. (Especially as we can still show a 'working' application without it!). So, we now have CGI::Untaint to take care of a lot of that for us. It so happens that CGI::Untaint also plays well with Class::DBI. Class::DBI::FromCGI is a little wrapper that ties these two together. METHODS
untaint_columns All you need to do is to 'use Class::DBI::FromCGI' in your class (or in your local Class::DBI subclass that all your other classes inherit from. You do do that, don't you?). Then, in each class in which you want to use this, you declare how you want to untaint each column: __PACKAGE__->untaint_columns( printable => [qw/Title Director/], integer => [qw/DomesticGross NumExplodingSheep/], date => [qw/OpeningDate/], ); (where the keys are the CGI::Untaint package to be used, and the values a listref of the relevant columns). update_from_cgi When you want to update based on the values coming in from a web-based form, you just call: $obj->update_from_cgi($h => @columns_to_update); If every value passed in gets through the CGI::Untaint process, the object will be updated (but not committed, in case you want to do anything else with it). Otherwise the update will fail (there are no partial updates), and $obj->cgi_update_errors will tell you what went wrong (as a hash of problem field => error from CGI::Untaint). create_from_cgi Similarly, if you wish to create a new object, then you can call: my $obj = Class->create_from_cgi($h => @columns_to_update); If this fails, $obj will be a defined object, containing the errors, as with an update, but will not contain the values submitted, nor have been written to the database. untaint_type my $how = $film->untaint_type('Title'); # printable This tells you how we're going to untaint a given column. cgi_update_errors if (my %errors = $film->cgi_update_errors) { while (my ($field, $problem) = each %errors) { warn "Problem with $field: $problem "; } } This returns a hash of any errors when updating. Despite its name it also applies when inserting. Column Auto-Detection As Class::DBI knows all its columns, you don't even have to say what columns you're interested in, unless it's a subset, as we can auto- fill these: $obj->update_from_cgi($h); You can also specify columns which must be present, or columns to be ignored even if they are present: $film->update_from_cgi($h => { all => @all_columns, # auto-filled if left blank ignore => @cols_to_ignore, required => @cols_needed, }); Doesn't this all make your life so much easier? NOTE
Don't try to update the value of your primary key. Class::DBI doesn't like that. If you try to do this it will be silently skipped. ANOTHER NOTE
If you haven't set up any 'untaint_column' information for a column which you later attempt to untaint, then we try to call $self->column_type to ascertain the default handler to use. Currently this will only use if you're using Class::DBI::mysql, and only for certain column types. SEE ALSO
Class::DBI. CGI::Untaint. Template. AUTHOR
Tony Bowden BUGS and QUERIES Please direct all correspondence regarding this module to: bug-Class-DBI-FromCGI@rt.cpan.org COPYRIGHT
Copyright (C) 2001-2005 Kasei. All rights reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.0 2005-10-04 Class::DBI::FromCGI(3pm)
All times are GMT -4. The time now is 09:33 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy