Claus Witt

Claus Witt

Personal blog of a danish developer.

Simple Queueing of Requests: a File Lock

We have a system which over the years have scaled up a couple of times. When we first created it, we decided against doing a “real queue” system like ActiveMQ and the likes.

Continue Read

Full Circle and back to Jekyll

I have written a lot of blogposts over the years about which technologies I have used for my blogs, how I use them and why I chose them. This is yet another one of those - however I’ll try to be brief.

Continue Read

How to write a cat (reading files in c)

There are typically three ways to make a commandline program read a file. The most common is probably to just append the filename as an argument to your program.

Continue Read

Tmux Plugin Manager

Tmux plugin manager is a must for anyone running their dev setup exclusively in the terminal…
Continue Read

Self Surveillance Dashboard

I am trying to closely monitor my productivity while working. For this reason I have a couple of metrics that I use to show on a dashboard on my iPad.

Continue Read

Typing, you need to practice

I love writing. I do it much. Developers are really just some sort of glorified writers. But while many of us, present company included, are very good at learning new technologies, techniques for building apps and all of that exciting stuff - most of us forget that it is the art and craft of typing that lets us do what we do.

Continue Read

What is love?

This could have been a long essay about the nature of love. Philosophic and deep.

Continue Read

Sharpen your saw

After a couple of months of only minor maintenance of our php codebases, I have dived deeper into php coding this week. And two things reallly annoyed me (apart from the fact that I was back coding php).

Continue Read

Running rspec Tests From vim in Another tmux Pane

When I write ruby code I usually write it in a tdd/bdd style using rspec as a test framework. I want to run tests directly from vim, but I do not like running tests through guard (don’t ask me why - I have no real answer).

Continue Read

Ruby, its about the concise code

Today I reviewed a co-workers code. And in a couple of minutes we rewrote it to be as concise - yet still expressive - as it could be. This is one of the things I love about ruby.

Continue Read

Quantified Self and Me

I have become quite serious about this whole Quantified Self movement. I guess as a developer it is easy to be caught up in that. And I have in large periods of time use RescueTime to monitor myself, but at times used more time analyzing the rescuetime data, than I saved from selfmonitoring. (I actually had to set up rescuetime as unproductive in rescuetime).

Continue Read

Combining Concetrate, Moom, iTerm and Tmux

My blogposts are written in markdown - using terminal vim as my editor. Each kind of task I work on occassionally have been created as an activity in Concentrate. I have hooked my concentrate app up to alfred - and thus I can start an activity easily directly from alfred. This enables me to reduce all distractions, and open everything I need to perform the task.

Continue Read

Some Quick Tips for Using Dash

I love dash. It allows me easy access to documentation to different programming languages and frameworks, without needing to be online. And it allows me to easily search for the documentation. This means I can work anytime, anywhere on most of my projects.

Continue Read

Writing Shell Functions in zsh

If you want to customize your zsh experience (and you have oh-my-zsh installed), you should know how to extend your shell with custom functions.

Continue Read