Month: October 2009

  • jQuery – Avoid duplicate element’s IDs

    If the input element has an ID and it is duplicate with another element, it’s likely cause an error. In this case, Firefox 3.5 and IE8 on Windows Vista has no problem while same browsers in Windows XP does not work. Problem … … … $(“#myform #action”).val(); That works in Vista and Mac OSX but…

  • jQuery form item highlighting

    $(document).ready(function(){ $(“input,textarea,select”) .focus(function() {$(this).addClass(“form-item-focus”);}) .blur(function() {$(this).removeClass(“form-item-focus”);}); });

  • MOD files import into iMovies for Panasonic SDR-H18

    This little trick is for iMovies to import MOD files automatically. Create this folder and copy MOD files to it: D:\MP_ROOT\101PNV01

  • Centos and BOINC/World Community Grid

    There are RPM packages for Fedora but doesn’t seem one for CentOS. There is no updated instructions on running BOINC client via command line. 1) Download and run 2) Run “./boinccmd –project_attach ” (Log into WCG, the key can be found on menu My Profile, near the bottom) 4) Run “./run_client –daemon” to…

  • Optimizing TCP stack under CentOS/RHEL Linux

    This is from one of our pretty old servers more /etc/sysctl.conf # Kernel sysctl configuration file for Red Hat Linux # # For binary values, 0 is disabled, 1 is enabled. See sysctl(8) for # more details. # Controls IP packet forwarding net.ipv4.ip_forward = 0 # Controls source route verification net.ipv4.conf.default.rp_filter = 1 # Controls…