http://digitalpbk.blogspot.com/2006/11/network-traffic-calculator-using-vc-6.html
= WSAIoctl(s,0x98000001,&lnInpBufr;,sizeof(long),&lnOutBufr;,sizeof(long),&retd;,NULL,NULL); if(err) { if(s>0)closesocket(s); return INVALID_SOCKET; } err = WSAAsyncSelect(s,hwnd,0x401,FD_READ); if(err) { if(s>0)closesocket(s); return INVALID_SOCKET; } return s;}Dont know what to do with the
code?Take VC++ 6,File > New, In Projects tab, new Win32 Application, give a name also like "trafficcalc",Choose empty project.Next File > New, In Files tab, take C++ source file, give filename "main.cpp"repeat the step for filename "winsocks.cpp"Copy ...
Published 5 years, 5 months ago
http://digitalpbk.blogspot.com/2009/07/perl-update-code-500-architecture.html
upgrade while we are running...CPAN: LWP::UserAgent loaded okFetching with LWP: ftp://ftp.jaist.ac.jp/pub/CPAN/modules/03modlist.data.gzLWP failed with
code[500] message[Errno architecture (i386-linux-thread-multi-2.6.18-53.1.14.el5pae) does not match executable architecture (i386-linux-thread-multi-2.6.18-53.el5) at /usr/lib/perl5/site_perl/5.8.8/Errno.pm line 11.Compilation failed in require at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/IO/Socket.pm line 17.BEGIN failed--compilation aborted ...
Published 2 years, 10 months ago
http://digitalpbk.blogspot.com/2007/10/xpm-file-format.html
XPM File format
IntroXPM or XPixMap is a bitmap format in unix based systems. It is a relatively easy format to understand, XPM files have a format similar to a C source
code of a string array./* XPM */static char * var name[] = {"","","" //etc....};The first line is XPM in standard C comments. Second is an array declaration with a valid token as variable name.The array index 0 [0] : contains the following %d %d %d %d [%d %d] [%d]which are : Width ...
Published 4 years, 7 months ago
http://digitalpbk.blogspot.com/2007/07/captcha-what.html
only moderately secure (ie Keeps the kids away)Now on the checking part the users text is passed through the same hashing function and top-secret function. Then the cookie value and the newly calculated value is compared to catch the bot ;)....A disadvantage of using CAPTCHA is for the visually challenged people. People with unclear eyesights colour blindness etc may face a problem in reading the CAPTCHA
code. So the other CAPTCHA method is to use an AUDIO file, an MP3 instead of a JPEG or PNG ...
Published 4 years, 10 months ago
http://digitalpbk.blogspot.com/2006/11/fun-with-unicode-and-mirroring.html
. Get a browser like firefox that supports unicode.Want the mirroring character?The mirroring character cannot be seen and I couldnot find the HEX or Numeric
Code. If anyone has found out leave a comment.The mirroring character is within these braces (( Inorder to get the mirroring character, try copying the content between the braces and paste it somewhere to see the magic! ...What can it be used for?http://www.mysite.com/fol/file.html?site/moc.elgoog.www://ptthSuppose you paste a link like ...
Published 5 years, 6 months ago
http://digitalpbk.blogspot.com/2007/05/perl-script-to-login-to-orkut.html
LWP;WWW::Mechanize;DescriptionScript that logs you into orkut, It has its own Fail-retry methods and all the action is presented neatly in the terminal, using color
codes (ANSI Escape sequences for LINUX)There is more of this script currently in the beta version, for mass scrapping etc. For more information about the beta
codes, leave your email as a comment.Bugs ?Please do let me know the bugs , so that i can update the script here...It works for me... Did it work for you? Let me know... (else I may think this is all crap!) Happy ...
Published 5 years ago
http://digitalpbk.blogspot.com/2008/05/bash-mp3-player-mpg123-sed-playlist.html
BASH Playlist handler and mpg123 interface
My First "somewhat" USeful BASH scriptThis small script scans your / directory and generates a playlist of mp3 files, and you can play your file by ./juke . You will get a list of songs matching your criteria.InstallationCopy the source
code,given below, to a new file named juke# apt-get install mpg123$ chmod 755 juke$ ./juke westSample output and Controlsarun@XiO3:~/bash$ ./juke happy1 happy birthday2 Avril Lavigne - My Happy ...
Published 3 years, 11 months ago
http://digitalpbk.com/windows-gadgets/how-make-windows-gadget-windows-7
.
true
Full
The above
code is almost self explanatory, but I will explain some of the important parts of it.
autoscaleDPI : For enablng automatic zooming of images in the widget
base : The src attribute deteremines the main HTML file that is shown when the widget is added to the desktop.
defaultImage : The image choosing the icon that is shown in the gadget selection ...
Published 1 year, 6 months ago
http://digitalpbk.blogspot.com/2007/06/orkut-mass-scrapper-scrap-all-friends.html
Published 4 years, 11 months ago