jwenting 1,905 duckman Team Colleague

That's eBay, people are always paying silly prices there.
Remember that many people are addicted to shopping and they get a sense of achievement from "winning" an auction.
They often don't know the retail price of what they're buying, sometimes don't even know what they're buying, and/or get swept away in the competition to "win" and loose track of the value of what they're bidding on.
Auction houses survive because of that, if people were always sensible in their bids most auctions wouldn't sell anything because the buyers would deal directly with the sellers rather than compete with each other.

jwenting 1,905 duckman Team Colleague

there is an investigation under way to determine who (if anyone) is responsible for the accident.
If anything the insurance companies will want someone to sue (yes, the UK is becoming ever more like the US).

To me though it looks like just a regrettable accident such as they are bound to happen when you're dealing with experimental and powerful machines.
The people using those machines know the risks and accept them, Hammond certainly is no different. He knew that an accident could kill him, he accepted that.
At those speeds a tiny fabrication flaw in a tyre that's too small to detect during QA can cause a blowout and a crash will inevitably result for example.

If people never had taken risks we'd still be living in the trees cowering from the predators roaming below.
In fact we're fast reverting to that state, just look at the space program.
We are now incapable of reaching the moon for heaven's sake, not because we don't know how to but because we're too scared to risk the journey as someone might get hurt in the process.

jwenting 1,905 duckman Team Colleague

Seriously, that's stupid that he was allowed in a car faster than an F1 car and those drivers need a special licence!

they don't need a special license at all. In fact there have been race drivers (at least in F3 and I think Nascar, not AFAIK in F1) who didn't have a driver's license.
All you need is an endorsement from a team (else you won't have a car) and a FIA race license (which is mostly about knowing the rules).

And driving a car like the one Hammond was in is easier than an F1 car. Not much need for steering, braking, etc.
It's flat out straight ahead until you hit a predetermined point at which time you hit the brakes to get it to stop before the end of the track. No corners, no other traffic, no pitstops or traffic rules.
Of course it takes some training to keep it straight, and he without doubt had that.
But suffering catastrophic mechanical problems can't be fully trained for, and at 300mph+ even a tiny unballance can be catastrophic.

Anyway, he was driving on private property. On private property the only one who says what goes and what doesn't is the owner.
I'll oppose ANY plan by the government to tell me what I can do in my own home (or my own garden, racetrack, or as in this case airfield), as that's the establishment of a total police state.

jwenting 1,905 duckman Team Colleague

And when it comes to Java a variable is NEVER an object.
A variable (either a static or instance data member, technically) is always either a primitive or a reference to an object on the heap, never that object itself.

jwenting 1,905 duckman Team Colleague

pretty good guys... and who said that geeks were only good at computers??

I never did... In fact the previous company I worked for had a photography club for a while, and a yearly chess competition.

I use my cameras to get away from computers for a while, got into digitals purely because the cost involved of getting film processed was getting out of hand (at $12 per roll and 100 rolls a year for processing alone).

jwenting 1,905 duckman Team Colleague

Collected work from the last 25 years.

http://www.usefilm.com/MyPortfolio.asp?id=454

jwenting 1,905 duckman Team Colleague

Correct Davey, Opera's had it for years and I saw something like what you describe I think back in 1997 for the first time (a wrapper around the IE engine).
And even that might not have been new. After all, old Unix browsers were based around Emacs and VI both of which allow multiple simultaneously loaded documents...

jwenting 1,905 duckman Team Colleague

I don't generally like remakes...

http://www.imdb.com/title/tt0083943/ is the original.

jwenting 1,905 duckman Team Colleague

Even Microsoft themselves tell you to remove the MS JVM and install the Sun one ;)
It's only about 8 years out of date.

jwenting 1,905 duckman Team Colleague

it's been 9 months now since he posted that question.
He'll either be done or have given up by now...

jwenting 1,905 duckman Team Colleague

you should start by not hijacking other peoples' threads.
Next you should continue by posting in the correct forum.

lol_hacker101 commented: Just trying to get some info ... +0
jwenting 1,905 duckman Team Colleague

Java's got only one pointer you need to worry about, and that's the null pointer :)

Don't get trapped in learning a tool instead of learning the language (so don't start with heavyweight IDEs and stuff).
Don't get trapped into learning some external libraries before you know the language (we don't want kids who never programmed Java before asking questions about EJB, Servlet, Hibernate, Spring, Struts, etc. etc.).
Don't get sidetracked into thinking Java is just like C++ because of the similarities in syntax, it's not.

