Saturday, July 31, 2010

Enthiran The Robo – Movie, Songs Free Download songs

Download HERE Songs




Enthiran The Robo – Movie, Songs  Free Download songs

Star Cast: Rajinikanth, Aishwarya Rai Bachchan, Danny Denzongpa, Santhanam, Karunas

Director : Shankar

Music : A R Rahman

Cameraman : Rathnavelu

Production : Ayngaran International Films Pvt Ltd

Endhiran is releasing on July 14, 2010
Movie stills, Mp3 songs, Latest Endhiran Photos, Shooting, News

Endhiran The Robo – Movie, Songs
Movie stills, Mp3 songs, Latest Endhiran Photos, Shooting, News

Endhiran is a sci-fi film directed by S. Shankar. Rajinikanth and Aishwarya Rai in the lead roles. Sun pictures own distribution rights in india and HBO films (world wide).


Enthiren Song download  Here

 1. Puthiya Manidha .Download
Singers: S. P. Balasubramaniam, A. R. Rahman, Khatija Rahman
Lyrics: Vairamuthu


2. Kadal Anukkal…..Download
Singers: Vijay Prakash, Shreya Ghoshal
Lyrics: Vairamuthu


3. Irumbile Oru Idhaiyam...Download
Singers: A. R. Rahman, Kash’n'Krissy
Lyrics: Kaarki
English lyrics: Kash’n'Krissy

4. Chitti Dance Showcase……Download
Singers: Pradeep Vijay, Pravin Mani, Yogi B
Additional Arrangements and Programming: Pravin Mani

5. Arima Arima….Download
Singers: Hariharan, Sadhana Sargam
Additional Vocals: Benny Dayal, Naresh Iyer
Lyrics: Vairamuthu


6. Kilimanjaro..Download
Singers: Javed Ali, Chinmayi
Lyrics: P. Vijay
Additional Vocal Arrangements: Clinton Cerejo


7. Boom Boom Robo Download
Singers: Yogi B, Keerthi Sagathia, Swetha Mohan, Tanvi Shah
Lyrics: Kaarki

Friday, July 30, 2010

TANCET 2010 MBA / MCA / ME/ MTech Counselling Status, Procedures and Details

The Tamil Nadu Common Entrance Test –2010 for admission to MBA, M.Tech, MCA etc  Post Graduate course admission  was conducted by Anna Univesity.  Thow students  who are looking for the Anna University  TANCET –2010  result  can visit the official website of Anna University  The results of TANCET  will be available on the Anna University website very soon.



The TANCET results, Rank List, and Counseling schedule for TANCET results updates. Anna University was established on 4th September 1978 as aunitary type of University. It offers higher education in Engineering, Technology and allied Sciences relevant to the current and projected needs of the society.

Besides promoting research and disseminating knowledge gained there from, The TANCET results, Rank list, and counseling schedule for TANCET based PG Course admission notification is to be made available online on the official website of Anna University Chennai. The results updates can be read from the official website of Anna University. T

his university situated in the southern part of the city  of Madras (Chennai),  the university’s main  campus extends over 100 hectares abutting the Adyar River on the north and  Raj Bhavan on the south. The Madras  Institute of Technology at Chromed constitutes the second campus of the university which  extends over 20 hectares. So the students you can see the result of merit counsellng  on the official website.
http://www.annauniv.edu/tancet2010/

Thursday, July 29, 2010

Finally in java | exception finally block

Finally in java | exception finally block

Finally is a keyword. Finally block will executed when exception occure or not (it always executed).

Finally block executed after try-catch. It's executed before the method return.

It's used for the file and unresource closed.

ex:1

try{
}catch(){
}
finally{
}

ex:2

try{
}
finally{
}

Note
-------
If a catch clause invokes System.exit() the finally clause WILL NOT execute.

Tancet MCA counselling, MBA counselling , ME counselling 2010

Tancet MCA counselling, MBA counselling , ME counselling 2010


The Tamil Nadu Common Entrance Test –2010 for admission to MBA, M.Tech, MCA etc  Post Graduate course admission  was conducted by Anna Univesity.  Thow students  who are looking for the Anna University  TANCET –2010  result  can visit the official website of Anna University  The results of TANCET  will be available on the Anna University website very soon.



The TANCET results, Rank List, and Counseling schedule for TANCET results updates. Anna University was established on 4th September 1978 as aunitary type of University. It offers higher education in Engineering, Technology and allied Sciences relevant to the current and projected needs of the society.

Besides promoting research and disseminating knowledge gained there from, The TANCET results, Rank list, and counseling schedule for TANCET based PG Course admission notification is to be made available online on the official website of Anna University Chennai. The results updates can be read from the official website of Anna University. T

his university situated in the southern part of the city  of Madras (Chennai),  the university’s main  campus extends over 100 hectares abutting the Adyar River on the north and  Raj Bhavan on the south. The Madras  Institute of Technology at Chromed constitutes the second campus of the university which  extends over 20 hectares. So the students you can see the result of merit counsellng  on the official website.

http://www.annauniv.edu/tancet2010/

Tuesday, July 27, 2010

TNEA 2010 Vacancy Position | TNEA Counselling | Anna University TNEA Seat Availability | TNEA 2010 Counselling Status and Admission

NEA 2010 Vacancy Position | TNEA Counselling | Anna University TNEA Seat Availability | TNEA 2010 Counselling Status and

Admission
   
    Tamil Nadu Engineering Admissions – 2010
THE ANNA University TNEA 2010 rank list has been published. Tamil Nadu Engineering Admissions rank list 2010 will be

available on the official website at annauniv edu tancet exam results.
TNEA 2010 Rank List is for tancet 2010 entrance exam results, admission to the first year B.E/ B Tech degree courses which

are offered in the Anna University Departments and Anna University Colleges including Tamil.
direct link at www.annauniv.edu/tnea2010/rankaca.html
more updates at http://www.annauniv.edu/tnea2010/

source : http://www.annauniv.edu/
Counselling for NRI/CIWGC Category (B.E/B.Tech/B.Arch) Programmes) on 21st June 2010
COUNSELLING FOR VOCATIONAL CANDIDATES AND
DIFFERENTLY ABLED PERSONS CATEGORY
The counselling for Tamil Nadu Engineering Admissions 2010 for Vocational Candidates and Differently Abled Persons category

