jwenting 1,905 duckman Team Colleague

Try different hashes until you find one that works...
Only way really.

jwenting 1,905 duckman Team Colleague

Rule number 1 - don't let anyone do your thinking for you.

including people who state rule number 1...
That's the paradox, isn't it :)
It's true though.

Trust, but verify.
If it sounds too good to be true it probably is.
Carpe Diem
Live like there is no tomorrow, because there may not be.

Never trust lawyers, politicians, and priests.

Travel when you can. If you delay it until after you retire you'll find you have neither the money nor the health to do it.

jwenting 1,905 duckman Team Colleague

Email mail = new Email();
mail.send();

jwenting 1,905 duckman Team Colleague

you fail

happygeek commented: :) +13
jwenting 1,905 duckman Team Colleague

you can restrict what laws can be passed and install processes of judicial review to ensure that laws aren't passed that violate human rights.
In the case you mention for example, it should have been impossible to pass a law that takes effect in the past, or pass a law that makes past actions a criminal offense.
People should never be held responsible for violating laws that didn't exist at the time they performed the action that's now illegal.

If the process as you describe in Canada is the norm, nobody could ever do anything as it might at some point in the future become illegal.
Say you're driving 50mph, and 10 years later the law gets changed to make the legal limit 35mph going back 30 years. Should you really get 10 years worth of speeding tickets?

jwenting 1,905 duckman Team Colleague

There are indeed car systems that can do that, most notoriously the "black boxes" that are being installed in some new cars (and that some jurisdictions and insurance companies want to make mandatory).
Interesting tidbit: we had a discussion some 2 years ago about whether Ford (who were at the time planning to have some car computers call Ford with diagnostics information) could be held legally liable for accidents if those accidents were caused by car systems about which they had received information from that diagnostics package...

But even then you'd not be "hacking" the car, you'd organise a man in the middle attack to intercept and possibly corrupt/modify information sent to or from the car.

I worked in GPS tracking of people and vehicles for a while, it's right now purely a one way street.
Equipment sends data to a central server where it's analysed and filtered for display to operators (e.g. the system I worked on by default only showed alarm signals and error status messages (things like low battery warnings), the location data was stored for display on demand but not shown by default as it'd cause way too much clutter on the operators' screens).
There have been plans to have all cars fitted by law with such systems which would communicate with police computers to allow for the fully automated issuing of speeding ticket. So far those plans have not been implemented, in large part because of privacy concerns (by law the police …

jwenting 1,905 duckman Team Colleague

in Oracle you'd do something like
CREATE UNIQUE INDEX "MYSCHEMA"."MYTABLE_PK" ON "MYSCHEMA"."MYTABLE" ("CATEGORIES", "SEQUENCE")

Of course you could never use the name "SEQUENCE" for a column in Oracle as it's a reserved word (as it is in MS SQL Server, I'm kinda surprised it let you create a column with that name...).

jwenting 1,905 duckman Team Colleague

and why is your school assignment (which should give you no problems at all to solve quickly if you'd paid attention in class) more important than the project I'm working on for a major customer that's worth worth over half a million dollars over 4 months?

jwenting 1,905 duckman Team Colleague

Even worse for Kaspersky: unless they claim that there is some way for a "hacker" can actually interface with your car electronics and computer.
Which, given that cars don't typically have active wifi or bluetooth options (carkits for mobile phones excluded) would mean having physical access to the car's systems.
Which is not a topic for a software manufacturer, but depends on the car having proper physical security devices, also known as locks...

Any hacker who can break into my car, open the hood, has the proper connectors to connect to my car's computers, AND manages to power up those systems (which means starting the car itself) so he can interface with them while they're running is welcome to do so.
He'd make more simply stealing the car and selling it somewhere else anyway, which is a far greater risk and the very reason those locks exist in the first place.

jwenting 1,905 duckman Team Colleague

managers don't need a site like that to come up with documents full of such terms. I think they learn to write that way in school.

jwenting 1,905 duckman Team Colleague

it stays in there until either you remove it or the List goes out of scope.
That happens whenever the block of code it was declared in goes out of scope, or the JVM terminates.

If you want to persist your data between application runs, you need to write it out to a file, a database, or whatever.

jwenting 1,905 duckman Team Colleague

first learn a language that's 20 years newer than VB6, THEN start thinking about network programming...

hefaz commented: Nice talking Capacity +0
jwenting 1,905 duckman Team Colleague

still waiting for someone to create that final year project idea generator...
You kids are too lazy to even come up with an idea for your own projects, how can you ever be expected to come up with a working implementation of whatever project people dream up for you?

diafol commented: Agreed. Wastes of good oxygen +15
jwenting 1,905 duckman Team Colleague

Not sure why in the USA medical records always have to contain ones social security number.

no doubt a standard form that's also used for government funded healthcare (medicare, medicaid) which is tracked by SSN.
And of course under Obamacare that gets expanded massively.

It's not quite the same here, everything needs to include your insurance number which is linked to our equivalent of the US SSN by the insurance provider.

jwenting 1,905 duckman Team Colleague

why not simply make a Customer class and store instances of that in your List?

jwenting 1,905 duckman Team Colleague

Woah...thats just strange. Seems like im the only one that didnt know it existed. lol. Thanks guys.

I knew such conditions exist, not that there was a tongue breaking name for it :)

