http://digitalpbk.blogspot.com/2006/12/ascii-art-tiger.html
ASCII
Art - Tiger
:::''':I":::"::::''....... ..'.... ...''.'.. . . .............':::::"IIIHHI"":'::''.'':":"::::"::.. .... . .... ...''.''.. . ..'.'.''''.'':":::"IIIIIII":'.:''...':::"::'::"'. ...
Published 5 years, 5 months ago
http://digitalpbk.blogspot.com/2007/06/perl-script-to-html-formatter_17.html
Perl Script to HTML formatter
IntroThis script converts a Perl Script to HTML so that it looks good with colour code formatting for keywords and variables. This isn't yet completed and may contain bugs but I guess its worth posting. Anyone is free to modify and redistribute the code as long as the first
line remains intact.Usageperl format.pl ScriptFile.plOutput will be saved as ScriptFile.pl.htmlScriptstyle="color:#0ff">$cnt =~ s/&/&/g;$cnt =~ s ...
Published 4 years, 11 months ago
http://digitalpbk.com/debian/xorg-1.11-screen-lock-bypass
. However the latest version of Ubuntu seems to be unaffected by this bug.
How to fix ?
The version 1.11.3 of X-org seems to not have this bug. So doing an update would just fix it.
apt-get update xorg
Linux
Software ...
Published 3 months, 4 weeks ago
http://digitalpbk.com/mysql/select-random-rows-table
Select random rows
from a table in MySQL
In order to select a random row
from MySQL, we can order the rows by a random number and then pick the first row.
SELECT *
FROM node ORDER BY rand() limit 1;
The above query randomly selects a row
from the table node.
MySQL
Software ...
Published 2 years ago
http://digitalpbk.com/python/php-sprintf-function-in-python
Sprintf Function in Python
The printf or sprintf function is used to format strings in PHP and C programming constructs. sprintf in php returns the formatted string whereas printf just prints the output.
$variable = sprintf("%d %s %d = %d",4,"+",5,9);
print $variable;
//OR
printf("%d %s %d = %d",4,"+",5,9);
//Both
lines are identical.
//Prints 4 + 5 = 9
On python, sprintf is handled using an operator instead of function. The % operator on a string ...
Published 2 years, 1 month ago
http://digitalpbk.blogspot.com/2009/05/orkut-youtube-facebook-blocked-ssh.html
Orkut YouTube Facebook etc Blocked ?? Follow this guide to Unblock
Blocked ??!!!Most of you may be out there to desparately find out how to unblock all these social networking sites. The solution is to use a proxy. You can use proxy sites available all over the internet, or set up your on SSH proxy if you have an SSH server. Setting up an SSH server is easy. If you have a machine at home, install any
linux distribution with SSH server enabled. Now grab hold of your Home machine IP address ...
Published 2 years, 12 months ago
http://digitalpbk.com/interview-questions/create-24-using-addition-subtraction-multiplication-and-division-3-3-8-8
Create 24 using Addition Subtraction Multiplication and Division
from 3 3 8 8
None
8 / (3 - 8 / 3) = 24
Interview Questions ...
Published 2 years, 2 months ago
http://digitalpbk.blogspot.com/2007/01/making-subdomains-on-localhost.html
me know.)StepsFirst decide on the subdomain names... for eg: sub.localhost, sub2.localhost, alt.localhost , images.localhost etc..You can also name www.name.com. (Please note that if there is a site with that name on the net, you wont be able to access that site on the internet.)Second making these sites to point to 127.0.0.1, for this you can edit the HOSTS file on windows. See this about the HOSTS file.Now add to HOSTS
line 127.0.0.1 hostnameEgs:127.0.0.1 sub.localhost127.0.0.1 sub1.localhost ...
Published 5 years, 4 months ago
http://digitalpbk.blogspot.com/2009/05/compaq-presario-v3000-wifi-problem.html
Acer Aspire 4520 vs Compaq Presario V3000AU : A wifi comparison
IntroThis is a first hand comparison between the wireless adapter performance between the Compaq Presario V3000/3155AU and an Acer Aspire 4520.The testThe test I did is to ping the local wireless router / access point.ping 10.0.0.1 -n 100These is the result of Acer AspireReply
from 10.0.0.1: bytes=32 time=1ms TTL=64Reply
from 10.0.0.1: bytes=32 time=1ms TTL=64Reply
from 10.0.0.1: bytes=32 time=1ms TTL=64Reply
from 10.0.0.1: bytes ...
Published 3 years ago
http://digitalpbk.blogspot.com/2009/03/earth-hour-march-28th-0830-0930.html
Earth Hour March 28th 0830-0930
Switch off the lights for one hour
from 0830-0930.Its time for us to act and reflect upon. Global Warming vs Earth. ...
Published 3 years, 1 month ago