jwenting 1,905 duckman Team Colleague

of course the second question already provides 2 of the required 3 methods for the answer to question 1 ;)

jwenting 1,905 duckman Team Colleague

if I were to get something directly from my doctor instead of a recipe for the pharmacy to supply, I'd be highly suspicious...
The reason placebos sometimes work is because people believe them to be actual medication, not a placebo.
One you start giving them a separate distribution channel, that belief goes away and with it the effectiveness of the placebo.

And no, doctors (here at least) don't get or give out samples. Only pharmacies are licensed to dispense medication.
Of course some doctors are also pharmacists, but most are not.
Even in hospitals, the doctor prescribes a medication, a nurse goes and picks it up from the hospital pharmacy, and administers it (or gives it to the doctor to administer).

jwenting 1,905 duckman Team Colleague

if you need help from Ur, I suggest you get a visa for Iraq and go to the place.

jwenting 1,905 duckman Team Colleague

What that code does is throw a compiler error.

jwenting 1,905 duckman Team Colleague

a real physician prescribing a placebo does so for a reason: a fake cure the patient believes is real for a fake condition the patient believes is real.

Where things get iffy is when physicians prescribe placebos based on misdiagnosis, giving a placebo because they incorrectly believe the patient is not suffering from anything but rather being a hypochondriac.
That may have killed my aunt. She was a long term hypochondriac, always had some sort of rare and dangerous disease for which she'd go to a doctor who'd then give her something that everyone knew was a placebo with some impressive sounding name.
Then the one time she really was seriously ill, nobody, took her seriously even when she fell violently ill and collapsed on the kitchen floor, retching and vomiting.
By the time an ambulance arrived it was too late.

jwenting 1,905 duckman Team Colleague

yes, which just shows how much of a kludge those are...
The fact that they had to break the core premises (no multiple inheritance at implementation level) in order to get it in should have raised a lot of red flags about wanting to put it in in the first place.

jwenting 1,905 duckman Team Colleague

Let's take all those "miraculous" anti-aging face creams.

oh, apply it in a thick enough layer and it works like plaster, smoothes out all the wrinkles.
Until you wash it off of course :)

jwenting 1,905 duckman Team Colleague

What is easier: have extra unnecessary labels & documents or adding myriad exceptions to the work place safety and food labelling laws?

an overload of rules and regs, labels and forms, just means people ignore them.
In case of the forms, there'll be a stack of prefilled forms somewhere, just add a date and name and stamp them.
Case of rules and regs, people just stop reporting violations because it's too much of a burden on them to comply with everything.

And yes, I've worked in such environments.

jwenting 1,905 duckman Team Colleague

or use a connect string that's independent of where you're connecting from...

Of course that assumes you've a way to set up a database that can even be reached from outside your home network, have it properly secured and running, and can rely on to remain running.
But of course if you go with a web service that talks to the database you have the same considerations for the application server that runs the web service.

btw,

  • "Class.forName(xxx)" is no longer needed with JDBC.
  • Avoid all that ugly code duplication
  • For any realistic application you're going to want to use a connection pool
jwenting 1,905 duckman Team Colleague

default methods break the interface paradigm and turn interfaces into abstract classes.
NOT something you want to use.

jwenting 1,905 duckman Team Colleague

There's a place for both, it's no popularity contest of "which is best" without any classification as to what scenario is being considered.

jwenting 1,905 duckman Team Colleague

your assumption is wrong.
First case you have 2 different object instances, that just happen to represent the same data. No problem, both are added.
Second case you have single object instance, that has its data changed. No problem, it's just updated to reflect that data change.

IOW the set works as expected.

jwenting 1,905 duckman Team Colleague

yes, but the documentation isn't. It's a separate download, and I don't have that one (and am too lazy to go browse through a heap of jar files).

jwenting 1,905 duckman Team Colleague

sorry, I'm under an NDA and can't give you "zuh koduz" even if I had them on my harddisk.

jwenting 1,905 duckman Team Colleague

hmm, from my experience looking at job openings last year Spring is on the way out, at least getting a lot less popular.
Of course that might be regional :)

ADF is getting popular, cloud computing, REST.

jwenting 1,905 duckman Team Colleague

answer: simply add an else clause to your if statement to print something if the two are not equal ;)

jwenting 1,905 duckman Team Colleague

many (not all) homeopathic products would work, IF they'd not been diluted to homeopathic dilutions but provided in more concentrated form...

And that's the sad reality of homeopathy.

