jwenting 1,905 duckman Team Colleague

Do you know where I can find the code, already working?

yes, in fact I wrote one (or rather contributed to one).
The same one now used by among others Sun and Novell for their websites.

I am looking for a backend that I can edit (open source) and I will make the frontend (in html, not php)

All search engines broken again? There are several out there, easy to find.

So if you can provide me with the source code for the backend of a forum, I will be greatly appreciative.

Search for it. A few minutes is all you need.

jwenting 1,905 duckman Team Colleague

If that person gave up, make sure to let your instructor know that.
He or she deserves no credits for your work.

jwenting 1,905 duckman Team Colleague

So the program was planned and started implementation under Billy Boy Clinton.

Wonder how they'll blame that one on Bush...

jwenting 1,905 duckman Team Colleague

nuclear weapons have kept the peace (largely) since 1945.
In a world where global scale war (to the extent that the nations were capable of it) between the major powers was a reaccurring phenomenon with a period of about 30 years (so just enough to grow the next generation of troops to maturity and train them) for milennia (dating back to several thousand years before Christ) that's quite an achievement.

jwenting 1,905 duckman Team Colleague

No, it's not (primarilly) Islam related.
It's just a bunch (estimates range to around 30 hardcore plus some drifters) of young thugs (most 12-16 years old, plus or minus a few years) who've been terrorising the area for years.

For reasons of political correctness and political pressure (the mayor doesn't want to make the Moroccans angry at his party, most of them vote for him faithfully) those thugs have never been taken care of by police, and grown more bold as time went by.

The killing of a psychopath (with links to the terrorist group that killed Theo van Gogh) just provided the spark that made them go to the next level of open violence, setting fire to cars instead of beating up anyone they could get their hands on.

It's racism instead of religion. These kids are Moroccan supremacists, ganging up on anyone who isn't Moroccan irrespective of religion.

jwenting 1,905 duckman Team Colleague

Last company I worked we had a banner on the wall reading "the only good global is an eliminated global".
That's how bad public static variables (and to a somewhat lesser degree methods) are.

jwenting 1,905 duckman Team Colleague

and why use public static fields at all?
They're THE worst thing to use in Object Oriented programming, a clear sign that the programmer didn't know the first thing about what she was doing.

jwenting 1,905 duckman Team Colleague

And no, there is no site where you can download complete solutions to your homework assignments.
Or if there is it's not in anyone's interest to give you the location for it.

jwenting 1,905 duckman Team Colleague

yep. WebLogic docpacks make great monitor stands (I know from experience).

jwenting 1,905 duckman Team Colleague

you didn't add the jar to your project...
The system classpath is not something you normally should use, as most tools will simply ignore it.
Set a classpath for each JVM you start as you start it.

jwenting 1,905 duckman Team Colleague

Having worked in energy research I'm all for nuclear power (and especially fusion power).
I've seen the calculations, I've been there with the research.

Wind and solar are far less "clean" than they're portrayed. The production and maintenance of the systems costs a lot of energy and raw materials, which in the end means they're not cleaner than oil of gas fired plants for 10-15 years and a lot more expensive (in money) to run and build.
With solar cells needing replacement after about that time, they're actually less clean as well as a lot more expensive than is oil or gas.

Nuclear is cleaner then them all, and doesn't have the problem of relying on oil which has to be shipped from the Middle East and other hostile, unstable, parts of the world.

lasher511 commented: Well said +3
Sturm commented: For once I find myself agreeing with you. +0
jwenting 1,905 duckman Team Colleague

I'd consider being locked up with Paris to be "cruel and unusual" punishment and therefore illegal...
I'd rather be locked up in a fictional CIA torture prison than that.

jwenting 1,905 duckman Team Colleague

nope, never seen it. Sounds like the installer didn't complete normally.
Uninstall and try again.

jwenting 1,905 duckman Team Colleague

Which doesn't mean that user interface technology will be unimportant, as was claimed.

And no, there will be a trend to offload server functionality back to the client. Part of that will be "performance" (clients don't want to wait for server roundtrips for everything, they're tired of it already), part security (yes I know, the current "wisdom" is to do nothing on the client but the reasoning will be to have the client do validation and stuff so no corrupt data even reaches the server), part of it reduction in server load (why have the server do all those non-critical tasks, taking up most of its CPU load when server hardware is harder to upgrade than desktop hardware).
There are more reasons, and indeed we've heard them all before (as well as their exact opposites to favour pure server based systems).

It may be counter to your way of thinking, but it will all happen.

I've been myself involved in operations that decentralised mainframe systems to smaller branch servers.
I've also (at roughly the same time) been involved in operations that centralised branch servers to mainframes.
Both type of projects used the same style of reasoning, with exact opposites of the actual arguments, and both were right.

It's the same with server and desktop systems. There's no right or wrong, only shades of grey and personal opinions.

jwenting 1,905 duckman Team Colleague

you're several years behind the times Hoppy.
The "everything is a web application" hype is already declining, with ever more people realising that web applications are not the way forward for a "rich user experience".

As a result, we're again in an upswing towards fat clients talking to relatively lean servers, a similar concept to that employed in the client/server architectures of the 1980s and '90s.

It's all cyclical really. From the fat server with thin terminals (mainframe/terminal, webapplication/browser) to client/server (webapp/RIA), to standalone applications (though that's unlikely to be much of a factor in the future).
We've seen it all before, we'll see it all again.
I said the webbrowser as an application hype would not last years ago, and I seem to be proven right.

