jwenting 1,905 duckman Team Colleague

There's nothing inherently illegal about systems to read and write swipecards.
Many companies use them for all kinds of purposes, from customer reward programs to security access clearance.
The systems to read and write them are readily available on the open market.

jwenting 1,905 duckman Team Colleague

All I wish to know is, when someone types a certain string in, can i make the program start a download when they press enter after the typing?

yes, you can.

jwenting 1,905 duckman Team Colleague

well, you can't expect someone who responds to a post that's going on 3 years old with a poorly worded message that says how great the post is to be all that bright :)

jwenting 1,905 duckman Team Colleague

installing Tomcat can be (if you don't need anythin fancy, and you don't for learning) as simple as unzipping the distribution archive somewhere (whereever you like).

jwenting 1,905 duckman Team Colleague

that's in fact an excellent program. It compiles, it runs, and all without errors.

jwenting 1,905 duckman Team Colleague

Don't put the stubs in the ear when putting them on the server they're local to.
I think that's all you need to do really, and of course make sure your deployment descriptors are correct.

jwenting 1,905 duckman Team Colleague

Java isn't the hardest language to master by far.
In fact the core language is quite easy.

If you want hard, think C or Assembler.

Programming any language though is like playing the guitar. It's easy to learn for most people, but very hard to learn well.

jwenting 1,905 duckman Team Colleague

You don't deploy the stubs to the application server, it generates them as needed.
You're getting errors because the stubs you're supplying don't match those that are generated on the fly.
The problem here is most likely a classloader issue.

jwenting 1,905 duckman Team Colleague

And split your code into several classes.
The signal processing code is completely independent from the user interface and should not be a part of the user interface code.

Check Sun's website for the Java code conventions to learn how to properly name classes, methods, and variables (as well as other code layout issues).
Adhering to that isn't mandatory for the compiler to work but is mandatory in most companies using Java and designed to make your code a lot easier to read (and thus understand).

jwenting 1,905 duckman Team Colleague

