Archive for September, 2006
Peace is not a thing

Dear Reader,

Many people before me got to the understanding of one thing concerning peace: peace is not a product. You cannot make it. It is not a thing you could ever produce at any manufacturing site anywhere…

Peace is a consequence of freedom and selfunderstanding of societys, aka individuals.

Peace is not a thing.

peace3.JPGpeace1.jpgpeace2.JPG

You can use the word to increase your reputation (amongst dummies) by talking big about how to “make” it, “bring” it, “exporting” it, etc.

Even the bush administration doesn’t try such a simple strategy. They try to implement a democratic gouvernment e.g. in Irak. The plan is, that that will bring peace as a result. (However, there are other constraints that prevent all that, more on this on another post). But so far, so good. I don’t want to agree or disagree on any political move they do, simply beause I don’t know enough. I just want to point out: Peace is not a thing that could be exported, but a consequece, a function of x, y and z: f(a1, a2, …, an)

Therefore:

Please stop becoming noble peace prize winner candidate.

Don’t give us your wise ideas on how “it should be” when you didn’t yet manange to be at peace with your mother-in-law…

Change the world at your fingertips, if you think you are such a clever being.

Stop talking about “human diginity”, be an example yourself.

Compssion and Knowledge in Action is the only way to convince people…
So let’s shut up and instead start to act, to do, to implement.

Thank you.

Osama Bin Laden dies of typhoid?

I am currently in Shanghai and just listened to the Radio Energy Zurich news through the web: Apparently, Osama Bin Laden died of a severe case of typhoid. This is what the French secret service claims to be sure about.

typhoid3.giftyphoid1.giftyphoid2.gif

I haven’t found it on the Google News yet, so let’s see what information is still to come on this…

9/11 - Five years later

New York… I was there… It looked like after an atom bomb. All colors were gone… Just grey, black, white…

It is hard, if not impossible for someone, who hasn’t been there, her- or himself, to understand how it was.

However, I finally understand why my grand-father, who was in the last big war, why he never wanted to talk about all that what had happend: It is because all of us, his grand-children, who just happend to learn history back in school or on TV, would never ever have been able to truely listen to him, to truely understand how it was, the know His-story

wtc4.jpg wtc3.jpgwtc2.jpg

Somehow, we whished nothing more than that the old man would finally start talking - at last… “it shouldn’t be that difficult? where’s the big deal?”, we thought - We were pretty wrong.

Spring Webflow on top of Spring MVC

Dear Reader,

I am currently trying to integrate Spring Webflow on top of an application that has been written using Spring MVC approaches. That is especially this kind of controller methodology (from the Spring MVC part):


public ModelAndView showListOfferPage(HttpServletRequest request, HttpServletResponse response) throws Exception {
//...
return new ModelAndView("path/tomy/viewJspFile", "dataKey", dataValue);
}

However, from what I’ve learned so far on Spring Webflow, all the View navigation decision is done in the Flow definition. This raises the question, how to intermix the different approaches. What confuses me is that in none of the examples seems to be any “context (request) aware” Class…

In every case, the controller layer needs the request object to extract data from it… So I would expect something like this:

public void showListOfferpage(HttpServletRequest request, HttpServletResponse response) throws Exception {
//... do stuff
// return nothing, as this is handled by the flow
}

I started a Thread on this topic on the Spring Framework Support Forums. So far it looks as if I had to answer this myself.

Let’s have a look into chapter 11 and 12 of the book “Expert Spring MVC and Web Flow” by Seth Ladd et al. This is an excellent book on the topic and very clearly written. The Webflow API from the book is a bit outdated. There have been some renamings, but with a look at the API of the latest release in combination with a bit of surfing the Spring Framework Support Forums, this should not be a problem.

Page 312:

Impletation Agnostic - Secondly, Spring Web Flow is deliberately abstracted away from the Servlet specification. […] there is nothing web-specific about a flow definition […] At now point within Spring Web Flow are you presented with an HttpServletRequest or an HttpServletResponse.”

Well, that’s great but I need some way to plug the stuff together… I’ll find out… You will find an answer right here really soon.

Ok. Looks as if I missunderstood the “plug and play” property of Webflow…

Yes it is agnostic of the MVC framework it works with. Its tied to that using FlowController, ExternalContext and ViewResolver. But No, it doesn’t let you plug it on top of your already coded Spring MVC Controllers, like SimpleFormController or MultiActionController. The controller part is defined completely in the webflow definition. The MVC controllers are replaced with Spring Webflows Action’s.

This I conclude from a bit of reading in the previously mentioned book and on these two discussion threads:

1) from The Server Side

2) from the Spring Webflow Support Forum

Erwin Vervaet says in [2]: “So a typical application will mix both Spring MVC and SWF. Use simple controllers like SimpleFormController when that is all you need. When you have more complex flow requirements, use SWF.”

and Keith Donald in [1]: “On the other hand, if you already have a lot of flow type stuff implemented in Spring MVC, perhaps using the AbstractWizardController, well, yea, you have a conversion effort there if you want to web flow that existing code. But I think you should think carefully if that is worth doing: if what you have already built works, why change it? AWC works and will continue to; web flow will provide more power/flexibility where it is demanded.”

So I changed the bits and pieces I want to have as part of the Webflow framework like this:

