jwenting 1,905 duckman Team Colleague

there's a word for trying to cheat yourself past a job interview, and that word is FRAUD.

jwenting 1,905 duckman Team Colleague

And not only that, any site trying to sell me something had better not require me to do anything special like installing plugins or open the block I placed on Flash or I'm gone before ever seeing what they have to sell.

You want to make using the site as easy as possible for users, and requiring them to install plugins and press buttons in dialogs telling them about potential security risks from the site is NOT going to do that.

jwenting 1,905 duckman Team Colleague

You don't do that kind of thing from a JSP, how often do people have to repeat that?

For uploading files to a server, you need to handle multipart MIME requests.
There are 2 packages (at least) on the market that will plug into a servlet to help you with that.
Better yet is to plug them into Spring and let the upload be handled by a Spring SimpleFormController, as that way it's a lot easier.

jwenting 1,905 duckman Team Colleague

Bruce Eckel's books are WAY overrated. The only reason they're popular is the fact you can get them for free as eBooks.

If you want excellence, look for "Objects, Abstraction, Data Structures and Design Using C++", by Koffman and Wolfgang, ISBN 0471467553, published by Wiley.

jwenting 1,905 duckman Team Colleague

Delphi 7 provides other means of accessing and creating databases.
If your course insists on you using such ancient technology, demand your money back and enroll in another.

jwenting 1,905 duckman Team Colleague

You MUST explicitly initialise all local variables in a method before reading them for the first time.
You don't do that, so you get an error.

jwenting 1,905 duckman Team Colleague

Don't use BDE, it's there for legacy support only.
It's no longer maintained, no longer supported.

Anyway, the error is quite clear. It can't find the file.
Could be because of the spaces in the filename, being a very old program (did I tell you it's there for legacy support only and no longer maintained for the last 7 years or so?) it might not know how to deal with those.

jwenting 1,905 duckman Team Colleague

>> Is there a free compiler / interpretter for Delphi (if any, which) and / or an IDE?

Yes, a somewhat limited version is available for free. An interpreter isn't needed as the compiler produces Windows native code.
Delphi, being a complete product, comes complete with an IDE.
http://www.codegear.com/ (for the full thing)
http://www.turboexplorer.com/ (for the free thing)

>> Is Delphi easy to learn, or hard?

As everything, it's easy to learn the basics but you can spend years mastering it.

>> Is there a way to make graphical applications in Delphi?

Of course.

>> And also, what about full blown applications?

Of course.

>> Is it a full language like C++,

Borland's C++ compiler is written (in part) in Delphi...

linux commented: Thanks for the amazing help with Delphi. +1
jwenting 1,905 duckman Team Colleague

as I said before, there is.
In Delphi there are a lot of networking components available as standard, if it's plain old Pascal he may have to search for or write his own networking stack first, but it can certainly be done.
How do you think people write web browsers?

jwenting 1,905 duckman Team Colleague

CASE, haven't heard that acronym in almost 10 years.
It's all "MDA" and "UML" these days...
But if you mean that, look at Enterprise Architect.
Far better than Rational, doesn't force you into their way of thinking and working, and is a lot cheaper too.

jwenting 1,905 duckman Team Colleague

colleague exposed a scammer using eBay (not an eBay scammer).
He got an offer to buy a car he thought was too good to be true, searched for the chassis number, and found the car listed in an expired auction on eBay.
He contacted the person who had listed that auction, who told him he'd never sold the car and that it was on the other side of the world from where the supposed owner (who'd offered my colleague the car) said he was.

jwenting 1,905 duckman Team Colleague

I'm everything.
IOW, I'm constantly waking up in a different position from the one I went to sleep in (and those differ as well).

jwenting 1,905 duckman Team Colleague

it's quite simple.
The JComboBox check whether the item you selected is in its list of items.
If the same item is in the list more than once (as in your case) it will simply return one of them (and almost certainly, based on my knowledge of the actual implementation of the class, the first one of those items).
It simply can't distinguish between them, as they are indeed all identical.
To change that create a custom ComboBoxModel and assign that to the JComboBox. In that make sure that the items are unique.

