The Magnetic Fields

December 29th, 2009

Am 29. März spielen The Magnetic Fields im Hamburg tragische Lieder. Eine ganz grossartige Live-Band übrigens. Und ich Glückskind habe eine Karte als Weihnachtsgeschenk bekommen – danke dem Weihnachtsmann, dem guten.

YouTube Preview Image
VN:F [1.9.3_1094]
Rating: 9.8/10 (5 votes cast)

Church no more

March 31st, 2009

Although I am not religious, I always liked the architecture of churches. So it made somehow sad to see this church from my old neighbourhood being taken down, it wasn’t affordable to renovate it.

church

church2

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)

Bremen juggling convention

March 31st, 2009

bremen1

bremen2

bremen3

bremen4

bremen5

Some pictures from the Bremen juggling convention (26.-29.03.2009), more pictures can be found at their homepage soon. Show pics: Nikon D40 at ISO 1600, 1/60, no flash.

VN:F [1.9.3_1094]
Rating: 10.0/10 (1 vote cast)

Game Mechanics for Interaction Design

March 31st, 2009

Interesting interview about mechanics from computer games being implicitly used on websites like Youtube or Twitter.

VN:F [1.9.3_1094]
Rating: 5.0/10 (1 vote cast)

Cute cat theory

March 31st, 2009

The “Cute cat theory” is a peculiar but interesting talk on web 2.0 and political activism.

The Web was invented so physicists could share research papers. Web 2.0 was invented so we could share cute pictures of our cats. The tools of Web 2.0, while designed for mundane uses, can be extremely powerful in the hands of digital activists, especially those in environments where free speech is limited.

This talk looks at creative uses of well-known tools to promote free speech in countries from Bahrain to China, and looks at ways in which the use of these tools helps evade internet censorship and promotes human rights issues to a wider audience.

knut3

My girlfriend Eva’s cat Knut

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)

Faces

March 30th, 2009

faces11

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)

Faces

March 30th, 2009

faces16

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)

Faces

March 30th, 2009

faces14

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)

Faces

March 30th, 2009

faces12

VN:F [1.9.3_1094]
Rating: 6.0/10 (1 vote cast)

Faces

March 30th, 2009

faces32

Did you see both faces?

VN:F [1.9.3_1094]
Rating: 9.0/10 (1 vote cast)

Clowns

March 30th, 2009

At the Schauspielhaus some of world’s most famous clowns come together, including Peter Shub. Get your red nose overdose.

18.8.-30.8.2009

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)

Magic…

March 30th, 2009

… or is it psychology? Great video from Quirkology. Great book, also.

YouTube Preview Image
VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)

Frankie 95

March 30th, 2009

frankie95_150x200Looks like I managed to get a ticket for Frankie 95! So, if you got any idea for accommodation…

Happy :)

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)

Finanzkrise

March 29th, 2009

In meiner Lieblingszeitung “Die Zeit”  erschien einer der interessantesten Artikel zur Finanzkrise.

Die Finanzkrise hat riesige Vermögen vernichtet. Doch die Milliarden sind nicht verschwunden – sie werden gerade neu verteilt. Eine Spurensuche bei amerikanischen Baufirmen, deutschen Bankmanagern und chinesischen Investoren

Die Lektüre ist sehr zu empfehlen, wenn man verstehen will, was passiert.

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)

Society and life

March 29th, 2009

Some quite interesting talks about society and life.

  • Barry Schwartz: The paradox of choice
  • Dan Ariely: Why we think it’s OK to cheat and steal (sometimes)
  • Steve Jobs: Stanford Commencement Speech 2005

If you are in the mood for some new thoughts and motivation…

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)

Fridge

March 29th, 2009

Defrosted my fridge and all the penguins came out. Darn.

Shoo! Shoo!

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)

Great music videos

March 29th, 2009

Want to watch my favourite music videos?

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)

Swinging Ballroom 28.3.

March 28th, 2009

Brought my camera :)   Isn’t it amazing that everyone is smiling when dancing?

stage-club1

stage-club2

stage-club3

stage-club6

stage-club7

stage-club8

stage-club4

stage-club16

stage-club17

stage-club9

stage-club11

stage-club12

stage-club13

stage-club15

stage-club14

Nikon D-40 with flash SB-400 (indirect/ceiling, +1), 1/250 sec, ISO 800, F3.48-5.66

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)

Faces

March 28th, 2009

cheesy

Monster in my cheese

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)

Faces

March 28th, 2009

u-bahn

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)

Faces

March 28th, 2009

plank

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)

Faces

March 28th, 2009

gang

Panties gang

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)

Faces

March 28th, 2009

garbage

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)

Magic

March 27th, 2009

My favourite magic act

YouTube Preview Image YouTube Preview Image
VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)

Faxen

March 27th, 2009

faxen

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)

Hamburg goes east

March 27th, 2009

Some parties in Hamburg featuring east european music. Know more? Leave a comment!

Russendisko only rarely visits Hamburg, but check out their CDs.

If you like this, you will also like the “Club Mestizo” at the Hafenklang.

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)

Hitlers Hitparade

