Sunday, July 27, 2014

Nirvana Shatakam -निर्वाण षटकम्

Meaning from greenmsg

SP Shivoham


॥ निर्वाण षटकम्॥
मनो बुद्ध्यहंकारचित्तानि नाहम् न च श्रोत्र जिह्वे न च घ्राण नेत्रे
न च व्योम भूमिर् न तेजॊ न वायु: चिदानन्द रूप: शिवोऽहम् शिवॊऽहम् ॥
न च प्राण संज्ञो न वै पञ्चवायु: न वा सप्तधातुर् न वा पञ्चकोश:
न वाक्पाणिपादौ न चोपस्थपायू चिदानन्द रूप: शिवोऽहम् शिवॊऽहम् ॥
न मे द्वेष रागौ न मे लोभ मोहौ मदो नैव मे नैव मात्सर्य भाव:
न धर्मो न चार्थो न कामो ना मोक्ष: चिदानन्द रूप: शिवोऽहम् शिवॊऽहम् ॥
न पुण्यं न पापं न सौख्यं न दु:खम् न मन्त्रो न तीर्थं न वेदा: न यज्ञा:
अहं भोजनं नैव भोज्यं न भोक्ता चिदानन्द रूप: शिवोऽहम् शिवॊऽहम् ॥
न मृत्युर् न शंका न मे जातिभेद: पिता नैव मे नैव माता न जन्म
न बन्धुर् न मित्रं गुरुर्नैव शिष्य: चिदानन्द रूप: शिवोऽहम् शिवॊऽहम् ॥
अहं निर्विकल्पॊ निराकार रूपॊ विभुत्वाच्च सर्वत्र सर्वेन्द्रियाणाम्
न चासंगतं नैव मुक्तिर् न मेय: चिदानन्द रूप: शिवोऽहम् शिवॊऽहम् ॥
English Transliteration:
Mano Budhyahankaar Chitani Naaham, Na Cha Shrotra Jihve Na Cha Ghraana netre
Na Cha Vyoma Bhumir Na Tejo Na Vayuh, Chidananda Rupah Shivoham Shivoham
Na Cha Praana Sanjno Na Vai Pancha Vaayuhu, Na Vaa Sapta Dhaatur Na Va Pancha Koshah
Na Vaak Paani Paadau Na Chopasthapaayuh, Chidaananda Rupah Shivoham Shivoham
Na Me Dvesha Raagau Na Me Lobha Mohau, Mado Naiva Me Naiva Maatsarya Bhaavah
Na Dharmo Na Chaartho Na Kaamo Na Moksha, Chidaananda Rupah Shivoham Shivoham
Na Punyan Na Paapan Na Saukhyan Na Dukham, Na Mantro Na Tirthan Na Vedaah Na Yajnaah
Aham Bhojanan Naiv Bhojyan Na Bhoktaa, Chidaananda Rupah Shivoham Shivoham
Na Mrityur Na Shanka Na Me Jaati Bhedah, Pitaa Naiva Me Naiva Maataa Na Janma
Na Bandhur Na Mitram Guru Naiva Shishyah, Chidaananda Rupah Shivoham Shivoham
Aham Nirvikalpo Niraakaara Rupo, Vibhutvaaccha Sarvatra Sarvendriyaanaam
Na Chaa Sangatan Naiva Muktir Na meyah Chidananda Rupah Shivoham Shivoham
Meaning:
1) I am not mind, nor intellect, nor ego, nor the reflections of inner self. I am not the five senses. I am beyond that. I am not the ether, nor the earth, nor the fire, nor the wind (i.e. the five elements). I am indeed, That eternal knowing and bliss, Shiva, love and pure consciousness.
2) Neither can I be termed as energy (Praana), nor five types of breath (Vaayu), nor the seven material essences (dhaatu), nor the five coverings (panca-kosha). Neither am I the five instruments of elimination, procreation, motion, grasping, or speaking. I am indeed, That eternal knowing and bliss, Shiva, love and pure consciousness.
3) I have no hatred or dislike, nor affiliation or liking, nor greed, nor delusion, nor pride or haughtiness, nor feelings of envy or jealousy. I have no duty (dharma), nor any money, nor any desire (refer: kama), nor even liberation (refer: moksha). I am indeed, That eternal knowing and bliss, Shiva, love and pure consciousness.
4) I have neither virtue (punya), nor vice (paapa). I do not commit sins or good deeds, nor have happiness or sorrow, pain or pleasure. I do not need mantras, holy places, scriptures, rituals or sacrifices (yajna). I am none of the triad of the observer or one who experiences, the process of observing or experiencing, or any object being observed or experienced. I am indeed, That eternal knowing and bliss, Shiva, love and pure consciousness.
5) I do not have fear of death, as I do not have death. I have no separation from my true self, no doubt about my existence, nor have I discrimination on the basis of birth. I have no father or mother, nor did I have a birth. I am not the relative, nor the friend, nor the guru, nor the disciple. I am indeed, That eternal knowing and bliss, Shiva, love and pure consciousness.
6) I am all pervasive. I am without any attributes, and without any form. I have neither attachment to the world, nor to liberation. I have no wishes for anything because I am everything, everywhere, every time, always in equilibrium. I am indeed, That eternal knowing and bliss, Shiva, love and pure consciousness.

