jwenting 1,905 duckman Team Colleague

Norton replaces some Microsoft files when you install it with its own and doesn't remove those when you uninstall Norton (at least some Norton products do this, maybe not all).

The ONLY way to get rid of those products is to reinstall Windows from scratch (format harddisk, install Windows), just running a system repair won't do it as the Windows installer won't notice the files are not its own.

jwenting 1,905 duckman Team Colleague

A. Lack of participation in these activities will not prevent the problems that the programs in question are designed to protect against. Porn sites are not illegal, but they have plenty of malicious code. Email? Instant Messaging? All very legal, yet breeding grounds for malicious activity. What are "illegal activities"? Not sure, but P2P and "illegal activities" are not the source of our problems.C. Proper use of the program (practicing "safe use"). "" as defined as ensuring what you're downloading is the true intended download by checking file properties, user ratings, as well as just being overall knowledgeable about the intended file will keep you almost as safe as not using them at all.

Since when does XP built in firewall "suffice". Not sure if you're aware, but the XP firewall only provides protection against incoming connections. I am NOT disputing this firewall's incoming protection, and by no means is this a BAD firewall, but how exactly are you going to protect against the outgoing communication from malware, spyware, key loggers, ect..? Here I'll help, with a better firewall and a variety of adware/spyware/malware removers and products to prevent infections.

So let me get this straight, all you have installed is an antivirus program and XP firewall?

What's your IP address, again?

J_

1) A lot of the stuff you get over P2P networks is itself infected, even if the P2P client isn't.
2) Most of that stuff is illegal content
3) If you use common sense you …

jwenting 1,905 duckman Team Colleague

English and Dutch versions of KAV 4.5 and 5.0 are not affected by this in my experience (having run them successfully under XP SP2).

The only trouble I have found thus far is that the system scan hangs the machine when attempting to scan <winroot>/inf/unregmp2.exe
This problem has persisted over several 5.0 versions so far on one machine, others seem unaffected, making me believe it's to do with the exact version of WMP installed on the machine in question (10.0 on the machine that fails, 9.0 on machines that have no problems).

