jwenting 1,905 duckman Team Colleague

still lots of Java 6 code out there, thank you very much.
In fact many companies are still working to update their products to be compatible with Java 6, and some are as yet in the process of upgrading to 1.5 (yes, 1.4 code is still out in the wild in large amounts, even if some of it now runs on 1.5+ JVMs).

jwenting 1,905 duckman Team Colleague

hmm, the old MS DOS batch scripting language, quickly followed by IBM Advanced BASIC. That was back in 1984, when computers were real computers, hernias caused by trying to lift computers were real hernias, and portable computers were portable by virtue of having a carrying handle, didn't need special bags (not that there were bags large or strong enough to carry them around in).

jwenting 1,905 duckman Team Colleague

That would be IF they believe in science or are aethiests...

I don't "believe in science". Science is, it doesn't care whether people believe in it or not. That doesn't make it any less real or valid.
Unlike religion, which exists solely on the premise that people believe in it.

I'm not however an atheist, I don't deny the existence of god(s) and I'm certainly not religious about it (which many atheists are, they have a religious belief in the non-existence of god(s), believing it without any evidence to the contrary), I just won't accept their existence based on nothing more than hearsay and unsubstantiable claims from religious people that basically run like "god exists because it is written here in this book that claims it is true based on its claim that it was written by god who claims to always speak the truth", iow circular reasoning.

jwenting 1,905 duckman Team Colleague

you declare "row" to be null, but never create any instance before you try to call methods on it.

HSSFRow HSSFRow = sheet.getRow(i);
HSSFRow row=null;
int id = (int) row.getCell(0).getNumericCellValue();

My guess is what you actually want to do is the following:

HSSFRow row = sheet.getRow(i);
int id = (int) row.getCell(0).getNumericCellValue();

haven't checked the rest of your code, but that's the obvious problem you're running into here.

jwenting 1,905 duckman Team Colleague

the driver is provided with the JVM (IF you're using a Sun/Oracle JVM). The error here is the connect string which is fundamentally flawed.

As an aside, using the bridge driver and Access databases is not to be recommended, the JVM comes with its own embedded SQL database these days, see the documentation.

jwenting 1,905 duckman Team Colleague

I don't share your optimism... It's better not to learn anything than to learn it in such a broken fashion that you're going to need more time to unlearn the bad habits than it took to acquire them in the first place.

jwenting 1,905 duckman Team Colleague

if you've not written that, you've not programmed it so you've not started to program in Java, have you?
Do your own homework, don't expect to ever learn anything just sitting back and hoping that others will do it all for you.

Pobunjenik commented: Most people at in my semestre need this advice. +2
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

something tells me you wear clothes ... why? didn't God create you naked? aren't you shaped in his image? it's called common sense to try and improve yourself, and help others doing so.

Always have to laught at that one. Man was created in God's image, but he has to cover himself because he is supposed to be ashamed of his naked body.
So Man is to be ashamed to look like God? That doesn't bode well for God, does it?

ddanbe commented: Good point! +0
jwenting 1,905 duckman Team Colleague

God is the only cure to all illness and i'll be happy to DIE fighting for the
things i believe and how god really affected my life

so you refuse all medical care when you get sick? I seriously doubt you'll have that strength of faith when you're screaming out in pain after an accident that leaves you with a broken bone sticking out through your skin. or a potentially terminal infection eating away at your intestines.

We'll see how deep your faith in being miraculously healed by a god you deny gave us science and medicine is when something like that happens to you.

jwenting 1,905 duckman Team Colleague

But What im trying to say is Science has Both Good AND Bad effect.

Science is neither good nor bad. What people do with the knowledge science provides may have good and bad effects, but even that usually depends on the impact those effects have (e.g. a nuclear explosion is neither good nor bad in itself, it's what it's used for that can have positive or negative consequences (or a combination of both).

jwenting 1,905 duckman Team Colleague

When the morning comes,
Only the wind and rocks remain the same.
The rising tide washes away the past,
leaving the sand, a new page to be written on.

An alltime favourite saying of a freshly deceased very close friend of mine.

Rest in peace my friend, you will not be forgotten.

jwenting 1,905 duckman Team Colleague

my best friend with whom I'd spent on average about 10 hours a day for the last year, who pulled me out of depression with starting ideas about suicide a year ago, died last friday.
She will be sorely missed, I will never forget her nor the good times we had together.

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

Just pick one. It's better to start with something than to sit idly by and wait for the ideal learning material or path.

as long as it's not written by Herb Schildt...

jwenting 1,905 duckman Team Colleague

employers must redouble their efforts if they are to attract and hold on to skilled employees as the sector grows

which it doesn't, hence employers have no incentive to increase pay and benefits as employees aren't going to voluntarilly pack up and switch jobs in a playing field where the differences in pay between companies are marginal at best and a switch would be bad for your job security.

Last year Tech employees felt they were working the equivalent of one and a half jobs, and it’s clear teams are still as lean as possible.

so what else is new? Death marches, midnight marathons, and understaffed teams have been a constant in the software development industry for decades, at different points either for lack of potential hirees, lack of funding, or both.

Workload management, alongside professional development, should be high on an employer’s agenda for maintaining morale

and recognition... All too often programmers end up being blamed for every failure and problem in a company, but get no praise when things go right, that instead being showered on sales, marketing, and management.

jwenting 1,905 duckman Team Colleague

A DLL is not (usually) "encrypted". It's compiled code, there's no decrypting it to get something you can read and comprehend.

You can TRY decompiling it BUT

  • it's very likely to break your license to use the product the DLL came with (if not, it'd have come with source code)
  • you'd be highly unlikely to get anything you (or most any "normal" human) would understand to the level it'd be useful knowledge
  • there are better ways to figure out what a DLL does, IF they have public access points and you have the tooling to read them (which most compiler toolkits that can generate software that can interact with DLLs will provide).
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

But I don't think the middle east respects april fool's day.

As most of them use a different calendar, don't have April on it, and won't have a month crossover on what's the first of April in the rest of the world most years, probably not :)

In other countries it's highly individual. Personally I don't do it, and find most of the "jokes" that are done less than funny (like the kid who was thrown on a bonfire here and left to burn to death as a joke, which would have ended in worse than full body 3rd degree burns had it not been for bystanders).

jwenting 1,905 duckman Team Colleague

Dialysis doesn't have to cause bone problems IF accompanied by a diet to compensate for the loss of minerals.
Problem is most people (including most kidney patients) refuse to eat a healthy diet, and sadly a lot of dieticians and physicians alike don't take the trouble to find out what a healthy diet is either, instead just prescribing the mantra "low fat, high fiber" they've been spewing out for decades to all their customers irrespective of physical and medical background.

So we have patients getting bad advice about the diet they're to follow, then getting osteoperosis because of the dialysis and getting that treated with pills which require more pills to counter the side effects when a diet with a bit more calcium and potassium (probably) would have prevented the problems before they got started but their dietician was so obsessed with the "low fat" that she ordered them on a diet without any dairy products (or worse, was a vegan and ordered the patient on a vegan diet not because it is good for the patient but because of her own personal lifestyle convictions).

jwenting 1,905 duckman Team Colleague

For future reference: Netbeans is more frequently encountered in the wild than jCreator, much more frequently, so if you want to learn marketable skills, learning Netbeans will be a better investment than learning jCreator.

jwenting 1,905 duckman Team Colleague

If your code is intended to enter the if block half the time at random, just use

actually, there's no guarantee it will be executed half the time, or anywhere near half the time. That's what random means :)
Over an indefinitely long number of executions most likely it will be roughly half the time, but over any finite number there's no such statement as can be made except that the more iterations, the more likely it is to approach 50%.

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