jwenting 1,905 duckman Team Colleague

What are you on SBS rocks it has all kinds of things like, nudity and south park and aboriginals telling about the stolen generation for like the 6000th time.

We call is SBS Sex over here (they call themselves SBS Six :mrgreen: ).

jwenting 1,905 duckman Team Colleague

see the API docs.

jwenting 1,905 duckman Team Colleague

Why can we select only one option here? :)

anyone else heard the rumors that the beeb wants to axe top gear?

anti-car fanatics have been trying for years to get Top Gear axed, claiming everything from "it's bad for the environment" to "it glorifies bad driving".

It remains one of the most successful programs the Beeb has, and one that actually sells well abroad.

jwenting 1,905 duckman Team Colleague

Create something to hold a version number and something that can report that version number to something else that asks for that version number and can then determine if it is in the expected range of version numbers for what it wants to do or not.

jwenting 1,905 duckman Team Colleague

Google refuses to be connected with Yahoo I guess ;)

jwenting 1,905 duckman Team Colleague

The output is unpredictable.
Depending on the exact order in which the threads run you will get a different result.

This is caused by your threads each holding on to their own local sum variable and overwriting the global one.

A correct version of the program would be like this:

class TestThread extends Thread  {
   public void run() {
      for (int i = 1; i <= SampleRace.N1; i++)  {
           SampleRace.calcsum();
      }
   }
}

public class SampleRace {
   public static final int N1 = 1000;
   public static final int N2 = 10000;
   public static int sum = 0;

   public synchronized static void calcsum()  {
      for (int i = 0; i < N2; i++)
          sum++;
      System.out.println(sum);
   }

   public static void main(String[] args) throws InterruptedException  {
      TestThread t1 = new TestThread();
      t1.start();

      TestThread t2 = new TestThread();
      t2.start();

      t1.join();
      t2.join();

      System.out.println("Expected sum: " + 2 * N1 * N2);
      System.out.println("Actual sum:   " + sum);
   }
}

Also cleaned up and corrected your formatting to conform to the official language standard.

jwenting 1,905 duckman Team Colleague

You might want to start with some basic Java tutorials first.
Then learn something about JDBC, ORM frameworks, XML and how to generate it and parse it, and maybe then start thinking about combining all that knowledge.

Noone's going to do it all for you. Not only is that not the way it's done (you should do your own work) but also the topic is WAY too broad and your questions way too vague.

jwenting 1,905 duckman Team Colleague

That's a very old article, well and truely overtaken by events.

Those requirements are extremely vague and silly btw, impossible for me to see what you're saying you need to do and I severely doubt you understand it yourself.
It makes no sense at all.

jwenting 1,905 duckman Team Colleague

and why are you trying to install a several year old beta?

jwenting 1,905 duckman Team Colleague

how are you calling the thing?
You're doing something wrong, which is typical of people stepping outside the world of IDEs for the first time.

jwenting 1,905 duckman Team Colleague

why so hard? There's a method that will let you reverse a string using a single method call ;)

Not going to tell you where to find it, it should be easy if you have the API docs at hand.

jwenting 1,905 duckman Team Colleague

few years old yet getting ever more relevant. Sadly most people won't notice what's happening until it's too late, and those that do notice are too few and in no position to do much of anything about it except save up for a small house somewhere in the middle of nowhere that's not connected to anything where they can hopefully drop out of the Matrix (because that's what it is, total control).

jwenting 1,905 duckman Team Colleague

It's not at all clear what you think you're doing there.
You're never outputting any "shapes" so it's not surprising they're not shown. In fact you can't output them because you don't have any place to output them to (and if you had you'd need a quite different input mechanism than the console).

jwenting 1,905 duckman Team Colleague

far simpler than that, you're not going to treat them as numbers at all.
String.indexOf() is your friend here.

jwenting 1,905 duckman Team Colleague

probably caused a cache somewhere to clear, that's often all there is to it with weird things like that.

jwenting 1,905 duckman Team Colleague

Eh, wizards suck because they make the program use too linear. I just think programmers shouldn't be afraid to leave out features that aren't useful, rather than take the 'dumb' approach and add everything.

please tell that to the language design team responsible for creating the featurelist for the next Java version...

jwenting 1,905 duckman Team Colleague

Anything more mentally challenging than Eastenders is way above the intellect of not just the TV audience but the producers and hosts employed by European TV stations.

jwenting 1,905 duckman Team Colleague

do your own homework kid.

jwenting 1,905 duckman Team Colleague

