Petition für den wirksamen Ausschluss von Softwarepatenten in Europa – FFII

Press releases/Petition demands effective ban of software patents in Europe – FFII

3391-sicherheitsmassnahmekl.jpg (JPEG-Grafik, 500×322 Pixel)

3395-gebundene_spendekl.jpg (JPEG-Grafik, 500×330 Pixel)

.

ioannis cherouvim » Blog Archive » Singleton ehcache CacheManager warning fix

“Surely somebody would fix it long before that distant year arrived.”

Article about the so-called The SAY2K10 bug [LWN.net] in SpamAssassin.
This bug shows that if you don’t do things right in the first time then you will not do it later. When have you count the last time the “TODO” comments in your code?

LCA: How to destroy your community [LWN.net]

Lazy kids.

“If anything, today’s computer users are less well adapted to dealing with applications that behave differently when the network is unexpectedly absent because both the user and the programmer assume that the network will be there because it always is. They would never set up a situation where the network would be missing and the programs they use/write are unlikely to handle the situation. Lazy kids.”
Casey Schaufler.

TypeError: Error when calling the metaclass bases

This article helped me by fixing this exception. The following code gave this exception

...
from a import A
class B (A):
...

but this was wrong because my class had the same name as the file it was in. This meant that my class had the same name as the module. To make it right it should be:

...
from a import A
class B (A.A):
...

Monty says: Help keep the Internet free

Darvins Illustrierte – Nach dem Minarettverbot

.

Crypto-Gram: November 15, 2009 – Beyond Security Theater

Schneier on Security: My Reaction to Eric Schmidt – “The real choice is liberty versus control”

On the importance of return codes [LWN.net]

What DNS Is Not – ACM Queue

Deutschlandradio Kultur – Politisches Feuilleton – Immer auf dem Posten: Die jungen Akademiker

The last man on bike

Nice short film about the last biker on earth. Filmed in Halle.

digi images – mam-foto – Serie: Stadt-Schatten

Sehr schöne Fotoserie in Schwarzweiß verschiedenster Häuser in Halle. digi images – mam-foto – Serie: Stadt-Schatten

ClassCastException with SQLQuery and setCacheable(true)

Today I had to change a hibernate query constructed with the criteria API to a SQL query. The result looked like:

String sqlQuery = "select count(*) ...";
Session dbSession = getSession();
SQLQuery crit = dbSession.createSQLQuery(sqlQuery);
crit.setCacheable(true);
return (Integer) crit.uniqueResult();

The former query was cached and the new one should be too. But I got the following exception:

java.lang.ClassCastException: java.math.BigDecimal
at org.hibernate.cache.StandardQueryCache.put(StandardQueryCache.java:83)

The following post from hibernate forum helped me to find a solution. The exception is gone after adding the result as a scalar. And the working query looks like:

String sqlQuery = "select count(*) as result ...";
Session dbSession = getSession();
SQLQuery crit = dbSession.createSQLQuery(sqlQuery);
crit.addScalar("result", Hibernate.INTEGER);
crit.setCacheable(true);
return (Integer) crit.uniqueResult();

Groklaw – Microsoft Patents Sudo?!! – Updated 2Xs

Darvins Illustrierte – Sonderfond

Darvins Illustrierte – Argumente

Darvins Illustrierte – Großer Schwanz

kLAWtext: Abmahnung einzelner Titel aus einem Sampler: für den Abmahner strafbar?

Draw On All Three Brains « UX Crank

Java vs C performance… again… – Azul Systems – Cliff Click Jr.’s Blog

Bundestag bald ohne Geheimdienst-Kontrolle? – Politik – Deutschland – Handelsblatt.com

law blog» Archiv » Medialer Effekt

law blog» Archiv » “Uneinbringlich”

Use I Wants « UX Crank

TP: Auf unbegrenzte Zeit unter Verschluss

Nachrichten Heute – CIA secret prisons organized from Germany