jwenting 1,905 duckman Team Colleague

Linux shot itself in the foot by declaring being "anti-Microsoft" to be a religious dictat, and deliberately doing everything different from the way it's done in Windows for no other reason than to do things differently from Windows.
They also shot themselves in the foot (in part because of that) by not standardising on a lot of things, from mouse and keyboard handling to copy-paste features to look and feel, effectively causing every single application to be incapable of communicating with every other application at a level that's required for end users, and presenting an utter mess of different user experiences between them as well.
And let's not even get started on the configuration nightmares. When I was running a Linux desktop I spent at least 2-3 hours digging through configuration files for every hour of productive work I got done.
The operating system should sit quietly in the background most of the time, not require the user to fiddle with it constantly to even start his applications...

jwenting 1,905 duckman Team Colleague

there is no "best" operating system, at most there might be one that's best suited to specific requirements.

Reverend Jim commented: Of course. +0
stultuske commented: as about always :) +0
jwenting 1,905 duckman Team Colleague

if your main objective is to pass it to a stored procedure, pass it as is (meaning, as a string) and write the stored procedure in such a way that it does the conversion.
Much more efficient, as it eliminates the implicit conversion of a Java Date to a database date, and pushes the conversion to the database server, which typically is much better at such tasks (faster...) than the application server.

jwenting 1,905 duckman Team Colleague

learn the difference between path and classpath. READ the documentation that comes with your tools (the JDK...). You're blindly stumbling ahead, with your eyes closed deliberately, in a room full of things that can trip you but won't if only you were willing to look where you're going.
Do NOT assume that just keeping up saying you have a problem without putting in any effort on your part to solve it will make the problem go away.

jwenting 1,905 duckman Team Colleague

seems he needs a lesson on the use and love of the classpath before he continues his forrays into the world of JDBC.

If it now compiles but can't find the driver class at runtime, he's failed to add the driver jar to his runtime configuration.

jwenting 1,905 duckman Team Colleague

Love what? Watching it live and waiting for it to end or watching it home skipping to the end?

watching it on the television recap, especially the accidents as riders skid off the road or collide into pace cars they can't see through the snow, what else?

jwenting 1,905 duckman Team Colleague

umm.. whats the difference between class variables and instance variables? i thought they were the same

There's no such thing as a "class variable" per se. He means a static data member, which is definitely different from an instance variable in that it exists independently of any instance of the class.

jwenting 1,905 duckman Team Colleague

in Europe the ONLY weather related reason football (what Merkins call soccer) games are cancelled is if playing on the field in its current condition would destroy it or if there's such poor visibility it's impossible to play.
That usually means the field is too waterlogged, walking on it would churn the grass into the mud, killing it all, or dense fog or heavy snowfall that make it impossible to see the players from the stands.
If there's simply some snow on the ground, snowblowers can be used to clear the field before the game and during halftime.

Probably a game would also be cancelled if the weather conditions are extreme enough to cause a direct and accute health hazzard (heatstroke or frostbite almost guaranteed during the duration of the game).

jwenting 1,905 duckman Team Colleague

localhost may be there, it's just the name for "this computer I'm myself". But if there's no mySQL installed on it, or no database with the name in the connect string, or no user with those credentials who has access to that database, you're still not going to get a connection.

jwenting 1,905 duckman Team Colleague

Which you use depends heavily on the intended data security. If you want class instances to be resistant to outside change after creation, you will not create setter methods, setting fields exclusively through the constructors and/or internal calculation.

If you want/need your class' fields to be editable after instantiation, you need setter methods.
Having a constructor that takes initial values as an argument may or may not be prudent in such cases, depending on whether it is likely all fields will ever be available on instance creation.

Both are at times valid requirements, neither is universally bad or good.

jwenting 1,905 duckman Team Colleague

No, you're not going to get that to work.
There are several important reasons for that:

  • there's no "executable"
  • there's no mySQL running on localhost on the machines you're deploying to
  • there's no such concept as an embedded mySQL database in a Java application
  • don't ever hardcode a database location and credentials in an application, which you almost certainly have done
jwenting 1,905 duckman Team Colleague

my €200 Android phone does the same for me as would a €700 iPhone. Case closed.
Plus I can write software for it using the Android SDK on my PC. To do the same for an iPhone I'd need in addition to buy a €1700 Apple computer (replacing my PC with one that has similar specs would cost me maybe €700).

In all, a savings of at least €1500. What's not to like about that?

jwenting 1,905 duckman Team Colleague