Thursday, July 24, 2014

Damodarashtakam दामोदरअष्टकं

वह  भगवान जिनका रूप सत, चित और आनंद से परिपूर्ण है, जिनके मकरो के आकार के कुंडल इधर उधर हिल रहे है, जो गोकुल नामक अपने धाम में नित्य शोभायमान है, जो (दूध और दही से भरी मटकी फोड़ देने के बाद) मैय्या यशोदा की डर से ओखल से कूदकर अत्यंत तेजीसे दौड़ रहे है और जिन्हें यशोदा मैय्या ने उनसे भी तेज दौड़कर पीछे से पकड़ लिया है ऐसे श्री भगवान को मै नमन करता हू  ।।1।।

(अपने माता के हाथ में छड़ी देखकर) वो रो रहे है और अपने कमल जैसे कोमल हाथो से दोनों नेत्रों को मसल रहे है, उनकी आँखे भय से भरी हुयी है और उनके गले का मोतियो का हार, जो शंख के भाति त्रिरेखा से युक्त है, रोते हुए जल्दी जल्दी श्वास लेने के कारण इधर उधर हिल-डुल रहा है , ऐसे उन श्री भगवान् को जो रस्सी से नहीं बल्कि अपने माता के प्रेम से बंधे हुए है मै  नमन करता हु ।।

ऐसी बाल्यकाल की लीलाओ के कारण वे गोकुल के रहिवासीओ को आध्यात्मिक प्रेम के आनंद कुंड में डुबो रहे है, और जो अपने ऐश्वर्य सम्पूर्ण और ज्ञानी भक्तो को ये बतला रहे है की "मै अपने ऐश्वर्य हिन और प्रेमी भक्तो द्वारा जीत लिया गया हु", ऐसे उन दामोदर भगवान को मै शत शत नमन करता हु ।। 

हे भगवन, आप सभी प्रकार के वर देने में सक्षम होने पर भी मै आप से ना ही मोक्ष की कामना करता हु, ना ही मोक्षका सर्वोत्तम स्वरुप श्री वैकुंठ की इच्छा रखता हु, और ना ही नौ प्रकार की भक्ति से प्राप्त किये जाने वाले कोई भी वरदान की कामना करता हु । मै तो आपसे बस यही प्रार्थना करता हु की आपका ये बालस्वरूप मेरे हृदय में सर्वदा स्थित रहे, इससे अन्य और कोई वस्तु का मुझे क्या लाभ ?
हे प्रभु, आपका श्याम रंग का मुखकमल जो कुछ घुंघराले लाल बालो से आच्छादित है, मैय्या यशोदा द्वारा बार बार चुम्बन किया जा रहा है, और आपके ओठ बिम्बफल जैसे लाल है, आपका ये अत्यंत सुन्दर कमलरुपी मुख मेरे हृदय में विराजीत रहे । (इससे अन्य) सहस्त्रो वरदानो का मुझे कोई उपयोग नहीं है ।

