jwenting 1,905 duckman Team Colleague

http://www.jfree.org very nice charting library :)

jwenting 1,905 duckman Team Colleague

<html:image> can in fact be correct, depending on the tag libraries in use.
It will likely generate an <img> tag based on its parameters.

But yes, the nesting of tags CAN be problematical. Especially when you're nesting custom tags with JSP taglets and scriptlets you're asking for trouble (nesting tags within a single tag library is usually fine).

jwenting 1,905 duckman Team Colleague

Learn the difference between serverside and clientside processing.
The button is clicked in the client, the JSP runs on the server.
You can NOT run a JSP on the client, and you should NEVER put a method in a JSP.
Have the submit of the page call a servlet, which processes the request and sends its results to a JSP which will show the results to the client.
That's how you do it, and no other way.

jwenting 1,905 duckman Team Colleague

use code tags.

jwenting 1,905 duckman Team Colleague

nice, but how are you going to trace the time needed for the functionality you replaced by those mocks (which usually is the expensive stuff like database and network operations)?

jwenting 1,905 duckman Team Colleague

why use a RandomAccessFile for it anyway, and not an established logging package?
There's a logging API built into the language by now, and several alternatives like Log4J as well that do an excellent job.

jwenting 1,905 duckman Team Colleague

maybe you don't know it, but you can quite simply contact someone using your cellphone by typing in their phonenumber and calling them...

I know it sounds unbelievable, but that's why the things are called PHONES!

jwenting 1,905 duckman Team Colleague

Yeah, I don't believe in them lol.

they don't need your belief, after all they exist and anything that exists doesn't have to be believed in to be real :)

jwenting 1,905 duckman Team Colleague

But really, what exactly do they do there?

That's secret... Some keywords: black helicopters, THEM, the man from UNCLE, MK Ultra, chemtrails, fake moon landings.

Technically Area 51 is a military grid coordinate for a part of the Nellis ranges, which are most famous for their use as bombing and low flying areas for exercises like Red Flag.
It is centered around Groom Lake dry lakebed.

From the 1950s to the 1970s (possibly 1980s) it was a site for testing top secret experimental aircraft (like the SR-71 and U-2).
Security is and was extremely tight, with base security having instructions to shoot to kill without warning anyone approaching the complex.
Because of that tight security and the weird sound and light shows sometimes seen in the area (remember in the 1950s most people had never seen or heard a jet or rocket engine) many UFO stories were reported in the area, leading conspiracy theorists to claim it's a secret alien base.

jwenting 1,905 duckman Team Colleague

yup, there's nothing in physics that prohibits superluminal velocities.
Only the speed of light itself is prohibited for anything with mass, so if you found a way to get from subluminal speed to superluminal speed (and preferably back again) without passing through the speed of light itself you could (and would) be able to travel at almost any speed you like.
In fact, when going FTL the higher the speed the lower the energy needed to maintain that speed (and braking costs more energy than accelleration).

jwenting 1,905 duckman Team Colleague

there are islands in Africa. I'm sure there are programmers on those islands. That makes them offshore programmers :)

jwenting 1,905 duckman Team Colleague

look at the documentation of Calendar.

jwenting 1,905 duckman Team Colleague

sounds like a logic error in your programming...

jwenting 1,905 duckman Team Colleague

that's not a program, that's the assignment for your homework.
First you have to write a program before you can compile it.

jwenting 1,905 duckman Team Colleague

turn off any proxyservers you are using, they're also caching.

jwenting 1,905 duckman Team Colleague
jwenting 1,905 duckman Team Colleague

and? What is stopping you from coding that?

jwenting 1,905 duckman Team Colleague

I've seen highly experienced people go wrong on "optimisation" when they didn't know the underlying machine instructions being generated (and few people know those).
That was C of course, but in Java deep knowledge is often also needed to get beyond the blatantly obvious stuff.

Things like loop and callstack optimisation aren't all that well known to many people.
SQL optimisation is an especially black art...

jwenting 1,905 duckman Team Colleague

Looks like a corrupt installer. Clear your browsercache and try downloading it again.

jwenting 1,905 duckman Team Colleague

that's because you cannot use those keywords inside methods.

jwenting 1,905 duckman Team Colleague

a mocking framework won't tell you what needs optimising.
A profiler may, but not a mock object (if anything it will likely hide the reason for any performance problems).

Most often when people "optimise" code they are just guessing where the problems are, grasping at straws and doing things they once heard someone say would make things faster (and usually they don't of course).

jwenting 1,905 duckman Team Colleague

Local interfaces work only inside a single appserver instance, thus a single JVM.
OP wants to use IPC between JVMs...
I know full well that a single appserver can run multiple applications side by side, it's my job after all... But those don't run in separate JVMs which is what the question was all about. And they have a marshaller service to take care of the communication between them, they don't do it directly.


Network latency has no influence on the application programming model.
The application doesn't care whether you have 2 instances running on a network with tons of latency or on the same machine (given that you've programmed it to account for the first rule of distributed computing: the network is unreliable).
So for the application it indeed doesn't matter whether you're talking across thousands of miles or to someone in the same OS instance, it'll just be faster. The protocols will be identical, certainly using Java (C might use named pipes between application instances in the same OS instance, Java doesn't have those).

