jwenting 1,905 duckman Team Colleague

as to your question: see the Axis documentation. It explains all the steps.

jwenting 1,905 duckman Team Colleague

please post your questions in your own thread(s).
It keeps the place organised.

jwenting 1,905 duckman Team Colleague

Well, the errors seem rather clear.
You're calling your findKey method with an illegal signature.
And you never declared a variable "foundNode" before using it.

jwenting 1,905 duckman Team Colleague

P.S. you should really ask that in the Javascript/HTML forum, it's got nothing to do with JSP.

jwenting 1,905 duckman Team Colleague

do an integer division by 2 and check if the modulo is 0.

jwenting 1,905 duckman Team Colleague

Your data won't magically make it to the database just because it's there.
You'll need to write code to put it into the database.
There are many ways to do this, but as a beginner you should start out learning the basics and that's JDBC.

There are quite a few tutorials about it, and many good books have a section dedicated to it (of course there are also dedicated books specially for JDBC).

jwenting 1,905 duckman Team Colleague

Your answer was correct, just not for that particular question.
So it wasn't your mistake at all, the OP should have asked a different question to match your answer!

jwenting 1,905 duckman Team Colleague

Books are cheap. What you learn from a decent book costing $40 will earn itself back many times over in the space of a few days work.

jwenting 1,905 duckman Team Colleague

Oh? show me someone who hasn't died of something:cheesy:

Well, there is that one guy in Israel who's been rumoured to have not died of anything...
But other stories about the same guy have him get killed and then dig himself out of his grave so there's no certainty there either.

jwenting 1,905 duckman Team Colleague

I'll buy it when and if I buy a new computer to run Windows before a replacement becomes available.
As I don't know when and if either of those conditions will be met I can't at the moment make any predictions one way or the other.

Or to put it bluntly: I don't know :)

jwenting 1,905 duckman Team Colleague

Some of the public APIs are legacy APIs written using C. Most modern ones are C++ (or a mix of C++ and C).
A lot of the internals is likely C++ as well by now.

jwenting 1,905 duckman Team Colleague

I've been reading (on and off) "Objects, Abstraction, Data Structures, and Design using C++", Koffman and Wolfgang.
Excellent books, especially in combination with "Accellerated C++".
ISBN 0471467553

jwenting 1,905 duckman Team Colleague

the most widely used application written (largely) in C++ is Windows XP.

[edit]Oops! sorry, I didn't mean to edit your post.

jwenting 1,905 duckman Team Colleague

Certification on its own won't help you in most countries (though in India it's all the hype it seems, reflecting how things were in Europe and America 5-10 years ago).

In fact at least one company I worked for had a set policy to NOT hire people with certifications unless they had at least 5 years of practical experience backing up each of them.
Too much bad experience with kids who had tons of certs and no experience messing up royally when let loose on jobs their papers said they should be capable of doing but weren't.

I've been in the industry for a decade, have one cert and am in the final stages of working on a second.
Most people I work(ed) with either have none or work at roughly the same pace.

Get a GOOD education, the certs will come later. A quick online course to cram your head full of knowledge you won't retain and followed rapidly by an exam that gives you a piece of paper is worse than nothing.
You'll have a piece of paper, but neither knowledge nor money.
That piece of paper might get you a job but you'll soon be found out to not know what that piece of paper says you should, and certainly be unable to apply that knowledge to practical problems.
You'll end up fired, maybe even with a lawsuit for falsely representing yourself (seen that happen once), with the end …

jwenting 1,905 duckman Team Colleague

Not making fun of it at all... Luckily I've never had friends or family develop cancer but I'd not wish it on anyone (and we have had our share of cancer scares in the family when initial diagnoses said it "might" be cancer).

jwenting 1,905 duckman Team Colleague

if you don't want your kids to start smoking, set them an example.
Best way (for you) to do that is to quit.
Another way would be to develop lung cancer, but that's not so nice for you though it might shock the kids into never wanting to touch a fag ever.

