14 Aug, 2010

Asynchronous mechanize

Articles related to asynchronous mechanize

Make WWW::Mechanize do not exit on GET Errors

http://digitalpbk.com/perl/wwwmechanize-error-geting-premature-do-not-exit-resume Make WWW::Mechanize do not exit on GET Errors When using PERL and WWW::Mechanize, your script can stop if there is some error in GETing a URL (such as 404 Not Found, 403 Permission Denied). Instead of resuming, the script terminates. If you want the script to continue resuming, you have to pass autocheck => 0 in the Mechanize class constructor as shown below my $mech = WWW::Mechanize->new(autocheck => 0); This makes sure that the mechanize library does not check for errors ...
Published 1 year, 11 months ago

Asynchronous Reading from Input

http://digitalpbk.blogspot.com/2007/11/kbhit-asynchronous-read-linux-fdzero.html Asynchronous Reading from Input IntroNormal working of a C program taking an input is done via the scanf method. The problem in scanf is that when we invoke scanf it waits until we input something i.e, our program is waiting for the user input. This valuable time could be used for processing other things. Let us consider an example of a chat client made using C. When we want to send some message we type them and send. In all other cases it is required that the chat client listens for incoming ...
Published 4 years, 2 months ago

Perl Script to Fetch PNR Status reservation on train from Indian Railways

http://digitalpbk.com/perl/script-fetch-pnr-status-reservation-train-indian-railways the code below. Requires: WWW::Mechanize module and PERL. Usage: ./pnr.pl <PNR NUMBER> EDIT: The Railways have changed their interface, so the script also have changed. New Script #!/usr/bin/perl use WWW::Mechanize; my $mech = WWW::Mechanize->new(); $pnr = $ARGV[0]; $mech->get("http://www.indianrail.gov.in/pnr_Enq.html"); $part1 = substr($pnr,0,3); $part2 = substr($pnr,3); print " Fetching for PNR $part1-$part2 \n\n"; $mech->submit_form( ...
Published 2 years ago

Dataone Account Usage Checker in PERL

http://digitalpbk.blogspot.com/2008/06/free-dataone-account-usage-checker-perl.html Dataone Account Usage Checker in PERL The following Script in PERL is a Dataone account usage checker.#!/usr/bin/perl# http://digitalpbk.blogspot.com/2008/06/free-dataone-account-usage-checker-perl.htmluse WWW::Mechanize;use HTTP::Cookies;use HTTP::Request::Common;my $verbose = 0;my $username;my $password;my $url="http://10.240.64.195/weblogin.jsp";for(my $i=0;$i{ if($ARGV[$i] eq "-v" or $ARGV[$i] eq "--verbose"){ $verbose = 1; } elsif($ARGV[$i] eq "-u" ...
Published 3 years, 7 months ago

ARP Spoofing or IP Masquerade

http://digitalpbk.blogspot.com/2009/02/arp-spoofin-ip-masquerade.html ARP Spoofing or IP Masquerade What is IP Masquerade or ARP Spoofing?In order to understand, What IP Masquerading or ARP Spoofing is we need to look into the working of the Ethernet. Ethernet is a Data Link Layer protocol, which uses MAC addresses embedded in the network interface cards (NICs) to communicate between devices. But the network layer and the above layer communicates using IP addresses. So in order to communicate, there must be some mechanism to map the IP addresses in network layer ...
Published 2 years, 12 months ago

Perl Script to send Free SMS to any mobile number in INDIA using way2sms

http://digitalpbk.com/perl-sms/perl-script-send-free-sms-any-mobile-number-india-using-way2sms Perl Script to send Free SMS to any mobile number in INDIA using way2sms The following script sends SMS to any number in INDIA using the free service provided by Way2Sms.com Requires WWW::Mechanize and Compress::Zlib libraries. Please remember to fill the username and password in the fields that is mentioned in the script. Updated code on 28th October 2011. If you face errors use the new script. #!/usr/bin/perl use WWW::Mechanize; use Compress::Zlib; my $mech ...
Published 2 years, 2 months ago

Perl Script to Login to Orkut

http://digitalpbk.blogspot.com/2007/05/perl-script-to-login-to-orkut.html and GET the redirect page URLGoto the redirect pageGoto Orkut.com/home.aspxYour done.Note:Tested on Linux (FC6, Perl 5.8.8)The following script is for linux, Will run on Windows too but the ANSI coloring may not work...Windows Program is given below the program for Linux (without ANSI coloring).For Linux (with ANSI coloring)use WWW::Mechanize;use HTTP::Cookies;use HTTP::Request::Common;$cj=HTTP::Cookies->new(file => "cookie.jar",autosave=>1,ignore_discard=>1);$mech ...
Published 4 years, 9 months ago

Which is better - Intel core 2 duo or dual core?

http://digitalpbk.com/intel-core/intel-core-2-duo-vs-dual-core-which-better Which is better - Intel core 2 duo or dual core? mechanism uses two cores on a single chip. Dual Core is a major architecture and Core 2 Duo is an improvement over making the architecture more efficient. Performance Core 2 Duo has better performance than dual-core processors in almost all the benchmark tests. Dual Core: The best performer of all Pentium processors of the previous series, but not better than Core 2 Duo. Core 2 Duo is a clear winner. Thermal Product Core 2 Duo ...
Published 1 year, 5 months ago

yum/apt-get update Breaks Perl CPAN

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

Drag 'n Drop Files from explorer to VB

http://digitalpbk.blogspot.com/2006/12/drag-n-drop-files-from-explorer-to-vb.html Drag 'n Drop Files from explorer to VB IntroductionThis piece of code allows to make programs in Visual Basic 6, to have a drag and drop support of files directly from the folders. This is an alternative to the old File Open mechanism. This is way cooler...Code tested on Windows XP and on Visual Basic 6. Any information about other versions of windows or vb? Leave a comment...DownloadDownload the code from planet source code.The CodeThe main part of the code is the module, here ...
Published 5 years, 1 month ago

Related help topics for asynchronous mechanize More keywords like asynchronous mechanize
More pages for asynchronous mechanize


Email Newsletter
Email:
Popular Posts
Recent Posts
Tags
Random photo
Elephant Beach at Havelock Island Elephant Beach at Havelock Island in Havelock Island Andaman
On Facebook
Recent Comments


digitalpbk