Tuesday, May 08, 2012

Godaddy SSL Site Seal Slow To Load - Solution

This is the godaddy.com site seal that
on a site secured by SSL would display
a popup of the certificate when clicked
When a website is secured with an SSL certificate from godaddy.com, a javascript code is given by godaddy to be placed on the website that when clicked displays a popup window with the SSL certificate details.

The problem is, that it can cause the page to load slowly, as the javascript makes various calls to check for flash and it is from the godaddy server, so if godaddy is being slow, then it will effect your website...not great. (This can happen when relying on any external javascripts, such as "addthis" code etc)

The solution to this is to stop your page from calling the godaddy javascript until the entire page has loaded (including images). This way, users of the site will not be aware of it happening, the page will load as usual and once finished then the godaddy seal code will run.

To do this, you need to save the godaddy javascript, which you can get by placing the url given in the godaddy code

for example :
https://seal.godaddy.com/getSeal?sealID=XXXXXXXXXXXXXXXXXXXXXXXXXXX

Paste it into your browser address bar, go to that page and view the source code to grab the javascript. Alternatively simply save page as.

The first line of that code is a call to the functions
seal_installSeal();

So comment that out or delete it, but take note of it as you will need it later.

Upload the javascript to your web server and note its location.

Then link to that inside the <head> tags of the webpages you want to show the seal.
<script src="path/to/godaddyseal.js" type="text/javascript"> </script>

Then wherever you want to show the seal on your website, you will need to put the following code..

<script type="text/javascript">
//call after page loaded
window.onload=seal_installSeal();
</script>



Monday, March 26, 2012

Jquery wildcard selector

It is useful in jquery to be able to use a wildcard in a selector for an #id

If you want the wildcard to match the beginning of a string the code is as follows...


$("[id^=something]")

If you want the wildcard to match the end of a string the code is as follows...

$("[id$=something]")

So the first would select any id that began with "something"
eg:
id="something1"
id="something2"
id="something3"

and the second would seect any id that ended with "something

eg:
id="1something"
id="2something"
id="3something"

This is very handy when there are multiple date pickers on a page, and also in many other situations where #ids may vary, but you want the same code to apply to all without having to specify each #id.

Sunday, March 25, 2012

Varsana - Day and Night at Radharanis Palace

varsana
Animation of day and night at Radharani's Palace in Varsana



Video of day and night at Radharani's Palace in Varsana
To the music Para Karenge

Thursday, March 08, 2012

Rudradwipa - Ninth Island Of Navadwip

Rudradvipa (being a friend).
Rudradvipa is Baelvana.

The 1700 year old Deity of Krishna At Belpukara, Sachi Mata's House
 At Belpukura (or Bilvapaksa ) in Rudradwip is the house of Sachi Mata, Nimais mother. Nilambara Cakravarti Thakur, Sachi Mata's father Deities are here, Sri Madana Gopala Belpukura are 1700 years old and were worshipped by Sachi Mata. In Vraja Belpukura is known as as Bilvavana.

The Four Kumaras, Sanaka, Sanandana, Sanatana, & Sanat Kumara

Lord Sivas favourite tree was the Bilva and once some Brahmanas pleased him by worshipping the Bilva (Bael) tree for two weeks. One of these Brahmanas was Nimbaditya, Siva told him to go to the sacred Bilva forest to see the four Kumaras and accept them as his Gurus. The four brothers gave him the Radha Krishna mantra and instructed him how to worship Radha Krishna with love. Nimbaditya then stayed at this sacred place and worshiped accordingly.

Sankaracharya

Sankarpura is the place where Lord Chaitanya told Sankarachraya to leave Navadvipa. Sankaracarya was within his heart, a topmost Vaishnava, but he pretended to be a Mayavadi, a servant of Maya, he was in fact an incarnation of Lord Siva. Whilst engaged in this pretense, he came to Navadwip. Gauracahndra appeared to him in a dream, telling him that although he was his dear servant following orders, the mayavadi doctrine had no place in Navadwip and he must leave so as not to be a bad influence on the inhabitants of Navadwip Dhama.

Lord Chaitanya Accepting Sannyas from Kesava Bharati


Nidaya Ghata is where Lord Chaitanya crossed The River Ganga to go to Katwa & receive sannyasa from Kesava Bharati. Nidaya means "without mercy" and the Ghata is called this, because his family named it thus, being so heart broken at his leaving them. However his taking Sannyas was not without mercy, it was in fact in order to bestow the greatest mercy of Krishna Prema upon all living entities.

Gauranga!


The Nine Islands Of Navadwip Mandala Parikrama

Modadrumadwipa - Eighth Island Of Navadwip

Modadrumadvipa (being a servant);
Modadrumadvipa is Bhandiravana. Mahatpur in Modadrumadvipa is Kamyavana.

Gaura Gadhadhara (left) Radha Madana Gopala (center) Radha Gopinath (small, right)
The deities above, are in Modrumadwipa at the Madana-Gopala Temple , Radha Gopinath are the small Deities on the right, they were worshiped by Sri Saranga Thakura. Radha Madana Gopala, the large Deities in the center, were worshipped by Vasudeva Datta. Gaura Gadhadhara, on the left, were the Deities of His Divine Grace Srila Puri Gosvami.

Sri Saranga Thakur lived in Godrumadvipa. In Vraja Lila Saranga Thakur was Nandimukhi.  he would sit and chant on the banks of the ganges and this way he came to have miraculous powers. Mahaprabhu encouraged him to take disciples, although he did not wish to for feaar of disturbing his bhajan. He eventuall agreed and said he would make a disciple of the next person he came across. That happened to be a dead body that washed up on the banks fo the ganges, so he revived the body. This disciple was known as Thakur Murari.

Saranga Deva Gaudiya Math, Sestablished by rila Bhaktisiddhanta Saraswati Goswami Thakur is here also.

Siddha Bakula Navadwip

Siddha Bakula in Modrumadwipa, is a tree that Nimai used to rest under when returning home from school in Vidyanagara. One day niticing that the tree was dying, the Lord embraced it, and gave it a new life. Today, even the tree is completely hollow inside, it is still grows and blossoms. It is in the courtyard of Sri Sarangapani’s house and it  is a neem-tree. Lord Chitanya later used to come here regularly along with His associates to perform Harinam Sankirtan.

Deities at Mamgachi, the birthplace of Sri Vrindavan Das Thakur

 At Mamgachi, the birthplace of Sri Vrindavan Thakur, can be seen the above Deities. Gaura Nitai are on the left, they are the original deities worshiped by Sri Vrindavan Das Thakura. On the  right are Sri Sri Radha Krishna,  installed by Srila Bhaktisiddhanta Sarasvati Thakura.

