Diwali night

Diwali
Diwali
Diwali was celebrated in India a few days back. Diwali means differently to different religions – for sikhs it marks the return of Guru Hargobindji to Amritsar.

The first copy of Sri Guru Granth Sahib was scribed by Bhai Gurdaas, who was a devoted sikh of Guru Arjan Devji. He completed the Adi Granth in 1604. It took him nearly 19 years to complete this task. Bhai Gurdas not only wrote the Adi Granth as dictated by Guru Arjan Dev but also supervised four other scribes, Bhai Haria, Bhai Sant Das, Bhai Sukha and Bhai Manasa Ram, in the writing of various scriptures. Bhai Gurdaas’ own writings are collectively known as ‘Varan Bhai Gurdaas – and from these I bring the following hymn. This is normally sung during Diwali, because of the reference to Diwali in the first line. Many people believe this to be an implicit instruction by the Guru to lite candles. However, this is not true – the Guru never believes in completing physical rituals. The meaning of the hymn is more sublime:

੬ : ਚੱਲਣ ਜੁਗਤ
ਦੀਵਾਲੀ ਦੀ ਰਾਤਿ ਦੀਵੇ ਬਾਲੀਅਨਿ।
Lamps are lighted in the night of diwali festival;

ਤਾਰੇ ਜਾਤਿ ਸਨਾਤਿ ਅੰਬਰਿ ਭਾਲੀਅਨਿ।
Stars of different variety appear in the sky;

ਫੁਲਾਂ ਦੀ ਬਾਗਾਤਿ ਚੁਣਿ ਚੁਣਿ ਚਾਲੀਅਨਿ।
Flowers blossom in the garden; but are plucked;

ਤੀਰਥਿ ਜਾਤੀ ਜਾਤਿ ਨੈਣ ਨਿਹਾਲੀਅਨਿ।
The pilgrims are seen visiting the places of pilgrimage;

ਹਰਿਚੰਦਉਰੀ ਝਾਤਿ ਵਸਾਇ ਉਚਾਲੀਅਨਿ।
Temporary habitats have been seen coming into being and vanishing.

ਗੁਰਮੁਖਿ ਸੁਖ ਫਲ ਦਾਤਿ ਸਬਦਿ ਸਮ੍ਹਾਲੀਅਨਿ ॥੬॥
All these are momentary, but the gurmukhs with the help of the Word nourish the gift of the pleasure fruit.

Can we do something?

This morning there was a joke in the newspaper about the Chinese overtaking the Americans. Chinese kids chuckling over having Americans working for them in 2030. “Why do great nations fail?”, the teacher asked. “It happens because they turn their back on the things that make them great.”

Non-violence, honesty and pride made India great. Today we seem to have lost all three. Our leaders see commonwealth games as a way to make a quick buck, our military is building personal houses worth millions on public land, but for a moment stop blaming them. Pause to think about a common man on the street and what example he is setting for his teenage kid. Is he teaching them these values? Are schools worried about making good humans, or are busy creating mark getting machines? Mr.Sibal this is what I would call a reform.

Are these values even relevant today? People will argue both ways and its getting harder by the day to hold ground on this value school of thought. I am convinced though that this is the only way to make India truly great. Each person needs to be his own watchdog. Not easy, but not impossible.

During independence a great role was played by our songwriters. That is another community that has lost its purpose. However, as I said let values begin at home then blame others.

Going back to our priceless scriptures will make it easier for us to achieve this. I want to end with this beautiful song:

http://www.youtube.com/watch?gl=US&client=mv-google&hl=en&v=3DUoUULuWNM

Why Indian Talent Season 2 got it wrong

IGT Khoj 2
IGT Khoj 2
So, India’s Got Talent Season 2 got it wrong. The best team did not win. What happened? The rule said judges and votes will get equal (50%) weightage. However its apparent to any Tom, Dick or Harry that the final winners were influenced much more by votes, and to a lesser extent by the judges’ scores.

I did not find any official details on what mathematics was behind the final result. However, my guess is votes were converted into scores (using percentiles for example), and averaged with judges’ scores. This would then yield a result similar to what we got, because judge scores were in the range 23 to 30, whereas prorated vote scores would be in the 0 to 30 range (might not start at zero, but the point is, it would start very low). So, while the worst performer as per judges got a score of 23, the worst voter got a very low score, say 10.

