jwenting 1,905 duckman Team Colleague

Thanks :)

jwenting 1,905 duckman Team Colleague

Read up about MVC architectures, JSTL, Servlet controllers, and things like that.
O'Reilly's JSP book is a good start (get the latest 3rd edition).

Don't get suckered into using Struts. It's an overly complex monstrosity, to which there are far better alternatives (the main reason it is still prominent is the fact that it was the first and thus has a large installed base).

jwenting 1,905 duckman Team Colleague

Get good in math first, then try to apply that knowledge towards writing computer programs.

The program will never be better at it than the person writing it, it will only be faster.

If you don't know what the outcome should be, how can you know that what you get is correct for example?

jwenting 1,905 duckman Team Colleague

http://en.wikipedia.org/wiki/Geek

But generally people use it as an insult to hurt those who know about computers and get good grades in school while not being interested in what really matters to the ztupids (meaning girls, booze, sports, and dressing up just like them).

jwenting 1,905 duckman Team Colleague

yes, for quite some time now ;)

jwenting 1,905 duckman Team Colleague

You mean "it's only a matter of time before the Swedish government acknowledges that people have a right to determine how their work is distributed" I hope?
Because it sounds like you're actually defending blatant theft.

jwenting 1,905 duckman Team Colleague

George, your canned "your reply is very helpful, but do you ..." is getting rather annoying. It doesn't sound like you mean it at all, but rather just copy it from somewhere as an insult to those trying to help you.

jwenting 1,905 duckman Team Colleague

Complicated? If you think a basic loop is complicated you'd better give up now and look for employment as a bellboy in a hotel without an elevator.

jwenting 1,905 duckman Team Colleague

Now if you'd taken the time to write that program instead of getting someone else to write it for you you'd have figured all that (and more) out yourself...

jwenting 1,905 duckman Team Colleague

All that information is clearly and openly available from Sun's Java website at http://java.sun.com so I wonder why someone had to go and present it all to you?

If you're confused by the acronymophobia in Java, C is a disaster with a thousand mutually incompatible libraries to do things for all the myriad platforms for which you each need to write and maintain code and manage compilers and test installations.

jwenting 1,905 duckman Team Colleague

http://vivisimo.com/search?tb=homepage&query=JDIC&v%3Asources=Web

"JavaDesktop: The JDIC Project [new window][frame][cache][preview][close preview][clusters]
Introducing JDIC Desktop Integration for Java Applications June 1, 2004 Sun has launched the JDesktop Integration Components ( JDIC ...
www.javadesktop.org/articles/jdic/index.html-Lycos 2, Wisenut 2, Ask Jeeves 2, MSN Search 3"

"George Zhang's Blog: Where's JDIC Going? [new window][frame][cache][preview][close preview][clusters]
... of JDIC apps since all native code required will then be part of J2SE. The JDIC team is proposing to include a couple of JDIC features into J2SE 6.0 (Mustang) or 7.0 (Dophin). JDIC APIs have an ...
weblogs.java.net/.../archive/2005/03/wheres_jdic_goi.html-Wisenut 3, MSN Search 7, MSN 9"

10 seconds in a search engine :)

jwenting 1,905 duckman Team Colleague

That's not the language being restrictive, that's you not understanding the paradigms along which the language has been constructed.
You CAN do all that in C, but you'd have to use C to create a language parser or compiler that understood those things in a syntax of your choosing.
That's what was done when Stroustrup wrote C++, he used C to create a language to do things in ways that cannot be done in C directly, effectively allowing those things to be done (indirectly) in C anyway.

jwenting 1,905 duckman Team Colleague

Tiny little difference, Robertson didn't call for Americans to be murdered and he offered a public apology...

Justin seems to be only intent in causing trouble here.

jwenting 1,905 duckman Team Colleague

Please try to understand what debug information actually is...

Of course the deliverable will be different between compilation with and without debug information. That's the whole point :)

jwenting 1,905 duckman Team Colleague

http://docs.sun.com/source/806-3568/ncg_goldberg.html has the answers to that.
It's a must read for anyone working with floating point arithmetic.

Basically what you're seeing is the imperfection of the storage of floating point numbers in fixed precision numbers based on integers (which is how every computer stores them).