हे प्रभु, मेरा आपको नमन है । हे दामोदर, हे अनंत, हे विष्णु, आप मुझपर प्रसन्न होवे (क्यूंकि) मै संसाररूपी दुःख के समुन्दर में डूबा जा रहा हु । मुझ दिन हिन पर आप अपनी अमृतमय कृपा की वृष्टि कीजिये और कृपया मुझे दर्शन दीजिये ।।

हे दामोदर (जिनके पेट से रस्सी बंधी हुयी है वो), आपने माता यशोदा द्वारा ओखल में बंधे होने के बाद भी  कुबेर के पुत्रो (मणिग्रिव तथा नलकुबेर) जो नारदजी के श्राप के कारण वृक्ष के रूप में मूर्ति की तरह स्थित थे, उनका उद्धार किया और उनको भक्ति का वरदान दिया, आप उसी प्रकार से मुझे भी प्रेमभक्ति प्रदान कीजिये, यही मेरा एकमात्र आग्रह है, किसी और प्रकार की कोई भी मोक्ष के लिए मेरी कोई कामना नहीं है । 
हे दामोदर, आपके उदर से बंधी हुयी महान रज्जू (रस्सी) को प्रणाम है, और आपके उदर, जो निखिल ब्रह्म तेज का आश्रय है, और जो सम्पूर्ण ब्रह्माण्ड का धाम है, को भी प्रणाम है । श्रीमती राधिका जो आपको अत्यंत प्रिय है उन्हें भी प्रणाम है, और हे अनंत लीलाऐ करने वाले भगवन, आपको प्रणाम है । 

|| जय श्री राधा दामोदर || 

Sunday, July 13, 2014

Śrī Lingashtakam




Shiva Lingashtakam: Shiva Lingashtakam Mantra featuring eight stanzas on Shivalinga. It is said that any Shiva devotee who chants the holy octet of the Shiva Lingam with great devotion would in the end get moksha and reach Shiva Lok (the world of Lord Shiva).



http://greenmesg.org/mantras_slokas/sri_shiva-lingashtakam.php

https://www.youtube.com/watch?v=vbZkIeweNNU

Sanskrit Lyrics and meaning

Brahma Muraari Suraarchita Lingam 
Nirmala Bhashita Shobhita Lingam 
Janmaja Dukha Vinaashaka Lingam 
Tat Pranamaami Sadaa Shiva Lingam 

Meaning: I bow before that Sada Shiva Linga, 
which is adored by Brahma, Vishnu and other Gods, 
which is praised by pure and holy speeches 
and which destroys the cycle of births and deaths.

Devamuni Pravaraarchita Lingam 
Kaamadaham Karunaakara Lingam 
Raavana Darpa Vinaashaka Lingam 
Tat Pranamaami Sada Shiva Lingam 

Meaning: I bow before that Sada Shiva Linga, 
which is the destroyer of desires, 
which the Devas and the sages worship, 
which is infinitely compassionate 
and which subdued the pride of Raavana.

Sarva Sugandha Sulepitha Lingam 
Buddhi Vivardhana Kaarana Lingam 
Siddha Suraasura Vanditha Lingam 
Tat Pranamaami Sadaa Shiva Lingam 

Meaning: I bow before that Sada Shiva Linga, 
which is lavishly smeared with variegated perfumes and scents, 
which elevates the power of thought and 
enkindles the light of discrimination, 
and before which the Siddhas and Suras and Asuras prostrate.

Kanaka Mahaamani Bhushitha Lingam 
Phanipathi Veshtitha Shobhitha Lingam 
Daksha Suyajna Vinaashaka Lingam 
Tat Pranamaami Sadaa Shiva Lingam 

Meaning: I bow before that Sada Shiva Linga, 
the destroyer of Dakshas sacrifice, 
which is decorated with various ornaments, 
studded with different gems and rubies 
and which glows with the garland of the serpent Lord coiled around it.

