Monthly Archive for August, 2003

Moths & Maggots

Sunday evening we started a big clean-up after having had moths (German: Lebensmittelmotten ) in the kitchen for some time. We had to throw a lot of things out:
- flour
- rooibush tea (was crawling … yak!)
- noodles
- old cookies
- even some spices
- cocoa
- rice

Here is a list of typical foods plagued by pests like moths etc.

Here is another list (that also contains some fact about moths or so google tells me): Liste der beliebte Irrtümer

Capitalization Algorithm

Since I didn’t find anything on the web here is my solution to the problem (hope it works):

private String getCapitalized(String input){
	StringBuffer result = new StringBuffer();
	for(int i=0;i<input.length();i++){
		char c = input.charAt(i);
		char prev = (i>0?input.charAt(i-1):' ');
		if(Character.isLetterOrDigit(c) && !Character.isLetterOrDigit(prev))
			result.append(Character.toUpperCase(c));
		else
			result.append(Character.toLowerCase(c));
	}
	return result.toString().trim();
}

Googolator

Yeah I heard about it before but today going down my blogroll I found this has made the rounds already … klick the links in this article: Google calculator [dive into mark]

Osbournes go Germany

Jürgen Drews macht nach was Ozzy Osbourne mit The Osbournes vorgemacht hat:

Die Drews – eine schrecklich nette Familie

Die Spiegel Kritik vomgrenzenlosen Jammer der menschlichen Existenz ist gut nachvollziehbar.

Da wir an dem Abend gerade nix besseres zu tun hatten, haben wir halt ein bisschen mitgeschaut und so nach und nach machte sich das Entsetzen breit. Zwischenzeitlich war es so schlimm, dass ich spontan wegzappen musste. Besonders schlimm fand ich die Szene mit dem Abendessen wo Drews erklaert, dass er zwar schon schielt aber noch nicht betrunken ist und nebendran sitzt seine Tochter.

Übel war auch die Szene als er zu seiner Frau sagt: “Du bist ja geil heute …..”, woraufhin sie ihren String vor die Kamera hält und ein paar Sekunden später sagt er zu seiner Tochter: “Das ist aber ein geiles Outfit” … irgendwie so. War irgendwie sehr missverstaendlich.

Na ja aber weil der deutsche Zuschauer ja an so einiges gewöhnt ist inzwischen wird er sich auch das angucken um dann anschliessend darueber laestern zu koennen, oder?

WeatherGirl

Just found out about The Weather Pixie: Karlsruhe, Baden Wurttemberg

from one girl’s life | v. don’t dream it

Here is mine:

Nice T-Shirt

Just saw

“There are 10 types of people in the world those who understand binary and those who don’t!”

Jumpin’ Javac

A colleague suggested not using jikes when he heard about my problem, but I wasn’t using jikes ….

I have a simple class hierarchy of three classes:

Normalizer
USNormalizer extends Normalizer
USValueFactory extends USNormalizer

I have a method normalize in the class Normalizer which is not overwritten by any of the other classes and it is public.

public String normalize(String input);

So one of my methods in USValueFactory calls the normalize method. But the execution never gets there. I put in a log statement before the call of ‘normalize’ and it was written to the logfile and the log statement which I put before the first line of the ‘normalize’ method was never never written to the logfile. This really puzzled me. (And still does).

My colleague suggested using the debugger to find out what was going on. Now that I know what is going on I am more confused than before. What happens is: the stupid programm jumps to an entirely different method in the Normalizer class one that is called ‘normalizeField(…)’. Now please someone help me and explain.

I am really curious what kind of bug this is. I am pretty sure it was going on all the time and I just did not notice because before I was implementing this branch of my class tree it did not matter. But for the US version I overwrote one of the methods the ‘normalize’ method calls.

Did I mention that I am not getting anywhere with this project currently?

ADDENDUM (12:32) the source of my error has been found. A simple dependency in my ant-file was missing therefore the jar for the core-project wasn’t being re-compiled after I made some changes et voilà, disaster ensued. Just cost me about 3 hours or so of work. And I have encountered this problem several times before …..




Bad Behavior has blocked 305 access attempts in the last 7 days.