Hello, world!

You have reached the blog of Arun Prabhakar

Stackoverflow GitHub
  • Resolve Net::MySQL Hang problem if the database result has only 1 row or is empty

    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. Sample Net::MySQL code #!/usr/bin/perl use Net::MySQL; $mysql = Net::MySQL->new( hostname => 'localhost', database => 'db', user ... read on

  • Solve Write Permission Denied on Files Windows 7

    Solve Write Permission Denied on Files Windows 7 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 ,

    • Right ...
    read on

  • How to Prevent my Computer from going to sleep when I am running big process ?

    How to Prevent my Computer from going to sleep when I am running big process ? 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

  • Free Light weight Social media sharing javascript for Facebook, Twitter, Stumble Upon, Digg and Reddit

    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

  • Error Installing PERL modules "unrecognized command line option -fstack -protector"

    Error Installing PERL modules "unrecognized command line option -fstack -protector"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 ... read on

  • 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 ... read on

  • Enable two finger flick Forward and Back in Synaptics

    Enable two finger flick Forward and Back in Synaptics 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

  • Solve "Cannot modify header information - headers already sent by *.php"

    Solve  "Cannot modify header information - headers already sent by *.php"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

  • Change Network adapter MAC address on Windows 7

    Change Network adapter MAC address on Windows 7 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

  • Removing index.php From URL in CodeIgniter

    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 ... read on

  • JQuery make dynamic draggable and droppable containers

    The jquery UI javascript has the Draggable and Droppable Interactions inorder to implement a drag drop UI. By default draggable and droppable containers are marked draggable and droppable by jQuery when the page loades, As shown in the code snippet below for the jQuery Drag ... read on

  • Permission Denied on Hosts File (Windows 7)

    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 file ... read on

  • PHP file_get_contents giving garbled output

    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 fetching ... read on

  • CHDK for Canon SX120 IS Camera ( Canon Hack Development Kit )

    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. About CHDK For those who are wondering what a CHDK is, it is Canon Hack Development Kit. CHDK is an ... read on

  • Sony Vaio Gamma error and color is not saved (Nvidia Geforce GT 300)

    Sony Vaio Gamma error and color is not saved (Nvidia Geforce GT 300) 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

Tags
On Facebook
Email Newsletter