jwenting 1,905 duckman Team Colleague

You're thinking way too complex thoughts :)

/*
 * created: Sep 23, 2003
 * by: wtg
 */
package nl.wtg;

import java.util.Map;
import java.util.ResourceBundle;

/**
 * @author wtg
 */
public class HandlerFactory
{
	private static HandlerFactory instance = null;
	private static ResourceBundle handlers = null;

	private HandlerFactory()
	{
		handlers = ResourceBundle.getBundle("nl.wtg.handlers");		
	}
	
	public static void resetFactory()
	{
		handlers = null;
		instance = null;
	}

	/**
	 * retrieve the HandlerFactory
	 * @return the HandlerFactory
	 */
	public static synchronized HandlerFactory getInstance()
	{
		if (instance == null)
		{
			instance = new HandlerFactory();
		}
		return instance;
	}
	
	/**
	 * Retrieve a Handler. Add additional handler classes to resourcebundle<br /> 
	 * nl.wtg.handlers and restart application<br />
	 * All Handlers should derive directly or indirectly from <br />
	 * {@link nl.wtg.AbstractHandler AbstractHandler}
	 * @param handlerName name of the Handler to retrieve
	 * @param params further parameters to pass to the init function
	 * @return Handler Object of the correct type
	 */
	public AbstractHandler getHandler(String handlerName, Object params)
	{
		AbstractHandler h = null;
		try
		{
			h = (AbstractHandler)Class.forName(handlers.getString(handlerName)).newInstance();
		}
		catch (InstantiationException e)
		{
			throw new UnsupportedOperationException("unsupporter Handler " + handlerName + ": " + e.getMessage());
		}
		catch (IllegalAccessException e)
		{
			throw new UnsupportedOperationException("unsupporter Handler " + handlerName + ": " + e.getMessage());

		}
		catch (ClassNotFoundException e)
		{
			throw new UnsupportedOperationException("error instantiating Handler " + handlerName + ": " + e.getMessage());
		}
		h.init(params);
		return h;
	}
}
/*
 * created: Sep 26, 2003
 * by: wtg
 */
package nl.wtg;

import java.util.Map;

/**
 * @author wtg
 */
public …
jwenting 1,905 duckman Team Colleague

hmm, late indeed. And next time go outside the basement when taking sunset shots, that concrete wall isn't photogenic :)

jwenting 1,905 duckman Team Colleague

The problem with offering many different versions is that it's extremely expensive to create.
If they create many different interfaces to the same product and sell it as one with many options it gets even more complicated and bloated.

Modular programs are nice, the user can basically choose the parts he likes and build his own application.
But it's very hard to do with shrinkwrap software so a different distribution model is needed for it as basically every copy sold is unique to the specific customer.

So companies take to putting every possible option anyone could possibly want in the application, just so as many people as possible will find what they're looking for (and everyone ends up buying more than they really need of course).
Another advantage of this for the companies (apart from reducing the complexity of their logistics chain) is that having a long list of features sells products.
Many people don't consider logically whether they'll need all those features. If product X costs $A and has 10 features while product Y costs 10% more and has 20 features many of them will buy Y without ever considering whether those extra features are worth the investment.
This is seen with many products which ship in 3 versions (with each having more features than the next).
The cheapest sells well, the most expensive sells very well, and the middle product is more of a niche product than anything. Many customers …

jwenting 1,905 duckman Team Colleague

If you don't mind me asking, what exactly do you like about socialism? I don't know too much about it, so please explain.