Vrindavan Das Thakura, Vyasdeva wrote Shri Caitanya Bhagavata (also known as Caitanya Mangala) descsribing the pasttimes of Gaura Hari in Navadwip. At 16 years old he took initiation from Lord Nityananda and travelled and preached with him. Srila Krishna das Kaviraj Goswami said of him...
"Vrndavana Dasa Thakura is Lord Nityananda's favourite devotee. And therefore he is the original Vyasadeva in describing the pas­times of Sri Caitanya Mahaprabhu."

 He was the son of Narayani Devi, who was the daughter of Srivas Thakura's brother. Mamgachi is also the ancestral home of Malini Devi, the wife of Srivasa Pandita.
Vasudeva Datta's House

Mukunda And Vasudeva Datta With Lord Chaitanyas Associates



Vasudeva Datta's house is in Modrumadwipa. Vasudeva Datta was a singer amongst the associates of Lord Chaitanya Mahaprabhu. In Vraja Lila he was the singer Madhuvrata. Vasudeva Datta was the older brother of Gauranga's associate Mukunda Datta and well known for his generosity. Vasudeva Datta was close with Srivasa Pandit and Shivananda Sena, living near to Kumarahatta and Kanchra Para where they lived. He couldnt stand seeing people suffering and asked Lord Chaitnya if he may take all their sins upon himself, to alleviate them. Gaurachandra was so fond of Vasudeva Datta that he used to repeat again and again...
  
“This body of mine belongs to Vasudeva. If he wants to sell me, I allow myself to be sold; I will not do otherwise. I announce this truth to all of you. If someone has even come into the briefest contact with Vasudeva Datta, he will be protected by Krishna. Listen all you Vaishnavas! I tell you the truth: this body of mine belongs to Vasudeva alone.”
(Chaitanya Bhagavat 3.5.27-30) 


The Nine Islands Of Navadwip Mandala Parikrama

Jahnudwipa - Seventh Island Of Navadwip

Jahnudvipa (praying);
Jahnudvipa is Bhadravana.

Bhishma Dying At Kurekshetra
Once Jahna Muni was sitting here chanting on the banks of the Ganga, when his acamana cup was washed away. Furious he drank all her water and did not release it for some days, when the King Bhagiratha worshipped him in fear. He released the water of the ganges from his ear, that is why the Ganges is also known as Jahnavi, the daughter of Jahnu. Lord Gauranga was pleased with Jahnu Muni and so appeared before him. Jahnu Muni then begged the Lord for the benediction to reside in Navadvipa Dham birth after birth. Lord Chaitanya granted him that, so that in the future Jahnu Muni would be able to see his sankirtana-lila.



Bhisma Tila is a hill that is located on the island of Jahnudwip. It is the birthplace of Bhishma, the son of King Santanu and Lord Chaitanya used to perform Sankirtana here with his associates.

Bhishma was the grandson (on his mothers side) of Jahna Muni. He lived in a ht near to Jahna Muni and Jahna Muni instructed him on religious principles, political science, the Supreme Lord and devotional service. When Bhishma was dying on the battlefield of Kurekshetra, he spoke about the appearance of Lord Gauranga. He predicted his appearance saying that...

 "In His early pastimes, He appears as a householder with a beautifully formed golden complexion like molten gold. In His later pastimes, He accepts the sannyasa order and is the highest abode of peace and devotion, for He silences the impersonalist non-devotees."

It is also at this place that Bhisma learned the highest knowledge that he later spoke to Maharaja Yudhisthir.

The Nine Islands Of Navadwip Mandala Parikrama

Ritudwipa - Sixth Island Of Navadwip

Ritudvipa (worshipping);
Radha Kunda is in Ritudvipa.

Sri Sri Gaura Gadhadhara At Champahatti, Ritudwipa
 Champahatti is the place where Srila Bhakti Promode Puri Goswami Maharaj took Sannyas initiation, there is a Temple of Gaura Gadadhara here. The Deities at Champahatti were
installed by Dvija Vaninatha, who was the younger brother of Gadadhara Pandita. The life size deities are over 500 years old.

This place is non deifferent to Khadiravana forest in Vrindavan. Srila Bhaktivinoda Thakura stated in his Navadvipa-bhava-taranga that it is the most beautiful place in Navadwip Dhama. Sri saci Nanadana and his associates would perform harinam sankirtan at the house of Vaninatha here. Lord Nityananda said that there was once a champaka forest there, that is a portion of Khadiravana in Vrindavana. Champakalata Sakhi performs her eternal pasttimes here sakhi, taking champaka flowers, stringing them into garlands and offering them to Sri Sri Radha and Krishna.  Dvaraka Puri and Ganga-sagara are present here.

When the great poet jayadeva lived in Nadia, King Laksmana Sena liked a poem he had written, the Dasavatara-stotra, he wanted to meet Jayadeva, so disguised himself as a Vaishnava and went to Jayadevas house and offered obeisances to him. Jayadeva recognised the King, and so the King invited him to his palace. Being very renounced, Jayadeva did not accept the invitation of the materialistic King and vowed instead to leave his Kingdom to reside in Jagannath Puri Dhama. The King asked him instead to reconsider and live in Champakahatta for some years, saying he would stay away from him unless he was invited. At this jayadeva recognised the King to be a devotee of Krishna and told him that he had addressed him as a materialistic person to test him. he agreed to stay in Champakahatta saying that the King could visit him in secret. Being happy with this, the King arranged for a nice cottage to be built for Jayadeva in Champakahatta, and Jayadeva and his wife Padmavati resided there for some years. Padmavati would collect baskets full of champaka flowers to worship the Lord.

Trees Manifested From Gauranga's Pens at Vidyanagara
Vidyanagara is where Nimai studied in the ashram of Ganga Das. Ganga das is non different from Sandipani Muni.  Once Nimai planted eleven of his wooden pens in the ground and they grew into trees. To this day, botanists have studied the trees and do no know what type of tree they are. There is none other like them.

Vidyanagar is the original source of the Vedas, it is the center of learning of the whole universe, Lord Brahma taught the Demi Gods and sages at Vidyanagara. Lord Caitanya would come here and debate with Sarvabhauma Bhattacarya's disciples, defeating them all with his logic. Srila Bhaktisiddhanta Sarasvati Maharaj established a Gaudiya Math temple here.

At the time of universal devastation, it is said that Navadwip is not destroyed, and at this time the Matsya avatara carries the Vedas to Vidyanagar in Ritudvipa.

Vidyanagar is where Praudha Maya resides, influencing the devotees to visit. In her form of Maha Maya she troubles those who are averse to the Vaishnavas, they can go to Vidyanagar and but receive only ignorance, disguised as knowledge, never love of God. Saraswati also resides in Vidyanagar and it is known as the place to get knowledge of Krishna and memorize sloka.