jwenting 1,905 duckman Team Colleague

what part of "send me the code" don't you understand?
He wants a complete package to turn in as his homework...

jwenting 1,905 duckman Team Colleague

mode got turned on before posting, might have been turned off at some point before that as well ;)

jwenting 1,905 duckman Team Colleague

EJBs would require a full appserver (or 2, if you want 2 JVMs to talk) and would still involve RMI (albeit under the hood).

Interprocess communication between JVMs is no different whether the JVMs are running on the same machine or if one machine is in your bedroom and the other on Mars.
You're going to use RMI or some other networking protocol, only thing you'll notice is that it's going to be faster and probably more reliable if the virtual machines are closer to each other (and it don't get much closer than when they run side by side on the same hardware).

jwenting 1,905 duckman Team Colleague

you can't. Only version control system that can store C++ files is Visual SourceSafe.

<irony mode off>
read the documentation, get the Good Book, and away you go.

jwenting 1,905 duckman Team Colleague

there's this thing called "documentation" that would help.
Install, set up JAVA_HOME and PATH correctly, and maybe point FF to the new JVM (if it doesn't pick it up by itself).

jwenting 1,905 duckman Team Colleague

Key word = "known".

Humans consider themselves more intelligent than dolphins because they have invented things like cars and war.
Dolphins consider themselves more intelligent than humans for those same reasons.

Douglas Adams...

jwenting 1,905 duckman Team Colleague

It would be hard to adjust.. but come on, we wouldn't like all die b/c we don't have any vehicles. Life would change drastically, but we would SURVIVE

a lot of people wouldn't survive. Those vehicles carry food and other essentials into towns and cities, without them those towns (and especially cities) would starve in days (I believe I read somewhere that major cities like New York will run out of food for the people in them in hours when nothing would get shipped and trucked in).

If you take away ALL motorised transport (which is the end goal of the radical environmentalist lobby and the far left political end of the spectrum, albeit for different reasons) the result would be that the majority of the population would rapidly starve to death.
People in rural areas would have a somewhat easier time, as they're closer to the places where food is produced, so they can use handcarts and animal pulled vehicles (which would likely be illegal under "animal rights" laws, but without cars and aircraft the police would be unable to enforce those laws) to distribute food to themselves.
But they too would be in severe trouble rapidly unless the monoculture that is typical of modern agriculture was swept aside immediately in order to make way for smaller patches of produce and stables for a larger variety of animals (also illegal of course) per farming community.
You can't survive on cabbage or grain alone after all, …

jwenting 1,905 duckman Team Colleague

In that case isn't she no longer valid? Amendment 22 of the US Constitution:

Anyway, since she wasn't ruling in her own name during the last shot, she's probably legally covered. Although there was so much talk about a copresidency under the Clintons last time...wonder if she could be disqualified on those grounds?

But in that case she was comitting a crime by ruling the country in the role of an elected official without being elected to that office...

Sounds rather serious, a willful and deliberate attempt to destroy democratic process.

jwenting 1,905 duckman Team Colleague

Where the heck are you getting your data from? No, Barak Obama is currently Christian, who grew up in an Islamic household. Last time I checked, he had never denied the Holocaust.:icon_rolleyes:

He's Christian to the same extent as Saddam was Muslim, just enough to get people to vote for him.

According to Islam ANYTHING is allowed to destroy the infidels, including openly embracing their religion. You'll still be Muslim in reality and all your sins are automatically forgiven as long as you did it for Islam.

jwenting 1,905 duckman Team Colleague

hardly urgent. Even if it were you'd get that information readily using a search engine.

jwenting 1,905 duckman Team Colleague

I told you what to do... You should be able to figure out how to do it on your own.

jwenting 1,905 duckman Team Colleague

you don't "get" anything from a "database" using a JTable.
The JTable just provides you a view on data you retrieved elsewhere and stored in its datamodel.

jwenting 1,905 duckman Team Colleague

I think obama is nice. If i were american id vote for him

Obama is a Muslim fundamentalist, similar in his outlook on life (and how others should live it or more frequently not live) to that nutcase president of Iran...

jwenting 1,905 duckman Team Colleague

You can't, at least not if you want to treat the JSP on the other machine as part of the weg application on yours.

You can of course make http calls to it and process the results in some way.

But you shouldn't do any of that (let alone database access) using JSPs, it's not what they're meant for.

jwenting 1,905 duckman Team Colleague

of course the BGI is 20+ year old technology first developed for DOS 3 and never meant for use under Windows so it's quite possible even if you called the method that it failed and you didn't properly handle that failure.

jwenting 1,905 duckman Team Colleague

you're supposed to have learned to think for yourself by now, and that includes coming up with your own ideas.
And even if you're incapable of that, you should have learned to do your own research which would inevitably show you the thousands if not millions of times this exact same question has been asked here and elsewhere and the miriad ideas suggested as a result by people not yet tired to do other peoples' homework for them.

jwenting 1,905 duckman Team Colleague

what do you want to do?
Use properly formated English for your questions, as it is written it makes no sense at all.

jwenting 1,905 duckman Team Colleague

Something like this would be an appropriate way to output the data from that Collection.

<c:forEach items="${dataCollection}" var="record">
  <tr>
     <td><c:out value="${record.val}"/></td>
  </tr>
</c:forEach>

And indeed use an ArrayList instead of a Vector (or a HashSet if ordering isn't important, it's even faster).
ArrayList (I have personally tested this) is something like 10 times faster than Vector for most purposes.

jwenting 1,905 duckman Team Colleague

Did you add an import statement to the JSP declaration?

jwenting 1,905 duckman Team Colleague

Don't use scriptlets, put that code in a servlet.

jwenting 1,905 duckman Team Colleague

well, geez i'm a newbee but sadly i've to know is there's any guide book regardles to game programm in java? especially in J2ME?

Yes, there are several books on game programming in Java. Wouldn't know about JME, but there almost certainly are as games are one of the main uses of modile phone applications :)

Try "Developing Games in Java" by David Brackeen, ISBN 1592730051

But as a beginning (Java) programmer you should first learn the language before diving into more complex things like graphics and game code.

jwenting 1,905 duckman Team Colleague

anything can be decompiled, you can at most make it harder for the casual pirate...
The determined pirate will only become more determined and will probably have tools to counter the effects of most "code protection" tools.

jwenting 1,905 duckman Team Colleague

except of course an array would be useless since you wouldn't know the size of the array behorehand.
You'll have to use some ordered Collection to store your results.

jwenting 1,905 duckman Team Colleague

which you use depends on how many buttons you have and how reusable you want your code to be :)
Personally I prefer a distinct method per control and a distinct ActionListener per control.
Makes it a lot easier to share them between controls that do the same thing (say you have a menu option, a context menu entry, a hotkey, and a toolbar option that all do the same thing).

