jwenting 1,905 duckman Team Colleague

Even more so than proper language skills.

jwenting 1,905 duckman Team Colleague

yes, they can get new values during new method calls, but will be preserved for the instance of the method local inner class instance created by the previous call.

jwenting 1,905 duckman Team Colleague

break inside a switch breaks out of the switch - ie stops any later cases being executed. So in this case is does NOT break out of the loop, just the switch.

More generally, a break statement will break out of the containing block only, not out of any higher level containing blocks.

jwenting 1,905 duckman Team Colleague

What is single-pater health care?

A hoax. Everyone pays, whether he's using it or not. The cost just doesn't show directly as it's hidden in a plethora of taxes, mandatory (and overpriced) insurance policies, etc. etc. etc.

Once you take away peoples' incentive to be sparse with the medical care they seek, many will start going to the doctor for every stubbed toe or sniffle, greatly increasing the cost of the system.
It also inevitably leads to massive bureaucracies to manage the money (which now has to come from me to pay for your visit to the ER for a bruised lip, which you'd never visit a doctor for if you had to pay for it yourself), corruption, waste, etc. and in the end (very shortly) there will be government edicts about who will get treated for what and when.

So we've here a government edict that there are at most something like 1000 heart procedures a year, nationwide. Any more aren't funded, and can't be had even if you elect to pay for it yourself (which will cost you far more than it now costs in the US, as you'd have to pay the inflated price caused by government run healthcare programs).
In the UK there's plans to ban overweight people, smokers, and others deemed to follow "unhealthy lifestyles" from all healthcare, even emergency care, in order to reduce cost. Effectively you're handing out a death penalty to entire sections of the population, including people …

jwenting 1,905 duckman Team Colleague

well, that's the facebook generation for you...

jwenting 1,905 duckman Team Colleague

See page 182 of the Java Language Specification, 3rd edition (may be a different page in other editions).

Basically, an inner class contains an implicit reference to the outer class instance that creates it, thus preventing that instance from going out of scope (and thus getting garbage collected).
However, method local variables do go out of scope unless they're declared final, in which case they're preserved between method calls.
For an instance of a method local inner class to be able to refer to those method local variables after the method goes out of scope (say, if you return the instance from the method), those method local variables thus have to be declared final else they will no longer exist when needed by the inner class instance that refers to them.

jwenting 1,905 duckman Team Colleague

Extending Thread indicates (in OO design) that you're changing the behaviour of Thread itself.
You rarely if ever want to do that.

For most if not all purposes you'll ever encounter, implementing Runnable is the correct thing to do.

jwenting 1,905 duckman Team Colleague

well, in order to be a leftist you have to believe in the wildest lies and fantasies possible as that's all that can ever make socialism/communism look like something you want to live under...

Yah, the "failed experiment" theory is a nice and constantly repeating one. Guess what kids, socialism/communism failed in every single case it was implemented, every single case where private ownership, responsibility, choice, free markets, was abandoned.
So in the light of hundreds of such failed implementations, you still hold that "if only I did it it would work" and "they weren't real socialists/communists" despite the people implementing it being the ones who literally wrote the books on it is a sensible theory to hold on to?

Reality check: would you be willing to give up everything you own "for the collective", literally go whereever you're needed and do whatever needs to be done there with no more compensation than the minimum amount of food and clothing needed to survive another day, sleeping in barracks with no privacy, never having a day off from work (as such would constitute ownership and privilege over your peers, can't have that in a true communist society) (not that you'd have anything to do on that day as you'd have nothing to do it with)?
That's what you're rooting for. With a Big Government to decide who goes where to do what at what time and how much he should produce during that time or face having …

Ancient Dragon commented: wow! +0
Azmah commented: I SOOOOO totally agree with you :D XD +0
Aia commented: A year and half they all were giving you bad rep for saying the same. I wonder what had changed! +0
jwenting 1,905 duckman Team Colleague

hahaha, In the begging that was the case. i Have been working for nearly two years now. I'm given jobs in equal difficulty to that of my boss. But there are gaps as there are only about 100 workers using computers.

so you've been promoted to where you can do no harm, to a job similar to that of the boss :)

jwenting 1,905 duckman Team Colleague

Might not be for you. If you don't know the answer, just keep quite without being a Bonehead .

And sorry if i was rude !

actually, I do know the answer. Or would if I were to bother with homework kiddos like you who think themselves so important they can decide their problems are so important I should drop everything and help them ASAP for no reward except getting bitched at for it not being exactly what they had in mind.

jwenting 1,905 duckman Team Colleague