what many people like in socialism (at least the early stages, when the Party still has to work within a democratic system and hasn't yet taken total power for themselves) is the total lack of personal responsibility it promises and the fact that it promises that the State will provide everything for everyone.

After the socialists take power though they invariably show their real face and turn into thiefs and thugs who oppress and starve the population to enrich themselves.

jwenting 1,905 duckman Team Colleague

hmm, people here are being turned away by our socialised healthcare because there's not enough money to treat them...

The waiting lists for major procedures now are years long. In 2002 my mother needed emergency surgery to remove a suspected fastgrowing colon cancer (turned out to be something else luckily), she was told she'd have to wait 2-3 months at least before there was time for her.
She only got in early because someone on the waiting list died and her doctor pulled some strings to get her moved forward.

2003 the government pumped some €3 billion extra into healthcare in order to increase the staffing levels at hospitals (most hospitals have entire wards closed down for lack of staff). At the end of the year all the money was gone but staffing levels had gone down. So far they've found only about half a billion of it, spent on shiny new CAT scanners (replacing 2 year old units in the same hospitals that were sitting idle for lack of trained staff already) and refurbishing brand new operating theaters (many of which are also rarely used for lack of staff).

I'd rather have healthcare run like a business with the government making sure prices are fair (maybe by setting limits) and everyone is guaranteed to be able to afford required procedures (so no nosejobs, but heart surgery would fall under it).

That would reduce the wastage tremendously, thereby reducing the overall cost of the system …

jwenting 1,905 duckman Team Colleague

Yup. John Edwards (you know, the running mate and financier of John Kerry last year?) makes $500 million a year just from the lawsuits he does himself. He makes even more from his share in the proceeds from his lawfirm.
He specialises in medical cases, chasing ambulances.

jwenting 1,905 duckman Team Colleague

what variable 'nickname' are you trying to output?
JSTL will use any named attribute from the pagecontext, not something you created in a Java block on the JSP (in fact you should avoid those like the plague).

jwenting 1,905 duckman Team Colleague

> The first thing I need to do is create a backup server and copy the application to it.

Should have been there all along :)

>It is running on a Linux ??? platform at the moment. I am VERY comfortable working
>on Windows and have some experience on Linux. I have NO experience with JSP but
>believe I am a quick study.

First get that machine up, then worry about changing the application.

>Can someone suggest a resource where I can start?

Your hardware vendor :)

>Should I make the backup server the same OS as the current server?

I'd go further and make it identical in both hardware and software to the main machine.

>What config files do I need to copy?

If you do that you can just back up the entire production machine and use that tape to create the backup...
Then you just have to change the machine name and network addresses and you're almost done.

jwenting 1,905 duckman Team Colleague

You can't write an OS purely in Java. I've even heard you can't do it in c/c++ either...But don't know if that's true or not.

Depends on the hardware. If you have a JVM in hardware there's no reason it can't load the rest from classfiles.
Of course it might be somewhat feature limited because of Java's restrictions on direct hardware access but that all again depends on the hardware.

jwenting 1,905 duckman Team Colleague

Anyway, my overall point is that all of us who can truly afford to do so should be more willing than we are to help those who are truly needy, regardless of how we want to label our justifications for not doing so.

Under socialist rule you're not willing to help anyone, you're forced to as the government "redistributes" your posessions to those it considers as having more use for them (which means usually itself).

No charity came out of the Soviet block for as long as it existed, every single truckload of aid (usually in the form of weapons to oppress the opposition) that was handed out to needy countries was in exchange for loss of sovereignty and more Soviet control of the natural resources and economies of those countries.
The same internally, instead of helping needy people to prosper they were shoved into locked railway cars and dumped in Siberia to die of exposure and hard labour as enemies of the people.
That's socialism at work.

jwenting 1,905 duckman Team Colleague

The only ones who won were the lawyers who got multimillion dollar paychecks out of the farce.
This is the usual result of large civil lawsuits, especially frivollous ones like this where the charged party has done nothing wrong and the accuser tries to get rich over someone else's back...

jwenting 1,905 duckman Team Colleague

Microsoft OEM versions of Windows can now be purchased with any component for a computer capable of running that software.
That means anything that goes into the case, so a stick of RAM is fine but a printer is not (for example).

There may be other rules for OEM versions of Office (maybe allowing larger external parts like printers of screens as well as internal components).

jwenting 1,905 duckman Team Colleague

Socialism doesn't provide ANYTHING to the people it targets. The ONLY people who benefit from socialism are the ones in charge, the party leadership and their close friends.
That's the same everywhere and all the time.

jwenting 1,905 duckman Team Colleague

And do your own homework. Why should we do your work for you if you're too lazy to do it yourself?

jwenting 1,905 duckman Team Colleague

