jwenting 1,905 duckman Team Colleague

One has to wonder what J2EE would be if not Enterprisey...

jwenting 1,905 duckman Team Colleague

we're not going to do your work for you.
What have you done already, and what specifically do you have problems with?
It's your project, so you'd better start learning about what you're supposed to do.

BestJewSinceJC commented: Here I was thinking he meant philosophical ontology.. haha +4
jwenting 1,905 duckman Team Colleague

I think your own inaptitude of finding something to write about is a very good thing to write about.
It's after all endemic in youngsters posting questions to these (and other) software development forums, showing a total lack of interest in original (or indeed any) thinking on the part of a large proportion of those of an age where they're in school or even university.

Is this caused by their upbringing where they never had to do anything before?
Is it caused by "the internet" always having given them whatever information they want on a silver platter before?
Is it because they can't think for themselves because their brains have been turned to mush playing too many computer games (a popular explanation of parents who themselves can't be bothered to look after their kids)?

jwenting 1,905 duckman Team Colleague

I gather that European and Japanese cars are not a good bet. It is better to stick with American makes. How does Honda stack up with its predecessors?

One of my friends last night said that there is a good chance one of those cars listed would be stolen. They are high profile cars among thieves. I would be interested in your view on that statement.

Honda are Japanese cars :)
American made cars are of generally lower quality and higher cost than any others (though in the US European cars may be relatively expensive).

What cars are popular with thieves is quite local. It will affect your insurance cost of course, as will (sometimes) colour.
Otoh if you buy an old beat up clunker like you're looking for (that's all you're going to get for the pittance you're planning to spend) chances of it being stolen for the make and model it is are slim.
It's more likely to get stolen by some kids wanting to go joyriding as it's the only one with locks that are easily broken that they could find.
Good thing of that is that it's likely to be recovered nearby (rather than shipped off to another country to be sold), bad thing is that it's likely to be totally trashed and the insurance company might not pay out well in that case.

jwenting 1,905 duckman Team Colleague

I paid €4500 (about $6000) for my first car, and it lasted me for 5 years before it got totalled in a crash.
Getting a good car first off saved me a lot in maintenance and repair bills, as it simply needed less.

jwenting 1,905 duckman Team Colleague

And pretty much everything they tell you is fundamentally flawed.

jwenting 1,905 duckman Team Colleague

Even $1000 is way too little for a decent car.
Any money you save on the purchase you're going to loose in extra repairs and maintenance cost.
Best to save up longer and buy a decent *relatively young* used car from a reputable dealership.
That gives you warranty (maybe even some manufacturer warranty if it's young), a known service history, and the knowledge it's not some straightened out clunker that might have a criminal history as a getaway vehicle.

jwenting 1,905 duckman Team Colleague

If roseindia says something, it's almost certainly wrong or at the very least highly inaccurate.

jwenting 1,905 duckman Team Colleague
package java.for.dummies;
public class JavaForDummies {
  public static void main(String... args) {
    System.out.println("Hello World!");
  }
}
jwenting 1,905 duckman Team Colleague

possibly. You're likely going to have to write some code to make it work, but no reason that should be impossible.

jwenting 1,905 duckman Team Colleague

research Alexander Graham Bell. He made the biggest breakthrough at all :)

jwenting 1,905 duckman Team Colleague

The UK borrowed 33 billion in 1945 from the US to pay for rebuilding after world war 2. We managed to pay that off (with intrest) by 2006.. So the US paying off the, what, 13 trillion? of debt, considering it is roughly 60 times the size of the UK, aught to be doable within the next 100 years or so.

except the US are trying to pay it off by taking out more loans.
Take out a $100 billion loan to pay off $10 billion, $50 billion of interest payments, and $40 billion in pork projects needed to get the bill passed through congress.

jwenting 1,905 duckman Team Colleague

"Greenies" is not the preferred nomenclature. Environmentally-Conscious Americans, please.

No, "greenies" is the correct term. It's a religion, nothing more or less.
They're not "environmentally conscious" at all, they just go through the moves of buying their carbon credits in order to feel good.

jwenting 1,905 duckman Team Colleague