So you want a List of Lists of integer numbers?
Why not make a List<List<Integer>>?

jwenting 1,905 duckman Team Colleague

1) wrong forum
2) impossible to answer without knowing a lot about your network and especially its security settings that you don't want known outside your organisation.

jwenting 1,905 duckman Team Colleague

According to the Chevy Volt spiel you should be able to drive the first 35 miles (after fully charging) electrically, then the gas motor kicks in.

Worse, they sell it as an electric car, never in the commercials mentioning the gasoline engine or mileage at all. The only hint it's not a real electric is the note that when the batteries run dry something else kicks in (I think they call it a "range extender device" or something like that).
Pure and simple fraud if you ask me.

jwenting 1,905 duckman Team Colleague

If you are rich enough to buy one of those new electric cars, you most likely won't mind paying 8 to 10 bucks for gas/petrol.

The Volt has worse mileage than the average European non-hybrid car :)
The Leaf is terrible, no performance or range.

I drive a hybrid myself, without the tax credit I wouldn't as without it the cost of purchasing, maintaining, and driving one would be higher than that of a one class smaller regular car, which for me is still large enough, a regular car that is more fuel efficient btw..

jwenting 1,905 duckman Team Colleague

There is no "best". Any such lists are either subjective and/or based on who paid the person creating the list the most money to be on it.

jwenting 1,905 duckman Team Colleague

Which IS better?

you still don't get it? NEITHER is "better" in general. For a specific scenario one or the other (or neither) might be preferred, but there's no overall "better".
Unless you include REXX of course.

jwenting 1,905 duckman Team Colleague

REXX

jwenting 1,905 duckman Team Colleague

most hobbyists (which is most of the people here) don't have access to the tooling needed to use asp.net, hence they tend to ignore its very existence.
The Microsoft "hatred" many religiously claim doesn't help (all the while using Windows, MS Office, and other Microsoft products...).

jwenting 1,905 duckman Team Colleague

We discussed personal websites, not business solutions :)

OP was talking about a big website that would possibly need to scale in the future. That's business talk (or an overinflated expectation of future developments in his traffic) ;)

jwenting 1,905 duckman Team Colleague

Sorry of course it is yearly.

why of course? Depending on your needs you may need to pay tens of thousands a month :)

jwenting 1,905 duckman Team Colleague

Offering an opinion and a reason for a choice is never wrong.

in this case, the reason is utterly bogus and thus wrong.

jwenting 1,905 duckman Team Colleague

wrong argument. The exact same thing you claim is the reason .NET is the one to go with is also true for Java :)

jwenting 1,905 duckman Team Colleague

see your compiler documentation. That would be highly system dependent.

jwenting 1,905 duckman Team Colleague

if you use JSP you don't need to change web.xml and typically don't need to restart the server.
Even if you do change web.xml you would just have to redeploy the web application to the server, causing a typical downtime of no more than a few minutes, easy to schedule for night time hours when visitors are unlikely to be inconvenienced.

The same is no doubt true for php as well.

jwenting 1,905 duckman Team Colleague
Fatal Error: NoCodeTagError at: line 1. redo from start
jwenting 1,905 duckman Team Colleague

Using exceptions to catch and handle bad input is ONLY good if either that input is to cause an application crash OR if you have a dedicated framework in place to handle such exceptions at a higher (central) level.
The latter is rarely if ever the case in a small homework assignment.

jwenting 1,905 duckman Team Colleague

if you can't even come up with ideas, finding solutions will be not just difficult, it will be impossible.

jwenting 1,905 duckman Team Colleague

you fail. It's YOUR job, YOUR research, not ours.
So it's YOUR job to come up with ideas, not ours to tell you what to do.

jwenting 1,905 duckman Team Colleague

easier still (and much more secure) to just buy one of the plethora of available commercial products to handle license key generation and distribution...

jwenting 1,905 duckman Team Colleague

with disk images and/or virtual machines, it should be a breeze.
Just make a vmware image, and for each candidate remove the used image and put a new one with the same name in its place.

Of course if you're inviting a thousand people over for the test your recruitment process is fundamentally flawed, as 990 of them should have been set aside before ever getting to that stage.

jwenting 1,905 duckman Team Colleague

That is for lazy idiots that cannot bother to read link from documentation. If you can't be bothered now, what will you do latter when you must read stuff???

post a thread here asking for videos to show what he needs to do?

jwenting 1,905 duckman Team Colleague

requirement #1 would be a fully functional brain.

jwenting 1,905 duckman Team Colleague

