jwenting 1,905 duckman Team Colleague

There is no 'official linux'. Rather, as you've found out, there are hundreds of different variations, each of which is linux.

Which of the platitude of options you choose would depend in large part on what you're going to want to use it for.

rproffitt commented: More distros than jellybean flavors. +6
jwenting 1,905 duckman Team Colleague

I've upgraded 4 computers to Windows 10, 2 each from Win7 and Win8.1, no problems with any of them.

The files on that disk aren't lost, they're still there. But if they are programs any registry entries they need to run may be lost, especially if you upgraded to a different language version of Windows 10 from the original Windows version you had installed. The installer will have warned you about that...
Cortana is only available in a very few places, this may change in the future.

jwenting 1,905 duckman Team Colleague

Main problem is that there's no penalty for dumping your homework assignments here verbatim. On StackOverflow if you do that the entire thread gets removed, and your account gets locked from posting anything for a period of time (especially if you do it repeatedly).
Daniweb needs something like that.

Of course Dani doesn't seem to be aiming at professionals (though there are certainly some here, myself included) so much as students and schoolkids, and among those the ones most likely to want to get help in an online forum are the ones least likely to be inclined to do their own research...
If they were inclined to do their own research they'd rapidly find the answers to their problems as those tend to be fairly basic and easily handled by even basic tutorials and documentation (and usually their course material...).

rproffitt commented: That works for me. +0
overwraith commented: There should probably be a kick ban feature for people who only post one sentance and no code, would need human interaction of course. IDK. +0
jwenting 1,905 duckman Team Colleague

Swing is built on top of AWT, not all AWT classes are overridden.

In fact it's impossible to use Swing without using AWT as Swing relies on a lot of AWT classes under the hood. For example a Swing javax.swing.JComponent IS a java.awt.Component

jwenting 1,905 duckman Team Colleague

What you have there looks like a perfect candidate for a GridLayout for the rows of keys, with each row being a FlowLayout.

jwenting 1,905 duckman Team Colleague

Yes, I'd never use it in public APIs.
For those I'd make as much final or otherwise unoverridable as I can get away with to prevent tinkering.

jwenting 1,905 duckman Team Colleague

clicking together a website using a tool like that is not web development, it's clicking a website together...

jwenting 1,905 duckman Team Colleague

follow the installation instructions. it's dead easy.
http://developer.android.com/sdk/installing/index.html?pkg=studio

You MAY have to install an Oracle JDK first, set the global JAVA_HOME environment variable to point to it, add $JAVA_HOME/bin to your global PATH.
I assume you know how to do that in Linux.

jwenting 1,905 duckman Team Colleague

hehe, I'm so used to writing things in tightly controlled environments that are performance critical that I'm pretty well used to using protected data members in abstract base classes (usually in JPA @MappedSuperclass).

jwenting 1,905 duckman Team Colleague

and what do you know about private?
Private members can ONLY be accessed from within the class they're defined in. You're trying to access them from another class.
Either redefine them as protected OR use the getter and setter methods to access them.

Which of the two is the prefered solution depends on context and personal preference, in this case I'd go with protected data members.

jwenting 1,905 duckman Team Colleague

there are places called "libraries" where they have many books to read. There are also places called "bookstores" where you can buy books to read.
I suggest you visit some of them...

jwenting 1,905 duckman Team Colleague

yes, setting up your own NAS would be cheapest. Of course it may be a violation of your ISP's terms of service.

jwenting 1,905 duckman Team Colleague

AFAIK all such services require you install some software for the purpose. Which is no surprise really.
What you'd need is a VPS somewhere with ssh access.
You wouldn't need a lot of CPU power, but more than the basic level of storage and maybe bandwidth too.

jwenting 1,905 duckman Team Colleague

check your logs, they'll give you hints at what's wrong.

jwenting 1,905 duckman Team Colleague

And any decent one will tell you to not bother unless you have to.
Rely on an external authentication system instead. Be if facebook, twitter, google, OpenID, etc. etc. or an existing SSO engine running within your existing environment.
All are almost certainly more secure than anything you can come up with.

jwenting 1,905 duckman Team Colleague

I wonder if OP even understands what "the cloud" is, or what a "cloud OS" is.

