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 !
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...
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 {
logger.info("static Hello");
} catch (NullPointerException e) {
System.out.println(
"failed to call Logger from static context");
}
CleverApplication m = new CleverApplication();
m.run();
}
public void run() {
logger.info("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 {
i++;
}
}
So nothing to be afraid, just don't think to much before the cafeine kicks off.
Feb. 5th, 2007 @ 10:00 am
Publication Date for Harry Potter and the Deathly Hallows Harry Potter and the Deathly Hallows will be published on Saturday 21st July 2007 at 00:01 BST in the UK and at 00:01 in the USA. It will also be released at 00:01 BST on Saturday 21st July in other English speaking countries around the world.
Un excellent texte L'apocalypse selon Saint Nicolas d'Alexandre Delaigue. Ce cote irrationnel des mouvements environementaux n'est pas present qu'en France, en Angleterre l'ecologie n'est plus une opinion, c'est une verite.
Feb. 2nd, 2007 @ 09:10 am
London :
Area : 1 579 km²
Population in 2005 : 7 517 700
Density in 2005 : 4 761/km²
Paris :
Area : 86.9 km² (or 105.397 see PS1)
Population in 2005 : 2 153 600
Density in 2005 : 24 783/km²
On wikipedia : London, Paris - link was pointing to London, thanks to the self-deleted comment for pointing that out -
NB: The number are written with a mix of french/english conventions, . as the decimal separator and ' ' as the thousands, so it's not ambigious for both.
PS1: "these limits changed marginally to 86.9 km² in the 1920's, and in 1929 the Bois de Boulogne and Bois de Vincennes forest parks were officially annexed to the city, bringing its area to its present 105.397 square kilometres (40.69 mi²)."
Jan. 29th, 2007 @ 03:18 pm
" A male (the flight leader) spots an attractive female (the bombing target) across the bar. But alas, she is not alone. She is paired with a tragically less attractive friend (the cock blocker). And they seem quite close, so close that the BT is unlikely to abandon her CB for a guy she just met.
The FL knows he’ll never be able to successfully complete his bombing run without proper air cover, and this is where the wingman comes into play. The wingman will engage the CB and pin her down long enough for the FL to finish his run, and hopefully bomb his target back to his bedroom. "