http://digitalpbk.blogspot.com/2007/11/unix-networking-sockets-tcp-transmitter.html
UNIX Networking : Sockets TCP Transmitter and Reciever
IntroNetworking in UNIX or
Linux is done with sockets. The following are 2 programs I made up. 1. Sends messages in TCP, Client2. Listens and Recieves messages from TCP, ServerTCP or Transmission Control Protocol is a 2way connection which is more like a stream or a pipe. Both the ends must be connected.The TransmitterReads messages from input and sends it to localhost:34000.To Setup a transmitter following must be done:1. Setup a port ...
Published 4 years, 3 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.Usage
Linux./data1.pl OptionsWindows, not TESTEDperl data1.pl OptionsPS : Comment `stty` lines when using ...
Published 3 years, 7 months ago
http://digitalpbk.blogspot.com/2008/07/dataone-hosting-site-my-computer-home.html
Hosting a Site at your Home using Dataone
IntroThis is just a timepass for anyone who would want to try making their home PC to a server. The details are for my BSNL Dataone Router WA300XXX, But you can do it on any router provided your ISP supports, it works for BSNL (Bharath Sanchar Nigam Limited, INDIA) (Hurray!) .So the first step is to setup apache, HTTP Server. I have covered this topic in my earlier post and doesnt want to repeatQuick install for
Linux/Debian way : sudo apt-get install ...
Published 3 years, 7 months ago
http://digitalpbk.com/google-app-engine/how-to-download-app-engine-code
.5 (Django is supported), JAVA and Google's own Google Go Programming language.
App engine is designed so that you don't require Unix /
Linux professionals to manage all your servers. As a developer you are independent to write and deploy the code without traffic management headache. Amazon EC2 is also one such service, but you still need some set up with load balancers initially.
Install the Google App Engine SDK
If you already do not have the SDK you should download the SDK as Google App ...
Published 3 months, 2 weeks ago
http://digitalpbk.blogspot.com/2008/03/tracert-program-windows-trace-path.html
complete.It shows that the request went through 19 systems to reach google.. phew!! :)Have fun :)
Linux should also have one ? can anyone comment on that ? ...
Published 3 years, 10 months ago
http://digitalpbk.com/linux/automate-rsync-passwordless-daemon-rsyncd-conf-cron
as the secret file discussed in server configuration.
Thus running this would sync Alternatively adding this command on a cron job could help you sync periodically.
192.168.1.1:/var/www/images to 192.168.1.X:/var/www/images
Happy Syncing...
:)
Linux
Software ...
Published 1 year, 12 months ago
http://digitalpbk.blogspot.com/2006/11/about-hosts-file.html
About "HOSTS" File
Warning: Backup the file before playing with it!What does this file do?The HOSTS file found on Windows (and
linux too) is like a local DNS (domain name server). When you type a url on the browsers address bar, the domain name is converted to the IP of the server by a DNS lookup by the browser. Now here is the catch ... Windows first looks at the HOSTS file before doing any DNS lookup. So we can block certain sites by editing the HOSTS file. Where is it ? I dont see ...
Published 5 years, 2 months ago
http://digitalpbk.blogspot.com/2009/01/code-libjpeg-converting-jpeg-to-bmp.html
C Code to convert JPEG to BMP in
LINUX using libjpeg
IntroThe following code converts JPEG file into BMP file. The code requires the libjpeg library. The following code is a good example of how to use the libjpeg library. (it compiles). Code converts colour jpeg to 24bit BITMAP.Code : jpeg2bmp.c#include #include #include #include /* we will be using this uninitialized pointer later to store raw, uncompressd image */unsigned char *raw_image = NULL;/* dimensions of the image we want to write ...
Published 3 years ago
http://digitalpbk.blogspot.com/2007/06/orkut-mass-scrapper-scrap-all-friends.html
print "\nLogin? [y] : "; $com=;chomp $com; if(not($com eq "n")) { login; goto SCRAPNEXT; } else { return; } sleep(3); goto SCRAPNEXT; } if($cnt =~ m/"POST_TOKEN" value="(.*?)"/){ $post_token = $1;}#print $post_token," "; if($cnt =~ m/"signature" value="(.*?)"/){ $signature=$1;}#print $signature; sleep(3); for($i=3;$i>=0;$i--) { printf( "%-60s","POST scrap");
#$mech->agent_alias("Linux ...
Published 4 years, 7 months ago