Kumkuma Chandana Lepitha Lingam 
Pankaja Haara Sushobhitha Lingam 
Sanchitha Paapa Vinaashaka Lingam 
Tat Pranamaami Sadaa Shiva Lingam 

Meaning: I bow before that Sada Shiva Linga, 
which is smeared with saffron and sandal paste, 
which is decorated with lotus garlands 
and which wipes out all accumulated sins.

Devaganaarchitha Sevitha Lingam 
Bhaavair Bhakti Bhirevacha Lingam 
Dinakara Koti Prabhakara Lingam 
Tat Pranamaami Sadaa Shiva Lingam 

Meaning: I bow before that Sada Shiva Linga 
which is worshipped by the multitude of Gods 
with genuine thoughts full of faith and devotion 
and whose splendor is like that of a million suns.

Ashta Dalopari Veshtitha Lingam 
Sarva Samudbhava Kaarana Lingam 
Ashta Daridra Vinaashaka Lingam 
Tat Pranamaami Sadaa Shiva Lingam 

Meaning: I bow before that Sada Shiva Linga, 
destroyer of all poverty and misery in its eight aspects, 
which is the cause of all creation 
and which stands on the eight petalled Lotus.

Suraguru Suravara Pujitha Lingam 
Suravana Pushpa Sadaarchitha Lingam 
Paraatparam Paramatmaka Lingam 
Tat Pranamaami Sadaa Shiva Lingam 

Meaning: I bow before that Sada Shiva Linga 
which is the Transcendent Being and the Supreme Self, 
worshipped by all Suras and their preceptor (Brhaspathi), 
with innumerable flowers from the celestial gardens.

Friday, July 11, 2014

Sanskrit resources

I have started a blog where I write the meaning of a shloka from Bhagavad Gita, once a week. It has english and hindi meaning and sandhi vigraha. It has audio in my voice as well.
http://bhagavadgitajee.blogspot.com/


This is recording of a stuti called "Satya Sanatan Sundar Shyam" which documents life events of Lord Krishna in sequence.
You can listen to the audio and read the lyrics
http://rituguptaji.blogspot.com/2014/07/satya-sanatan-sundar-shyam.html

This is a quiz on noun forms (vibhaktis), using multiple choices.
http://learnsanskrit.herokuapp.com/quiz/index

For the noun forms, I find this website very useful reference. I have used this site to populate the questions for my quiz.
http://sanskrit.samskrutam.com/en.grammar-tutorial-reference-sabdarupa.ashx#noun_form_pati

For verb forms, this site is the best. You have to click on each of the roots and get the forms
http://sanskrit.jnu.ac.in/tinanta/tinanta.jsp


Another wonderful resource is the repository of online books by NCERT in India. They have all the subject books for all grades in Indian schools.
http://www.ncert.nic.in/ncerts/textbook/textbook.htm?fhsk1=0-15

The bhagavadgita references are links on this site
http://rituguptaji.blogspot.com/2013/09/bhagavad-gita.html


Other Sanskrit resources
http://www.sanskritdictionary.com/
http://spokensanskrit.de/

Sanskrit Primer app by sparsh apps is very handy. I have not tried the bhagavadgita app yet.
http://sparshapps.com/

Adding hindi input capability on your machine
http://www.google.com/inputtools/try/
All of this has been possible because of Sanskrit Bharati and my teachers here in Columbus Nagasampathji and Chandrasekharji and Jyotsna Bhagini in Pittsburgh. I am eternally grateful to them and specially now because it is Gruru Purnima tomorrow, So please spread the word about them.
http://www.samskritabharatiusa.org/

Thursday, July 10, 2014

Satya Sanatan Sundar Shyam

सत्य सनातन सुन्दर श्याम 
नित्यानन्द घनेश्वर श्याम 

लक्ष्मीसेवित पदयुः  श्याम 
सुरमुनीवरगण यार्चित श्याम 
भू भार उद्धरणार्धित श्याम 

सत्य सनातन सुन्दर श्याम
नित्यानन्द घनेश्वर श्याम 

लोकबन्धु गुरु वाचक श्याम 
धर्मस्थापनशीलन श्याम 
स्वीकृत नरतनु सुरभर श्याम 

