Tuesday, December 21, 2004

simpest way to create jar files

This ia the simpest way to create jar files....

How to create a jar file - by Tanul Karkare:

create a file MANIFEST.MF having 2 lines:
Manifest-Version: 1.0
Main-Class: path of ur main class file..

create a folder META-INF in ur application dir.
put this MANIFEST.MF into that.

execute the command:
jar cvfm xyz.jar META-INF/MANIFEST.MF *.class

to create an executable jar file.

just that's it.


-----------


Take an example:
create a folder test(any name will do)
create a file TestJar.java in that:

import javax.swing.*;

class TestJar extends JFrame
{
public static void main(String[] args)
{
TestJar tj = new TestJar();
tj.setSize(200, 200);
tj.setVisible(true);
tj.show();
}
}

compile this file , test with java command.
it should show a window.

create a manifest file as above inside meta-inf folder (which is inside test folder) with content:-

Manifest-Version: 1.0
Created-By: Tanul
Main-Class: TestJar


execute the command inside test folder:(test.jar can be any name)
jar cvfm test.jar META-INF/MANIFEST.MF *.class

ur executable jar is ready.
double click on it and it will show u a window.

u can give this to anybody without letting him have ur source files.

Professional League

I think this is one news that may help Indian Hockey achieve its earlier status.... I hope it does that !!!

The Indian Hockey Federation (IHF) will launch a professional domestic league in January involving foreign players to help the country regain its past glory in the game.
India have not won a major title since claiming the last of their eight men's Olympic gold medals at Moscow in 1980. The team finished seventh at the Athens Games in August.
Each of the five top tier teams - the league will be played in two levels - will include five foreign players each with both domestic and foreign players signing up financial contracts, IHF president KPS Gill told reporters on Wednesday.
"The premier hockey league is the beginning of a landmark journey of re-capturing the glory of hockey and rebuilding India's supremacy in the game internationally," Gill said.
"The rebuilding has to start at ground level by giving a platform to our players to hone their talent by playing in an active league," he said.
The league, offering a total prize money of around Rs seven million ($155,380), will be played over five weeks from January 13 in the southern city of Hyderabad.
Many top Asian players now figure in European leagues and the IHF will schedule the league during winter to attract the best talent from Europe as well as major continental sides like South Korea and Pakistan.
Global sports channel ESPN have said they will broadcast the games live for 10 years to help bring in sponsorship which is almost entirely focussed on cricket in India.
The games would be played NBA-style, over four quarters in an effort to package the league better. Hockey matches are normally played over 70 minutes in two sessions.

Thursday, November 18, 2004

Bryan Adams : Career in brief

Im a great fan of bryan adams.. anyone who listens him becomes his fan.. that's the magic of his voice...
enjoy,

Bryan Adams: Career in brief

