jwenting 1,905 duckman Team Colleague

we're not here to help you learn skills that are mostly useful for computer criminals.

jwenting 1,905 duckman Team Colleague

Which sorting algorithm is the most efficient depends on what is being sorted and how random (compared to the sorted state) the initial data is.

jwenting 1,905 duckman Team Colleague

There is no question except your question for us to write your research paper for you.

Better luck next time kiddo, you've been found out.

How I know you're a kiddo: your use of extremely childish language constructs and text messaging shorthand gives you away instantly.

jwenting 1,905 duckman Team Colleague

Neither JEdit nor JCreator are development kits :)

J2SDK 1.4.x are indeed probably the most widely used today, but I'd advise anyone taking up Java to start learning the 1.5 (5.0) from the outset as it is the future and by the time you're up to speed it will likely be prominent.

jwenting 1,905 duckman Team Colleague

Ah. No different from many other countries.

Here schools get paid by the number of students, and parents of course prefer schools where the students do well.
So schools will often advise students to choose a high level of followup education even if they should really attempt something lower just to shore up their own statistics.

As a result a relatively high percentage of students at higher education gets set back to lower levels after the first or second year because they can't keep up.

jwenting 1,905 duckman Team Colleague

All exam fees paid to state operated schools go to the state. Same with (part of) exam fees for state run exams.
Nothing wrong with that, it costs them money to organise and run the exam after all...

Most likely they LOOSE money on it and the exam fees don't cover the full expenses.

jwenting 1,905 duckman Team Colleague

correct. Terminal server has existed for a decade or so at least.

jwenting 1,905 duckman Team Colleague

It shouldn't be copied, but all of us have done it I think!

Not for the last 20 years, and even before that only software that wasn't available in any other way (that was before the internet and online stores, with the only computer store in town having maybe 5 titles).

jwenting 1,905 duckman Team Colleague

The attitudes about stealing software are amazing - do you have an opinion?

Software piracy should be treated like piracy at the high seas. Keelhauling is to good for the criminals!

People scream foul about shoplifting yet casually steal tens of thousands of Euros worth of software.

When confronted with their crimes they claim noone is hurt because software doesn't cost anything anyway and they're "only punishing large corporations for overcharging"...
This attitude prevails even among many who work in the industry and make their own income from creating software that is sold, making the situation even worse (and harder to understand, these people make money creating something they say doesn't cost anything to create).
Worst of all: I've seen many requests on usenet for pirated copies of software to create copy protection and for commercial compilers, often in official support groups for those products...

jwenting 1,905 duckman Team Colleague

The thing is that if software wasn't that expensive, people wouldn't have to copy them. So in a way it's kind of their fault. Not everyone can afford to pay a few hundred bucks for Windows for EACH computer they have.
But companys mainly make their money of other companys wanting licences to their software anyways.

Wrong. I've encountered pirated copies of freeware. People actually removing copyright information and the name of the original authors from freeware programs and distributing them as their own (often asking money for them).

If you buy a computer, factor in the cost of software. If you can afford more than one computer you're not a penniless student (who can get discount educational licenses) anyway.

jwenting 1,905 duckman Team Colleague

Your component can fire for example a PropertyChangedEvent and your other class register itself with the component as a PropertyChangeListener (or whatever it's called).

Needs a bit of code, but I'm sure most decent books and the Java tutorial have ample examples.

jwenting 1,905 duckman Team Colleague

Visual studio doesn't mess up your system (though maybe some pirated versions may, but that's justice :) ).
It does of course allow you to write programs that do mess up your system, that's the power of C :)

Of course if you have old programs that require a very specific version of some library installing anything newer may kill that program...

jwenting 1,905 duckman Team Colleague

It is. But remember File et.al. typically throw IOExceptions which don't derive from IllegalStateException.

IllegalStateException is a RuntimeException, which is why you'll find few cases of it being explicitly caught (usually these are used to indicate programming errors rather than runtime problems, despite what their name suggests) while IOException is a regular Exception which requires catching at some point.

jwenting 1,905 duckman Team Colleague

you mean make an HTTP call to an HTML page or some other URL and capture the output?

HttpURLConnection is your friend. From it you can get an InputStream from which you can read the data returned by the request.

jwenting 1,905 duckman Team Colleague

Check the specs for the machines you're interested in. I don't have pointers ready.
Did some checking and found the situation confusing to say the least, we ended up creating a web application instead with HTML specifically tailored for the less capable browsers and smaller screens of PDAs.
That way we could use the full power of J2EE while still targeting low spec hardware.

jwenting 1,905 duckman Team Colleague

Think of calling a method to do a database query on a database that is closed.
Or calling a read method on a stream that's past the end of the data.
Or calling write methods on a readonly file.

Note that these won't throw IllegalStateException in Java but they could (they throw something more specific).

In general it's there to indicate you're trying to do something with an object that at that moment isn't possible to do with it.

jwenting 1,905 duckman Team Colleague

There's no generic way.