March 27th, 2009

Recently I watched the documentary Hitlers Hitparade, a collage which risks an unusual view on the german national socialist era. In contrast to the usual martial, black-and-white and deliberately deterrent pictures this movie mixes propaganda, colour and amateur videos, cabaret and entertainment; accompanied by music from the era (also swingin german music!).

This selection gives an idea of the allurement of the national socialism. At the same time, the movie is creating a second film with all the horror from that time in the mind of the beholder – it stays politically correct. “Hitler’s Hitparade” won a Grimme-Preis.

PS: I get similar goose bumps by the scene “Tomorrow Belongs to us” from the movie cabaret, which was was censored first.

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)

Thoughts on programming – Exceptions

March 27th, 2009

Exceptions bring many benefits:

  • Separation between function’s results and error information
  • When being part of the interface, they communicate cleary what special cases should be handled by the caller. (That’s why I in gererally prefer throwing an exception over returning null – returning null is too easy to oversee for the caller)

There are several discussions about error handling that i would not want to reopen, since I can see arguments for both sides:

  • Reusing existing Exceptions vs. creating your own, meaningful Exceptions (e.g. BookNotFound vs. NoSuchElementException, especially if there is more than on potential “element”)
  • Throwing exceptions for exceptional situations only, e.g. “Should a select throw a NotFound exception, or return null?”
  • Checked vs. unchecked exceptions?

One of my favourite strategies for error handling is to fail early: Your program wants to be as intolerant as possible.
A configuration value is missing? Throw an exception, don’t use a default value. Fixing a missing configuration value takes about 1 minute, finding out why the program uses an unexpected value might cost you hours. Make the program opinionated and simple.

In the coding: When your program notices an error, locally it seldom has the knowledge how to fix this. Make it somebody elses problem: Throw an exception, forget about it, continue with the normal flow.

In most programs I also introduced an “InternalException”: An exception thrown for all programming errors and “can’t happens”, if they do happen. Just in case – check, throw, and forget about it.
This can occur everywhere, hence it is an unchecked exeception.

In contrast to “can’t happen” there are some exceptions that are unavoidable in real life, so these should be dealt with in a manner that is understandable for a dummy user. Don’t show the user a stack trace for this classes of exceptions:

  • Configuration errors, installation errors, file not found
  • Invalid user input (parameters/values)
  • Other component (server, database) not reachable

When using exceptions, don’t clutter your code with try/catch. Throw everywhere, but catch only rarely: Everytime you catch, you should be able to fix/handle the problem (most times by signaling it to the user).
If you cannot handle the exception, let it flow until someone can.

This is only half the truth: One of the main other reasons for try/catch is exception mapping, the rational for this is seemingly good: Implementation hiding, especially at component borders.

try
{
    doSomething();
}
catch (JDBCConnectionException e)
{
    throw ComponentUnavailableException (e.getMessage());
}

Note there is one common mistake in the code above: You loose the valuable original stack trace. You would want to wrap the original Exception instead:

    throw ComponentUnavailableException (e.getMessage(), e);

Stack traces are a gift by mother Java, don’t throw them away light heartily.

The other major problem is that this mapping leads to a lot of duplicated try/catch code, especially if you want to map more than one exception in more than one method. As Ruby On Rails teaches us, mapping is seldom a good thing.

Untyped exceptions and your framework (Spring!) might help, but this is one of the tricky situations where code duplication is sometimes hard to avoid.

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)

Working men

March 27th, 2009

Two interesting documentary movies:

Workingman’s death

“Is heavy manual labor disappearing or is it just becoming invisible? Where can we still find it in the 21st century?
Workingman’s Death follows the trail of the HEROES in the illegal mines of the Ukraine, sniffs out GHOST among the sulfur workers in Indonesia, finds itself face to face with LIONS at a slaughterhouse in Nigeria, mingles with BROTHERS as they cut a huge oil tanker into pieces in Pakistan, and joins Chinese steel workers in hoping for a glorious FUTURE.”

Breathtaking pictures, also visually stunning – great camera work.

Herr Pilipenko und sein U-Boot

Documentary about Wladimir Pilipenko who built a submarine in his garage – in the middle of the Ukrainian steppe. After 30 years of work, see him trying out the green submarine in the village’s pond, and finally follow his journey to the black sea.

YouTube Preview Image
VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)

Karimmi

March 27th, 2009

sirpinski-und-rosette

Mein alter Freund Immi schreibt:

Die Faces-Sammlung find ich schoen! (Wenn du mal genug davon hast, kannst du das binden lassen und als facebook verkaufen… ;-)

Die Idee hatte allerdings schon jemand.

Und wenn wir bei Werbung fuer Webseiten sind:
Neu auf Karimmis Webseite: Wie man eine Hilbertkurve stickt.

Sehr hübsch, vor allem auch das Video.  Sehenswert ist sie generell, die Webseite von Immi und Karin.

Meine Hobbies sind Handarbeiten, Ballett und Zahlentheorie.

Unter anderem finden sich dort viele hübsche Lieder für Mathematiker , und seltsame Text-Adventures.

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)