jwenting 1,905 duckman Team Colleague

By default the compiler includes debug information. You can add compiler flags to turn that off.
This is the reverse of how many C/C++ compilers work.

jwenting 1,905 duckman Team Colleague

hmm, you seem to be missing the w and h keys on your keyboard.

As to your "problem", your native program is probably setting the value to a 32 bit floating point number.
Double in Java is a 64 bit floating point number. Either use a 64 bit floating point data type in the native code or use float in Java which is 32 bit.

jwenting 1,905 duckman Team Colleague

In the cases you describe you're using a proxy for illegal purposes (namely bypassing legal restrictions on your internet access, whether you agree with those restrictions or not is irrelevant in this context).

A proxy can be useful (legally) only when you have multiple machines on a network that has less connections to a larger network (say the internet, but it could as well be any WAN) than there are computers on that local network.
In that case the proxy provides access to the wider network to the other computers on the local network.
Anything else is useless, especially using services that claim to provide "anonymous" surfing for "security" reasons. Like I said most such services are in fact scams run by identity thiefs (or have a severe risk of becoming so in the future).

jwenting 1,905 duckman Team Colleague

Personally I like TopStyle Pro (http://www.bradsoft.com).
No flashy WYSIWYDG (what you see is what you don't get) interface, but a solid high performance code editor.

And it integrates into Dreamweaver if you go for that kind of thing :)

jwenting 1,905 duckman Team Colleague

Read up on JDBC. It's quite simple once you get around to experimenting and learning a bit.

jwenting 1,905 duckman Team Colleague

Add a line df.setMinimumFractionDigits(2) before you format the results.
For good measure you may also want to add df.setMinimumIntegerDigits(1) to prevent 0.50 from being output as .50

jwenting 1,905 duckman Team Colleague

Where are you running the command from, in other words what is the current directory?

Logic says it should run the class in the JProc folder and not in any underlying folders unless they're part of a package you're calling.
So I assume you're actually in the JProc/JProcTim folder which would cause the class there to be used as it then has a higher priority to the one in the other folder.

jwenting 1,905 duckman Team Colleague

In all those events the outcome would have been quite different without US "interventionism", which is why I picked them.
I know full well there were others involved, in fact my own country was involved in ALL of them except WW1 on the side of the US (and was neutral in WW1).

jwenting 1,905 duckman Team Colleague

But my questions are more related to the site owners who take the risk and how do they stand to make any gain? Once again all I see is risk. While it may have been novel and neat for these guys to "get away with" sharing DVD and movie torrent downloads, they must know that a possible very bad ending is lurking across the oceans back in hollywood.

The 'getting away with it' is a big part of it. The thrill of being a reactionary against the Big Bad Establishment (read, Big Corporations and the Government) and flaunting the law without being caught.

For some there's real money in it as well. A colleagues son was arrested a few years ago when his internet use began to explode soon after getting cable.
The ISP flagged him for violating their fair use policy, when he didn't stop they took a look at what he was doing. He was downloading large amounts of Manga movies faster than anyone can watch them. A look at his website and email traffic turned up that he was burning those movies to DVD and selling them, at which point the whole thing was locked and turned over to law enforcement.

jwenting 1,905 duckman Team Colleague

Commonsense would tell you so, but practically making the act of downloading illegal would be impossible to police. Far more practical to simply make the possesion of illicit goods illegal, and leave it at that ;)