jwenting 1,905 duckman Team Colleague

But class B doesn't have any virtual function? So what's the point of pointer to virtual table for class B?
Isn't the sizeof class B 4 because of the subobject A?

Narue was speaking in general terms. VTables do influence class size, just as do data members of superclasses.

jwenting 1,905 duckman Team Colleague

If however you don't take care of the exceptional conditions you're liable to be bitten by them.
Think of using finalize to close database resources and files. Sounds perfectly logical, but is extremely dangerous.

jwenting 1,905 duckman Team Colleague

smokers however do cause severe problems for non-smokers indirectly even when they don't expose those non-smokers to their smoke.

The far higher incidence of serious respiratory problems among smokers is a large drain on healthcare resources which are (in many countries) paid for by taxpayers at least in large part.
That cost is only partly offset by taxes on tobacco products.

jwenting 1,905 duckman Team Colleague

not completely, as the text isn't quite correct :)

there are in fact conditions under which finalize will not be called even when there are no more references to an object and the object is being garbage collected.

jwenting 1,905 duckman Team Colleague

the API docs won't help you there, you'll need to read a decent book about Java instead.
Chapter 1 of the langauge specification for example has the answer you need (though it doesn't go into minute detail, but neither does your question).
You can download it as a PDF or set of HTML documents from Sun, read it online on their website, or buy it as a book.

http://java.sun.com/javase/reference/api.jsp

jwenting 1,905 duckman Team Colleague

Good logic. How does this function do that? The first time you enter both loops you exit the entire function, never setting a thing.

Would it even compile...
He's returning a boolean from a constructor, AFAIK constructors aren't allowed to have returnvalues (but I admit my C++ is rusty).

But in the default constructor there is no array?

You need to SET the values, not return them...
But first you must create the array.

jwenting 1,905 duckman Team Colleague

Alot of signatures are also pretty awful, or cliched, or taken from well known quotes, (and are seen all over the place!). The best ones are usually the few which are are original or little known :)

And how do you know the person using it isn't the one who started it all?

jwenting 1,905 duckman Team Colleague

Every decent tutorial about applets should have that information.
Several of the demonstration applets that ship with the JDK also use parameters.

jwenting 1,905 duckman Team Colleague

no, that's no longer QBasic.
There are compiled languages with a syntax similar to QBasic, some of them might even take simple QBasic programs verbatim, but they're not QBasic and you certainly can't take a .bas file and expect another computer to run it that is too modern to have qbasic.exe installed.

jwenting 1,905 duckman Team Colleague

In fact you should start learning Ruby WELL first and only after achieving that try for Rails...

Way too many (mostly young) people dive into the deep end without understanding the fundamentals and either turn into coders producing crap (and thus making the entire industry look bad) or give up in frustration.

You don't learn to fly by taking a 767 and sitting next to the captain, you don't learn to program by taking a web framework and starting to hack away.

Get this book instead: http://www.pragmaticprogrammer.com/titles/ruby/index.html
which is pretty much the bible of Ruby as well as a goog tutorial.

jwenting 1,905 duckman Team Colleague

You will need to refresh the display to make it show up.

jwenting 1,905 duckman Team Colleague

