Showing posts with label assignment. Show all posts
Showing posts with label assignment. Show all posts

Monday, August 8, 2011

OpenCV material

http://en.wikipedia.org/wiki/Blob_extraction
http://www.neuroforge.co.uk/index.php/binary-images-with-opencv
http://opencv.willowgarage.com/documentation/python/histograms.html#createhist

Monday, May 23, 2011

perl send email cgi

Lots of tutorials about sending email with perl depend on some uncommon libs.
There is a common way to do so:

use Net::SMTP::SSL;


sub send_mail {
    my $to      = $_[0];
    my $subject = $_[1];
    my $body    = $_[2];

perl session cgi

http://search.cpan.org/dist/CGI-Session/lib/CGI/Session/Tutorial.pm


$session = CGI::Session->load() or die CGI::Session->errstr;
if ( $session->is_expired ) {
    die "Your session expired. Please refresh your browser to re-start your session";
}
if ( $session->is_empty ) {
    $session = $session->new();
}


print $session->header();

#save into session
$session->param('username',$username);

#read from session
$variable = $session->param('username');

Wednesday, September 8, 2010

Gonna Sleep

Java is Powerful. I am not efficiency in writing java code, but that's all right.Finish it tomorrow!