सत्य सनातन सुन्दर श्याम
नित्यानन्द घनेश्वर श्याम 

मायाधीश्वर चिन्मय श्याम 
यादव्कुल सम्भुषण श्याम 
नन्द यशोदा पालित श्याम 

सत्य सनातन सुन्दर श्याम
नित्यानन्द घनेश्वर श्याम 

श्रीवत्स आन्कित  बालक श्याम 
मारित माया पूतन श्याम 
शकटासुर खल भन्जन श्याम 

सत्य सनातन सुन्दर श्याम
नित्यानन्द घनेश्वर श्याम 

दामोदर गुण मन्दिर श्याम 
यमलार्जुन तरु भन्जन श्याम 
गोपीजन गण  मोहन श्याम

सत्य सनातन सुन्दर श्याम 
नित्यानन्द घनेश्वर श्याम  

अगणित गुण गण भूषण श्याम 
अघ वक्र राक्षस घातक श्याम 
कालिय सर्प विमर्दन श्याम 

सत्य सनातन सुन्दर श्याम
नित्यानन्द घनेश्वर श्याम 

जय वृन्दावन चरवर श्याम 
गोचारण रत गोधर श्याम 
गर्द सुशोभित चूडक श्याम 
गल लंबित वनमालक श्याम 
अग्रज बलभद्रार्पित श्याम 
गोपवधु हृदयस्थित श्याम 

सत्य सनातन सुन्दर श्याम
नित्यानन्द घनेश्वर श्याम 

सर्वात्मक सर्वेश्वर श्याम 
धेनुक खर वधकारक श्याम 
सुरेन्द्रपूजन वारक श्याम 
पर्वत पूजन कारक श्याम 
सुरगण प्रार्थित संगद श्याम 
निरुपम ..  श्याम 

सत्य सनातन सुन्दर श्याम
नित्यानन्द घनेश्वर श्याम 

बालारधक विधिहर श्याम 
गोपिभावित प्रियकर श्याम 
नन्दित नन्द सुनन्दन श्याम 
वैकुण्ठेश लयाकृत श्याम 
कालिन्दितट चारण श्याम 
मोहन मुरली वादन श्याम 

सत्य सनातन सुन्दर श्याम
नित्यानन्द घनेश्वर श्याम 

रास महोत्सव खेलन श्याम 
आनन्दामृत दर्शन श्याम 
बहुविद शरीर धारण श्याम 
नाना लीला कौतुक श्याम 
भज वज्रान्कित मृदुपद श्याम 
समस्तलोकाराधक  श्याम 

सत्य सनातन सुन्दर श्याम 
नित्यानन्द घनेश्वर श्याम 

वृषभ अरिश्टक पीडक श्याम 
विधिगत दर्प विनाशक श्याम 
रुचिर स्वरुप जनार्दन श्याम 
नील कलेवर चिन्तन श्याम 
साधक गति संशोधन श्याम 
लीलानटन मनोहर श्याम 

सत्य सनातन सुन्दर श्याम
नित्यानन्द घनेश्वर श्याम 

गोपीजन गण पूजित श्याम 
राधा वेणी शोभक   श्याम 
अक्रूरार्पित शेषद श्याम 
कृत रथायनरोहण श्याम 
व्रजनारी पुर वारित श्याम 
सतीगण दाहद विरह्क श्याम 

सत्य सनातन सुन्दर श्याम 
नित्यानन्द घनेश्वर श्याम 

मथुरापुर जन मोहक श्याम 
सनकादिक मुनि चिन्तित  श्याम 
मत्त राजकदल घातक श्याम 
शुभ पीताम्बर धारक श्याम 
मालाकार सुपूजित श्याम 
ब्रह्मसुपुर्ण परात्पर श्याम 

सत्य सनातन सुन्दर श्याम
नित्यानन्द घनेश्वर श्याम 

कुब्जालेपन नन्दित श्याम 

केशीक  कन्स निसूदन श्याम 
उग्रसेन वर राज्यद श्याम