an attempt to pinpoint the simplest and most usefull applications for people who for the most part don't necessarily need a desktop computer.

In other words the greatest common denominator of all the dumbed down features of every wizzard.
Proves my point :)

jwenting 1,905 duckman Team Colleague

5.0 has autoboxing.

P.S I h8 it when kids use h@x0r 5pe@k.

jwenting 1,905 duckman Team Colleague

web 2.0 is just hype with no content.

I hate all those 'integrated solutions' anyway, they combine the worst elements of everything into a seemless useless whole that's good for nothing.

And I will NEVER give my business secrets to any website by using some sort of web based business application (and I think the company I work for made a major mistake when they decided to do just that for all their financial and marketing data).

jwenting 1,905 duckman Team Colleague

works fine (except for the error you made in the calculation routine). Question is, do you know how to use the program you wrote?
How do you expect it to work?

jwenting 1,905 duckman Team Colleague

If you're using 3rd party libraries (which seems to be the case here) there's nothing wrong with storing those in binary form as that's the only form you have.

jwenting 1,905 duckman Team Colleague

people who deliberately (which means in large quantity, and despite being told not to) continue to use SMS speak should be banned.

jwenting 1,905 duckman Team Colleague

when parsing html browsers will remove leading and trailing whitespace. That's part of the required behaviour for them.

jwenting 1,905 duckman Team Colleague

yup, run your own servers. Easiest when learning as you can try different configurations and servers without having to bother with uploading things, remote logins, etc. etc.

Tomcat is nice, but I'd use Firebird instead of mySQL for the database. Smaller, easier to install and use, and more friendly on your RAM and CPU.
That and it's got a far stricter SQL implementation, making it better for learning databases.

jwenting 1,905 duckman Team Colleague

Those books will help you set things up and decide what to put in CVS and what not :)

hooknc is right in stating that build artifacts typically have no place in your VCS (certainly not in the project that creates them) and that you should slice up your system in logically independent parts and handle those as separate (sub)projects.

jwenting 1,905 duckman Team Colleague

maybe in 6 months I'll have a few minutes to think about your problem. Come back by then and ask nicely (so no bold, capitals, exclamation marks, telling it's URGENT ASAP IMMEDIATELY!!!!!, etc. etc.).

jwenting 1,905 duckman Team Colleague

not another homework assignment...

Why can't you kids ever do your own homework? Are you really that lazy or are you just incredibly stupid?

jwenting 1,905 duckman Team Colleague

Yes, Ifni just caught up with him.
Given his skill and experience I'd not call it stupidity. At most he might have gotten overconfident in his ability to predict what wild animals will do, and thus a bit short on caution.

jwenting 1,905 duckman Team Colleague

http://www.pragmaticprogrammer.com/

Get their CVS book, their project automation book, their unittesting book, and maybe others that sound interesting.
Great reads, great information in a package you can actually use.

jwenting 1,905 duckman Team Colleague

I guess though that that's how he'd have wanted to go. Not confined to a bed by illness or old age but out in the wild working with animals.

jwenting 1,905 duckman Team Colleague

this is Java, not C.
A String isn't a char so you can't cast one to the other.

jwenting 1,905 duckman Team Colleague

Check your classpath settings. Most likely you don't have the current directory ('.') in your classpath.
Or if not that, you have a typo somewhere in your classname (remember Java is case sensitive) or you're in the wrong directory (and the directory your classes root in is not in the classpath).

jwenting 1,905 duckman Team Colleague

That page is displayed from the browsercache, there's very little you can do about it.

There are some hacks that disable backbuttons and stuff but those are easily circumvented (and will just piss off your users).
Another option is to set some headers that cause the page to expire immediately (which should but doesn't always prevent caching).

Rest assured, if your users try to do anything with that page they should (if you coded your webapp correctly) get an error.

jwenting 1,905 duckman Team Colleague

Pianting the piece using the paint() method is not going to work.Because when we pass the objects through the web service no way to trace the image.

And that's where you go wrong.
1) you could actually send the image data (but don't).
2) you should not send the image data, instead only sending moves (and maybe board positions) and take the image from the local machine you're running on (from a jarfile, cached when first needed, is a good way).

jwenting 1,905 duckman Team Colleague

hint: which flag are you setting and which flag are you checking?

jwenting 1,905 duckman Team Colleague

Use Axis instead. Apache SOAP is way too old and no longer maintained.

I don't see any SOAP related classes in there either, so I must assume (also because of the unrelated exception) that you did in fact NOT add the required jars to the web application classpath at all.