jwenting 1,905 duckman Team Colleague

that's where creditcards are better than debit cards...
The CC company insures you against that (minus the first few hundred dollars usually), a bank doesn't insure you if someone plunders your bank account.

jwenting 1,905 duckman Team Colleague

Lol I think the bullet would be a great way to save money on prisoners. Trouble is there are to many human rights wimps out there to allow it to happen.

target practice...

jwenting 1,905 duckman Team Colleague

Wouldn't that also include a shift in the rotational axis of earth? In other words, Holland could end up near the equator and you could be living in a tropical paradise!

No. The magnetic field has nothing to do with the rotation of the planet around it's axle (nor with the position of that axle) but with the makeup of the mantle (which has many independently rotating areas).

jwenting 1,905 duckman Team Colleague

well said. The climate has been changing for billions of years. Compared to other interglacial periods the climate at the moment is actually rather stable, so taking the very long term view humans may actually stabilise the climate (if you use the same kind of logic the greens use, and consider human activity the sole cause for everything that's different from the past), helping prevent the onset of the inevitable next ice age.

jwenting 1,905 duckman Team Colleague

Nor can we know how your "LinkList" class works.
The standard LinkedList class has a very nice addAll method to add all elements from one List to another.

If your "LinkList" (stupid idea, never reimplement something available in the standard libraries) implements List it would have such a method too.

jwenting 1,905 duckman Team Colleague

nope, you're wrong on both counts.
C# didn't "kill" C++, and J++ was no replacement for Java. J++ was Java with a custom user interface library.
J++ was created under the terms of the license agreement Sun had granted Microsoft at the time, and fell within that license agreement.
Several years later, when it turned out Microsoft's WFC library was more popular with users than was Sun's AWT, Sun changed the license agreement to disallow the creation of user interface libraries that aren't platform independent and immediately sued Microsoft for infringing on those new terms. This was at the height of the anti-Microsoft craze, so it was easy for them to find a judge who would find in their favour, and they did.

jwenting 1,905 duckman Team Colleague

Some astronomers say that it might trigger a shift of the earth's magnetic poles

The earth's magnetic field is constantly in shift. It's flipped completely many times in the past.
It is indeed predicted that we're due another flip, and the magnetic field does seem to be weakening in places, indicating a pre-flip condition coming about.
But AFAIK there's no way to predict when it's going to happen, certainly nothing as accurate as a specific period in a specific year.

jwenting 1,905 duckman Team Colleague

If you have a decent creditcard it is charged to your bank account every month, and has a low limit that's no more than you can (normally, if you don't do stupid things) pay off each month.

Yes, many people get tons of credit cards to lead a high life on credit until the creditors catch up with them (at which point they have themselves defaulted, washing all that bad credit away instantly).
That shows it's too easy to get multiple cards, not that the cards themselves are "evil".
They serve a purpose, and most people can handle that purpose without getting themselves into trouble.

In the more than a decade I've had a creditcard I've never once been unable to settle the account before interest charges began (so always at the end of the running month).
That takes just a little bit of discipline, and just a little bit of common sense in your spending patterns.
Don't treat that credit limit as extra income (as some people do), treat it as a deduction from your income. Effectively treat your creditcard as pulling money out of your bank account immediately without it effecting the interest you earn on that bank account.

jwenting 1,905 duckman Team Colleague

And define "not the same".
What are you going to use as criteria?
Names only? Sizes too? Or the actual content (and if that, how strict are you going to be? If they're 2 text files that differ only in whitespace, do you consider them the same or not?)?

Get your requirements straight before you even start thinking about putting something together.

jwenting 1,905 duckman Team Colleague

hmm, we're going to have a weekly "Jav iz ded" thread here as well?
Was kinda missing it, every other Java related site has one and has had one for as long as Java has been in existence.

jwenting 1,905 duckman Team Colleague

yes, that will output some things, but not what he is asking for...

if it wasnt, why have an assignment on it.

because teachers aren't the smartest bunch on the block. Quite possibly the "assignment" was updated from one that uses a platform specific language with a custom library the kids have to call to get the information, with the only thing changed the deletion of the custom library and the insertion of the word "Java applet".

Or it's not an "assignment" at all, but OP just said it is to make it sound more "uregtn".

jwenting 1,905 duckman Team Colleague

not quite venomlash. There are people who are homeless and desperate enough to commit a minor crime in order to get a night in a police cell so they don't have to sleep on the street.
Maybe this guy miscalculated and got more than he bargained for, the same deal for the rest of his life (lots of things can happen in prison...).

jwenting 1,905 duckman Team Colleague

hmm, crackpots of all kinds have predicted the end of the world (either literally or metaphorically) so often almost every day is probably the last one according to someone.

It's not happened so far, so I'd not start spending those life savings in the knowledge you're not going to need them.

jwenting 1,905 duckman Team Colleague

Just one, which I use mainly for online purchases and gas (which is reimbursed by my employer at the end of the month, so why pay for it in advance :) ).

For online purchases, a CC is almost a requirement. PayPal is unreliable (they're fraudsters), IMOs are slow and reek of fraud as there's no safety built into the transaction, and international bank transfers are slow and expensive (and hardly any online store will deal with them).

jwenting 1,905 duckman Team Colleague

The average cost for keeping one inmate in prison for a year is around $25,000. About $750,000 in 30 years for that one inmate. All that is taxpayer money. I really don't think he should cost the taxpayers that much for a stupid offense.

Indeed, the Chinese system is better.
A bullet in the back of the head, and bill the bullet to the convict's family.
No cost whatsoever to the taxpayer.

jwenting 1,905 duckman Team Colleague

no, we're not going to do that.
Not only is it impossible, it's not our job to do your homework.

jwenting 1,905 duckman Team Colleague

well, 3 strikes you're out. That's the law of the land, and it's working to put repeat offenders away for a long time.
If it deters a few kids from going into crime as a career it's worth it. After all, "it's all for the kids" so it must be good (to speak with our esteemed opponents on the political left).

jwenting 1,905 duckman Team Colleague

Licensed to steal is very good. Hilliary the Hog should have one on her forehead as well as her rear end too

Shrillary Rodham Antichrist is the most fitting I've heard her called so far.

jwenting 1,905 duckman Team Colleague

Can conservatives do anything accept bash liberals?

I'm so sorry you consider pointing out the truth "bashing liberals".

jwenting 1,905 duckman Team Colleague

"how can I get a house number if I know the streetname?"

In other words, you're not going to do that.The port number is a part of the address, without the address you're not going to get anywhere.

While you could try every possible port and see what happens, that's considered a hostile attack on a server and is more than likely to get you permanently blocked from accessing it.

jwenting 1,905 duckman Team Colleague

Tomcat comes with tutorials. So does the JEE SDK.

There's also tons of tutorials (of highly variable quality) scattered around the web.
And every decent bookstore has a shelf of books to choose from.

jwenting 1,905 duckman Team Colleague

actually, it prints the first 102 prime numbers (if it works at all)...

jwenting 1,905 duckman Team Colleague

and why do this in Java? It's purely structural programming, far more suited to Pascal or C.

jwenting 1,905 duckman Team Colleague

the only reason for a return address is to ensure you can be notified on delivery failure.

The only times it is mandatory AFAIK is when you're sending commercial material (a.k.a. advertising).

jwenting 1,905 duckman Team Colleague

When you turn on a radio or TV in a store or restaurant for the customers to see/hear you need to pay royalty fees.
That's the case in most countries and has been for ages.

That officially even extends to organising a movie session for your colleagues in the office, certainly if you ask entrance fees.

jwenting 1,905 duckman Team Colleague

no, it is not.
At least not the way you want to do.

Learn the difference between clientside and serverside code (and which of the two JSP are) and you soon realise why that is the case.

jwenting 1,905 duckman Team Colleague

The "search button in Google" just generates an http request to Google.
That's easy to mimmick, just figure out how those request URLs are created and send one using a HttpURLConnection.

jwenting 1,905 duckman Team Colleague

Static is just that, by definition it's shared between all instances of a class.

A method can have final variables, which may be what you're looking for. These are however rarely used, mainly to preserve variables which are of interest to method local anonymous inner classes.
Personally in a decade of programming in Java I've rarely if ever encountered them.

jwenting 1,905 duckman Team Colleague

What you have here is proof that not everyone is going to play nice with "standards". Apparently Prentice Hall either miscalculated the ISBN for the book or simply don't care.

btw, your code is unnecessarilly long and convoluted.
The entire calculation can be handled in just a few lines of code (for ISBN10, similar code can be created for ISBN13):

public class Eleven {
	private static boolean elevenProof(String number) {
		if (number.length() != 10) {
			return false;
		}
		int total = 0;
		for (int i = 0; i < 9; i++) {
			char c = number.charAt(i);
			int digit = Character.digit(c, 10);
			total += (10 - i) * digit;
		}
		int checksum = Character.digit(number.charAt(9), 10);
		int modulo = total % 11;
		return modulo == 11 - checksum;
	}

	public static void main(String[] args) {
		String isbn = args[0];
		System.out.println(isbn + " is " + (elevenProof(isbn) ? "valid" : "invalid"));
	}
}
jwenting 1,905 duckman Team Colleague

you are not creating a compiler, you're creating a program that tries to call a compiler someone else created.

The reason your output is not retained is likely because you're launching another process which under Windows means another command shell, which gets closed as soon as that process completes.

And all that when you don't have to create another process at all, but can run any public method in any Java class from any method in any other Java class as long as the class you want to access is on the classpath.

jwenting 1,905 duckman Team Colleague

If by motivational speaking you mean pussyfooting and obscuring the truth so as not to hurt tender feelings, I've considered it and rejected the idea out of hand :)

Yes, there's a lot to learn. Start by learning the basics though, don't make the (common) mistake of immediately jumping into the deep end and trying to build a full blown midsized or larger application.
Start small, simple things to test out different language constructs.
Once you get a feel for the syntax and language constructs (which though some may look similar to C++ have a tendency to work just differently enough to put you off guard if you lack experience) you can go think of bigger things. But keep going slowly.

You will find that many experienced programmers will create small standalone programs to test out and experiment with things they intent to use in larger programs.
Makes it a lot easier to get to grips with a concept, and less time lost if you find out it doesn't work in a 20 line application than a 2000 line one ;)

jwenting 1,905 duckman Team Colleague

ISBN is a unique identifier for a publication.
You could use it as a primary key, but that would only work if you don't intend to ever have more than one copy of any specific edition of any specific title.
It will also not work if you consider different editions of the same title to be identical for the purpose of your application, as those would have different ISBN.

You can have 2 different ISBN per edition as you have seen. The original system which is still in widespread use to date uses a number made up of 10 characters (digits, and in some cases the letter X).
A new, complementary, system is being put into use which uses 13 characters. All books at this moment have an ISBN10. Some may also have an ISBN13.

Apart from that many publishers also use internal codes and numbers which they put on the back of books as well. These are not ISBN, but purely internal codes for the publisher, and aren't guaranteed unique anywhere.

The ISBN is made up of a number of sections, most notably a section indicating the publishing company.
That way each publisher has a block of numbers they can assign to publications.

jwenting 1,905 duckman Team Colleague

the moment it is sent to that person it is by definition no longer a secret...

jwenting 1,905 duckman Team Colleague

an IDE at this stage is the worst thing to use.
Rather you should get to know the tools you have, editor and command line compiler and runtime.
If you're incapable of getting to grips with those, it's not too late yet to change your chosen profession. And you'd better do that as you're going to fail utterly there if you can't even learn to use some commandline tools from the documentation provided with them.

jwenting 1,905 duckman Team Colleague

if you get a headache trying to think up a class to combine the two fields and find a way to sort on that, you're bound to fail your course so you'd better give up now, why put in the effort knowing you're going to fail anyway?