13 Aug, 2010
Perl script which fetches output from search api
Articles related to perl script which fetches output from search api
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, 6 months ago
http://digitalpbk.com/perl/script-fetch-pnr-status-reservation-train-indian-railways
Perl Script to
Fetch PNR Status reservation on train
from Indian Railways
The code below is a
perl script that
fetches the PNR status
from the indianrail.gov.in website and displays it on the command line.
Warning: No one is authorised to make any type of commercial usage like putting web advertisements or SMS service and Reproducing/Transmitting/Storing in its database, any content of www.indianrail.gov.in website, without prior written permission
from Indian Railways. Violators ...
Published 2 years 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 1 year, 9 months ago
http://digitalpbk.blogspot.com/2007/07/perl-email-forwarder.html
your email and extract relevant information.In order to send the contents of the email to a
PERL program we have to PIPE it to the program. PIPING is just redirection of standard
output of the mail receiving program to your custom
PERL script.Eg:"|perl /home/domain/scripts/process.pl"#!/usr/bin/perluse strict;my $Email = join '',;$Email // has your email contents ...
Published 4 years, 7 months ago
http://digitalpbk.blogspot.com/2006/12/introduction-to-xss-part-1.html
http://www.propmart.com/search/pm_IdSearch.asp?txtPropertyId=alert("xsjavascript:void(0)Publishs");It didn't work. To understand why it didn't work we gotta look at its source.This is how the rendered source (source that is
outputted with your code) looks. To find out whether your injection has worked, take the source and
search for your injected
script. In this case it was found here : Our
script did not work because it was encapsulated within a string. So to break it out , we add extra code so that the new url would become ...
Published 5 years, 1 month ago
http://digitalpbk.blogspot.com/2007/09/cpanel-v3-perl-include-inc.html
Perl - cPanel V3 and the @INC
Modifying @INC in a SCRIPTuse Module;is executed during compile time so if you modify the @INC array at run time it will not be reflected back in the compile time. So if you have to include any more include locations in the @INC inside a
script, give it inside the BEGIN { }block.BEGIN{ push @INC,"location";}The BEGIN blocks are executed during compile time. So @INC is updated at compile time and the use module are correctly
searched for in the updated ...
Published 4 years, 5 months ago
http://digitalpbk.com/apachesolr/apache-solr-mysql-sample-data-config
Apache Solr MySQL Sample Data Config
ApacheSolr is an indexing server
from apache. It is written in Java and can be used to make
search pages on your website. Most Websites use a MySQL database to store its data and standard MySQL
search using SQL or FULLTEXT
Searching by MySQL. But with ApacheSolr we can not only
search but also improve the
search results. Solr recognizes plurals and similar words like read, reading or A-DATA, adata etc. Therefore Solr returns more efficient
search results ...
Published 1 year, 11 months 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
ScriptFile.plOutput will be saved as
ScriptFile.pl.htmlScriptstyle="color:#0ff">$cnt =~ s/&/&/g;$cnt =~ s ...
Published 4 years, 7 months 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, 7 months ago
http://digitalpbk.com/php/file_get_contents-garbled-gzip-encoding-website-scraping
PHP file_get_contents giving garbled
output
Are you getting garbled values when using file_get_contents
fetching an external URL (website scrapping using php) and wondering what went wrong ? The content is appearing to have wierd characters instead of normal HTML
output because of GZIP
output encoding by the website you are
fetching.
You can fix this issue in multiple ways.
Method 1 : Accept-Encoding
In this method we set the request headers so that the webserver is forced to respond ...
Published 1 year, 11 months ago
Related help topics for perl script which fetches output from search api
More keywords like perl script which fetches output from search api
More pages for perl script which fetches output from search api