Using ffmpeg to convert audio cassettes to videos

The excellent ffmpeg is the swiss army knife of all video processing. Just as a reminder to myself, here's a command line to convert an image and audio file to a video. ffmpeg -y -loop 1 -framerate 1 …

Yet another rsync based backup script

Just putting this here for easy reference, or to help any random passers by. I know there are tools that are supposed to automate this like rsnapshot but I was disappointed to see that rsnapshot is …

Setting up owncloud on ubuntu 18.04

In this article I will walk us throught installing a bare metal owncloud server based on ubuntu server 18.04. Throughout this guide we will assue that our server is named myowncloud.mydomain.com. Base …

The story with keyboard switching shortcuts

And so one day, I set to build a lightweight desktop environment around lxde. After some customizations, the thing that bugged me was that I could not set the keyboard layout change shortcut to the …

OpenCV calibration patterns

It has been surprisingly difficult to find good opencv calibration patterns. I had found what I though was a good calibration image and ended up wasting my time. Turns out that file does not consist …

Moving to a git monorepo without losing history

I am still hesitant to recommend to everyone to simplify their lives and move to a monorepo. But one can certainly go to extremes with many repositories. Juggling a system with tens of repositories is …

Type safe identifiers in C++

In many cases when writing an API, we need to express the concept of an identifier. In C++ there is a better, type-safe way to do identifiers.

John Carmack on Static code analysis

This is an mirror of a post from John Carmack. Recently I learned that his articles on #AltDevBlog are no longer acessible. So, in order to archive them, I am re-posting them here. These articles are …

John Carmack on Parallel Implementations

This is an mirror of a post from John Carmack. Recently I learned that his articles on #AltDevBlog are no longer acessible. So, in order to archive them, I am re-posting them here. These articles are …

John Carmack on Functional Programming in C++

So, this is an mirror of a post from John Carmack. Recently I learned that his articles on #AltDevBlog are no longer acessible. So, in order to archive them, I am re-posting them here. These articles …

John Carmack on Latency Mitigation Strategies

So, this is an mirror of a post from John Carmack. Recently I learned that his articles on #AltDevBlog are no longer acessible. So, in order to archive them, I am re-posting them here. These articles …

The World map of C++ STL Algorithms

I just found this little gem by watching this video by Jonathan Boccara Within it you will find the world map of STL algorithms. A handy thing to hang on your wall :-). You can get the map from the …

The pure bash bible

The pure bash bible is such an impressive resource of bash tips and tricks catalogued in a very readable way, with excellent examples. It shows how much you can do with bash built-in methods. Even …

Words of wisdom from the trenches of KDE

If you are programming with Qt, or even C++ in general, the KDE project has some advice for you. I found that I frequently stumbled in some of these issues when working with Qt code.

A Windows mutex is not a mutex

Well, it turns out that CreateMutex is not the right synchronization primitive when working with threads. Strictly speaking, it does work for synchronizing threads but it is far more powerfull than that and you are paying a needlessly high cost if you are using it just for threads.

Lockless Single Producer Single Consumer bounded queue

Why lockless queue A few days ago, the thought of building a lockless queue was somehow implanted in my mind. Queues like these can be handy for passing messages or work packages between threads. Of …

The purpose of life...

The purpose of life is to hydrogenate carbon dioxide.

Hard disk MTBF and failure rates in plain English

I was doing some research to buy a new hard disk to store my digital life on. The hard disk industry is going through interesting times the last few years. Disk capacities mostly plateued, rotational …

On hashing performance

I just thought of a quick and dirty way to informally test the performance of data hashing. Setting a baseline dd if=/dev/zero bs=64k status=progress | cat >/dev/null 24847384576 bytes (25 GB, 23 …

Deduplicating with Python

At home I have small always-on NAS aka file server aka headless linux machine. It has served me well for almost half a decade. I have gradually migrated all my data on that server. It also serves as …