Projects & Stories

Prevent Spotify from "freezing" on Linux

photo_small I am a big fan of the Awesome-Windows-Manager for Linux but since a couple of weeks the Spotify-Client is freezing the X-Server for couple of seconds after a track change happened. I've already been thinking about that this has something to do with the track notification from spotify. After some research I discovered the option ui.track_notifications_enabled. After disabling the track notification, Spotify worked quite well again! It can be used []

Scala: Sum up values in a Map

photo_small Some addition to my previous code snippet post. scala> val m = Map("k1" -> 1.6, "k2" -> 2.2) m: scala.collection.immutable.Map[java.lang.String,Double] = Map(k1 -> 1.6, k2 -> 2.2) scala> m.foldLeft(0.0){ case (a, (k, v)) => a + v } res16: Double = 3.8000000000000003 Instead of pattern matching you can also use the underscore solution: scala> m.foldLeft(0.0)(_+_._2) res40: Double = 3.8000000000000003 The []

Driving motorbike in Dezember

photo_small In November I thought about driving motorbike, but it was already too cold in Germany. My first idea was to put my bike on the train and leave the country to south, but to my surprise the car-train is a dead end. Most of the provider want to get rid of it cause most people don't use it. Well after that knowledege there was only one thing left. Fly to a different country and rent a bike. After reading through different reports I ended up with http []

IMAP filtering for a remote mail server

Today I searched for a simple imap-filter-tool for my hosted mail server. I found following tool written in C: IMAPFilter is a mail filtering utility. It connects to remote mail servers using the Internet Message Access Protocol (IMAP), sends searching queries to the server and processes mailboxes based on the results. It can be used to delete, copy, move, flag, etc. messages residing in mailboxes at the same or different mail servers. The 4rev1 []

Call me ghost

Since yesterday I am using Ghost instead of tumblr. echo "Hello World"; It served me well, but self-hosted has a sweeter flavor :) I modified the default ghost theme for having different icons (e.g. diaspora icons) and adding diaspora share functionality to the post section. You'll find the theme code here: zabica.git For sharing posts to diaspora I am using: sharetodiaspora.github.io []