Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You need to keep a vector of vectors for this. The main vector to hold a vector for each team. The team vector would hold the score of each game the team has played. Averaging these by game and team is then just a matter of nesting the inner and outer loops in the correct order.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Problem is it inevitably does affect other people.
Their productivity at work goes down, leading to loss of revenue and/or increased workload for colleagues.
Eventually they end up getting fired and drawing social security, another drain on society (this time through them using up tax revenue).
Social security won't cover the cost of their addiction so they resort to crime. This directly affects their victims who end up traumatised or dead, and indirectly affects all of society through the depletion of police and justice resources and increase in their funding (out of tax revenue) needed which leads to tax increases or reduced government services elsewhere.
They end up in hospital uninsured or underinsured, again at the expense of others (taxpayers or people who do pay their insurance premiums).
In the end they may end up in a police morgue, again taking up time and resources of the police and justice system.

This is a much more reasoned and real danger of drug use by irresponsible people.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

damn.. nice job ezzaral.. You basically explained why he is an idiot as opposed to me, who just summed all that up.. but we both came to the same conclusion..

Well, no, I pointed out a lot of problems with his generalizations which I believe stem from limited experience and subjective observation. That doesn't necessarily make someone an idiot.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

If you look as far as page 2 of the forum, this is answered in two different threads. Please take some time to find answers on your own before you ask others to hand them to you.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You may have not set the environment variable correctly. Check the manual pages for your OS
javac(1) - Manual page [ Solaris™ Operating System | Microsoft Windows ].

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster
if( m.group(2).equalsIgnoreCase("NN"))
 {
      list = m.group(1);
      Set<String> s = new HashSet<String>();    
      if(!s.add(list))
      System.out.println("Dups" +list);       
         return list;
 }

list is a variable tat contains list of strings.
I want to check duplicates in that variable.
but here its not printing any..
Can anyone figure or suggs pls.

"list" looks to be a single string here. Not sure why you call it a list. Also, you are creating a new Set before you add "list" to it. It's not going to contain dupes if you only added one thing to it. Not sure why are you returning from the method in the middle of your if statement either.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

There are several effects of drugs (including marijuana) that affect others who want nothing to do with drugs:

1. I have known people before and after they used drugs (primarily pot), and the drugs changed them permanently. I noticed most of the following changes in each of them:
- A lack of logical thinking.

I know many professional engineers, software developers, and mathmaticians who have smoked pot. Do you believe these lack logical thinking? I don't think your observation has merit as empirical.

- A craving to pursue unlucrative liberal arts or music, instead of high paying jobs.
- A belief that they should be paid for the art or music they make, regardless of whether or not there is a demand for it.

You believe any tendency towards art or music is entirely unlucrative (sic)? The Rolling Stones may disagree with you. The second statement is entirely baseless.

- A shift to the left in political beliefs.

Ah, so here again your fear of anything vaguely nearing your definition of "liberal" comes into play. I can assure you there are plenty of republicans who have smoked a little still running around.

- A tendency to believe the wacky schemes politicians propose just to get votes could really work.

What? Smoking dope makes people believe politicians?? I think a lot of people who lived through the 60s and 70s might disagree with that.

- A drive to get more drugs, often so strong that they could harm someone.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You just need to read the jdbc documentation and the Oracle documentation on saving blobs.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

array[16][1][3] is of no practical use. Why nest the third level under a second level that only contains a single item? You are just making more work for yourself and creating potential problems by doing that.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Before you start going on about cancer patients and similar circumstances where it is used let me just remind you that in these cases it is used as a relief for the pain and not as an actual cure.

Actually, in cancer patients, the primary use is to reduce nausea and loss of appetite associated with chemotherapy. It does have other beneficial effects beyond those two as well. Though not some magical panacea for all ailments, it's medical benefits are well beyond "just an excuse to get high".
http://en.wikipedia.org/wiki/Medical_marijuana#Indications

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Hi!
Did you get your answer already to this faultString: The value of the 'http://www.w3.org/2001/XMLSchema-instance:type' attribute must be namespace-qualified.

exception????

Please let me know,

Attila

Nope, not yet. Did you? That seems more relevant.

Have you tried a Google search on XML schema namespace in the 11 days since you first posted?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

hello i am sharmila
i have small doubt about php and mysql.please anybody reply me.

Step 1: Ask in the PHP forum.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

..in other words, i heard that the two languages are similar and are different in other respects(such as speed and efficiency). What i was reffering to was are the commands the same, headers, mathematical calculations...ect....I didn't need you to convert the entire program...i'm not studying java.

You heard correctly - similar. Similar != same.
Some key words are the same. Java doesn't have headers. Many math calculations are the same, though Java does not allow for operator overlading.

If you expect to convert the code from Java to C++, you are obviously going to need to study a little bit of Java. That would require some homework on your part... though it seems like it would be easier to just do your own C++ homework instead of trying to convert someone else's Java homework into C++ :P

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Well, matching braces or no, unless the while loop statement is moved from the end of the comment on the boolean "stop", you won't even have a loop. Statements in comments don't execute so well :P

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You forgot one: Crack Addict
They wouldn't win the poll though.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Heh! That was great.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Fanciers? Isn't that illegal?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Meh, so does the average congressman.
The cow is still more useful.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Bumping. Many posters need to read this.

And this: Code Conventions for the Java(TM) Programming Language: Contents

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

And now twice over! Ezzaral what are you trying to do to me???!?!!?!


;)

Sorry, it won't happen again...

:P

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

hehe I'm gonna live a horrible, cursed life.

yay me!

