Friday, September 2, 2011

Fedora Installation

While installing Fedora by creating dual boot, you may get a error saying could not allocate space for requested partitions:not enough space left to create partition even when you have free 'unallocated space'.
Make sure that you can still create primary partitions (max. 4 primary partitions allowed). Create extended partition and create root, /boot partitions as logical partitions within that. (max. one extended partition allowed). If you already have a extended partition, create free space within that.

  • A swap partition (at least 256 MB) - Depending on RAM
  • /boot partition (250MB) - contains the operating system kernel (which allows your system to boot Fedora), along with files used during the bootstrap process.
  • root partition (3-5GB) - The / (or root) partition is the top of the directory structure.
 For more info on this
http://docs.fedoraproject.org/en-US/Fedora/13/html/Installation_Guide/s2-diskpartrecommend-x86.html

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)

Monday, February 21, 2011

Android SDK tools update failure: solved

While updating through Eclipse, if you get error:
Installing Android SDK Platform-tools, revision 9
Failed to rename directory
and warning:
-= warning! =- A folder failed to be renamed or moved. On Windows this typically means that a program Is using that Folder (for example Windows Explorer or your anti-virus software.) Please momentarily deactivate your anti-virus software. Please also close any running programs that may be accessing the android-installation-path/tools directory, 


follow these steps:
  • Close Eclipse and close all instances of windows explorer in which the\android-sdk-windows\tools folder was opened.
  • Copy tools directory to some other tools_copy directory.
  • Run android.bat from there.
  • After update is over delete temp_tools directory (kill adb.exe if not able to delete the folder)
you can also try these (didn't work for me:()
  • Close Eclipse and close all instances of windows explorer in which the\android-sdk-windows\tools folder was opened 
  • Now run the AVD Manager independently as follows: 
  • Open a command prompt 
  • Go to the directory where android SDK is installed at, and then its tools subdirectory 
  • Run android.bat 
  • At this point, update just as you would if you were running the AVD Manager from within Eclipse (make sure the proxy settings are mentioned if you are behind the proxy).