03 Jan, 2011
Perl read media file
Articles related to perl read media file
http://digitalpbk.blogspot.com/2009/07/perl-imagemagick-convert-jpeg-png-bmp.html
these in C
reading files uncompressing based on the extensions, compressing, write the encoders and do whole lot of "Reinventing the wheel" stuff. So I found this software called ImageMagick which already wrote the codes to do all these for you, and what more? It has a neat
Perl API so that you can do the fun stuff that you do on
perl on images. Now that's sweet. Hello WorldNow just check out this simple script to convert
files from one format to another.#!/usr/bin/
perl##usage:
perl im ...
Published 2 years, 10 months ago
http://digitalpbk.com/virus/brontok-manual-removal-steps-free-tool
Brontok Virus manual removal steps
The Brontok virus is a commonly occuring virus and is transmitted mainly through removable
Media drives such as Pen drives, Floppy Disks etc. Brontok appears in the form of a
File Folder, with similar icons and has the same name as its parent folder. People tend generally to open the folder which in turn executes the virus.
Read on to get rid of this virus.
Brontok Virus Symptoms, How to detect Brontok
In order to detect Brontok Virus on the system, watch ...
Published 2 years, 1 month ago
http://digitalpbk.com/javascript/free-light-small-social-media-sharing-javascript-facebook-twitter-stumble-upon-digg-and-r
page load slow as well as bring in unintentional 3rd party javascript code ( or flash tracker ) which runs on your blog.
So it is always safe to use your own script or scripts which you can
read understand and verify it just does what it is suppose to do. :)
Javascript Object for Social
Media Sharing
var share = {
fb:function(title,url) {
this.share('http://www.facebook.com/sharer.php?u=##URL##&t=##TITLE##',title,url);
},
tw ...
Published 2 years, 2 months ago
http://digitalpbk.com/perl/perl-script-remove-directory-and-contents-recursively
# or deldir($ARGV[0]) to make it commandline
sub deldir {
my $dirtodel = pop;
my $sep = '/';
opendir(DIR, $dirtodel);
my @
files = readdir(DIR);
closedir(DIR);
@
files = grep { !/^\.{1,2}/ } @
files;
@
files = map { $_ = "$dirtodel$sep$_"} @
files;
@
files = map { (-d $_)?deldir($_):unlink($_) } @
files;
rmdir($dirtodel);
}
The deldir sub routine recursively iterates and deletes all the
files and directories.
PERL
How to ...
Published 2 years, 5 months ago
http://digitalpbk.com/virus/gumblar-web-virus-manual-removal-free-tool
Gumblar Virus Javascript removal using
PERL
Gumblar virus infects all .html and .php
files and injects a piece of javascript in the source code. The code is usually found just below the <body> tag. The Javascript code Gumblar injects varies widely and usually attaches a script or inline frame inside your page to execute itself on page load.
Read on to get rid of this virus.
Gumblar Source Code Samples when delimited by new lines
Sample 1
var D;
if(D!='' ...
Published 2 years, 1 month ago
http://digitalpbk.blogspot.com/2009/07/perl-update-code-500-architecture.html
yum/apt-get update Breaks
Perl CPAN
Doing an yum update or apt-get update and upgrading your system might break the
PERL installation, the output I got while doing so: (after an update).[root@desktop]# cpancpan shell -- CPAN exploration and modules installation (v1.7602)
ReadLine support enabled cpan> install WWW::MechanizeCPAN: Storable loaded okGoing to
read /root ...
Published 2 years, 10 months ago
http://digitalpbk.com/perl/perl-script-check-google-pagerank
= WWW::Google::PageRank->new;
print scalar($pagerank->get($webpage)), "\n";
Usage of
Perl Script to check PageRank
./pagerank.pl http://digitalpbk.com
Getting Google Pagerank of Pages in Bulk
The following
PERL script can be used to get pageranks of pages in bulk. Just pass the filename which has URLs in each line and it would output the pageranks of those pages as a CSV.
#!/usr/bin/
perl
$
file = $ARGV[0];
use WWW::Google::PageRank;
my $pagerank = WWW::Google::PageRank->new;
sub trim($)
{
my ...
Published 2 years ago
http://digitalpbk.blogspot.com/2007/05/my-first-useful-perl-program.html
line argument you can get the same information of that account.How to use ?Check whether you have
Perl installed on your computer.Start a command prompt and type
perl -v, if the command is not found download and install
Perl.Copy the source code given above and paste it in a new
file say dstat.plRun the code by
perl dstat.pl. ...
Published 5 years ago
http://digitalpbk.blogspot.com/2007/06/perl-script-to-html-formatter_17.html
Perl Script to HTML formatter
IntroThis script converts a
Perl Script to HTML so that it looks good with colour code formatting for keywords and variables. This isn't yet completed and may contain bugs but I guess its worth posting. Anyone is free to modify and redistribute the code as long as the first line remains intact.Usageperl format.pl Script
File.plOutput will be saved as
ScriptFile.pl.htmlScriptstyle="color:#0ff">$cnt =~ s/&/&/g;$cnt =~ s ...
Published 4 years, 11 months ago
http://digitalpbk.blogspot.com/2008/05/bash-mp3-player-mpg123-sed-playlist.html
BASH Playlist handler and mpg123 interface
My First "somewhat" USeful BASH scriptThis small script scans your / directory and generates a playlist of mp3
files, and you can play your
file by ./juke . You will get a list of songs matching your criteria.InstallationCopy the source code,given below, to a new
file named juke# apt-get install mpg123$ chmod 755 juke$ ./juke westSample output and Controlsarun@XiO3:~/bash$ ./juke happy1 happy birthday2 Avril Lavigne - My Happy ...
Published 3 years, 11 months ago
Related help topics for perl read media file
More keywords like perl read media file
More pages for perl read media file