jwenting 1,905 duckman Team Colleague

In light of the recent hacking of the very private information of 4 million federal government workers in the US, I have the feeling that these data were not even encrypted.

or more likely it was an inside job...

jwenting 1,905 duckman Team Colleague

There's definately going to be mis-use here and there. But that doesn't justify the need for so much privacy.

if anything, it does...
There's no good reason for wanting to control and monitor everything that everyone does at any momemt, except the desire to control people, restrict their freedoms.

jwenting 1,905 duckman Team Colleague

spell checkers in IDEs are pretty much useless unless you're creating an application with a user interface that's displayed in American English without specialist words and phrases.
And of course it's not just spelling that can go wrong, but grammar as well. And there you're in even bigger trouble as there are many things that are technically incorrect but so ingrained in the verbiage of professional audiences you are probably targeting your system at that "correcting" them would cause a lot of confusion.

And of course quite often a user interface will have to use shorthand for longer terms, shorthand which may not be known to a generic lexicon and certainly isn't grammatically correct.

jwenting 1,905 duckman Team Colleague

Well, there is a record of all the YouTube videos you ever watched, all the emails you send, all the phone calls you made. Wonder who pays for storage and retrieval?

Not sure where you are, but there are laws here limiting (and in other cases forcing) what can be stored for how long and who has access to that data.
For example phone calls MUST be stored for 5 years for tax and billing purposes (and may not be used for anything else) , but only the numbers involved, duration, and in case of cellphones the cell tower(s) handling the call.
Anything else about them may not be stored unless with a court order (so no phone taps, the data volume would be prohibitive anyway for your telco to store).

Sure web servers record every incoming request, but those logs are usually thrown away automatically after a short period to prevent disks from getting too full of fluff, unless there's an attack on the network in which case they may be kept as evidence in an investigation.

Etc. etc. etc.

jwenting 1,905 duckman Team Colleague

This is a sad thread. I wonder what a person who believes that should be done would say if they, or someone they loved, was on the receiving end of it. I think that would change their viewpoint drastically!

People should have the power to decide over their own time of death if medically possible...
Euthenasia is legal here, with plenty of restrictions.
It requires a signed statement from the patient requesting their life be terminated, medical opinion by a specialist confirming the "unbearable suffering" and that that suffering is not going to end (iow, chronic severe pain for example), a statement from a psychologist that the patient is capable of making the decision, AND agreement from the next of kin.

While sometimes there's coercion, the system is set up to minimise the risk of that (though more can maybe be done).

Since the thread title is Health without being more specific, I thought I'd post this amusing commentary...

A very familiar situation. My father had cocktails of medication like that, with pills to counter the side effects of pills to counter the side effects of other pills to counter the main effect of a pill he needed for one of the side effects.
After several years of that getting worse and worse (and him on like 30 different types of medication for a total of 70 or so pills a day) his medical team decided enough's enough and sat down together for …

jwenting 1,905 duckman Team Colleague

JDeveloper more or less pushes you to use ADF Mobile (or whatever the current name is) which is Oracle's own development platform for mobile devices, which generates executable packages for both iOS and Android from the same source.
Eclipse will get you the raw Android SDK (and possibly not the latest, given that Google made a deal with Jetbrains and switched to distributing a customised version of IntelliJ Community Edition instead as the prefered IDE for Android development a year or so ago).

Different flavours, different target audiences. Try both, read the license terms carefully. ADF Mobile for example might require you to buy something from Oracle if you want to distribute the generated packages (not sure, but do check).

