Hey there 馃憢 I’m Carsten.

This is weblog of topics I stumbled upon over time and what I learned from solving them. Hope you like them as much as they made me happy. 馃槉

AWS IoT Provisioning Templates and Policies Within

Lately, I had to work a bit with AWS IoT. One aspect thereof is the device registration with just-in-time provisioning (JITP) being one option. In essence, with JITP you need to provide a template that configures all relevant resources of a newly registered IoT device: parameters like the device鈥檚 name, its certificate, and policies to be attached to the said certificate. Said certificate can then be used by its respective IoT device to authenticate with AWS IoT....

January 17, 2023 路 4 min 路 Carsten R枚snick-Neugebauer

Offline Development and Code Review Workflow

This is a story about how git-svn and a VSCode allowed me to maintain the peer-review-based software development cycle I am used to (and fond of) while working in an environment with only occasional access to the SVN-based source repository. git-svn I give you the essential points of my git-svn workflow without boring you with an in-depth explanation of commands or even an exploration of all the options git-svn comes with....

January 3, 2022 路 7 min 路 Theme PaperMod

pytest: Expand test inputs using dynamic fixtures

When writing tests in Python, I always choose the pytest test framework. It is concise, feature-rich has a great ecosystem of plugins, is widely used, and supported in the community. One aspect which makes it blend seamlessly with the code under test is how test input can be passed to it. Within this part of the usual arrange-act-assert structure of tests, let鈥檚 explore one particular feature: parametrization. Accompanying example Before we dive into pytest, let鈥檚 build a concrete example to eventually write tests for....

June 30, 2020 路 7 min 路 Carsten R枚snick-Neugebauer

From Python to Rust: First Impressions

I did a lot of systems programming in the last couple of months. In Python. Time to explore how I would do that in a language that is closer to the system yet brings guarantees I鈥檇 love to have in Python as well: Rust. But what are the core concepts, how does Rust code feel like? Let鈥檚 find out. Motivation A good share of my recent work involves building libraries in Python around proprietary communication protocols that handle data retrieval, decoding, validation, and proper error handling....

June 18, 2020 路 11 min 路 Carsten R枚snick-Neugebauer

Analyze Data with MongoDB and Ruby

This post gives a quick and very brief introduction on how to use MongoDB with Ruby. We will see how to install and connect to a MongoDB, how to populate the database with fake documents generated in just a couple of lines of code, and how to build some queries to gain insights into the stored documents. Prerequisites Let鈥檚 assume you already have Ruby installed. Throughout this post, we are going to create a small playground consisting of a few files....

November 22, 2016 路 7 min 路 Carsten R枚snick-Neugebauer