Valmika composed the Ramayana here, and Lord Brahma produced the four Vedas from his mouth. Visvamitra received the teaching of the Dhanur Veda, Dhanvantari received the Ayur Veda, Saunaka recited the mantras of the Vedas, and Lord Siva discussed tantra. Jaiminu wrote the Karma-mimamsa sastra here, Vedyavyasa wrote the Puranas, Pantajali the Yoga-sutra, Kanabhuk the Vaisesika philosophy, Kapila the Sankhya philosophy and Gautama wrote about logic and argument. Narada Muni wrote the Pancaratra here to teach people about devotional service.

Sarvabhauma Bhattacharya's House
Sarvabhauma Bhattacharya's was born in Vidyanagar. It is also where he held a school of logic,.

The dust here is from Nitai and Gauranga’s lotus feet.

Hidden Syama Kunda

There is a hidden Radha Kunda and Syama Kunda in Ritudwipa. Every day at noon time, Gauranga and his Sankirtan party are there and performing Harinam Sankirtan. Srila Prabhupada Bhaktisiddhanta Sarasvati Thakura manifested Sri Radha-kunda and Sri Syamakunda next to Candrasekhara-bhavana on the banks of the ancient Sri Prthu-kunda, or Ballala-dighi.

The Nine Islands Of Navadwip Mandala Parikrama

Koladwipa - Fifth Island Of Navadwip

Koladvipa (serving the lotus feet);
In Koladvipa is Bahulavana. In Koladvipa is a hill called Kuliya and this hill is Govardhana Hill.

Mahaprabhu Bari Temple
Mahaprabhu Bari, Vishnu Priya's Worshippable Deity


The Dhamesvara Mahaprabhu Bari Temple in Koladwip is where the deity worshipped by Vishnu Priya, wife of Gauranga Mahaprabhu, resides. It is a beautiful neem deity, that Vishnu Priya worshipped for 80 years after the Lord had taken Sannyas. She was only 16 years old when Gauranga left and so she worshipped the deity as her husband. On the day of Radhashtami Vishnu Priya would worship the Deity as Srimati Radharani. She passed away at the age of 96 years. Gauranga's wooden shoes, that she also worshipped, are also here. Her Deities arms are outstretched, as if to say "I am yours".




Boats approaching Samudraghar
 Samudragarh, is a place where in Dwarpara Yuga a great devotee of Krishna, Samudra Sen, ruled over. Samudra Sen refused to pay tribute to Maharaja Yudhisthira, so Bhima told him to prepare to fight. Samudra Sen did this because he wanted to have darshan of Krishna, he knew his army would overwhelm Bhimas, and so Krishna would come to the aid of Bhima, so granting him darshan. As planned when seeing Samudra Sen's army, Bhima called out to Krishna for help. Krishna appeared, but only to Samudra Sen, telling him that he would appear as Lord Chaitanya and showing him his form as Lord Gauranga. So Samudra Sen called off his troops and paid tribute to Bhima being satisfied having forced Krishna to appear.

Srila Jagannatha dasa Babaji, the spiritual master of Srila Bhaktivinode Thakur


Sri Jagannath Das Babaji's Samadhi Mandir
Jagannatha Dasa Babaji Bhajana Kutir & Samadhi
Srila Jagannatha Dasa Babaji used to meet daily with Srila Bhaktivinoda Thakura and Gaurakishora Dasa Babaji to discuss Krishna Katha. He was born around 1800AD and lived for 146 years. He took initiation into the disciplic succession from Sri Madhusudana Dasa Babaji. Sri jagannath Das Babaji revealed many of the lost Holy Places in Navadwip Dhama, including Yogapith, Srivasa Angana. When Srila Bhaktivinoda Thakur was looking for Lord Chaitanya's birthplace, he asked Jagannatha dasa Babaji to go with him. He was so old and frail that he had to be carried in a basket by Bihari Lal. When he arrived at that place in Antardwipa, he leapt out of the basket and started dancing and singing, Haribol! Gauranga! Ei to Nimai Janmabhoomi!"(This is the Birthplace of Nimai!). In later life, along with a 12 year old Srila Bhaktisiddhanta Saraswati Thakura prepared the Vaishnava calendar in accordance with the proper siddhanta. Bhaktivinoda Thakura called him the commanding chief of the devotees.

Varaha(left) and Radha Vinode Bihari at Devananda
Gaudiya Math where all offences are forgiven

Devananda Pandit lived in Koladwipa, he was a teacher of Srimad Bhagavatam and one day, before the advent of Gauranga,  Srivas Pandita went to one of his classes. Srivas became ecstatic with prema on hearing the Bhagavatam's sweet words and started rolling on the ground. The other students were not happy with Srivas behaving this way and tried to have him thrown out the class, saying that he was mad and not paying proper respect to the Srimad Bhagavatam. Devananda Pandit did not intervene and so Srivas was ejected from the assembly by the other students. Unfortunately for Devananda, as he was there and did nothing to stop his students doing this, he also partook of the sinful reaction of offending Srivas Pandit. Srivas said nothing, just returned home.

Some years later when Gauranga Mahaprabhu displayed his Mahaprakash form at Srivas Pandita's house, he asked Srivas if he remembered the incident. One day when walking in Navadwipa, Mahaprabhu past by Devananda Pandit's house where he heard him teaching Srimad Bhagavatam. He felt enraged and did not want to hang around there, he spoke angry words, full of truths about Srimad Bhagavatam, such as that the Bhagavatam promoted Bhakti as the ultimate goal of life and that the essence of the Bhagavatam could only be known through devotion, not scholarship. Then Gauranga left. Devananda heard these words from in his house.

After Lord Chaitanya had taken Sannyas and gone to Jagannath Puri, Devananda remembered those words and regretted not going out to meet Gauranga, as he felt sure that someone who spoke such truths of the Bhagavatam was an exalted personality. When he saw Sri Vakesvara Pandita rolling on the ground after an ecstatic kirtan, instead of ignroing him, as he had Srivas, he went and picked him up and held him on his lap till he recovered. This was the beginning of his bhakti-seva.

Five years later, Lord Chaitanya returned to Navadwipa and Devananda Pandita went to take darshan. When Gauranga saw him, he told him that he was pleased with him for assisting his devotee Vakesvara. Devananda felt overwhelmed at hearing the Lord speak to him and begged for forgiveness of his sins and for the Lord to give him proper instruction on Srimad Bhagavatam. Mahaprabhu explained the essence of Bhagavatam and then told him that as the Book Bhagavatam is non different to the Bhakta Bhagavatam, that he would need to ask forgiveness of Srivas. So Devananda went to Srivas and begged for forgiveness. Srivasa Thakura embraced Devananda and forgave him and from that day on Devananda was accepted amongst the followers of mahaprabhu as a great devotee.

Devananda Gaudiya Math is built at the place where Devananda Pandita was forgiven of his offences. Anyone who sets foot here becomes free from all offences.