jwenting 1,905 duckman Team Colleague

And above all else: be prepared. Do some research, have some questions to ask. Know what you're talking about, don't try to BS your way out of questions you don't know the answer to.

jwenting 1,905 duckman Team Colleague

From the fragment of the stack trace you post it looks like something goes wrong either opening or parsing the file.
That indicates a problem with the file, most likely it's either corrupt or in a format that the library doesn't understand.

jwenting 1,905 duckman Team Colleague

you need an operating system now to create batter?
And no, linux/unix isn't "best" universally. The user interface for most users sucks for example, making it very bad for most people, especially those who're not expert computer users.

jwenting 1,905 duckman Team Colleague

How about "fresh frozen"? It's either fresh or it isn't.

That's a correct term. It was frozen when fresh...

How every product these days is labeled "deluxe" or "premium", even the crap

"premium" and "deluxe" just means "extra expensive".
"Limited edition" means "feature limited" rather than the "limited availability" it's hinted to mean...

jwenting 1,905 duckman Team Colleague

Well, it's certainly possible to write a program that converts anything to anything else, if you know the data formats and how to map one to the other.
But it's a hell of a lot of work to do yourself. Far better to determine a narrower subset of needed conversions and purchase or otherwise attain from external sources software that can do the conversions for you.

jwenting 1,905 duckman Team Colleague

well worth it. Sadly missed a few but picked up several titles that look rather interesting already.

jwenting 1,905 duckman Team Colleague

If a doctor (or anyone for that matter) kills a person without express consent it is called murder. If it is done with express consent it is called euthanasia. If the doctor provides the method by which the patient terminates his/her own life then that is doctor assisted suicide

That depends on your jurisdiction no doubt. Here both would be considered the same legally.
It doesn't matter whether the doctor gives me a lethal morphine injection or prescribes me a lethal dose of morphine pills for example, both are called euthenasia and dealt with as such during the following investigation (which is a legal requirement in order to investigate whether protocol was followed, the patient was legally able to and did give consent without coercion, etc. etc.).

One of the ways to guard against that is to ensure that those medical professionals who are assisting with the decision do not have a stake in the outcome.

Nice in theory, very hard in practice. Those medical professionals have jobs that depend on them performing those procedures after all.
If they never performed them, they'd lose their jobs. So they have a very big incentive to maintain or even increase the incidence of their services being required, even if their exact paychecks aren't directly influenced by the number of procedures they perform.

It would be somewhat alleviated by requiring the authorisation to perform the lethal procedure be granted by a professional from another hospital or outside …

jwenting 1,905 duckman Team Colleague

Define "very serious". Larger studios will likely have invested in building their own engines over the years or decades and reuse those.
Smaller and younger studios don't have that luxury and typically license an engine built by someone else, either one of those larger studios or a specialist company (think Unity as a popular example).

Those engines typically handle the graphics as well as the physics engine, and sometimes even part of the AI.
Under the hood of course the engine will then defer to the graphics engine of the operating system, using something like DirectX or OpenGL.

jwenting 1,905 duckman Team Colleague

My guess is he's still having that issue (lack of knowledge of Java) but has since moved on to other things, after "borrowing" enough code from some website or another kid in his class at school to get a passing grade on his assignment.

jwenting 1,905 duckman Team Colleague

Pretty much what I see in my mailbox, though I rarely if ever see malware.
I do see a LOT of fake "job offers" and phishing scams for bank account data, the former especially has gone up from a few percent to almost a quarter of all spam I get, almost completely replacing advertising fake/illegal internet gambling sites.

The spam pilfering illicit pharmacies (usually viagra but also other prescription drugs) seems to have almost completely disappeared as well.

jwenting 1,905 duckman Team Colleague

What you call "assisted suicide" is what is usually termed euthenasia when done by medical professionals.
And it's not just actively injecting a lethal substance into a patient, it may also be withholding life saving or life prolonging treatment (e.g. not performing CPR on a patient, or turning off a heart rhythm regulating machine, as well as deliberately overdosing on painkillers.

