jwenting 1,905 duckman Team Colleague

There is no need to. Noone wants to "steal your code", it's not worth it.

By definition, anyone with a genuine need to protect his code from theft has the knowledge to prevent such theft.
Anyone else doesn't produce code worth stealing.

jwenting 1,905 duckman Team Colleague

>Averagely speaking, I doubt that a person without skills at say
>playing basketball, would put hard work and dedication to make
>it to the NBA

The NBA is very much a young person's arena. Of course you need talent to reach that level before age starts to take effect. I assume you brought up basketball because professional piano playing and programming don't have that particular restriction, and your argument would fall flat without a straw man. ;)

Here at least programming is considered a young persons' arena. If you're over 30 you have a hard time finding a job in IT below management level (and even there), everyone wants to have a "young and dynamic team".
When I walk into a building for a job interview and see that the average age of the people there is 25 or so I know I won't get hired.
If the average person looks like an athlete, I know I won't get hired.
If the managers are over 40 and seem to like good food, I probably stand a good chance.
Notice that actual skills and personality don't come into the discussion at all?

>Same for programming, I doubt that a person with no programming
>talent will have the ambition and the dedication to become a professional

Now we're talking about something different. The ability to beat talent with effort is quite different from the desire to succeed without talent.

Without that desire, …

jwenting 1,905 duckman Team Colleague

> this is not homework but rather my work
I'm shocked that someone with a programming job can't solve this trivial problem :-O

I would be if I'd not long ago given up all hope that junior programmers have any skills whatsoever any more.
All they seem to be able to do after posting homework questions on forums for years is leach project budgets.

jwenting 1,905 duckman Team Colleague

he's also using the wrong jdbc driver

jwenting 1,905 duckman Team Colleague

no doubt using bots in runescape is as against the rules as it is in every other mmo, so why should we help you cheat?

jwenting 1,905 duckman Team Colleague

Which is just a single line of code :)

jwenting 1,905 duckman Team Colleague

Thread management takes cpu cycles...

jwenting 1,905 duckman Team Colleague

All Collections framework classes implement toString() to return a list of all elements in the Collection, calling the toString() of each element.

jwenting 1,905 duckman Team Colleague

offshoring is actually slowing down considerably and companies are even starting to abandon their offshoring operations now that they're finding out that it costs more than the benefits.
Those Indians (or others) might only cost 1/4 of what an American or European does, but they're only 20% as efficient, leading to actual cost of developing a product being higher when using them.

That's of course averages, but turns out to be largely true from all experience I've had with offshored teams directly and indirectly (especially offshoring to south and east Asia, eastern Europe is somewhat better).

jwenting 1,905 duckman Team Colleague

That's a job for a servlet, not a jsp.

The correct content type is the one registered with bodies like the w3c, not one that someone cooked up in his head because he thought it "sounds kewl".

jwenting 1,905 duckman Team Colleague

That would all depend on the DNS server you're running.
If it has an external API to allow things like that, you could try calling that.

jwenting 1,905 duckman Team Colleague

Why command line? when you can develop the same thing in Netbeans or Eclipse within less time leading to more productivity rather than typing all command line ant thing and writing boilerplate web.xml.

Because you have to actually learn to program rather than learn to click buttons in some IDE.
You'd be surprised to learn that in a professional environment deployment and creation of deployment artifacts is rarely if ever done from an IDE, because it's not repeatable and can't be automated.

And for the beginner the IDE hides way too much of what's actually happening for him to get a proper understanding of the language and platform, leading to questions like this and worse.

peter_budo commented: Couldn't said that better myself +12
jwenting 1,905 duckman Team Colleague

What "security" are you looking for here?
Is username/password not enough and you want something better?
Are you worried about credentials being transmitted in cleartext?
Are you worried about the way your credentials are stored in the database?
Or do you think something else isn't "secure enough"?

jwenting 1,905 duckman Team Colleague

