Daniel Keast

My current tmux config

My configuration file for tmux has changed a lot over the years. I ended up with all sorts of custom settings after reading tmux by Brian P. Hogan, and the Arch Wiki page. Both are great resources, but I ended up with a config file that I didn’t fully understand or use. I’ve since trimmed it down to only the parts I use regularly. This should also make upgrades easier, since tmux has a habit of breaking config file compatibility between versions.

Makefile for Markdown

I have a little git repository for keeping recipes. They’re all Markdown files, and I use pandoc to convert them into pdfs. I’ve created a Makefile for doing the conversion:

Game loop frame timer

I love video games, and partly started programming in the first place to learn how they work. Recently I’ve been learning OpenGL in an effort to try and build a simple game engine.

Disable middle button scroll

I’m playing around with blender tutorials, trying to understand how to make some simple 3d models. The way you move the 3d viewport around is by holding in the middle mouse button and moving the mouse around. This is blocked by a default setting in X for my thinkpad that causes middle click drag to emulate a mouse wheel for scrolling.

Real World Haskell 4

These are the first exercises of chapter 4.

Real World Haskell 3

Finally got it I think. This was bloody tricky.

Real World Haskell 2

There are several more questions in this book at the end of the chapter.

Real World Haskell

Real World Haskell chapter 3 is about recursive data types, and includes an example of creating a list-like data structure.

Edit minified json file in vim

If you need to edit a json file in vim that has been minified like this:

Short circuiting is lazy

I’m used to the concept of short circuiting operators. For example, in this Python code “evaluated” is never printed as it is clear before then that the entire if branch must resolve to True.

Dragon Quest Builders

Dragon Quest Builders is full of wisdom.

mitmproxy

mitmproxy is an intercepting proxy that allows you to inspect and modify http requests that you send through it.

Mednafen Game Boy palette

The mednafen multi-system emulator is a great piece of software. The cores that I’ve tried seem accurate enough, the interface is extremely simple and configuration is managed by a simple text flie.

Merging git repos

A couple of times I’ve wanted to merge two separate git repos into one. This has happened when they are really parts of the same application with the same release cycle, but have been split in a fit of over architecting.

Python array columns

I wanted to access the columns in a 2D array in Python today. I found that it’s surprisingly simple to do. This is what I ended up with: