jwenting 1,905 duckman Team Colleague

If the discount is fixed at 20% you don't have to calculate the discount rate, it's 20%...

The amount is simply 0.2 times the amount of the invoice. Whether that should be taken before or after taxes is irrelevant to the invoice after taxes. It may however be relevant for tax purposes, I don't know your taxlaw so I can't say.

Your calculation is seriously flawed.
And oh, NEVER chain assignments like you did. It easily leads to confusion.
The ++ operator also seems unfamiliar to you. Do you really want to increase the totalPurchase amount only after calculating the discount over that purchase?
There's more wrong there, but that should be a start.

jwenting 1,905 duckman Team Colleague

You were hit by a statistical fluke.
The vast majority of spam is generated by automatic processes that couldn't care less about the text of the posts they're spamming.
They work either completely at random or by looking for certain keywords in the text or title of a post and spamming if those words exist.
In the latter case you got lucky that you happened to use none of those words.

So posting something like you did MAY prevent that particular post from being spammed, but it won't protect any of your others and is therefore useless.

jwenting 1,905 duckman Team Colleague

that's not so weird. A (former) colleague turned down a raise a few years ago because after taxes he'd have less with the raise than without it.
And that wasn't the first time I've seen that.
Hasn't happened to me, never went past a tax bracket with such a small amount that I'd get out worse after taxes, but it's been close once or twice.

jwenting 1,905 duckman Team Colleague

and use a descriptive topic rather than some random combination of letters.

jwenting 1,905 duckman Team Colleague

better try to put your idea into words that actually make sense, because as it stands you make no sense at all.

jwenting 1,905 duckman Team Colleague

Exactly where are you getting the 'Bush==Fraud' arguments from? I haven't seen anything about that that can't be accounted for by the Anti-Bush crowd's ability to scream imprecations.

That's because there is nothing else except the inability to conceive of the idea that they could possibly loose that many of the leftists in the self-proclaimed "Demokratik Partei" have.
Like I said, they committed so much fraud they reason that anyone who wins against that MUST commit even more fraud...

jwenting 1,905 duckman Team Colleague

Maybe a quick introductory SQL course would help you...
You seem to be lacking the most fundamental understanding of the language, and without it you'll spend the rest of your time having to gasp for air and hope someone else writes your code for you whenever you have to achieve anything.

jwenting 1,905 duckman Team Colleague

just a quick scan revealed at least one syntax error in the Java code.
Didn't bother to try to make sense of the rest after that, if you can't get it to compile there's little sense going further.

Anyway, it's a bad idea to have your web app keep its own log4j config (and I suppose jar file). Have the appserver handle logging for you.

jwenting 1,905 duckman Team Colleague

an interesting project might be to investigate why kids are too lazy to come up with their own project ideas.

jwenting 1,905 duckman Team Colleague

refresh? There's no such term in database land so you'll first have to define it.

jwenting 1,905 duckman Team Colleague

I've also found a massive hole. It's right there in the mind of our prime minister (though the one in his wallet is even larger, and he's trying to fill it by increasing the taxes I have to pay).

jwenting 1,905 duckman Team Colleague

IDEs hamper learning. Most people using them to learn a language end up learning the IDE instead of the language and get into serious trouble as soon as they're presented with a situation where they don't have access to that specific IDE.

jwenting 1,905 duckman Team Colleague

The only voting fraud evidence I can find was that George Bush committed voting fraud in the 2004 election. Not John Kerry.

There was in fact no fraud on the part of Bush either in 2000 or 2004. That was all in the minds of leftist conspiracy theorists who couldn't understand anyone winning an election against their fraud efforts without at least the same amount of fraud.

jwenting 1,905 duckman Team Colleague

Is it out now? How is it?

official website lists the release date as "?"...

At the same time an old newsletter lists the release date as 25 September, which is next tuesday (without listing a timezone).

So anyone having it yet got it from a store that started shipping/selling before the official release, which in the past has gotten stores scrapped from Microsoft's list of approved resellers (which effectively mean they're no longer getting any Microsoft products to sell from Microsoft and any independent wholesale channel supplying them with such products is liable to get blacklisted as well).

jwenting 1,905 duckman Team Colleague

Lol what websites do you go on ;)

many people selling supplies (ready made rings, tools, wire) also sell completed products ranging from suits of armour to jewelry to indeed chainmail underwear and sometimes bondage equipment (handmade and made to order shackles, chains, etc.).

jwenting 1,905 duckman Team Colleague

lol they run away? Offtopic but why don't british police carry guns?

someone could get hurt if cops carry guns, most likely the cops (given their inaptitude and inexperience handling them in a society where even paintball guns and BB guns are considered illegal under firearms regulations).

jwenting 1,905 duckman Team Colleague

