jwenting 1,905 duckman Team Colleague

good luck writing that demo program. If you wrote that class, I'm sure you can do it.

jwenting 1,905 duckman Team Colleague

as they say: there is no doubt, only do.

And what you should do is learn to crawl before you can walk, learn to walk before you can run.

Learn the basics of the language, and you'll understand James' explanation of where you went wrong.

jwenting 1,905 duckman Team Colleague

never liked Python. Java and LSL though... And I've always had a soft spot for Pascal.

jwenting 1,905 duckman Team Colleague

power consumption, and space. Those fast drives need more "stuff" to keep them stable, and use more electricity.
And of course laptops are traditionally not intended for the uses that require the highest performance. Running Excel, Powerpoint, and Word isn't going to be needing a 10.000rpm drive to keep up with the user...

And cost. It's one thing where laptop makers can shave a bit off of the higher cost of creating small things.

jwenting 1,905 duckman Team Colleague

contrary to popular belief, most popular beliefs are wrong.

Reverend Jim commented: Nice recursion. +0
jwenting 1,905 duckman Team Colleague

not really. Sadly the reality behind those stories is often so ludicrous that people think it's a joke when it isn't...

jwenting 1,905 duckman Team Colleague

you can't. JSP runs on the server, you'd end up using the webcam (if there is one, there shouldn't be) on the server.
Which is of course not what you want...

You're going to have to use some sort of client side technology instead. Flash, Java applets, html5, Silverlight, etc..

jwenting 1,905 duckman Team Colleague

I'm sure they'll soon come up with a politically correct alternative for him...

jwenting 1,905 duckman Team Colleague

why go that way anyway... There's perfectly servicable libraries to show PDF documents in Swing (and I guess JavaFX) applications, as well as standard browser plugins to show them in web applications.

jwenting 1,905 duckman Team Colleague

hmm, I'd always return List<Y> where X implements Y :)

jwenting 1,905 duckman Team Colleague

Mac? In general overpriced compared to similarly spec'd machines from other brands.
But sweet machines if you can get them at a discount (which are rare, Apple tightly controls its prices).

jwenting 1,905 duckman Team Colleague

sounds perfectly logical... If anyone has a need to split up the entire globe into managable sections it's Santa after all.

jwenting 1,905 duckman Team Colleague

to summarise: program to the interface, not the implementation.
It's one of the basic tenets of good programming practice.

jwenting 1,905 duckman Team Colleague

no, it's not. Oracle has roughly a 2 week cycle of updates, and most of them are so minor they hardly matter.
E.g. here's the release notes for the latest release: http://www.oracle.com/technetwork/java/javase/2col/7u55-bugfixes-2180733.html

17 issues, 3 of them Mac only, 1 specific to Windows 8.1, 2 seems specific to certain Unix variants, one specific to Win32, and most of the others seem rather minor cosmetic issues that most users will never encounter.

And that's just about normal.

jwenting 1,905 duckman Team Colleague

well, take a look at the API docs for SOAPMessage and you'll soon find that it's a method to get the SOAPBody which is an Element which you can traverse to get the Nodes you want. It's iow just a standard XML Document Element.

jwenting 1,905 duckman Team Colleague

or his buddy who has the same assignment and just took a week longer to realise homework doesn't do itself if you just let it sit on your table long enough.

jwenting 1,905 duckman Team Colleague

of course a lot depends on whether you know Java or not... The book assumes you do, a lot of punters try to get through the exam who don't, and just want some cram sheet and "the dumps", which this book will not provide you with.

jwenting 1,905 duckman Team Colleague

looks like he got his arse kicked on another site for dumping his homework assignment so he's now trying here...

jwenting 1,905 duckman Team Colleague

I pity your customers...

blackmiau commented: agree +2
jwenting 1,905 duckman Team Colleague

wanna bet that "but my prof hasn't told about those yet"?

mc3330418 commented: yea, you're right. "my professor". this is for school sonny..... +0
jwenting 1,905 duckman Team Colleague

well, his teacher no doubt told him to "use threads to make a hotel application" :)

jwenting 1,905 duckman Team Colleague

missing imports... Which should have been obvious from the errors you're getting.

jwenting 1,905 duckman Team Colleague

call it 4 times?
Seems rather obvious, once you think of it.

jwenting 1,905 duckman Team Colleague

that assignment tells you literally what to do, it almost types it out for you.
If you still can't do it, it means you've not paid any attention in class.

jwenting 1,905 duckman Team Colleague

guess he wants to steal (oops, "borrow") an account and wants us to be his partners in crime.

jwenting 1,905 duckman Team Colleague

no, we're not going to tell you how to cheat on your assignment by turning in something created by other people as your own.

jwenting 1,905 duckman Team Colleague

not a place I want to be associated with...

jwenting 1,905 duckman Team Colleague

given a website, make a temporal distribution of homework questions over a period of one month.

diafol commented: heh heh +0
Reverend Jim commented: LOL +0
ddanbe commented: Make it 2 weeks :) +0
jwenting 1,905 duckman Team Colleague