But of course always use the latest version, which currently is 5.0.225 or maybe 5.0.227 (which I've seen though not on their website).

We've KAV running on about a hundred machines, all XP SP2, and at dozens of customer sites which also run mostly XP SP2 (a few may run W2K still).
Problems are rare, out of our own machines only 2 or 3 have any trouble and that's to do mainly with KAV sometimes hanging during a full system scan like I said, never trouble with the realtime protection.

jwenting 1,905 duckman Team Colleague

The logical choice would be to use the ternary operator here (check your language tutorial to find out what it is and how to use it).

You should also really consider cleaning up your program, it is terrible to read making it hard to understand and maintain.

jwenting 1,905 duckman Team Colleague

Well said, I see you've been through hell and lived to tell the tale as well.

jwenting 1,905 duckman Team Colleague

If you want to WRITE software, you're in the wrong department with your study.
You're learning to write ABOUT software, mainly sales brochures :)

I fully agree that you can't manage a development team properly without having time in the trenches, too many people try and make miserable managers because they don't understand what makes their people tick and can't give estimates on performance and timelines worth a damn.

Good languages to learn on the side are Python and Ruby. They're relatively small and easy to learn so they don't take up too much time next to your main business.
Python is even used here and there (Ruby is too, but mainly in Japan).
Apart from those you'd have to look at things like Java, C++, and Cobol.

jwenting 1,905 duckman Team Colleague

As a professional you're a student as well. If you stop educating yourself you'll soon find yourself with outdated skills and unable to get a job if for whatever reason your current job disappears.

jwenting 1,905 duckman Team Colleague

I've only been part of a group filing to get our employer declared bankrupt.
They'd not paid our salaries for 5 months and we needed that bankruptcy to have any chance at all to get unemployment benefits (and maybe some of our unpaid salaries).

Not pretty, having to do that to a company you worked for happily for 5 years. Doing it to yourself must be even worse.

jwenting 1,905 duckman Team Colleague

From the command line simply type "jar" to get an explanation on how to use the command.
There's also a manual provided in the JDK documentation kit.

jwenting 1,905 duckman Team Colleague

Don't know how to do it from Netbeans. Should be mentioned in the documentation somewhere if it's possible.
If not check the JDK documentation for the jar command which tells you how to do it by hand (which you should learn to do anyway, you won't always have netbeans available).

jwenting 1,905 duckman Team Colleague

Bankruptcy will stay on your credit sheet a LONG time, you'll effectively not be able to get another loan for anything, possibly for the rest of your life.

jwenting 1,905 duckman Team Colleague

You can't, period.

There are some tools that will create exe-wrappers but they effectively just pack an entire JVM in with the classfiles.

Create an executable Jar instead, that can then be run on any computer that has a JVM installed by either double clicking on it (if the machine is so configured) or by using the java -jar <somejar.jar> command.

jwenting 1,905 duckman Team Colleague

The Javadoc is accessible from http://java.sun.com but you should really download and install it.

Like with all Windows you can call setBounds() on it to set the position and size.

A JDialog cannot exist INSIDE another component, it can exist as a child of one.

jwenting 1,905 duckman Team Colleague

It's not that bad Dani, just take it one day at a time and don't tell anyone ;)

jwenting 1,905 duckman Team Colleague

why do you have a shift key on your keyboard? and an enter key?

jwenting 1,905 duckman Team Colleague

Culture: if you spend your time downloading pirated music, movies, and especially software (which in many groups is seen as "kewl") you're far more likely to get infected with all kinds of nasty stuff than when you stay legal.
Same thing: if you are part of the anti-Microsoft crowd (another "kewl" thing to be) and don't trust updates to Windows because you think Microsoft is out to get you, you're almost guaranteed (as you'll also be in the first group of pirates most likely) to get all kinds of nasties.

Then there's chance. It's always possible someone will find an exploit Microsoft hasn't yet found and fixed (rare but it can happen) and then goes out and finds your machine online with an open port somewhere where he can get in.

jwenting 1,905 duckman Team Colleague

No problem, we all have our blonde moments :)

garbage collection is indeed a tricky issue even without having to look at what happens when there are multiple classloaders, static members, maybe finals, inner classes, etc. etc. involved.

jwenting 1,905 duckman Team Colleague

Happy birthday to all of you. Still 2 months to my 35th, but it's getting closer all the time :)

jwenting 1,905 duckman Team Colleague

I'm sure there are books about it, but I don't have any references at hand (I've never had a need to do that, or I would have).

In general you don't need to worry about such things. Just never assume that a static field has the value you set in it a minute ago and you should be fine :)

jwenting 1,905 duckman Team Colleague

The point is that in Java the value is NOT undefined as long as the garbage collector has not removed the Class object for class Inner.

According to the JLS:

If a field is declared static, there exists exactly one incarnation of the field, no matter how many instances (possibly zero) of the class may eventually be created. A static field, sometimes called a class variable, is incarnated when the class is initialized (§12.4).

12.4 Initialization of Classes and Interfaces
Initialization of a class consists of executing its static initializers and the initializers for static fields (class variables) declared in the class. Initialization of an interface consists of executing the initializers for fields (constants) declared there.
Before a class is initialized, its superclass must be initialized, but interfaces implemented by the class are not initialized. Similarly, the superinterfaces of an interface are not initialized before the interface is initialized.

So it doesn't matter whether instances of the class exist at any time, the field will exist as long as the Class itself has been loaded.

An implementation of the Java programming language may unload classes. A class or interface may be unloaded if and only if its defining class loader may be reclaimed by the garbage collector as discussed in §12.6. Classes and interfaces loaded by the bootstrap loader may not be unloaded.

Makes clear that that Class object will indeed never be unloaded if created by most classloaders.
Only if the application creates its …

jwenting 1,905 duckman Team Colleague

And what did you learn from turning in something someone else made for you?
NOTHING.

jwenting 1,905 duckman Team Colleague

does it freeze only during printing operations and unfreeze again when printing is complete?
If so that could be entirely normal, some printer drivers like to eat up all your CPU cycles.

jwenting 1,905 duckman Team Colleague

The filter works on a blacklist which you set up as you block senders.
It works well but is not intelligent enough to anticipate what is spam and what isn't.

For a more intelligent solution (which so far is 100% effective on my system after a few weeks of training) is Spambayes.
Look for it at sourceforge.

jwenting 1,905 duckman Team Colleague

Contact CS for your manufacturer. Most likely your drive is broken and needs repairs.
I had the same with 2 of my DVD writers before finally getting one that worked.
One wouldn't read or write DVDs, the other failed to write CDs (but could read them) but worked fine with DVDs.

jwenting 1,905 duckman Team Colleague

If you indeed have that deal you should be able to contact the copyright holders and get the audio sent to you as a CD or DVD track.
Far easier and legal...

Remember it's very easy for people to make unsubstantiated claims to fool others into helping them do something illegal, and the older people here have probably heard most variations over the years.

jwenting 1,905 duckman Team Colleague

I don't trust mags like Computer Shopper that are wholly paid for by advertising.
They'll recommend whichever product gives them the most money to advertise it...

Having tried a variety of products over the years (Norton, McAffee, AVG, PC-Cilin, Panda, and several others) I've settled down on Kaspersky.
Excellent product, and excellent support (OK, I get in-house support as we use it at work and have a direct line to the manufacturer as a reseller).
Not the cheapest, and no nice flashy user interface but who needs that anyway?

If you don't go using P2P crap and refrain from other illegal activities you should have little problems anyway. In those cases your Windows XP built in firewall with a good virus scanner (to detect the incoming email virusses from your friendly spammers) should suffice.

Most people also don't get enough spam to warrant expensive anti-spam software, especially since many ISPs nowadays have spamfilters installed on their servers which catch anything consumer grade spamcatchers would catch.
For high capacity users you're likely running your own mailserver with built-in features, or else you can simply use Spambayes (look for it at sourceforge).

jwenting 1,905 duckman Team Colleague

String has a method length() to determine its length.
Call that on both Strings and compare the results.

jwenting 1,905 duckman Team Colleague

Say a static member references a List.
That List contains references to several objects, which have no other references left.

In that case, when the reference to the List disappears because the Class object gets garbage collected, the objects referenced in that List get themselves garbage collected as well so more memory is freed than just the memory footprint of an empty List.

jwenting 1,905 duckman Team Colleague

"I have been sdudying using the suggested books but I still couldn't find the correct answer to some of the above questions. "

That's because you're supposed to THINK instead of just looking through books hoping to find the answer laid out literally.

jwenting 1,905 duckman Team Colleague

Stay in the AF and get yourself a TDY in New York around that time. Free transportation ;)

jwenting 1,905 duckman Team Colleague

JDBC drivers are usually dependent on specific versions of the database engine in use.
Find out what version of mySQL you're using and what driver you need for it.

jwenting 1,905 duckman Team Colleague

Sounds like an IDE reporting the project isn't set up to support J2EE. Check your IDE manuals.

jwenting 1,905 duckman Team Colleague

Best practice can be anything from code layout to algorithms and design patterns used to business processes and procedures depending on the level you're talking at.

Use of UP for software design is a best practice, use of version control, unit testing frameworks, etc. etc.

jwenting 1,905 duckman Team Colleague

You never know ;)
Was wondering when you'd gone for the exam though.

