Wednesday, September 14, 2005


"Jovens, cresçam ou amadureçam!"
- Estação Cultura, 14/09/2005

Tuesday, September 06, 2005


"Honesty is the recognition of the fact that the unreal is unreal and can have no value, that neither love nor fame nor cash is a value if obtained by fraud - that an attempt to gain a value by deceiving the mind of others is an act of raising your victims to a position higher than reality, where you become a pawn of their blindness, a slave of their non-thinking and their evasions, while their intelligence, their rationality, their perceptiveness become the enemies you have to dreat and flee - that you do not care to live as a dependent, least of all a dependent on the stupidity of other, or as a fool whose source of values is the fools he succeeds in fooling - that honesty is not a social duty, not a sacrifice for the sake of others, but the most profoundly selfish virtue man can practice: his refusal to sacrifice the reality of his own existence to the deluded conscioness of others."

Ayn Rand - "Atlas Shrugged"

Upload file in Struts: need for commons fileupload?

Actually I found out that there is no need, after sometime trying to make the commons fileupload work. Check a post from jakarta-commons-user list explaining it:

"The request stream for a multipart/form-data can only be read once - by the time Struts decides what Action to execute, goes through setting up the Form and validating, it's actually already read the request. Use a formBean that has accessors/mutators for org.apache.struts.upload.FormFile's, and pass the formBean to your action.

See the struts-upload webapp for a very good example.

The short answer is - you don't HAVE to do all the junk below when you're using Struts - the smart developers for Struts did all that junk for you so you can just use your file directly."

Saturday, September 03, 2005


"Man cannot survive except by gaining knowledge, and reason is his only means to gain it. Reason is the faculty tha perceives, identifies and integrates the material provided by his senses. The task of his senses is to give him the evidence of existence, but the task of identifying it belongs to his reason; his senses tell him only that something is, but what it is must be learned by his mind.

"All thinking is a process of identification and integration. Mas perceives a blob of color; by integrating the evidence of his sight and his touch, he learns to identify it as a solid object; he learns to identify the object as a table; he learns that the table is made of wood; he learns that the wood consists of cells, that the cells consist of molecules, that the molecules consist of atoms. All through the process, the work of his mind consists of answers to a single question: What is it? His means to establish the truth of his answers is logic, and logic rests on the axiom that existence exists. Logic is the art of non-contradictory identification. A contradiction cannot exist. An atom is itself, and so is the universe; neither can contradict its own identity; nor can a part contradict the whole. No concept man forms is valid unless he integrates it without contradiction into the total sum of his knowledge. To arrive at a contradiction is to confess an error in one's thinking; to mantain a contradiction is to abidcate one's mind and to evict oneself from the realm of reality"

Ayn Rand - "Atlas Shrugged"

Friday, September 02, 2005

External configuration for a web application?


I don't think we have a good solution for this problem.