Bryan Adams' solo career was launched with the release of his self-titled debut album Bryan Adams in February of 1980 on A&M Records.
His second album, You Want It, You Got It, which was recorded in NYC in two weeks and released in the spring of 1981.
His third album, Cuts Like a Knife was released in January of 1983, with the single "Straight from the Heart", leading the way.
Adams' fourth album Reckless was released on his 25th birthday, November 5, 1984, and was preceded by the single "Run to You", which reached the Top Ten. Reckless reached No. 1 in the U.S. selling five million copies in America and a reported three million more in the rest of the world.
Into the Fire, followed in March of 1987, prefaced by the single "Heat of the Night," which became Adams' fifth Top Ten hit in the U.S.
Live! Live! Live! a concert album drawn from the 1988 Belgium show, was initially released only in Japan but later garnered a wider audience.
In June of 1991, Adams went back on the road in Europe co-headlining with ZZ Top. This coincided with the release of the single "(Everything I Do) I Do It for You" which topped the U.S. charts for seven weeks - the longest any song had remained at No. 1 in eight years. Its international success was even greater; spending 16 weeks at No. 1 in the U.K., making it the longest-running chart-topper in the history of the British charts.
Waking Up the Neighbours was released in September of 1991, and Adams once again hit the road - this time until July of 1993.
Adams began to look forward to his next studio album, but in the interim released a hits compilation, So Far So Good, in November 1993 featuring the single "Please Forgive Me," a new Adams/Lange track. The song would also find its way into the Top Ten. Then came the Adams' theme song for the movie The Three Musketeers, "All for Love", recorded with Rod Stewart and Sting, which hit No. 1 in the U.S. in January of 1994.
At the beginning of 1996 Adams released a new album 18 'Til I Die. The album featured the flamenco-tinged "Have You Ever Really Loved a Woman?" from the Johnny Depp/Marlon Brando film Don Juan DeMarco
Adams filmed an appearance for MTV's popular Unplugged series in the fall of 1997, and it was released as an album in December.
It was a modest success, and served as a stopgap until the appearance of his next studio album, On a Day Like Today, which was released in October 1998
In November 1999, Adams issued a second hits compilation, The Best of Me, but the American branch of A&M/Interscope declined to release it.
Adams returned in the spring of 2002 collaborating with Hans Zimmer on his first full-length song score for a film, the animated DreamWorks feature Spirit: Stallion of the Cimarron.
His most recent work is entitled Room Service, which was released in September of 2004 where it debuted at No. 1 on the Billboard European Top 100 albums Chart.

http://www.tanul.tk
Visit my Personal Site

Wednesday, October 27, 2004

Browser Redefined...


Firefox: the browser, reloaded


Get Firefox

Tongue Twisters

Here are some of the tongue twisters to keep urself and others ;-) busy....

If you understand, say "understand". If you don't understand, say "don't understand". But if you understand and say "don't understand".How do I understand that you understand? Understand!

I wish to wish the wish you wish to wish, but if you wish the wish the witch wishes, I won't wish the wish you wish to wish.

Sounding by sound is a sound method of sounding sounds.
A sailor went to sea to see, what he could see. And all he could see was sea, sea, sea.
Purple Paper People, Purple Paper People, Purple Paper People If two witches were watching two watches, which witch would watch which watch?

I thought a thought.But the thought I thought wasn't the thought I thought I thought. If the thought I thought I thought had been the thought I thought, I wouldn't have thought so much.

Once a fellow met a fellow In a field of beans. Said a fellow to a fellow, "If a fellow asks a fellow, Can a fellow tell a fellow What a fellow means?"


Mr Inside went over to see Mr Outside. Mr Inside stood outside and called
to MrOutside inside. Mr Outside answered Mr Inside from inside and Told Mr
Inside to come inside. Mr Inside said "NO", and told Mr Outside to come
outside. MrOutside and Mr Inside argued from inside and outside about going
outside or coming inside. Finally, Mr Outside coaxed Mr Inside to come
inside, then both Mr Outside and Mr Inside went outside to the riverside.

SHE SELLS SEA SHELLS ON THE SEA SHORE , BUT THE SEA SHELLS THAT SHE SELLS,
ON THE SEA SHORE ARE NOT THE REAL ONES

The owner of the inside inn was inside his inside inn with his inside
outside his inside inn.


If one doctor doctors another doctor does the doctor who doctors the doctor
doctor the doctor the way the doctor he is doctoring doctors? Or does the
doctor doctor the way the doctor who doctors doctors? "When a doctor falls
ill another doctor doctor's the doctor. Does the doctor doctoring the doctor
doctor the doctor in his own way or does the doctor doctoring the doctor
doctors the doctor in the doctor's way"

We surely shall see the sun shine shortly. Whether the weather be fine, Or
whether the weather be not, Whether the weather be cold Or whether the
weather be hot, We'll weather the weather Whatever the weather, Whether we
like it or not. watch? Whether the weather is hot. Whether the weather is
cold. Whether the weather is either or not. It is whether we like it or not.

