Claus Witt

Personal blog of a danish developer

Writing Intelligent Keyboard Shortcuts in Elisp

In my quest to get better aquainted with my new editor I decided to make some intelligent keyboard shortcuts for my blogging repository. I decided to have one keyboard shortcut that could publish the current draft (with jekyll publish) and one to create a new draft (with jekyll draft).

Continue Read

A Walkthrough of My Spacemacs Configuration Files

My two week vacation is comming to an end. I have had one week of doing absolutely nothing productive on the computer - apart from playing around with emacs, org mode and configurations. And then I had a couple of days where I was completely home alone. I have been working on my secret project, as well as live coding some javascript canvas stuff and getting my feet wet in lisp and emacs configuration, literate programming with org-babel (oh is that the only awesome way I have worked with R).

Continue Read

Considering a Switch from Vim to Emacs?!

People joke about that I change my blogging platform and editor of choice only to have something to write about. And I guess I change both more than most people. My changes of blog engines may be a subject of another post.

Continue Read

What my Milk Thermometer Taught me About TDD

Last christmas (yeah I know long time ago, bear with me) I got a Milk Thermometer as a Christmas Present from my In-Laws. Even though they have probably spoken to my wife about that - it still amazes me how awesome they are at picking gifts for that I end up loving.

Continue Read

Why I gave away a domain name

Like so many of my colleagues I have a disease. I think it could be called “Idea Induced Domain Hogging”. You know that thing that happens in three easy steps. Develop gets idea, developer buys domain, developer proceeds to do nothing. What happens next depends on the individual. Sometimes you realize your mistake after one year, and stop paying for the thing. Sometimes you actually do real work and put something into the world - maybe someone actually uses it … But most often - the domain is forgotten until a reminder is sent (and my registrar sends them a lot).

Continue Read

Merge Clover XML Files

We have a single git repository with a large project that is split into two separate PHP application (api and client). We use travis for running tests and deploying to production and CodeClimate to keep an eye on our code quality.

Continue Read

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