heard of such things happening quite regularly.
Funniest was a couple of kids deciding to rob a bar which turned out to be an after-duty hangout for the entire local police force...
Bust in with weapons drawn, everything goes deadly quiet as they see all the uniforms and face a few dozen service pistols.

jwenting 1,905 duckman Team Colleague

not n reasons, there are at least n+1 reasons!

jwenting 1,905 duckman Team Colleague

What EXACTLY don't you understand?
You already have the program flow, all you have to do is figure out what happens during each step.
And we're not here to write your homework papers for you, so we're not going to write that all out for you to copy and turn in as your own.
It's all well explained in openly available sources, so you should have no problem figuring it all out with a bit of effort.

jwenting 1,905 duckman Team Colleague

Far better to use a PreparedStatement, no trouble figuring out what quotes (single, double) a specific database engine requires.

And of course never eat any exceptions that may occur, as they're likely to tell you what went wrong.
Capturing the output of the executeUpdate statement can also tell you a lot. If it doesn't return the number of records you expect to be updated there's something amiss with your SQL (or rather the SQL is correct but doesn't do what you think it should).

And as said, do see what happens when you do an explicit commit on the transaction after a successful update. Possibly it doesn't get committed.

jwenting 1,905 duckman Team Colleague

Not as much as Halo.

Hadn't even heard of it until you brought it up... Hype's not that effective I guess :)

Not that I'm much interested in it. Would need another computer to run it (I've none to spare at the moment to install Vista :) ) and I'm not much into shooters.

jwenting 1,905 duckman Team Colleague

Just do a real search on the feller, and don't discount any source that's not approved by Kos...

If you'd seen communism in action or lived under it you'd oppose it as well.

jwenting 1,905 duckman Team Colleague

Kinky? ive never heard of it being used in that way?

I've seen some pictures of chainmail underwear. Never made anything like that, doesn't look too comfortable (and rather drafty with all those holes...).

Mostly it's exercise for me to work the muscles in my hands beyond what's needed to operate a computer keyboard.
Anything that delays the onset of RSI is worth trying IMO.

jwenting 1,905 duckman Team Colleague

Any number multiplied by 0 is always 0.

Not necessarilly when we're talking about computers and floating point mathematics.
You could run into rounding errors causing one or the other and/or the result to not really be 0 (at least as represented in computer memory).

jwenting 1,905 duckman Team Colleague
public class TheCode {
}

There you go, The Code.

jwenting 1,905 duckman Team Colleague

Hanoi John was a traitor.
And no, I'm not anti-American. I'm anti-communist and Kerry is a hardline communist supporter (with strong communist trends in his policies).

In 2004 he attempted to corrupt the elections by massive fraud both before (donations from illegal sources, etc.) and at the polls (large voter fraud, Kerry supporters voting multiple times with invalid cards, like cards made out to dead people, pets, foreigners, etc.).

jwenting 1,905 duckman Team Colleague

> The halo series is overrated.
i hate you.

All games are overhyped on release...

jwenting 1,905 duckman Team Colleague

photography, and occasionally I try my hand at making chainmail.

jwenting 1,905 duckman Team Colleague

maybe if you were to ask nicely instead of trying to command us to do something you'd get some response.
Most likely it would be a link to a tutorial or online bookstore where you could read up on the topics, which are explained quite well in both online and printed literature.

jwenting 1,905 duckman Team Colleague

Honestly, I'm getting more and more disappointed every time I see someone say, "I'm not doing your homework for you." and I'll tell you why...

and I'm tired by kids who complain that they aren't getting their homework done for them without showing any effort of their own whatsoever, especially kids who claim to be in their "final year" yet don't know the first thing.
How did those kids get through the rest of their "education" if it wasn't by cheating, something you endorse and facillitate?

I've been a programmer for many years now. I've seen many horrible text books, on top of equally horrible professors there are out there - and I've even experienced many myself.

And far more good ones.
If those kids were motivated to succeed they'd go out and do their own research, not post their entire homework assignments verbatim (ever more just posting a link to a school intranet site that's not even accessible to the outside world, showing their stupidity and laziness for all the world to see) and demand that it be done "ASAP!!!!!".

Yes, there are going to be those students that really don't want to try, and will go to any length to cheat in order to get by. Guess what? Not surprising that they're going to fail, and there's nothing that can be done about that. They will go elsewhere to get what they're

And we want them to fail quickly rather than cheat their way …

jwenting 1,905 duckman Team Colleague

nice country but I wouldn't want to live there (which I do, now you know why I'm grumpy).

jwenting 1,905 duckman Team Colleague

he was manhandled and tazered for trying to ask a question Hanoi John didn't like.
Of course he resisted...

Lardmeister commented: anti american poster +0
Sturm commented: lardmeister is retarded. +2
EnderX commented: Thank you. +3
jwenting 1,905 duckman Team Colleague

if this site is going like the Sun forums we'll see kids requesting "send me ze koduz" for years to come.