You don't do it like that.
Either you have each client send a complete description of their filesystems to the server when first signing up and later regular updates and do all the searching on the server OR (and that's the best way) you have the server marshall the requests and have each client perform the actual search and send the results back to the server for return to the client initiating the search.

jwenting 1,905 duckman Team Colleague

Your problems seem to be mainly education, not economics.
And it's not the "rich" people who want that stadium, it's the uneducated masses who want cheap entertainment.

Educated people would vote to get those streets repaired and those schools kicked into shape.
Company owners want educated people who can do valuable work and provide them with profits, not zombies with useless non-skills pumped out from your average school today.

Typically education suffers as areas slide into socialist rule. Poorly educated people far more readily fall for socialist propaganda about "equalising income", leading to nationalisation of industry and persecution of educated people (with the end result of killing everyone who wears glasses which happened in Cambodia for the sole reason that glasses are a clear sign that the person is educated and thus a threat for an egalitarian society).

jwenting 1,905 duckman Team Colleague

Correct. Any store or person selling OEM software without the associated hardware (or sometimes other software) is stealing from his customers.
Anyone buying it will see himself without support as the hardware manufacturer will only support the hardware owner and the software manufacturer typically defers support on the software to the hardware manufacturer as part of the contract under which the hardware manufacturer may distribute the software under OEM.

jwenting 1,905 duckman Team Colleague

And remember: other countries have similar programs.

jwenting 1,905 duckman Team Colleague

hmm, I think he wants far more.
He seems to want to get a complete directory structure of someone's harddisk (with all files involved) from a remote location.
That is (happily) impossible.

What is possible is asking a program on the other computer (in a P2P environment you'd have programs running on both computers after all) for a specific file and have that program search for it.

jwenting 1,905 duckman Team Colleague

At least not current production versions.
It's sometimes possible to find heavily discounted old software in bargain bins of course.

jwenting 1,905 duckman Team Colleague

- The long term temperature record study has three flaws. One is that the Fahrenheit degree was redefined in 1901 to be an exact multiple of the Celsius degree. Another is that most of the data after 1930 was taken at airports, where paving has been increasingly used. So that data showing a rise in temperature is local. The last part is that the total temperature rise claimed far exceeds the accuracy of the thermometers made at the beginning of the period.

It has several more flaws but those are indeed serious ones.
Another major flaw (which this particular dataset can't really help because there weren't any airports back then) is not taking into account the far higher temperatures in the 1700s (and all the way back to the 1300s) compared to the 19th and 20th century.
Of course during much of the period there were airports sending in readings their number was low and even today the datapoints are not distributed evenly enough to give a true "global" average. With about half the datapoints being in the USA and over 75% being in the northern hemisphere the data is heavily biassed towards northern American climate outside polar regions.

Another flaw is that there is no definition of "global mean temperature". Therefore the data produced by different reporters (and in different eras) cannot be compared as the data is incompatible (some is measured at sealevel, some at 1.5m, etc.).

jwenting 1,905 duckman Team Colleague

post in the correct forum and you may get help.

jwenting 1,905 duckman Team Colleague

Same reason you seem to repeat your views ad nauseum whenever someone dares to contradict them maybe?

Show one bit of irrefutable evidence that there is "massive global warming" and that that is caused in its entiety (or at least in a very large part) by human activity...
And the hockystick model won't do as it's
1) inherently flawed data
2) doesn't explain the warm period (far warmer than today) before the supposed massive global warming caused by humans.

There is no such data. In fact, the IPCC report itself doesn't even conclude anything LIKE the political document which forms the basis of the global warming hype. The "summary" that does was written by political analysts, supposedly based on the study but more likely based on political agendas as the "summary" bears no resemblence to the report itself.

jwenting 1,905 duckman Team Colleague

SciAm is just as politicised about "global warming" as the IPCC and Tony Blair.

Fact is that we have very little influence on the climate, if any.
All the grandiose schemes to limit CO2 emissions will do is cause massive economic harship in the countries paying for them, causing abject poverty and famine around the world.

Of course the climate is changing, that's what climates do all on their own.
Any efforts to influence that testify only of a massive human superiority complex as well as massive and deliberate misrepresentation of science for political means.

The effect CO2 has on global temperatures is miniscule, the effect human actions have on that CO2 is even smaller.
In fact a single large volcanic eruption (like St Helens in 1980 or Pinatubo) ejects more "greenhouse" gasses into the atmosphere than all human activity combined has over the last 200 years.

Another little reported factoid is that increased CO2 levels lead to increased agricultural productivity (and thus increased CO2 absorption as well as increased food supplies).
CO2 is a requirement for plants to grow, plants feed people.

In the 1960s the scare was that the planet was getting colder and we'd soon have an ice age with associated destruction of agriculture and famine.
20 years later the treehuggers are in control of government bodies deciding on subsidies for research and suddenly the earth is getting warmer instead of colder and it's all caused by …

jwenting 1,905 duckman Team Colleague

RFID can indeed be abused by oppressive governments (which at last count meant all governments) and corporate entities.
But the myth that RFID tags "call home" to tell the government where you are regularly is just that, a myth.
RFID tags of the kinds which could be used for implantation in humans (or clothes and other items) are passive.
They will give off the information stored on them (usually a single number) only when activated.
The tag has no powersource, the power to transmit is derived from the signal which requests the information.
When the signal is received the chip gets power. If the signal matches a signal the tag is programmed to respond to it transmits the information stored in it until the signal dies down.