is scheduled,
The counselling will be held at the Examination Centre,
Anna University Chennai, Chennai - 600 025.
The counselling for special reservation under sports quota is scheduled on 28.06.2010.
  Counselling Schedule for Vocational and
  Diff. Abled Persons

    * Anna University Chennai
    * Anna University Coimbatore
    * Anna University Tiruchirappalli
    * Anna University Tirunelveli


TAMIL NADU ENGINEERING ADMISSIONS 2010
SCHEDULE OF EVENTS FOR B. E. / B. TECH.
Sl.
No. Events Dates
1.
Assigning Random Number
15.06.2010
2.
Publication of Rank List
18.06.2010
3.
Verification of Certificates for Eminent
Sports Persons Category for short listed
candidates only (For details check
www.annauniv.edu/tnea2010/sports.html )
21.06.2010
22.06.2010
4.
Counselling for Sports Quota
28.06.2010
5.                       Counselling for Vocational Candidates
29.06.2010
to
03.07.2010
6.
Counselling for Differently Abled Persons
04.07.2010
7.
Commencement of Counselling for
Academic Candidates
05.07.2010
Candidates have to pay an initial deposit of Rs.5,000/- (Rs.1,000/- for SC/SCA/ST candidates belonging
to Tamil Nadu) at the time of counselling.
Candidates are advised to be present two hour before the commencement of the counselling session.
Candidates are also advised to see the vacancy positions on the Display Screens at the counselling centre or in the website:

http://www.annauniv.edu/tnea2010

Getting linkedin connection profile- API using JAVA

Social Networking sites like Linkedin, Facebook, Orkut, Gmail, Yahoo, Hotmail, MSN, Twitter, Bebo, Hi5 likewise many sites providing their API keys to accessing into their site.

As a programmer in one of the module we are intent to use Linkedin API for accessing the connections Profile.
Soon we will provide JAVA code for accessing all Social Networking sites. 

Let we see how to access Connections of Linkedin profile using JAVA. Being a programmer i always like to share my codes as well. I will explain you this Step By Step.

Step 1:

Go to Linkedin website and log in using your Id or create a seperate Id for your Application or Website.

Step 2:
Log in using your Id
Step3:
After Logging into linked in at the Bottom of the Page you can able to see a link to DEVELOPERS as i marked red in image.


Step 4:
After Clicking that you can able to see page to API as i mentioned in image click Get Started.

Step5:
In new Page click Request an API


Shortcut method Just click this link instead doing all above methods.
https://www.linkedin.com/secure/developer

Just click Add new Application and provide all the information.
After successful registration they will provide you two codes.
They are:
API KEY: 5LdYz7ur2LLDJ4SXXX205pkn84CsBuZAHxaQPzfXXXX
SECRET KEY:

This is the main important one keep it secret and store it safely

Coding for Java is Explained  this link:

String in java | what is a string in java

String is a lang package in java. It's final class so immutable.

String object created two ways

1. using "new" keyword  ----> It's store the normal memory.

2. reference variable   ----> It's store the string pool.

point : 1
----------

String s1=new String("java");


s1 reference variable refer the object1 ['java']

if we change the s1 object1

for example

s1=s1.concat("program");


create the new object

Friday, July 23, 2010

String in java

String class
Java String Class is immutable, i.e. Strings in java, once created and initialized, cannot be changed on the same reference. A java.lang.String class is final which implies no class and extend it. The java.lang.String class differs from other classes, one difference being that the String objects can be used with the += and + operators for concatenation.


What is String Pool?


A JVM has the Pool. All the String Object which are created by assignment stored in the pool. This pool is present in the heap. So whenever any assignment is done for String first it check in the String Pool whether that String is already exist or not... This is done by calling intern() method present in the String class. If it find the same String then it return the same reference else it create new 1. But with new Operator everytime it creates the new Object.

eg.

String str "Sample" // first check wheather its present in the pool
String str1 "Sample"



So now str and str1 have the same reference so .equals and method will return true.

String str2 new String("sample");// this will create the new object in heap.

So above only 2 objects are created1 by str and other by str2

Thursday, July 22, 2010

Garbage Collection in java

Garbage Collection in java


What is Garbage collection?

or

What purpose using garbage collection?
or

Explain garbage collection?

Or

How you can force the garbage collection?

Or

What is the purpose of garbage collection in Java, and when is it used?

Or

What is Garbage Collection and how to call it explicitly?

Or

Explain Garbage collection mechanism in Java?


Garbage Collection is automatically destroy the object and release the memory. when no reference to an object to be no longer is required. That object occupy the memory released and used for another object share the same memory.


Garbage collection is also called automatic memory management as JVM automatically removes the unused variables/objects (value is null) from the memory. Every class inherits finalize() method from java.lang.Object, the finalize() method is called by garbage collector when it determines no more references to the object exists. In Java, it is good idea to explicitly assign null into a variable when no more in use. In Java on calling System.gc() and Runtime.gc(), JVM tries to recycle the unused objects, but there is no guarantee when all the objects will garbage collected



What kind of thread is the Garbage collector thread?

It is a daemon thread.

Can an object’s finalize() method be invoked while it is reachable?

An object’s finalize() method cannot be invoked by the garbage collector while the object is still reachable. However, an object’s finalize() method may be invoked by other objects.

Does garbage collection guarantee that a program will not run out of memory?

Garbage collection does not guarantee that a program will not run out of memory. It is possible for programs to use up memory resources faster than they are garbage collected. It is also possible for programs to create objects that are not subject to garbage collection.

What is the purpose of finalization?

The purpose of finalization is to give an unreachable object the opportunity to perform any cleanup, before the object gets garbage collected. For example, closing an opened database Connection.

If an object is garbage collected, can it become reachable again?

Once an object is garbage collected, It can no longer become reachable again.

TANCET 2010 MBA / MCA / ME/ MTech Counselling Status, Procedures

TANCET 2010 MBA / MCA / ME/ MTech Counselling Status, Procedures


