• Enable MySQL Streaming in Cascading / Scalding

    Last week I ran into a an ugly problem of Scalding: I needed to read a really large table from MySQL to process it in a certain job. In generall this is trivial: just use a JDBC Source, select your columns and that’s it. Usually we do this by using 1-3 parallel connections to the…

  • Compiling Cascading: FAILURE: Build failed with an exception.

    Today I ran into a really stupid error message when I tried to recompile cascading-jdbc: Evaluating root project ‘cascading-jdbc’ using build file ‘/home/…/cascading-jdbc/build.gradle’. FAILURE: Build failed with an exception. * Where: Build file ‘/home/…/cascading-jdbc/build.gradle’ line: 68 * What went wrong: A problem occurred evaluating root project ‘cascading-jdbc’. > Could not find method create() for arguments…

  • RaspberryPi Desktop Sharing via VNC

    The problem: Raspberry connected to a TV / share the desktop When connecting a RapsberryPi to a screen or TV to show something you surely would like to remote control the RasPi not only via shell (SSH) but also via VNC to see exactly what is displayed on the remote screen. So what we are…

  • RaspberryPi Weatherstation – The TV Station (Part III)

    The third and last post of this series describes the RasperryPi that is connected to the TV and displays the sensor data in a visually appealing way. Part 1 – Part 2 – Part 3 In the past blog post, the first Raspberry Pi was connected to several sensors. Tiny Python scripts poll the data…

  • How to make Html Links in Android Text View work

    The task itself is easy: You have a TextView which should show a clickable link to open a WebPage. As ususal, there are several ways to achieve the goal. The nasty thing is: if you mix them, they might no longer work. And also, some sometimes work, sometimes they don’t. As it took me a…

  • IllegalStateException: Content has been consumed

    When working with Android or (to be more general) Apache HttpComponents, one should keep in mind that it depends on the HttpResponses (Api: Apache, Android) if they can be consumed multiple times or not. And if the response is not, then better triple check your code, what you’re doing. I experiences the (very ugly) issue during the…

  • Android HTTP POST authentication error with Basic Auth

    In one of my Android apps, a user should be able to push JSON data to the server. Of course this should only be allowed if the user is authorized by his credentials. For simplicity, I decided to use Basic Auth via HTTPS. As I usually do not deal with Connectsions directly, I prefer to…

  • RaspberryPi Weatherstation – The Sensor Station (Part II)

    The second post of this series describes the RasperryPi that is connected to the sensors and used to record the data. Part 1 – Part 2 – Part 3 Hardware As described in the first part, I decided to use sensors from Tinkerforge as they are comparatively cheap, require no soldering, no electrical know how…

  • My first RaspberryPi project: TV-Controlled Weatherstation (Part I)

    Part 1 – Part 2 – Part 3 History For quite some time I’ve been playing with the thought about bying a Raspberry Pi. Yet the biggest issue was: I had no use case for it! I always liked information about the weather – especiallly I wanted to know in the morning how cold it…

  • Tomcat MongoDB Authentication Realm

    Tomcat MongoDB Authentication Realm Tomcat provides a nice and powerful mechanism for authentication by the so called Tomcat Authentication Realms. In the Tomcat Docs, Realms are explained as: A Realm is a “database” of usernames and passwords that identify valid users of a web application (or set of web applications), plus an enumeration of the…