One method that's generally advocated is to open a serversocket on an obscure port on the primary network interface on the first instance that starts.
This socket does nothing, it just sits there as a marker.

New instances that want to start cannot open a serversocket on that same port because only one server can run on any port on any given network interface.

jwenting 1,905 duckman Team Colleague

There are more critical issues (meaning issues that allow an attacker to take over the entire machine) open in FF than there are in IE at this time, and they take longer to fix on average...

There's 2 reasons there are less exploits for them:
1) those exploits are often written by Microsoft haters (a.k.a. slashdotkiddos) who don't want to sully the name of their own brainchild
2) the rest is written by people that do it for money and those won't target a browser that has such a small market share, it's simply not economically viable.

And that's for browser-specific exploits. Most exploits aren't and will affect the target computer whether IE or FF is in use.

If and when FF gains a large share of the market the slashdotkiddos will get bored of the limited impact of their crimes and start attacking FF anyway, while at the same time the commercial writers will start seeing profit in targeting FF.
At that point all hell will break loose.

jwenting 1,905 duckman Team Colleague

It does, to some extend. There aren't JVMs available for all hardware architectures and operating systems, and there are some differences in the scope of the available JVMs that do exist.

jwenting 1,905 duckman Team Colleague

It IS your butt later on. After all, he'll get a job potentially in your company where you'll then have to work with him.
If he doesn't know anything you'll be constantly correcting his mistakes and doing effectively the work of 2.

It doesn't matter if it's 7 lines or 20 pages. If it takes 7 lines to get something done 20 pages aren't needed.

NEVER give a full solution. Only give hints towards reaching a solution, or correct a statement here and there (which would require the OP to show his work what this one is incapable of because he doesn't have anything).

jwenting 1,905 duckman Team Colleague

??????

You can't open something on the client from the server. You can send a piece of html (when asked of course) that contains a piece of javascript that in turn requests another piece of html.

jwenting 1,905 duckman Team Colleague

PLEASE DO IT SOOON
Wrong way to ask a question. We're not here to do your bidding at your whim. Maybe you should have started researching sooner if you're in a hurry now.

the multiselect is not possible with a dropdown, only with a selectbox.

You can get the values with getParameterValues(String) on the ServletRequest.
The API docs will give you more information.

jwenting 1,905 duckman Team Colleague

I have an idea the entire mother is not there.
The MOTHER is the admin, but the OP (who is apparently not the mother) wants to get into the account.

Makes me think the OP is a brother or sister to the account which (s)he wants to gain access too, iow the OP indeed wants to break into the account without administrative privileges which is cracking.

Christian, please remove the link to password cracking tools...

jwenting 1,905 duckman Team Colleague

try to join the main program thread on the thread running the upload window.
That will block that window (but remember it's messy, the main screen won't be repainted either for example).

jwenting 1,905 duckman Team Colleague

It is. In fact it's stereotypical and handing them any code at all is doing a great disservice to the entire profession.

For anyone who does a few minutes of experimenting and reading these should be no problem at all to solve.

jwenting 1,905 duckman Team Colleague

Check in your volume settings whether you have the microphone recording volume muted. If so, try unmuting it.

jwenting 1,905 duckman Team Colleague

Yes, no, maybe :)

Usually not directly. But through JNI you can do almost anything if you can create (or have access to) a JNI stub to a library in a native language.

jwenting 1,905 duckman Team Colleague

JNLP is JavaWebstart and has been available since 1.4.0 at least.
But what's wrong with 5.0? I'd advise everyone who has no overriding reason to stay with older versions to use it.

jwenting 1,905 duckman Team Colleague

I'm not into writing things in a day, most projects take a long time and are for a definite need.
But then I do most writing for a living so the company decides what needs be done :)

jwenting 1,905 duckman Team Colleague

Nowhere. It's not for marketing to individuals, only to be made available to foreign aid organisations and 3rd world government agencies (mostly educational and healthcare) in orders of 1000 units and more.

jwenting 1,905 duckman Team Colleague

There are tools that can create an exe-wrapper for a Java application.
Never used them, most are quite expensive I believe, and why would you want to in the first place?

Read up on something like JavaWebstart instead, it might be what you really want.

jwenting 1,905 duckman Team Colleague

There have been coins like that attempted in the past but the problems with bonding 2 different metals together so that an extremely strong bond is created hadn't been overcome before.
The result was coins coming apart, leading to the designs usually being shortlived.

jwenting 1,905 duckman Team Colleague

You're in deep trouble if you keep using the name SAMS. SAMS is a major publisher of computer books, I don't think they like others using their name...

P.S. your email address doesn't instill any confidence in me either as to your being genuine. If you were real you'd have a domain set up and an email server at that instead of some numerical email address from AOHell (which my spamfilters will block because they block all such addresses which are 99 times out of 100 used by spammers).

jwenting 1,905 duckman Team Colleague

just open a command prompt and type netstat in there :)

jwenting 1,905 duckman Team Colleague