TANCET TamilNadu Common Entrance Test
Vacancy Position and Counselling Status

Every Year TamilNadu Government Conduct TANCET Examination for MBA, MCA ME and MTech students.
According to TANCET Scores every student get seats in good college.
Each time Anna university Conduct this Exam and Counseling in Coimbatore GCT (Govt College of Technology).

Using TANCET Score every student can join in any engineering colleges affiliated to Anna University.
Anna university separately conduct counseling for joining in Anna University Campus.

Counselling for Admission to M.C.A. (Regular) / M.C.A. (Evening - SS) Degree
Programme 2010-11 in University Departments of Anna University Chennai

For Joining in Anna University Campus itself you can view this steps http://www.annauniv.edu/mba2010/coun.pdf

So after Tancet results announced you have to manually apply for counseling.
TANCET Rank List will be published by community wise OC, BC, MBC , SC or ST

This time ME / MTech Tancet scores has been around 15 - 50 marks out of 100. Based on this, counselling will be conducted.

And for MCA / MBA, as usual scores are low.
In 2009 for OC students who secured around 35 - 50 Marks got seats in Good College.
So try to predict your college using your TANCET score.

Take one person with you while going for counseling because they ask another person to sign the application for authority purpose while choosing college.

Sunday, July 18, 2010

West Bengal train accident july 19

KOLKATA: Railway minister Mamata Banerjee Monday said there was "some doubt" over the West Bengal train accident in which at least 49 people were killed.

The speeding Sealdah-bound Uttar Banga Express rammed into the stationary Bhagalpur-Ranchi Vananchal Express from the rear at Sainthia station in West Bengal's Birbhum district early Monday morning.

Banerjee told reporters while leaving for the accident site: "We have some doubt in our mind. We are searching for information. Let us now find details."

Describing it as "a sad incident", she said: "Human lives are very important."

The minister said: "We are really sorry for this. Sorry to see two incidents take place in West Bengal in two months."

"Whatever happens is not (a) casual thing. We will take necessary action. We will take strong steps whoever is behind this."

On May 28, 148 people were killed when the Mumbai-bound Gyaneshwari Express derailed following Maoist guerrillas sabotaging the tracks near Jhargram in West Midnapore district. A speeding freight train then rammed into the derailed coaches.
West Bengal train accident july 19


Sainthia, West Bengal: Forty-nine people are feared dead in a train collision in West Bengal, near the Jharkhand border. Over 170 people have been taken to hospital, some are said to be in critical condition.

At around 2 am on Monday, the Uttar Banga Express coming in from New Cooch Bihar to Sealdah rammed a stationary Bhagalpur-Ranchi Vananchal Express at Sainthia station in Virbhum district, 191 kms from Howrah.



Casualties are feared in two general second class bogies of the Vananchal Express. These coaches and the luggage van and guard van of the train were hit. A local television channel said so severe was the impact that the roof of a bogey had been detached in the collision and was thrown up on an overbridge.

Relief operations are on and around 32 bodies have reportedly been removed from the wreckage. The Army has also been called in for rescue operations. Seven Army officers and 145 jawans have been sent to the site. Equipment like gas cutters are being used to bring people out of the mangled heaps that the bogies are. More gas cutters are being brought from Panagarh and Kachhrapara to extricate bodies trapped in the mangled coaches. The focus is on saving lives and the locals in the area have been helping in rescue work. There are some people coming out unscathed from the wreckage

Eastern Railway CPRO, Samir Goswami said a few trains - the Kanchunjunga Express, the Sealdah bound Darjeeling mail and the Kanchankanya Express had been diverted.

Railway Minister Mamata Banerjee was in Delhi and rushed to the spot as did senior officials.

Questions are being raised on how the two trains were on the same line. Also, the scheduled arrival and departure of the Uttar Banga Express at Sainthia was 1.38 am and 1.39 am and it was not clear why the train, which was to halt at the station, arrived at a high speed. An inquiry headed by the Commissioner, Railway Safety has been ordered into the incident, the PRO of the Railways Ministry said.

Control rooms have been opened in Sealdah, Malda, Bhagalpur and Howrah.

Helpline numbers:

Ranchi: (0651) 2600263/64, 2460488, 2461404
Sealdah: (033) 23503535, 23503537,
Malda: (06436) 222061
Bhagalpur: (06412) 4222433
Jamalpur (063444) 3101
(With PTI inputs)


Did human error cause Bengal train accident?

Kolkata: West Bengal woke up to the news of another train accident on Monday morning, this time in Sainthia near the Jharkhand border. The Uttar Banga Express rammed a stationary Vanachal Express at Sainthi station hitting the rear coaches of the train.

Fifty people are feared dead, the driver of the Uttar Banga Express was killed as was the guard of the Vanachal Express.

Several questions are being raised. Was it a signal error or communication error that caused the accident?

The allowed speed at the time that the Uttar Banga Express entered the station was 20 kmph and the driver may have missed that yellow signal and not reduced speed.


The train was scheduled to arrive at Sainthia at 1.38 am and leave at 1.39 am after a minute's halt, and so should not have been entering the station at a high speed.

Also, it is not clear why the two trains on the same line? The Vanachal Express was running late by several hours and was leaving the station when the collision occurred. So why was the Uttar Banga not switched to another line?

Questions that shall now be answered after the inquiry that shall no doubt be ordered into the tragedy.


Compensation of Rs 5 lakh for train accident victims: Mamata

Kolkata: Over 50 people are feared dead in a train collision in West Bengal, near the Jharkhand border.

At around 2 am on Monday, the Uttar Banga Express coming in from New Cooch Behar to Sealdah rammed a stationary Bhagalpur-Ranchi Vananchal Express at Sainthia station in Virbhum district, 191 kms from Howrah.

Railway Minister Mamata Banerjee rushed to the spot as did senior officials.
"It is sad that two such incidents happened in last two months. I am leaving fort the accident site. We will take all necessary steps for relief. Forty nine people have died in the accident. A compensation of Rs 5 lakh will be given," she said at the Kolkata airport.


Read more at: http://www.ndtv.com/article/india/compensation-of-rs-5-lakh-for-train-accident-victims-mamata-38305?cp