yup :) pretty nifty little language, if rather localised in its application.

jwenting 1,905 duckman Team Colleague

What you need to do is first of all set some priorities. Dont' chase bug counts like a headless chicken as, as you found out, it won't work.

Which product is closest to a new release? Start getting that one in order, probably (unless you've a critical patch to make for one of the others to keep a major customer happy).

Once that's stable enough to ship, repeat for the next product, etc. etc.

Get to an overall more or less stable platform that way, THEN start worrying about getting rid of trivial and minor bugs.
You might even appoint one or two people whose sole task will be for a few weeks to sift through the mass of issues and filter out those that can be safely discarded or shifted to the backlog as "nice to haves"

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

The Sun (now Oracle) code conventions for Java are so universally accepted that it makes little sense to deviate from them without very good reason (working in an environment with a very large investment in some other technology where a smithering of Java is used on the side might be a place to do so, using the common conventions from that platform instead, but even there I'd advocate using the Java standards for Java most likely).

Not only is it good for the learner to get used to the conventions 99.99% of all Java code being produced follows, and which he'll almost certainly be expected to adhere to for the duration of his career writing Java code, but what code he writes and needs to be maintained by others will be much easier to read and maintain by those others if it is written in a format they instantly recognise (which is the reason for code conventions after all).

So just adhere to the Sun conventions, it'll safe you a lot of trouble later on.
And learn to use whatever is the commonly accepted standard for a platform when using that platform. You're using Java now, don't insist on using the Sun Java conventions when for example writing Fortran next year, use Fortran conventions when writing Fortran.

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

remember that Google analytics generates traffic/consumes bandwidth as well :) Plus many users (including me at home at least) have it blocked for privacy reasons.

jwenting 1,905 duckman Team Colleague

not replaced :) Just haven't had much interest in coding and computers in general lately. Getting the bug again though.
Now, if you were to add an LSL forum...

jwenting 1,905 duckman Team Colleague

and that's why you should never construct an SQL query like that (or rather one of the reasons).
Use PreparedStatement instead.

