http://digitalpbk.blogspot.com/2006/11/network-traffic-calculator-using-vc-6.html
.hCursor = LoadCursor(NULL,IDC_ARROW); wc.hbrBackground = (HBRUSH)GetStockObject(BLACK_BRUSH); wc.lpszMenuName = NULL; wc.lpszClassName = szAppName; RegisterClass(&amb;wc); } /*gets network
addresses*/ char localaddr[5][17]; if(getInterfaceList(localaddr,5)) return 1; char szTitle[100]="Traffic Calc on "; strcat(szTitle,localaddr[0]); /*window creation hwnd = CreateWindowEx(WS_EX_TOOLWINDOW|WS_EX_TOPMOST,szAppName,szTitle,WS_SYSMENU,CW_USEDEFAULT,CW_USEDEFAULT,240,40,NULL ...
Published 5 years, 5 months ago
http://digitalpbk.com/perl/script-fetch-pnr-status-reservation-train-indian-railways
,3);
$part2 = substr($pnr,3);
print " Fetching for PNR $part1-$part2 \n\n";
$mech->submit_form(
form_number => 1,
fields => {
lccp_pnrno1 => $part1,
lccp_pnrno2 => $part2,
}
);
$content = $mech->response->content;
$content =~ s|(.*?)|$1|si;
$content =~ s|||sig;
if($content =~ m|(Passenger [1-6].*?)Chart|sig) {
print $1;
}
PERL
Software ...
Published 2 years, 3 months ago
http://digitalpbk.com/code-ignitor/removing-indexphp-url
"No input file specified." error on all pages, (such as on Dreamhost hosting), the error can be resolved by changing the Htaccess rules to
RewriteEngine on
# Rewrite URLs of the form 'x' to the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*)$ index.php?/$1 [L,QSA]
:)
PHP
Code Igniter
Software ...
Published 2 years, 2 months ago
http://digitalpbk.com/perl/solve-netmysql-hang-problem-if-database-result-has-only-1-row-or-empty
the following function to replace the MySQL.pm function : _has_next_packet.
sub _has_next_packet
{
my $self = shift;
return (substr($_[0], -5) ne "\xfe\0\0\x02\x00" and substr($_[0], -5) ne "\xfe\0\0\x22\x00");
}
Now the script with Net::MySQL module should not hang :)
PERL
MySQL
Software ...
Published 2 years, 1 month 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 2 years, 1 month ago
http://digitalpbk.com/stock/google-finance-get-stock-quote-realtime
every 30 seconds.
Meanwhile all ye mates try something interesting with the stock quotes
(Than making profits and losses :) )
Dont forget to ping me on your updates. Post a comment.
Thank you Google.
Google
Python
Finance
Software ...
Published 1 year, 1 month ago
http://digitalpbk.com/apachesolr/apache-solr-mysql-sample-data-config
If you get this problem when SOLR says none of them are indexed, Then your input data did not have one more required columns specified in the fields in schema.xml.
Recheck your SQL and provide all required fields, or make them optional or remove them.
Laptop
TV
Software ...
Published 2 years, 2 months ago
http://digitalpbk.blogspot.com/2009/04/jwgkvsqvmx-conficker-virus-manual.html
Conficker disables the Background Intelligent Transfer Service (BITS) and Windows Automatic Updates. So If you find these services disabled, be alert. (To checkout what services are running and their statuses Run > services.msc.Follow these steps to detect and remove Conficker virus:Run regedit.exe registry editorGoto HKEY_LOCAL_MACHINE\
Software\Microsoft\WindowsNT\CurrentVersion\SvcHost\netsvcsDouble click the key to see if there is a random value at its end.Note the "zbtthjd" at the end ...
Published 3 years, 1 month ago
http://digitalpbk.com/perl-sms/perl-script-send-free-sms-any-mobile-number-india-using-way2sms
;
#EOF
Usage
./sms.pl mobile number "message"
Example:
./sms.pl 9000012345 "Hey there does this work?"
Happy SMSing.
Warning
This script is not affiliated or has anything to do with Way2Sms.com. This piece of code is provided AS IS without any warranty. Usage of this script is solely upto you. WAY2SMS will not be happy about you using this script skipping their ads.
:)
PERL
SMS
Software ...
Published 2 years, 5 months ago
http://digitalpbk.com/perl/install-modules-unrecognized-command-line-option-fstack-protector
, everything should be fine. :)
PERL
Cygwin
Software ...
Published 2 years, 1 month ago