Restoring your system after a crash

Ok, so your computer crashed. You know one way out: reformatting the hard disk – but you don’t like it. So what can be done? If your data is really important, and you are prepared to pay some hard bucks getting it back, talk to a professional. Period.

Still here, ok – so your data is important, but you want to do what you can, yourself. I will discuss in the blogpost some tools that can help.

One of the best recovery tools, that has helped me as well, is: Emergency Boot CD (EBCD). The original site seems to be no longer active, and it hasn’t been updated since 2004, but its still a great tool. Look for it here, or here, or Google search for it.
With this, you can recover deleted files, or those lost by formatting. You can fix master boot record. It will allow you to boot from a specific partition, even if its being shown ‘non-system’ otherwise. Once you have the system up through EBCD, on XP you can run the ‘bootok.exe’ command, or ‘fixmbr.exe’ to fix any issues, its available in /windows/system32.
EBCD includes Windows Password Wizard, which can be used to restore access to your PC when you forgot the password for Windows user account.

The next option I am going to talk about is “Bart’s Preinstalled environment bootable live CD” (BartPE). However, using this is not just a matter of downloading an ISO and burning a CD, as it was for the EBCD. You will need to create the CD from your Windows XP CD. The instructions are on the BartPE website. One you have the CD ready, you can boot off the CD into a live Windows XP environment with a lot of tools available. You can even access NTFS drives. See where you can get with this. Again, once you have the system booted, try running bootok.exe as I suggested above.

Another option, if you cannot/do-not-want-to get the BartPE built, is a Knoppix Live CD. This will boot your computer with Linux OS, which is not very difficult to use given Windows knowledge. However, other than getting your computer running, this will not do much more to fix your problem.

The last recovery tool I am going to talk about is System rescue disk. This one offers the GParted tool, which is a disk partition management tool (similar to FDISK) but can resize partitions without loosing data.

If you are unable to download/lay your hands on one of these CDs, I can have them shipped out to you for a fee (except, of course the BartPE).


DNS poisoning – in plain English :-)

What is DNS poisoning, why it affects everyone accessing the internet and how to fix it.

Computers do not have names, only numbers. For example, Yahoo! is When you ask your browser to be taken to, it looks up this number in something similar to a telephone directory.

A person by the name Dan Kaminsky has found that it’s possible for someone (called X henceforth) to modify the directory. So, when you ask for Yahoo, the computer would lookup the wrong number, a number to a computer owned by X. Thereafter, it can record the information you give it, thinking that its Yahoo!. The owner may then misuse this information.

So what do you do to make sure this doesn’t happen? First, check your DNS server (the machine that tells your computer what number a website has) by going to
If that says your computer is vulnerable, change your DNS servers. Detailed instructions for different operating systems are here. For Windows, in short you have to change your DNS settings to and by going to Network Connections.

Note: This is not a security update blog, and I do not talk about every vulnerability. However, this one is important and everyone needs to understand it. On the other hand, most forums on the web talk highly techno. Read this one for more information, only if you think you need it!


Golden Temple

Ok, my very first Flash based web album is here: The Golden Temple.

The Golden Temple, at Amritsar, India is the most significant place of worship of the Sikh religion, and one of the oldest. The temple is called Harmandar Sahib, and is indeed covered by a layer of Gold.

I always had the feeling that you would need to buy Adobe Flash to build Flash albums, or at least other paid software. I had always used JAlbum to build my web albums. However, to my surprise there are free skins for JAlbum that let you build such Flash web albums.


The Spirograph

I became a kid again and purchased a Spirograph set. The Spirograph is a mathematical toy, which you can use for drawing nice figures. In the simplest case it exists of a fixed circle, used as a template, and a smaller rolling circle with holes. The result of my experiment is at the end of this post.
Thereafter, I turned my attention to mathematical generation of the Spirograph figures, and to my surprise I was able to find a number of good resources on the net.
The parametric equations for a Spirograph are:
x(t)=(R+r)cos(t) + p*cos((R+r)t/r)
y(t)=(R+r)sin(t) + p*sin((R+r)t/r)

More explanation here:

A digital spirograph can be created using, for example, the following equations:
with HSB Grapher.

An applet, and some data to play with it can be found here.
However, what I found more useful and interesting is this page: It provides a Spirograph compiler (an awk script). This awk script takes a Spirograph specification and generates a gnuplot script to create the Spirograph. Go try it – its very interesting. If you are on windows, read these to help you get started on awk and gnuplot.



Forest fire

Forest fire
Forest fire
The current economical state, at least in India seems to me to be like a forest fire. A forest fire burns out all the dying vegetation that is blocking the sunlight and makes conditions suitable for new growth. It resets everything back to where it was. It’s a new beginning.

In times of growth and good earning, we settle down comfortably and over a period, our intrinsic cost increases. When I say intrinsic cost it also includes costs that are incurred by third parties, directly or indirectly for us. For example, if my office sponsors transport facility for me without charging me for it, it’s included in the intrinsic cost.

At times like this, each cost is re-thought about. “Do we really need it?” When the office cuts transport people think “Can I work closer to where I live?” or “Can I shift my residence closer to office?”. In good times there was never need to ask these questions, but now there is. Overall the cost goes down. People are doing something they should have done anyways, but did not just for comfort.

There is mass upheaval, but there is also rationalisation. If too many people have joined the IT industry (more than what is intrinsically needed), some will join the biotech sector for example, if that is an emerging sector. Again, it something that should have happened anyway.

So the point is, upheaval and rationlisation are good. While these move us out of our comfort zones at the moment, they are better for the long term.


Guru Nanak prakash utsav

I visited the Nagar Keertan yesterday, on the occasion of Gurn Nanak Prakash Utsav. Prakash Utsav means celebrating the day the Divine Light (of Knowledge) spread.

The thought that struck me during the hymn singing was this:

ਸਾਧੂ ਸੰਗਿ ਸਿਖਾਇਓ ਨਾਮੁ ||
ਸਰਬ ਮਨੋਰਥ ਪੂਰਨ ਕਾਮ ||

The translation:

In the Saadh Sangat, the Company of the Holy, the Naam (Lord’s True Name) is learned; (and through the Lord’s Name) all desires and tasks are fulfilled.

It struck me because it very simply conveys the fact that the Lord’s Name is one stop solution to fulfillment of tasks. There is no need to be superstitious – go take refuge in the Name of the Almighty.

Further reading: