February 26, 2008

Nostalgia: भारत एक खोज (Discovery of India)

Filed under: General — strike @ 11:48 pm

I was searching for the opening score of this beautiful Tv series named भारत एक खोज (Discovery of India), directed by Shyam Benegal. The series is based on the book called Discovery of India written by Pt. Jawaharlal Nehru.

Somebody uploaded the audio of this opening score on Internet (which you can download from here too) but there is no info on where Mr Shyam Benegal have taken the shlokas from. So here it is.

The opening score (title song) starts with a sanskrit shloka from सूक्तम् (sooktam)129, मण्डलम् (mandalam)10, अष्टकम् (ashtakam) 8 in ऋग्वेद संहिता (Rigved sanhita). It is from नासदीय सूक्तम् (Nasadeeya sooktam).

This is the first shloka in sookta. It goes like this:

नासंदासीन्नौ सदासीत् तदानीं नासीद्रजो नो व्योमा परो यत्।
किमावरीव: कुह कस्य शर्मन्नम्भ: किमासीद्रहनं गभीरम्।।१।।

Thereafter the chorus starts with the meaning in hindi.

The ending score is a sanskrit shloka from सूक्तम् (sooktam) 121, मण्डलम् (mandalam) 10, अष्टकम् (ashtakam) 8 in ऋग्वेद संहिता (Rigved sanhita). It is from the सूक्तम् (sooktam) called हिरण्यगर्भ: सूक्तम् (Hiranyagarbha sooktam).

The ending score is first shloka from हिरण्यगर्भ: सूक्तम which goes like this:

ૐ हिरण्यगर्भ: समवर्तताग्रे भूतस्य जात: पतिरेक आसीत्।
स दाधार पृथिवीं द्यामुतेमां कस्मै देवाय हविषा विधेम।।१।।

Thereafter the chorus starts with the meaning in hindi.

Here is the complete version of opening score.

नासंदासीन्नौ सदासीत् तदानीं नासीद्रजो नो व्योमा परो यत्।
किमावरीव: कुह कस्य शर्मन्नम्भ: किमासीऱ्दहनं गभीरम्।।१।।

सृष्टी से पहले सत नहीं था, असत भी नहीं
Srishtee se pehle sat nahin thaa, asat bhi nahin
(Before creation there was no truth, or untruth)
अंतरीक्ष भी नहीं, आकाश भीं नहीं था
Antariksh bhi nahin, akash bhin nahin thaa
(no universe, not even the sky)
छिपा था क्या, कहां, किसने ढका था
chhipaa thaa kyaa, kahaan, kisne dhakaa thaa
(What was hidden, where, who hid it)
उस पल तो, अगम, अटल जल भी कहां था
us pal to, agam, atal jal bhi kahaan thaa
(At that time there was no water)

सृष्टी का कौन है कर्ता
Srishtee kaa kaun hai kartaa
(who is the creator of nature)
कर्ता है वा अकर्ता
Kartaa hai vaa akartaa
(is he a creator or distroyer)
ऊंचें आकाश मे रहता
Oonche aakash mein rahtaa
(Who stays up there in the sky )
सदा अध्यक्ष बना रहता
Sada adhyaksh banaa rahtaa
(who is in charge)
वहीं सचमुच मे जानता.. या नहीं भी जानता
Wahin sachmuch mein jaantaa..Yaa nahin bhi jaanataa
(He truly must know everything.. or maybe not!)
है किसी को नहीं पता, नहीं पता
Hai kisi ko nahin pataa, nahin pataa,
(no one knows..no one knows)
नहीं है पता, नहीं है पता
Nahin hai pataa, nahin hai pataa
(no one knows..no one knows)

Complete version of ending score.

ૐ हिरण्यगर्भ: समवर्तताग्रे भूतस्य जात: पतिरेक आसीत्।
स दाधार पृथिवीं द्यामुतेमां कस्मै देवाय हविषा विधेम।।१।।

