“free” command to determine ram/memory usage in FreeBSD

People moving from Linux to FreeBSD get confused when they need to determine ram/memory usage. Although there is no equivalent command, there is a nice perl script located at http://people.freebsd.org/~rse/dist/freebsd-memory. Just download and run the perl script, and it gives a formatted output of your memory status. Something like:

# fetch http://people.freebsd.org/~rse/dist/freebsd-memory
# perl freebsd-memory

In case  you need to mimic the linux command, simply set the execution bit and move it to bin.

# fetch -o /usr/local/bin/free http://people.freebsd.org/~rse/dist/freebsd-memory
# chmod +x /usr/local/bin/free

You should now be able to use “free” command without any problems from anywhere within your system.

Amitabh Kant

Short trip to Hazaribag

Just went for small trip to Hazaribag, Jharkhand. Had a pretty interesting journey as the main road we were supposed to travel on had a broken bridge just 10 kms outside the main town. The detour was of 40 kms through another highway. Thankfully we got a little adventurous and decided to take a smaller road which went through a non-descript village, crossing a small river without a bridge. All said and done, it was quite an interesting journey after a very long time.

First 5 pics are ones from the river we had to cross to reach Hazaribag. The remaining pics are from the next day behind my house in Hazaribag.

Solar eclipse at Taregna, Patna (India)

With great hopes, I had reached Targena near Patna Bihar to experience a total solar eclipse. But alas, it was not meant  to be. Clouds had covered the entire sky and cleared out only when the eclipse was in its last stages. Anyway, it was still a surreal experience having darkness engulf  for couple of minutes.

The crowds gathered was huge, first time I saw such a huge and enthusiastic crowd assemble for a non-political event in Bihar. I was fortunate enough to have a vantage position to click these photos.


A very poignant line by Ramdhari Singh Dinkar

I just heard about these lines from Ramdhari Singh Dinkar. It’s taken from a poem entitled “शक्ति और क्षमा (Shakti Aur Kshama)

क्षमा शोभती उस भुजंग को जिसके पास गरल हो,
उसका क्या जो दंतहीऩ, विषहीऩ, विनीत, सरल हो

Kshama shobhti us bhujang ko
Jiske paas garal ho
Uska kya jo dantheen
Vishrahit vineet saral ho

Approx meaning:
When a serpent that has venom, teeth and strength forgives, there is grace in its forgiveness, there is magnanimity. But when a serpent that has no venom and no bite claims to forgive, it sounds like hypocrisy and amounts to hiding its defeat with noble words

Desigining interfaces for web application

I have generally been involved in creating one or the other web application all throughout for the last 8-9 years. The languages have been different, VB.net. C#, Perl, PHP, JS etc, but the basic idea has always been creating some sort of web app. Generally while the app has been “relatively” easy to create, the only point I always had problem was coming up with a consistent design interface for the apps that i would be building.

Recently I came across this wonderful site about interface design, http://www.designinginterfaces.com/ , which explains in pretty easy terms about the whole concept of interface design. I would recommend it to anyone who is involved in any sort of web applicaiton design.