Apprenticeship. Petty cash really. But it's hourly. so I'm happy just relaxing :)

ah, an intern. Not trusted with the time critical stuff, just given some make-work jobs to keep him from bothering the people doing the actual work with questions that take time to answer.

debasisdas commented: agree :) +0
jwenting 1,905 duckman Team Colleague

>> far more international cooperation among law enforcement agencies and legislative branches to make international crime easier to battle.
>> including the death penalty for repeated infractions

Pick one or the other. We can't get most European countries to even consider extradition unless we guarantee the death penalty won't be imposed even in the most heinous murder cases.

This is assuming your suggestion are actually to be taken literally. With most people I'd assume your simply exaggerating. I'm never sure with you. :S

yes, they are to be taken literally. It's piracy, and piracy at the high seas carries a mandatory death penalty so why not this form?

As to European countries not wanting to extradite, that's why laws need changing and international cooperation and synchronisation of laws is needed.

I'm not talking about chopping someone's head off for downloading a single song.
But for the diehards, who download, redistribute, and often sell gigabytes a day and make money out of it? Sure.
I've had friends lose their jobs because the company they worked for went under as a result of piracy.
None of them died as a result, but others have (suicides because they ended up in the gutter quite frequently).
As a result, pirates (especially the large ones) are directly responsible for the deaths of people, thus a case can be made that piracy in volume is homicide.

jwenting 1,905 duckman Team Colleague

Just some other thoughts about copyrights....
1. Would you personally sue a 12 year old little girl and her family because she happened to be smart enough to download a torrent and gain access to something you created and own rights to?

2. Would you personally sue the creater of a program that allows people to share files which could pottentially be used illegally?

3. Would you personally sue websites that premote the use of file sharing programs?

4. If you were the creater of a program like adobe photoshop. Would you personally sue a hard working person who pays their bills but barely scrapes by just as many of us do, and this person downloaded your material for free and used the program for personal use?

5. Consider the same person in question 4. Now he decides he is going to start downloading multiple copies of your software and sell them at a cheap price to his buddies who would like the software. Would you sue him now?

Point of fact is there are many senarios that can be played out, and each case should be handled seperatly and decided on by the owner of the product.

1) yes, age is no excuse for breaking the law
2) no
3) yes
4) yes, income status is no excuse for breaking the law
5) yes

Creation of a tool isn't a crime, it's the use of that tool.
Of course most creators of …

jwenting 1,905 duckman Team Colleague

Obviously that's not the kind of life I'm speaking of. And not taking away any rights from the people but more of putting money back into circulation rather than rotting away in someones personal bank accounts.

That's how it always starts... "Take from the 'rich' for 'fair redistribution'", and pretty soon
1) those who make anything notice they get nothing in return while the slackers have the good life without having to work for it so they stop working as well
2) you find yourself, with your small income that barely makes ends meet, defined as 'rich' so they can come for your posessions too.

Which of course results in the government owning everything, forced labour camps, 'reeducation' camps for those who don't want to work for no return, complete loss of freedom, and millions upon millions of dead and mutilated people.

Just ask the victims of Stalin, Pol Pot, Mao, and Ho Chi Minh how well communism worked for them. And yes, that was communism, even if it is now called "socialism".
There is NO distinction between the two, they're just different aspects of the same system, and trying to implement one irrevocably leads to the implementation of them both.

It's not known exactly how many lives were lost so far as a result of communism, but a cautious estimate puts it at 200 million and rising. If you count those who died as a result of the conditions communism made them live …

Salem commented: yes +0
jwenting 1,905 duckman Team Colleague

there are many tools that promise you can create the next killer game, the one that will bring you instant fame and megabucks, without any programming in just a few hours or days...

None of them deliver of course, no reason to assume this one is any different from the rest of them.

jwenting 1,905 duckman Team Colleague

not urgent.

Salem commented: Agreed, not urgent, and -ve rep cancellation FTW +17
jwenting 1,905 duckman Team Colleague

Jython, now that's a name I've not heard mention in many years...

jwenting 1,905 duckman Team Colleague

I'd just make a method in the Vector2 class that takes 2 instances of Vector2 and creates one that's the addition of them.

So you'd get

Vector2 newVector = vec1.add(vec2);