The only downside with legalising it (and I've experienced that first hand) is when hospitals or insurance companies see it as a cheap way to get rid of expensive to treat (read, non-profitable) patients/customers and try to bully/force them into signing up for being terminated.
Which they tried to do with my mother when she was diagnosed with terminal cancer in 2013. Without her consent she was scheduled for a consult with a euthenatia specialist, the true nature of the person being hidden by vague job titles but exposed by her history of presentations in forums and conferences about the topic.

jwenting 1,905 duckman Team Colleague

His problems stem solely from a lack of understanding and knowledge of his chosen platform, not from a lack of capabilities in that platform to do what he wants to do.
Changing to another platform isn't going to change that, only a willingness to learn and experiment, to gain knowledge, understanding, and experience will.
If he's incapable or unwilling to put in that effort to get the job done in Java, switching to another language isn't going to help him one bit.

jwenting 1,905 duckman Team Colleague

Shouldn't everyone have the right to decide on their own death?
Banning doctors from helping patients who no longer wish to live, or worse forcing those doctors to prevent their patients getting a clean and quick death, is effectively a violation of peoples' human rights and declares "you don't own yourself, the state owns you and will decide about you living or dying".

jwenting 1,905 duckman Team Colleague

Believe it or not, I actually know someone who actually says "lol" when she hears something funny. She doesn't smile, just says "lol" ...
Not sure she ever noticed the irony, she certainly never said it out in a louder voice than any other phrase she said.

I tend to do that at times... Usually during phone conversations though, not face to face.
If people are allowed to type in SMS shorthand in formal communications, I should be free to use internet terms like "lol" in casual conversations :)

jwenting 1,905 duckman Team Colleague

"there should be a law against it"... There should IMO be far fewer laws and far fewer restrictions on what people can and cannot do, not far more...

jwenting 1,905 duckman Team Colleague

Amazon is your friend... If you have a credit card of course. If not, try your local bookstore, they are likely happy to order it for you if you pay cash...

jwenting 1,905 duckman Team Colleague

you were given this assignment 6 years ago and you still have nothing more than the text of the assignment itself?

jwenting 1,905 duckman Team Colleague

Why do things that complex?
Far simpler to define a class to contain the data pairs and create a List of that class.
Create a proper equals and hashCode method in that class and it's easy to compare with what you're searching for.
And you can if needed work with Comparable as well.

jwenting 1,905 duckman Team Colleague

just a guess, he's using Swing which uses Vector everywhere, and Vector is deprecated.

jwenting 1,905 duckman Team Colleague

First: it's not an error, it's a warning.
Second: no, we can't help you as you don't even tell us what statement in your code causes the warning.
If we'd know that, we might be able to give you alternatives.

jwenting 1,905 duckman Team Colleague

people who can't stand the truth tend to downvote those who tell them the truth...

jwenting 1,905 duckman Team Colleague

I don't see the urgency...

jwenting 1,905 duckman Team Colleague

we're not your homework service. Do your own assignments, if you get stuck on specific points, feel free to ask for help getting around those (though you might want to ask your teacher and class mates first, they're more in tune with the exact problems you're facing after all).

jwenting 1,905 duckman Team Colleague

The size of the application would increase by the size of the JDBC driver jars, plus any other libraries you end up using (like ORM libraries).
How much that is I don't know, but it can be megabytes.

You need to install MySQL somewhere that your driver can talk to.
That should be obvious.
Where that is is up to you.

jwenting 1,905 duckman Team Colleague

no amount of internet can help solve his basic problem: laziness.

jwenting 1,905 duckman Team Colleague

most used doesn't mean most powerful. At BEST it means most useful.
In reality it doesn't even mean that, as more often than not the tool choice is made not based on what's the best tool for the job but on which vendor made the best deal with the managers of the parent company now owning your development department a decade or more ago to do something completely different.
And THAT more often than not comes down to which vendor had the best sales pitch, the smoothest suited marketing people, and selected the best restaurants to entice the board of that parent company.

As the saying went in a large company I used to work for as a consultant "our purchase policy as as follows: if IBM sells it, buy it. If they don't, buy the most expensive".

Tcll commented: I can agree, but I can also disagree... Just make sure you're not putting something as crappy as .NET (worse than Java) in the limelight. +3
jwenting 1,905 duckman Team Colleague

good luck with your homework.

Note that you need to take the diameter of the pipe into consideration, not just the length.
And that the pipe probably should not hit the walls to prevent damage.

jwenting 1,905 duckman Team Colleague

the main problem of course is interfacing with the hardware.
Once you have a stream of data, sending that stream over an IP network is no different from sending any other stream of data.
And Java has well documented APIs to do that (as I'm sure you're aware of if you know how google works, which you claim to do).

And those hardware interfaces depend heavily on the hardware in question, the manufacturer will have the information about it.