49.95 + 0.45 = 50.400000000000006
Tuesday, September 25. 2007
Have a look at the following simple piece of code:
public class WeirdDouble {
public static void main(String args[]) {
Double result = 49.95 + 0.44;
System.out.println(result);
result = 49.95 + 0.45;
System.out.println(result);
result = 49.95 + 0.46;
System.out.println(result);
result = 49.95 + 0.47;
System.out.println(result);
}
}
Theres nothing complicated going on here. Just a few simple addition of Of course you would expect the following output:50.39Wrong! The output will look like this.
50.40
50.41
50.42
50.39
50.400000000000006
50.410000000000004
50.42
Continue reading "49.95 + 0.45 = 50.400000000000006"
Static Pages in Serendipity
Wednesday, September 19. 2007
Yesterday I claimed that the only thing I miss in WordPress was static pages. Look on the top of the right bar. Here they are. This is the first time I had to install a plugin and discovered the next huge difference to WordPress. The built-in Spartacus plugin fetches a list of available plugins and can download and install it with a single mouse click. Guess I will never go back to WordPress.
Wordpress Ditched - Hello Serendipity
Tuesday, September 18. 2007
The last critical bug in Wordpress encouraged me to look for alternatives. A friendly soul in the forum of the Heise Newsticker [de] made me aware of Serendipity. And wow! Serendipity got me! It has a cleaner code base than Wordpress. The history showed definitely fewer security flaws and the features... Wow! It has everything I had to install as plugins in Wordpress and much more:
Continue reading "Wordpress Ditched - Hello Serendipity"
And another critical bug in Wordpress
Thursday, September 13. 2007
Once again Wordpress has released a new update that fixes several security flaws in earlier version. Among the current fixes is a fix for a remote SQL injection. Attacker can get access to account data.
I really like the functionality and extensibility of Wordpress. However this constant flow of critical security fixes does not help to raise the level of thrust into the quality of that product. Come on, developers. SQL injections are well known and easy to prevent in 99%. Where is your quality testing?
Getting 1600x1200 to Work on the Secondary Screen of an ATI Equiped Notebook
Tuesday, September 4. 2007
Some days ago I got a new TFT: 20" with a native display resolution of 1600x1200. Finally I can work with Eclipse and see the 80 character word wrap border with Navigator window on the left and Outline window on the right. However I faced some unexpected problems until I was able to enjoy the full resolution on the secondary screen of my Compaq NW8240 running SuSE Linux 10.2.
Continue reading "Getting 1600x1200 to Work on the Secondary Screen of an ATI Equiped Notebook"