सत्य सनातन सुन्दर श्याम 
नित्यानन्द घनेश्वर श्याम  

राम कृष्ण हरि गिरिधर श्याम 
माधव केशव नरहरि श्याम 
मृत गुरू सून सूजीवन श्याम 
भीष्मक बाला कामित श्याम 
द्वारवति संस्थापक श्याम 
रुक्मिन्यर्थ सुहारक श्याम 

सत्य सनातन सुन्दर श्याम
नित्यानन्द घनेश्वर श्याम 

नरकासुर वध कारक श्याम 
अदिति समर्पित कुण्डल श्याम 
स्वधर्म तत्पर मोक्षद श्याम 
शिशुपाल आशु विघातक श्याम 
वाणासुर भुज भेदन श्याम 
दानववर मधुसूदन श्याम 

सत्य सनातन सुन्दर श्याम
नित्यानन्द घनेश्वर श्याम 

चक्रप्रताप सुदर्षक श्याम 
कौरव दर्प विमर्दक श्याम 
दग्ध काम जनिदायक श्याम 
इन्द्र विधिष सेवित श्याम 
सखी भक्तार्जुन सारथि श्याम 
पाण्डव कुल सम्मानित श्याम 

सत्य सनातन सुन्दर श्याम
नित्यानन्द घनेश्वर श्याम 

गीतामृत संदोहक श्याम 
भीष्म प्रतिज्ञा पालक श्याम 
विशवरूप सन्दर्शक श्याम 
आत्यन्तिक सुख साधक श्याम 
भक्त कृपार्णव बरगद श्याम 
शरणागत जन कारक श्याम

सत्य सनातन सुन्दर श्याम 
नित्यानन्द घनेश्वर श्याम  

भक्त काम समपूरक श्याम 
मङ्गल करगति दायक श्याम 
ऐश्वर्यादिक षड्गुण श्याम 
विश्वाश्रय जनपालन श्याम 
सर्व चराचर धारण श्याम 
पूर्ण चराचर खेलन श्याम 

सत्य सनातन सुन्दर श्याम
नित्यानन्द घनेश्वर श्याम 

द्वारवति पुर प्लावन श्याम 
कुरु यदुकुल सङ्घारक श्याम 
बदरी सम्प्रहितोद्धव श्याम 
प्रभास गमना मोदित श्याम 
योगस्थित यदुनन्दन श्याम 
सुरगण वन्दित मोदन श्याम 

सत्य सनातन सुन्दर श्याम
नित्यानन्द घनेश्वर श्याम 

देवतात्मज दैवत श्याम 
मोहन नटनानन्दन श्याम 
सूचित नरतनु त्याग श्याम 
जर उद्धक शर भेदित श्याम 
भक्त जनार्दन सुन्दर श्याम 
विश्वसुमङ्गल कारण श्याम 

सत्य सनातन सुन्दर श्याम
नित्यानन्द घनेश्वर श्याम http://newsite.vedantatoronto.ca/hns_sankirtan.shtml

Saturday, June 7, 2014

Death is the only option


Even though the topic is strange, this is a blog on how to live well.

Today I attended  NFJS(No Fluff Just Stuff ) 2014 conference and the Keynote title was "Failure is the only option" by Matt Stine. The speaker piqued the curiosity of the audience by having a provocative title.

He explained that when a software is in production

  •  it is bound to fail, sooner or later.
  • It is not a question of  "if" but "when"
If we accept this, we can try to

  •  understand it. 
  • learn from it.
  • plan and prepare for it
  • handle it gracefully while it is happening.
Then I had my 'aha' moment.  If we replace 'failure' with 'death' in this premise, all of the above still  holds true. 

We would truly appreciate the value of life and learn how to live it well.

We all know we are going to die, but we choose to hold on to our pettiness and our bank balances.

Our body is designed to fail. If we accept this , we explore further and try to

  • understand it  