or possibly (using static members, not what I'd do)

Vector2 newVector = Vector2.createByAddition(vec1, vec2);

Much cleaner than what you yourself tried.

jwenting 1,905 duckman Team Colleague

For security reasons, that's not allowed.
You'll have to have some mechanism to transfer data between the applications (secure of course) and you'll need to write it yourself (though some application servers might have things in place to make it easy on you for applications all hosted within the same server or cluster).

jwenting 1,905 duckman Team Colleague

I seriously doubt they ever delete the data, it's far too valuable for their marketing departments (and too much links to it, like "friends" networks).

Orkut, being owned by Google, of course (like Google) never deletes anything at all. Same is true with GMail. If you delete a message there it's just made invisible to you, but still used by Google themselves for their purposes (thus can be sold to 3rd parties if they pay enough).

That's where the income from those sites comes from. If you don't like your private data being sold to the highest bidder, don't use them.

jwenting 1,905 duckman Team Colleague

I think Bill Gates got enough money already? If you think paying $1000 for songs on your
I-Pod is alright, and millions of people who download pirated programs is not a sign that there is something wrong with copyright system well... I have nothing to say

who are you to decide what's "enough money"? Apparently you've some magic number, and if someone has more than that it's OK to steal everything they make?

I hereby decide you have too much money, and we should all go to your house and steal your stuff in order to ensure you don't have too much any more.
By your own logic you should allow that, invite it even.

The only reason people pirate stuff is because they can, same reason people steal cars and break into houses and other buildings to steal what's inside.
They're too selfish and mean to allow others their freedom and property, too lazy to work to get what they want so they steal it instead.
Add to that the "it's on the internet so it should be free" idiocy and you've a pandemic of crime.
Copyright laws indeed need work, they need to be made far more strict and allow far higher penalties (including the death penalty for repeated infractions, and felony charges for even minor infractions, rather than the current wristslapping) and far more international cooperation among law enforcement agencies and legislative branches to make international crime easier to battle.

sergent commented: I have my opinions and I will not change it because of you! +0
Ancient Dragon commented: yes :) +0
jwenting 1,905 duckman Team Colleague

Identity still unknown do you think such criminal will occur in the future again and do you believe in spirits?

Serial killers, even (or especially) ones who mutilate the bodies of their victims (and more often than not eventually turn to canibalism unless caught) are of all ages and indeed have existed since and probably exist today.
Nothing to do with spirits, for which there's no scientific evidence of their existence or even what they'd be if they existed, it's just the way some human brains are wired (or miswired).

jwenting 1,905 duckman Team Colleague

I'm terribly afraid of pink die. Not so much of blue or black die.

jwenting 1,905 duckman Team Colleague

and most of all remember that you're possibly (even likely) violating international copyright law by using images posted by people without their prior permission (if you had that permission, you could just ask them for the images...).

jwenting 1,905 duckman Team Colleague

Most if not all companies silently ignore this as it's utterly ridiculous. Adding a disclaimer is probably all that most companies will do, as the alternative would be to not use cookies at all which would cripple their sites.
A typical law created by bureaucrats who don't have any idea what they're dealing with, yet have far reaching powers that far outstretch their competence.

Personally, I don't have to do anything as I work almost exclusively on intranet and extranet applications which aren't public websites.

jwenting 1,905 duckman Team Colleague

bit.ly and others for that reason have now added preview services to their sites, where typing in the URL you received will be tested to see if it's valid and show a preview of the site linked to.

jwenting 1,905 duckman Team Colleague

well, there's no way to be sure an address exists or not at all.
The address might exist but the server can be set to bounce or delete all incoming mail from your account or domain.
The recipient might choose to ignore your message and not reply to it.
An email sent to a non-existent account doesn't have to yield a bounce either, it can just be ignored and deleted by the mailserver (in order to combat spam, and reduce the massive bandwidth overhead from mail sent to random addresses by spambots, this is getting ever more common, to the point where most mails claiming to be bounced messages are in fact spam and laden with trojans).

As a result you can get both false positives and false negatives.

jwenting 1,905 duckman Team Colleague

Such decisions only you can make. Which is appropriate for the situation depends on the rest of the logic you're employing.

Personally, I'd not have that method at all. Rather I'd have a user request a place at the Table, and be added to the Table as a reference in a List (I'd not use an array, rather a List and initiate the Table with the maximum number of entries allowed for that List, that way the supported number of Players per Table could be adjusted at runtime if needed by increasing that number). No chairs needed, they don't exist in the context you're describing, the Players might as well be standing rather than sitting, the program doesn't seem to care.

predator78 commented: thanks +3
jwenting 1,905 duckman Team Colleague

I kinda like Ruby for small things. Larger Ruby programs tend to get hard to read though.
Ocalm I don't know, but O'Calm sounds like an Irish brand of beer rather than a programming language, which would explain why Rashakil likes it better than Ruby :)