Nine nice night nurses nursing nicely.

A flea and a fly in a flue Said the fly "Oh what should we do" Said the
flea" Let us fly Said the fly"Let us flee" So they flew through a flaw in
the flue

If you tell Tom to tell a tongue-twister his tongue will be twisted as
tongue-twister twists tongues.

Mr. See owned a saw.And Mr. Soar owned a seesaw. Now See's saw sawed Soar's
seesaw Before Soar saw See,
Which made Soar sore.Had Soar seen See's saw Before See sawed Soar's
seesaw, See's saw would not have sawed
Soar's seesaw. So See's saw sawed Soar's seesaw.But it was sad to see Soar
so sore Just because See's saw sawed Soar's seesaw ...

Visit Tanul Karkare's Homepage

Monday, October 25, 2004

Google Technology

we all know that Google loves to play pranks on its users. Recently an article was floating around saying google uses some pigeon-rank-technology with "actual" pigeons... if anyone has got some explanations I am really eager to hear that.
but what I liked most is the FAQ section ;-)

http://www.tanul.info
http://www.geocities.com/ktanul

Monday, October 11, 2004

Story of Tortoise and Hare revisited

Once upon a time a tortoise and a hare had an argument about who was faster.
They decided to settle the argument with a race. They agreed on a route and started off the race.

The hare shot ahead and ran briskly for some time.
Then seeing that he was far ahead of the tortoise, he thought he'd sit under a
tree for some time and relax before continuing the race.

He sat under the tree and soon fell asleep. The tortoise plodding
on overtook him and soon finished the race, emerging as the undisputed champ.

The hare woke up and realised that he'd lost the race.

The moral of the story is that slow and steady wins the race.

This is the version of the story that we've all grown up with.

But then recently, someone told me a more interesting version of this story.
It continues.

The hare was disappointed at losing the race and he did some soul-searching.
He realised that he'd lost the race only because he had been overconfident, careless and lax.
If he had not taken things for granted, there's no way the tortoise
could have beaten him. So he challenged the tortoise to another race.
The tortoise agreed.

This time, the hare went all out and ran without stopping from start to finish.
He won by several miles.

The moral of the story? Fast and consistent will always beat the slow and steady.
If you have two people in your organisation, one slow, methodical and reliable,
and the other fast and still reliable at what he does, the fast and reliable chap
will consistently climb the organisational ladder faster than the slow, methodical chap.

It's good to be slow and steady; but it's better to be fast and reliable.

But the story doesn't end here. The tortoise did some thinking this time, and realised
that there's no way he can beat the hare in a race the way it was currently formatted.
He thought for a while, and then challenged the hare to another race, but on a slightly different route.

The hare agreed. They started off. In keeping with his self-made commitment to be consistently fast,
the hare took off and ran at top speed until he came to a broad river.
The finishing line was a couple of kilometres on the other side of the river.

The hare sat there wondering what to do. In the meantime the tortoise trundled along,
got into the river, swam to the opposite bank, continued walking and finished the race.

The moral of the story? First identify your core competency and then change the playing
field to suit your core competency.

In an organisation, if you are a good speaker, make sure you create opportunities to
give presentations that enable the senior management to notice you.

If your strength is analysis, make sure you do some sort of research,
make a report and send it upstairs. Working to your strengths will not only get you noticed,
but will also create opportunities for growth and advancement.

The story still hasn't ended.

The hare and the tortoise, by this time, had become pretty good friends and they did
some thinking together. Both realised that the last race could have been run much better.

So they decided to do the last race again, but to run as a team this time.

They started off, and this time the hare carried the tortoise till the riverbank.
There, the tortoise took over and swam across with the hare on his back.
On the opposite bank, the hare again carried the tortoise and they reached the finishing
line together. They both felt a greater sense of satisfaction than they'd felt earlier.

