jwenting 1,905 duckman Team Colleague

The instance of the anonymous inner class exists only in the context of the runtime stack of the method, is a method local variable and as such has access to other method local variables of that same method instance.

jwenting 1,905 duckman Team Colleague

1) yes, certificates are domain (or even server) specific.
2) read the documentation for jarsigner. Downloading the certificate from the site (the .cer file your browser might get you for example) will give you what you need to sign for that site.

jwenting 1,905 duckman Team Colleague

Ardav hinted at 30, which may be about right if you don't count the hundreds of one day flies creating accounts to post some spam or a homework question and never being seen again.

jwenting 1,905 duckman Team Colleague

Don't EVER use Java code in JSP, don't EVER put any business logic (and yes, sending email is that) in JSP.
And don't EVER post questions without the information needed to know what your problem is (like, hint, hint, what exact error you're getting).

jwenting 1,905 duckman Team Colleague

If you submitted code like that to me for review, you'd fail instantly.
Learn Java and proper OO techniques, learn to design software rather than hack it together, and learn to document what you design.

jwenting 1,905 duckman Team Colleague

Don't use Vector, period. It's a legacy class that should be avoided in all new code whereever possible (there are a very few cases where you have to use it like in some Swing code, but that's it).

jwenting 1,905 duckman Team Colleague

and thank you Dani for encouraging such spammers

jwenting 1,905 duckman Team Colleague

it's information, it's not always correct, so I guess so.

jwenting 1,905 duckman Team Colleague

something that actually provides an income :)

jwenting 1,905 duckman Team Colleague

You need to get an ssl certificate from an official certificate agency like Verisign.
This is the same you'd do when you set up a server on https.

If you don't have one, jarsigner will create a "fake" certificate. These are called "unverified" because there's no trusted agency behind them, anyone (including computer criminals) can create one.

jwenting 1,905 duckman Team Colleague

Create a file of some sort (xml would work here, but there are many other options) containing all the information, and read it from there.

jwenting 1,905 duckman Team Colleague

nah, 745000 of those 750000 would never reach 3 warnings as they never place 3 posts.
Most keep it at 1, 2 at most :)

jwenting 1,905 duckman Team Colleague

maybe, do you want to?
And if you do want to, have you tried to do it?

jwenting 1,905 duckman Team Colleague

You'll have to create your own LAF to match the one your OS is using.
Java doesn't use the native GUI libraries from your operating system, so can't know what your operating system's LAF is. The Linux LAF is based on one way a Linux GUI may look that was almost standard when that LAF was created.

jwenting 1,905 duckman Team Colleague

Fix that English first, it's essential.

jwenting 1,905 duckman Team Colleague

Because most companies will entertain the services of specialised recruitment companies to perform the first selection of candidates.
And most companies that don't don't post on those sites, rather relying on more traditional ways like posting on their own sites or in professional publications.

There's nothing wrong with MOST such recruitment companies. The majority are good and can be trusted (of course there are always some bad apples).

And yes, it's how the vast majority of jobs are found that aren't found by invitation or by being made aware of them by a friend already working at the company seeking new employees.

jwenting 1,905 duckman Team Colleague

When will people (especially kids) get it into their brains that there is no overall "best" in any such comparison, only different ways of doing thing each of which might be more or less suitable to specific situations?

It's a sickening phenomenon that seems to be growing ever worse.

jonsca commented: Good point +4
jwenting 1,905 duckman Team Colleague

components will move to keep the integrity of the form. That's automatic, when the forum resizes components have to move around to keep everything filled out correctly.

Absolute positioning is the one thing you should never use, it makes for absolutely unportable user interfaces.

jwenting 1,905 duckman Team Colleague

well, even if he got it to compile it would never yield the result he's looking for...

jwenting 1,905 duckman Team Colleague

And what makes you think that equation would ever yield a floating point number given that all the operands are integers by definition?

a,b,c, and d MUST be integer numbers else your "abcd" is not a number...

jwenting 1,905 duckman Team Colleague

nah, just requiring all posts by people with less than 20 (say) posts to be moderator approved would do far more good.
Combined with strict requirements: no zombies, no homework kiddos, no spammers, no flypaper, no thread hijacking.
Any of those gets you a warning, 3 warnings in those first 20 posts and your account is blocked.

diafol commented: kill all homework-spamming zombies +0
jwenting 1,905 duckman Team Colleague

second time this week, yes...

jwenting 1,905 duckman Team Colleague

pics of your mom, mostly.

hmm, I seriously doubt that. Unless you have a really twisted taste...

jwenting 1,905 duckman Team Colleague

he's using Java code in JSP. That's the first error.
Use a servlet insted for sending that email.

Then he's stupidly trying to create a class inside a JSP. A class that has a main method which he no doubt expects to be called and execute that main method when he calls the JSP from his browser.

And then he seems to assume that Google runs gmail as an open mail relay he can just use for his private email traffic, something I highly doubt is the case (Google makes money selling your email address to spammers maybe, but they don't want to accommodate spammers by opening their servers to them).

That's enough basic flaws even looking at the actual code to send that email isn't necessary.

jwenting 1,905 duckman Team Colleague

You don't. NEVER use Java statements in JSP, always use only JSTL and JSF.
And if you don't know what you're doing wrong here in Java code, you have no business writing JSP (or using those particular APIs) anyway as it's an extremely basic error that you should have learned to understand and fix writing simple commandline programs using just the standard APIs.
Go back to the Java tutorial.

jwenting 1,905 duckman Team Colleague

there is no wise use of globals.
The only good global is an eliminated global.

jwenting 1,905 duckman Team Colleague

first things first, you're using floating point numbers where you should be using integer numbers.
Not only is that uncalled for here, but due to floating point rounding errors you'll never get (unless by pure chance) the result of a floating point calculation to be exactly 0.

Solve that first and then try again. I've not bothered checking the rest of your code which tbh looks a bit too convoluted to be correct (but there might not be an easier way, I've not looked into that), as there's no point to if whatever it results in will never be what you expect because of your incorrect choice of datatypes.