jwenting 1,905 duckman Team Colleague

and who knows what 3rd party jars he's inadvertently pulled in by using netbeans to generate his screens for him...
It's got better, but many IDEs still have a tendency to generate code that has dependencies on all kinds of custom (and these days open source) libraries.
And as there's no "JForm" class in the standard API, at least not in the standard Java API (might exist in the JavaFX APIs but I don't have those installed here) he's got at least one such dependency already.

jwenting 1,905 duckman Team Colleague

what's supposed to be true? I can't look into the brain of your teacher, but I assume if he hands you an assignment it's a true assignment...

jwenting 1,905 duckman Team Colleague

except for the terminal output, you don't usually want that...

At line 6, you're not guarding against the situation where there is no result or more than one result.
This can cause either of 2 errors:
ORA-01422 exact fetch returns more than requested number of rows
ORA-01403 no data found

You might want that, and handle the exception condition in your calling program.
But more likely you'll want to return some specific value, especially in case of NO_DATA_FOUND it's often appropriate to return NULL.

A typical construction would then become:

DECLARE
phone_number Member_T.Phone%TYPE;
BEGIN
SELECT Phone
INTO phone_number
FROM Member_T
WHERE MemberCardNumber= 2436322287;
return phone_number;
exception no_data_found
    return NULL;
END; 
jwenting 1,905 duckman Team Colleague

and of course you could get laid in bed, but for details about that you'd have to visit places that are definitely NSFW.

jwenting 1,905 duckman Team Colleague

no, don't use Vector. Vector was made redundant over a decade ago and would have been marked as @deprecated had it not been in such widespread use already at the time in Swing and AWT.

Use a List or Set instead.

jwenting 1,905 duckman Team Colleague

yah, like openSSL that supposedly had a major backdoor in it for 2 years until an NSA contractor just happened to come across it...

jwenting 1,905 duckman Team Colleague

yes, it's correct. You're not laying in bed, though you may have been laid in bed by someone after being found unconscious on the floor.

RikTelner commented: everybody do the dinosaur :D (you won't get it) +0
jwenting 1,905 duckman Team Colleague

interesting how they link to a lot of their own articles, but to nothing related that's been published by Microsoft themselves.
Of course them being militant Microsoft haters might have something to do with it...
Like the /. crowd they're not above launching some nasty rumours to make MS look bad...

jwenting 1,905 duckman Team Colleague

Or see it as a good reason to start reading about switch statements :)
Never be afraid to experiment and learn something new.

jwenting 1,905 duckman Team Colleague

might even extend that by starting in the middle and determining what direction to go in, of course only if the list is sorted.

jwenting 1,905 duckman Team Colleague

of course more often than not Dutch people don't know or care whether inanimate objects are supposed to be male or female and refer to them as genderless.
It's not like German or French where the difference is clear from the way it's refered to (and where the difference mostly comes from in Dutch).
"Der Stuhl" and "Die Tafel" simply become "de stoel" and "de tafel" in Dutch, just as they'd be "the chair" and "the table" in English.

For most Dutch people it'd be rather hard to list whether object around them are male or female, unless they had access to a quality dictionary to look it up in.

jwenting 1,905 duckman Team Colleague

You will have a hell of a time proving you're supposed to have access to the account.
If I were Google and some pundit called me saying "please give me access to account xxxxxxxx, iamthwee set it up for me and then left without leaving the password" I'd be seriously suspicious.

jwenting 1,905 duckman Team Colleague

You misrepresent it. Microsoft is making 8.1 the mandatory minimum to receive support, NOT dropping support for it.
What's being dropped is Windows 8.0 support. Just as support was dropped for say NT4SP2 some time after the release of SP3.
The only difference is that Win8 uses a different versioning scheme, choosing to call SP1 8.1 rather than Win8SP1.

jwenting 1,905 duckman Team Colleague

well, can see one little problem already. Your "tax rate" is hopefully a percentage, not a rate.
If it's really a rate you have 850% tax :)

jwenting 1,905 duckman Team Colleague

hmm, I'd write it to the same standards as the assignment, which is written horrendously, and then confront the teacher with that when and if he grades me poorly (keeping a proper version at hand of course) ;)

jwenting 1,905 duckman Team Colleague

probably. Which shows once again how pointless such assignments are when presented outside their context :)

jwenting 1,905 duckman Team Colleague

@AD for a while I used "it" when gender wasn't known. Got equally hostile reactions from men and women, problem solved :)

jwenting 1,905 duckman Team Colleague