jwenting 1,905 duckman Team Colleague

as to filtering mail: why not filter on the address they're coming from. I'd guess that'll always be the same.

RSS: add the forumID to your URI. http://www.daniweb.com/techtalkforums/external.php?type=rss2&forumids=9 would give you the Java forum.

jwenting 1,905 duckman Team Colleague

yes, making main static may have been the worst design decision James and his team made when designing the language.
Or maybe it was providing for static stuff at all :)

jwenting 1,905 duckman Team Colleague

You can't create instances of an abstract class. Read up on the why of abstract classes and you should understand how to use them.

In short: an abstract class is a designated root for a class hierarchy, providing a common set of method implementations for functionality to be shared by all classes derived from it.

jwenting 1,905 duckman Team Colleague

Buy yourself "Head First Design Patterns" by Eric and Elisabeth Freeman (0596007124).

It's an excellent book that explains not just the patterns but why and how to use them.
I knew the basic idea before reading that book and could recognise them, but couldn't for the life of me figure out how to apply that knowledge consistently.

jwenting 1,905 duckman Team Colleague

I've a very good galery of my work at http://www.usefilm.com/staff/duckman
Don't need another one :)

jwenting 1,905 duckman Team Colleague

Static methods are not OO, and therefore not recommended by good OO approaches (which are best practice).