I have written about normalization before. I believe the use of this technique would have yielded more fair results. Normalization brings a set of values to a common mean, and a common standard deviation. Below is a comparison – I have taken guesses on how many votes each contestant received. First, prorating:

Group Judges score Votes Voting score Voting score prorata Final score
Teji Toko 23 100000 0.2786 30 26.5
Choir 27 80000 0.2228 24 25.5
Fictitious 30 60000 0.1671 18 24
Bir Khalsa 23 70000 0.195 21 22
Sanjay Mandal 29 15000 0.0418 4.5 16.75
Diwakar (Acroduo) 30 10000 0.0279 3 16.5
Manas Kumar Sahu 28 9000 0.0251 2.7 15.35
Underground Auth 26 8000 0.0223 2.4 14.2
Haridass 26 7000 0.0195 2.1 14.05

 

Next, with the use of normalization:

Group Judges score Votes Voting score Nor Judges score Nor voting score Final score
Fictitious 30 60000 0.167 27.916667 26.35 27.133
Choir 27 80000 0.223 25.104167 27.692 26.398
Diwakar (Acroduo) 30 10000 0.028 27.916667 22.994 25.455
Teji Toko 23 100000 0.279 21.354167 29.035 25.194
Sanjay Mandal 29 15000 0.042 26.979167 23.329 25.154
Manas Kumar Sahu 28 9000 0.025 26.041667 22.927 24.484
Bir Khalsa 23 70000 0.195 21.354167 27.021 24.188
Underground Auth 26 8000 0.022 24.166667 22.86 23.513
Haridass 26 7000 0.019 24.166667 22.793 23.48

 

Several improvements can be seen: Fictitious group has moved deservingly up; Teji Toko has moved down; Acroduo has moved upwards etc. Note again that the number of votes is just a guess (educated one, keeping relative popularities in mind). However, the point is, that with normalization being added to the calculation procedure the same number of votes can bring about a more fair result.

DWisms

Quote
Quote

We have Thatcherisms and we have Bushisms. Similarly, Digital Wealth just now created DWism – it may be hard (or impossible!) to pronounce, but that doesn’t mean we can’t have it.

So without much ado, here we go. We will keep adding quotes here as and when the Grandmaster speaks.

  • In the dark age of Kali Yuga if you want to teach someone anything, you will need to push it down his throat; people will resist any attempt to remove their ignorance


Gurbani search on Nokia!

After working on this for more than two months, I am successful in setting up my Nokia N97 phone to be able to search Gurbani. I normally use SriGranth.org for this, but Gurmukhi characters would not show.

Nokia N97
Nokia N97
After working on this for more than two months, I am successful in setting up my Nokia N97 phone to be able to search Gurbani. I normally use SriGranth.org for this, but Gurmukhi characters would not show.

One easy way to fix this, without adding Gurmukhi Unicode fonts to the mobile, is to install Opera Mini (not the full version, Opera Mobile). Now, enter config: as a URL which takes you to advanced settings page. Set Use bitmap fonts for complex scripts to Yes and then Save. That’s it, now visit SriGranth.org.

If you want to add Gurmukhi support to other applications also, the solution is here; in short:

  1. Download this file http://rapidshare.com/files/327695116/Full_character_support_in_every_language_s60v5.zip.
  2. Unzip, and upload the four TTF files to the /resource/fonts folder on the memory card. Retain the file names.
  3. Restart the phone!

Now, visit SriGranth.org using the default browser. It works! (although the rendering is still incorrect but its better than nothing). Opera Mini based method advised first has correct rendering also, although it will involve higher data download.

I use a combination of both, for best results. However, the second solution comes with a caveat: once the phone is using these fonts, if you connect it to the PC in the mass media mode, the phone reboots. To avoid this each time you need to connect, you will need to remove the card (by pressing the power butting, going all the way down and selecting the remove card option; and then physically removing the card) and then attach the phone to the PC. If you want to connect the card itself to the PC, you will need to use a card reader.

This should also work for other Nokia phones, including 5800EX although I have tried it only for N97.

Once I did this, I was also able to read Gurmukhi emails using the Gmail mobile app. Also, there is a nice browser called UC which can be downloaded from here and also can render Gurmukhi once these fonts are used.