is it still open in a debugger somewhere maybe?

jwenting 1,905 duckman Team Colleague

no, if you want it cheap you have to sacrifice quality, accept longer and more frequent downtime, less performance, things like that.

jwenting 1,905 duckman Team Colleague

bandwidth, power, failover, 24/7 monitoring, all costs money. That's a big part of any hosting contract, do you have the expertise to do all that yourself?

Java hosting is generally expensive because it tends to start with the moderately high-end packages which are aimed at businesses that need high performance, storage, and uptime guarantees.
To create those yourself will cost you something similar.
If you're happy with lower specs, hosting a JBoss server and a mySQL (or some other open source dbms) somewhere can be done cheaper, but of course your bandwidth and uptime will suffer.

jwenting 1,905 duckman Team Colleague

that error means the linker cannot find some or all of the libraries it needs to do its job, you'll need to check your compiler/linker documentation and installation to figure out how to make those known.

jwenting 1,905 duckman Team Colleague

as you're having a requirement for scalability, php becomes a poor choice (it's generally less (easily) scalable and maintainable than other technologies).
Of course it all depends on how scalable it needs to be, both JEE and ASPx are designed for scaling into the near unlimited requests per second :)

Apart from that, much IMO depends on the available hosting environments, existing knowledge with the customer, and things like that far more than which is "better" as both can be used to create much the same things with similar effort.
Given free choice I'd employ JEE because I'm far more familiar with that than with .NET, but that's not related to technical issues but personal expertise.

That said, JEE hosting tends to be more expensive, with ASP development requiring more expensive tooling.
The tooling is your cost, the hosting that of your customers.

jwenting 1,905 duckman Team Colleague

more complete explanation:
"String" will refer to a String constant on the String constant pool.
" String " refers to another String constant on the String constant pool.
" String ".trim() refers to a String instance on the heap.

The left and right operand of your comparison then are two different String instances. The == operator compares whether two object instances refer to the same instance, not whether they have a content identity (iow, whether two object instances are identical on a field comparison).
the equals() member method (as indicated in the previous answer) does that.

== will work for low Number instances referring to Integers and Longs because it has been specifically overridden for that purpose, but that's an exception to a very strict rule.

jwenting 1,905 duckman Team Colleague

done ranting yet? I hope your "long paper" is more coherent than is this post, as I can't make heads or tails out of it.
And oh, you're wrong.

jwenting 1,905 duckman Team Colleague

too many things can go wrong here, impossible to say what you did wrong...

jwenting 1,905 duckman Team Colleague

it will give the correct answer, for some definition of "correct answer".

jwenting 1,905 duckman Team Colleague

You're using inner classes, the XXX$YYY.class are inner classes to XXX.

jwenting 1,905 duckman Team Colleague

do learn to use your tools. You NEVER run the JDK tooling from the installation directory.
Run them from the root of your source directory, setting the appropriate environment variables to point to the JDK tooling, and the appropriate commandline parameters for the compiler to direct its input and output directories as well as its classpath.

Documentation for both is available with your tooling and operating system.

jwenting 1,905 duckman Team Colleague

seems skilly likes to troll...
Got a nice bridge for you, skilly.

jwenting 1,905 duckman Team Colleague

If I wanted a lecture in jihad appeasement from the politically correct, I would have requested one. I'm not interested in discussing the issues. Maybe one of the members has the guts to offer up something on the requested subject.

no, typical of your leftist ilk you just want people to bow to your opinion and march in line to the gas chambers when they don't agree with you.

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

The EDL are racist hate-mongers.

Wrong. As a group they're not. Sadly there's some of those people among their membership, but they're not the majority and the majority is trying to keep/drive them out where they appear.
Of course the press represents them as far right radical racist anti-semites, but then again the press themselves are far left radical racist anti-semites.
They just champion other races, mostly blacks and asians rather than native Europeans (and the EDL at heart is colour blind, remember, it's just a small portion of the membership that gives the entire organisation a bad name).

jwenting 1,905 duckman Team Colleague

ok, so the error happens every day at the same time.
That hints at something outside the application, most likely either in the database or the connection pool.

jwenting 1,905 duckman Team Colleague

water is my beverage of choice every day of the week. I don't drink alcohol by choice (I don't like it...), I've abandoned all drinks containing sugar (high carb food/drink causes me chronic fatigue plus I could loose some weight, and that includes milk), and I can't stand coffee.
Leaves pretty much water and sometimes a cuppa tea. And I don't miss it, tbh.

jingda commented: Healthy Choice +0