au pilori !

Google Reader

Is the perfect tool to be kept inform of my last writing on my new 2 blogs ! You also had this one.

It will inform you every time there is a new post, if you subscribe to the feed.
Firefox got a reader too, but the advantage of google one is that you maintain only one list of subscription !
au pilori !

France - Irlande 20-17

Un peu sado, j'ai regarde le match dans un pub irlandais. Autant dire que je me sentais particulierement seule en deuxieme periode ...

Enfin quelle liberation a la fin du match, j'en connais qui on du essayer d'oublier a coup de Guinness :)

Prochain match :
Saturday 24th February 2007
15:00 GMT 	Scotland 	vs 	Italy 	Murrayfield
17:30 GMT 	Ireland 	vs 	England 	Croke Park
20:00 GMT 	France 	vs 	Wales 	Stade de France

au pilori !

The wee wii is coming !

I ordered a wii this week end !
a quite expensive bundle, but the only one available, and it's actually the price of a wii with 4 games which is fair.

This bundle consists of:

    * Rayman Raving Rabbids
    * Super Monkey Ball: Banana Blitz
    * The Legend of Zelda: Twilight Princess
    * WarioWare: Smooth Moves
    * Nintendo Wii Console

No idea about the games :) anyway I just bought that to play bowling :)
au pilori !

Spam Spam Spamalot

Some things in life are bad
They can really make you mad
Other things just make you swear and curse.
When you're chewing on life's gristle
Don't grumble, give a whistle
And this'll help things turn out for the best...

    And...always look on the bright side of life...
    Always look on the light side of life... 

au pilori !

I doubted my Java

I was reading The Java Specialists' Newsletter [Issue 137] about instantiating the logger.

They point at a problem that is real and I wondered how to solve that too, also I end up just accept the way we do it and forget about that.

Anyway that was not the point, when I read that I blinked :

package com.cretesoft.tjsn;

import java.util.logging.Logger;

public class CleverApplication {
  private static Logger logger = null;
  { logger = Logger.getLogger(this.getClass().getName()); }

  public static void main(String[] args) {
    try {"static Hello");
    } catch (NullPointerException e) {
          "failed to call Logger from static context");
    CleverApplication m = new CleverApplication();;

  public void run() {"Hello");

There are several reasons why this is a not a good idea. First off, the logger is not available from a static context. Secondly, every time a new instance is created, we make a new logger. This could be avoided if we used the lazy initialization idiom, but that would then introduce contention. Thirdly, the class name of the instance might be a subclass of CleverApplication.

Crap I thought it was a static initializer... so I did a test, and yes it is not. So was I wrong all my life ? No, I was missing some cafeine ... there is a static initializer, and that's the one I used, I never used the non static weird things (explaining the confusion, that should be in the constructor no ?) :

class Foo {
  static int i;
static {

So nothing to be afraid, just don't think to much before the cafeine kicks off.