Typically the range of RFID scanners is limited to a few meters at most. Higher powered tags require independent power sources (batteries), making them impractical for longterm use (how to replace the battery regularly?), larger (and thus more cumbersome to install and carry around), and far more expensive (given the now estimated 300 pound pricetag for the UK biometrics ID card they're trying to force on every resident that's clearly not a problem for governments, they just pass on the bill to the taxpayer/victim).

The myth that RFID tags are no larger than a grain of sand and cheap enough to install in penny items like pencils and candy wrappers is also just that, a myth.

jwenting 1,905 duckman Team Colleague

The Lord of the Rings JRR Tolkien
I currently own 4 copies (in different editions) and a dozen or more secondary works about Tolkien's universe, must have read it 25 times or more and still find new things.

08-15 Kirst
Probably little known by now, a chilling account of the life of a young German conscript from the mid 1930s through the end of WW2.
My edition is a Dutch translation from roughly 1955, well thumbed.

For the rest, no real favourite books.
I much enjoy reading Niven, Asimov, Clancy and Dale Brown though.

On the non-fiction front, "the black book of communism" (Courtois) is a must read.

jwenting 1,905 duckman Team Colleague

Crucifixion happened, and was at the time (around the year 25-75 of our calendar) a pretty much standard way of execution in the Roman empire (beheading and poison being reserved mainly for high functionaries).
So any story set in that era in which someone is executed by the Romans would be quite correct to assume crucifixion as the method used.
As to the rest, those are indeed allegorical.

As to the existence of a Jesus of Nazareth, there's no reason why such a person may not have existed around that time and have been a carpenter's son turned religious nutcase (if the stories are examined he was a dissident Jewish priest or functionary preaching radical changes to the status of the priesthood, not something that priesthood would like to see).
Such a person would indeed be liable to be arrested by the Romans on request of the priesthood to prevent civil disorder, with execution a possible result.
The Roman official presiding over the trial would indeed wash his hands, this was a custom at the time and nothing specific to this particular case.
He'd also likely follow the will of the locals in sentencing, so if the priesthood wanted an execution they'd likely get one.

Executions in those days were public affairs and performed outside the city gates, so walking the prisoners through the city under guard was common.

jwenting 1,905 duckman Team Colleague

I've seen that sometimes, usually booting the machine gets rid of the gremlins.

If it doesn't (in this machine it may have been a flaky connection building up static charge) you should just replace the drive, CD drives cost next to nothing.

jwenting 1,905 duckman Team Colleague

correct, a lack of power will lead to hardware sometimes not working.
For example when I first installed a DVD writer one of my harddrives would no longer work, but only AFTER I'd used the DVD drive.
After rebooting the drive would work again.
When I disconnected the DVD drive the harddisk worked flawlessly.
That's a clear sign of lack of power, a general slowness of the system is not.

jwenting 1,905 duckman Team Colleague

Almost right, but not quite how I'd prefer it.

Data is transmitted to a servlet. This servlet controls who is to process the data (based on request attributes probably).
It then forwards the data somewhere else for processing. This can be another servlet, a javabean, or even a JSP (in extreme cases like there's nothing to do but just show the data again).
This then tells the controller (if it's not displaying the data itself like a JSP would) which then decides what to do with the result (most likely this will be forwarding to a JSP or servlet for sending it back to the client).

You will likely be better off using a preexisting framework for all this. Something like Spring would serve well.

jwenting 1,905 duckman Team Colleague

Don't think JSP but include servlets, javabeans, and probably an MVC framework.

Don't go off reinventing the wheel but examine existing technologies and use those to your advantage.

jwenting 1,905 duckman Team Colleague

1) no it's not urgent (at least not to me)
2) if you have the code to show the data the rest is trivial and requires only looking through some examples. You should have been able to build it in a few hours so I'm sure you have it now after more than 3 weeks.
3) nausher, don't hijack other peoples' threads
4) both of you, do your own homework. We can help with specific questions but we're not here to give you complete solutions.

jwenting 1,905 duckman Team Colleague

ah, zo daz wad he speekz

jwenting 1,905 duckman Team Colleague

to the current directory (.) and any OPTIONAL libraries (so anything not included in the JVM installation itself).

jwenting 1,905 duckman Team Colleague