if 2 values have the same count, report both...

jwenting 1,905 duckman Team Colleague

and after we came up with your "research proposal" the next step is you asking us to write the actual paper and associated software as well?

jwenting 1,905 duckman Team Colleague

well, he's getting a ClassCastException on the first attempt ;)

jwenting 1,905 duckman Team Colleague

"it doesn't do anything" doesn't mean anything.
What "doesn't do anything"?
Most likely you've made a mistake and the server never gets called, which would place the realm of this question well outside the scope of this forum.

jwenting 1,905 duckman Team Colleague

isn't it interesting how he thinks vb6 isn't bloated, when it depends on a massive runtime library as well as the entire win32 API to do anything at all?

Yet he considers anything else bloated that also depends on runtime libraries...

jwenting 1,905 duckman Team Colleague

That won't even compile.
And no, I won't rewrite that for you. I won't use lambdas, they're ugly, hard to read, an abomination.

jwenting 1,905 duckman Team Colleague

yes, beating your computer is counter productive. Whipping however...

jwenting 1,905 duckman Team Colleague

wrong language is irrelevant (translating between languages often isn't that hard), what is relevant is that it doesn't even attempt to solve the problem in whatever language.

jwenting 1,905 duckman Team Colleague

even if you didn't read the rules, you should have known that it's your homework, and that you're supposed to do your own homework.
It's just common sense.

jwenting 1,905 duckman Team Colleague

it's also utterly irrelevant as the very problem with the original code is that it's not safe against various input formats, which he doesn't cover.

jwenting 1,905 duckman Team Colleague

with your attitude, which seems to be to have others do all your work for you, you'll never get a decent job.
Though you might be well suits for politics.

jwenting 1,905 duckman Team Colleague

.NET isn't bloated, get used to it.

If you want something that's going to be around in 20 years, go with PL/1 or Cobol. C too has a good chance of surviving that long.

jwenting 1,905 duckman Team Colleague

worse, if the date is entered into a format the database doesn't expect things are going to go wrong.
Start learning about PreparedStatement...

jwenting 1,905 duckman Team Colleague

they still make 32 bit laptops? I seriously, seriously, doubt that.
64 bit has been the standard in hardware for close to a decade, in software for 6-7 years.

jwenting 1,905 duckman Team Colleague

Last weekend someone in Second Life asked me if I was real. I replied that I was either real or a computer so well programmed it believes it's real.
The person asking the question decided based on that I must not be real...

if a AI(artifical intelligence) can harm us humans if it become to advanced

That would depend on how it is programmed and what it's programmed to do, obviously.
The control software in a guided missile can certainly harm humans, but it's not programmed with that intent. It's programmed to destroy its target, not caring or knowing what the target is except for the signature it perceives through its sensors.
Another program might be created to determine that some signature indicates entitities that should not be harmed, even entities that should be protected from harm. And then that program would have the rudiments of Asimov's 3 laws. You can see the beginnings of that in the safeguards built into many industrial robots, which tend to be programmed to shut down when the infra red signatures of human beings (but it doesn't know that's humans of course) enter within operating range of its robotic arms in order to prevent industrial accidents.

jwenting 1,905 duckman Team Colleague

which bank is that? Just want to make sure I never open an account there.

jwenting 1,905 duckman Team Colleague

of course your entire system doesn't have to be the same physical size as the part that does the interaction.

Given high enough bandwidth and transmission and processing speed, the interactive part can be the size of a bee and thousands of miles away from the computers that handle the actual processing and control, and those could be the size of houses.

As to how AI works, that's such a broad topic there are libraries full of books written about it, entire university courses discussing just the basics.
And it's at some levels more a philosophical than a technical topic. What is intelligence anyway, how can a machine achieve it and is it still a machine if it does, what level of autonomous action would the machine need to achieve to be considered intelligent.
Technically, many systems are intelligent to a degree, and often in very narrow bands.
A payroll system that based on its inputs decides what to pay out to whom has some level of intelligence.
A flight control computer that based on its inputs decides what to do to keep an aircraft level and on course has a level of intelligence.
The industrial robot that can detect disruptions in the flow of parts it depends on and knows to raise an alarm is intelligent to a degree.
The NPC in a videogame that calculates how to approach the player avatar displays a degree of intelligence.
All are different examples of …

jwenting 1,905 duckman Team Colleague

I'm not sure you can do this. If you had done your homework and paid attention in class you'd not have posted your homework here after all but just done it.

jwenting 1,905 duckman Team Colleague

got to wonder what's missing from all the miriad blackjack playing programs already out there...

jwenting 1,905 duckman Team Colleague

nope, that's your job.

jwenting 1,905 duckman Team Colleague

sadly those crooks get a lot of support from 'celebs', and many people are foolish enough to take anything their group of favourite 'celebs' claims as gospel.

Reverend Jim commented: And some "celebs" will take money to endorse anything. +0
jwenting 1,905 duckman Team Colleague

and a diploma from any school that doesn't expel people who cheat like that isn't worth the paper it's printed on.