Honda Civic is a great car. Reliable, decent performance, comfortable, and easy to handle.
Same for early model Ford Focus (they're supposed to have some problems in the 2003-2008 period, from what I hear).

Mazda are supposed to be good too, but I wasn't too impressed checking them out in the past (tbh, that was 13 years ago).
I'm no big fan of Toyota styling, but they do know how to build them.
I'd stay clear of Nissan and any Korean cars myself.

jwenting 1,905 duckman Team Colleague

it would be, as you're quite right. SCJP tests your ability to answer multiple guess questions, not your ability to create software in Java.

jwenting 1,905 duckman Team Colleague

Easy. But not the way you think it's done.
You can not mix text and binary output in a single http stream, it has to be 2 requests.
The JSP displays the text, includes a link to a servlet that serves the image.
Of course the JSP doesn't do anything at all with Java code, it just parses the data generated by another servlet.

jwenting 1,905 duckman Team Colleague

use a binary format. Text is way too cumbersome for what you're trying to do.
And you will want to have a separate file per table most likely, probably more files for indexing and stuff like that.

jwenting 1,905 duckman Team Colleague

Or you could pipe the output to a file and use some tool to analyse that file after you're done running the application.
No modifications of your application code needed that way.

jwenting 1,905 duckman Team Colleague

Written such a system, took about half a year for a 5 man team :)
Of course that was slightly more powerful, robust, and flexible than your average homework assignment :)

jwenting 1,905 duckman Team Colleague

Java lacks the low level operating system hooks to do this, and that's by design.
You'd need to use JNI or JNA to do the actual sneaky stuff and pass that information to a Java process.

jwenting 1,905 duckman Team Colleague

Got to wonder how you're trying to create that file...
I've created applications that have in time created millions of files, never had that happen.

jwenting 1,905 duckman Team Colleague

Given your unfamiliarity with programming you shouldn't start out programming games.
First get a solid background in software design and programming in C++ and/or several other languages, then add the specific areas of expertise needed for game and network programming, and then start designing your games.

Just browsing some source code isn't going to do it. There's a lot of reading and experimenting involved.

jwenting 1,905 duckman Team Colleague

don't use scriptlets. Move to jstl and I may take a look.

jwenting 1,905 duckman Team Colleague

not so sure. Oracle certification is a lot more valuable (in general) than is Sun certification.
It's of course also a lot tougher (which makes it more valuable), so it really removes the incompetents who just grind their certification cheatsheets.

jwenting 1,905 duckman Team Colleague

>where the interviewer assumes from the start that the candidate
>is incompetent and his entire resume a complete fabrication

Did you know that probably around half of the candidates for a position lie on their resume? In harder times, that percentage increases quite a bit. It's safer to assume that the resume is worthless and determine the candidate's suitability through conversation and tests that are relevant to the job.

Sadly, that is the case. I find that personally insulting however, both from the person who assumes I'm incompetent because he's seen others that are and by the person putting me in the position where I am assumed to be incompetent.

Far better to assume the resume is correct and try to weed out the lies through conversation.
Else I might start assuming the company is not one I want to work for, destroying my work ethics even before I start.

jwenting 1,905 duckman Team Colleague

>That's pretty much how all the ads out there read.
I realized it was all bullshit when I read an ad requiring ten years of Java experience...in 1998. :icon_rolleyes:

Or the one I read requiring 15 years of NT4 server administration, in 1996.

jwenting 1,905 duckman Team Colleague

That would depend on the file.

jwenting 1,905 duckman Team Colleague

Redownloading usually does the trick. Most likely something got corrupted in the download.

jwenting 1,905 duckman Team Colleague

Java isn't easy, Java is deceptively easy.
Java is like guitar playing, it's easy to do poorly but hard to master.

jwenting 1,905 duckman Team Colleague

If your task was to design a system which was so easy to defraud, then you would be hard pushed to make it better than this.

UN oil for food program comes to mind?

Salem commented: Nice, that's a good one as well :) +0
jwenting 1,905 duckman Team Colleague

>Notice that actual skills and personality don't come into the discussion at all?
I avoid working for companies like that.

Technical skills come after, and when I pass those hurdles they're not usually an obstacle.
And those are usually gauged more in a semi-informal talk rather than rigorous grilling.
And that's how it should be, a job interview shouldn't be a 3rd degree police interrogation where the interviewer assumes from the start that the candidate is incompetent and his entire resume a complete fabrication, with the candidate desperate to do whatever it takes to prove that assumption incorrect (and yes, I've encountered those, wouldn't accept a position in a company that treats me with such an attitude from the start).

Was just pointing out that technical skills are only a small part of the job interview/employemt process.