Note that once you update fonts using this approach, all content on the phone will be displayed using this font. If you do not like that, you can always go back and remove these four files and restart the phone.

I am also eagerly awaiting the release of Symbian version of GurbaniAnywhere which will allow me to search Gurbani even without Internet access.

NOTE: Please do post comments if you know of other, better ways of doing this, especially those that do not require an internet connection.

UPDATE 17th Jan 2012: There is now an App for NOKIA for this purpose (please see comment below). Can be installed from http://store.ovi.com/content/227787.

Fresh air fund :-)

The Fresh Air Fund is looking for runners and sponsors to join their Fresh Air Fund-Racers team for the NYC Marathon on on November 7th. Volunteers can register until September 30th – so let us hurry!

Over the past four years as a NY Road Runners charity partner for the NYC Half-Marathon, their 325 Fund-Racers have raised close to $400,000 for The Fresh Air Fund!

For more information and registration, please visit:

http://freshair.org/racers

What is life…

Some of these thoughts were penned by me a few months back when my maternal grandmother left for her heavenly abode.

Transit
Transit

The Guru’s viewpoint, both on Life as well on Death is very different from a normal person’s viewpoint. While the world sees birth as a beginning and death an an end, the Guru sees them as transitory moments in His Existence. Says Kabir:

ਕਬੀਰ ਜਿਸੁ ਮਰਨੇ ਤੇ ਜਗੁ ਡਰੈ ਮੇਰੇ ਮਨਿ ਆਨੰਦੁ ॥
Says Kabeer, the world may fear death – but for me, it fills my mind with pleasure
ਮਰਨੇ ਹੀ ਤੇ ਪਾਈਐ ਪੂਰਨੁ ਪਰਮਾਨੰਦੁ ॥੨੨॥
It is only by death that perfect and supreme bliss is obtained. ||22||

If you spend each moment of your life remembering Him, then Death does not make you afraid. Such was my grandmother:

ਗੁਰਮੁਖਿ ਨਾਮੁ ਸਾਲਾਹਿ ਜਨਮੁ ਸਵਾਰਿਆ ॥
Praising the Naam, the Name of the Lord, the Gurmukhs redeem their lives.
ਆਪਿ ਹੋਆ ਸਦਾ ਮੁਕਤੁ ਸਭੁ ਕੁਲੁ ਨਿਸਤਾਰਿਆ ॥
They themselves are liberated forever, and they save all their ancestors.

She was 86 and is survived by my Grandfather. It seems purpose-less to stay in this false world. These decisions though, are not ours to make. The Guru confirms its purposeless:

ਨਰੂ ਮਰੈ ਨਰੁ ਕਾਮਿ ਨ ਆਵੈ ॥
When a man dies, he is of no use to anyone.
ਪਸੂ ਮਰੈ ਦਸ ਕਾਜ ਸਵਾਰੈ ॥੧॥
But when an animal dies, it is used in ten ways. ||1||
ਅਪਨੇ ਕਰਮ ਕੀ ਗਤਿ ਮੈ ਕਿਆ ਜਾਨਉ ॥
What do I know, about the state of my karma?
ਮੈ ਕਿਆ ਜਾਨਉ ਬਾਬਾ ਰੇ ॥੧॥ ਰਹਾਉ ॥
What do I know, O Baba? ||1||Pause||
ਹਾਡ ਜਲੇ ਜੈਸੇ ਲਕਰੀ ਕਾ ਤੂਲਾ ॥
His bones burn, like a bundle of logs;
ਕੇਸ ਜਲੇ ਜੈਸੇ ਘਾਸ ਕਾ ਪੂਲਾ ॥੨॥
his hair burns like a bale of hay. ||2||
ਕਹੁ ਕਬੀਰ ਤਬ ਹੀ ਨਰੁ ਜਾਗੈ ॥
Says Kabeer, the man wakes up,
ਜਮ ਕਾ ਡੰਡੁ ਮੂੰਡ ਮਹਿ ਲਾਗੈ ॥੩॥੨॥
only when the Messenger of Death hits him over the head with his club. ||3||2||

This post is licensed under Creative Commons Attribution ShareAlike.

Sajid does not understand Sikhism

