Ramblings from the Viking who run the Cafe at the end of the universe.
Hi, my name is Jarle. I am a Freelance C++ developer. I have spent quality time with code for 35+ years, and I still love it!
This is my professional blog, where I write about stuff I research or discover during my daily work on various projects.
Articles
A smart asynchronous object-cache in C++
A generic cache in C++ that only fetch an item once, even if there are many simultaneous requests for the data.
Version 0.90 of restc-cpp with important new features
Restc-cpp is a REST client library for C++ projects.
The great mystery on how to make durable, asynchronous functions for asio.
Many C++ developers seems confused about the secret sauce of asynchronous completions - or composed operations - in Boost.asio.
Taming port-forwarding to k8s pods with SOCKS
Some times, especially during development, I need to connect to lot's of k8s pods using command-line curl (or other tools I have on my PC). The traditional solutions is to install a "jump-pod", and execute the commands there. Today I had enough and installed a socks proxy pod in the k8s cluster.
Deploying a docker-registry in your private kubernetes cluster
It is surprisingly hard to deploy a private docker registry anywhere, and kubernetes is no exception.
Deploying distcc in a kubernetes cluster to transform it into a big, fast build-machine.
For C++ developers, more cores to build on means faster builds. If your project is big, more cores can make a significant boost. If you have a local k8 cluster with spare CPU, it's amazingly simple to turn it into a build-machine.
Docker Cheat-Sheet
Lenovo Legion Y730 as a Linux Workstation
My experience and spells to make the Lenovo Legion Y730 work well on Debian Buster and Ubuntu 18.4 and 18.10
Some words about a simple experiment with QT
What does it take to make a simple Qt/QML application and deploy it on iOS, Android, macos, Linux, Windows? Let's find out!
Modern blogging
Latest articles
How to make std::shared_ptr<> objects singleton instances
How do you ensure that, for example, a database wrapper, only hands out one instance of any given data object?
How to install Docker Swarm with docker-machine
How to install Docker Swarm on a Linux machine in a minute.
A simple way to handle callbacks with Android and swig
How do we call a C++ std::function<> based callback from Android, in the simplest possible way?
How to install Docker on CentOS with Ansible
A very naive Ansible Playbook to install Docker and Docker Compose on CentOS.
How to share a private docker image or container securely
Some times it's required to copy a docker container between machines, or even developers. One option is to use a hosted repository and pay some money for this opportunity. Another option is to use a machine that has a reachable IP address and Docker to run a private and secure Docker Registry.