jwenting 1,905 duckman Team Colleague

yup, same in Belgium, France, and probably other countries.
btw, memorial day here is 04 May :)

jwenting 1,905 duckman Team Colleague

0) learn to think
1) learn English
2) learn Java

jwenting 1,905 duckman Team Colleague

by learning first English so one can understand the tutorials and books, then learn Java by studying those tutorials and books.

jwenting 1,905 duckman Team Colleague

You're new to programming, so forget about what you want to do for now and learn programming first.

A kid entering school to become a car mechanic isn't going to design and build a Porsche on his first day at school, so why do you expect to write a complex application on your first day?

jwenting 1,905 duckman Team Colleague

So much wrong with that method I don't even know where to begin...

1) don't make it static.
2) don't reference outside variables, certainly never do so without checking them for validity first.
3) use proper means to open a connection, don't put username and password into the url like that, certainly not unencrypted.
4) don't just rethrow exceptions like that
5) properly close all database entities, and in the same method you open them.
6) don't expose database entities to the outside world
7) don't think you can cast a resultset to something else

6) is what causes your NPE, but it's a symptom of a major design flaw rather than the actual problem.

jwenting 1,905 duckman Team Colleague

India is "top country" only according to India...
And then only in numbers.

When you use quality, expertise, etc. as a measure, India drops to rock bottom.
All the good Indian professionals got their education in Europe or the US and have been living there ever since.

jephthah commented: truth +0
jwenting 1,905 duckman Team Colleague

You don't know if anyone who responds is what he says he is...
That's flaw #1.

jwenting 1,905 duckman Team Colleague

you are wrong. Sockets are sockets, nothing special about them when used in a p2p context.
And you still haven't defined what "strictly p2p" even means in your idea.

jwenting 1,905 duckman Team Colleague

any such online "survey" has no value whatsoever as there's no control group and no way to know the demographics of respondents.
So getting it answered is not something you should worry about, as the results would be pointless anyway.

Rather get a decent course on statistics to learn why that is so, then maybe hire a professional firm to create a poll for you and get a relevant base of respondents if the thing is worth the money that costs.

jwenting 1,905 duckman Team Colleague

any properly designed database would handle all that...
If you understood how a transactional system works, you'd know that.

There are no "issues" for example if you employ proper transaction boundaries, iow commit when needed, no sooner and no later.

jwenting 1,905 duckman Team Colleague

Define "strictly p2p" and why that would not use sockets.

jwenting 1,905 duckman Team Colleague

Well by now I have gotten use to it. Can someone explain why this changed occurred in
the first place? Did I miss something.

Marketing. Rebranding is thought to be very good for your profit marging.

jwenting 1,905 duckman Team Colleague

getting "100%" score on a test with an attitude and skills like op is also a bad sign.
Indicates either fraud, a pathological liar (in which case the score was more like 1.00%), dyslexia (again, a score of 1.00% but misread as 100%), or a highly incompetent grader.

jwenting 1,905 duckman Team Colleague

nope. All such "surveys" are completely useless. And noone in his right mind would click on some obscure link created by a first time poster, most such links give you malware infections.

jwenting 1,905 duckman Team Colleague

also very interesting that you can report your own posts as being in violation of the rules :)

jwenting 1,905 duckman Team Colleague

yes :) I know there's a logic behind it, but there's another logic in my head that's the exact reverse ;)

jwenting 1,905 duckman Team Colleague

no, you're hopeless. Just admit as much to your teacher and they may be lenient and allow you to retake the class or switch it out for something else like an internship at McDonalds to learn burger flipping.

jwenting 1,905 duckman Team Colleague

hint, you're one of those lazy homework kiddos...

jwenting 1,905 duckman Team Colleague

hmm, a study into the deterioration of the human genome due to letting lazy homework kiddos breed might be in order.

jwenting 1,905 duckman Team Colleague

it's however exactly how the pirate 2 pirate networks work...

You seem to want to combine pirate 2 pirate networking with cloud computing.

jwenting 1,905 duckman Team Colleague

After it is installed In to the external hard drive can you simply plug the external hard drive into another computer and play or are you stuck to one computer

That would depend on the software. If it writes to any location outside that external drive and needs that data to run, it won't work anywhere else.
If it somehow links itself to the computer it was installed on (anti-piracy checks based on things like CPU serial numbers, etc. etc.) it won't work anywhere else.

I'm sure there are other reasons why it might not work elsewhere.

jwenting 1,905 duckman Team Colleague

if you have enough power and it randomly restarts under load most likely the problem is heat, not lack of power.
Try adding more cooling in the form of extra fans, heatsinks, etc, especially to the CPU and GPU.
Some brands (AMD in particular) are notorious for shipping fans and heatsinks with their products that are far from sufficient for using them at max capacity.

jwenting 1,905 duckman Team Colleague

You can access a Hashtable using an Iterator, retrieving Entry objects containing key/value pairs.
For each of those, retrieve the key and value and insert it into the database using standard jdbc functionality.

You'll need to learn some Java to be able to do that, can't be helped. So you will need to "do Java".