Cursed isn't so bad as they make it out to be :)

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

More link spam today Kukushkin?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Liberty...measles? I'd think they would have wanted to leave that one to Germany...

No one wanted anything German to have infected their children. Having them infected with rabid nationalism is far better! :)

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Hmm, maybe a Google search for "a driver" will help. :P

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Have you already read the JScrollPane API document and the tutorial on how to use scroll panes, which is featured prominently at the top of that API doc?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Given that it's Lardmeister saying it, and his responses elsewhere in this forum, I'm assuming he was mixing them with 'Liberty Cabbage' (aka sauerkraut).

Heh, I never heard about the "liberty cabbage" thing.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

cool dude dont get simply moved away.And u dont have anything to say about someone's attitude.If u then ur mind will definetly points about ur attitude wen give such responses.Just try to deal the things softly.Iam sorry if I hut u

This is not even decipherable.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

The API is a little bit vague on that, but since normally one makes a request for content or executes some read or write operation against the connection, the details of how scripts get executed probably isn't germaine to the general description of the API.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

while they're constantly degrading others and taking away their freedom.

Well, this tactic seems to rather be favored by the right in recent years. Demagoguery isn't exactly a boon to freedom. "Moderate" and "centrist" seem to be the groups most out of favor these days.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Yep, sounds like an issue between you and Excelsior. Good luck.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Does that mean we can call them "French Fries" again? I never liked the name "Liberty Fries" anyway!

I think they were "Freedom Fries" :P That was one of the dumbest things I had seen in a long while, which is saying a lot for a bunch that routinely does dumb things.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I would imagine the php script is not being executed by simply opening the connection. openConnection() by itself may not generate a request on the script. The getContentType() is making a data request from the connection and that is what probably triggers the execution. getContent() would probably do the same.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You would just need to make an HTTP request to the server with the appropriate GET or POST commands.

Here's an example for making a post request:
http://www.exampledepot.com/egs/java.net/Post.html

A GET request would be even easier since the data is actually in the url string.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Why not just use Applet->database? I think you may have to sign the applet, but you can use JDBC within an applet.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Sure, that's great.. unless you are the eagle and don't wish to exist in a surveillance society :P

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You people are getting confused between newline and carriage returns. A carriage return is just a carriage return and is always '\r'.

It's the 'newline' character which is different on different systems. (\r, \n, \r\n)

Yes, agreed. I just figured he was asking in a more general sense about line breaking characters.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

read yesterday that the leftists are now blaming Bush for the Kennedy assassination.
Never mind that he was just a rookie ANG pilot at the time.

Haha! Which leftists were those?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

PS: Hopefully I will get the code soon!

Hopefully you will use Google soon then, instead of pestering people here to give you code.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

So if i create the .jar file can it used without installing the jdk/jre on any other machine..
Pls suggest will the jar file be used without jdk/jre on any other machine.

No, jars cannot run without a JVM. You can use an installer to faciliate the installation of Java as part of installing your app if you wish. A good free (open source) one is IzPack http://izpack.org/start

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Maybe it was the Illuminati!

Nah... http://en.wikipedia.org/wiki/Skull_and_Bones

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I went to www.pyromaniacs.com and did a search on how to start a fire.
But the search came back with "sorry, no matches", so I left :(

:icon_lol:

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

i want to create same invirement on client machine and my client dont have java installed,
i dont want to say my client to installed java.i want to send java wih my application and when my client install my application neccessary files should be install at that time.
what should i do for that

help

IzPack has a launcher available that will facilitate installation of Java if the client does not have it installed. See the link I posted above to the IzPack web site. We use it for our installation here and it works very well.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Yes, System.getProperty("line.separator") can be used for the system you are running on, but if you are reading files from external sources the linefeeds may differ from your own.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Linux Air
Disgruntled employees of all the other OS airlines decide to start their own airline. They build the planes, ticket counters, and pave the runways themselves. They charge a small fee to cover the cost of printing the ticket, but you can also download and print the ticket yourself. When you board the plane, you are given a seat, four bolts, a wrench and a copy of the seat-HOWTO.html. Once settled, the fully adjustable seat is very comfortable, the plane leaves and arrives on time without a single problem, the in-flight meal is wonderful. You try to tell customers of the other airlines about the great trip, but all they can say is, "You had to do what with the seat?"

You forgot the part where they also had to emerge the window and get it to work correctly with their version of the seat they installed if they wanted a view while flying. Not all landscapes outside the plane will be compatible with the view, but the most popular portions of the flight will probably look okay. The other parts aren't worth seeing anyway and are just fluff for those who have no imagination themselves.

Then of course, if they needed to use the restroom, that needed to be configured as well. Once inside, the bathroom may not look like any bathroom you have ever seen before in your life, but luckily there is a manual for it and after tweaking the toilet configuration files for …

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

There are apps that will do that, but why do you feel that you need to? You give up portability and tie your program to a single native compiler, which may be slower than newer JIT compilers. If you think you need an exe, know specifically why your app absolutely needs to be an exe.
http://www.yoda.arachsys.com/java/javaexe.html

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Just like you would identify any other character in a string: look for "\r\n" or "\n" (system dependent).

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

hi cany anyone help me how to upload and download an audio file using jsp

Perhaps you should be posting all of these questions over in the JSP forum instead of the Java forum.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

If you need a "wizard-like" installer for the application, check out IzPack: http://izpack.org/start

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

There is no need to create an .exe. If your jar has specified the Main-Class property in the manifest.mf file, it can be executed on it's own. The other jars and dll libraries can be simply packaged in a /lib folder and the whole app bundled as a zip or tar file.