Typesafe Python!

Typesafety in python? Not very pythonic.. I know. But I write better code with strong type restrictions and without duck typing. I realized that while I was refactoring some old code I have written a year ago. The error messages are far away from the source of the error because I did not checked the types of variables.

I am too lazy for writing tons of “if not isinstance(var, type): raise TypeError(“Var is expected to be of type ‘type’”)” lines. Using the new annotations in Python 3 and some hacking with decorations for classes and functions I created some nice features that can improve code security:

Read More »

Posted in Projects | 2 Comments

Pure CSS box-shadow for IE 7/8

For my photo portfolio website I was searching for an easy way to add flexible shadows to boxes on my website. There are several techniques to achieve this via images, but most of the times these techniques not very flexible.

Luckily the upcoming CSS3 standard has a new feature called box-shadow. Which works well in the latest versions of Chrome/Safari and Firefox. But as usual – the Internet Explorer does not recognize this. But well, this time you can’t blame MS for this, the CSS3 specifications are not yet completely finished.

Nevertheless I searched for a way to get box shadows in IE 7 and 8 too. And I found it – CSS only. No Javascript or server-side code required.

Read More »

Posted in Experiments | Leave a comment

Simple Build System

Hey there,

I needed some kind of build tool for building c/c++ projects on windows and linux. My requirements are:

  1. Easy to maintain
  2. KISS (Keep it simple, stupid!)
  3. Dependency Managment
  4. Multiple Projects
  5. Dependencies between Projects
  6. Works with Visual Studio on Windows
  7. Works with make on Linux

Nearly all of the requirements are met by CMake. In fact with some hacking all of them were met, except two: KISS and easy to maintain.

Of course a build tool is a complex system, but there are some key tasks that are required over and over again. They don’t have to be that complicated.
So I hacked some macros for CMake to make these tasks a little easier to do and much more simple:
Read More »

Posted in Projects | Leave a comment

Moove Eröffnung

Heute hat in Aachen eine Boulderhalle eröffnet und ich hab die Gelegenheit mal genutzt ein paar Photos zu schießen. (Und selbst zu Bouldern, die Halle ist echt klasse!).
Ich habe gerade 700 Photos aussortiert und 50 davon ausgewählt und mir raucht der Kopf, daher fass ich mich einfach mal kurz.
Meine Favoriten gibt es hier, alle weiteren Photos findet ihr bei Flickr.
Wie immer würde ich mich sehr über Feedback freuen! :)

DSC_0267.jpg

DSC_0278-2.jpg

DSC_0361-2.jpg

DSC_0378-2.jpg

DSC_0400-2.jpg

Posted in Photography | Leave a comment

Fuel to Fire Konzertphotos

Ich war grad auf nem Konzert von Fuel to Fire im Aoxomoxoa! Die Band war richtig klasse, hat gut Stimmung gemacht und mich ein paar Photos schießen lassen. Okay, ein paar ist gut. Es sind ganze 320 Photos geworden ;).

Das ganze war jedoch alles andere als einfach. Im Aox gab es nur zwei Scheinwerfer die zusammen ein wunderschönes rosarot auf die Band geworfen haben. Hat ne coole, düstere Atmosphäre geschaffen, jedoch für Photos verdammt ungünstig. Sogar die Technik im Hintergrund war stärker beleuchtet.

Mit meinem alles andere als lichtstarken Kitobjektiv (F/5.3 auf 55mm) war da ohne ISO3200 und höher leider nichts zu machen, daher sind die Bilder ziemlich stark verrauscht. Leider konnte ich auch nur den Sänger und Lead Gitarristen ordentlich drauf kriegen, die anderen Bandmitglieder standen zu sehr im Schatten.

Die Photos habe ich in RAW geschossen und war fürchterlich frustriert als ich die Bilder auf den PC geladen habe. Es sah einfach grausig aus, und ich hätte nicht gedacht, dass man da noch was retten kann.

DSC_0016.jpg

Aber nach einigen basteleien und einem ordentlichen Weißabgleich hab ich doch ein paar recht ansehnliche Photos rausgeholt. Alles andere als qualitativ hochwertig, aber dennoch recht stilvoll finde ich.

Hier meine Favoriten:

DSC_0016.jpg

DSC_0301.jpg

DSC_0078.jpg

Die restlichen Photos findet ihr in dem Flickr Album.
Nochmal ein Danke an die Band! War echt ein geiles Konzert!
Für Feedback und Ratschläge bin ich natürlich gerne zu haben!

Dennis

Posted in Photography | 4 Comments