2011 March

Few thoughts

By | normal | No Comments

Today we went to worship at the mighty “Baba Mandir” in Deoghar.

Baidyanath Dhaam Mandir

Baidyanath Dhaam Mandir

Deoghar also known as Baidyanath Dham is an important Hindu pilgrimage. It is one of the twelve jyotirlingas, and also one of the 51 shaktipeeths and is famous for the mela of Shrawan (5th month according to the Hindu calendar system. It is the only place in India where the jyotirlinga and the saktipeeth are together. They lay side by side. Each year between July and August (on the eve of the month of Shraavana) about 7 to 8 million devotees come from various part of India to offer holy water from the Ganges at Sultangunj; almost 108 km from Deoghar to present it to Shiva. An unbroken line of people in saffron-dyed clothes stretches over the full 108 km for the month.

More details of the place can be found here.

In the “Baba Mandir” premises, there are many temple of other deities of the hindu religion.

I have a few thoughts about many things…

The first one, starts from the creation of this world. “God Bramha” created this world. In the “Baba Mandir” premises there was a temple of “God Bramha”. When I saw the temple, the first thought that came to my mind was that we mortal humans have created a temple of “the one” who created everything.

The second one being the practice of “chadhavas” in the temples.. It should be left to the devotees.. Have many things to say.. Little time. Will bounce back for more!

What Else!

By | normal | No Comments
  • having a nice vacation
  • spending time with family and friends
  • eating good food
  • enjoying
  • no emails to answer
  • no work to do
  • though, more than expected travel, yet, watching cricket world cup
  • witness india defeat the australians and arch-rival pakistan in cricket

what else one wants? “No end to this vacation ”

I am loving it… 🙂

git and regression

By | technick | No Comments

Quite sometime ago, I used subversion as the main version control system in my projects. I quite liked it and never wanted to move to git for the main reason being so many repositories and not one single repository to maintain the code and blah blah blah..

Recently, like 6 months ago, I started using git and I am gradually falling in love with it.  🙂

Something that I feel is worth sharing about git is its ability to find regressions. “git bisect”

(master) $ git bisect start
(master|BISECTING) $ git bisect bad
#the current version is bad
(master|BISECTING) $ git bisect good a37b6f0dcc8
#the hash a37b… was good where the tests passed!

This takes you to a hash between the HEAD and a37b… just run the tests here and if they are good, you need to run:
(master|BISECTING) $ git bisect good
(master|BISECTING) $ git bisect bad

This defines good and bad limits of the commits.

Everytime you run the git bisect command, git intelligently takes you to one commit/hash between the good and the bad limits and in a few more runs of the tests, it will finally point you to the actual git commit which caused the regression!

Once you are done, never forget to run:
(master|BISECTING) $ git bisect reset

Happy gitting everyone!

Linux, new PC and dual boot

By | technick | No Comments

Idea of this post came after I successfully installed linux (Ubuntu 10.10) on a new laptop (HP G62, i5core, Windows 7) which I purchased a few days back and since there were no posts that easily gave this “HOW TO” information about successfully installing linux, this post makes some sense.

The laptops, pre-installed with windows these days come up with 4 primary partitions (which is a limitation any ways) viz.

  • The system partition
  • The C drive
  • The recovery partition
  • The tools (in my case, HP tools)

In this case, as soon as you create a new partition by shrinking one of the volumes, you end up converting your disk to a Dynamic disc and linux at this moment does not support dynamic discs; at least not that I know. If you want to give installation a try at this moment, boot with linux cd and at the time of selecting the partitions, you will the “unallocated space” marked as “unusable” by the linux installer.

The solution to this situation is there on many forums which say:

  • Install linux (ubuntu) as WUBI
    • This has a limitation of allocating only 30 GB to linux
  • Convert your disc to basic disc and then go ahead with installation
    • This has a risk of loosing data and time when you go ahead deleting partitions, re-formatting your drive blah blah blah

For windows haters, the easiest way is to erase the disk and use it entirely for windows, I would have done the same thing, but kept a dual boot system for various reasons.

The solution for a dual boot system is:

  1. Create recovery disc for your system (optional though)
  2. Delete the recovery partition (you might want to use the in-built recovery manager wizard to do so rather than just using the disk management)
  3. Now shrink the volume to the amount of space you want to put in linux
  4. Boot with linux cd
  5. Now, you will see the “free space” available
  6. Create swap partition
  7. Create root fs (i used ext4 partition)
  8. And you are done!

You might want to google about: Dynamic disc, Basic disc, why linux does not support dynamic discs etc…