Friday, July 16, 2010

maryland earthquake vedio


3.6-magnitude earthquake strikes Maryland
A 3.6-magnitude earthquake struck near the Gaithersburg, Maryland, area just after 5 a.m. ET Friday, according to the U.S. Geological Survey.


Maryland- A 3.6-magnitude earthquake struck near the Gaithersburg, Maryland, area just after 5 a.m. ET Friday, according to the U.S. Geological Survey.

The center of the quake was about 20 miles northwest of Washington, the USGS said.

The earthquake was the largest in the area since 1974 -- and the first registering above 3.0 on the Richter scale there in that time period, said Amy Vaughan, a geophysicist at the USGS National Earthquake Information Center.


t 5:04am, a minor 3.6 earthquake occurred in northwestern portions of the Washington D.C. area.

According to the United States Geological Survey (USGS), the earthquake was about 10 miles northwest of Rockville, Maryland and at a depth of about 3.1 miles below the surface which is very much a shallow earthquake enhancing the ability to feel the tremors. However while you'll feel the tremors from a 3.6 earthquake especially at such a shallow depth, the risk for damage is definitely on the lower side.

shuttles could continue to fly

shuttles could continue to fly

WASHINGTON - A KEY Senate panel approved Thursday a 2011 budget proposal for the US space agency Nasa that would extend the space shuttle program in a compromise from the Obama administration's demands.

Republican and Democratic members of the Senate Commerce, Science and Transportation Committee unanimously approved the legislation, after months of debate and criticism.

The powerful Senate Budget Committee must still approve the bill before sending it to the full chamber for a vote.

Although the plan maintains the White House's 19-billion-dollar (S$26 billion) request for Nasa funding for the fiscal year that begins on Oct 1, it adds another shuttle mission in 2011 to the two already scheduled for November and February.

The US space shuttles are set to be being retired early next year, after President Barack Obama opted not to fund a successor program, opting instead to encourage private spacecraft development. Nasa will then depend on Russia to fly astronauts to the International Space Station orbiting outpost until a new private or US government spacecraft becomes available.

The Senate committee's bill ordered Nasa to begin working on a heavy-lift rocket immediately, rather than in 2015, as proposed by Obama. 'Nasa is an agency in transition. We've had to take a clear, hard look at what we want from our space agency in the years and decades to come,' Democratic Senator Jay Rockefeller, who chairs the Senate panel, said in a statement. -- AFP


Congressional legislators in Florida are mounting a campaign to extend space shuttle operations to 2015, adding two flights each year. U.S. Rep. Suzanne Kosmas said a bipartisan plan is in the works, which would require adding another $200 million to the NASA budget for 2010 and between $1.5 – $2 billion a year starting in the 2011-12 budget year. "We're not going to do anything that's not safe," Kosmas was quoted in Florida Today, adding that securing the funding would be difficult in tight budget times, but "we're going to go for it," she said.

At Kennedy Space Center early Monday morning after Endeavour returned home safely following the STS-130 mission, space shuttle program managers confirmed that while the shuttles are in good shape to continue flying, extending the program is not the direction their teams have been headed.

"From a technical, engineering standpoint, there would be nothing stopping the vehicles from being able to fly," said space shuttle integration manager Mike Moses. "They have a lot of life in them. We talk about the risks and hazards of flying, and that's a two edged sword. Anytime you're launching into space is a risky proposition, but this is a vehicle that we understand its risks very well, and we've learned how to work around the pieces that can cause us problems – the foam from Columbia is a good example. We've come a long way, if you look at the performance of the external tank since then, we have put a set of controls in place that have been paying off and really driving our risk numbers down."

Latest java interview question

what is a encapsulation ?

Encapsulation is one of the four fundamental OOP concepts. The other three are inheritance, polymorphism, and abstraction.

Encapsulation is the technique of making the fields in a class private and providing access to the fields via public methods. If a field is declared private, it cannot be accessed by anyone outside the class, thereby hiding the fields within the class. For this reason, encapsulation is also referred to as data hiding.

Encapsulation can be described as a protective barrier that prevents the code and data being randomly accessed by other code defined outside the class. Access to the data and code is tightly controlled by an interface.

Benefits of Encapsulation:
  • The fields of a class can be made read-only or write-only.

  • A class can have total control over what is stored in its fields.

  • The users of a class do not know how the class stores its data. A class can change the data type of a field, and users of the class do not need to change any of their code.

The main benefit of encapsulation is the ability to modify our implemented code without breaking the code of others who use our code. With this feature Encapsulation gives maintainability, flexibility and extensibility to our code.

Christopher Morgan: desire for sex with 10-year-old girl turned into nightmare

The name Christopher Morgan has made it to the top of Google most-searched list, yet it is not clear what Christopher Morgan people are searching so frantically for. There are a few if you search in Google and Google News. But the one who repulsed most in the recent times is the Christopher R. Morgan who turned up recently at Bergen to have a fling with a 10-year-old girl, only to fall in the trap set by the computer crimes unit.
A medical records billing clerk, Morgan was reportedly keeping in touch through internet with a woman and was led to believe that he was making arrangements to engage in sexual acts, which included intercourse with her 10-year-old daughter. What he didn’t know, however, was that he was actually making arrangements with an undercover detective working for Bergen County Prosecutor John L. Molinelli’s computer crimes unit.
So on the stipulated day, he turned up at Bergen, only to find the cops waiting for him there. “He arrived from Virginia Beach at a prearranged meeting location in Bergen County [Upper Saddle River] and was arrested without incident,” the prosecutor said.
Morgan is charged with aggravated sexual assault, endangerment and luring and was being held on $250,000 bail pending court hearing.


The Texas Court of Criminal Appeals has stayed the execution of 42 years old Jonathan Marcus Green convicted of kidnapping, raping and strangling a 12 year old girl near Houston 10 years ago to consider whether he is too mentally ill and delusional to be put to death.
The 42 year old was supposed to be injected with a legal injection on Wednesday evening and was even in the death house in Huntsville when he heard of the reprieve.
Green was arrested when police cadaver dogs led authorities to her body in his home. DNA evidence tied Green to the crime and Montgomery county jury convicted him of kidnapping, rape and murder and had sentenced Green to the death row in June 2000 for slaying Christina LeAnn Neal.
Green was scheduled to die in the Texas death chamber in Huntsville and would have been the 14th killer Texas has executed this year and the first of two on consecutive nights in the nation’s most active death penalty state.
But now court has ordered the stay so that his mental competency can be further explored. Green’s attorney claims that he suffers from schizophrenia and no longer meets the criteria set forth by law to be eligible for execution.