In a recent episode of India’s Got Talent Season 2, there was a performance by a Sikh group, showcasing Sikh martial arts using swords with some beautiful music, which had one 5-6 year old kid as part of the group. One of the judges, Sajid Khan mentioned that while the performance was “okay”, the involvement of the kid (in a performance using swords) was not a good decision since it would lead kids to copy him. I disagree personally: there are many dangerous performances shown in that particular talent hunt which can also lead kids to copy. One of the judges appreciated the performance, and the third one opined that she is fine, subject to that kids are not part of the next performance. Click on the image below to watch an excerpt:

Khoj
Khoj

However, I am sorry to note that Sajid does not understand Sikhism. The power of Sikhism lies not only in the sword, but also in the scriptures that teach how to use it. Many people mistakenly believe that the Tenth Guru “turned” Sikhism, what was till then a way of life, into a warring tribe. The need for the ability to defend, using arms was part of Sikhism ever since the Sixth Guru who made Sikhs into not just saints, but saint soldiers.

Sajid also claimed that what started as a “performance” gave way to a riot on stage. That was the intended effect, which is what Sajid failed to understand. The Tenth Guru, in his writings beautifully recreates war scenes, with great insight, and then points out the futility for both the winners (who becomes bloated with ego not knowing he will also die one day making way for more winners), and the losers (who end up with a few bones less).

I show case two of my favourite stanzas from such writings:

ਜੀਤ ਫਿਰੈ ਸਭ ਦੇਸ ਦਿਸਾਨ ਕੋ ਬਾਜਤ ਢੋਲ ਮ੍ਰਿਦੰਗ ਨਗਾਰੇ ॥
With the beat of drums and trumpets the emperor conquers all the countries.
ਗੁੰਜਤ ਗੂੜ ਗਜਾਨ ਕੇ ਸੁੰਦਰ ਹਿੰਸਤ ਹੈਂ ਹਯਰਾਜ ਹਜਾਰੇ ॥
Along with the drums is the roaring of beautifully decorated elephants and thousands of neighing houses of best breed.
ਭੂਤ ਭਵਿੱਖ ਭਵਾਨ ਕੇ ਭੂਪਤ ਕਉਨੁ ਗਨੈ ਨਹੀਂ ਜਾਤ ਬਿਚਾਰੇ ॥
So many such emperors have existed in the past, exist today and will exist in future; the numbers cannot be fathomed
ਸ੍ਰੀ ਪਤਿ ਸ੍ਰੀ ਭਗਵਾਨ ਭਜੇ ਬਿਨੁ ਅੰਤ ਕਉ ਅੰਤ ਕੇ ਧਾਮ ਸਿਧਾਰੇ ॥੩॥੨੩॥
Their might will be forgotten similarly; without remembering the Lord’s True Name, they will leave for the final abode (and lose the opportunity). 3.23.

 

ਸੁੱਧ ਸਿਪਾਹ ਦੁਰੰਤ ਦੁਬਾਹ ਸੁ ਸਾਜ ਸਨਾਹ ਦੁਰਜਾਨ ਦਲੈਂਗੇ ॥
The trained and war tested soldiers, with strong arms, mighty and ironclad – just waiting to crush the enemies.
ਭਾਰੀ ਗੁਮਾਨ ਭਰੇ ਮਨ ਮੈਂ ਕਰ ਪਰਬਤ ਪੰਖ ਹਲੇ ਨ ਹਲੈਂਗੇ ॥
With great ego in their mind; even if mountains were to grow wings and fly away frightened, they would still not lose their stand
ਤੋਰਿ ਅਰੀਨ ਮਰੋਰਿ ਮਵਾਸਨ ਮਾਤੇ ਮਤੰਗਨ ਮਾਨ ਮਲੈਂਗੇ ॥
They would destroy the enemies, twist the necks of rebels and smash the pride of intoxicated elephants.
ਸ੍ਰੀ ਪਤਿ ਸ੍ਰੀ ਭਗਵਾਨ ਕ੍ਰਿਪਾ ਬਿਨੁ ਤਿਆਗਿ ਜਹਾਨ ਨਿਦਾਨ ਚਲੈਂਗੇ ॥੫॥੨੫॥
But without the Grace of the Lord-God, they would ultimately leave the world empty handed and none the wiser. 5.25.

 