That's not to say they don't have their uses, but in strict OO design you will not find them.
At most some singletons and methods which have no instance specific functionality may be turned into static methods at some point if such yields superior performance.

Of course in reality that's often factored into the design as people get experienced enough to make such decisions at an early stage, but it's only the absolute beginners who make everything static, effectively abandoning OO altogether.

jwenting 1,905 duckman Team Colleague

Sounds like you're not properly releasing database connections and your application is getting starved of them.

ALWAYS make sure you release any connection to your database in the same method you make it.
And you should best also use a connection pool for increased performance, usually appservers these days provide you with one.

jwenting 1,905 duckman Team Colleague

If you post only because you want to show off your number of posts this may not be the site for you...

jwenting 1,905 duckman Team Colleague

And indeed practice the test exams. I'd likely have gotten more than the 85% I did if I hadn't been fooled by the wording of some of the questions.
They're using a rather peculiar style here and there, quite apart from assuming you're a human compiler :)

jwenting 1,905 duckman Team Colleague

A JTable is for one use, what you want is served by the GridLayout.

jwenting 1,905 duckman Team Colleague

Check your sources. There's no guarantee that a Class object for a specific class will get garbage collected when there are no more references to instances of the class.
That means that a static member could survive during times when no class instances exist.

public class Tester1 {
    public static void main(String[] args) throws Exception{
	    Inner i = new Inner();
	    i.x = 1;
	    i = null;
	    Thread.sleep(1000);
	    System.gc();
	    i = new Inner();
	    System.out.println(i.x);
    }
}

    class Inner {
	    public static int x;
    }

will print 1 for example, had the static member disappeared because the Class object had disappeared with the last instance of the class it would have printed 0.
This is of course not quite conclusive as there's no guarantee the gc will run when called, but it's a good indication of why you should never rely on static members having their initial value.

jwenting 1,905 duckman Team Colleague

I've forgotten where I lived once in a while.
Could get there no problem, but couldn't remember the address or explain the route if my life depended on it.
Same with my phone number. I never call it, so I sometimes forget what it is.

Businesscards to the rescue :)

jwenting 1,905 duckman Team Colleague

Ah, and there's your problem.
You need to add the root of your output directory (where your classes will go once compiled) to your classpath.

Thought you'd know that by now, you've been using Java for a while.

One more excellent example of why you should not use an IDE before you can dream the commandline :)

jwenting 1,905 duckman Team Colleague

-sourcepath compiler flag sets the root of the source directory
-d compiler flag sets the root of the destination directory.

and you should set your classpath to include that directory, not the current directory in your case (as that in your case is another one, the one from which you started your compiler wrapper program).

jwenting 1,905 duckman Team Colleague

Ah, could it be you're not setting the compiler target and source paths?
. points to the directory you're executing the compiler from, which in your case is the location of the program you use to call the runtime compiler.

jwenting 1,905 duckman Team Colleague

Keep it uniform, might make people move between sections more.

I'm no fan of purple myself but it's better than pink :)