Monthly Archives: February 2008

A religious post

You are supposed to keep politics and religion out of your blog posts to be politically correct. I broke the first with this post. Now, I’ll break the second with this one.

I have been raised a Hindu. My stand is Hinduism is not a religion, it is a way of life. My primary school education was at a school run by a Principal who was Christian. Every year, on the last day of school, we were handed a small book for summer reading. This book was about Christianity and had stories of Jesus. Fascinating stories, but I don’t think any story can beat the stories of Hindu Gods and Goddesses. Having lived in the US for more than 10 years, I have had better exposure to Christianity. When in India, all I knew was, that there were three main religions. Hinduism, Islam and Christianity. I knew about the various denominations in Hinduism but was completely unaware of similar breakup of the Christian religion. Yes, I knew about Protestants and Catholics, but nothing else.

My fascination with religion is about the stories. So many of religious stories from different religions are so similar that you wonder if, after all, all religions are the same. Everything inherited from Object but implementing various interfaces.

Consider the birth of Jesus Christ. Jesus was born in a stable. Lord Krishna, the eighth avatar of the Hindu god Vishnu was born in a jail. I am not sure about this, but I think the prevailing King at Christ’s birth issued a decree for all kids born on a certain day to be killed. Kumsa, Krishna’s uncle, also issued a decree that all boys born on a particular day be killed because Krishna was shipped to neighboring Brundavan to escape his clutches.

Or take the story of Moses and his parting the sea. When Krishna’s father, Vaasudeva was carrying Krishna to the safety of Brundavan, he encountered river Yamuna in full flood and magically the river parted to let Vaasudeva cross over to the other side.

My colleague mentioned the other day that all religions have the story of a great flood. The story of Noah and his ark is strikingly similar to the story of Mutsya (Fish) avatar of Lord Vishnu. In the form of a great fish Vishnu tugged the ship carrying two of every species for seven days and seven nights during the great flood.

Jesus’s immaculate conception has been one upped, nee, I should say, five-upped by the immaculate conception of the Pandava brothers. Also thrown in the story is the concept of cloning. The one hundred Kaurava brothers and their lone sister were all incubated in pots with pieces of the still born baby.

It is also believed that there will be a second coming of Jesus and that he will rise yet again. Similarly, Hindus believe that Lord Vishnu will once again descend upon the Earth as King Kulki, the tenth avatar.

I would love to hear any fascinating story you have read or heard that is similar across multiple religions.

Very interesting indeed. 

Advertisements

Upgrading trial version of VS2008 to licensed version

If you participated in one of the Installfests organized across America by various .Net user groups you may have received a trial version of Visual Studio 2008. The trial expires in 20 days. As promised, Microsoft sent a licensed copy of VS2008 to everyone who attended the installfest. I got mine today.

You DO NOT need to uninstall the trial version and reinstall the licensed copy. You can easily “upgrade” the trial version to the licensed version.

I forgot to capture all the screen shots. I was able to get the first few, but I am missing the most important screen shot and because I have already upgraded my copy the said screen does not display.

To upgrade the trial version

1. Pop the DVD into the DVD drive and run setup.exe. You should see this screen

Install1

2. Select the first option

3. In the next screen choose to Repair/Reinstall VS2008

4. After some 71 files are unzipped you will see the screen I failed to capture

5. At the bottom of this important screen you will see the option “Upgrade Visual Studio” with text boxes to enter the license key. Select this option, enter the license key and click next

In about 10 minutes your trial version will be upgraded to a fully licensed copy of Visual Studio 2008. Close and reopen VS2008 and ensure that you are not prompted with the upgrade dialog

Enjoy!!

kick it on DotNetKicks.com


ASP.Net AJAX JavaScript Serialization Error

Ran into an “Out of Stack Space” error trying to serialize an ASP.Net AJAX Array object. Not sure why, yet.

Here is the scenario with simplified code.

1. Default.aspx

<form id=”form1″ runat=”server”>
<asp:ScriptManager ID=”ScriptManager1″ runat=”server”>
<Scripts>
<asp:ScriptReference Path=”~/Scripts/MainScript.js” NotifyScriptLoaded=”true” />
</Scripts>
</asp:ScriptManager>
<div>Main Content Page</div>
<div>
<iframe id=”mainContent” src=”Content.aspx” runat=”server”></iframe>
</div>
</form>

2. MainScript.js

function getObject(){
return new Array();
}

function function1(obj){
var s=Sys.Serialization.JavaScriptSerializer.serialize(obj);
alert(s);
}

function function2(){
var obj=getObject();
var s=Sys.Serialization.JavaScriptSerializer.serialize(obj);
alert(s);
}

3. Content.aspx

<form id=”form1″ runat=”server”>
<asp:ScriptManager ID=”ScriptManager1″ runat=”server”>
<Scripts>
<asp:ScriptReference Path=”~/Scripts/ContentScript.js” NotifyScriptLoaded=”true” />
</Scripts>
</asp:ScriptManager>
<div>
Content Page
<button id=”btnShowWin” onclick=”serializeObject()”>Serialize Object</button>
</div>
</form>

4. ContentScript.js

function serializeObject(){
var obj=window.top.getObject();
window.top.function1(obj); // <– This works fine

obj=new Array();
window.top.function1(obj); // <– this causes an Out of Stack Space error

}

So basically, I have a web page (default.aspx) with an IFrame on it that hosts a content page (content.aspx). Clicking the
“Serialize Object” button calls the JavaScript function serializeObject(). The serialization works fine for Array objects created in the top window (outside the frame). However if the array object is created in the IFrame, serialization bombs with an out of stack space error. I stepped through ASP.Net AJAX JS files and what I discovered is, the process goes into an endless loop trying to figure out the type of the array object. Endless call to Number.IsInstanceOf and pretty soon you get an out of stack error. I am unable to put a finger on the issue.

Any ideas as to why this could be happening?

kick it on DotNetKicks.com


A Super Flop on Super Tuesday

Today, February 5th 2008 is “Super Tuesday”. A day where more than 20 states vote in both the Republican and Democratic primaries to try and choose the next potential leader of the free world. February 4th 2008 11:59, well, almost Super Tuesday was the last day of my second fundraiser. After failing to elicit *any* interest for my first fundraiser, where I tried to raise money to send a Christmas gift to Nikhil Kothari, the creator of WebDevelopment Helper, I tried again. This time it was to sponsor the 100th episode of Hanselminutes, a weekly podcast hosted by super developer Scott Hanselman and Carl Franklin. Again, I falied. The fundable fundraiser had just 1 $20 pledge from, surprise, surprise, me.

Fundraising is not easy, especially if you are just another guy with a blog. (Note to self: Just because Scott Hanselman takes the trouble of posting a comment on your blog, you don’t become famous). What if I am a scamster? Who knows. Well, I tried. I failed. So where do we go from here? Setup another one? What? Are you nuts?

Anyways, thanks to everyone who visited my blog and checked out my appeal on Fundable.com.