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/2007/04/introduction-to-php-part1.html
. There can be any number of PHP code segments in a file. Text outside the code segment is by default interpreted as HTML and send back to the browser as it is. The code within the segement is evaluated and executed and the output of the code replaces the The PHP code is executed and replaced in the server itself and no PHP source code is sent to the browser. Thus the HTML recieved by the browser is Today's dateTodays date is : Apr 22 2007 09:
15:00echo is something like the printf. It prints whatever ...
Published 4 years, 9 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/hardware/sony-vaio-cw-vpccw26fg-edid-extended-display-identification-data
1D 38 0B 00 00 20 20 20 20 20 00 00 48
This file is used by drivers to detect monitor capabilities. This file can be used in
linux Xorg.conf to detect this monitor, in case the monitor doesnt get detected as in the case of Sony Vaio CW on Ubuntu.
Attached is the binary format EDID file.
Sony Vaio
Software ...
Published 1 year, 10 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, 1 week 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, 11 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