वह था हिरण्यगर्भ सृष्टीसे पहले विद्यमान
Weh tha hiranyagarbh srishti se pehle vidyamaan
(he was born out of the depths..before creation)
वही तो सारे भूतजात का स्वामी महान
Wahi to saare bhoot jaat ka swami mahaan
(he is the lord of all life)
जो है अस्तित्वमान धरती आसमान धारण कर
jo hai astitvamaana dharti aasmaan dhaaran kar
(the one who is there over land and sky)
ऐसे किस देवता की उपासना करें हम हवि दे कर
Aise kis devta ki upasana karein hum havi dekar
(who is this god whom we pray with offerings)

जिसके बल पर तेजोमय है अंबर
Jis ke bal par tejomay hai ambar
(He on whose strength the sky is lit)
पृथ्वी हरीभरी स्थापित स्थिर
Prithvi hari bhari sthapit sthir
(and the earth lies green and stable)
स्वर्ग और सूरज भी स्थिर
Swarg aur sooraj bhi sthir
(the heavens and the sun stay stable)
ऐसे किस देवता की उपसना करे हम हवि दे कर
Aise kis devta ki upasana karein hum havi dekar
(who is this god whom we pray with offerings)
गर्भ मे अपने अग्नी धारण कर पैदा कर
Garbh mein apne agni dhaaran kar paida kar
(Who holds fire in own womb and gives birth)

व्यापा था जल इधर उधर निचे उपर
Vyapa tha jal idhar udhar neeche upar
(who controls here, there and everywhere)
जगा जो देवो का एकमेव प्राण बनकर
Jagaa jo devo ka ekameva praan banker
(who rose by becoming life of gods)
ऐसे किस देवता की उपसना करे हम हवि दे कर
Aise kis devta ki upasana karein hum avi dekar
(who is this god who we pray to ?)

ओ स्ृष्टी निर्माता स्वर्ग रचयिता पुर्वज रक्षा कर
O Srishti nirmata swarg rachiyata purvaj raksha kar
(creator of creation, the heavens and who looked after our ancestors)
सत्य धर्म पालक अतुल जल नियामक रक्षा कर
Satya dharma palak atul jal niyamak raksha kar
(who keeps the truth, justice and the essence of life)
फैली है दिशायें बाहू जैसी उसकी सब में सब पर
Phaili hain dishayen bahu jaisi uski sab mein sab par
(whose hands seem to stretch over all there is )
ऐसे ही देवता की उपसना करे हम हवि दे कर
Aise hi devta ki upasana kare hum havi dekar
(this is the god who we pray to, with offerings)
ऐसे ही देवता की उपसना करे हम हवि दे कर
Aise hi devta ki upasana kare hum havi dekar
(this is the god who we pray to, with offerings)

August 28, 2007

Everybody says I’m fine!

Filed under: General — strike @ 2:29 pm

Recently I got chance to watch this movie with a bizarre name. A movie with good theme though. The movie shows complicated lives of characters. Characters those can be found in any metro.. hiding their chaotic lives from public.

Xen, a saloon owner who can read thoughts of his customers while giving them haircut, reads minds of Rage, Tanya, Mr. Mittal and Nikita to find that all of them hide their lives, preserving self by pretending everything is fine.

Its disheartening to see such incidences actually happening around. Curiosity takes its toll as one dig beneath the surface to know the well guarded secrets of people’s lives. Knowing the truth is painful at times for the truth is complex and saddening. Most truths are so naked that people feel sorry for them and cover them up, at least a little bit.

The movie looses its grip on some places and becomes sluggish. Rahul Bose irritates in his first entry with his loud acting. Rehaan Engineer’s underplay is used beautifully. Koel Purie’s bewildering behaviour shown in movie keeps one dazed until the mystery unfolds in the end. In all, a good try by Rahul Bose.

August 4, 2007

Its 03:55 Am

Filed under: General — strike @ 4:01 am

Its 03:55 Am. A shiver ran through me as soon as entered my balcony. Its cold outside. All I can hear is loud hum created by AC units running in almost all the flats in adjacent tower. These 2 tiny bats are still trying to catch a pray or perhaps they are out for morning walk.. err.. morning fly. Sombody in the next lane leaving town with bags packed. Don’t know what this silly birdie singin’ for. Nobody else seem to be awake at this hour and a lot of time still to cockcrow.

August 2, 2007

Rain once again..

Filed under: General — strike @ 7:20 am

