Best Blogger Tips

Sunday, 24 June 2012

25 Facts that you may not know

Funny but true...!!!

1. Apples, not caffeine, are more efficient at waking you up in the morning.

2. Alfred Hitchcock didn't have a belly button.

3. 40,000 Americans are injured by toilets each year.

4. People do not get sick from cold weather; it's from being indoors a lot more.

sneeze5. When you sneeze, all bodily functions stop, even your heart!

6. Only 7 per cent of the population are lefties.

7. Forty people are sent to the hospital for dog bites every minute.

8. Babies are born without kneecaps. They don't appear until they are 2-6 years old.

9. Humphrey Bogart was related to Princess
Diana. They were 7th cousins

10. The toothbrush was invented in 1498.

11. The average housefly lives for one month.

12. A pack-a-day smoker will lose approximately 2 teeth every 10 years.

13. A coat hanger is 44 inches long when straightened.

14. The average computer user blinks 7 times a minute.

15. Your feet are bigger in the afternoon than any other time of day.

16. Most of us have eaten a spider in our sleep.

17. The REAL reason ostriches stick their head in the sand is to search for water.

18. The only two animals that can see behind themselves without turning their heads are the rabbit and the

19. The first Harley Davidson motorcycle built in 1903 used a tomato can for a carburetor.

20. Michael Jackson owns the rights to the South Carolina State anthem.

21. In most television commercials advertising milk, a mixture of white paint and a little thinner is used in
place of the milk.

22. Prince Charles and Prince William NEVER travel on the same Airplane, just in case there is a crash.

23.John Travolta turned down the starring roles in "An Officer and a Gentleman" and "Tootsie."

24. Most hospitals make money by selling the umbilical cords cut from women who give birth. They are used in vein transplant surgery.

25. .The average person over 50 will have spent 5 years waiting in lines.

Saturday, 23 June 2012

Alan Turing : A Hero

Tribute to this great hero of Computer science on his 100th Birthday
alan turing
Alan Turing
Alan Turing was an English mathematician, wartime code-breaker and pioneer of computer science. Alan Turing was best-known for helping decipher the code created by German Enigma machines in the Second World War, and for being one of the founders of computer science and artificial intelligence

Alan Turing was born on 23 June, 1912, in London. His father was in the Indian Civil Service and Turing's parents lived in INDIA until his father's retirement in 1926. Turing and his brother stayed with friends and relatives in England. Turing studied mathematics at Cambridge University.

Alan's house declared as 
Heritage of UK
Alan Turing’s life  cycle
·                     1912  Alan Mathison Turing born in Maida Vale, London, to Ethel Sara Turing (nee Stoney) and Julius Mathison Turing.
·                     1927-30  Alan furthers his love of science and maths by reading Einstein whilst at Sherborne. His great friend, Christopher Morcom, who shares his interests, suddenly dies. Alan is devastated.
·                     1934    Alan graduates with distinction in Mathematics from King's College, Cambridge.
·                     1938    Alan goes to Princeton University in America to study mathematics and is awarded a PhD.
Board outside the 
Alan turing's house
·                     1939    September - Alan is asked to join the Government Codes and Ciphers School and arrives at Bletchley Park the day after war is declared.
·                      1940   With Gordon Welchman, Alan develops the Bombe to decipher the messages sent by the Germans using their Enigma machine.
·                     1943-45  Alan works with top people in the USA, which he visits to share information on code breaking.
·                     1945    At the end of the war, Alan Turing is awarded the OBE for his wartime services.
·                     1946    Alan publishes a paper with the first detailed design of a stored-program computer.
·                     1949    Alan is made deputy director of the Computing Laboratory at Manchester University.
·                     1950    Alan publishes the famous paper 'Computing Machinery and Intelligence' in which he develops the Turing Test.
·                     1951    Alan is elected Fellow of the Royal Society, and also gives talks about Artificial Intelligence on the BBC.
·                     1952    Turing was arrested and tried for homosexuality, then a criminal offence. To avoid prison, he accepted injections of oestrogen for a year, which were intended to neutralise his libido. In that era, homosexuals were considered a security risk as they were open to blackmail. Turing's security clearance was withdrawn, meaning he could no longer work for GCHQ, the post-war successor to Bletchley Park.
·                     1954 ,7 june    Alan dies in his home in Wilmslow, Cheshire, from poisoning. A half-eaten apple was found next to him laced with cyanide.
·                     1986    A play, Breaking the Code, about Alan's life and work opens in the West End with Derek Jacobi playing Alan.
·                     2007    A slate sculpture of Turing is unveiled at Bletchley Park.
·                     2009    Thousands of people sign a petition. The Prime Minister, Gordon Brown makes a public apology saying the treatment of Alan Turing was "appalling".

“Machines take me by surprise with great frequency!”
Alan Turing

Friday, 22 June 2012

Top 10 awesome beds of world

 These are the most cool and sexy design of beds.

The forest bed for wild peoples..:p

 This is called the Facebooker bed with inbuilt computer table for accessing fb..:)
 The stand n sleep bed..the softest bed ever guys..

 Girlz its your dream bed i guess. This is the cinderella bed, but don't worry it won't get normal at mid night.
The gyro-bed.just hide yourself in it.

The grass bed. sleep on the grass..;-)

grass bed
The empty hot dog..:p

This is sort of like a giant sleeping bag ,one has a zipper blanket. .

The hanging-bed , but hey..beware  of mosquitoes.!!