Yes, you will need networking code and thus sockets (or RMI, but that's built on top of sockets).
You'll also need multithreading, and some user interface technology (most likely Swing).

Learn each separately, then try combining them.
The code required is non-trivial, best get a good book on Java network programming to get you started (the Swing part is secondary to a good communications layer, which should function independently of that user interface).

jwenting 1,905 duckman Team Colleague

yup, that's what I meant ;)

jwenting 1,905 duckman Team Colleague

Dell and HP are hardly cheap. They're solid midrange.
For cheap, get something like Packard Bell or a no-brand system from your local discount supermarket.
But don't expect good performance or a long life from the thing.

jwenting 1,905 duckman Team Colleague

You can get good OR cheap, not both.

jwenting 1,905 duckman Team Colleague

there is, as BlueJ doesn't provide a strict implementation of the language and allows illegal language constructs t be compiled.
It also hides far more from the user than any other IDE, all in the name of "teaching OO".

jwenting 1,905 duckman Team Colleague

no, it can't find something.
Those messages aren't complete so it's impossible for me to know what it can't find, but it can't find something.
You did set JAVA_HOME I hope?

jwenting 1,905 duckman Team Colleague

What causes depression...
In me it was seeing the company I'd worked for 5 years disintegrate under me with no way to get out, not getting paid for half a year, then learning that the CEO had run off with all company assets, and all that while my mother was in hospital after having lost a leg due to medical errors. Being denied social security for those 6 months because I was officially still employed (even though not getting paid, and quitting would get me automatically denied) made it worse.
Getting a new job cured the depression, gave me renewed purpose in life.
The fact that my parents had bigger trouble than me prevented me from going suicidal. I just didn't want to have them to deal with a funeral as well as everything they were going through already.

jwenting 1,905 duckman Team Colleague

Some of the best, having a hard time defining a definite top 5.
And yes, none of them is less than about a decade old (says something about the quality of music these days)...

Pink Floyd - Dark Side Of The Moon
The Beattles - Sergeant Pepper's Lonely Hearts Club Band
R.E.M. - New Adventures In HiFi
Enigma - MCMXC A.D.
Eric Clapton - Time Pieces

jwenting 1,905 duckman Team Colleague

racism is rampant in every country on this planet.
It is fed by one group being given preferential treatment over another (or wanting to dominate the other).
In the UK (and indeed in most of Europe) "minorities" are given preferential treatment everywhere, and are resented for that.
In Zimbadwe minorities are brutally oppressed, but you're not supposed to call that racism because there the minorities are white and everyone knows only white people can be racist (at least in the definition of the PC crowd).

Nothing racist was said here from what I've heard. The "racism" charge was launched for the sole reason that a white person wasn't nice to an Indian person. That she acted the same towards other women (typical catfight) doesn't matter.

jwenting 1,905 duckman Team Colleague

Kawa is no longer being maintained, never was free (so any version you find is pirated), and is WAY outdated.

I used to use it myself and it was indeed nice, but it's certainly not a good tool to use anymore and hasn't been for years.

Eclipse is a good choice for an editor. Just don't use any of the wizards, toolbar buttons, or menus except to create a new project or file.

jwenting 1,905 duckman Team Colleague

Both samples work correctly, for a given definition of what the program should do...

jwenting 1,905 duckman Team Colleague

globals are evil. They reek of design errors.

But if you insist on using them, put them in a header file you #include in everything.

jwenting 1,905 duckman Team Colleague

To HTML encode a string is to convert the " to &quot; and < to &lt; and > to &gt; and & to &amp; and you get the idea :) Essentially it's just a simple find and replace of those few things.

hmm, except if the string represents PCDATA in which case it should be surrounded by <pre></pre> tags.

jwenting 1,905 duckman Team Colleague

Or just read the product documentation...

jwenting 1,905 duckman Team Colleague

that's the only possible reason I see.
A major flaw is also the use of what seems to be a global variable, isbn should really be a parameter to the method and be checked for length and nullness as well.

jwenting 1,905 duckman Team Colleague

BlueJ though is marketed as a teaching tool, and clearly does the exact opposite. It actually PREVENTS students from learning by hiding almost everything.
It also (from what I've heard) allows them to do things the language doesn't allow, whether by having a flawed compiler or by replacing certain styles of coding with other code under the hood before offering it to the compiler.

It's THE worst tool you can use to learn Java (apart from maybe Visual J++ which is years out of date but apart from that not too bad).

jwenting 1,905 duckman Team Colleague

BlueJ is a disaster. It does NOT teach you programming, it teaches you some button clicking.

If you want to learn the language, don't use any IDE but a text editor and command line.
That way you'll learn the language rather than the tool (which is what way too many kids do, and end up utterly lost when they're presented with an environment where they don't have the exact same version of that tool set up exactly the same as at school).

jwenting 1,905 duckman Team Colleague

That post is over 2.5 years old when Java 5 wasn't even around.

There is no Java 5, making his comment even more out of place.

jwenting 1,905 duckman Team Colleague

follow the instructions.
They're NOT executable jars, they're the stuff you need on your classpath to use the library.

You may also need to have some configuration file, but the instructions that come with the library will tell you what and where.

jwenting 1,905 duckman Team Colleague

you're trying to create fullscreen DOS applications. AFAIK that's not supported by any reasonably modern compilers don't compile DOS programs anymore.
If they do, you may just need to pick the right target and possibly find the correct counterpart to Borland specific extensions to the standard C API.

jwenting 1,905 duckman Team Colleague

I see your point -- in a professional setting. But
tells me your apprehension is unfounded and the OP may be using a technique beyond him at this time. I may be wrong, but it's worth pointing out.

IMO you should start people by teaching them the right way to do things, rather than teaching them a quick hack now and later trying to explain that they were taught to do things incorrectly because the right way takes a few more lines of code.

jwenting 1,905 duckman Team Colleague

Anything you write in XSLT could be implemented using SAX and DOM,

but why reinvent the wheel (as you'd effectively be making something similar to XSLT if you wanted any flexibility)...

XSLT is relatively easy to learn (though hard to master), reasonably fast (if you know what you're doing), and extremely flexible.

jwenting 1,905 duckman Team Colleague

which won't provide a correct solution in almost any situation :)
You'll need a lot more logic than that, but it could be used as a starting point.

Instead of an array though you should really consider using an enum.

jwenting 1,905 duckman Team Colleague

No, it is NOT incorrect.
The flag has nothing to do at all with the KKK, which exists everywhere equally.
It also has little to do with slavery and racism (certainly traditionally) as both existed equally in north and south (and still do).
If the south had more slaves per citizen that was because 1) there was more labour intensive unskilled work to be done and 2) the population density in the north was far higher.
The attitudes of the people towards their slaves were no different (if anything, house slaves in the south were likely better off than many of their opposites in the north).

The left claims that the north attacked the south to abolish slavery there, which is completely bogus.
The north had slavery until well after the civil war, the war was purely a war of agression against a group of states that had decided to leave the union (which was their right, as every state has that right).

Racism is rife everywhere, and is fueled by the leftist policies of "equal opportunities", "affirmative action", or as we call it here "positive discrimination".
Such policies make that minorities get hired based not on merits but skin colour, causing tension in companies where they are viewed suspiciously (did he earn his right to that job or was he born into it) and especially among the jobless who feel they are passed over by someone else simply because they're white …

jwenting 1,905 duckman Team Colleague

The confederate flag has nothing to do with the KKK, racial hatred, or whatever except a sense of pride in one's own heritage as a southerner...

Of course the left doesn't understand this anymore, they've started to believe their own rewritten "history" about the south being an evil racist state that was brought into the light of the modern era by the north (led by the republican democratic party of the time).

jwenting 1,905 duckman Team Colleague

in fact, if Jupiter were discovered today it might well be classed as a protostar.
It's massive enough (or almost) for fusion to start, and emits a massive amount of radiation (most of it in the infrared) so there might even be fusion already.

jwenting 1,905 duckman Team Colleague

did you know that in the US civil war, the south had regiments of black VOLUNTEERS fighting side by side with whites?
The north had made it illegal for blacks to join the armed forces, a law that remained in effect until they were needed to free up whites for the front lines in WW2, and no blacks were allowed to fight until after the war...

The north didn't abandon slavery (in fact didn't even start the process) until after the civil war.
The civil war was a war of agression by the north who didn't want the economically strong south (which brought in a lot of money to the federal government) to leave the union.
Slavery had nothing to do with it, that's a later leftist invention...

Did you know there are several active KKK members in congress right now, and all of them are "Democrats"?

jwenting 1,905 duckman Team Colleague

If you have trust in your idea making you tons of money, you should have enough trust in it to take out the loans to get the hosting and equipment you need.
If you don't have that amount of trust, no investor will have enough trust in you to give you the money you need to develop it further.

jwenting 1,905 duckman Team Colleague

and you might find out that there aren't many potential customers when you tell them you require MS SQL Server.
Make sure your application can be easily configured to work with Oracle and Sybase as well, maybe DB/2 too.
Most companies have one of those platforms already and require all their software that needs a database to use it.
They will NOT buy a new database engine (and hire the DBAs to run it) for your application, they'll just find an application that can use their existing platform.

jwenting 1,905 duckman Team Colleague

no one cares how long it took you to write. All they care about is how well it works and meets their requirements.

As this seems to be a highly specialised piece of software for companies, just throwing it out on the web and hoping isn't going to work.
You're going to have to do some legwork. Visit potential customers and talk to them. If they're potentially interested, arrange to give them a demonstration.
That's the ONLY way to sell things like this.

jwenting 1,905 duckman Team Colleague

have you tried? If so what did you try?
This is rather trivial, you should be easily able to figure it out for yourself.

jwenting 1,905 duckman Team Colleague

his Circle class only has a no-argument constructor ;)