Christopher Morgan’s History


‘Going Underground’, Christopher Morgan’s first original play, was based on some 6875 hours of research. (This is a conservative estimate of his time spent on the tube commuting between Ealing and Southgate during the previous decade.) The Beaufort Players produced the play in 2005 and entered it into the National Drama Festivals Association competition. It was awarded The George Taylor Memorial Award for best original play of the year. (The picture above shows Christopher with his award.) The play has been followed by a companion piece called “waiting”.
After moving to London in 1985 Christopher linked to The Beaufort Players, Ealing, of which he’s still an dynamic member. Over the past 2 decades he has directed an amount of plays, including ‘Dandy Dick’ (Pinero) and ‘Nude With Violin’ (Coward). He has also created adjustments for the company letting in ‘The Pilgrim’s Progress’ (Bunyan) and ‘Bah! Humbug!!’ (An advanced version of Dickens’ ‘A Christmas Carol’). We always remember of him.

New symbol for indian rupee



Indian Rupee becomes one of the select few currencies in the world to have it's own unique identity as it gets a new symbol which is a mix of the Devanagiri 'Ra' and Roman 'R'. With the adoption of the new symbol, the Indian Rupee joins the US Dollar, the British Pound Sterling, the Euro and the Japanese Yen as only the fifth currency in the world to have a distinct identity. The new symbol will differentiate the Indian Rupee from the rupee of Pakistan, Nepal, Sri Lanka and the Rupiah of Indonesia.

The symbol, designed by D Udaya Kumar, a graduate from IIT Bombay was selected from 3,000 designs entered for the competition announced by the RBI to find a symbol for the Rupee. Udaya Kumar will be awarded Rs. 2.5 lakh by the Finance Ministry.

The 'Indian Rupee' symbol is to be adopted within six months in India and all over the world in about 24 months. The new symbol will not be embossed on coins or printed on currency notes.

The Indian Rupee symbol will find it's way into the 'Unicode Standard' so that computer users all over the world can use it.

Thursday, July 15, 2010

Enhanced for loop

Enhanced for loop

The enhanced for loop allows you to iterate through a collection without having to create an Iterator or without having to calculate beginning and end conditions for a counter variable. The enhanced for loop is the easiest of the new features to immediately incorporate in your code. In this tip you will see how the enhanced for loop replaces more traditional ways of sequentially accessing elements in a collection.

Syntax: for (int i : squares)

squares means object