jwenting 1,905 duckman Team Colleague

Java Server Pages, 3rd Edition

jwenting 1,905 duckman Team Colleague

only lowlifes would do kids' homework for them, as doing that will make their chances of employment lower and only lowlifes don't care about that (as they're too stupid to be employable anyway)...

jwenting 1,905 duckman Team Colleague

That would depend on the programmer :)
Some may cost you $10 in coffee and pizza per day and need a decade, others may cost you $250 an hour in hard cash and need a day.

jwenting 1,905 duckman Team Colleague

yep, you can do that.

jwenting 1,905 duckman Team Colleague

That's not any error you'd get from the compiler or runtime, so it has to be either your program or your editor.

Show us some code (though I have some ideas...).

jwenting 1,905 duckman Team Colleague

if you have a legal copy you'll have the documentation which includes tutorials.
if you don't you're a lowlife pirate and deserve no help apart from a hobnailed boot kicking you to hell.

jwenting 1,905 duckman Team Colleague

:D
which came first: the chicken or the egg!!

In case of Borland's compilers, they're written mostly in Pascal.
And that includes their Pascal compilers...

They wrote a compiler stub that could compile a minimal subset of the intended language in machine code or Assembly, used that to compile a compiler that could do a bit more of the language, and so on until they had one that could compile the entire language specification.

When they had that they could use that compiler to compile compilers for other languages like C++ and C#.

jwenting 1,905 duckman Team Colleague

Microsoft will send you (if it works with Windows as it does with some of their other products) replacement media at some cost (S&H) if you can prove you have a license.
In case of an OEM license though you may have to go through your hardware provider (if you have a branded OEM license certainly).

If Microsoft can't send them now that Vista is out that's because they may have run out, not because they don't want to (Microsoft guarantees support on products for a specified period after release of a replacement product).

jwenting 1,905 duckman Team Colleague

what ever happen to the days when the olympics were just fun events to watch and had nothing political to do with anything?

What days were those exactly?
Even in antiquity there was politics involved, with athletes from different cities competing (though not openly sponsored by those cities).

But given the way the Chinese are doing things I do agree with a ban on the games there.
Stadiums being built with slave labour (political prisoners, inmates from the Chinese Gulag), tens of thousands of people thrown out of their homes with no compensation because those homes are in the way of grand avenues and venues for the games (wouldn't want visiting foreigners to see the slums...), etc. etc.

And that opinion has less to do with the games as it does with the Chinese system as a whole, is the reason why I prefer to not buy any goods "made in China" and haven't for years (though it's hard, and you often find out only after you buy something that it was made in China).

jwenting 1,905 duckman Team Colleague

except the mayor of Brussels who banned a silent memorial and had attendants arrested because Muslims might be angry...

jwenting 1,905 duckman Team Colleague

mostly it's marketing hype.
A project title or description containing the word "web" or "web based" will get far more budget when presented to venture capitalists and company boards. A resulting product will likely also sell for more money (despite being usually less userfriendly, slower, and have less functionality than the equivalent desktop system).

jwenting 1,905 duckman Team Colleague

and? What's the problem?
You have the data, so use it.

jwenting 1,905 duckman Team Colleague

A properly configured application server won't let any application running in it directly access any file system resources that aren't on that application's context root (so inside its WEB-INF directory for a Java web application server, plus directories specifically specified in deployment descriptors) for security reasons.

Apart from that there's no difference whatsoever between file access from web applications and any other applications. be it XML files or anything else.

jwenting 1,905 duckman Team Colleague

Delphi is a nice language, but if you need to ask how to start making an rpg in it specifically the only reasonable answer is to forget about it all.
The question itself indicates that you're not ready for a project of such scope using whatever environment you choose to implement it (an environment btw that should be irrelevant at this stage in your application development cycle).

First start with basic requirements gathering.
Next flesh out those requirements into a detailed requirements document.
Based on that write the basic and detailed storylines.
On that basis you can start creating technical requirements for your game engine, graphical subsystem, AI, 3D/2D artwork, user interface, etc. etc. etc.
Only after that can you start writing any code at all, figure 6 months to a year depending on your experience, depth of your process, people involved, etc. etc.

jwenting 1,905 duckman Team Colleague

Java isn't necessarilly slow. That idea of yours is outdated by 5 years at least. For many applications Java is now as fast as C++ if not faster.

jwenting 1,905 duckman Team Colleague

don't.
BGI is ancient, non-portable, unsupported, etc. etc. etc.

And if you didn't know that yet you have no business writing games (or indeed any complex software).

jwenting 1,905 duckman Team Colleague
File file = new File(directory);
if (!file.isFile) {
    FilenameFilter filter = .... // that's for you to figure out
    String[] files = file.list(filter);
    ... // now do something with those filenames (which may be directorynames).
}
peter_budo commented: Perfect example +5