jwenting 1,905 duckman Team Colleague

never needed HP support myself, but heard many horror stories about them (unless you're a big corporate account, in which case you pay a lot of money for premium support and that's good).
Their computers tend to be somewhat lower quality than Dell (though remember that both brands have a wide range of quality and performance options, you really do get what you're paying for with both of them).

jwenting 1,905 duckman Team Colleague

and do upgrade to the latest release from Oracle. 1.8.0_60 as of writing.
1.7.0_79 is the last 1.7 release, mostly security fixes and some minor stuff.

jwenting 1,905 duckman Team Colleague

format would try to convert anything in the arguments to a String, which AFAIK is done by calling toString() on any object reference in the argument list (of course the rules for primitives are different).

jwenting 1,905 duckman Team Colleague

you've never seen one because making one in VB6 is the worst idea you could ever come across.

Terrible security features, vulnerable to just about any hacking strategy known to man and then some, outdated and out of support before online banking even existed.

Leave real programs to real professionals, using real tools.
But do start using real tools, and ditch 20 year old stuff.

jwenting 1,905 duckman Team Colleague

and remember that for anything in that string you're building its toString() method is called under the hood...

jwenting 1,905 duckman Team Colleague

Microsoft is a company, of course they need to make a profit... If they don't, they go out of business...

If you're hell bent on not using software that's created on a profit making model, write your own and host it on an operating system you wrote yourself based on hardware you designed and built yourself from components you designed and built yourself using machines you designed and built yourself.

jwenting 1,905 duckman Team Colleague

toString() gives you a string representation of your object.
But you have to define that string representation if you want it to be anything meaningful and human readable.
The default implementation just gives you a hashcode for the object in memory, useful to distinguish between 2 instances but no more.

String.format() otoh will format the arguments into the template you provide as the first argument, and return the result. It's handy to fill in wildcards in a date string like you found out for example.
Mainly it's a bit of shorthand for String.replaceAll()

jwenting 1,905 duckman Team Colleague

why would you want to? It's called implicitly as is...

jwenting 1,905 duckman Team Colleague

no, the data is used to determine how to make the user experience better. Things like moving things closer to each other on the screen that people often use together.
Things like making buttons that are searched for frequently but require a lot of moving around with the mouse bigger or stand out better through having a different colour.

jwenting 1,905 duckman Team Colleague

do your own homework, kiddo.
If you've specific detail questions people will be happy to help, but we're not here to help you cheat and get a passing grade on your course by doing your work for you.

jwenting 1,905 duckman Team Colleague

So many ... dead threads ... now ... being resuscitated?

happens every new semester when programming courses start in certain countries where the majority of kids aren't interested in learning, only in getting the paperwork so they can get hired by firms that then sell them to other companies looking to outsource their programming departments to India.

jwenting 1,905 duckman Team Colleague

I think he's trying to spam. All his posts are seemingly random phrases posted to seemingly random forums.

jwenting 1,905 duckman Team Colleague

Windows 10 is fine. Use it on 5 PCs and my phone. Edge could use some more functionality, true, but it's extremely fast and light weight, making it very good for just browsing especially on resource starved systems where firefox or chrome are just too heavy, take up too much RAM and too many CPU cycles.

jwenting 1,905 duckman Team Colleague

hmm, been building enterprise level web applications for 15 years, only ever touched python as a hobby.
Planning to do a bit more with it, but no, you don't need it as a developer. Now, if you're a network/systems admin it may be more useful, for things like automating certain tasks.

jwenting 1,905 duckman Team Colleague

he probably means physical connections :)
Can only plug in so many cables after all.

And yes, you can plug in a switch or router into your DSL modem/router.

jwenting 1,905 duckman Team Colleague

I hope not. It's the only way to get rid of the flood of highly annoying adbanners with fake download buttons and redirects to phishing sites.

jwenting 1,905 duckman Team Colleague

even better, put it all inside a method and just call that in your loop. Much easier to read...

jwenting 1,905 duckman Team Colleague

do you really think some kid asking to get their homework done for them is going to come back years later and give you their homework they never got done in the first place because nobody did it for them?