Studying a religion as an academic subjust area is not something I'd have issue with, I'd agree. 'Learning' religious doctrine as part of the curriculum is what I'd object to. That area of learning belongs outside the schoolroom in my view.

Correct, especially as a mandatory part of the curriculum.
If religious classes are offered as optional extras (or even mandatory in schools which parents may elect their children to not attend) I've no problem with that. But do give people a choice of what propaganda and indoctrination they expose their kids to.
And yes, that also means that leaflets and brochures from PETA, Greenpeace, ALF, and Hoffman la Roche have no place in the classroom.

jwenting 1,905 duckman Team Colleague

plz c ????? Please translate that into proper English so people who are not well versed in gobbledegook can understand you.

Same with parts of the rest of your post...

jwenting 1,905 duckman Team Colleague

tools.jar is used internally by the JVM (like rt.jar). It knows where to find it as it knows where to find itself.

jwenting 1,905 duckman Team Colleague

depends on the speed. A commercial CD reproduction machine can churn out hundreds or thousands of disks an hour (depending on type), if you have enough customers (or large enough production runs) you can run it profitably quite easily.

jwenting 1,905 duckman Team Colleague

tools.jar doesn't need to be (in fact shouldn't be) on the classpath.

What is missing from the classpath is the current directory ('.'). On older machines running Windows 9x that's no problem, on NT based and Unix based operating systems it's required.

jwenting 1,905 duckman Team Colleague

I've banged my head against the wall more than once over the same problem, but finally the solution stuck in my head :)

jwenting 1,905 duckman Team Colleague

I have a duplicating machine capable of copying any CD big by bit.

And I am asking Congress to outlaw all copy protection schemes. They cause all kinds of other trouble, and prevent legitimate backups.

so would I if copy protection were hurting my business.
The only reasons to have a machine like that are
1) you're actually producing something in which case you don't mind copy protection systems because they don't hurt your business and may in fact help it
2) your business model relies on you being able to copy things made by others without their permission (because if you had such permission you'd likely also have a master that doesn't include protection).

Companies that make use of copy protection almost universally have systems in place to replace faulty disks.
The only reason to complain about people locking their doors is if you want to get into their house without their permission and the only reason to get into someone's house without their permission is to harm them.

jwenting 1,905 duckman Team Colleague

Portege was their highend line. I guess they made those good with the money they saved on the shoddy parts that went into the Sattelites.

jwenting 1,905 duckman Team Colleague

The steps needed to activate your installation should have been included with your machine.
In case you have no internet connection you should call Microsoft to help you out, the number is in the documentation.

jwenting 1,905 duckman Team Colleague

if something goes wrong you're likely to loose the hardware so having multiple partitions will do you no good :)

I agree it's more prudent to have several smaller disks, but 100GB or so isn't excessive for today's overly large applications (which seem to have often been designed to use as much diskspace and CPU as possible in order to further hardware sales).

jwenting 1,905 duckman Team Colleague

Think of what you're doing and you get the idea quickly enough.
You delete row 0, then increase i to 1, then move to the next row (which is the old row 2).
Then you delete row 1, increase i to 2, move to the next row.

If you want to do something like this, start at the end and delete from there to the front.
Something like

int numRows == dtm.getRowCount();
for (int i=numRows;i>=0;i++) {
  dtm.removeElement(i);
  mortgageTable.revalidate();
}

should give you the results you are looking for.

jwenting 1,905 duckman Team Colleague

yes Christian, you can set a file to inhibit copying but that will deter only the casual copier.

If I create an application that reads in the file and then writes out the data to another file I have effectively a copy yet I never issued a copy command to the operating system.

jwenting 1,905 duckman Team Colleague

There must be some software that can do this for me, Does Nero have such facility?

You CAN make a CD which cannot (or be much harder to, to be more realistic) be copied. Nero AFAIK cannot do it, you need specialised software (and possibly specialised hardware as well).

You can NOT prevent individual files from being taken from your CD and used elsewhere.

jwenting 1,905 duckman Team Colleague

No, it's not possible.
If you can read the files from the CD you can then write them somewhere else...

Same with websites. If you can see the graphic you already have a copy on your system so the only thing to do is find it (unless the graphic is read from a remote source on the fly using a Java applet or flash thingy but then you could reverse engineer that and read it anyway).

jwenting 1,905 duckman Team Colleague

no, you can. Unless you specify the f at the end it defaults to a double though (causing a compiler error).

float is a single precision floating point number, double a double precision floating point number.

jwenting 1,905 duckman Team Colleague

I could: see the installation instructions ;)
They're quite comprehensive for a variety of platforms.