from Spring MVC, using org.springframework.web.servlet.mvc.multiaction.MultiActionController

public class MyAction extends MultiActionController {
public ModelAndView getOffers(final HttpServletRequest request, final HttpServletResponse response) throws Exception {
List offers = offerService.find(IOffer.class);
return new ModelAndView("pro/secured/offer/offerList", "offers", offers);
}
}

to Spring Webflow, using org.springframework.webflow.action.MultiAction

public class MyAction extends MultiAction {
public Event getOffers(final RequestContext context) throws Exception {
List offers = offerService.find(IOffer.class);
context.getFlowScope().put("offers", offers);
return success();
}
}

Thank you.

“Dropping Knowledge” Event, Berlin, September 9th, 2006

Dear Reader,

A friend of mine helped organising the Dropping Knowledge Event. It takes place right now at the time I am writing this. Hafsat Abiola and Willem Dafoe lead a round table of about a hundred people who answer questions of people from all over the world (People who are “online” that is).

A discussion among 100 people! Well, if they all have to talk to each other, the number of talks between each two people will be quite big: 4950 talks if all talk to all once.

For those of you, who don’t have a calculator or a brain to do the job, here is the Lisp “program” to calculate that number:

Talk Lisp Pseudo Program

To accomplish that, organising 4950 talks, one day is just not enough. And in life outside maths, you are still not finished. So you would have to iterate the whole process, in order to have a final and “streamlined” version of the answer that everybody agrees with. And after all, that is what all the questioners would like to get, isn’t it?, an answer from all of the savvy folks down from Berlin.

It looks as if the organisers found that out too. They let different people answer different questions. So that problem seems to be solved: Nobody really had to argue with anybody! Leaving the questioners with pure luck of who got to answer their question.

My impression on what I saw so far on the live-stream, is that unfortunately it is just another feel good get-together for a bunch of people who consider themselves humanists.

Because that’s what they go on about. About how everybody should have respect for life, other human beings, animals, trees, toothpaste, et cetera… That everybody is the same in the end and the religons anyway, one god, the god a guy who has no religion himself and in some way has showed us how to live, I learn - interesting.

Nothing new here… what a pitty! There must have been quite a bunch of disappointed questioners who thought to themselves, they could have given that answer themselves just as easily…

In fact I cannot hear it anymore. I have seen it way too often. It is always so easy to look out into the world and find mistakes all over the place. Stuff other people do wrong, the system that is “unnatural” or the society that is ill and perverted and ah oh how good it was when everyone still run around half-naked, clubbing each others heads…

“What a nice and wonderful event that was today”, “How intelligent my appeal to world peace must have made me look!” - and then they go home and beat up their wives and children…

And why? Because they have looked out, into the world and had many ideas of how it should be, but they did not look inside. Into themselves. To where the negativity, they so much want to free the world off, actually lifes. It’s the inside of the individual where any change has to start.

Changing the world without first changing oneself will never ever work out. It is an uphill battle, a Sisyphean task.

I am not saying I am any better, but hey, I also don’t give the world such great advices (that any 1st grader could come up with, anyway)!

Thank you.

How does the statement you make relate to what you are (aka are percieved to be)? Part I

Dear Reader,

it looks as if in my first post, I have to jump right into hostile environment. But so be it… I just saw my favorite program on TV, its Kulturzeitnachrichten on 3sat. 3sat is a channel run by german, swiss and autrichian state TV stations all together.

Kulturzeitnachrichten Logo

Today they were talking about Karlheinz Stockhausen ’s [1, 2] controversial statement on 9/11: He said, 9/11 was “greatest work of art”.

What was disturbing to me was not what this guy thinks, but the way it was handled by the folks on TV. It was clear, that they didn’t dare commenting about it in a straight foreward way. They tried to interpret it: “What could the artist really have meant with that…?”

So his statement was not judged as if any “ordinary” person would have made it. (Imagine you had said it! Mea Culpa!). But obviously, the way we judge people, artists that is in this case, the less critical with our own instincts we are. Same holds true for politicians, physicians, philosophers and so on. Generally speaking: for anybody we hold for superior to ourselves.

I feel it is hard for me to get my point accross, so let me simplify: Suppose you think of someone as a lot smarter than you are. For whatever reason. Now suppose this person says something that you would normally disagree with (like “The world is flat!”). In this situation, you would probably hesitate to “act” certain, to tell that person right away, that he or she was wrong… There is a good chance, you would question your own knowledge and experience.

So, conclusion number 1 for tonight:

  • Phrasing A: The higher people think of you, the more power you have to say just about anything you want, and they will kind of agree. If they don’t clearly agree (which would be dumb), then they go: “did not quite understand, have to think about that in the future again”.
  • Phrasing B: The higher you think of someone to be above your own personal ability to think and feel, the more you will obey to his orders and will allow you to limit your natural intellect and human reason.

Well then, more on this at a later point in time.

Thank you.

Welcome Note

Welcome to The Yellow Marker Blog.

My name is Raoul and you will find all kinds of topics covered in this blog. Mostly however it will be on technical stuff, but i also like to write about politics and religion. The two “don’t-go” topics in professional life… but hey, life is to short to miss out the important stuff…

And please DO excuse my bad English.

So enjoy!