http://digitalpbk.blogspot.com/2007/03/auto-mounting-file-systems-in-linux.html
/hddCroot@localhost ]# mount -t vfat /dev/sda8 /mnt/hddCNTFSInstall ntfs-3g
module by yum install ntfs-3groot@localhost ]# mount -t ntfs-3g /dev/sda5 /mnt/hddD -o forceUnmounting the File System@localhost ~]$ suPassword: root@localhost ]# umount /dev/sda8Automatcially Mounting File Systems : To automatically mount certain file systems, so that we do not want to do the same procedure each time the computer starts, we have to edit the /etc/fstab file. To edit the same you must have root access. Assuming you have root access ...
Published 5 years, 1 month ago
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, 3 months ago
http://digitalpbk.com/code-ignitor/removing-indexphp-url
Removing index.php From URL in CodeIgniter
In Code Ignitor by default all URLs except the default home contains "index.php" by default in the URL, For example http://localhost/index.php/class/function.
In order to make the URLs "cleaner", we have to remove "index.php" from the URL. This is done using the mod_rewrite
module in apache to redirect all traffic to index.php/. The following code inside .htaccess does the redirection.
Code Igniter .htaccess Rules ...
Published 2 years, 2 months ago
http://digitalpbk.blogspot.com/2008/06/free-dataone-account-usage-checker-perl.html
: %s\n",$sl[$i],$sl[$i+5]);}$mech->get("../logout.jsp");InstallationOn LinuxCopy paste to a new file data1.plInstall WWW::Mechanize if not already installed.Download WWW-Mechanize-1.XX.tar.gzDo the following in a terminaltar -xvvf WWW-Mechanize-1.XX.tar.gzcd WWW-Mechanize-1.XXperl Makefile.PLmakesudo make installchmod 755 data1.plOn WindowsCopy paste to a new file data1.plGet Active Perl and install if PERL is not installed.Install
Module WWW::Mechanize.UsageLinux./data1.pl OptionsWindows, not TESTEDperl data1.pl OptionsPS : Comment `stty` lines when using ...
Published 3 years, 10 months ago
http://digitalpbk.blogspot.com/2008/06/ubuntu-compaq-presario-black-white-xorg.html
"Screen0" 0 0 Screen 1 "Screen1" RightOf "Screen0" InputDevice "Generic Keyboard" "CoreKeyboard" InputDevice "Configured Mouse" InputDevice "Synaptics Touchpad"EndSectionSection &
quot;Module" Load "glx"EndSectionSection "ServerFlags" Option "Xinerama" "0"EndSectionSection "InputDevice" Identifier "Generic Keyboard" ...
Published 3 years, 10 months ago
http://digitalpbk.blogspot.com/2007/01/extracting-embedded-album-art-in-mp3.html
the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all
modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include ...
Published 5 years, 4 months ago
http://digitalpbk.blogspot.com/2007/06/orkut-mass-scrapper-scrap-all-friends.html
Orkut Perl Script - Login, Scrapper and more
IntroThis is a PERL script that logs you into Orkut and allows you to scrap yiur friends. Following is the program and beneath it lies the manual to use the program. I assume that you already have PERL installed on your system with the required
modules:LWPWWW::MechanizeProgram#! /usr/bin/perl -wuse WWW::Mechanize;use HTTP::Cookies;use HTTP::Request::Common;use subs qw(print_c login logout home grab proces scrap);#autoflush STDOUT 1;printf ...
Published 4 years, 11 months ago