Common sense has never stopped a politician from making a law (which could be because of a lack of common sense on the part of politicians, but that's another discussion though a worthy one) :)

jwenting 1,905 duckman Team Colleague

That's not urgent. I've no such requirement.

jwenting 1,905 duckman Team Colleague

That's pretty much what a built-in function would have to do anyway so the performance will be identical (or likely even better, as custom code can anticipate things that generic code cannot) when writing custom code.

If you're concerned about performance you might want to consider caching the most frequently requested subsets, but unless your Map is very large indeed (think thousands of entries) the filtering should not take more than a fraction of a second.

jwenting 1,905 duckman Team Colleague

Let's see what US "interventionism" did for the world...

WW1, US "interventionism" prevented that war for dragging on for many more years.
WW2, US "interventionism" freed Europe from Nazi rule and Asia from Japanese opression.
Korea, US "interventionism" stopped DPRK agression in its tracks and made sure the ROK is the free and prosperous country it is today rather than the decrepit hellhole the DPRK is.
Kuwait, US "interventionism" threw out the Iraqi invasion forces and reestablished the legitimate government. It also put an end to Iraqi imperial ambitions.
Afghanistan, US "interventionism" caused the defeat of the Soviet invasion force, and in the second instance the demise of the opressive Muslim fundamentalist Taliban who were sponsoring lethal terrorists the world over.
Iraq, US "interventionism" brought down another oppressive dictator and we now have a fledgling democracy there.

That's just the more high profile instances of US "interventionism".
Of course the socialist press aren't interested in reporting things like they really are, instead blowing every little setback way out of proportion in order to make the US look bad and terrorists and dictators look good.

jwenting 1,905 duckman Team Colleague

no, I think he wants to return a part of a Hashtable based on some criterion related to the keys or values in it.
Hashtable doesn't have methods for that, it would be next to impossible to create a generic algorithm for it after all so Sun didn't bother.

It IS possible to write something for it yourself because you do know the specifics of your own data and how to extract the subset you want.

P.S. Don't use Hashtable unless you have a very good reason to. It's a legacy class only, HashMap is preferred and performs a lot better.

jwenting 1,905 duckman Team Colleague

applet security restrictions prevent you from reading anything from your harddrive.
You can only read files from network addresses on the same server (or more correctly (virtual) host) as the one where the applet resides.
As the applet is in your case not coming from a server it can't read anything at all.
Maybe if you place the applet and file in the same directory you can access it, but that would be due to VM specific laxness rather than official policy.

jwenting 1,905 duckman Team Colleague

You'd in that case have the worstcase scenario of 2 copies of the entire dataset, one in the immutable string in your Swing control, the other mutable in your StringBuffer.

It might be preferable to subclass your Swing control to work directly on a StringBuffer.

jwenting 1,905 duckman Team Colleague

all sort of help u can provide as soon as possible

Wrong! Ask specific questions to get specific answers. We're not here to do your thinking for you.

i have to deposite the project by 30 sept.

You'd better start thinking then!
I doubt you were given a large scale project to complete in little over a month so you've either a far narrower scope than I envision from your post or you've been wasting quite a while doing nothing.

P.S. Were the 5 keystrokes you saved yourself (not counting a few hits on the shift key) by using shorthand really worth making yourself look like an uneducated preteen kid instead of an aspiring professional?

jwenting 1,905 duckman Team Colleague

Justin, you're completely out of touch with reality.

Your assertion that the US government themselves blew up the WTC just to have a reason to invade Iraq is just too stupid to even contemplate for example, and comes directly from PLO textbooks.
The rest of your arguments make no more sense...

SC, it's not stupid to bash the bitch (nice alliteration :) ). She deserves no better, dishonouring the memory of her son like she does (she's no better than Hanoi John Kerry calling his crewmates warcriminals, in fact she's worse).

Did you know that there are less people killed in Iraq now each day due to violence than there are traffic victims in New York on the same day?

jwenting 1,905 duckman Team Colleague

gcc will never work under DOS, it's 32 bit only ;)

jwenting 1,905 duckman Team Colleague

VIM is great (it's what 90% of all VI installations are anyway :) ).
:s:1,$:/hello world/Hello World/g

jwenting 1,905 duckman Team Colleague

heap size is dependent mainly on the amount of memory available to the JVM.

Of course such huge strings are pretty useless. Remember Strings in Java are immutable so anything you do to them will create at least one duplicate (effectively creating another String of the same size every time you do anything with it that changes the data).

Best use either a StringBuilder or some other buffering system to hold the data in a more flexible manner.

jwenting 1,905 duckman Team Colleague

If you don't want to pay for an editor and you don't like VI (hard to imagine, but some people haven't seen the light) Eclipse is one of the best options (though not for beginners, jEdit or jExt are better for them as Eclipse like all IDEs prevents learning how to use the commandline tools by hiding all that from you which is a Bad Thing).

jwenting 1,905 duckman Team Colleague

C restrictive? In what way?
Apart from Assembly C is just about the least restrictive language you can find, you can do almost everything you want (if you know how of course). And for the very few things you might not be able to you can always link to Assembly modules.

jwenting 1,905 duckman Team Colleague

And even the act of downloading could be seen as aiding criminal operations which in many places is itself a crime.
Certainly the linking to and promotion of a criminal service is a crime.

jwenting 1,905 duckman Team Colleague

TC3 is NOT free, only TC1 is and I'd not advise that to anyone learning C++.
It's a pre-ANSI compiler which does not confirm to current language standards.
For the oldtimers and collectors it's a blast from the past, a reminder of the good old days.
http://bdn.borland.com/museum

The 5.5 compiler IS free and can be downloaded from here: http://www.borland.com/downloads/download_cbuilder.html
It's one of the best C++ compilers out there, has the highest ANSI compliance of them all (at least for the Win/Tel platform) and excellent performance.

Free registration required for all downloads. Borland is serious about not mailing you if you don't want them to.

jwenting 1,905 duckman Team Colleague

and it's what I'd likely do if I were selling software online...
Not just ban sales to countries which don't protect my rights but find ways to prevent my product from being used in those countries (IP checks to block out any IP number registered there, check on OS language to prevent it from being run on localised machines there, etc. etc.). Can't be airtight but would make it a lot harder for the pirates.

jwenting 1,905 duckman Team Colleague

or he made it past the introductory courses using the same tactics (let others do the work for him and cheat on any written tests) and now thinks he's a programmer.

Do your own homework kid, and as said if it's way above your head you've clearly chosen the wrong courses.

jwenting 1,905 duckman Team Colleague

The main reason Pascal is looked at like it is useless is because it has always had the image of being only for undergraduate students.
Students would learn Pascal, then "graduate" to "real" languages like C and Fortran when they got to graduate work.
They looked forward to those days when working in Pascal because it would mean they were getting near to graduation, then once working in C look down on Pascal because you are meant to look down on undergrad students and everything they do.

When those people entered the marketplace they took that attitude towards Pascal with them.

That's the situation today still, except universities have changed and are now teaching C++ and Java in undergraduate classes as well as graduate classes so Pascal is more or less left as a hobby language.

Personally I've not found Pascal to be restrictive at all. If you know it well enough you can do just about everything in it you can in a language like C, and the resulting code will be far more readable because Pascal (unlike C) enforces good programming practice reasonably well (which is why it was such a great language for teaching programming in the first place).

jwenting 1,905 duckman Team Colleague

Well said Catweazle, though there's an even simpler (and decidedly failsafe) method: stenography.

Just learn to write faster ;)

jwenting 1,905 duckman Team Colleague

uh, your MAC address is set in hardware...
Your ISP (if you're on cable or DSL) most likely identifies your account by it so changing it (if possible at all, would require a very weird device with an EEPROM of some sorts, I've not come across them) you're making yourself unknown to your ISP (who'll most likely promptly kick you from their network as a potential intrusion attempt).

jwenting 1,905 duckman Team Colleague

She may have a right to her opinion but when the way she voices that opinion constitutes aiding and abetting the enemy in times of war (which it does) that's treason which is punishable by death by firing squad without the possibility of parole.

jwenting 1,905 duckman Team Colleague

Define a plugin interface carefully and then design your program to be able to execute that interface.
Then create a system to register plugins with the program and add them to your user interface.

Think command pattern.

jwenting 1,905 duckman Team Colleague

Personally I consider Bruce Eckel highly overrated. His main claim to fame is making versions of his books available online free of charge, which gives him a wide name recognition among beginners.

Far better is Kathy Sierra's 'Head First Java', which you should be able to order from bookstores anywhere.
http://www.wickedlysmart.com

jwenting 1,905 duckman Team Colleague

And why would you do that?
Proxy servers are completely useless for most purposes, especially this.

If you think it's for "security", think again. Noone can steal your personality and bank account based on an ip address, but the person running the proxy server can do just that because you're now sending everything you send to anyone on the net (including that creditcard information) to him for sending on.

jwenting 1,905 duckman Team Colleague

wouldn't work. A refridgerator works because it's an enclosed environment. If it's in the open it'll effectively cool nothing (the effect will be negligable).
If you do want effective cooling, use liquid nitrogen (helium is better but too expensive for most uses) cooling.