Here is a short program, OldForArray, that uses the for loop.
public class OldForArray {

public static void main(String[] args){
int[] squares = {0,1,4,9,16,25};
for (int i=0; i< j =" 0;" squares =" {0," style="font-weight: bold; color: rgb(153, 51, 0);">Altho the enhanced for loop can make code much clearer, it can't be used in some common situations.
Only access. Elements can not be assigned to, eg, not to increment each element in a collection.
Only single structure. It's not possible to traverse two structures at once, eg, to compare two arrays.
Only single element. Use only for single element access, eg, not to compare successive elements.
Only forward. It's possible to iterate only forward by single steps.
At least Java 5. Don't use it if you need compatibility with versions before Java 5.


Enhance for loop in java,servlet,jsp,struts

ufo over chinese airport video

UFO Over Chinese Airport
There has never been an explanation of what the UFO was. And still no explanation of what this weeks UFO in China. Many people wonder if the Chinese government is responsible for what has been seen flying over the airport on Wednesday.

amazing ufo china july 2010
An unidentified flying object (UFO) disrupted air traffic over Zhejiang’s provincial capital Hangzhou late on Wednesday, the municipal government said on Thursday. Xiaoshan Airport was closed after the UFO was detected at around 9 pm, and some flight…

UFO Over Chinese Airport Video Footage Of 7,July, 2010

UFO Over Chinese Airport
There has never been an explanation of what the UFO was. And still no explanation of what this weeks UFO in China. Many people wonder if the Chinese government is responsible for what has been seen flying over the airport on Wednesday.

amazing ufo china july 2010
An unidentified flying object (UFO) disrupted air traffic over Zhejiang’s provincial capital Hangzhou late on Wednesday, the municipal government said on Thursday. Xiaoshan Airport was closed after the UFO was detected at around 9 pm, and some flight…

Thursday, July 8, 2010

tnea 2010 vacancy position

TNEA Anna University Counselling Procedure and Vacancy Position
Anna University is a dream for most students to get seat over there. Anna university each year conduct counseling for all students who completed their +2 or Diploma.
Diploma Students can join directly to second year where as +2 students join in First year.


Who are all Eligible to Join in Anna University and affiliated Engineering Colleges?

* B.E./B.Tech. Degree (Four years): 10 + 2 of Indian System or its
equivalent 12 years of school education.
* Must have studied in English medium and should have obtained
a pass in the qualifying examination with Good Grades in Physics,
Chemistry and Mathematics
* B.Arch Degree (Five Years): In addition to the above qualification,
the candidates must have passed the National Aptitude Test
conducted by the Council of Architecture, India (www.nata.in).
* M.E./M.Tech.Degree (Two Years): Should posses first class B.E. /
B.Tech. degree Programme or First class MCA degree (10+2+3+3)
or First class M.Sc 5 -year Integrated in (Computer Science
Engineering, Information Technology, Software Engineering).
* More Details http://www.annauniv.edu/cia/Brochure.pdf

Attending Counselling:

* Counseling for the students are conducted by Anna university each year after applying for counseling students TNEA Merit Rank list will be published in anna university Website(http://annauniv.edu).

* Depending on Merit List students are called for Tamilnadu Engineering Admission.

* Everyone can see their vacancy Position of their dream college up to date through online in Anna university Website.

You can View list of Colleges and List of Departments of TNEA 2010 and Vacancy Position
CLICK HERE
You might also like:
ssee the status

tnea 2009 vacancy position

TNEA Anna University Counselling Procedure and Vacancy Position
Anna University is a dream for most students to get seat over there. Anna university each year conduct counseling for all students who completed their +2 or Diploma.
Diploma Students can join directly to second year where as +2 students join in First year.


Who are all Eligible to Join in Anna University and affiliated Engineering Colleges?

* B.E./B.Tech. Degree (Four years): 10 + 2 of Indian System or its
equivalent 12 years of school education.
* Must have studied in English medium and should have obtained
a pass in the qualifying examination with Good Grades in Physics,
Chemistry and Mathematics
* B.Arch Degree (Five Years): In addition to the above qualification,
the candidates must have passed the National Aptitude Test
conducted by the Council of Architecture, India (www.nata.in).
* M.E./M.Tech.Degree (Two Years): Should posses first class B.E. /
B.Tech. degree Programme or First class MCA degree (10+2+3+3)
or First class M.Sc 5 -year Integrated in (Computer Science
Engineering, Information Technology, Software Engineering).
* More Details http://www.annauniv.edu/cia/Brochure.pdf

Attending Counselling:

* Counseling for the students are conducted by Anna university each year after applying for counseling students TNEA Merit Rank list will be published in anna university Website(http://annauniv.edu).

* Depending on Merit List students are called for Tamilnadu Engineering Admission.

* Everyone can see their vacancy Position of their dream college up to date through online in Anna university Website.

You can View list of Colleges and List of Departments of TNEA 2010 and Vacancy Position
CLICK HERE
You might also like:
see the status

Wednesday, July 7, 2010

struts action types

There are 5 Actions classes in Struts

1.Forward

2.Include

3.Dispatch

4.LookUpDispatch and

5.switch


Action -- basic action class (It is used for business logic)

Include Action-- Similar to Include in our jsp

Forward Action-- Instead of directly forwarding from one JSP to Another We user Forward Action (If we do that directly it violates Struts MVC Architechture).

Dispatch Action-- Handling multiple operations in multiple methods. one method per operation instead of merging the entire logic in single execute method of action class.

Look up Dispatch Action-- Purpose is Similar to Dispatch action.Implementation is different Recommended not to use this.

Switch Action-- to switch between different modules in struts application



Dispatch Action

--------------------------

DispatchAction provides a mechanism for grouping a set of related functions into a single action, thus eliminating the need to create seperate actions for each functions. In this example we will see how to group a set of user related actions like add user, update user and delete user into a single action called UserAction.

The class UserAction extends org.apache.struts.actions.DispatchAction. This class does not provide an implementation of the execute() method as the normal Action class does. The DispatchAction uses the execute method to manage delegating the request to the individual methods based on the incoming request parameter. For example if the incoming parameter is "method=add", then the add method will be invoked. These methods should have similar signature as the execute method.
01.public class UserAction extends DispatchAction {
02.
03. private final static String SUCCESS = "success";
04.
05. public ActionForward add(ActionMapping mapping, ActionForm form,
06. HttpServletRequest request, HttpServletResponse response)
07. throws Exception {
08. UserForm userForm = (UserForm) form;
09. userForm.setMessage("Inside add user method.");
10. return mapping.findForward(SUCCESS);
11. }
12.
13. public ActionForward update(ActionMapping mapping, ActionForm form,
14. HttpServletRequest request, HttpServletResponse response)
15. throws Exception {
16. UserForm userForm = (UserForm) form;
17. userForm.setMessage("Inside update user method.");
18. return mapping.findForward(SUCCESS);
19. }
20.
21. public ActionForward delete(ActionMapping mapping, ActionForm form,
22. HttpServletRequest request, HttpServletResponse response)
23. throws Exception {
24. UserForm userForm = (UserForm) form;
25. userForm.setMessage("Inside delete user method.");
26. return mapping.findForward(SUCCESS);
27. }
28.}

If you notice the signature of the add, update and delete methods are similar to the execute method except the name. The next step is to create an action mapping for this action handler. The request parameter name is specified using the parameter attribute. Here the request parameter name is method.
1.
2.
3.
4.

5.


Now lets see how to invoke a DispatchAction from jsp. We have a simple form with three buttons to add, update and delete a user. When each button is clicked a different method in UserAction class is invoked.





Now consider the update and the delete button. The request parameter name specified in the action handler is "method". So this should be specified as the property name for the submit button. The name of the method to be invoked and the value of the button should be the same. So when the button is clicked the corresponding method in the UserAction will be called. The delete button shows an alternate way to specify the value of the button.

Here the main constraint is the method name and the button name should be same. So we can't have an update button like this "Update". Inorder to avoid this you can call a javascript function on click of the button. Specify the action and submit the form from javascript. In this way we can have a different button name and method name. On click of the Add button the action value is set to "UserAction.do?method=add" and the form is submitted from javascript.

On executing the sample example the following page is displayed to the user.

Monday, July 5, 2010

Hibernate using generator

Hibernate using generator:

Hibernate generator element generate the primary key for new record. Generate method is used for different situation.

i
ncrement

:
It generates identifiers of type long, short or int that are unique only when no other process is inserting data into the same table. It should not the used in the clustered environment.
identity
It supports identity columns in DB2, MySQL, MS SQL Server, Sybase and HypersonicSQL. The returned identifier is of type long, short or int.
sequence
The sequence generator uses a sequence in DB2, PostgreSQL, Oracle, SAP DB, McKoi or a generator in Interbase. The returned identifier is of type long, short or int

hilo

The hilo generator uses a hi/lo algorithm to efficiently generate identifiers of type long, short or int, given a table and column (by default hibernate_unique_key and next_hi respectively) as a source of hi values. The hi/lo algorithm generates identifiers that are unique only for a particular database. Do not use this generator with connections enlisted with JTA or with a user-supplied connection.
seqhilo


The seqhilo generator uses a hi/lo algorithm to efficiently generate identifiers of type long, short or int, given a named database sequence.


uuid


The uuid generator uses a 128-bit UUID algorithm to generate identifiers of type string, unique within a network.The UUID is encoded as a string of hexadecimal digits of length 32.

guid
uses a database-generated GUID string on MS SQL or mysql

native


It picks identity, sequence or hilo depending upon the capabilities of the underlying database.

assigned


Application to assign an identifier to the object before save() is called. This is the default strategy if no
element is specified.

select


retrieves a primary key assigned by a database trigger by selecting the row by some unique key and retrieving the primary key value.

foreign


uses the identifier of another associated object. Usually used in conjunction with a primary key association.




Sunday, July 4, 2010

Hibernate cache

Hibernate cache is two types

1. First level cache : It's act as session

2. Second level cache : It's act as sessionfactory.

update more very soon.


An Introduction to Caching

Caching is widely used for optimizing database applications. A cache is designed to reduce traffic between your application and the database by conserving data already loaded from the database. Database access is necessary only when retrieving data that is not currently available in the cache. The application may need to empty (invalidate) the cache from time to time if the database is updated or modified in some way, because it has no way of knowing whether the cache is up to date.

Hibernate Caching

Hibernate uses two different caches for objects: first-level cache and second-level cache. First-level cache is associated with the Session object, while second-level cache is associated with the Session Factory object. By default, Hibernate uses first-level cache on a per-transaction basis. Hibernate uses this cache mainly to reduce the number of SQL queries it needs to generate within a given transaction. For example, if an object is modified several times within the same transaction, Hibernate will generate only one SQL UPDATE statement at the end of the transaction, containing all the modifications. This article focuses on second-level cache. To reduce database traffic, second-level cache keeps loaded objects at the Session Factory level between transactions. These objects are available to the whole application, not just to the user running the query. This way, each time a query returns an object that is already loaded in the cache, one or more database transactions potentially are avoided.

In addition, you can use a query-level cache if you need to cache actual query results, rather than just persistent objects.

Cache Implementations
Caches are complicated pieces of software, and the market offers quite a number of choices, both open source and commercial. Hibernate supports the following open-source cache implementations out-of-the-box:
  • EHCache (org.hibernate.cache.EhCacheProvider)
  • OSCache (org.hibernate.cache.OSCacheProvider)
  • SwarmCache (org.hibernate.cache.SwarmCacheProvider)
  • JBoss TreeCache (org.hibernate.cache.TreeCacheProvider)

Friday, July 2, 2010

Hibernate latest interview question

Hibernate Interview Questions
1. What is Hibernate?
Hibernate is a powerful, high performance object/relational persistence and query service.
This lets the users to develop persistent classes following object-oriented principles such
as association, inheritance, polymorphism, composition, and collections.

2. What is ORM?

ORM stands for Object/Relational mapping. It is the programmed and translucent
perseverance of objects in a Java application in to the tables of a relational database using
the metadata that describes the mapping between the objects and the database. It works
by transforming the data from one representation to another.

3. What does an ORM solution comprises of?

• It should have an API for performing basic CRUD (Create, Read, Update, Delete)
operations on objects of persistent classes
• Should have a language or an API for specifying queries that refer to the classes
and the properties of classes
• An ability for specifying mapping metadata
• It should have a technique for ORM implementation to interact with transactional
objects to perform dirty checking, lazy association fetching, and other optimization
functions

4. What are the different levels of ORM quality?

There are four levels defined for ORM quality.
i. Pure relational
ii. Light object mapping
iii. Medium object mapping
iv. Full object mapping

5. What is a pure relational ORM?
The entire application, including the user interface, is designed around the relational
model and SQL-based relational operations.

6. What is a meant by light object mapping?
The entities are represented as classes that are mapped manually to the relational tables.
The code is hidden from the business logic using specific design patterns. This approach
is successful for applications with a less number of entities, or applications with common,
metadata-driven data models. This approach is most known to all.
7. What is a meant by medium object mapping?
The application is designed around an object model. The SQL code is generated at build
time. And the associations between objects are supported by the persistence mechanism,
and queries are specified using an object-oriented expression language. This is best suited
for medium-sized applications with some complex transactions. Used when the mapping
exceeds 25 different database products at a time.
8. What is meant by full object mapping?
Full object mapping supports sophisticated object modeling: composition, inheritance,
polymorphism and persistence. The persistence layer implements transparent persistence;
persistent classes do not inherit any special base class or have to implement a special
interface. Efficient fetching strategies and caching strategies are implemented
transparently to the application.
9. What are the benefits of ORM and Hibernate?
There are many benefits from these. Out of which the following are the most important
one.
i. Productivity – Hibernate reduces the burden of developer by providing much of
the functionality and let the developer to concentrate on business logic.
ii. Maintainability – As hibernate provides most of the functionality, the LOC for the
application will be reduced and it is easy to maintain. By automated object/relational
persistence it even reduces the LOC.
iii. Performance – Hand-coded persistence provided greater performance than
automated one. But this is not true all the times. But in hibernate, it provides more
optimization that works all the time there by increasing the performance. If it is
automated persistence then it still increases the performance.
iv. Vendor independence – Irrespective of the different types of databases that are
there, hibernate provides a much easier way to develop a cross platform application.
10. How does hibernate code looks like?
Session session = getSessionFactory().openSession();
Transaction tx = session.beginTransaction();
MyPersistanceClass mpc = new MyPersistanceClass ("Sample App");
session.save(mpc);
tx.commit();
session.close();
The Session and Transaction are the interfaces provided by hibernate. There are many
other interfaces besides this.
11. What is a hibernate xml mapping document and how does it look like?
In order to make most of the things work in hibernate, usually the information is provided
in an xml document. This document is called as xml mapping document. The document
defines, among other things, how properties of the user defined persistence classes’ map
to the columns of the relative tables in database.
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">









Everything should be included under tag. This is the main tag for
an xml mapping document.
12. Show Hibernate overview?
`
13. What the Core interfaces are of hibernate framework?
There are many benefits from these. Out of which the following are the most important
one.
i. Session Interface – This is the primary interface used by hibernate applications.
The instances of this interface are lightweight and are inexpensive to create and destroy.
Hibernate sessions are not thread safe.
ii. SessionFactory Interface – This is a factory that delivers the session objects to
hibernate application. Generally there will be a single SessionFactory for the whole
application and it will be shared among all the application threads.
iii. Configuration Interface – This interface is used to configure and bootstrap
hibernate. The instance of this interface is used by the application in order to specify the
location of hibernate specific mapping documents.
iv. Transaction Interface – This is an optional interface but the above three interfaces
are mandatory in each and every application. This interface abstracts the code from any
kind of transaction implementations such as JDBC transaction, JTA transaction.
v. Query and Criteria Interface – This interface allows the user to perform queries
and also control the flow of the query execution.
14. What are Callback interfaces?
These interfaces are used in the application to receive a notification when some object
events occur. Like when an object is loaded, saved or deleted. There is no need to
implement callbacks in hibernate applications, but they’re useful for implementing
certain kinds of generic functionality.
15. What are Extension interfaces?
When the built-in functionalities provided by hibernate is not sufficient enough, it
provides a way so that user can include other interfaces and implement those interfaces
for user desire functionality. These interfaces are called as Extension interfaces.
16. What are the Extension interfaces that are there in hibernate?
There are many extension interfaces provided by hibernate.
ı ProxyFactory interface - used to create proxies
ı ConnectionProvider interface – used for JDBC connection management
ı TransactionFactory interface – Used for transaction management
ı Transaction interface – Used for transaction management
ı TransactionManagementLookup interface – Used in transaction management.
ı Cahce interface – provides caching techniques and strategies
ı CacheProvider interface – same as Cache interface
ı ClassPersister interface – provides ORM strategies
ı IdentifierGenerator interface – used for primary key generation
ı Dialect abstract class – provides SQL support
17. What are different environments to configure hibernate?
There are mainly two types of environments in which the configuration of hibernate
application differs.
i. Managed environment – In this kind of environment everything from database
connections, transaction boundaries, security levels and all are defined. An example of
this kind of environment is environment provided by application servers such as JBoss,
Weblogic and WebSphere.
ii. Non-managed environment – This kind of environment provides a basic
configuration template. Tomcat is one of the best examples that provide this kind of
environment.
18. What is the file extension you use for hibernate mapping file?
The name of the file should be like this : filename.hbm.xml
The filename varies here. The extension of these files should be “.hbm.xml”.
This is just a convention and it’s not mandatory. But this is the best practice to follow this
extension.
19. What do you create a SessionFactory?
Configuration cfg = new Configuration();
cfg.addResource("myinstance/MyConfig.hbm.xml");
cfg.setProperties( System.getProperties() );
SessionFactory sessions = cfg.buildSessionFactory();
First, we need to create an instance of Configuration and use that instance to refer to the
location of the configuration file. After configuring this instance is used to create the
SessionFactory by calling the method buildSessionFactory().
20. What is meant by Method chaining?
Method chaining is a programming technique that is supported by many hibernate
interfaces. This is less readable when compared to actual java code. And it is not
mandatory to use this format. Look how a SessionFactory is created when we use method
chaining.
SessionFactory sessions = new Configuration()
.addResource("myinstance/MyConfig.hbm.xml")
.setProperties( System.getProperties() )
.buildSessionFactory();
21. What does hibernate.properties file consist of?
This is a property file that should be placed in application class path. So when the
Configuration object is created, hibernate is first initialized. At this moment the
application will automatically detect and read this hibernate.properties file.
hibernate.connection.datasource = java:/comp/env/jdbc/AuctionDB
hibernate.transaction.factory_class =
net.sf.hibernate.transaction.JTATransactionFactory
hibernate.transaction.manager_lookup_class =
net.sf.hibernate.transaction.JBossTransactionManagerLookup
hibernate.dialect = net.sf.hibernate.dialect.PostgreSQLDialect
22. What should SessionFactory be placed so that it can be easily accessed?
As far as it is compared to J2EE environment, if the SessionFactory is placed in JNDI
then it can be easily accessed and shared between different threads and various
components that are hibernate aware. You can set the SessionFactory to a JNDI by
configuring a property hibernate.session_factory_name in the hibernate.properties file.
23. What are POJOs?
POJO stands for plain old java objects. These are just basic JavaBeans that have defined
setter and getter methods for all the properties that are there in that bean. Besides they
can also have some business logic related to that property. Hibernate applications works
efficiently with POJOs rather then simple java classes.
24. What is object/relational mapping metadata?
ORM tools require a metadata format for the application to specify the mapping between
classes and tables, properties and columns, associations and foreign keys, Java types and
SQL types. This information is called the object/relational mapping metadata. It defines
the transformation between the different data type systems and relationship
representations.
25. What is HQL?
HQL stands for Hibernate Query Language. Hibernate allows the user to express queries
in its own portable SQL extension and this is called as HQL. It also allows the user to
express in native SQL.
26. What are the different types of property and class mappings?
• Typical and most common property mapping

Or



• Derived properties

• Typical and most common property mapping

• Controlling inserts and updates
insert="false" update="false"/>
27. What is Attribute Oriented Programming?
XDoclet has brought the concept of attribute-oriented programming to Java. Until JDK
1.5, the Java language had no support for annotations; now XDoclet uses the Javadoc tag
format (@attribute) to specify class-, field-, or method-level metadata attributes. These
attributes are used to generate hibernate mapping file automatically when the application
is built. This kind of programming that works on attributes is called as Attribute Oriented
Programming.
28. What are the different methods of identifying an object?
There are three methods by which an object can be identified.
i. Object identity –Objects are identical if they reside in the same memory location
in the JVM. This can be checked by using the = = operator.
ii. Object equality – Objects are equal if they have the same value, as defined by the
equals( ) method. Classes that don’t explicitly override this method inherit the
implementation defined by java.lang.Object, which compares object identity.
iii. Database identity – Objects stored in a relational database are identical if they
represent the same row or, equivalently, share the same table and primary key value.
29. What are the different approaches to represent an inheritance hierarchy?
i. Table per concrete class.
ii. Table per class hierarchy.
iii. Table per subclass.
30. What are managed associations and hibernate associations?
Associations that are related to container management persistence are called managed
associations. These are bi-directional associations. Coming to hibernate associations,
these are unidirectional.