jwenting 1,905 duckman Team Colleague

if you don't know what you're looking for, how would you know when you've found it?

simplest form of course is

public String dcrypt(long input) {
    return "Hello";
}

:)

jwenting 1,905 duckman Team Colleague

" for now we are looking for a GUI JAVA programming software, if there is we will try to study the codes."

wrong attitude. Java is code centric, not a click and drag programming language (neither is VB6, but you could make many people believe it was if all you wanted was something very simple indeed, not much more complicated that kids would learn in school which is probably why you think that's all you need).

jwenting 1,905 duckman Team Colleague

you seem to misunderstand my point :)

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

complete bollocks that most users will just wait for the MONTHLY update message. Microsoft releases updates once a week through Windows Update and critical fixes more frequently in emergencies.
As most Windows machines come with Windows Update preconfigured to automatically download and install, most everyone will have the fix within at most a week of it being released.

The only exception might be corporate machines where the updates are handled by a company run server that produces a package of its own with multiple updates from several vendors and pushes that at whatever intervals (or at the push of a button by a sys admin), but those tend to have pretty sturdy firewalls and up to date AV products at multiple levels to block things like this.

jwenting 1,905 duckman Team Colleague

sounds like sandboxie, whatever it is, is starting some background processes in Windows which hang, blocking sandboxie from completing the loading of the application.

I agree this is suspicious activity and could be a trojan (not virus most likely). But it could also be benign and just buggy, like it is looking for some system resources and failing to find them, but instead of reporting that failure keeps looping in an attempt to find them time and time again.

Best you take this up with the creators of "sandboxie".

jwenting 1,905 duckman Team Colleague

And do realise that as soon as you filter the numbers to (for example) not have duplicates they're no longer random.

jwenting 1,905 duckman Team Colleague

don't like to roseindia, it's the worst excuse for a programming help website out there.
Or if you link to them, link to them as an example how not to do something.

mvmalderen has the correct answer, unless of course you are receiving a different binary representation from the one that Java is expecting (little endian vs. big endian, etc.).

jwenting 1,905 duckman Team Colleague

hmm, 2 versions of IntelliJ, 2 of Eclipse, Netbeans, and Visual Studio currently installed side by side :)

jwenting 1,905 duckman Team Colleague

hmm, write a modular system, turn each of the current functionalities into a module and plug them all into the system.
Something like OSGi comes to mind, maybe with an Eclipse based UI (or a web UI, depending on the nature of the intended system).

jwenting 1,905 duckman Team Colleague

nope, any quality florist could order anything you want for you and get you higher quality fresh flowers in the arrangement you want in a few days.
And probably cheaper too.

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

most larger companies already have that, an intranet that can be accessed by employees (at least in part) over the internet by logging in through a firewall.

jwenting 1,905 duckman Team Colleague

may take a long weekend with easter, but that's about it until at least June or more likely September/October...

jwenting 1,905 duckman Team Colleague

another oldtimer checking in again, once in a while :)
Don't spend nearly the time on the web that I did in the past, returning to books, my first, last, and only true love (and second life, now there's a time eater, and you can program in it).

jwenting 1,905 duckman Team Colleague

There is, or rather was, Visual J++ which had virtually the same user interface as did VB6. But luckily it's been removed from distribution years ago.

You'd best get used to a different style of working, it'd do you good.
The IntelliJ community edition has a pretty good UI builder, but of course you're not going to be able to create an entire working application just by making some screens, you need to create the code that makes those screens do useful things as well and that's where you really will need to know Java.

jwenting 1,905 duckman Team Colleague

what complete bollocks. These vulnerabilities are extremely rare and hard to trigger, and I seriously doubt Oracle is going to pump out new JVM versions 3-4 times a day, which is the rate of database updates for serious AV products.
Or do you suggest most people update their AV product only when they get a new PC, which is roughly how often most people update their Java plugin?

Last year I was still maintaining applications written for 1.4 JVMs, the customer was considering an eventual upgrade to 1.5 sometime mid 2013 at the earliest.

I find it very strange that we're getting this flood of high profile "security warnings" about Java only AFTER Oracle has taken over the product, usually from companies that look like they are closely tied with those that would benefit greatly from Oracle's demise...
Of course a lot of the core dev team responsible for the Java platform left Sun during the takeover, which may have something to do with it, and the increasing reliance of amateurs adding "fixes" to the openJVM codebase can't be helping either.

jwenting 1,905 duckman Team Colleague

not only is it idiotic to claim people should stop using Java for development because of potential applet security problems (applet code is rarely used, and then mostly in intranet and extranet applications where security is provided through other means) but the claim that an applet "has no business using JMX in the first place" is just as idiotic. There are very valid reasons for an applet to have access to that, not the least of them being applet based application server administration consoles.

I strongly suspect most of these stories are thought up by people who have a vested interest in seeing either Java and/or Oracle lose market share.