jwenting 1,905 duckman Team Colleague

you actually understood that highly cryptic message?

jwenting 1,905 duckman Team Colleague

;)

But seriously...
This thread had much more meaning in it until he had to throw in his negative attitude. It's just sad.
I mean, sure, he's got some good points... but not everything in life is a debate.

Yours is the more negative attitude. You want to ban things you don't like, restrict the rights of people and control their lifes, put them at the mercy of whomever wants to harm them.

Because that's what banning posession of the means with which citizens can protect themselves inevitably leads to.

One of the first things a tyrany does is take away peoples' rights to their own lifes and property.
That's what the 2nd is meant to make impossible, the government taking away the means of the People to protect themselves from the government should that become necessary.

christina>you commented: . -1
jwenting 1,905 duckman Team Colleague

Christina, guns were already illegal at that university.
In fact the spokesman responded to the signing of the bill that bans guns from schools last year that it will make universities a lot safer for everyone.

A bill that would have given college students and employees the right to carry handguns on campus died with nary a shot being fired in the General Assembly.

House Bill 1572 didn’t get through the House Committee on Militia, Police and Public Safety. It died Monday in the subcommittee stage, the first of several hurdles bills must overcome before becoming laws.

The bill was proposed by Del. Todd Gilbert, R-Shenandoah County, on behalf of the Virginia Citizens Defense League. Gilbert was unavailable Monday and spokesman Gary Frink would not comment on the bill’s defeat other than to say the issue was dead for this General Assembly session.

Virginia Tech spokesman Larry Hincker was happy to hear the bill was defeated. “I’m sure the university community is appreciative of the General Assembly’s actions because this will help parents, students, faculty and visitors feel safe on our campus.”

from: http://www.roanoke.com/news/roanoke/wb/wb/xp-50658

Had even one of the people near that killer had a gun things would have gone quite differently...

People who want to harm others will always find a way.
Guns have been outlawed here since before WW2, yet there are dozens of guncrimes each year in a country smaller than Rhode Island.
Same all over Europe. Guns are easy …

jwenting 1,905 duckman Team Colleague

in fact Bush is far smarter than people give him credit for...
He is smart enough to know he needs good people to work with and smart enough to appoint them.
That's a lot smarter than most politicians...

I just worry about the backlash that'll follow and how their successors will clean up the mess.

Obama or Clinton will give you a mess that's bigger than you ever imagined could exist.
But it won't ever be reported as such as they'll make darn sure there won't be free speech (and with the media their lapdogs even that won't get out until you discover after 8 years that it's past time for elections).