oh, razorblade and sticky tape. The original patch...

Reverend Jim commented: Literally cut & paste. +0
jwenting 1,905 duckman Team Colleague

it's not too bad, just the lines tend to get extremely long (in part because of the very long classnames.

jwenting 1,905 duckman Team Colleague

but why go to the trouble of using a recursive solution when it can be done far more easily otherwise...
Very valid question if you ask me.

jwenting 1,905 duckman Team Colleague

nah, ticker tape is much more flexible and you don't have to resort it every time you drop a bunch.

jwenting 1,905 duckman Team Colleague

and he'd be correct.
"their" in this context would mean the person handing the ticket, aka the police officer, yet many people seem to think it applies to the person being ticketed.

jwenting 1,905 duckman Team Colleague

in fact, in my experience Netbeans tends to outperform Eclipse on any reasonably up to date system (and on one that's very old, and seriously resource limited, Eclipse isn't going to perform either).

And that's from running both (and other IDEs) together, often at the same time, on multiple machines ranging from brand new to 5+ years old.

jwenting 1,905 duckman Team Colleague

LOL, there used to be one. It only led to MORE such rubbish demands for doing kids' thinking for them as it caused a lot of google hits on queries like "project help", "project idea", "homework service"...

jwenting 1,905 duckman Team Colleague

should be no more difficult than installing, setting your $JAVA_HOME to point to it, and adding it to Eclipse.
Of course the version of Eclipse you have might not understand a later language level, but installing a newer version of Eclipse or Netbeans is even easier than that :)

jwenting 1,905 duckman Team Colleague

Nard, a lot of languages don't even have a command prompt any more, 90% of the first several weeks learning them is spent learning some IDE's menus and keyboard shortcuts...

Of course the whole idea of "teach yourself computer programming in 24 hours" is decidedly silly.

jwenting 1,905 duckman Team Colleague

yes, usually retort things like that. And then grin at the confused looks I get.

jwenting 1,905 duckman Team Colleague

that breeder is probably getting a pretty decent kickback from the insurance company...
Conflict of interest anyone?

jwenting 1,905 duckman Team Colleague

start with a language where you can simply see something on the command prompt after typing it in, like Python or Ruby.
Java and C are almost as simple.

PHP? Why make things harder by requiring correctly configured application servers as a prerequisite for getting things working?
And then a language that's incomprehensible :)

jwenting 1,905 duckman Team Colleague

you're wrong about Objectvision as not involving coding. There was no drag and drop system for building screens.

Objectvision was rather a unified library for creating user interfaces for DOS in an object oriented way, with implementations in C++ and Object Pascal.

You created forms and other screen elements (including the entire application) by instantiating and linking together (usually through impossibly long constructor chains) object instances.

It was a big improvement over earlier libraries however, where creating a user interface meant linking pointers together at pixel coordinates.
Object Vision did all that for you behind the scenes, you just said something like "give me a new dialog window of fixed dimensions for 10 lines of 50 characters, fill it with a new text field of 30 characters long, a label with text "hello world", a new text field of 20 characters long with a new label with text "your name", a new command button with text "submit" that calls a method doSubmit in a new instance of a class called "HandleHelloWorld", and a new command button that calls the cancel method on the dialog". And all that was a single constructor call...

I might still have the original Borland C++ 4.5 CDs and manuals somewhere, from long, long ago.

If you want more information, don't search for Object Vision however. Search for Turbo Vision, which was the name of the library as included in Borland C++ and Borland Pascal.
Object Vision was an attempt by Borland to market …

jwenting 1,905 duckman Team Colleague

by carefully reading your code and figuring out where you went wrong.
It is rather obvious.
Using proper class and variable naming conventions makes it easier to read btw.
So descriptive names, class names starting with an uppercase letter, variable names with a lowercase letter.

jwenting 1,905 duckman Team Colleague

You could even encode the actual size of each fragment into the sheet, but that would not be something you'd easily do by just copying and pasting images in gimp of photoshop.
The way would be to either add metadata in a comment field that some formats (like JPEG) understand, or encode it directly into the pixel values of the corner pixels of each fragment (e.g. the colour value of the first 2 pixels to be read from each fragment could indicate the number of pixels horizontally and vertically, the colour values of the last 2 pixels the starting position in the sheet of the next fragment).

jwenting 1,905 duckman Team Colleague

gets even worse when there's a cultural and/or language barrier.
As with the classic error of Indians, saying "I have a doubt" when they mean "I have a question".