Wednesday, November 21, 2012

BSD in Grub 2 Boot Menu

There are lot of places where you can find the solution for this. But most of them are in forums. You have find the correct one out. So, here is how we have to do that.

First, Grub2's menu shouldn't be edited directly. Reason? That will be rewritten with each Grub update or refresh. So, we have to edit the following file


Just add the following

menuentry 'BSD' --class bsd --class os {
    set root='hd1,msdos2'
    drivemap -s (hd0) ${root}
    chainloader +1

Now let me explain each ad every line.

menuentry 'BSD' --class bsd --class os {

Tells Grub that there is another menu entry to display in the boot screen. Whatever inside '' is the title that will be displayed. Other stuff are just for Grub to get some info on the  OS.

set root='hd1,msdos2'


here is a catch! X starts with 0 and Y starts with 1. That means, if you have 3 hard disks, first is 0, second is 1 and third is 2. Now, if you have 3 partitions, first is 1, second is 2 and third is 3.

So in this example, the bsd is on second hard disk second partition.

drivemap -s (hd0) ${root}

Now you have to swap your hard disks. You can boot only from first disk. So we can use "drivermap -s". -s will swap whatever assigned to root to hd0 and hd0 to root. This is bit easier compared to earlier versions of Grub.

chainloader +1

This is the only thing that tells the Grub to actually load the bsd.


You need explanation for this?

Monday, November 21, 2011

Resurrection of MINIX

Remember MINIX? The one that was developed by Andrew Tanenbaum. The one that triggered Monolithic vs Microkernel debate. The one that had better design and more robust than Linux but lost its ground to the other.

After 2000 itself, the entire project has been made available with BSD license. But now it is moving in a direction that seems to be fitting in current scenario.

The team is now trying to port the programs and drivers from BSD systems and sooner or later, there will be a friendly userland. But the best part is, this will be the microkernel alternative for the available Linux and BSD kernels.

As processing power is an issue of yesterday, let us see how the battle, that was abandoned two decades ago is going to be fought in near future!


Thursday, November 3, 2011

Do You Really Need It?

There are lot of people out there buying new or upgrading their computers now and then. The craze about iDevices, fancy laptops, count of processor cores, size of hard disk, Windows' version number and the list never ends. But let me ask you few questions.

1. How many years it has been since you got your own computer at home (your dad's/brother's/sister's too count)?

2. How many hours you spend before computer everyday (if your work involves computer, don't include those hours)?

3. Out of that how much you spend on learning things, writing code, blogging, participating in technical discussions, creating any form of art etc? (anything productive matters, don't brag about posting in forums about your favorite actor)

4. How many programming languages you know? (computers are meant to be programmed, they are not toys to play or bioscopes to watch movies)

5. How many different operating systems you are familiar with (don't count various version numbers of same OS)?

6. If money is not a constraint, which will be your choice: A laptop that just works out of the box or a computer which you yourself assemble and set-up from the scratch?

7. Have you written any hobby program? At least those you learned in school/college?

8. Have you at least used your computer to maintain simple accounts like milk/newspaper/laundry?

9. What is the ratio between the number of mp3s and eBooks in your machine?

10. List out 20 site you mostly visit (I know some can't even make it to 20, still) and see what is the core purpose of the sites you visit?

I have not asked these questions to show-off. But please consider these things before you spend LOT of money again on a new laptop or to upgrade your graphic card just to play a new game! It is your money, your wish. But think!

Are you going to spoil your kids with Flash games and Youtube? If you want to teach your kids computer, teach them to type, teach them to code. A computer with just text interface is sufficient (that was the way we learned computers in early 1990s). If we ourselves are spoiled and drifted away from the main intention of computers, then think what will be case with kids who learn to watch porn even before they hit double digit age?

Computer like any other scientific invention, is designed to make our lives easier, so that we can spend the time in other productive works/things. They are not intended to make us lazy. They are made to bring our imaginations in to tangible forms. Not to waste our time in watching what others are doing. They are made to solve tough problems and provide solutions. Not to create newer ones with even harder solutions.

I never saw no miracle of science
didn't go from a blessing to a curse -Sting

Friday, July 22, 2011

New Mastercard Advertisement

New Mastercard ad after working in restructuring a Java application

Learn Basics of Java - $129.99
Master Java - $349.99
Learn to Develop Web-apps in Java - $999.99
Learn to Bugfix - $1499.99
Reworking a Crap Code - Priceless....

There are somethings money can't buy! For everything else, there's Mastercard.

Sunday, April 3, 2011

How To Ban an App in Facebook


I see lot of people booby-trapped by the so called Facebook apps. These apps post unwanted things on their wall, tag their friends and even post on their friends' walls. Sometimes, they seem to be funny, but many times they become irritating and even offensive. So I am writing this post to show my friends, how to remove the app from your account.

Here are the steps:

1.Go to “Account” (top right) and click on “Privacy Settings” (4th from top). The Privacy Settings page will be loaded
2.Now, at the bottom left of the page, you will find a link “Edit your settings for using apps, games and websites.” Click on it
3.On the next page, click on the “Edit Settings” button at the right end of “Apps you use”
4.On the next page, you can remove the rouge apps by clicking the “x” at the right corner
5.On the page mentioned in step 3, you can also edit settings about what information your friends' apps can sniff from your profile.

A Request Facebook:

Dear Facebook, why can't you provide the option to remove apps from the homepage itself? i.e. using the links at left panel? It will be much easier for ordinary people to remove the apps that they need no more.

A Request to Users:

Facebook is not a play-tool. If you are not aware of privacy and other things, then don't use it. If you still use it, then it is up to you to take care of yourself in the “virtual life”.

Saturday, January 29, 2011

Cost of Life - It's Different!

When sons of rich Hindi speaking "Indians" were attacked by rouge Australians, there were protests everywhere, there were media outcries. Australian government was made to apologize. But when poor Tamilian fishermen are systematically killed by Srilankan Navy, there is no such reaction in India except by few communal elements which exploited the issue for their own political ends.

What is this? How come a rich "Indian" who wants to study in Australia, abandoning all the colleges and universities in India becomes more important than a poor and hard working Tamil fisherman? Is Tamil Nadu not part of India?

If we take a closer look, these people who move to Australia, do that for their own comfort. They even consider it as a sign of their “high status”. But when they are attacked or robbed by few Australians, then Indian media never fail to label it Racist Attack on Indian students. But our fishermen go in to sea everyday for their livelihood. They risk their life everyday just to feed their family at shore.

Our Tamil fishermen are humiliated, they were stripped naked, shot, their nets damaged, tortured and murdered mercilessly. But there is no such reaction in media or public to the level we received in the case of Australian students or even as in the case of alleged racial attacks on Shipa Shetty or Harbajan Singh.

Don't we have a Navy? Even if we are accepting the Lankan claim of our fishermen crossing in to their sea, don't we have the potential to provide a sea patrol to prevent our fishermen from entering Srilankan region accidentally?

These fishermen are poor. They are comparatively less educated. But they behave in a gentle and acceptable manner even when they protest for this issue. They don't burn buses. They don't take hostages. They don't blast schools and other government buildings. But the government (both central and state) are ready to have dialogs with people who do all the above mentioned things. Examples range from Kashmir violence, Maoists, Telangana riots, Gurj riots etc.

If a citizen of western nation dies, it makes international headlines. There are bigger organizations like PeTA which fights for the cause of "fish". But when it comes to fishermen of Tamil Nadu, nobody cares.

For some political parties, hoisting national flag in a particular place is more important than the life of a fellow national. For someone else, gaining media coverage by “helping” the affected family is the right deed. For some other party, it is barely a news. For me, I have Google given Blogger to vent my anger. What else? What I can do? Is it me, sitting in the safety of my home and writing a blog instead of taking the issue to streets is the root-cause of all the turmoils our fishermen bear?

Saturday, May 1, 2010

Install Ruby and FXRuby in Fedora 12

To install Ruby

# yum install ruby

To install irb (interactive console for Ruby)

# yum install irb

To install RubyGems (this is required to install FXRuby as it is a "gem")

# yum install rubygems

To install FXRuby

# gem install fxruby

If everything returns no error, then you have successfully installed everything. The reason you have to install "irb" and "RubyGems" separately is because Fedora 12 repository has Ruby 1.8.6 not 1.9.X. Happy coding!