Notepad might have an interface allowing you to insert text into its editor area from another process, but I don't know if it does and to be honest I doubt it.
It's a primitive application (by design, it's designed to be light weight and simple) after all.

jwenting 1,905 duckman Team Colleague

First things first: how do you come to the conclusion you've made about the prevalence of C++ in that field?
Is that conclusion even correct (I've heard other things, but no conclusive data either way)?

jwenting 1,905 duckman Team Colleague

Better get used to Visual Studio. It's the most used IDE for Windows development out there by far.
It's actually a very good (in the later versions, not talking v.6 here) product, but it's very large and complex which means beginners often don't like it because there's so much to learn.

jwenting 1,905 duckman Team Colleague

in that case, do it without help from people who actually know what they're talking about and have been using JSP for over a decade.

jwenting 1,905 duckman Team Colleague

Probably an error in translation :)

jwenting 1,905 duckman Team Colleague

check out the Java Printing API.

jwenting 1,905 duckman Team Colleague

no, there isn't. You need to configure your machine and/or the network for it to be visible from the other machine.
And that's not going to be happening by wishful thinking.

jwenting 1,905 duckman Team Colleague

the mistake is that you think your calculation results in a floating point number. It doesn't, it results in an integer number.

jwenting 1,905 duckman Team Colleague

The United States Supreme Court also recognizes the separation of church and state. First in 1878, and then in a series of cases starting in 1947.

Wrong. The constitution prohibits the government from forcing anyone to adhere to a specific religion, nothing more or less.
It's a perversion of the constitution (which was written by devout Christians based on Christian values and infused with them all over) to claim nothing the government does can endorse any religion or be based on religious principles, as long as that action doesn't force people to adopt that religion as their own.

jwenting 1,905 duckman Team Colleague

No, we're not going to tell you how to do things we know are wrong.
If anyone turned in code like you're trying to make for a review he'd get told to start again from scratch.
If he did it twice, he'd be fired.

jwenting 1,905 duckman Team Colleague

Nothing urgent about it for any of us. You should have started earlier if you think 10 more hours isn't enough.

jwenting 1,905 duckman Team Colleague

Visual C++ 6 doesn't implement the full ISO/ANSI standard. It also doesn't support .NET or 64 bit development.

Of course it doesn't support the XP LAF, it is targetted at Windows 95, 10 years older.
That can maybe be changed by using 3rd party GUI libraries, but not natively.

jwenting 1,905 duckman Team Colleague

Guess what kids, there is no secret whatsoever, no conspiracy, no nothing.
The manufacturer uses references to bible sections as part of their serial numbers, nothing more or less.

DoD should get the best possible gear for their people irrespective of what some atheists and muslims think.
In fact, as we're fighting a lot of muslims right now, pissing them off might be a good idea and having God (if he exists, I keep my options open) on our side even more so.

jwenting 1,905 duckman Team Colleague

no, we're not here to do your homework for you.
If you have specific questions, you can get specific help.
But just dumping your homework assignments here and waiting for someone to do it all for you isn't going to work.
It certainly won't teach you anything.

jwenting 1,905 duckman Team Colleague

I hope someday India will fix its education system, and when it does, it will take over the world because Indians are the most naturally intelligent people in the world.

Both your posts show that you're completely and utterly wrong.
Indians are apparently still under the mistaken impression that they're inherently superior to the rest of the world and only waiting for some dramatic event that will allow them to take over the planet and make everyone their slaves.

In reality the image people get from you is one of highly selfish, full of yourselves, untalented, racist, and lazy people.
That image might be wrong, but it is the image you convey in a lot of the things you do. Not all of you, but enough of you for it to severely influence the way the world sees all of you.

This so-called "interview" and the answers provided by both you and op are typical of all that's wrong with the Indian education system, software "profession", and attitude towards foreigners in just a few hundred lines.

iamthwee commented: Well said... +0
jwenting 1,905 duckman Team Colleague