jwenting 1,905 duckman Team Colleague

those are not compilers.
OP confuses compilers with IDEs and so do you...

Eclipse is available for Windows as well.

jwenting 1,905 duckman Team Colleague

ah, at last someone took the trouble of converting it to pdf.
First saw this one in a newsgroup some 10 years ago, and it wasn't new even then.
But it's still funny.

jwenting 1,905 duckman Team Colleague

There's a pretty even mix of men and women in the company where I work.
About 25 men in technical roles and management, and about 25 women in sales, customer support, human resources, and finance...

jwenting 1,905 duckman Team Colleague

Both are end of life and no longer available.

Use a modern JDK (like 1.5 or 1.6), and forget about the BDK (noone ever used it, and Sun acknowledged that by discontinueing it).

jwenting 1,905 duckman Team Colleague

I wonder what your code is...
Sounds like a problem with your ComboboxModel.

jwenting 1,905 duckman Team Colleague

>are vampires really undead?
Last I checked they were on the list of traditional undead creatures. I guess it depends on which definition you go with, but most of the time you have to die first before becoming a vampire.

I've seen scriptures where you don't have to die to become a vampire. And of course there are the vampire bats which are quite alive while performing their vampiric escapades.

If you read the books by Kelley Armstrong, she talks about vampires as being supernatural but not undead.
They're extremely long lived, but will eventually die.
They also seem to have souls (or spirits of some form) which can become ghosts after death and come back to haunt the living.

jwenting 1,905 duckman Team Colleague

personally I think all of them look horrendous, but I'm not in the target market (teenage girls mostly).

jwenting 1,905 duckman Team Colleague

apart from your compareTo method never returning anything but 0 (at least from the part you posted)?

And of course you're violating the Comparable contract by having the signature of your compareTo method take a Hand instance instead of an Object, so it's quite possible it never gets called at all.

jwenting 1,905 duckman Team Colleague

The Linux VMs are flaky when it comes to Swing code.

jwenting 1,905 duckman Team Colleague

and learn proper separation of control. JSP are not meant for that.

jwenting 1,905 duckman Team Colleague

you don't want to do that (at least not in JSP).
You want to use a servlet for that.
You also want to read a beginner's tutorial on JDBC.
You want to learn something about databases too.

jwenting 1,905 duckman Team Colleague

when will kids learn to NOT do that in JSP, in fact to NOT use any scriptlets or business logic AT ALL in JSP?

jwenting 1,905 duckman Team Colleague

congratulations on successfully pasting your entire homework assignment into a small textbox on these forums.

Now go out and actually do that homework instead of waiting for someone to do it for you while you play with your game console.

jwenting 1,905 duckman Team Colleague

Why are you trying to use J2EE classes from J2ME?
And why are you trying to do something with a servlet when you want to connect to a database?

I seriously doubt though that you can connect to a database from J2ME at all, afaik it doesn't support JDBC.

jwenting 1,905 duckman Team Colleague

You'll need to find those application specific client files AND the application specific environment setting you need for that server.
I can't help you with that, but the server documentation should be a logical first step.

Then there's the internet, especially the vendor suppost site (most of which have forums and/or wikis of some sort).

jwenting 1,905 duckman Team Colleague

if the object was properly serialised over the connection that wouldn't matter though, the classloader information would have been stripped.

jwenting 1,905 duckman Team Colleague

what do you think it should do, and what does it do?

I see at least one error in your code, stemming from the way Java does division and multiplication and what you probably think it does.
You are missing a required cast somewhere, that's all I'll say for now.

jwenting 1,905 duckman Team Colleague

are vampires really undead?
Or are they something else completely...
Just as werewolves aren't undead, they're quite alive (at least according to the majority of werewolf legends).

The undead would mainly be zombies and reposessed corpses.

jwenting 1,905 duckman Team Colleague

There's a C++ entity for Eclipse as well.
Haven't used it, so can't tell if it's good or not.

jwenting 1,905 duckman Team Colleague

check your loop. Why is there a semi-colon at the end of the line?
It's highly unlikely that it's supposed to be there.

