Month: July 2010

  • jQuery empty(),remove() and Thickbox

    I am a great fan of thickbox and I have used it for a long time. Recently I came across a situation where trying to close a modal that had a table with around 7000 rows (each 8 columns) crashed the tab in Chrome and took a very long time in Firefox. I went through…

  • Unix find, xargs and basename.

    Xargs is great. If you want to know why use xargs over exec, have a read of this: xargs versus exec. But, there is one problem. If the command that you are trying to execute on the results from find cannot take more than one file as param (basename for e.g, can take only one…

  • Munin: Could not open required defaults file: /root/.my.cnf

    For some reason I kept getting this error (even when the file was readable by all) in one of the munin (mysql slave) plugins that I had written. So this was the solution that worked for me; under the [mysql*] section in /etc/munin/plugin-conf.d/munin-node I added this: env.mysqlopts -u{user} -p{password} and in my plugin I did…

  • Fixing: “unknown terminal type” in shell

    Assuming you are using bash Add the following to ~/.bash_profile TERM=vt100 export TERM and then from shell source ~/.bash_profile Note: ‘vt100’ could be replaced with something similar in /usr/share/terminfo/