I doubt that will be enough to please a teacher teaching a serious course (I'd not call it complex enough), but it could be a decent start towards a bigger program that would be enough.

jwenting 1,905 duckman Team Colleague

You can't, not directly.
What you can do is generate a piece of Javascript as part of the JSP rendering that the Javascript can use.
Something like

x[1] = '<c:out value="${blub}"/>';
x[2] = '<c:out value="${blah}"/>';
jwenting 1,905 duckman Team Colleague

From the Javadoc:

Note that backslashes (\) and dollar signs ($) in the replacement string may cause the results to be different than if it were being treated as a literal replacement string. Dollar signs may be treated as references to captured subsequences as described above, and backslashes are used to escape literal characters in the replacement string.

I guess that's what you're running into.
The replacement String will need to be escaped if contains backslashes or periods.

jwenting 1,905 duckman Team Colleague

no, he doesn't want to do his homework. He wants to laze around while others do it for him.

jwenting 1,905 duckman Team Colleague

and never do their homework for them.

jwenting 1,905 duckman Team Colleague

not necessarilly wrong so much as heavily outdated.

jwenting 1,905 duckman Team Colleague

Which no doubt isn't enough and might not even be accurate...

At most it tells you whether the string could represent a US SSN, not whether it actually does.
And if there are more restrictions on how an SSN is constructed it may not do even that.

jwenting 1,905 duckman Team Colleague

too shy to talk to women in the wild, and the domesticated kind I have as colleagues are all married or engaged (sometimes to other colleagues).
And before I encountered such domesticated females it was simply too expensive to search them out, even had I dared to.

jwenting 1,905 duckman Team Colleague

One of the things you're supposed to learn is thinking for yourself.
That includes coming up with your own ideas...

jwenting 1,905 duckman Team Colleague

You're both despicable.
You're destroying company property and wasting company time.
You should both be fired on the spot.

jwenting 1,905 duckman Team Colleague

Not even halfway there.
Different threads can still access data members at the same time, even if they can't change them at the same time.

One thread can call setData while another calls getData for example, potentially getting corrupted results.

jwenting 1,905 duckman Team Colleague

The dhimmies will vote for anything that increases government power AD.
Remember that McCain is a republican only in name, in fact he's got far more in common with the likes of Clinton and Feingold than even with leftwing republicans like Bush.

jwenting 1,905 duckman Team Colleague

Maybe a bit harsh, but it would maybe at last do something about operators of sites that don't bother to self-police and set policies against their users publishing pirated or otherwise illegal content.

jwenting 1,905 duckman Team Colleague

it can be done.
Might possibly even be done in Java or VB (you do seem to not care what language people use to do your homework in for you...), but those aren't the most suitable choices to implement such a system.

And no, we're not going to write it for you, and come to think we're not going to help you write it at all as it reeks suspiciously of writing a keylogger which are almost exclusively used in spyware and trojans.

jwenting 1,905 duckman Team Colleague

don't know. If it is Nokia paid for the license for my smartphone ;)

jwenting 1,905 duckman Team Colleague

1) we're not here to do your homework.
2) we're not here at your beg and call to jump whenever you are in a hurry. Plan your time better.

Do your own research, and come with specific questions about areas where you're stuck, you might actually learn something (I know it's a shocking prospect).

jwenting 1,905 duckman Team Colleague

show some effort and come up with real questions. Don't just copy your entire assignment and wait for people to do it for you.

1) We're not here to do your homework.
2) If you don't do it yourself you'll never learn anything, and we don't want stupid kids with worthless diplomas joining the labour force.

jwenting 1,905 duckman Team Colleague

Thread safety isn't something of a single method, it's something for the entire class.
Without knowing the code for the rest of the class, it's impossible to tell whether this one is threadsafe or not.
It might be, but most likely it isn't. Just putting a "synchronized" keyword here and there isn't going to change that however, you'll need to make sure no update to one data member can happen while you're working on another one.
For example you have to ensure that noone changes that String while you're cloning the HashListNode (which also has to have thread safety in mind).

jwenting 1,905 duckman Team Colleague

I doubt the OP will ever read that. He posted his question over 18 months ago and never was seen again...

jwenting 1,905 duckman Team Colleague

The idea is to think and get your own ideas rather than regurgitate things others came up with.

jwenting 1,905 duckman Team Colleague

Last cheat I used (if you can call it that) was in Dune 2, hacking into the data files to increase the max unit count.

jwenting 1,905 duckman Team Colleague

You'd better run!!!! Dani, we need to demote this guy! :twisted:

We might infract him for posting flamebait :twisted: :cheesy: :mrgreen:

jwenting 1,905 duckman Team Colleague

in assembly for an Atari?