>Without that desire, you'll never be able to achieve success, talent or no talent.
I don't disagree, but that's still different from the original statement I replied to. The original statement said that to do <xxx> (for whatever <xxx> you're trying to make seem exclusive) you need talent and a special mind. It's unlikely that a "special mind" meant a desire to excel. Rather, I interpreted it to be some extension of talent.

I interpreted it as a claim that desire is utterly irrelevant to the achievement of success.

jwenting 1,905 duckman Team Colleague

No, it isn't. It is more of an urban legend. Check the link given by jonsca.

but something I'd love to do were I a teacher :)
I know my old geography teacher had a habit of verifying stories like that, like if you claimed the train was late causing you to miss classes he might call the train station to check and you'd better have been telling the truth.

jwenting 1,905 duckman Team Colleague

The Sun never sets on the empire of Oracle :)

Just wondering whether to hasten my Sun certification along or wait with the exam until after it's fully integrated into Oracle's certification program.

jwenting 1,905 duckman Team Colleague

If he knew all that he would have followed my first post !!!

maybe he can't read? In which case he should be starting with Perl or Ruby which are after all write-only languages so you never need to read code at least.

jwenting 1,905 duckman Team Colleague

so what do i do to start?

go to school and get an education.

jwenting 1,905 duckman Team Colleague

You have made a lot of syntactical mistakes here.

if (number % i == 0)
	return false;
else
	return true;
if (false);

Do you really think the control will ever reach the line "if (false)" ? Also let's for a moment assume it does, will the control ever enter the statement in the if block ? What do you think are you doing evaluating if (false) ?

Not to mention the complete waste of code there.
Simply writing

return (number % i == 0);

would work just as well :)

jwenting 1,905 duckman Team Colleague

You do realise that what you want to do is a violation of the law, and that asking for it here is violation of the terms of service of this site?

jwenting 1,905 duckman Team Colleague

You're missing a lot here. And without context it's impossible to help you along.
Clearly you're lacking in your knowledge of application design, things like patterns and common sense.

Your patient will need a field indicating what he's suffering from.
Each medical condition will need to be part of some class hierarchy that can be used in that field, and implement some common interface through which it can be accessed when used as that field.

Anything more specific would amount to handing you the complete solution to your homework, which I'm not going to do.
Rather read up in books like Head First Design Patterns and Head First Object Oriented Analysis and Design.

jwenting 1,905 duckman Team Colleague

no help for homework kiddos and zombie masters

jwenting 1,905 duckman Team Colleague

no help for zombie master homework kiddos

jwenting 1,905 duckman Team Colleague

hi can you give me a simple code of lucky 9 game plz

No, we don't help homework kiddos. And crossposting homework kiddos who bring back zombie threads from the dead are even worse.

jwenting 1,905 duckman Team Colleague

Jave in fact does have multiple inheritance. It just doesn't have multiple inheritance of implementations.
If Java didn't, classes could not implement more than one interface.

And yes, check your attitude.

jwenting 1,905 duckman Team Colleague

And that's why I won't provide a complete solution either, which is what would show you why using a Map here is the best choice.
It's far more elegant, probably faster, and being more concise is less likely to contain errors.

jwenting 1,905 duckman Team Colleague

First learn the difference between DOS, Windows, and Unix.

jwenting 1,905 duckman Team Colleague

no, you're looking for a servlet.
That servlet may use POI.
JSPs should never interact directly with spreadsheets, databases, or any other business data.

jwenting 1,905 duckman Team Colleague

There are jobs out there, but you're not going to get them by hijacking 5 year old forum posts.

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

best way would be to use web services or something similar, and have a process on the server retrieve the data.
The mobile client asks that process for data, it retrieves it using jdbc, and sends it to the mobile client where it's presented.

jwenting 1,905 duckman Team Colleague

use a hashmap with the words as keys and the counts as values.
If you find a word in it, increase the count.
If not, add it with a count of 1.

Ezzaral commented: Agreed. Good suggestion. +10
BestJewSinceJC commented: As Ezzaral has pointed out, this is a correct solution. My apologies! +4
jwenting 1,905 duckman Team Colleague

To use Java:
1) create a stored procedure in the database that schedules a bulk update batch and takes the data to be used as a parameter
2) use Java to call that stored procedure.

That's how we do it here to drive bulk inserts through upload of data files from a web application, works a charm.

jwenting 1,905 duckman Team Colleague

given the already provided answer, did he even read the rest of the thread?
Does he even know what a palindrome is?