Noone wondered why a statement about VB was posted in a forum for questions about Java?

jwenting 1,905 duckman Team Colleague

yup, it is Mozzy (and the Netsheep before it) that don't support object tag for applets (in contradiction to the W3 specs) :)
Not sure what the Fiery Fox does, but being a direct descendent of the Mozzy...

jwenting 1,905 duckman Team Colleague

Most dollar coins end up in collections (they're often limited run items) and the rest are used in the few sales machines that don't take dollar bills...

It was decided to go with €2 coins because of the amount of circulation such small denominations get. A coin lasts a lot longer than does a note and therefore is cheaper in the end (even if the production costs a bit more).

jwenting 1,905 duckman Team Colleague

readln (input, num + tot); uh...
where's your end. to end the program

jwenting 1,905 duckman Team Colleague

Since when does IE not support object tags for applets?

According to the MSDN HTML reference (which wouldn't include stuff IE doesn't support...) for object, object takes the following attribute:
"CODE code Sets or retrieves the URL of the file containing the compiled Java class. "

Of course this is deprecated and you should use codebase and archive instead to link to a jarfile.

jwenting 1,905 duckman Team Colleague

bump... I wonder how long until the FF zealots will jump in and deny there's a problem because they haven't seen anything using it...

jwenting 1,905 duckman Team Colleague

Yes we've had this discussion before. I didn't agree with you then and I don't now.
If you set up your browser correctly and don't act irresponsibly (and that includes visiting warez and cracker sites to download the latest cracked games) there's nothing to worry about.

Problem is that most people don't set up their browser correctly (maybe MS should lock down some more things by default, true) and do visit such sites. But you can't blame Microsoft for their users (maybe out of ignorance) acting irresponsibly.

jwenting 1,905 duckman Team Colleague

Wake on keyboard also can do it. Some keyboards aren't properly grounded and can send small random signals even when no key is pressed. This is usually no problem as they get filtered out in the keyboard processor but the wakeup system might trigger on them.

Of course a sure way to turn it off is to literally pull the plug :)

jwenting 1,905 duckman Team Colleague

Start small. First upgrade an existing PC with a new videocard, maybe add a harddisk or a CD ROM drive.
The next step could be installing some new RAM.

Soon you'll have all the experience to build a new machine from scratch, and all you need to build up is the courage to take a screwdriver to a motherboard and to plug in a CPU costing hundreds of Euros that looks incredibly fragile :)

jwenting 1,905 duckman Team Colleague

All reputation systems are an invitation to abuse anyway so I don't use them.
Any way to turn it off?

jwenting 1,905 duckman Team Colleague

There are built in print functions, but I've not used Pascal in ages (except Delphi now and again and there you have Windows handle the printing).
If I recall correctly you have to open the printer like a file and write to it.
This is easiest for old line printers (matrix printers) as there you can just write text lines and they'll appear on paper.
For PCL and PS printers you will need some kind of library to translate your commands to the printer language.

Turbo Pascal used to come with a demo for the printer unit (which you'll need to include).
http://bdn.borland.com/article/0,1410,20803,00.html will allow you to download Turbo Pascal 5.5 free of charge (may need free registration). Not sure if the printer unit works from Windows in command prompt though.

In Object Pascal (Delphi, and I think TP for Windows as well) you would use a TPrinter object instead.

jwenting 1,905 duckman Team Colleague

Scanner is a new class in 1.5, maybe you were looking at the 1.4 API docs?

I've not used it myself so I can't really help you at this stage.

jwenting 1,905 duckman Team Colleague

in the while loop i have increased the i just after the user input instructions
i put in ' i = i++' i know this works because when i never had in b4 i could nt add more than one entry......

i = i++; does nothing in Java.
It effectively translates to something like this:

int j = i+1;
int k = i;
i = j;
i = k;

I know in SOME C and C++ dialects i=i++; is equivalent to i++; or i=i+1; but in Java this is not the case (remember that in C/C++ the behaviour of the ++ operator is undefined!).

use i++; instead of i=i++;

jwenting 1,905 duckman Team Colleague

by putting them on the pages?

jwenting 1,905 duckman Team Colleague

Vector is indeed old. It is kept around mainly for legacy reasons (backwards compatibility with old code) and its use it not advised in new applications.

Sadly many tutorials and beginners' books were written ages ago and only minimally updated to keep track of new developments and thus still use Vector, thus leading many people who start out in Java to learn to use something they really shouldn't.

I've been wondering for some time now why Sun didn't just deprecate Vector, which would cause compiler warnings to be thrown whenever it's used (thus deterring people away from Vector).

ArrayList is the most common replacement, though other Lists exist (such as LinkedList) for specific scenarios.
It's faster (because it's not synchronized) and fully implements the List interface (something recently backfitted to Vector as well).
Even when needing synchronization, ArrayList (in its synchronized form) should be preferred over Vector.

jwenting 1,905 duckman Team Colleague

what is 'i' in that procedure? It's undefined...