Tag: Development

11 posts with #Development

How to typed command line arguments in python

How to typed command line arguments in python Creating tools with python is a common practice due to its ease of use and productivity. Now python already has good built-in support for parsing command-line arguments, but we can take it one step further. Let’s take the following example where we...

Published Mon, 22 Apr 2024

How to call a function of a file in python

How to call a function of a file in python Take the following use case, where I have a script that I use in my Continues Integration (CI) pipeline and I would like to call a function in that file from the command-line with parameters. The inspect module provides several useful functions to help get...

Published Fri, 17 Nov 2023

Practical cppstd 17 highlights by example

Practical cppstd 17 highlights by example Language Features Library Features Language Features Nested namespace definitions namespace A::B::C { // ... } // Rather than: namespace A { namespace B { namespace C { // ... } } } Structured bindings #include <map> #include <string> #include...

Published Mon, 06 Mar 2023

Create an array of all possible variants alternatives of std::variant type

The standard library std::variant is a usefull feature, introduced since c++17, to define a type that can hold multiple alternative types. For example a cell of a CSV file could represent multiple data types such as a string or int. Declaring a new type std::variant<std::string, int> allows to...

Published Thu, 02 Mar 2023

How to build Macos Universal Binaries with Conan and CMake

*** update (May 2025) *** Added conan 2.x cmaketoolchain universal binary support. Added VirtualBuildEnv configuration examples. Added section about compiling boost. Added automated patching section. How to build Macos Universal Binaries with Conan and CMake Universal Binaries contain native...

Published Fri, 25 Nov 2022

How a smart mirror project finished after years of work

Introduction Early 2019 I noticed the Magic Mirror project. To me the way of how woodworking and technology come together really got me. I just had to build one from scratch, ofcourse. It was a great opportunity for me to build something physical and learn a few things about some fancy new...

Published Tue, 22 Feb 2022

C# Performance - Profiling introduction

Welcome! In this blog series I will share some of the knowledge I gained when doing performance optimizations for a project some time ago. Optimizing code for performance requires good knowledge of the fundamental concepts of computer architecture. In this first blog post I will explain about...

Published Wed, 14 Oct 2020

Reactive testing with Gherkin, ReactiveX and asyncio

Have you ever written integration test with asynchronous behavior? I have, and it has always been a struggle… CI/CD pipelines which regularly fail because of some timeout. Then, “a wild project manager appears!”, and starts asking questions why investigating takes so long…...

Published Mon, 14 Sep 2020

How to setup docker credential-store

Since docker version 19 it start notifying the user that the docker credentials are stored unencrypted. WARNING! Your password will be stored unencrypted … To solve this we will use the Docker credential-store feature. Ubuntu: docker-credential-pass OSX: osxkeychain Windows: wincred In this blog...

Published Tue, 28 Jul 2020

How to set Linux MAC address

Last post I wrote about a embedded device running Linux where a MAC address is stored in the EEPROM. The first six bytes are reserved for the MAC address which (ideally) only should be written once. To apply the MAC address the numbers need to be hexadecimal formatted and separated with a colon(:)...

Published Mon, 27 Jul 2020