Saturday, June 30, 2007

There is no escape..!

Once PVNR (PV Narasimha Rao), L.K.Advani and Laloo Prasad Yadav were
travelling in an autorickshaw. They met with an accident and all three
of them died.

Yama Raja was waiting for this moment at the doorstep of death.

He asks PVNR and Advani to go to HEAVEN.

But, for Laloo, Yama had already decided that he should be sent to
HELL.

Laloo is not at all happy with this decision.

He asks Yama as to why this discrimination is being made. All the
three of them had served the public. Similarly, all took bribes, all
misused public positions, etc.

Then why the differential treatment?

He felt that there should be a formal test or an objective evaluation
before a decision is made; and should not be just based on opinion or
pre-conceived notions.

Yama agrees to this and asks all the three of them to appear for an
English test.

PVNR is asked to spell " INDIA " and he does it correctly.

Advani is asked to spell " ENGLAND " and he too passes.

It is Laloo's turn and he is asked to spell " CZECHOSLOVAKIA ".

Laloo protests that he doesn't know English.

He says this is not fair and that he was given a tough question and
thus forced to fail with false intent.

Yama then agrees to conduct a written test in Hindi (to give another
chance assuming that Laloo should at least feel that Hindi wou ld
provide an equal platform for all three).

PVNR is asked to write "KUTTA BOLA BHOW BHOW". He writes it easily an
passes.

Advani is asked to write "BILLY BOLI MYAUN MYAUN". He too passes.

Laloo is asked to write "BANDAR BOLA GURRRRRR....."

Tough one. He fails again.

Laloo is extremely unhappy.

Having been a student of history (which the other two weren't), he now
requested for all the 3 to be subjected to a test in hist ory

Yama says OK but this would be the last chance and that he would not
take any more tests.

PVNR is asked: "When did India get Independence ?" He replied "1947"
and passed.

Advani is asked "How many people died during the independence
struggle?"

He gets nervous. Yama asked him to choose from 3 options: 100,000 or
200,000 or 300,000.

Advani catches it and says 200,000 and passes.

It's Laloo's turn now.
'

'

'

'

'

'

'

'

'

'

Yama asks him to give the Name and Address of each of the 200,000 who
died in the struggle.

Laloo accepts defeat and agrees to go to HELL.

Moral of the story:
IF YOUR MANAGEMENT HAS DECIDED TO SCREW YOU, THERE
IS NO ESCAPE

Saturday, June 23, 2007

Deadlock

C# Heap vs Stack - Memory management

I've found really interesting article series on c-sharpcorner today. It profoundly explains how the value types and reference types are allocated on stack and heap and moreover it gives great idea about how GC (Garbage Collector) works. Also in the 4th part of the series of articles, static methods, static members, finalizers and IDisposable are shaded light on.

All the four articles are worth reading:

http://www.c-sharpcorner.com/UploadFile/rmcochran/csharp_memory01122006130034PM/csharp_memory.aspx?ArticleID=9adb0e3c-b3f6-40b5-98b5-413b6d348b91

Happy Reading!

Vs.net 2003 - Unable to read project file **.vbproj The system cannot find the path specified

Many of us have faced this problem while moving the solution created in vs.net 2003 that contains web projects from one to another location on hard drive or setting up the solution on our pc that is created on some different machines.

The projects would still be accessible by internet explorer specifying the appropriate url.

The solution of this problem lies in changing a couple things like below:
  • Go to "C:\Documents and Settings\\VSWebCache\" and find out the project you are trying to set up. Delete the project to remove it from the vs.net 2003 web cache.
  • Now go to the folder that contains your project solution file. Find out .suo file that will have the similar name as of your solution name. Delete this .suo file as well. The .suo file contains the local hard drive paths of the projects that was set earlier. So it's necessary to delete this file. When you will open the solution next time, a .suo file will be automatically generated.
  • Now open your solution file with notepad or any text editor and find out the section GlobalSection(SourceCodeControl). Remove this whole section. This is required to remove the source control bindings for your web projects and solution. Also please setup the appropriate project web locations in this file. Save this file and close it.
  • Try to open the solution now. It will give you some errors regarding the incorrect source control bindings. This is quite okay, click OK and bypass the messages. It will open the projects in unbound mode.
  • After the project is opened, you can always bind it again with the source control by "File-SourceControl->ChangeSourceControl" option.
Everything should work now. :)

Friday, June 22, 2007

IIS Delete Virtual Directory

Have you ever got the error The alias "LM/W3SVC/1/Root/YOUR_ALIAS" already exists. Please choose a different alias when you try to create a new virtual directory under IIS ? You cannot delete the existing alias if its not in the IIS Admin snap-in but there is a way around it. Open a Dos prompt under C:\Intetpub\Adminscirpts folder and execute the following script.

cscript adsutil.vbs DELETE W3SVC\1\ROOT\YOUR_ALIAS