The moral of the story? It's good to be individually brilliant and to have strong core
competencies; but unless you're able to work in a team and harness each other's core
competencies, you'll always perform below par because there will always
be situations at which you'll do poorly and someone else does well.

Teamwork is mainly about situational leadership, letting the person with the relevant
core competency for a situation take leadership.

There are more lessons to be learnt from this story.

Note that neither the hare nor the tortoise gave up after failures.
The hare decided to work harder and put in more effort after his failure.

The tortoise changed his strategy because he was already working as hard as he could.
In life, when faced with failure, sometimes it is appropriate to work harder and put in more
effort. Sometimes it is appropriate to change strategy and try something different.
And sometimes it is appropriate to do both.

The hare and the tortoise also learnt another vital lesson. When we stop competing against
a rival and instead start competing against the situation, we perform far better.

When Roberto Goizueta took over as CEO of Coca-Cola in the 1980s, he was faced with
intense competition from Pepsi that was eating into Coke's growth. His executives were
Pepsi-focussed and intent on increasing market share 0.1 per cent a time.

Goizueta decided to stop competing against Pepsi and instead compete against
the situation of 0.1 per cent growth.

He asked his executives what was the average fluid intake of an American per day?
The answer was 14 ounces. What was Coke's share of that? Two ounces. Goizueta said Coke needed a
larger share of that market. The competition wasn't Pepsi. It was the water, tea, coffee, milk
and fruit juices that went into the remaining 12 ounces. The public should reach for a
Coke whenever they felt like drinking something.

To this end, Coke put up vending machines at every street corner.
Sales took a quantum jump and Pepsi has never quite caught up since.

To sum up, the story of the hare and tortoise teaches us many things.
Chief among them are that fast and consistent will always beat slow and steady;
work to your competencies; pooling resources and working as a team will always
beat individual performers; never give up when faced with failure; and finally,
compete against the situation - not against a rival

Friday, October 08, 2004

recently i was going through some of the sites to look out something related to JUnit which is an automatic tool for testing mostly java applications and found something which could be helpful if somebody wants to use it with Eclipse.

Using JUnit With Eclipse IDE by Alexander Prohorenko and Olexiy Prohorenko -- Test-driven development principles call for writing the tests before writing any code. Alexander and Olexiy Prohorenko demonstrate how this approach can be used with the JUnit testing tool and the Eclipse IDE.


a site with list of good technical books
http://max.hosting.ru


********************************
tuxedo fundas
http://e-docs.bea.com/tuxedo/tux71/html/intbas.htm

Hello Everybody

Just wanted to add something to the web world using plain text also as have already contributed using html ( I have a site http://www.tanul.info/ )
will add more laterjust a parting joke....

An old man lived alone in Minnesota. He wanted tospade his potato garden, but it was very hard work.His only son, who would have helped him, was inprison. The old man wrote a letter to his son andmentioned his situation:
Dear Son,I am feeling pretty bad because it looks like I won'tbe able to plant my potato garden this year. I hate tomiss doing the garden, because your mother alwaysloved planting time. I'm just getting too old to bedigging up a garden plot. If you were here, all mytroubles would be over. I know you would dig the plotfor me, if you weren't in prison.
Love,
Dad

Shortly, the old man received this telegram: "ForHeaven's sake, Dad, don't dig up the garden!! That'swhere I buried the GUNS!!"
At 4 a.m. the next morning, a dozen FBI agents andlocal police officers showed up and dug up the entiregarden without finding any guns.Confused, the old man wrote another note to his sontelling him what happened, and asked him what to donext.
His son's reply was: "Go ahead and plant yourpotatoes, Dad.. It's the best I could do for you fromhere."

Moral: NO MATTER WHERE YOU ARE IN THE WORLD, IF YOU HAVE DECIDED TO DO SOMETHING DEEP FROM YOUR HEART !!! THERE IS NOTHING THAT CAN STOP YOU FROM DOING IT ... DO IT!!!

keep enjoying!!!