<insult snipped>, you don't deserve even a failing grade, you only deserve to be kicked out of school for attempted plagiarism.

jwenting 1,905 duckman Team Colleague

Android Studio is the fastest IDE around. You can of course do things the hard way and write all your code in a text editor like VI or Notepad and then use commandline compilers.

Most likely if it's slow on your machine there's something else wrong with your machine.
I'm running the same IDE (IntelliJ) on my laptop air which has similar hardware specs and it's blazing fast.

jwenting 1,905 duckman Team Colleague

Typically, you'd just have a method in the main class that does that stuff, or in a class where you launch it from the main class. A single entry in a properties file can then be used to determine whether that initialisation method runs or not.

jwenting 1,905 duckman Team Colleague

My thought about all those products is that they're utterly useless.
Were I to steal such a device the first thing I'd do is turn off all network options.
Then I'd go somewhere safe and hard force it to reset to factory defaults.
The first step would make the tracking software irrelevant/useless.
The second step would remove it.

jwenting 1,905 duckman Team Colleague

yeah, create an installation DVD or USB pen drive using the media creation tool.
Then (or while doing that, it takes a while) save all your data and stuff you want to retain from the old PC to an external hard drive.
When both are done, put in the installation media and reboot from that, do a clean install.

Finally install your software again, put back your data, and Bob's your uncle.

jwenting 1,905 duckman Team Colleague
jwenting 1,905 duckman Team Colleague
jwenting 1,905 duckman Team Colleague

and realise that there are more things out there than php and mysql, things that often are a far better option.
Things like JSF/JEE and Oracle.

diafol commented: Agreed. Sorry jw +15
jwenting 1,905 duckman Team Colleague

Just because it's new doesn't mean it's better.

true, but in this case it's definitely the case... While XP isn't AS bad as Windows ME (which came before it, so newer was better there...) anything that came after was superior (though Vista may not have been the best choise if your hardware was marginal).

jwenting 1,905 duckman Team Colleague

a bolt cutter and a big bucket of superglue to cut off the spammer's computers from the internet and then glue the door to his room shut with him inside.

Salem commented: Best answer +16
jwenting 1,905 duckman Team Colleague

correct. The problem statetement merely tells to solve the problem, not how to solve it :)
And for this kind of thing a spreadsheet is the easiest way to go, it's exactly what spreadsheets were designed to do...

jwenting 1,905 duckman Team Colleague

As a programmer, don't "study" operating systems, study programming paradigms.

But if you're asking whether there's more money in programming for Windows or iOS, it all depends on what you're interested in selling.
If you're into "hip" "apps" and games for teenagers and gadget addicts, Apple's your thing. All those kids are drawn by Apple's marketing and buy every new Apple gadget on the market (and to cater to them, so will you have to do the same).
If you're interested in business applications, lower in volume but more money per sale, Microsoft is probably your thing (but there are businesses using Microsoft desktops and Apple tablets).

Overall, IMO the Surface is a very interesting platform to replace both smaller laptops AND tablets in the business world, and allow near seamless integration with a corporate IT environment based on Windows based desktops and servers, as well as mobile phones.
Apple is trying to create a similar landscape for its products, but they've a lot of catching up to do and even when they get there they have a major hurdle in that most companies are heavily invested in Microsoft products already and aren't going to want to throw all that away just because some junior sysadmin thinks "Apple iz k3w1 and Micr0$0f7 zux".

jwenting 1,905 duckman Team Colleague

being able to do that would be (and was) a major security risk. If you can do it, so can a mallicious site...

jwenting 1,905 duckman Team Colleague

don't use executeUpdate for select statements, use executeQuery.
executeUpdate will never result in a ResultSet. According to the javadoc for getResultSet:

returns the current result as a ResultSet object or null if the result is an update count or there are no more results

jwenting 1,905 duckman Team Colleague

post your problems here, don't just link us to some other site and expect us to work it out for you.

jwenting 1,905 duckman Team Colleague

only ever installed XP because my Win2K installation got corrupted and upgrading to XP was the only way to get the machine back without losing all my data.
Couldn't wait to upgrade it to Vista when that was released.

jwenting 1,905 duckman Team Colleague

and what do you mean by "count of primary column"?