Was probably one of the first users of Netbeans (version 1.1 I think was the first I tried).
Also used Eclipse (from 2.1), JBuilder (from 2.0), JDeveloper, JCreator, IntelliJ, and a host of others.

IntelliJ beats them all.

~s.o.s~ commented: Hell yeah! ;-) +13
jwenting 1,905 duckman Team Colleague

you need to call the application using the actual address of your computer on the network, whatever that is.
And even then it won't work unless your computer exposes the server to the outside world, which depends on things like firewall and router settings.

jwenting 1,905 duckman Team Colleague

1) you should never use Java code inside a JSP. It's possible, it's there for legacy reasons, but that doesn't mean it's the way to go. Use jstl or jsf instead and handle all business logic in servlets or backing beans.
2) There is no "method X", there is a class X (if you put it in the right place, and it is correct).
Your class X has no public methods except a main method, which is utterly useless in this context.

Learn Java before trying JSP, and learn JSP properly without using Java code in it.

jwenting 1,905 duckman Team Colleague

The question how to create HTML output to the browser from a Servlet based on XML data often comes up.
Here's a fully functional example on how to achieve this using Jakarta Xalan 2 and Xerces 2.

The system is quite simple, most of the code is concerned with housekeeping chores rather than the actual HTML generation and output.

jwenting 1,905 duckman Team Colleague

I'd never buy a Googlephone. Their track record when it comes to identity theft and invasion of privacy is way too bad for me to trust them not to record everything I do with it and send it home to daddy.

And don't think the network provider determines the phone OS. The phone manufacturer does that.
T-Mobile may be small in the US, in Europe they're a major player and have been for years.
When it comes to mobile phones the US is a backwards country, a decade or more behind the state of technology in the rest of the world.

jwenting 1,905 duckman Team Colleague

The problem with the vast majority of those "tests" is that they're useless. They don't test how a person acts under normal working conditions.
They often don't test his actual skills at all.

I've had several over the years, all were utterly useless.

And where it is useful, what the "test" comes down to is that the candidate is asked to work for the company for free for a while to "prove himself", doing the actual job he'd do if hired without compensation.
Many unscrupulous companies would see such a process as a cheap way to get short term projects done. Just get candidates for non-existent positions, let each work on the "project team" for a few days, and tell them they "don't fit in the team" at the end of the period.

A good interviewer can tell whether the skills a person claims to have are there or not without subjecting the candidate to the added stress of some sort of exam during an already stressful period.
And remember that job interview ARE stressful for the candidate. You can't expect him to work at his normal skill level during such a process, too much depends on it for him.
A test is just a poor substitute for a decent technical interview in order to get away with HR hiring people without interference from those troublesome technical people who always want someone different from the candidates HR favours.

And of course those …

jwenting 1,905 duckman Team Colleague

Why worry?
There's nothing you can do about it anyway...

If you have large deposits, almost certainly they're locked into life insurance policies or similar instruments that you can't clean our or move to other institutions without the bank or insurance firm holding the account cleaning you out through massive penalties (often amounting to as much as 90% of the total sum).

So until the day you get that letter stating the bank holding that account is gone and would you like to return this form signed and filled out to get reimbursed for what's left (if anything), why should you increase your stress levels and work your way up to a heart attack worrying?
It's not going to do you any good anyway.

Instead you should start planning now for a retirement on a government pension and little if anything more.
Of course many of us have been doing that already, seeing the wind blowing towards a system where governments are stealing pension funds of those who have them to pay for those government pensions of those people that don't have their own funds. (never mind that you paid premiums for that government pension all your working life as part of your taxes).

jwenting 1,905 duckman Team Colleague

Had you read what it is instead of recklessly clicking buttons like a fool you'd have had nothing to complain about.
IMO they're quite open about what they do, and they do give you a clear choice to use it or not.

