Thursday, July 28, 2011

Simple method to show/hide using javascript


  • Place this script at the beginning of the html code:

<script type="text/javascript">

function showhide(ThisObj)

{

      nav=document.getElementById(ThisObj);

      if(nav.style.display=="none")

          nav.style.display='block';

      else

          nav.style.display='none';

 }

</script>

  • Give a link (either a plus sign or some text or even a button) for the content to be shown or hidden:

<div onclick="showhide('step')" >link name</div>

  • The content to be shown or hidden (expanded) needs to be placed within this div tag:

<div id="step" style="display: none;"> content to be shown and hidden </div>

Thursday, July 14, 2011

Books on linux kernel hacking

few very good books I found on Kernel Hacking for start-ups:

learn about how to build, configure, install kernel:
Linux Kernel in a Nutshell, by Greg Kroah-Hartman, published by O'Reilly.
http://www.kroah.com/lkn/

learn about device drivers in detail:
Linux Device Drivers, by Jonathan Corbet, Alessandro Rubini, and Greg Kroah-Hartman, 3rd Edition, published by O'Reilly.
http://lwn.net/Kernel/LDD3/

Friday, July 8, 2011

ndiswrapper module not found: solved

When I logged into my Linux distribution almost after several months, I just hit this error while connecting to wifi. I still dunno what exactly went wrong. But one clean install of ndiswrapper got me into working happily!
Go to ndiswrapper directory(where ndiswrapper was unzipped), make clean, make, make install, when you modprobe ndiswrapper now, no error but get connected:)
       This is probably 'coz kernel is unaware of ndiswrapper module (somehow ndiswrapper module object file got deleted) , and to make use of that, should be added into kernel and then load it.

Teach Yourself Programming in Ten Years!

I came across this interesting article today. Teach yourself Programming in Ten Years by Peter Norvig (One of the top hackers from Google)