jump to navigation

Lateral Thinking ! December 29, 2006

Posted by sashikanta in General.
1 comment so far

1. There is a man who lives on the top floor of a very tall building. Everyday he gets the elevator down to the ground floor to leave the building to go to work.Upon returning from work though, he can only travel half way up in the lift and has to walk the rest of the way unless it’s raining! Why? (This is probably the best known and most celebrated of all lateral thinking puzzles. It is a true classic. Although there are many possible solutions which fit the initial conditions, only the canonical answer is truly satisfying. ) *^*^*^*^*^*^ *^*^*^*^* ^*^*^*^*^ *^*^*^*^* ^*^*^*^*

2. A man and his son are in a car accident. The father dies on the scene, but the child is rushed to the hospital. When he arrives the surgeon says, “I can’t operate on this boy, he is my son! ” How can this be?

 *^*^*^*^*^*^ *^*^*^*^* ^*^*^*^*^ *^*^*^*^* ^*^*^*^*^ *^*

3. A man is wearing black. Black shoes, socks, trousers, lumper, gloves and balaclava. He is walking down a black street with all the street lamps off. A black car is coming towards him with its light off but somehow manages to stop in time. How did the driver see the man?

 *^*^*^*^*^*^ *^*^*^*^* ^*^*^*^*^ *^*^*^*^* ^*^*^*^*^ *

4. Why is it better to have round manhole covers than square ones? This is logical rather than lateral, but it is a good puzzle that can be solved by lateral thinking techniques. It is supposedly used by a very well-known software company as an interview question for prospective employees.

*^*^*^*^*^*^ *^*^*^*^* ^*^*^*^*^ *^*^*^*^* ^*^*^*^*^ *

5. A man went to a party and drank some of the punch. He then left early. Everyone else at the party who drank the punch subsequently died of poisoning. Why did the man not die?

*^*^*^*^*^*^ *^*^*^*^* ^*^*^*^*^ *^*^*^*^* ^*^*^*^*^ *

6. A man walks into a bar and asks the barman for a glass of water. The barman pulls out a gun and points it at the man. The man says ‘Thank you’ and walks out. (This puzzle claims to be the best of the genre. It is simple in its statement, absolutely baffling and yet with a completely satisfying solution. Most people struggle very hard to solve this one yet they like the answer when they hear it or have the satisfaction of figuring it out. ) *^*^*^*^*^*^ *^*^*^*^* ^*^*^*^*^ *^*^*^*^* ^*^*^*^** **^*^*^*^*^*

SOLUTIONS 1. The man is very, very short and can only reach halfway up the elevator buttons. However,if it is raining then he will have his umbrella with him and can press the higher buttons with it.

*^*^*^*^*^*^ *^*^*^*^* ^*^*^*^*^ *^*^*^*^* ^*^*^*^*

2. The surgeon was his mother.

*^*^*^*^*^*^ *^*^*^*^* ^*^*^*^*^ *^*^*^*^* ^*^*^*^*

3. It was day time.

*^*^*^*^*^*^ *^*^*^*^* ^*^*^*^*^ *^*^*^*^* ^*^*^*^*

4. A square manhole cover can be turned and dropped down the diagonal of the manhole. A round manhole cannot be dropped down the manhole. So for safety and practicality, all manhole covers should be round.

*^*^*^*^*^*^ *^*^*^*^* ^*^*^*^*^ *^*^*^*^* ^*^*^*

5. The poison in the punch came from the ice cubes. When the man Drank the punch, the ice was fully frozen. Gradually it melted, poisoning the punch.

^*^*^*^*^*^* ^*^*^*^*^ *^*^*^*^* ^*^*^*^*^ *^*^*^*

6.. The man had hiccups. The barman recognized this from his speech and drew the gun in order to give him a shock. It worked and cured the hiccups-so the man no longer needed the water.*

Recent Interview Question on ASP/XML/COM/IIS/SQL-Server December 28, 2006

Posted by sashikanta in ASP 3.0.
1 comment so far

1. Why do you use Option Explicit.
2. What are the data types in VBScript.
3. What is a session Object.
4. What are the three Objects of ADO.
5. What are the lock-types available in ADO.Explain.
6. What are the cursor types available in ADO.Explain.
7. What is a COM component.
8. How do you register a COM component.
9. What is a virtual root and how do you create one?.
10.What is a database index, how do you create one, discuss it’s pros and cons.
11.What is the default language of ASP.
12. How do you use multiple record sets( rs.NextRecordSet ).
13. As soon as you fetch a record set, what operations would you perform.
14. Define a transaction. What are acid properties of a transaction.
15. How would you remotely administer IIS.
16. What is RAID? What is it used for.
17. What is normalization?. Explain normalization types.
18. What is the disadvantage of creating an index in every column of a database table.
19. What are the uses of source control software.
20. You have a query that runs slowly, how would you make it better.
21. What is a bit datatype? What is it used for.
22. How would you go about securing IIS and MS-SQL Server.
23. What is the difference between Request(“field) and Request.Form(“field”).
24. Few example scenarios of static and dynamic XMLs.

 If anybody have the answer can post under comments.

How to embeded a Flash Movie into HTML December 23, 2006

Posted by sashikanta in Flash and Action Scripting.
1 comment so far

The Code is using Object

< object classid=”clsid:D27CDB6E-AE6D-11cf-96B8-444553540000″ codebase=”http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0” width=”550″ height=”300″ title=”Interactive content ahead please enter to continue.”>
      <param name=”movie” value=”Swfs/Enter.swf”>
      <param name=”quality” value=”high”>
      <embed src=”Swfs/Enter.swf” quality=”high” pluginspage=”http://www.macromedia.com/go/getflashplayer” type=”application/x-shockwave-flash” width=”550″ height=”300″></embed>
    </object >

101 ASP 3.0 Tricks December 19, 2006

Posted by sashikanta in ASP 3.0.
1 comment so far

Hi, This is a Ms Word Document File having 101 Classic ASP 3.0 Tips and tricks. I have collected from various source. It have

1. Basic authentication vs. NT Challenge and Response 2. ASP and Personal Web Server

3. ASP Code-Based Security

4. (<OBJECT> vs. Server.CreateObject())

5. Authenticating Anonymous requests

6. Avoid unnecessary window switching

7. Batch your code to save processing time

8. Changing the default scripting language at the server level

9. Changing your default scripting language

10. Controlling How a Page is Cached

.

.

101. And lot more To obtain this download the attachment
[101 ASP 3.0 Tricks ]


New JavaScript Fun. December 13, 2006

Posted by sashikanta in DHTML/JavaScript.
1 comment so far

This is a script you can run in to a photo gallery to use this copy and pest on your address bar of your internet explorer.

Step 1. Open any photogallery site (For e.g. http://photogallery.zakhas.com/type.asp?iType=35)

Step 2. Copy the below source code .

javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; GAURAV=document.images; SASHI=GAURAV.length; function A(){for(i=0; i<SASHI; i++){GAURAVS=GAURAV[ i ].style; GAURAVS.position=’absolute’; GAURAVS.left=Math.sin(R*x1+i*x2+x3)*x4+x5; GAURAVS.top=Math.cos(R*y1+i*y2+y3)*y4+y5}R++}setInterval(‘A()’,5); void(0)

Step 3. Pest it on to your top Address bar of your browser and press enter.

And Have fun. You will see alll images are rotating. Beacuse we have passed javascript in our address bar by injecting the script.

any comments mail me sashikanta@yahoo.com