<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>How-To on WhyNotHugo</title><link>https://whynothugo.nl/tags/how-to/</link><description>Recent content in How-To on WhyNotHugo</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Thu, 21 Mar 2024 21:34:46 +0100</lastBuildDate><atom:link href="https://whynothugo.nl/tags/how-to/posts.xml" rel="self" type="application/rss+xml"/><item><title>Measuring test coverage in Rust</title><link>https://whynothugo.nl/journal/2023/11/27/measuring-test-coverage-in-rust/</link><pubDate>Mon, 27 Nov 2023 13:10:56 +0800</pubDate><guid>https://whynothugo.nl/journal/2023/11/27/measuring-test-coverage-in-rust/</guid><description>I want to measure test coverage for the vparser library, and this is my first time measuring coverage with Rust. Some notes for future reference.
First, run the tests with instrumentation enabled:
&amp;gt; RUSTFLAGS=&amp;#34;-C instrument-coverage&amp;#34; cargo test -p vparser Compiling vparser v0.1.0 (/home/hugo/src/git.sr.ht/~whynothugo/vdirsyncer-rs/vparser) Finished test [unoptimized + debuginfo] target(s) in 0.33s Running unittests src/lib.rs (target/debug/deps/vparser-5204a1fc06fb7f74) ... In some cases, you might need to merge multiple profraw files into a single one.</description></item><item><title>Setting up an Alpine Linux workstation</title><link>https://whynothugo.nl/journal/2023/11/19/setting-up-an-alpine-linux-workstation/</link><pubDate>Sun, 19 Nov 2023 00:00:00 +0000</pubDate><guid>https://whynothugo.nl/journal/2023/11/19/setting-up-an-alpine-linux-workstation/</guid><description>In the upcoming months I will travel to visit family and friends. I intend to work remotely during some of those weeks (and will take some other weeks off too). In preparation for this, I&amp;rsquo;ve set up a new1 ThinkPad T14s Gen 2i laptop that I&amp;rsquo;ll be using to work remotely.
This article covers the steps that I take when setting up Alpine on this device. It is not intended to cover all possible installation options, but is a reference of my particular setup.</description></item><item><title>Installing postmarketOS on a OnePlus 6 with an encrypted filesystem</title><link>https://whynothugo.nl/journal/2023/04/12/installing-postmarketos-on-a-oneplus-6-with-an-encrypted-filesystem/</link><pubDate>Wed, 12 Apr 2023 00:00:00 +0000</pubDate><guid>https://whynothugo.nl/journal/2023/04/12/installing-postmarketos-on-a-oneplus-6-with-an-encrypted-filesystem/</guid><description>I&amp;rsquo;ve been experimenting with postmarketOS for a long time now. My long-term aspiration is to set up a phone that I can use as a daily driver. I need to overcome a lot of obstacles to achieve this.
Today, my goal is to encrypt the main partition. So if I lose the phone, it doesn&amp;rsquo;t have all my messaging, email and credentials totally unencrypted. This is a hard requirement before moving forward with a lot of other things.</description></item><item><title>Quick and simple VMs with qemu</title><link>https://whynothugo.nl/journal/2022/07/01/quick-and-simple-vms-with-qemu/</link><pubDate>Fri, 01 Jul 2022 00:00:00 +0000</pubDate><guid>https://whynothugo.nl/journal/2022/07/01/quick-and-simple-vms-with-qemu/</guid><description>I don&amp;rsquo;t use VMs very often, so there&amp;rsquo;s no chance I can remember all the dozens of command line flags for qemu.
I end up using virt-manager most of the time. It&amp;rsquo;s a GUI for managing QEMU (and other VM backends) and has dozens of checkboxes and buttons, which come in handy for really complex virtual hardware configurations where I&amp;rsquo;d need to know a dozen obscure command line flags to replicate the same results.</description></item></channel></rss>