Hi!
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
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.
Building on Jenkins and deploying to a Docker container
Building something in Jenkins, using a declarative pipeline and deploying it to a Docker container is common, and you would expect it to be well documented and trivial to do right? Well, it is now.
Cmake cheat sheet
Serializing directly between C++ objects and Json files
C++ is a popular Object-oriented language. Json is a popular format for storage of Objects. Why is it so hard to make those two things play ball?
The second beta of restc-cpp is released
Restc-cpp is a REST client library for C++ projects.
Getting QSqlRecord right
I wasted quite some hours figuring out how to correctly insert new records in a QSqlTableModel derived class.
Jenkins: How to set the build-result as UNSTABLE when tests fail in a Declarative Pipeline
Jenkins' Declarative Pipelines are nice, but also very constrained. Here I show how to deal with failed tests.
Afterthoughts after creating a QT Desktop application
Just some thoughts and lessons learned after I created a X-platform QT Desktop application
How to make a dmg package for macos for a QT Application
It's actually quite simple, once you figure out how to sign the package.
X-platform build of a QT Application using a Jenkins pipeline
I set out to build a QT desktop application on Linux (several flavors of Debian and Ubuntu), macOS and Windows (64 bit builds) using Jenkins with slaves and Docker build-containers that is created on demand.
WHID - 20th anniversary edition
A bright new 20 years anniversary edition of my most useful software application ever; the definitive time tracking application for freelancers!