The Nine Islands Of Navadwip Mandala Parikrama

Madhyadwipa - Fourth Island Of Navadwipa

Madhyadvipa (remembering);
Lord Siva On Lord Brahma's Hamsa Vahana, Swan Carrier
In Madhyadwipa, there is a deity of Lord Siva riding on Lord Brahma's Hamsa Vahana, his swan carrier.

Chakra Kunda in Naimisharanya Tirtha




 Naimisharanya Forest is where Lord Siva, Saunaka Rsi and other sages heard about the pastimes of Sri Cahitanya Mahaprabhu (Gaura Bhagavatam) from Suta Gosvami. It is also where Srila Vedavyasa instructed his disciples in the Vedas and Puranas and His disciple Lomaharshana narrated the Puranas. In the Vayu Purana it is described how in Satya Yuga, the sages wanted to perform a sacrifice and needed advice where to do it. To guide them Lord Brahma created a wheel called the Manomaya Chakra, he threw the Charkra and told the sages that where it broke would be a suitable place for them to perform their yagna. It landed and broke in Naimisharanya Forest, creating a huge fountain of water that had to be stopped by the Goddess Shakti. Where the wheel broke is also said to be the epicenter of Prithvimandala (the earth planet), Chakra Kund is there, where devotees can bathe and be purified from sinful activities. Lord Vishnu with his chakra, once destroyed an entire army of asuras in one second at Naimisharanya.


Brahmana Puskara is where a young brahmana named Diva Dasa was in Navadwip and had a desire to visit Puskara, that is known to be in Rajastan and he was unable to go there. He was told in a dream that if he chanted the name of the Lord, his desire would be fulfilled. Much later on, when Diva das was an old man, Puskara appeared in front of his hut, in the form of a pond. In a dream the personification of Puskara told him to bathe in the pond. When he did, before his eyes manifested Puskara Raja, who is the king of the holy places. Diva Das apologised to the king for making him come such a long way to Navawdip, but the King replied that he was there anyway. he explained that as Navadvipa is the embodiment of all the Holy Places, they all reside in and do service to Navadvipa. He stated, “I have exhibited one form of Puskara in the west, but I always reside here.” he also told him that whatever benefit one gets from bathing in many Holy Places many times, could be achieved by staying just one night in Navadvipa Dhama, because all the Holy Places on earth reside in Navadwip eternally. Diva das was told that in Kali Yuga he would take birth and take part in Gaura Lila.

 Kurekshetra, (Uchahatta, also called Hatta Danga) is on the island of Madhadwip. Lord Nityananda said that all the Devas and all the tirthas came to Kurekshetra. The devas set up a market there for discussing Gauranga's pasttimes, and that just by seeing this place, a person receives an ocean of prema, love for God.

Pancaveni, where the Demi Gods go to relax

Gauranga Setu On The River Ganga
 Pancaveni and Gauranga Seti are where the five rivers, Alaknanda, Mandakini, Yamuna, Manasi Ganga, & Sarasvati all flow into the Ganga, in a desire to serve Gauranga. The DemiGods come to this place to relax. Gauranga took bath here and purified the place of the sins of the people of Kali Yuga. Even Vyasadeva and the risis glorify this place, recognising that there is no place in all the fourteen worls, that can compare.

The Nine Islands Of Navadwip Mandala Parikrama

Godrumadwipa - Third Island Of Navadwip

Godrumadwipa (chanting); Godrumadvipa is Nandagram.Godruma includes Nandagaon and Bandhiravana.
Lord Narasimhadeva at Nrsimhapalli
Nrsimhapalli is the place that Lord Nrsimhadeva came after he had killed Hiranyakashipu in Satya Yuga, the deity dates back to that time. The lake here is where Lord Nrsimhadeva washed the blood from his hands.

Hari Hara Kshetra, where Sri Hari and Sri Hara are manifest as one deity
Harihara-ksetra, also known as Maha Varanasi, is where Sri Hari and Sri Hara (Vishnu and Shiva) are both manifested in the one deity. Lord Siva took shelter of this place after Sudarshan Chakra burnt down his city of Kazi. That is why it is known as Maha-Kasi. Hari-Hara is the manifestation of Lord Vishnu and Lord Siva, manifested by the Lord to show how dear Lord Siva is to him. If someone dies here, Sri Sambhu (Lord Siva) chants Sri Gaura’s name in his ear, so delivering him from the material world.

Mango Tree At Ama Ghata
During kirtana, Gauranga Mahaprabhu noticing that the devotees were getting tired, planted a mango seed in the ground, that immediately grew into the most beautiful mango tree, bearing fruit without skin or seeds. Gaurasundara then washed and offered then all to Krishna, before taking one for himself and then sharing the rest amongst the devotees. The mango tree can still be seen at Ama Ghata.

The Deities At Suvarna Bihar Math
Suvarna Bihar Math is where lie the remains of King Sena's palace, from Satya Yuga. King Sena was Buddhimata Khan in Gaura-lila. Buddhimata Khan was a wise and wealthy friend of Nimai's family. He paid for all the ceremonies at the marriage between Nimai and Vishnu Priya. Beautiful Deities of Sri Sri Radha-Madhava are at Suvarna Bihar Gaudiya Math.

Svananda Sukhada Kunja, where Bhaktivinode Thakur lived
Sri Gaura Gadhadhara worshipped by Bhaktivinode Thakur
 Svananda Sukhada Kunja is where Bhaktivinode Thakur lived, it was built in 1889. The deities of Gaura Gadhadhara, that were worshipped by Bhaktivinode Thakur, reside here.