It's no different from Amazon's recommendations feature, at least after you've been ordering stuff from them for a decade and it knows darn well what your tastes are ;)

jwenting 1,905 duckman Team Colleague

Back to the dumb terminal...

If this were to happen say byebye to your privacy as Google would have all your data, everything.
You'd exist only as long as Google allowed it, and they could change your identity at will.
You'd be what and who Google says you are. If they don't like you, they erase you and suddenly you no longer have an identity, a bank account, a job, a house, anything.

jwenting 1,905 duckman Team Colleague

Obama believes in destroying the US, economy and all, for the sake of his friends in Iran and for "the environment".
That's all you need to know to determine who's the best candidate for the country.

jwenting 1,905 duckman Team Colleague

Expect to see proposed new laws and regulations restricting or outright banning such devices to be introduced shortly.
This is just laying the groundwork to get such things accepted by the people who've been so bludgeoned into wanting total "security" from everything they'll by now accept anything if it's explained to them as being "for your own good".

jwenting 1,905 duckman Team Colleague

personally, I've always liked the idea behind the things.
The only thing that put me off getting one is the price (and to a lesser degree, the lack of room to put one).

jwenting 1,905 duckman Team Colleague

No doubt Google is going to change things in Chrome so that only their own services work well through it.
Not at first but slowly, insidiously, things will change so that for example other search engines start coming up poorly or not at all, Hotmail starts failing, etc.
Won't happen until they've pushed it onto a lot of computers through deals with hardware makers though.

After that, suddenly pages Google doesn't want you to see will fail to show up (the same way you won't see such sites in their search results).

jwenting 1,905 duckman Team Colleague

Most maps on the 'net are of terrible quality, their data suspect.
They're no better than the maps printed and sold in the Soviet Union, which were (and possibly still are) deliberately inaccurate to prevent people knowing the exact geography of the country or even the locations of the cities they lived in (most maps on the 'net are probably not inaccurate by design).

jwenting 1,905 duckman Team Colleague

And that's exactly why you have beta programs, to find such problems that don't show up in a cleanroom environment of the software testing lab where all machines are fresh installations of everything recreated for every test cycle.

jwenting 1,905 duckman Team Colleague

People "hating Microsoft" has become a self-fullfilling prophesy for the slashdot crowd.
The more they repeat their mantra, the more kids start to believe that you should "hate Microsoft" to be "kewl" and therefore proclaim loudly that they "hate Microsoft".

Meanwhile, real people who don't care for "kewlness" select the best tool for the job which more often than not is a Microsoft product.

jwenting 1,905 duckman Team Colleague

Indeed. At such events it's mostly script kiddies working with ready made hacking kits. And the Windows (and these days MacOS versions) they're given as targets are lacking security updates.
The organisers have an agenda, and that's showing how bad Windows and Mac are compared to Linux.

jwenting 1,905 duckman Team Colleague

how do you feel now, Linus, that people are exposing the gaping holes in your "secure" operating system?

jwenting 1,905 duckman Team Colleague

so now crime is "freedom of speech"?
What's next, defending murder as "freedom of expression"?

jwenting 1,905 duckman Team Colleague

replace "lost" with stolen, with the most likely culprits to be TSA "guards".

jwenting 1,905 duckman Team Colleague

Excellent. Should serve as a deterrent to other cheating kids as well as get a budding hardcore criminal off the street for a long time.
By the time he gets out he'll be harmless in society as his skills at anything except serving as a gay hooker should be pretty much outdated.

Just parade him through classrooms in prison slacks and chains every day, all day, as part of a lecture series on why crime doesn't pay and why cheating is a bad idea.

jwenting 1,905 duckman Team Colleague

The EU has only a single goal: make as much money as possible for European Comission members and their stooges.
Since the largest manufacturer of disposable batteries in Europe (and one of the largest in the world) is located in France, and another in Germany, which just happen to be the countries that rule Europe, there's no reason for them to ban disposables or even to want to discourage their use.