techno bed
This is the techno-bed , now your mom can say you to switch off the tv and go to your bed. because you are already on your bed. This bed is for REST LOVERS.

Thursday, 21 June 2012

Representing the first internet hacker

Robert Morris
Robert Tappan Morris (born November 8, 1965) is an American computer scientist, best known for creating the Morris Worm in 1988, considered the first computer worm on the Internet - and subsequently becoming the first person convicted under the Computer Fraud and Abuse Act.
In 1988 Robert Tappan Morris a Cornell University graduate student created the first worm and unleashed the first worm attack on the Internet. Subsequently becoming the first person convicted under the Computer Fraud and Abuse Act.

but Robert did not intend for any damage with the worm he said he just wanted to get an idea of the size of the web but unfortunately the worm began replicating itself at a far faster rate than he intended causing extensive damage. He released the worm using MIT’s systems to disguise the fact that he was a Cornell student.

Morris was indicted and found guilty in 1990. He was given a sentence of $10,050 fine, 400 hours of community service, and three-year probation. Interestingly the worm which he released got his own name ‘Morris Worm’

Wednesday, 13 June 2012

.NET Tutorial: 1

Firstly with some general terms:

What is Website.?
A website is a collection of web pages (documents that are accessed through the Internet), such as the one you're looking at now. A web page is what you see on the screen when you type in a web address, click on a link, or put a query in a search engine. A web page can contain any type of information, and can include text, color, graphics, animation and sound.
What is Webpage?

A web page or webpage is a document commonly written in HyperText Markup Language (HTML) that is accessible through the Internet or other network using a browser. A web page is accessed by entering a URL addresses and may contain text, graphics, and hyperlinks to other web pages and files. The page you're reading now is an example of a web page
  •  Website always run at web server and it views in html form at the client site.

[Client - it is a user who access the website from its home by writing the web address of website in its web browser.]

In the case of a website created by .NET technology the web server MUST be of Microsoft.

.NET Framework:- Collection of tools, technologies and languages which work together to communicate on MULTIPLE PLATE FORM.

NOTE- .NET Framework DON’T install on Non-Microsoft operating system.

.NET Framework Architecture:

*      CLR (Common Language Runtime):- It is an environment which manage the execution of code.
  • Memory management.
  •  Garbage collection.
  • Support multiple languages. (more than 45 language).
Now you all know what is memory management , but the question arise what is Garbage collection ??

.Net Framework's- Memory Management Garbage Collector which manages allocation and release of memory from application. Now developers no need to worry about memory allocated for each object which is created on application. garbage collector automatically manages memory on application.

Garbage Collection
The heap memory is divided into number of generations. Normally it is three generations. The Generation 0 is for short live objects, Generation 1 is for medium live objects which are moved from Generation 0. Generation 3 is mostly stable objects.

When an object is created then it will allocate the memory space which will be higher. It will be in the Generation 0 and the memory allocation will be continuous without any space between the generations of garbage collectors.

How it works

Implicit Garbage Collection should be handled by the .Net framework. When object is created then it will be placed in the Generation 0. The garbage collection uses an algorithm which checks the objects in the generation, the objects life time get over then it will be removed from the memory. The two kinds of objects. One is Live Objects and Dead Objects. The Garbage collection algorithm collects all unused objects that are dead objects in the generation. If the live objects running for long time then based on that life time it will be moved to next generation.

The object cleaning in the generation will not take place exactly after the life time over of the particular objects. It takes own time to implement the sweeping algorithm to free the spaces to the process.

Implementation of automatic and forcefully garbage collection:

Memory Allocation of object:
XYZ x;                                      (memory allocation in STACK)
XYZ x= New XYZ;                     (memory allocation in HEAP)

[Where XYZ is class and x is its object.]

The memory of object created by second method in heap need to destroy forcefully. So garbage collection is not only an automated process it can also be used forcefully.

*      CTS (Common Type System)-
Common Type System (CTS) describes a set of types that can be used in different .Net languages in common . That is , the Common Type System (CTS) ensure that objects written in different .Net languages can interact with each other. For Communicating between programs written in any .NET complaint language, the types have to be compatible on the basic level .

  • What functions does the Common Type System perform?
    • Establishes a framework that helps enable cross-language integration, type safety, and high performance code execution.
    • Provides an object-oriented model that supports the complete implementation of many programming languages.
    • Defines rules that languages must follow, which helps ensure that objects written in different languages can interact with each other.

  • What types does the Common Type System support?
    • Value types

      Value types directly contain their data, and instances of value types are either allocated on the stack or allocated inline in a structure. Value types can be built-in (implemented by the runtime), user-defined, or enumerations. For a list of built-in value types, see the .NET Framework Class Library.
    • Reference types

      Reference types store a reference to the value's memory address, and are allocated on the heap. Reference types can be self-describing types, pointer types, or interface types. The type of a reference type can be determined from values of self-describing types. Self-describing types are further split into arrays and class types. The class types are user-defined classes, boxed value types, and delegates.
*      CLS (Common Language Specification)-
This is a subset of the CTS which all .NET languages are expected to support. It was always a dream of Microsoft to unite all different languages in to one umbrella and CLS is one step towards that. Microsoft has defined CLS which are nothing but guidelines that language to follow so that it can communicate with other .NET languages in a seamless manner.

*      Base Class Library:
Collections of standard classes ( common classes) which we can use in .net supportive languages.

To be continued in next part of tutorial….