jwenting 1,905 duckman Team Colleague

you'll have to make sure the class is available on both ends of the connection.

I do hope you have properly serialised it as otherwise it's unlikely to work whatever you do.

jwenting 1,905 duckman Team Colleague

yup, that's not the way to call things outside the JVM...

Is there even a portable, cross platform way to perform a reboot in java?

Of course not, as there is no platform independent way to do it at all (except for pulling the powerplug, and that's assuming there's no UPS attached).

jwenting 1,905 duckman Team Colleague

do your own homework and next time start sooner.
We're not your slaves, and certainly aren't here to make sure you can sit back with your playstation instead of trying to learn something.

jwenting 1,905 duckman Team Colleague

be sure to use the correct namespace when addresses those methods.
They're in the std namespace (and have been for the last 10 years or so, so since just after your book was published).

jwenting 1,905 duckman Team Colleague

all 3 books you asked about are terrible.
Sorry, but that's the long and short of it.

This is by far the best introductory text on Java: http://www.oreilly.com/catalog/hfjava2/

This one is also very good: http://www.amazon.com/Agile-Java-TM-Test-Driven-Development/dp/0131482394/sr=8-3/qid=1172383101/ref=sr_1_3/002-3459208-9687204?ie=UTF8&s=books

Anything else is IMO a waste of money and time if you seriously want to learn.

jwenting 1,905 duckman Team Colleague

whatever happened to trying?

jwenting 1,905 duckman Team Colleague

you never know...

I've this feeling of not being quite alive rather a lot, so who knows...

jwenting 1,905 duckman Team Colleague

atan(0) = infinity.

jwenting 1,905 duckman Team Colleague

so many things wrong with this post...
1) not at all written in any language people can understand (read: English which is required here).
2) an attitude of being far more important than anyone else, so important in fact that everyone should drop whatever they're doing to help.
3) not even attempting to think for himself, not even to think up something to do.

jwenting 1,905 duckman Team Colleague

hmm, Cobol editors are usually rather BASIC (pun intended) and save either as plain text files (so you can easily ftp them to a server for compilation), or into some sort of database repository where the compiler will pull them from.

This looks like some regular expression being passed into something. Is there even a Cobol dialect that allows that?

Most likely it's just a plaintext header to a binary file of some sort, giving a command in some scripting language internal to the application the file is intended for that it can use to perform operations on the data in the file.

jwenting 1,905 duckman Team Colleague

There's an option you can set on a JFrame that will turn it off.
Get the rootPane, and set the windowDecorationStyle to something else.
Might do more than you were aiming for, but that's the easiest (and possibly only) way.

jwenting 1,905 duckman Team Colleague

lucky you. Know a guy in Alasky (not a farmer, but he's caretaker of a nature preserve so similar conditions) who's stuck with a generator (no powergrid out there) and a satellite phone (no landlines either).
No sewer system of course (so he has his own sewage pit), no water being piped in (so he has his own well), only accessible by aircraft from september (if he's lucky, sometimes august) to april (sometimes may) (and that's if the weather is good enough to allow aircraft to come in).

jwenting 1,905 duckman Team Colleague

E) When you have nothing better to do than criticize some stupid games played on the message boards.... ;)

f) when you start criticising people who criticise people who have nothing better to do than playing stupid games on message boards.

And yes, criticise is spelled with an s in the real language :mrgreen:

jwenting 1,905 duckman Team Colleague

70! = 1.1978571669969891796072783721689e+100

jwenting 1,905 duckman Team Colleague

Delphi ships with a component that's dedicated to that.
Just look through your component palette (assuming you have a reasonably recent (D7 or later, maybe D6 as well) and legal version of Delphi (pirated versions may have it stripped to reduce download size)).

jwenting 1,905 duckman Team Colleague

and that wouldn't help even if you could disable it, as there are many other ways to copy a file :)

jwenting 1,905 duckman Team Colleague

probably still using a 1.1 based book...
Or the kid misunderstood the assignment and it said to "tokenise a string", the first thing he found when looking for that was "StringTokenizer" (less likely, as it assumes some initiative on the part of the OP).