Rain, it’s here once again.. Rain that washes dust off the trees and houses. Rain that washes layers of patches off the tar road. Rain that washes false feeling of good work done by road contractors.Rain that washes pretense of civic authorities that all is well.

Rain that washes belief of poor that the roof won’t drip this season. Rain that washes confidence of rich that house won’t seep this rain. Rain that washes hope of farmers that it will be enough this year.

Rain that washes our apathy towards nature by cleaning polluted air. Rain that washes lethargy and boredom off the minds. Rain that washes stains of our laziness off the vehicles. Rain that washes make-up off the pretty looking faces exposing reality ;).

Rain that leaves people and animals marooned without food and shelter. Rain that takes lives. Rain that reinstate life. Rain that shows almighty power of nature. Rain, it’s here once again..

July 28, 2007

Its raining.. Finally!!

Filed under: General — strike @ 4:48 pm

Its raining in Gurgaon.. finally! Nothing like it after summer heat. I have been long waiting for it. Earlier it rained like those 12 second advertisements in short breaks. But this one lasted for about an hour.

Mostly people preferred to stay inside and did not seemed enthusiastic enough to get wet like this lady wading her way through the puddle.

wading way through puddle

It is was fun to see these kids getting wet in rain, playing, floating paper-boats in this pool of water (usually known as lawn :-). I did this a lot every year in rainy season when I was a kid. Wish other kids here (and their parents) were as enthusiastic as these.

paperboats

July 24, 2007

Proper rendering of Indic fonts on Firefox

Filed under: FOSS, General, Tech — strike @ 4:57 pm

Official binary releases from the Mozilla Corporation by default do not render Indic fonts correctly. The reason is official binary release is not compiled with pango support. Pango is a font rendering engine with focus on l18n. The pango layout engine is basically designed in context with gtk+ widget toolkit. Pango works on multitude of platforms like Linux, MacOSX and M$.

Most of the Indic scripts fall under Complex Languages which require special rendering. To enable this under Firefox we need to recompile the source with just one extra option i.e. –enable-pango.

Marathi (Devnagari) fonts rendered by official binary release is shown in image below.

Indic font rendering official release

Marathi fonts rendered by custom built Firefox is shown in image below.

Indic font rendering on Pango enabled Firefox

You can clearly see the difference in font rendering.

Download and build Firefox

To compile Firefox, download firefox source from mozilla.org after selecting source directory under appropriate version (2.0.0.5 in this case). The source itself is 35 MB, after bunzipping it expands to whopping 345 MB.

tar xjf firefox-2.0.0.5-source.tar.bz2
cd mozilla

Next step is to create a configuration file. There is a utility for building configuration file (called mozconfig) from Mozilla located here, which makes life a little easy.

It is better to create mozconfig file which include existing build options. You can view the official binary release build option by typing about:buildconfig in address bar of official release Firefox. Below are build options used for binary release:

–enable-application=browser –enable-update-channel=release –enable-update-packaging –enable-official-branding –disable-debug ‘–enable-optimize=-Os -freorder-blocks -fno-reorder-functions -gstabs+’ –disable-tests –enable-default-toolkit=gtk2 –enable-xft –disable-freetype2 –enable-svg –enable-canvas –enable-static –disable-shared

As can be seen here official release Firefox is not compiled with pango support. As you can see, this build is going be static with just one extra option i.e. –enable-pango. The mozconfig file created for custom compilation looks like the one shown below:

# Options for client.mk.
mk_add_options MOZ_CO_PROJECT=browser
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/ff-opt-static

# Options for ‘configure’ (same as command-line options).
ac_add_options –enable-application=browser
ac_add_options –enable-update-channel=release
ac_add_options –enable-update-packaging
ac_add_options –enable-official-branding
ac_add_options –enable-pango
ac_add_options –disable-debug
ac_add_options ‘–enable-optimize=-Os -freorder-blocks -fno-reorder-functions -gstabs+’
ac_add_options –disable-tests
ac_add_options –enable-default-toolkit=gtk2
ac_add_options –enable-xft
ac_add_options –disable-freetype2
ac_add_options –enable-svg
ac_add_options –enable-canvas
ac_add_options –enable-static
ac_add_options –disable-shared