jwenting 1,905 duckman Team Colleague

he just wants someone do make something for him complete with documentation and everything, and doesn't mind one iota what it actually is as long as it (he probably couldn't understand a line of code anyway) gets him a passing grade...

jwenting 1,905 duckman Team Colleague

that might be easier to program, but it's not a desirable solution.
If the file gets larger it will inevitably be a LOT slower than modifying the existing file.
It could also easily lead to out of memory errors.

jwenting 1,905 duckman Team Colleague

XSLT is the tool for the job, you just need to write an XSLT stylesheet to perform the transformation you want, and away you go.

How you write that XSLT is the tricky part, books have been written about it. It's a complex programming language in its own right.

jwenting 1,905 duckman Team Colleague

It's also not at all urgent.
Maybe in a decade or so someone we may be able to schedule someone to look at it, our calendar is filled with more urgent things to do (like reading nice books, watching movies, and talking to the dog) until then.

jwenting 1,905 duckman Team Colleague

hardly urgent. In fact there's no urgency at all.

You're effectively saying that you're more important than anyone or anything else, including the work that pays my rent and dinner.
That's extremely rude, and a blatant lie.

jwenting 1,905 duckman Team Colleague

".i may be not become a good programmer,i want to be one."

Wrong attitude. Why should we help someone becoming a bad programmer? There are more than enough bad programmers already...

As to examples of programs using sorting algorithms, just look around you.
You find sorted lists of stuff everywhere.

jwenting 1,905 duckman Team Colleague

sure, and I have a company called "Baker restaurant supplies Ltd", I want the domain baker.com. So you, Jeff Baker, aren't allowed to register that as your personal site, because some company might in the future want that name.

jwenting 1,905 duckman Team Colleague

Yeah, i think this is also true for .ltd.uk domains, they are restricted to uk limited companies. However most mainstream internet companies go for the .com or .co.uk domain anyway. But yes I also think it is the domain allocators who should take the responsibility of stopping domain "squatters" from buying domains that are clearly going to be wanted by a company in the future.

That's impossible to do. Domain squatters are companies, so they can buy those domains...
It's cheap and easy to set up a company in most countries, and a fake office in another country is almost as easy (most countries require just a PO box number for you to register as a company).

And how are you going to determine if "some company may want a name in the future"?
And why should individuals be banned from any domain that any company "may want in the future" anyway?
Say I have a common name and want to register that name for myself.
But because it is a common name some company with that name might at some point in the future exist and want it, so according you your proposed rule I would be banned from having that domain. Hardly fair.

jwenting 1,905 duckman Team Colleague

You can run your own DNS server which should give you the means to call the machines on your own network whatever you want.
But those names will NOT be visible by anyone outside that network.