To truly understand death, we have to explore our self-identity. Who are we truly?  In eastern philosophical traditions, the concept of rebirth states  the spirit/soul gets a body , mind and intellect as tools to accomplish its mission. Once the mission is accomplished, the tools are discarded and new ones are taken up for the next mission. The soul is eternal, so there is no need to mourn for the ever-changing, ephemeral body. It is hard to internalize it, yet alone understand this concept.

 So death remains the most feared , taboo subject and elephant in the room, no one talks about. Since we have not experienced it, how do we know if it is not the most amazing experience of life? Like the grand finale of a fireworks?

  • learn from it

You ask "How can I learn from death, since I have never experienced it?"  We see death all around us every single moment of our life. Day is dying to give birth to night, There are cycles all around us, sleep-awake, hunger-fullness, happiness-sadness. We accept these cycles as natural. However the irony is all of us want to break the cycle of birth and death.

We think that it is the most unnatural thing, almost as if it is a flaw in nature's otherwise perfect plan. It is the greatest 'Equal opportunity Employer' there ever was, with no partiality toward rich-poor, male-female, relative-stranger.


  • plan and prepare for it
If we understand what death is and learn from it, planning and preparing for it becomes easy. Instead of obsessing about whom to give what in our wills, we would contemplate what legacy we are leaving behind and what we will take to our next life.

 Once we realize all the ill-earned earthly belongings will not go with us, we will focus on our spiritual capital. It will inspire us to be more truthful and compassionate and focus on doing the right things for the right reasons.


  • handle it gracefully while it is happening
We have all heard stories of how Jesus handled it gracefully while it was happening.  When people were crucifying him, he was praying to the Lord. "Please forgive them for they know not what they are doing!!" Is there a better example of handling death while it is happening?

According to yogic tradition, the yogi has trained himself the whole life for this moment. He is fully alert when it comes and is able to observe each breath as it comes and leaves, and discards his body with full awareness and the Individual Consciousness (Jivatma)  merges with the Universal Consciousness(Paramatma).

I would like to end with a simple story :  Imagine you are a person who took loan from the bank for 1 million dollars for 2 years. When the loan is due and the banker comes, and you have lost the million dollars,  you will make all sorts of excuses and see the banker as a curse.  On the other hand, if you make 4 million during the 2 years, you will see the banker as a boon and will be happy to return the loan and be debt-free. Similarly I wish we all make good use of the time we have on loan so when it is time for the reaper, we see it as a boon and not a curse. Om Shantih Santih Shantih Peace.












Friday, April 25, 2014

PostgreSQL configuration on Grails

How to : configure PostgreSQL on Grails
http://stackoverflow.com/questions/11535537/how-to-config-postgresql-to-grails-application

  • Download the driver from http://jdbc.postgresql.org/download.html and copy it to the lib diretory of your project.
  • Add to DataSource.groovy

dataSource {
pooled = true
driverClassName = "org.postgresql.Driver"
dialect = "org.hibernate.dialect.PostgreSQLDialect"
username = "username"
password = "password"
}
development {
dataSource {
dbCreate = "update" // one of 'create', 'create-drop', 'update', 'validate', ''
url = "jdbc:postgresql://localhost:5432/postgres"
}
}

Thursday, April 10, 2014

Grails: Customizing Pagination and Sorting on Search Results


I wanted to add a search bar somewhere in my list.gsp, and have the search results reuse that page to display the list of matches.
This is my page

This is the expected output. A search bar on top of the list, where a user can search by root, or rootMeaning. The search results must be displayed on list.gsp.

Setup
1. This is the domain class:
 package sdb1

class Word {
    String root, rootMeaning and a bunch of other attributes.

    }

2. Go to the terminal and execute a generate-all command for the Word domain. This command will generate the controllers, and views which we can use later.
 
3. Open list.gsp and add this code to embed a search form on the page.


<g:form action="list" method="GET">
        <div class="fieldcontain">
            <label for="query">Search for </label>
            <g:textField name="query" value="${params.query}"/>
          <g:radioGroup name="category"
              labels="['root','rootMeaning']"
              values="['root', 'rootMeaning']"
              value="${params.category}"
              >
<p>${it.label} ${it.radio}</p>
</g:radioGroup>
        </div>

    </g:form>

 