Sajid talks of kids, but does not realise that the Guru even as a kid used to create two different teams among his friends, and play war games. The Gurus younger sons were aged 8 years and 6 years when they achieved martyrdom. Just because a tyrant decides to go to war, you will have to go to war too – even though you may not want to. Whatever you want to excel at, you have to start learning as a child. He is simply afraid of the unknown – and his very limited experience of life makes him feel he is correct. In the days of the Guru, people were afraid to stand up against the tyrants – what will become of my kids? – such thoughts prevented them. The Guru led the way by teaching kids to defend themselves.

I cannot stop myself from showcasing another beautiful Hymn by the Tenth Guru where the Sword reigns supreme:

ਖਗ ਖੰਡ ਬਿਹੰਡੰ ਖਲ ਦਲ ਖੰਡੰ ਅਤਿ ਰਣ ਮੰਡੰ ਬਰ ਬੰਡੰ ॥
खग खंड बिहंडं खल दल खंडं अति रण मंडं बर बंडं ॥
The sword chops well, chops the forces of fools and this beautiful and powerful weapon adorns the battlefield of life.

ਭੁਜ ਦੰਡ ਅਖੰਡੰ ਤੇਜ ਪ੍ਰਚੰਡੰ ਜੋਤਿ ਅਮੰਡੰ ਭਾਨ ਪ੍ਰਭੰ ॥
भुज दंड अखंडं तेज प्रचंडं जोति अमंडं भान प्रभं ॥
It is as an extension of the arm, unbreakable, terribly fast, it has a powerful luster and its radiance even bedims the light of the sun.

ਸੁਖ ਸੰਤਾ ਕਰਣੰ ਦੁਰਮਤਿ ਦਰਣੰ ਕਿਲਬਿਖ ਹਰਣੰ ਅਸਿ ਸਰਣੰ ॥
सुख संता करणं दुरमति दरणं किलबिख हरणं असि सरणं ॥
It brings happiness to the saints, mashing the vicious ones, it is the destroyer of sins and I seek its refuge.

ਜੈ ਜੈ ਜਗ ਕਾਰਣ ਸ੍ਰਿਸਟਿ ਉਬਾਰਣ ਮਮ ਪ੍ਰਤਿਪਾਰਣ ਜੈ ਤੇਗੰ ॥੨॥
जै जै जग कारण स्रिसटि उबारण मम प्रतिपारण जै तेगं ॥२॥
Hail, hail to the cause of the world, saviour of the universe, it is my preserver, I hail its victory. 2.

Beautifully rendered, on YouTube.

Of dreams and clouds

Harmonium
Harmonium

Of Dreams I dreamed last night of having received a new kind of laptop. One that looks like a harmonium (see photo)! The front panel (the one which is pushed to play the harmonium) extends upwards to double as a screen for the laptop! The USP of the entire thing was that the laptop could play melodies using the built-in harmonium – all you had to do was to program the melody.

 

 

Of Clouds On one of the shows that I watched, I had the host asking how long it would be before an average Fortune 500 or 1000 company would be using the Cloud computing.

My guess is 5 years, no sooner. Yes, it provides cost savings but its not easy for companies to get rid of old hardware.

Number crunching through clustering

Scatter
Scatter

Separating your data into buckets is useful in a lot of problems especially fraud detection. How do you mathematically ‘cluster’ your data? One statistical way is the K-means clustering.

Without delving into too much statistics, here is a spreadsheet you can use to do this for your own data.

This sheet accepts pairs of two variables – for example age versus
number of sick leave applied, by a group in a year. Thereafter it
categorizes this data into buckets, the number of buckets being
specified by you. Once the sheet gives you bucket classification, you can analyse it for problems. You should see the following cases as worthy of further attention:

  1. too many datapoints falling in a single group
  2. only one or two datapoints in a single group
  3. any point that does not belong to the group its in (this is only
    possible if the data has a subjective background)

This method can be used to sample data for further analysis wherever
there is simply too much data to analyse. In our example it can be
used to isolate people who may be feigning sickness to take leave. In
a test for people with different levels of capability it can be used
to grade scores etc. It may also be used to solve the needle in haystack problem.


Licensing and information about the blog available here.