Surabhi Kunj, where the Surabhi cow (desire cow) eternally resides
Surabhi Kunj is where Lord Nityananda opened the marketplace of the Holy Names in Navadwip. In Bhaktivinode Thakurs book, Sri Navadvipa Mahatmya , Lord Nityananda says that Surabhi stays in Godrumadwip eternally. Lord Indras pride was crushed when Krishna lifted Govardhana hill with his finger, he did not understand the pasttimes of the Lord and so he asked advice of Surabhi, who advised him, to go to Navadvipa-dhama and worship Nimai to avoid committing offenses. They came to Surabhi Kunj and sang Gauranga's name and Surabhi remains there beside a banyan tree, constantly serving Gauranga's lotus feet. That is why the island is called Godrumadwip, go means cow, druma means tree (go" not only means cow, but it means cows, calves, gopis and gopas). Markendaya took shelter here during the great flood of devastation, brought there by the merciful Surabhi who saw him unconscious in the waves. When he came ound he saw Surabhi under the tree and he asked her for milk, which she gave. He asked her how he could escape the cycles of birth and death and she instructed him thus...

"By taking shelter in the worship of Gauranga, you will attain the sweet fruit of love of God. When that prema sits in your heart, it will drown you in the nectar of the playful pastimes of the Lord. You will get the shelter of Radha's lotus feet in Vraja, and your mind will be fixed in the service of the divine couple. The happiness of this service is unmatched, while in the non-differentiated Brahman there is only illusory knowledge."

"In worshiping Gauranga, there is no consideration. When you call out the name of Gaura, your sinful reactions are destroyed and you are freed from all distress as your material life is vanquished. Besides sinful reactions, even the fruits of mental speculation, which are only trouble, will be cut out at the root. Therefore, you should stay on this island, and submerge yourself in gauranga-rasa while worshiping the Lord."

Hearing this Markendaya took to chanting Gauranga, sometimes laughing, sometimes crying, Surabhi Kunj is the place where Markendaya received life!

The Nine Islands Of Navadwip Mandala Parikrama

Simantadwipa - Second Island Of Navadwip

Simantadvipa (hearing);
Mayamari in Simantadvipa is Talavana

The Champaka Tree At Chand Kazi Samadhi

Chand Kazi was a strict Muslim and disapproved of the chanting of the Holy Names. He tried to forbid Sankirtana taking soldiers to the house of Srivas Pandit, the soldiers broke Mrdanga and confiscated the instruments, Chand kazi threatened to imprison those who did not obey him. Hearing of this Chaitanya Mahaprabhu gathered togethre many to perform sankirtana in every town and village, by the light of the moon they sang and danced.  A Champaka tree at the place, was witness to this and ever since, despite being hollow, flowers all year round.

Kolavecha Sridhara's Place
Kolavecha Sridhara made his living selling banana leaves and stalks, he was very poor, but despite that he would give 50% of his earnings to worship the Ganga and he would chant the Holy Names every night (much to the displeasure of his neighbours). Nimai used to visit Kolavecha Sridhara daily, teasing him by fighting with him over the price of banana leaves and accusing him of secretly being a rich man pretending to be poor.  Kolavecha tried to persuade Nimai to go elsewhere for his supplies of banana leaves, but Nimai refused saying that he would not be able to find such a steady supplier anywhere else. Nimai insisted to be fed and despite his poverty Kolavecha agreed to feed Nimai for free. Kolaveca Sridhara is a very dear, eternal associate of Lord Chaitanya.

The Nine Islands Of Navadwip Mandala Parikrama

Antardwipa - First Island Of Navadwip

Jagannath Mishra and Shachi Mata - Nimai's Parents


Antardvipa, Sri Mayapur (surrendering everything);
Antardvipa is Gokula-Mahavana. The forest of Madhuvana and Mathura city are north of Prithu Kunda.

The island at the junction of the Ganges and the Yamuna is called Antardvipa. Within Antardvipa is Sri Dham Mayapur, where Lord Caitanya appeared.
Within the central island of Antardvipa is Mayapur. This entire area is considered a holy place.

Just as Krishna was born and performed his childhood pasttimes in Gokula, living in the house of Nanda Maharaja and Mother Yasoda. So too in the form of Lord Chaitanya Mahaprabhu he performed His childhood pastimes in the house of Jagannatha Mishra in Navadvipa. Gokula is known as non different to Antardvipa, that is it is simultaneously one and different, achintya bheda abheda tattva. Jagannath and Shachi named the Lord Nimai, to protect him from evil spirits, as evil spirits can not come close to a Neem tree, so the name offered some protection to their special child. It was later after taking the renounced order of life, that Nimai became known as Sri Krishna Chaitanya, Lord Gauranga Mahaprabhu.

As a baby, Nimai could only be pacified by the singing of the Holy Names. He would stp crying and dance when he heard them.

Just as Krishna used to play on the banks of the Yamuna at Brahmanda Ghat in Vraja, so too Sri Sacinandana Gaurahari, Krsna in the form of Nimai Pandita, used to play games on the bank of the Ganga in Navadvip. Nimai would go to the girls on the banks of the Ganga, who were  worshipping Sankara with various offerings, such as sweets. He would tell them that they should give him all that they had collected to offer to the Ganga to receive a benediction. If they did not hand over all their paraphernalia meant for the Ganges, to him, he said a curse would fall upon them. They would argue with him, but he would take their offerings by force and tell them not to be upset, because he was the husband of the Ganga and that they were greatly blessed to have his darshan.

Sometimes Nimai would splash water on the Brahmanas who were on the banks of the Ganga here taking bath and reciting their mantras. He would wait until they were clean and had applied their tilak and then he would spit water from his mouth at them. Of course they would get angry claiming that Nimai had contaminated them, not knowing that Nimai was the supremely pure Sri Sacinandana Gaurahari himself. They would complain to his father, Jagannatha Misra, who decided that he should beat Nimai with a stick when he returned hom, to teach him a lesson, not to bother the Brahmanas again. The girls that Nimai had teased heard of this and  warned him about his impending beating. So Nimai smudged ink and dust on his face and hands and when his father asked him whether he had been bothering people on the banks of the Ganga, he denied it, saying that he had not been there and had come straight home from school. As Jagannath Misra could see the dust and ink spots on Nimai, he believed his son, thinking that the Brahmanas must have been mistaken. So Nimai escaped the beating and his father was pacified.

Nimais parents were worried that if Nimai continued learning from scriptures, that he would forsake family life, like his brother Vishvarupa had. So they tried to end his education. This only made Nimai more mischievous, he would go to a place where dirty pots were collected and sit down there, angering his mother. Nimai said to her..
“How can a fool tell the difference between that which is pure and that which is not? How can the pots that have been used to cook for Vishnu possibly be contaminated? What is more, how can any place be impure if I am there? Ideas of purity and impurity from the karma-kanda have no place in devotion to the Lord. It is just the imagination of people who know nothing but the material world.”

She dragged him out of that place, but after that entreated Jagannath Mishra to allow him to continue his studies, which he did.

So Nimai performed His childhood pastimes on the banks of the Ganga, which is also where He met Visnupriya later to be his wife.

Also in Antardvipa-Mayapura is a place called Srivasa-angana, the home of Srivasa Thakura. Sri Caitanya Mahaprabhu, Sri Nityananda prabhu, Sri Gadadhara pandita, Sri Advaita Acarya and Srivasa Thakura,  would perform congregational chanting, maha-sankirtana, at this place.

The Nine Islands Of Navadwip Mandala Parikrama

Tuesday, February 21, 2012

Sri Nagar Kirtana

Sri Nagar Kirtana
bhajan written by Bhaktivinode Thakur




Click play to listen to the mp3

(sung by Visakha, Su Devi and Kisori)

Sunday, January 29, 2012

Dreamweaver 5.5 - viewing android app in emulator

If an app will not load from dreamweaver into the android emulator and the following error show in the build.log

Install file not specified.
'ant install' now requires the build target to be specified as well.
ant debug install
ant release install
ant instrument install
This will build the given package and install it.
Alternatively, you can use
ant installd
ant installr
ant installi
ant installt
to only install an existing package (this will not rebuild the package.)


find the build.xml file, located in the target directory of the app that was being built...
at the end of the file alter the line

<import file="${sdk.dir}/tools/ant/build.xml" />

to

<import file="${sdk.dir}/tools/ant/build.xml" as="imported" />

<!-- Override the target to add the dependency -->
<target name="install"
depends="-set-debug-files,imported.install" />

As explained here , something to do with the the most recent Android SDK has an extra parameter that is not yet supported by the PhoneGap integration kit in Dreamweaver. n.b. Before attempting to build and emulate again, the files in the bin folder of the target directory must be deleted.



Another error can occur if more than one emulator/device is running, so for example if an android phone is plugged in via usb and an emulator also running, the app will not load in either, so just run one at a time.

Friday, January 27, 2012

The Happy Prince

High above the city, on a tall column, stood the statue of the Happy

Prince. He was gilded all over with thin leaves of fine gold,
for eyes he had two bright sapphires, and a large red ruby glowed on
his sword-hilt.

He was very much admired indeed. “He is as beautiful
as a weathercock,” remarked one of the Town Councillors who wished
to gain a reputation for having artistic tastes; “only not quite
so useful,” he added, fearing lest people should think him unpractical,
which he really was not.

“Why can’t you be like the Happy Prince?” asked
a sensible mother of her little boy who was crying for the moon.
“The Happy Prince never dreams of crying for anything.”

“I am glad there is some one in the world who is quite happy,”
muttered a disappointed man as he gazed at the wonderful statue.

“He looks just like an angel,” said the Charity Children
as they came out of the cathedral in their bright scarlet cloaks and
their clean white pinafores.

“How do you know?” said the Mathematical Master, “you
have never seen one.”

“Ah! but we have, in our dreams,” answered the children;
and the Mathematical Master frowned and looked very severe, for he did
not approve of children dreaming.

One night there flew over the city a little Swallow. His friends
had gone away to Egypt six weeks before, but he had stayed behind, for
he was in love with the most beautiful Reed. He had met her early
in the spring as he was flying down the river after a big yellow moth,
and had been so attracted by her slender waist that he had stopped to
talk to her.

“Shall I love you?” said the Swallow, who liked to come
to the point at once, and the Reed made him a low bow. So he flew
round and round her, touching the water with his wings, and making silver
ripples. This was his courtship, and it lasted all through the
summer.

“It is a ridiculous attachment,” twittered the other
Swallows; “she has no money, and far too many relations”;
and indeed the river was quite full of Reeds. Then, when the autumn
came they all flew away.

After they had gone he felt lonely, and began to tire of his lady-love.

“She has no conversation,” he said, “and I am afraid
that she is a coquette, for she is always flirting with the wind.”
And certainly, whenever the wind blew, the Reed made the most graceful
curtseys. “I admit that she is domestic,” he continued,
“but I love travelling, and my wife, consequently, should love
travelling also.”

“Will you come away with me?” he said finally to her;
but the Reed shook her head, she was so attached to her home.

“You have been trifling with me,” he cried. “I
am off to the Pyramids. Good-bye!” and he flew away.

All day long he flew, and at night-time he arrived at the city.
“Where shall I put up?” he said; “I hope the town
has made preparations.”

Then he saw the statue on the tall column.

“I will put up there,” he cried; “it is a fine
position, with plenty of fresh air.” So he alighted just
between the feet of the Happy Prince.

“I have a golden bedroom,” he said softly to himself
as he looked round, and he prepared to go to sleep; but just as he was
putting his head under his wing a large drop of water fell on him.

“What a curious thing!” he cried; “there is not a
single cloud in the sky, the stars are quite clear and bright, and yet
it is raining. The climate in the north of Europe is really dreadful.
The Reed used to like the rain, but that was merely her selfishness.”

Then another drop fell.

“What is the use of a statue if it cannot keep the rain off?”
he said; “I must look for a good chimney-pot,” and he determined
to fly away.

But before he had opened his wings, a third drop fell, and he looked
up, and saw—Ah! what did he see?

The eyes of the Happy Prince were filled with tears, and tears were
running down his golden cheeks. His face was so beautiful in the
moonlight that the little Swallow was filled with pity.

“Who are you?” he said.

“I am the Happy Prince.”

“Why are you weeping then?” asked the Swallow; “you
have quite drenched me.”

“When I was alive and had a human heart,” answered the
statue, “I did not know what tears were, for I lived in the Palace
of Sans-Souci, where sorrow is not allowed to enter. In the daytime
I played with my companions in the garden, and in the evening I led
the dance in the Great Hall. Round the garden ran a very lofty
wall, but I never cared to ask what lay beyond it, everything about
me was so beautiful. My courtiers called me the Happy Prince,
and happy indeed I was, if pleasure be happiness. So I lived,
and so I died. And now that I am dead they have set me up here
so high that I can see all the ugliness and all the misery of my city,
and though my heart is made of lead yet I cannot chose but weep.”

“What! is he not solid gold?” said the Swallow to himself.

He was too polite to make any personal remarks out loud.

“Far away,” continued the statue in a low musical voice,
“far away in a little street there is a poor house. One
of the windows is open, and through it I can see a woman seated at a
table. Her face is thin and worn, and she has coarse, red hands,
all pricked by the needle, for she is a seamstress. She is embroidering
passion-flowers on a satin gown for the loveliest of the Queen’s
maids-of-honour to wear at the next Court-ball. In a bed in the
corner of the room her little boy is lying ill. He has a fever,
and is asking for oranges. His mother has nothing to give him
but river water, so he is crying. Swallow, Swallow, little Swallow,
will you not bring her the ruby out of my sword-hilt? My feet
are fastened to this pedestal and I cannot move.”

“I am waited for in Egypt,” said the Swallow. “My
friends are flying up and down the Nile, and talking to the large lotus-flowers.
Soon they will go to sleep in the tomb of the great King. The
King is there himself in his painted coffin. He is wrapped in
yellow linen, and embalmed with spices. Round his neck is a chain
of pale green jade, and his hands are like withered leaves.”

“Swallow, Swallow, little Swallow,” said the Prince,

“will you not stay with me for one night, and be my messenger?
The boy is so thirsty, and the mother so sad.”

“I don’t think I like boys,” answered the Swallow.
“Last summer, when I was staying on the river, there were two
rude boys, the miller’s sons, who were always throwing stones
at me. They never hit me, of course; we swallows fly far too well
for that, and besides, I come of a family famous for its agility; but
still, it was a mark of disrespect.”

But the Happy Prince looked so sad that the little Swallow was sorry.
“It is very cold here,” he said; “but I will stay
with you for one night, and be your messenger.”

“Thank you, little Swallow,” said the Prince.

So the Swallow picked out the great ruby from the Prince’s
sword, and flew away with it in his beak over the roofs of the town.

He passed by the cathedral tower, where the white marble angels were
sculptured. He passed by the palace and heard the sound of dancing.
A beautiful girl came out on the balcony with her lover. “How
wonderful the stars are,” he said to her, “and how wonderful
is the power of love!”

“I hope my dress will be ready in time for the State-ball,”
she answered; “I have ordered passion-flowers to be embroidered
on it; but the seamstresses are so lazy.”

He passed over the river, and saw the lanterns hanging to the masts
of the ships. He passed over the Ghetto, and saw the old Jews
bargaining with each other, and weighing out money in copper scales.
At last he came to the poor house and looked in. The boy was tossing
feverishly on his bed, and the mother had fallen asleep, she was so
tired. In he hopped, and laid the great ruby on the table beside
the woman’s thimble. Then he flew gently round the bed,
fanning the boy’s forehead with his wings. “How cool
I feel,” said the boy, “I must be getting better”;
and he sank into a delicious slumber.

Then the Swallow flew back to the Happy Prince, and told him what
he had done. “It is curious,” he remarked, “but
I feel quite warm now, although it is so cold.”

“That is because you have done a good action,” said the
Prince. And the little Swallow began to think, and then he fell
asleep. Thinking always made him sleepy.

When day broke he flew down to the river and had a bath. “What
a remarkable phenomenon,” said the Professor of Ornithology as
he was passing over the bridge. “A swallow in winter!”

And he wrote a long letter about it to the local newspaper. Every
one quoted it, it was full of so many words that they could not understand.

“To-night I go to Egypt,” said the Swallow, and he was
in high spirits at the prospect. He visited all the public monuments,
and sat a long time on top of the church steeple. Wherever he
went the Sparrows chirruped, and said to each other, “What a distinguished
stranger!” so he enjoyed himself very much.

When the moon rose he flew back to the Happy Prince. “Have
you any commissions for Egypt?” he cried; “I am just starting.”

“Swallow, Swallow, little Swallow,” said the Prince,
“will you not stay with me one night longer?”

“I am waited for in Egypt,” answered the Swallow.
“To-morrow my friends will fly up to the Second Cataract.
The river-horse couches there among the bulrushes, and on a great granite
throne sits the God Memnon. All night long he watches the stars,
and when the morning star shines he utters one cry of joy, and then
he is silent. At noon the yellow lions come down to the water’s
edge to drink. They have eyes like green beryls, and their roar
is louder than the roar of the cataract.

“Swallow, Swallow, little Swallow,” said the Prince,
“far away across the city I see a young man in a garret.
He is leaning over a desk covered with papers, and in a tumbler by his
side there is a bunch of withered violets. His hair is brown and
crisp, and his lips are red as a pomegranate, and he has large and dreamy
eyes. He is trying to finish a play for the Director of the Theatre,
but he is too cold to write any more. There is no fire in the
grate, and hunger has made him faint.”

“I will wait with you one night longer,” said the Swallow,
who really had a good heart. “Shall I take him another ruby?”

“Alas! I have no ruby now,” said the Prince; “my
eyes are all that I have left. They are made of rare sapphires,
which were brought out of India a thousand years ago. Pluck out
one of them and take it to him. He will sell it to the jeweller,
and buy food and firewood, and finish his play.”

“Dear Prince,” said the Swallow, “I cannot do that”;
and he began to weep.

“Swallow, Swallow, little Swallow,” said the Prince,
“do as I command you.”

So the Swallow plucked out the Prince’s eye, and flew away
to the student’s garret. It was easy enough to get in, as
there was a hole in the roof. Through this he darted, and came
into the room. The young man had his head buried in his hands,
so he did not hear the flutter of the bird’s wings, and when he
looked up he found the beautiful sapphire lying on the withered violets.

“I am beginning to be appreciated,” he cried; “this
is from some great admirer. Now I can finish my play,” and
he looked quite happy.

The next day the Swallow flew down to the harbour. He sat on
the mast of a large vessel and watched the sailors hauling big chests
out of the hold with ropes. “Heave a-hoy!” they shouted
as each chest came up. “I am going to Egypt”! cried
the Swallow, but nobody minded, and when the moon rose he flew back
to the Happy Prince.

“I am come to bid you good-bye,” he cried.

“Swallow, Swallow, little Swallow,” said the Prince,

“will you not stay with me one night longer?”

“It is winter,” answered the Swallow, “and the
chill snow will soon be here. In Egypt the sun is warm on the
green palm-trees, and the crocodiles lie in the mud and look lazily
about them. My companions are building a nest in the Temple of
Baalbec, and the pink and white doves are watching them, and cooing
to each other. Dear Prince, I must leave you, but I will never
forget you, and next spring I will bring you back two beautiful jewels
in place of those you have given away. The ruby shall be redder
than a red rose, and the sapphire shall be as blue as the great sea.”

“In the square below,” said the Happy Prince, “there
stands a little match-girl. She has let her matches fall in the
gutter, and they are all spoiled. Her father will beat her if
she does not bring home some money, and she is crying. She has
no shoes or stockings, and her little head is bare. Pluck out
my other eye, and give it to her, and her father will not beat her.”

“I will stay with you one night longer,” said the Swallow,
“but I cannot pluck out your eye. You would be quite blind
then.”

“Swallow, Swallow, little Swallow,” said the Prince,
“do as I command you.”

So he plucked out the Prince’s other eye, and darted down with
it. He swooped past the match-girl, and slipped the jewel into
the palm of her hand. “What a lovely bit of glass,”
cried the little girl; and she ran home, laughing.

Then the Swallow came back to the Prince. “You are blind
now,” he said, “so I will stay with you always.”

“No, little Swallow,” said the poor Prince, “you
must go away to Egypt.”

“I will stay with you always,” said the Swallow, and
he slept at the Prince’s feet.

All the next day he sat on the Prince’s shoulder, and told
him stories of what he had seen in strange lands. He told him
of the red ibises, who stand in long rows on the banks of the Nile,
and catch gold-fish in their beaks; of the Sphinx, who is as old as
the world itself, and lives in the desert, and knows everything; of
the merchants, who walk slowly by the side of their camels, and carry
amber beads in their hands; of the King of the Mountains of the Moon,
who is as black as ebony, and worships a large crystal; of the great
green snake that sleeps in a palm-tree, and has twenty priests to feed
it with honey-cakes; and of the pygmies who sail over a big lake on
large flat leaves, and are always at war with the butterflies.

“Dear little Swallow,” said the Prince, “you tell
me of marvellous things, but more marvellous than anything is the suffering
of men and of women. There is no Mystery so great as Misery.
Fly over my city, little Swallow, and tell me what you see there.”

So the Swallow flew over the great city, and saw the rich making
merry in their beautiful houses, while the beggars were sitting at the
gates. He flew into dark lanes, and saw the white faces of starving
children looking out listlessly at the black streets. Under the
archway of a bridge two little boys were lying in one another’s
arms to try and keep themselves warm. “How hungry we are!”

they said. “You must not lie here,” shouted the Watchman,
and they wandered out into the rain.

Then he flew back and told the Prince what he had seen.

“I am covered with fine gold,” said the Prince, “you
must take it off, leaf by leaf, and give it to my poor; the living always
think that gold can make them happy.”

Leaf after leaf of the fine gold the Swallow picked off, till the
Happy Prince looked quite dull and grey. Leaf after leaf of the
fine gold he brought to the poor, and the children’s faces grew
rosier, and they laughed and played games in the street. “We
have bread now!” they cried.

Then the snow came, and after the snow came the frost. The
streets looked as if they were made of silver, they were so bright and
glistening; long icicles like crystal daggers hung down from the eaves
of the houses, everybody went about in furs, and the little boys wore
scarlet caps and skated on the ice.

The poor little Swallow grew colder and colder, but he would not
leave the Prince, he loved him too well. He picked up crumbs outside
the baker’s door when the baker was not looking and tried to keep
himself warm by flapping his wings.

But at last he knew that he was going to die. He had just strength
to fly up to the Prince’s shoulder once more. “Good-bye,
dear Prince!” he murmured, “will you let me kiss your hand?”

“I am glad that you are going to Egypt at last, little Swallow,”
said the Prince, “you have stayed too long here; but you must
kiss me on the lips, for I love you.”

“It is not to Egypt that I am going,” said the Swallow.
“I am going to the House of Death. Death is the brother
of Sleep, is he not?”

And he kissed the Happy Prince on the lips, and fell down dead at
his feet.

At that moment a curious crack sounded inside the statue, as if something
had broken. The fact is that the leaden heart had snapped right
in two. It certainly was a dreadfully hard frost.

Early the next morning the Mayor was walking in the square below
in company with the Town Councillors. As they passed the column
he looked up at the statue: “Dear me! how shabby the Happy Prince
looks!” he said.

“How shabby indeed!” cried the Town Councillors, who
always agreed with the Mayor; and they went up to look at it.

“The ruby has fallen out of his sword, his eyes are gone, and
he is golden no longer,” said the Mayor in fact, “he is
litttle beter than a beggar!”

“Little better than a beggar,” said the Town Councillors.

“And here is actually a dead bird at his feet!” continued
the Mayor. “We must really issue a proclamation that birds
are not to be allowed to die here.” And the Town Clerk made
a note of the suggestion.

So they pulled down the statue of the Happy Prince. “As
he is no longer beautiful he is no longer useful,” said the Art
Professor at the University.

Then they melted the statue in a furnace, and the Mayor held a meeting
of the Corporation to decide what was to be done with the metal.
“We must have another statue, of course,” he said, “and
it shall be a statue of myself.”

“Of myself,” said each of the Town Councillors, and they
quarrelled. When I last heard of them they were quarrelling still.

“What a strange thing!” said the overseer of the workmen
at the foundry. “This broken lead heart will not melt in
the furnace. We must throw it away.” So they threw
it on a dust-heap where the dead Swallow was also lying.

“Bring me the two most precious things in the city,”

said God to one of His Angels; and the Angel brought Him the leaden
heart and the dead bird.

“You have rightly chosen,” said God, “for in my
garden of Paradise this little bird shall sing for evermore, and in
my city of gold the Happy Prince shall praise me.”


(ebook can be downloaded here)

Friday, January 20, 2012

Twitter rss feed url

To access a twitter rss feed the url is now
http://api.twitter.com/1/statuses/user_timeline.rss?screen_name=xxxxx

where xxxxx is the twitter login name

It took me ages to find as Twitter no longer advertises rss feeds and I will probably forget it later so it is here for posterity and anyone else who may be looking for it.

Saturday, January 07, 2012

Srila Bhaktikumuda Santa Goswami Maharaja

Srila Bhaktikumuda Santa Goswami Maharaja, the last remaining disciple of Srila Bhaktisidhanta Saraswati Thakura Prabhupada left this world today at 1am. The well known founder of the Krishna Consciousness Movement, A.C Bhaktivedanta Swami Prabhupada, was also a disciple of Srila Bhaktisidhanta Saraswati Thakura Prabhupada, one of his God Brothers.

He is one in a line of disciplic succession of Gaudiya Vaishnavas, that will be continued by his own disciples and beyond.

Nityananda Gauranga





Thursday, January 05, 2012

PHP - Parsing a csv file created by Excel

Useful for updating tabular data on a website, without editing any html. Especially if there is no access to a database to upload the info. I found this function at php.net. It returns an array with all the data in the csv file...



function parse_csv($file,$comma=',',$quote='"',$newline="\n") {

$db_quote = $quote . $quote;

// Clean up file
$file = trim($file);
$file = str_replace("\r\n",$newline,$file);

$file = str_replace($db_quote,'"',$file); // replace double quotes with " HTML entities
$file = str_replace(',",',',,',$file); // handle ,"", empty cells correctly

$file .= $comma; // Put a comma on the end, so we parse last cell


$inquotes = false;
$start_point = 0;
$row = 0;

for($i=0; $i<strlen($file); $i++) {

$char = $file[$i];
if ($char == $quote) {
if ($inquotes) {
$inquotes = false;
}
else {
$inquotes = true;
}
}

if (($char == $comma or $char == $newline) and !$inquotes) {
$cell = substr($file,$start_point,$i-$start_point);
$cell = str_replace($quote,'',$cell); // Remove delimiter quotes
$cell = str_replace('"',$quote,$cell); // Add in data quotes
$data[$row][] = $cell;
$start_point = $i + 1;
if ($char == $newline) {
$row ++;
}
}
}
return $data;
}

$filename = "/path/to/file.csv";
$fd = fopen ($filename, "r");
$file = fread ($fd,filesize ($filename));


$new_array=parse_csv($file); // Returns an array of data from the csv file



Then the array can be used the same way a returned mysql result set would be used (see here). The array can be searched (see previous post here) or to simply access elements from the returned array you can simply call individual elements as such...


//line 1 data
echo $new_array[0][0];
echo $new_array[0][1];
echo $new_array[0][2];
//etc
//line 2 data
echo $new_array[1][0];
echo $new_array[1][1];
echo $new_array[1][2];
//etc


To pick out random lines from a csv (eg.with 3 columns year,day,month) and use that data the rand function can be used as follows...



$num=count($new_array);
$num=$num-1;//minus one to cope with 0 in array
$i=rand (0, $num );


$year=$new_array[$i][0];
$day=$new_array[$i][1];
$month=$new_array[$i][2];

echo "The random year is ".$year.". The random day is ".$day.". The random month is ".$month;