Thursday, March 12, 2009

All the best STC cricket team



Best wishes for the Thora team!!!

(Following the match in cricinfo. Doesn't seem like we are doing particularly well so far. Hopefully we can pull some thing out)

Tuesday, March 10, 2009

I salute our War Heroes

I salute our War Heroes!

I am not a blind supporter of war. I am well aware how our brothers fight in Vanni. Some sacrifice their lives. Some sacrifice their limbs; They have to live their entire life being dependent. Some even sacrifice eyes etc. The ground situation is not as beautiful and colorful as policca's and most media draw.

Think about the families of war heroes. There are over 50,000 soldiers deployed in vanni, there will be hundred thousands praying every night that their son,brother,father or husband would be safe. They are spending everyday hoping that the bad news will not come to them. Everytime they hear "bad" news, they will be calling to check if their loved one is still alive.

I salute all the family members of the War Heroes!

We must not forget that the terror carders who die in the battle are also human beings with families. They have sacrificed their lives for what they believe.

If you really think hard, you will realize that the ones who die from the both ends are brave, energetic youngsters who could have done a lot develop this country. yeah, a lot to develop our economy, living standard.Both parties spent millions ideally should have spent on development projects and research.

But we just had to fight!

PS:I DO NOT by any means say the "peace talks period" was any good. It was more like "a break" for ltte to buy more weapons and re-group. Remember the string of claymore attacks and closing of Mavillaur anicut? It was not a "peace", more like a "war preparation time". Like many Sri Lankans, I highly doubt ltte leaders will ever come for genuine peace talks.

Thursday, October 30, 2008

Unexpected error 0x8ffe2740 occurred ?

Why do you get this error when you try to start IIS?



The reason is that port 80 (which is used by iis and most other webservers) is taken by some other program. In my case, this was Skype. However, this could be any other p2p or torrent program.

The easiest way out is to stop other programs such as skype, torrent etc, and attempt to start the IIS.

However, there is an option that is available in Skype which keeps skype away from taking port 80. It is, Tools -> options -> Advanced ->Connection-> Use port 80 and 443 as alternatives for incoming connections. Uncheck this option, and skype would no more borrow webserver or sql server default ports…(thanks hethu for the skype tip)

Tuesday, August 12, 2008

Developer Tips and Tricks Blog

I just came across this great blog. This is dedicated for developer tips and tricks and maintained by MS guys.

web developer tips

Session Expiration Problem

I was working on extending the session expiration of a webpage. My requirement was very simple - "Just want to keep the page without session expiring for 2 hours"... Yeah, it's simple - that's the initial thought many programmers would get! I initially thought that just changing the <sessionState> of web.config like below would do the job.

<sessionState timeout="120">

but this didn't solve the problem for me... When I clicked a link in the webpage (that was open for more that 20 minutes) , I was re-directed to the login page. So I had to configure the <authentication> as well.

<authentication mode="Forms">
<forms timeout="120">


Thereafter I changed "Shutdown Worker Processors after being idle for" and "Recycle Worker Process" settings in IIS Application pool.
(In IIS 6, these settings are available at Application Pools => Used application pool => Properties => in Performance tab and in recycling tab)

These IIS changes ensures that the worker processor would not be closed after a given period of time (the default is 20 mins). For instance, we might have a website where the session expiration time is 2 hours, and also authentication expiration time is 2 hours. If we don't change the IIS "Shutdown Worker Processors after being idle for" setting and leave it as the default value "20 minutes", there would be a situation where IIS close the Worker Processor in 20 mins!

So, all these settings need to be configured, to properly set the session expiration time to a large value.