To learn OO concepts Ruby, with it's Perl legacy, may be a bit hard (the syntax can get in the way of learning the concepts).
Python or Java would be a better choice, or C#.

jwenting 1,905 duckman Team Colleague

Yup, you should never store plaintext passwords, and should never decrypt them.
Of course if your encryption mechanism doesn't guarantee an identical result for identical input (not sure if such exist, but it's I think possible) you're basically screwed, and will have to choose a different algorithm.

Many professional systems go further, delegating the entire authentication and authorisation to external services, just transmitting the credentials to that service and handling the response.

jwenting 1,905 duckman Team Colleague

In general, use reflection only if there's no other way that gets the job done :)

IOW, if you don't KNOW you require it, you probably don't. It's there fore specific corner cases, which many people are unlikely to ever come up against, especially in their first years of using Java.

jwenting 1,905 duckman Team Colleague

It is unidentified serial killer in England from late 1800s

It's not even known whether it's one person or many, how many murders are to be attributed to the Ripper, or which ones.

jwenting 1,905 duckman Team Colleague

Anywhere where you can get away from school and the tons of homeworks is the best.

that's called a job, and you'll be a lot more busy than you ever were at school once you get one :)

jwenting 1,905 duckman Team Colleague

There is no such thing as "internet booster software". While there are many people selling things called that, in reality those things do nothing whatsoever.

At most a few might allow more efficient use of the bandwidth available to the machine, but most don't even do that, they just sit there giving visual clues as to how fast your connection now is that don't mean a thing because they're not based on anything at all.
IOW they're a fraud.

As such you can create them in any language whatsoever, as long as you know how to create fancy user interfaces with flashy graphics.

jwenting 1,905 duckman Team Colleague

Kindly provide me link to scjp.
>> Is so hard to use google or search oracle website? I guess yes, so here is direct link

apparently it is, kids are either too stupid or too lazy to find it. In both cases they shouldn't pass the exam so we shouldn't point them to it...

jwenting 1,905 duckman Team Colleague

There is no definition of what is "pure object oriented", so the question cannot be answered.

While many people think they know what they talk about when using the term, they all mean something else.

jwenting 1,905 duckman Team Colleague

1+10+1+10 = 22

jwenting 1,905 duckman Team Colleague

pretty much anywhere with no internet, television, or cellphones...
Having electricity and plumbing/running water is a nice plus.

jwenting 1,905 duckman Team Colleague

you could have found it by now if you'd actually have the level of intelligence needed to pass the exam.
So consider trying to find the information yourself to be a good way to test whether you should bother even considering it.

ztini commented: Fail. -1
jwenting 1,905 duckman Team Colleague

"because if raising (around) 500Mb used memory then IDE freeze"

An IDE that needs such a button pressed regularly else it freezes or crashes is bugged.
Q.E.D.

jwenting 1,905 duckman Team Colleague

You can export to MS Office from Java, no problem :)

jwenting 1,905 duckman Team Colleague

As amazing as the idea is, the majority of the population i beleive will not agree with this.

which is why as soon as it becomes viable governments will make it mandatory "for safety".

jwenting 1,905 duckman Team Colleague

Been to a few of those places. Impressive constructions, especially if you consider they were dug out by hand.

jwenting 1,905 duckman Team Colleague

Looks like spammers prefer Firefox or Chrome...

jwenting 1,905 duckman Team Colleague

It's a really really fun place with flowers and balloons and lots of sunshine. I really suggest you donate to find out. :)

And black helicopters :)

jwenting 1,905 duckman Team Colleague

Actually it's less than half a year old :)

jwenting 1,905 duckman Team Colleague

I have read that, but what if and if they are friendly?

it still makes no economic sense. The cost would be prohibitive, which is why they came here in the first place, to find a planet to settle with raw materials their own planet now lacks.

jwenting 1,905 duckman Team Colleague

too late

jwenting 1,905 duckman Team Colleague

seems the spammers are in the majority here... 6 posts, 5 spammers.

niktar75 commented: Right you are. +0
jwenting 1,905 duckman Team Colleague

aplologize me for hiJacking this thread but,

@ jwenting wrote

If you're programming raw sockets, you can only ever send bytes. Java also lets you send Strings and integers, because it handles the conversion to bytes for you.

are you sure that that is valid for Non-ACSII chars, maybe then I something ***, or I'm wrong isn't there something as InputStream...

yes, I am sure. Everything gets translated to bytes as only bytes can get sent over the line :)

The Stream reads the bytes but doesn't know what to do with them. If you expect Strings, wrap the Stream in an InputStreamReader.