4. Open WordController and add this in list function
        def searchCategory = params.category
        // this is needed for the first time to pass to the view.
        if(searchCategory==null) { searchCategory="root"
            params.category="root"
        }

def wordList = Word.createCriteria().list (params) {
            if ( params.query ) {
                        ilike("${searchCategory}", "%${params.query}%")
            }
        }
        [wordInstanceList: wordList,wordInstanceTotal: wordList.totalCount]
    
5. The search results are now displayed. For the sorting to work , I added this to the list.gsp    for each of the columns.

                      

      

<g:sortableColumn property="root" title="${message(code: 'word.root.label', default: 'Root')}" params="[query:params.query, category:params.category]" />

Just like any other element, g:sortableColumn actually accepts params and this is the key to our sorting problem. If the user is on the search results, I simply pass around the query that he entered, it goes back to the controller and does another query on the database, this time, with a different sorting order.
7. Finally! For the pagination, here is a snippet from list.gsp
<div class="pagination">
<g:if test="${!params.query}">
<g:paginate total="${wordInstanceTotal}"/>
</g:if>
<g:else>
<g:paginate total="${wordInstanceTotal}" 
        params="[query:params.query, category:params.category]" />
</g:else>

</div>


Just like the g:sortableColumn above, I also passed around the query and the Category so that the paginate would work flawlessly! 


I took followed the ideas very closely on this site
http://www.icodeya.com/2012/05/grails-pagination-and-sorting-on-search.html

Tuesday, March 4, 2014

Chidambareshwara Stotram


kripaa samudhram, sumukham, thrinethram,
jatADharam, pArvathi vAma bhAgam,
sadhAshivam, rudhramanantha roopam,
chidhambaresham hrdhi bhAvayAmi.

क्रिपा समुद्रम्, सुमुखम्, त्रिनेत्रम्,
जटाधरम्, पार्वति वाम भागम्,
सदाशिवम्, रुद्रमनन्त रूपम्,
चिदम्बरेशम् ह्र्दि भावयामि.    

क्रिपा समुद्रम्  = ocean of grace, सुमुखम् = handsome,  त्रिनेत्रम् = three-eyed
जटाधरम् = matted locks, पार्वति वाम भागम्, = Parvatiji to the left side
सदाशिवम् = always kind, रुद्रम् = angry, अनन्त रूपम् = limitless forms
 चिदम्बरेशम् = Lord of Chidambaram, ह्र्दि भावयामि = meditate on

I meditate on that Lord of Chidambaram,
Who is the ocean of mercy,
Who has a pleasant mien (handsome),
Who has three eyes,
Who has matted locks,
Who keeps Parvatiji on his left side,
Who is ever peaceful,
And who is limitless and angry.

vAcAmatItam phaNi bhUSaNAgam,
ganeza tAtam dhanasya mitram,
kandarpa nAzam, kamalotpalAkSam,
cidambarezam hrdi bhAvayAmi.     

वाचामतीतम् फणि भूषणागम्
गनेश तातम् धनस्य मित्रम्
कन्दर्प नाशम्, कमलोत्पलाक्षम्
चिदम्बरेशम् ह्र्दि भावयामि    

I meditate on that Lord of Chidambaram,
Who is beyond words,
Who wears the serpent as ornament,
Who is the father of Ganesa,
Who is the friend of Kubhera,
Who destroys pride,
And who has eyes like the lotus flower.

ramezavandyam rajatAdrinAtham,
zrI vAmadevam  bhava dukhanAzam,
rakSAkaram rAkSasa pIrItAnAm,
cidambarezam hrdi bhAvayAmi.     

रमेशवन्द्यम् रजताद्रिनाथम्
श्री वामदेवम्  भव दुखनाशम्
रक्षाकरम् राक्षस पीरीतानाम्
चिदम्बरेशम् ह्र्दि भावयामि

I meditate on that Lord of Chidambaram,
Who is worshipped by Lord Vishnu,
Who is the lord of the silver mountain,
Who judges and awards punishments,
Who destroys the sorrow of the world,
And who protects those troubled by rakshasas.