Please note that in above file I have used –enable-official-branding which makes use of all the trademarked logos while building. However, you should not use this if you are planning to distribute binary, unless you have obtained express permission from Mozilla. Read Mozilla Licensing Policies. As long as you are building it for yourself, you can use anything you want.

Assuming your Mozilla source is in mozilla directory, you can keep this file in this top level source directory with name .mozconfig as a convension. Actually you can keep this file anywhere and export a shell environment variable MOZCONFIG pointing to an absolute path to this file. But this is volatile.

I personally prefer to keep it in top level source directory and export path as a precautionary measure. Next is to issue make command.

export MOZCONFIG=/absolute/path/to/mozilla/.mozconfig
make -f client.mk build

While compilation process is on, you can get caffeinated enough so you can stay up for further tests. On my Celeron 1.7 GZ laptop with 768 MB memory it took freakin 2.5 hours to finish compilation. Most of the compilation is CPU hogging, with constant average CPU usage nearing 95%. This sent load average on my machine to a soaring 4 to 7. Most of the compilation time I had a table fan spinning in full swing facing my lappy as it started heating up like anything in first few minutes itself.

Only last step where it binds some big object files together and finally the firefox-bin binary is memory intensive. It took most of my available memory and all of the CPU bringing other tasks on lappy to a screeching halt.

Big Phat Warning: The official document states that it requires 1.5 GB disks pace for static and XULRunner builds, mine took 2.7 GB. So keep at least 3 GB of disks pace free on the partition where you are compiling Firefox. You WILL run into troubles if its your root partition with /tmp on it and is filled to the brim.
Initially I had just 2 GBs of disk space free on root partition. I thought it would work but did not consider the disk space used by /tmp and space used by sources. Obviously in first try it failed due to lack of disk space. Next I freed up some more space. After everything was compiled properly it took around 2.7 GB of disk space.

After the compilation is complete you can test the new build by running file /absolute/path/to/mozilla/ff-opt-static/dist/bin/firefox. Once you are satisfied with the new build, you can create a tar file which then you can copy on any location you want and run from there. This can be created by running command

make -C ff-opt-static/browser/installer

This would create file firefox-2.0.0.5.en-US.linux-i686.tar.gz in mozilla/ff-opt-static/dist/ directory. That completes building Firefox from source.

The memory footprint did not change for custom built Firefox compared to that of official release. Being static build, memory footprint is rather large (34MB resident and around 14 MB shared) compared to other applications. Its same for official release as well as custom build. I am yet to detect any memory leaks in my build.

Most of the documentation you can find on developer.mozilla.org.

July 19, 2007

Kids will be kids

Filed under: General — strike @ 8:09 pm

On this day I came early from office for no particular reason. Had some time in hand and it was far from dusk. So I relaxed sipping coffee in balcony. I sensed noises of kids playing in parking place (see picture).

Kids_playing

That reminded me of my young sisters and her friends playing same game years ago (they called it tikkerbilla or some-such name). This game somehow propagated over years to today’s kids. As such our society is located in one of the affluent areas of the city. Kids here start chirping in English at the age of 2 while they walk and talk English, play biblets and videogames in their homes. It was fun to see them playing this apparently simple and silly looking game which actually helps build coordination of body and mind, improves synchronization of reflexes. In all it was good to watch them playing.

December 25, 2006

Cleopatra Stratan: A wonder girl from Romania

Filed under: General — strike @ 5:28 pm

Cleopatra StratanOn 22nd Dec, for the first time I heard this little girl’s song and I absolutely liked it. The name of the song I heard first is “Nu mi-e frica de Bau-Bau” which means “I am not afraid of Bau-Bau”. Here bau-bau is a sound made to scare children off. In my opinion, this and Ghita are her best songs among 10 songs I heard so far.

Cleopatra Stratan is just 3 years old. She already have her debut music album released. In her first live concert sometime in August 2006, she sang 20 songs from her own album and her father’s album. In this concert she was accompanied by her father on guitar. Looks like music is in her blood. Her father, a Moldovan-Romanian Pavel Stratan is also a singer with a few albums released.

Cleopatra’s first album La vârsta de trei ani (At the age of 3) is being admired all over Romania and rest of the world. I am absolutely loving her songs and sweet voice, though I do not understand the meaning of her songs.

Hope someone will put translations of her lyrics on the web soon.