Net::MySQL is a simple MySQL perl Client to connect to MySQL servers. But Net::MySQL hangs if your result set is having just one row.
$mysql = Net::MySQL->new(
hostname => 'localhost',
database => 'db',
user => 'user',
password = … read on
Windows 7 file attributes and earlier versions of windows such as XP or 98 is very different. The difference is notable if you use NTFS file system which has more security features.
On Windows 7 if you get "Write Permission Denied" on any file , …read on
By default on Windows 7, the computer sleeps after 30 minutes. Usually power plans and options are more required on laptops, but desktops also do use this setting. This is bad if you want to run some process which has to run for a long …read on
Social Media Buttons or buttons that help you share the content on bookmarking websites such as Stumble Upon, Reddit or Digg or social networking Websites such as Facebook or Twitter. Adding the buttons helps you to expose your content to a broader audience.
There are …read on
unrecognized command line option "-fstack-protector" error usually comes on Cygwin when installing PERL modules. For example when installing the DBI module or DBD::MySQL perl module, the following error comes on cygwin :
cp lib/DBI/Gofer/Serializer/Base.pm blib/lib/DBI/Gofer/Serializer/Base.pm
cp dbipport.h blib/arch/auto/DBI/dbipport.h
cp lib/DBI/Gofer/Execute.pm blib/lib/DBI/Gofer/Execute.pm
cp lib/DBI/DBD.pm blib/lib/DBI/DBD.pm
cp … read on
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);
printf("%d %s %d = %d",4,"+",5,9);
Two finger flick is a gesture that is used to move forward and backword in applications such as photo viewer software or a browser. This is a feature similar to the one available in Mac which is two touch scrolling. This post describers how to …read on
Warning: Cannot modify header information - headers already sent by somefile.php (output started at somefile.php:###) in somefile.php on line ###
This Warning is shown by PHP when you use the header function to output headers or use the setcookie function to set cookies after … read on
Most of us (atleast those who learned computer networking) grew up learning about the 7 layers of OSI ISO model or the simple 4 layer model. The lowest layer is the physical layer. In this layer all machines are assigned an address called the MAC …read on
In Code Ignitor by default all URLs except the default home contains "index.php" by default in the URL, For example http://localhost/index.php/class/function.
In order to make the URLs "cleaner", we have to remove "index.php" from the URL. This is done using the mod_rewrite module in apache …read on
On Windows 7, I was trying to edit the host file using Komodo and was getting Permission Denied, and tried notepad too still got permission denied. I thought initially it was McAfee Anti Virus that was disabling the edit of host file as this …read on
Are you getting garbled values when using file_get_contents fetching an external URL (website scrapping using php) and wondering what went wrong ? The content is appearing to have wierd characters instead of normal HTML output because of GZIP output encoding by the website you are …read on
CHDK is not yet officially released for Canon SX 120 IS, but I found a development version which works for my Canon SX 120 IS.
For those who are wondering what a CHDK is, it is Canon Hack Development Kit. CHDK is an …read on
The default settings on my Sony Vaio CW Series laptop had wrong Gamma settings, therefore the color reproduction on the screen was slightly on the redish side.
The setting on the Display on Control Panel was not getting saved due to some reason (Windows 7). …read on