Home » Must know

Category Archives: Must know


How to install Package .deb in Ubuntu

Debian .deb is package that are used in Ubuntu to install software packages .you install .deb files generally by double clicking as in windows  .

we can install through command line

sudo dpkg -i package_name.deb

To Uninstall the package use

sudo dpkg -r package_name


package name is hari.deb

use sudo dpkg -i hari.deb
and enter your password



Context Free and Context Sensitive

Third post in Must to Know

In my Theory of computation class ,when i read about the context free grammar and context sensitive grammar i never took pain in understanding what it is actually just studied those concepts for mark .when i start to read about these thing now i am regretting that i must have concentrated before itself to learn these concepts in depth

Now let me explain what it is generally ,I dont want to confuse with the definition in the book ,it would confuse you further so let us have a practical example with the following code

For example, in Python the following is syntactically valid code:

x = 1
print x

The following code, however, is syntactically valid in terms of the context-free grammar, yielding a syntax tree with the same structure as the previous, but is syntactically invalid in terms of the context-sensitive grammar, which requires that variables be initialized before use:

x = 1
print y

Rather than being analyzed at the parsing stage, this is caught by checking the values in the syntax tree, hence as part of semantic analysis: context-sensitive syntax is in practice often more easily analyzed as semantics

what happens when computer start ?

Second Post in Must to Know

Many people who use computer just switch on the power button ,wait for some screen  and start using the computer .There is interesting process taking place in computer to start the computer .Before explaining the process here are few technical terms which comes

1.BIOS (Basic Input And Output System )

2.RAM(volatile component )

3.ROM(non volatile components )

4.Motherboard ( where all above components are placed)

The main advantage of motherboard is avoiding more cables in connecting one component to another ,otherwise it will be thousands of wire connecting all your components ,this wiring will keep on increasing when you add  more devices (components to your device ) like graphics card , printer etc. Motherboard  gives clear connectivity over the components and easy to find is there any problem with the devices

Let me start with main concept .

1.when you press the computer ,all your motherboard gets powered up and starts it own firmware .In case of any problem in this step only your computer fan will rotate you will  helpless .

2.when you multiprocessor system ,the computer will choose  one processor  in random and keep it as bootstrap processor  and run the BIOS and basic kernel initialization code

3.All the register in CPU will have some values to it and some address calculation takes place and BIOS codes starts up

4.Now BIOS starts the BIOS POST (Power On Self Test ) .This POST makes sure whether all component connected to computer is at good state suppose if the mouse is missing it will show the login screen but you can’t use the mouse when you connect after the boot but in case video card has some problem then it will show the error with the beep sound .which is normally called as blue screen of death

5.POST has also some more roles

  • verify CPU registers
  • verify the integrity of the BIOS code itself
  • verify some basic components like DMA, timer, interrupt controller
  • find, size, and verify system main memory
  • initialize BIOS
  • pass control to other specialized BIOSes (if and when required)
  • identify, organize, and select which devices are available for booting
  • discover, initialize, and catalog all system buses and devices
  • provide a user interface for system’s configuration

6.The BIOS now reads the first 512-byte sector (sector zero) of the hard disk. This is called the Master Boot Record and it normally contains two vital components: a tiny OS-specific bootstrapping program at the start of the MBR followed by a partition table for the disk.

7.Then all the basic loading takes place for the operating system  and i have give two links where you can find the detailed working




First Post in Must to Know

POSIX is called as the Portable Operating System Interface is a set of standard set by the IEEE to maintain the compatibility between operating System . The program which follow the POSIX standard will run on all POSIX-compliant operating systems .It is not only for the UNIX type operating system

Few header files in c which are POSIX