<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Posts on Jacob Gerard</title><link>https://jagerard.com/posts/</link><description>Recent content in Posts on Jacob Gerard</description><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 25 Nov 2026 20:55:59 +0000</lastBuildDate><atom:link href="https://jagerard.com/posts/index.xml" rel="self" type="application/rss+xml"/><item><title>Curated Content</title><link>https://jagerard.com/posts/curated-content/</link><pubDate>Wed, 25 Nov 2026 00:00:00 -0500</pubDate><guid>https://jagerard.com/posts/curated-content/</guid><description>&lt;p>This probably deserves a little disclaimer: I really don&amp;rsquo;t know where this post
is going as I type. Over the past few weeks, I&amp;rsquo;ve &lt;em>re-explored&lt;/em> some of the
indie-web and remembered that I also have a place where I can write.&lt;/p>
&lt;hr>
&lt;p>I&amp;rsquo;ve never been much of a social-media guy&amp;mdash;very rarely put up carefully
crafted posts. I still have accounts on big platforms that I keep for when I
want to find an old friend. But I don&amp;rsquo;t keep those apps on my phone, which
means I&amp;rsquo;m often months out of the loop. Honestly, the way I keep up with
internet trends is by having my wife&amp;mdash;who is chronically online
(self-proclaimed)&amp;mdash;&lt;strong>curate content&lt;/strong> for me. And I mean that in the literal
sense where we will, on occasion, scroll through a bunch of Instagram reels
that she sent.&lt;/p></description><content:encoded>&lt;p>This probably deserves a little disclaimer: I really don&amp;rsquo;t know where this post
is going as I type. Over the past few weeks, I&amp;rsquo;ve &lt;em>re-explored&lt;/em> some of the
indie-web and remembered that I also have a place where I can write.&lt;/p>
&lt;hr>
&lt;p>I&amp;rsquo;ve never been much of a social-media guy&amp;mdash;very rarely put up carefully
crafted posts. I still have accounts on big platforms that I keep for when I
want to find an old friend. But I don&amp;rsquo;t keep those apps on my phone, which
means I&amp;rsquo;m often months out of the loop. Honestly, the way I keep up with
internet trends is by having my wife&amp;mdash;who is chronically online
(self-proclaimed)&amp;mdash;&lt;strong>curate content&lt;/strong> for me. And I mean that in the literal
sense where we will, on occasion, scroll through a bunch of Instagram reels
that she sent.&lt;/p>
&lt;p>Despite never being a big participant on social-media, I still like to consume
content. But the bots and ads and AI and even professional content creators
have taken a lot of the fun out of it. And the big platforms (I&amp;rsquo;m most guilty
of wasting time on YouTube) are meant to be addictive and lock us into their
walled-gardens.&lt;/p>
&lt;p>Human &lt;strong>curated content&lt;/strong> is just a lot better. Think about it&amp;hellip; you share the
funny reels with your friends who will appreciate it. You tell work friends
about a book or movie you like. You send spicy memes in the group chat.&lt;/p>
&lt;p>But we are mosty still reliant on sifting through the algorithm to find the
gems to send to the people we know&amp;hellip;&lt;/p>
&lt;p>That is, unless you are willing to look at an older technology for part of the
solution. RSS feeds exist for all YouTube channels, most blogs (including those
on Substack which used to be kind of popular), and some news sites. No
algorithm. No slop. You choose what pages to subscribe to and get everything
they post. And there are plenty of reader options&amp;mdash;many are even offline.&lt;/p>
&lt;p>So I dove down and found some of the folks I like hearing from and added their
pages to my reader. Now I go there and one news site for most of my content
consumption &lt;em>needs&lt;/em>. It&amp;rsquo;s kind of freeing because I probably spend less time
online and am not as angry when I go back to whatever I was doing.&lt;/p>
&lt;p>What kinds of things am I subscribed to? Tech news and blogs (specifically
about old tech, self-hosting, cyber, or linux), foreign policy news, and golf
content (a couple YouTubers). I&amp;rsquo;ll probably add a list of my favorites to this
site at some point.&lt;/p>
&lt;p>RSS has never been the answer for everything. And as long as people are
releasing content in walled gardens, that will continue to be the case. But you
can encourage folks to share in more open forums and hopefully use tools like
this to limit your daily &lt;em>rot&lt;/em> time while scrolling.&lt;/p>
&lt;hr>
&lt;p>PS: Sadly, I just saw that Reddit removed their RSS feeds for subreddits
because of scrapers that probably fed AI model training. The hot take on that
would be that Reddit shouldn&amp;rsquo;t really own content on their platform when they
rely on millions of people (and bots) across the internet to contribute. But
that&amp;rsquo;s probably a discussion for another time.&lt;/p></content:encoded></item><item><title>CMake Quick Reference</title><link>https://jagerard.com/posts/cmake/</link><pubDate>Fri, 19 Sep 2025 00:00:00 -0500</pubDate><guid>https://jagerard.com/posts/cmake/</guid><description>&lt;p>Writing this so I can quickly find a few examples of CMake setup material that I&amp;rsquo;ll inevitably need in my next project. There are plenty of great resources out there that this drew from, but these are the simple practices that have worked for me so far. If you have recommendations on things to add, then please reach out.&lt;/p>
&lt;p>CMake is a cross-platform system that provides an easier interface to build the compilation tools necessary for your projects (think Makefiles, Visual Studio Solutions, Ninja files, etc.). It is a relatively intuitive interface of various text files (&lt;code>CMakeLists.txt&lt;/code>) that define your project structure, compilation options, build editions, library imports/exports, and even test cases. The toolset is robust and many projects rely on CMake to perform their builds with consistency in different environments. This quick-start guide takes inspiration from some of my basic projects and guidance from the fantastic book &lt;em>Professional CMake: A Practical Guide&lt;/em>.&lt;/p></description><content:encoded>&lt;p>Writing this so I can quickly find a few examples of CMake setup material that I&amp;rsquo;ll inevitably need in my next project. There are plenty of great resources out there that this drew from, but these are the simple practices that have worked for me so far. If you have recommendations on things to add, then please reach out.&lt;/p>
&lt;p>CMake is a cross-platform system that provides an easier interface to build the compilation tools necessary for your projects (think Makefiles, Visual Studio Solutions, Ninja files, etc.). It is a relatively intuitive interface of various text files (&lt;code>CMakeLists.txt&lt;/code>) that define your project structure, compilation options, build editions, library imports/exports, and even test cases. The toolset is robust and many projects rely on CMake to perform their builds with consistency in different environments. This quick-start guide takes inspiration from some of my basic projects and guidance from the fantastic book &lt;em>Professional CMake: A Practical Guide&lt;/em>.&lt;/p>
&lt;p>Using CMake, compilation of a project gets broken down into two steps: configuration and build. In the simplest case, CMake detects your compilation toolchain and generates the build tools in an area separate from your source code. You can then make a build call to CMake (or call the compilation tools directly) to actually generate your binaries. The main benefit is that you can define the desired state of the project in one place and still compile to that state on many operating systems and architectures. It also gives you the nice ability to define a non-default toolchain so you can cross-compile code for other platforms.&lt;/p>
&lt;p>The most generic use case is shown below. You can do this in a number of different ways, but I think this is the most modern and obvious way to show what is actually happening. Traditionally, you would change to a build directory and call &lt;code>cmake&lt;/code> on the source location (&lt;code>cmake ..&lt;/code>) instead of using the &lt;code>-S&lt;/code> and &lt;code>-B&lt;/code> options. But that isn’t as descriptive, so I prefer this more modern approach.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-sh" data-lang="sh">&lt;span style="display:flex;">&lt;span>cmake -S srcdir -B buildir
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>cmake –build builddir –target TARGETOPT
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>If you needed to choose a specific compiler on the command line then you’d run something like &lt;code>CC=clang CXX=clang++ cmake ..&lt;/code> to set those environment variables in the actual build scripts.&lt;/p>
&lt;p>If you wanted to set options then these are the most common that users configure on a project. Whether via the command line or setting within &lt;code>CMakeLists.txt&lt;/code> files.&lt;/p>
&lt;p>The below are common CMake options for many packages. You can conditionally set these with &lt;code>if&lt;/code> statements throughout any of the &lt;code>CMakeLists.txt&lt;/code> files in your source tree.&lt;/p>
&lt;ul>
&lt;li>&lt;code>DCMAKE_BUILD_TYPE&lt;/code> - Pick from Release, RelWithDebInfo, Debug, or sometimes more.&lt;/li>
&lt;li>&lt;code>DCMAKE_INSTALL_PREFIX&lt;/code> - The location to install to. System install on UNIX would often be &lt;code>/usr/local&lt;/code> (the default), user directories are often &lt;code>~/.local&lt;/code>, or you can pick a folder.&lt;/li>
&lt;li>&lt;code>DBUILD_SHARED_LIBS&lt;/code> - You can set this ON or OFF to control the default for shared libraries (the author can pick one vs. the other explicitly instead of using the default, though)&lt;/li>
&lt;li>&lt;code>DBUILD_TESTING&lt;/code> - This is a common name for enabling tests&lt;/li>
&lt;/ul>
&lt;p>Standard &lt;code>CMakeLists.txt&lt;/code>:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-txt" data-lang="txt">&lt;span style="display:flex;">&lt;span>cmake_minimum_required(VERSION 3.19)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>project(MyProject VERSION 1.0
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>                  DESCRIPTION &amp;#34;My Project&amp;#34;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>                  LANGUAGES CXX)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>add_executable(one two.cpp three.h)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>add_library(one STATIC two.cpp three.h)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>target_include_directories(one PUBLIC include)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>add_library(another STATIC another.cpp another.h)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>target_link_libraries(another PUBLIC one)
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>General advice for project structure is to keep a &lt;code>build&lt;/code> directory separate from source. If you want to run any linters in a workflow (see below) then you might have a &lt;code>cmake&lt;/code> folder to define those target commands. Here is a sample project tree:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-txt" data-lang="txt">&lt;span style="display:flex;">&lt;span>- project
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>  - .gitignore
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>  - README.md
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>  - LICENSE.md
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>  - CMakeLists.txt
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>  - cmake
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>    - FindSomeLib.cmake
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>    - something_else.cmake
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>  - include
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>    - project
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>      - lib.hpp
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>  - src
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>    - CMakeLists.txt
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>    - lib.cpp
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>  - tests
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>    - CMakeLists.txt
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>    - testlib.cpp
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>  - docs
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>    - CMakeLists.txt
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>  - extern
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>    - testinglibrary
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>  - scripts
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>    - helper.py
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>&lt;code>CMakePresets.json&lt;/code> allows you to specify multiple versions of the compilation chain that may be different or for different architectures so you don’t have to remember the actual &lt;code>cmake&lt;/code> command when you go to execute. You can have configuration presets, build presets, and workflow presets. Workflows allow you to call multiple other presets in a specific sequence that you prefer. A simple example is below:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-txt" data-lang="txt">&lt;span style="display:flex;">&lt;span>{
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;version&amp;#34;: 6,
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;configurePresets&amp;#34;: [
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> {
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;name&amp;#34;: &amp;#34;debug&amp;#34;,
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;displayName&amp;#34;: &amp;#34;Debug&amp;#34;,
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;generator&amp;#34;: &amp;#34;Unix Makefiles&amp;#34;,
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;binaryDir&amp;#34;: &amp;#34;build/debug&amp;#34;,
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;cacheVariables&amp;#34;: {
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;CMAKE_BUILD_TYPE&amp;#34;: &amp;#34;Debug&amp;#34;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> }
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> },
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> {
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;name&amp;#34;: &amp;#34;release&amp;#34;,
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;displayName&amp;#34;: &amp;#34;Release&amp;#34;,
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;generator&amp;#34;: &amp;#34;Unix Makefiles&amp;#34;,
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;binaryDir&amp;#34;: &amp;#34;build/release&amp;#34;,
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;cacheVariables&amp;#34;: {
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;CMAKE_BUILD_TYPE&amp;#34;: &amp;#34;Release&amp;#34;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> }
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> }
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> ],
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;buildPresets&amp;#34;: [
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> {
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;name&amp;#34;: &amp;#34;build-debug&amp;#34;,
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;displayName&amp;#34;: &amp;#34;Debug Build&amp;#34;,
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;configurePreset&amp;#34;: &amp;#34;debug&amp;#34;,
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;configuration&amp;#34;: &amp;#34;Debug&amp;#34;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> },
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> {
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;name&amp;#34;: &amp;#34;build-release&amp;#34;,
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;displayName&amp;#34;: &amp;#34;Release Build&amp;#34;,
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;configurePreset&amp;#34;: &amp;#34;release&amp;#34;,
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;configuration&amp;#34;: &amp;#34;Release&amp;#34;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> },
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> {
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;name&amp;#34;: &amp;#34;clang-format-debug&amp;#34;,
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;displayName&amp;#34;: &amp;#34;Debug clang-format linting&amp;#34;,
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;configurePreset&amp;#34;: &amp;#34;debug&amp;#34;,
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;configuration&amp;#34;: &amp;#34;Debug&amp;#34;,
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;targets&amp;#34;: [&amp;#34;clang-format-lint&amp;#34;]
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> }
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> ],
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;workflowPresets&amp;#34;: [
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> {
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;description&amp;#34;: &amp;#34;Debug workflow&amp;#34;,
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;name&amp;#34;: &amp;#34;debug&amp;#34;,
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;steps&amp;#34;: [
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> {
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;type&amp;#34;: &amp;#34;configure&amp;#34;,
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;name&amp;#34;: &amp;#34;debug&amp;#34;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> },
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> {
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;type&amp;#34;: &amp;#34;build&amp;#34;,
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;name&amp;#34;: &amp;#34;clang-format-debug&amp;#34;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> },
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> {
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;type&amp;#34;: &amp;#34;build&amp;#34;,
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;name&amp;#34;: &amp;#34;build-debug&amp;#34;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> }
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> ]
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> },
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> {
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;description&amp;#34;: &amp;#34;Release workflow&amp;#34;,
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;name&amp;#34;: &amp;#34;release&amp;#34;,
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;steps&amp;#34;: [
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> {
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;type&amp;#34;: &amp;#34;configure&amp;#34;,
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;name&amp;#34;: &amp;#34;release&amp;#34;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> },
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> {
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;type&amp;#34;: &amp;#34;build&amp;#34;,
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;name&amp;#34;: &amp;#34;build-release&amp;#34;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> }
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> ]
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> }
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> ]
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>}
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>And then you can build a preset by doing something like &lt;code>cmake –workflow –preset debug&lt;/code>, which in the case above will configure a debug version of the generators, run &lt;code>clang-format&lt;/code> through the &lt;code>clang-format-lint&lt;/code> CMake target, and then actually build the debug version.&lt;/p>
&lt;p>I also like to have a separate &lt;code>Makefile&lt;/code> that will just take my debug or testing presets and run them in a shorter command so that I only have one command to type to keep developing.&lt;/p>
&lt;p>References:&lt;/p>
&lt;ul>
&lt;li>&lt;em>Professional CMake: A Practical Guide&lt;/em>&lt;/li>
&lt;/ul></content:encoded></item><item><title>2024 Books</title><link>https://jagerard.com/posts/2024books/</link><pubDate>Tue, 24 Dec 2024 00:00:00 -0500</pubDate><guid>https://jagerard.com/posts/2024books/</guid><description>&lt;p>In the past few years I&amp;rsquo;ve set some pretty high reading goals for myself (23 in 2023 and 24 in 2024) and came up short each time. Basically I&amp;rsquo;ve started out each year strong but then got sidetracked by work, learning other things, and pure laziness come late-summer. I still learned a lot and enjoyed the books I&amp;rsquo;ve read each year, but obviously want to push myself to read more. Without going to look up the stats, I think I heard that around 10,000 books come out each year and the average American reads less than 10. I am trying to change this for myself since I appreciate the longer form content and feel that I get a lot more out of it.&lt;/p></description><content:encoded>&lt;p>In the past few years I&amp;rsquo;ve set some pretty high reading goals for myself (23 in 2023 and 24 in 2024) and came up short each time. Basically I&amp;rsquo;ve started out each year strong but then got sidetracked by work, learning other things, and pure laziness come late-summer. I still learned a lot and enjoyed the books I&amp;rsquo;ve read each year, but obviously want to push myself to read more. Without going to look up the stats, I think I heard that around 10,000 books come out each year and the average American reads less than 10. I am trying to change this for myself since I appreciate the longer form content and feel that I get a lot more out of it.&lt;/p>
&lt;p>To be fair to myself I have still done mostly productive things with that time in both 2023 and 2024. But I have either made excuses to stop reading during the busier times or just hit the wall with whatever book I was currently on. This coming year I am aiming to change that by loosening the restrictions on type of books I consume. I have sporadically maintained a list of want-to-reads on Goodreads which informed my choices in the past. But in 2025 I am hoping to just pick up whatever looks interesting and that I will power through at the time. I still hope to do a decent split between fiction and non-fiction; but won&amp;rsquo;t be limiting myself to that.&lt;/p>
&lt;p>I&amp;rsquo;m excited to get started on it and am also aiming to write my updates here (along with whether I am ahead or behind) to stay motivated throughout the year. The official goal will once again match up with the year; so 25 in &amp;lsquo;25!&lt;/p>
&lt;p>Without further ado here are my lists for the past two years:&lt;/p>
&lt;h2 id="2023">2023&lt;/h2>
&lt;ol>
&lt;li>The Innovators - Walter Isaacson&lt;/li>
&lt;li>2001: A Space Odyssey - Arthur C. Clarke&lt;/li>
&lt;li>Chip War - Chris Miller&lt;/li>
&lt;li>Red Rising - Pierce Brown&lt;/li>
&lt;li>The Rise of Athens - Anthony Everitt&lt;/li>
&lt;li>Catcher in the Rye - J.D. Salinger&lt;/li>
&lt;li>Golden Son - Pierce Brown&lt;/li>
&lt;li>Morning Star - Pierce Brown&lt;/li>
&lt;li>Dune: Messiah - Frank Herbert&lt;/li>
&lt;li>Six Frigates - Ian Toll&lt;/li>
&lt;li>Sandworm - Andy Greenberg&lt;/li>
&lt;li>The Name of the Wind - Patrick Rothfuss&lt;/li>
&lt;li>Old Man&amp;rsquo;s War - John Scalzi&lt;/li>
&lt;li>Fourth Wing - Rebecca Yarros&lt;/li>
&lt;li>A Brief Guide to Maritime Strategy - James R. Holmes&lt;/li>
&lt;/ol>
&lt;p>I think that the best books I read were either the first &lt;em>Red Rising&lt;/em> trilogy or &lt;em>The Name of the Wind&lt;/em>. Unfortunately with the latter there are only two books released and it has been a long time since Patrick Rothfuss released the second. So maybe hold out on this series for the time being if you need closure.&lt;/p>
&lt;h2 id="2024">2024&lt;/h2>
&lt;p>This was the first year that I ever used audiobooks to consume content. It was nice to finish out some of them without needing to sit down and read the entire thing and I honestly don&amp;rsquo;t think I missed out too much on taking notes. I wouldn&amp;rsquo;t do it for a book that I absolutely wanted to get all the nuggets of wisdom from, but there are plenty on my want-to-read list that I will consider audio for.&lt;/p>
&lt;ol>
&lt;li>The Wise Man&amp;rsquo;s Fear - Patrick Rothfuss&lt;/li>
&lt;li>How Big Things Get Done - Bent Flyvbjerg&lt;/li>
&lt;li>Range: Why Generalists Triumph in a Specialized World - David Epstein&lt;/li>
&lt;li>The Slow Regard of Silent Things - Patrick Rothfuss&lt;/li>
&lt;li>The Exponential Age - Azeem Azhar&lt;/li>
&lt;li>War at the Speed of Light - Louis A. Del Monte&lt;/li>
&lt;li>Team of Teams - Stanley McChrystal&lt;/li>
&lt;li>The Song of Achilles - Madeline Miller&lt;/li>
&lt;li>Stolen Focus - Johann Hari&lt;/li>
&lt;li>The Sun Also Rises - Ernest Hemingway&lt;/li>
&lt;li>Trillions - Robin Wigglesworth&lt;/li>
&lt;li>Thinking In Systems - Donella Meadows&lt;/li>
&lt;li>Iron Gold - Pierce Brown&lt;/li>
&lt;li>SPQR: A History of Ancient Rome - Mary Beard&lt;/li>
&lt;li>Software Engineering at Google&lt;/li>
&lt;li>Dark Age - Pierce Brown&lt;/li>
&lt;/ol>
&lt;p>My favorite book of 2024 was pretty easily &lt;em>How the Big Things Get Done&lt;/em>. It was very informative, had lots of interesting anecdotes, and was made relatable to everyday life. There were a few other good ones in the mix, but that would be my big recommendation.&lt;/p></content:encoded></item><item><title>2022 Yearly Learning Wrap Up</title><link>https://jagerard.com/posts/2022wrapup/</link><pubDate>Fri, 30 Dec 2022 00:00:00 -1000</pubDate><guid>https://jagerard.com/posts/2022wrapup/</guid><description>&lt;p>This is a short summary of all the things I&amp;rsquo;ve been working on for the past
year. It was a packed schedule for all aspects of my life, and taking time at
the end of the day to sit down and learn something new wasn&amp;rsquo;t always the top
priority. But I was able to squeeze in a few useful topics that have been fun
in my time off work. Most of the coding and technology skills were used to
build out my home website.&lt;/p></description><content:encoded>&lt;p>This is a short summary of all the things I&amp;rsquo;ve been working on for the past
year. It was a packed schedule for all aspects of my life, and taking time at
the end of the day to sit down and learn something new wasn&amp;rsquo;t always the top
priority. But I was able to squeeze in a few useful topics that have been fun
in my time off work. Most of the coding and technology skills were used to
build out my home website.&lt;/p>
&lt;h2 id="computing">Computing&lt;/h2>
&lt;p>For a little over a year I have been internally hosting a Flask website that
takes in expense data and tracks savings progress in Python. This all hooks in
to a SQLite database which I can query or run simple analytics on to track my
financial goals. It started out very basic with Jinja templates that would show
the results of queries, but has since grown to support almost all of my
financial needs.&lt;/p>
&lt;p>During the first half of the year I decided to really step it up. I optimized
the back end and made more efficient use of SQL queries. During the late spring
and early summer I learned JavaScript basics and wrote an API layer so that I
could run Asynchronous queries and update the DOM to reflect this. I improved
the overall layout of the site with more refined CSS. Then, towards the end of
the year, I again improved on the layout and fixed all the spaghetti code that
I wrote to manage the single page application sections. I also began to study a
little bit of data science and plotting with matplotlib and used that to write
an awesome year end summary in LaTeX.&lt;/p>
&lt;p>These skills sort of moved all over the place, but I basically did a slow build
up from an idea that I had last year. I was tired of trying to track things
across different Excel pages and knew that a database would be a more elegant
solution. I progressively built a web application that could cleanly represent
my data and motivate me to progress quickly to my savings goals. Currently the
site inputs and updates expenses, tracks budgets, retrieves savings and net
worth numbers, and charts out growth. I can filter queries and easily navigate
through the main functions.&lt;/p>
&lt;p>On top of that, I can proudly say that I wrote all the front end code for this
website by hand (including the CSS) to eliminate any calls to outside libraries
like Bootstrap. The back end is Python that uses Flask to serve the application
and feeds off business logic that I wrote for a command line version of the
budgeting software. All this is self-hosted on my Fedora desktop and served
through an NGINX web server.&lt;/p>
&lt;p>I will continue to build features onto this site throughout 2023. The primary
thing I&amp;rsquo;m missing is a nice way to check on my investment data within the web
app. I think that I will be able to build out a few pages that either track
what I already have at the beginning of each month, or potentially log into the
sites and scrape my investment data into the app. I&amp;rsquo;ll take a break at the
beginning of the year, but will probably hit the ground running on that in
February.&lt;/p>
&lt;p>I would love to upload this project to my GitHub page, but due to the sensitive
nature of financial data I have been reluctant to do that for fear that I left
some major identifying information in the code. I will be attempting to go
through and clean my git repo so that this can be made public. There are other
projects that can do this better; but I have learned a lot while implementing
this and it fits my needs nicely.&lt;/p>
&lt;h2 id="books">Books&lt;/h2>
&lt;p>I&amp;rsquo;ve read 13 books and wrote up 3 posts with notes and quotes! I&amp;rsquo;ll link those
here and then post my impressions of a few of the others that I learned a good
deal from. I highly recommend &lt;em>The Psychology of Money&lt;/em> by Morgan Housel as I
think everybody can get a lot out of it. Plus its a fairly quick read.&lt;/p>
&lt;ol>
&lt;li>&lt;input checked="" disabled="" type="checkbox"> &lt;a href="https://jagerard.com/posts/napoleon">Napoleon: A Life - Andrew Roberts&lt;/a>&lt;/li>
&lt;li>&lt;input checked="" disabled="" type="checkbox"> Ender&amp;rsquo;s Game - Orson Scott Card&lt;/li>
&lt;li>&lt;input checked="" disabled="" type="checkbox"> &lt;a href="https://jagerard.com/posts/genghis-khan">Genghis Khan and the Making of the Modern World - Jack Weatherford&lt;/a>&lt;/li>
&lt;li>&lt;input checked="" disabled="" type="checkbox"> Where the Crawdads Sing - Delia Owens&lt;/li>
&lt;li>&lt;input checked="" disabled="" type="checkbox"> Dune - Frank Herbert&lt;/li>
&lt;li>&lt;input checked="" disabled="" type="checkbox"> Verity - Colleen Hoover&lt;/li>
&lt;li>&lt;input checked="" disabled="" type="checkbox"> &lt;a href="https://jagerard.com/posts/china">China: A History - John Keay&lt;/a>&lt;/li>
&lt;li>&lt;input checked="" disabled="" type="checkbox"> Starship Troopers - Robert Heinlein&lt;/li>
&lt;li>&lt;input checked="" disabled="" type="checkbox"> Psychology of Money - Morgan Housel
&lt;ul>
&lt;li>Good stories about how to be more successful in personal finances by
staying the course and recognizing that some people or industries just
get lucky. Long term investing is the surest path to success and you need
to save just for unexpected life events, not necessarily only for big
purchases.&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>&lt;input checked="" disabled="" type="checkbox"> Catch-22 - Joseph Heller&lt;/li>
&lt;li>&lt;input checked="" disabled="" type="checkbox"> Outliers: The Story of Success - Malcolm Gladwell
&lt;ul>
&lt;li>Success is tough to achieve just by hard work alone. Most of the
extremely successful people in the world had very unusual circumstances
that put them in positions to be the best at something right when it was
necessary. There is not much to do to control that. But it also points
out that the people you surround yourself with are very likely to have a
large impact on your standing in the world.&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>&lt;input checked="" disabled="" type="checkbox"> A Brief History of Time - Stephen Hawking
&lt;ul>
&lt;li>Stunning overview of very complicated math and science in an easily
digestable format. This is an inspiration to start looking into those
tough problems with a new lens about how they all fit together into grand
theories of the universe.&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>&lt;input checked="" disabled="" type="checkbox"> Thinking Fast and Slow - Daniel Kahneman&lt;/li>
&lt;/ol>
&lt;h2 id="random">Random&lt;/h2>
&lt;p>I have also spent a fair amount of time listening to a few podcasts that
interest me. Sticking with the theme of finances, I love the Rational Reminder
podcast and try to listen to each episode as they come out weekly. I also fit
in a few episodes of Hardcore History by Dan Carlin. They are longer shows, but
packed with tons of information and tell history in a way that you usually
can&amp;rsquo;t get from anywhere else unless you want to read textbooks all day.&lt;/p>
&lt;p>I&amp;rsquo;ve also read the Wall Street Journal (almost daily), Foreign Affairs, The
Economist (in the last quarter of the year), and a few articles from the US
Naval Institute Proceedings. Next year, I am going to cut down on the
newspapers and magazines that I read in order to fit in more books. Aiming for
23 in 2023 after inspiration from the folks at the Rational Reminder podcast.&lt;/p>
&lt;h2 id="wrap-up">Wrap Up&lt;/h2>
&lt;p>That is basically a summary of my year in learning for 2022. I tried to get up
and learn something new each week. There are lots of little lessons in there
that I learned throughout as well, but not everything merits a comment on this
blog. I plan to keep pushing myself further next year. The one area where I
didn&amp;rsquo;t take much advantage of my time was keeping this site up to date. I will
try to get better with that and may post some smaller articles about simple
topics as how-to references for myself and anybody else who happens to stumble
on these notes. Please feel free to reach out if you have any questions or
recommendations for things that I can take a look at. Always looking for new
knowledge!&lt;/p></content:encoded></item><item><title>Book Notes - China: A History</title><link>https://jagerard.com/posts/china/</link><pubDate>Thu, 25 Aug 2022 00:00:00 -0600</pubDate><guid>https://jagerard.com/posts/china/</guid><description>&lt;h2 id="by-john-keay">By John Keay&lt;/h2>
&lt;h3 id="impressions">Impressions&lt;/h3>
&lt;p>The Chinese have had an extremely well detailed history due to their fantastic
record keeping. Their civilization has been extremely successful, relatively
continuous, and greatly influential around the world. They seem to specialize
in taking ideas from all over and improving on them for personal gain. The
current ruling power of the CCP has a much different take on Heaven&amp;rsquo;s Mandate
to rule, but they are still interested in how history can be twisted to justify
current foreign policy positions. I learned a lot about the geography and why
their society has advanced differently than Western powers.&lt;/p></description><content:encoded>&lt;h2 id="by-john-keay">By John Keay&lt;/h2>
&lt;h3 id="impressions">Impressions&lt;/h3>
&lt;p>The Chinese have had an extremely well detailed history due to their fantastic
record keeping. Their civilization has been extremely successful, relatively
continuous, and greatly influential around the world. They seem to specialize
in taking ideas from all over and improving on them for personal gain. The
current ruling power of the CCP has a much different take on Heaven&amp;rsquo;s Mandate
to rule, but they are still interested in how history can be twisted to justify
current foreign policy positions. I learned a lot about the geography and why
their society has advanced differently than Western powers.&lt;/p>
&lt;h3 id="actionable-notes">Actionable Notes&lt;/h3>
&lt;ol>
&lt;li>Keep detailed records and refer back to them frequently.&lt;/li>
&lt;li>Learn the history and influences on other countries&amp;rsquo; culture to have the
greatest impact in foreign policy negotiations.&lt;/li>
&lt;/ol>
&lt;h3 id="quotes">Quotes&lt;/h3>
&lt;ul>
&lt;li>Of all the issues involved in the power struggle - territorial, dynastic,
philosophical, and fiscal- perhaps the most surprising was social, in that
dissent swelled from the lowest ranks of society. Resistance to Qin rule
proved to be not just popular but populist&amp;hellip; While nationalists would later
applaud the First Emperor&amp;rsquo;s efforts at unification, and while Maoists would
approve his autocratic efforts in mass mobilization, orthodox Marxists would
be more gratified by the anti-Qin response and its early evidence of peasant
revolt and class consciousness.&lt;/li>
&lt;li>Rome&amp;rsquo;s near-contemporary empire was comparable in size and would last several
centuries. But China&amp;rsquo;s would weather the Millenia. Many explanations -
geographical, psychological, even genetic - have been offered for the
contrasting fortunes of the two empires and for the different political orders
to which they would give rise - fragmentary and increasingly consensual in the
case of Europe&amp;rsquo;s nation-states, unitary and increasingly authoritarian in the
case of China&amp;rsquo;s empire. Explanations that emphasize imperial China&amp;rsquo;s more
effective administrative structure and its more flexible ideology are
certainly not the most exciting. Yet they carry conviction; and both - the
administrative machinery and its ideological lubricant - were honed under the
Han.&lt;/li>
&lt;li>The Chang&amp;rsquo;an bureaucracy ground to a halt - as bureaucracies do - when the
supply of paper ran out.&lt;/li>
&lt;li>Born in 599, the great Tang Taizong, constructor if not architect of the Tang
empire, belonged to a generation of Asian empire-builders. From the Tsangpo
basin of southern Tibet, Srong-brtsan-sgam-po, his exact contemporary, was
masterminding the first unification of the scattered peoples of Asia&amp;rsquo;s high
plateau to lay the foundations of a formidable Tibetan empire. Across the
Himalayas in the Gangetic plain, Harsha-vardhana of Kanauj was performing a
similar feat in establishing his imperial sway over the Hindu-Buddhist
kingdoms of north India. Simultaneously the Sassanid ruler Chosroes (Khosrau)
II was overrunning the Levant and Asia Minor to recreate a Persian empire the
stretched from Xinjiang to Egypt. And in the far south-west, along the
caravan routes of Arabia, another contemporary took rejection in Mecca as
cause for flight (hegira or hijra) to Medina, where, acknowledged as the
Prophet, he found a following and launched a crescentade that in less than a
century would obliterate the Sassanids and buffet the frontiers of both India
and China.&lt;/li>
&lt;li>For just as war, being notoriously unpredictable, was to be considered a last
resort, so battle was to be offered only when victory was guaranteed. Indeed,
if war represented a failure of diplomacy, then deployment represented a
failure of strategy, and battle a failure of tactics.&lt;/li>
&lt;li>[Of the Jin] A dynasty that, for all its faults, had set an example,
substatially followed by both Mongols and Manchus, of how non-Han rule could
be made acceptable to an overwhelmingly Han population had finally proved
itself worthy of the Mandate; extinction with honour had been preferred to
the shame of a mock abdication. The Southern Song, come their turn, would
know what was expected of them.&lt;/li>
&lt;/ul></content:encoded></item><item><title>Book Notes - Genghis Khan and the Making of the Modern World</title><link>https://jagerard.com/posts/genghis-khan/</link><pubDate>Thu, 24 Mar 2022 00:00:00 -0600</pubDate><guid>https://jagerard.com/posts/genghis-khan/</guid><description>&lt;h2 id="by-jack-weatherford">By Jack Weatherford&lt;/h2>
&lt;h3 id="impressions">Impressions&lt;/h3>
&lt;p>The Mongols had an enormous impact on the world around them. They proved that a
Steppe people could conquer better due to their speed on the battlefield. They
also took skills from all areas of their empire to expand capabilities,
commerce, and improve the lives of all their subjects. They fell prey to
internal rivalries and losing their military ways after a few generations.&lt;/p>
&lt;h3 id="actionable-notes">Actionable Notes&lt;/h3>
&lt;ol>
&lt;li>Always learn from adversaries and do not be afraid to try new tactics.&lt;/li>
&lt;li>Controlling propaganda and the narrative around a goal is just as important
as the tactics used to achieve the goal itself.&lt;/li>
&lt;li>Do not allow enemies a chance to regroup and learn from an initial assault.&lt;/li>
&lt;/ol>
&lt;h3 id="good-quotes">Good Quotes&lt;/h3>
&lt;ul>
&lt;li>Whether measured by the total number of people defeated, the sum of the
countries annexed, or by the total area occupied, Genghis Khan conquered more
than twice as much as any other man in history.&lt;/li>
&lt;li>In order to cut through traditional rivalries and feuds in Athens,
Cleisthenes abolished the tribes and reassigned everyone to ten units of ten,
thereby transforming a tribal city into a city-state that grew into the
strongest military, commercial, artistic, and intellectual power along the
eastern shore of the Mediterranean Sea. Virtually the same reform would
produce even more astonishing results for the Mongols on the steppes of Inner
Asia.&lt;/li>
&lt;li>The postal service ranked alongside the military in importance for the
Mongols, and individual Mongols were allowed to serve in it in lieu of
regular military service.&lt;/li>
&lt;li>In contrast to the massive infantry armies that moved slowly and fought along
a particular front or on a specific battlefield, the Mongols practiced
warfare across the entire territory, and the ensuing turmoil and confusion
allowed the Mongols to employ clever trickery of all sorts.&lt;/li>
&lt;li>You may conquer an army with superior tactics and men, but you can conquer a
nation only by conquering the hearts of the people.&lt;/li>
&lt;li>Mongke recognized the dangers incurred by earlier administrations that issued
paper money and debt on an ad hoc basis, and in 1253 he created a Department
of Monetary Affairs to control and standardize the issuance of paper money.
The superintendent of the agency centralized control to prevent the overissue
of paper money and the erosion of its value through inflation.&lt;/li>
&lt;li>Supposedly, because of the importance of narcotics for the Ismailis, the
people around them called them hashshashin, meaning “the hashish users.” Over
time, this name became modified into the word assassin. Whether the killers
had actually used hashish to inspire them or not, the name spread into many
languages as the word for the murderer of high officials.&lt;/li>
&lt;li>The Mongol army had accomplished in a mere two years what the European
Crusaders from the West and the Seljuk Turks from the East had failed to do
in two centuries of sustained effort. They had conquered the heart of the
Arab world. No other non-Muslim troops would conquer Baghdad or Iraq again
until the arrival of the American and British forces in 2003.&lt;/li>
&lt;li>The cities of the Khwarizm empire had been a particularly important center
for mathematic scholarship; the word algorithm was derived from al Khwarizm.&lt;/li>
&lt;li>General literacy increased during the Mongol dynasty, and the volume of
literary material grew proportionately.&lt;/li>
&lt;li>The Mongol armies destroyed the uniqueness of the civilizations around them
by shattering the protective walls that isolated one civilization from
another and by knotting the cultures together.&lt;/li>
&lt;/ul></description><content:encoded>&lt;h2 id="by-jack-weatherford">By Jack Weatherford&lt;/h2>
&lt;h3 id="impressions">Impressions&lt;/h3>
&lt;p>The Mongols had an enormous impact on the world around them. They proved that a
Steppe people could conquer better due to their speed on the battlefield. They
also took skills from all areas of their empire to expand capabilities,
commerce, and improve the lives of all their subjects. They fell prey to
internal rivalries and losing their military ways after a few generations.&lt;/p>
&lt;h3 id="actionable-notes">Actionable Notes&lt;/h3>
&lt;ol>
&lt;li>Always learn from adversaries and do not be afraid to try new tactics.&lt;/li>
&lt;li>Controlling propaganda and the narrative around a goal is just as important
as the tactics used to achieve the goal itself.&lt;/li>
&lt;li>Do not allow enemies a chance to regroup and learn from an initial assault.&lt;/li>
&lt;/ol>
&lt;h3 id="good-quotes">Good Quotes&lt;/h3>
&lt;ul>
&lt;li>Whether measured by the total number of people defeated, the sum of the
countries annexed, or by the total area occupied, Genghis Khan conquered more
than twice as much as any other man in history.&lt;/li>
&lt;li>In order to cut through traditional rivalries and feuds in Athens,
Cleisthenes abolished the tribes and reassigned everyone to ten units of ten,
thereby transforming a tribal city into a city-state that grew into the
strongest military, commercial, artistic, and intellectual power along the
eastern shore of the Mediterranean Sea. Virtually the same reform would
produce even more astonishing results for the Mongols on the steppes of Inner
Asia.&lt;/li>
&lt;li>The postal service ranked alongside the military in importance for the
Mongols, and individual Mongols were allowed to serve in it in lieu of
regular military service.&lt;/li>
&lt;li>In contrast to the massive infantry armies that moved slowly and fought along
a particular front or on a specific battlefield, the Mongols practiced
warfare across the entire territory, and the ensuing turmoil and confusion
allowed the Mongols to employ clever trickery of all sorts.&lt;/li>
&lt;li>You may conquer an army with superior tactics and men, but you can conquer a
nation only by conquering the hearts of the people.&lt;/li>
&lt;li>Mongke recognized the dangers incurred by earlier administrations that issued
paper money and debt on an ad hoc basis, and in 1253 he created a Department
of Monetary Affairs to control and standardize the issuance of paper money.
The superintendent of the agency centralized control to prevent the overissue
of paper money and the erosion of its value through inflation.&lt;/li>
&lt;li>Supposedly, because of the importance of narcotics for the Ismailis, the
people around them called them hashshashin, meaning “the hashish users.” Over
time, this name became modified into the word assassin. Whether the killers
had actually used hashish to inspire them or not, the name spread into many
languages as the word for the murderer of high officials.&lt;/li>
&lt;li>The Mongol army had accomplished in a mere two years what the European
Crusaders from the West and the Seljuk Turks from the East had failed to do
in two centuries of sustained effort. They had conquered the heart of the
Arab world. No other non-Muslim troops would conquer Baghdad or Iraq again
until the arrival of the American and British forces in 2003.&lt;/li>
&lt;li>The cities of the Khwarizm empire had been a particularly important center
for mathematic scholarship; the word algorithm was derived from al Khwarizm.&lt;/li>
&lt;li>General literacy increased during the Mongol dynasty, and the volume of
literary material grew proportionately.&lt;/li>
&lt;li>The Mongol armies destroyed the uniqueness of the civilizations around them
by shattering the protective walls that isolated one civilization from
another and by knotting the cultures together.&lt;/li>
&lt;/ul></content:encoded></item><item><title>Book Notes - Napoleon: A Life</title><link>https://jagerard.com/posts/napoleon/</link><pubDate>Sun, 13 Mar 2022 00:00:00 -0600</pubDate><guid>https://jagerard.com/posts/napoleon/</guid><description>&lt;h2 id="by-andrew-roberts">By Andrew Roberts&lt;/h2>
&lt;h3 id="impressions">Impressions&lt;/h3>
&lt;p>Napoleon was one of the most influential figures in history. He was a general
who rarely lost battles and did not needlessly start wars (most were declared
on him). He had a constant desire to be doing work and was extremely well read
and interested in a multitude of subjects. Many of his actions impacted the
next century in Europe and led to military formations and administration that
is still with us today.&lt;/p></description><content:encoded>&lt;h2 id="by-andrew-roberts">By Andrew Roberts&lt;/h2>
&lt;h3 id="impressions">Impressions&lt;/h3>
&lt;p>Napoleon was one of the most influential figures in history. He was a general
who rarely lost battles and did not needlessly start wars (most were declared
on him). He had a constant desire to be doing work and was extremely well read
and interested in a multitude of subjects. Many of his actions impacted the
next century in Europe and led to military formations and administration that
is still with us today.&lt;/p>
&lt;h3 id="actionable-notes">Actionable Notes&lt;/h3>
&lt;ol>
&lt;li>Read more. Napoleon read all the time and was extremely well-versed in his
ancient history.&lt;/li>
&lt;li>Constantly be learning something new.&lt;/li>
&lt;li>Do not meddle in other people&amp;rsquo;s love lives.&lt;/li>
&lt;li>Do not become too arrogant/stick to guiding principles. He lost later wars
because he could not follow his own military maxims.&lt;/li>
&lt;li>Do not blindly trust family or give people limitless opportunities to prove
their worth.&lt;/li>
&lt;/ol>
&lt;h3 id="good-quotes">Good Quotes&lt;/h3>
&lt;ul>
&lt;li>Since the campaign had begun a year earlier, Napoleon had crossed the
Apennines and the Alps, defeated a Sardinian army and no fewer than six
Austrian armies, and killed, wounded or captured 120,000 Austrian soldiers.
&lt;strong>All this he had done before his twenty-eighth birthday.&lt;/strong> Eighteen months
earlier he had been an unknown, moody soldier writing essays on suicide; now
he was famous across Europe, having defeated mighty Austria, wrung peace
treaties from the Pope and the kings of Piedmont and Naples, abolished the
medieval dukedom of Modena, and defeated in every conceivable set of military
circumstances most of Austria’s most celebrated generals – Beaulieu, Wurmser,
Provera, Quasdanovich, Alvinczi, Davidovich – and outwitted the Archduke
Charles.&lt;/li>
&lt;li>In an unscripted speech to the Conseil in 1806, which he made only because
his education minister, Antoine Fourcroy, hadn’t brought his report to the
meeting, Napoleon was almost poetic about how education was the most
important of all the institutions, since everything depends upon it, the
present and the future. It is essential that the morals and political ideas
of the generation which is now growing up should no longer be dependent on
the news of the day or the circumstances of the moment&amp;hellip; Men already differ
enough in their inclinations, their characters and everything that education
does not give and cannot reform&amp;hellip; Let us have a body of doctrine that
doesn’t vary and a body of teachers that doesn’t die.&lt;/li>
&lt;li>Alsatian Jews made up nearly half of France’s Jewish population of 55,000,
and they were blamed for ‘excessive’ usury in that curious inversion whereby
people who borrow money under free contracts in an open market blame those
who lend it to them.&lt;/li>
&lt;li>‘Society in the salons is always in a state of hostility against the
government. Everything is criticized and nothing praised.’&lt;/li>
&lt;li>He was adamant that his role in international affairs was over. ‘History has
a triumvirate of great men,’ Macnamara stated, ‘Alexander, Caesar, and
Napoleon.’ At this, Napoleon looked steadfastly at him without speaking, and
Macnamara said ‘he thought he saw the Emperor’s eyes moisten.’&lt;/li>
&lt;/ul></content:encoded></item><item><title>Generic Data Structures in C</title><link>https://jagerard.com/posts/structures/</link><pubDate>Sun, 24 Oct 2021 00:00:00 -0600</pubDate><guid>https://jagerard.com/posts/structures/</guid><description>&lt;h2 id="idea">Idea&lt;/h2>
&lt;p>I&amp;rsquo;ve been working on a few small programming projects over the past few weeks. C++ and it&amp;rsquo;s object oriented model makes generic data structures a lot simpler, but the syntax and bloat of everything gets a little complex. Recently I&amp;rsquo;ve been using C for most everything besides small web projects. I decided to build up my own little library of generic data structures so that I can just pull these into any projects moving forward. This should help prevent me from reinventing the wheel every time, but it has been fun to get back to the basics with this. Definitely not optimal solutions (I&amp;rsquo;ll discuss that below), but they hit the gist of what I need.&lt;/p></description><content:encoded>&lt;h2 id="idea">Idea&lt;/h2>
&lt;p>I&amp;rsquo;ve been working on a few small programming projects over the past few weeks. C++ and it&amp;rsquo;s object oriented model makes generic data structures a lot simpler, but the syntax and bloat of everything gets a little complex. Recently I&amp;rsquo;ve been using C for most everything besides small web projects. I decided to build up my own little library of generic data structures so that I can just pull these into any projects moving forward. This should help prevent me from reinventing the wheel every time, but it has been fun to get back to the basics with this. Definitely not optimal solutions (I&amp;rsquo;ll discuss that below), but they hit the gist of what I need.&lt;/p>
&lt;h2 id="implementation">Implementation&lt;/h2>
&lt;p>I opted to use void pointers and copy the contents of elements directly into the structure. This keeps the data nearby in most structures so I reduce page faults from following pointers around the heap, but adds a memory copy during the initialization of a new element. I am willing to make that sacrifice since most of my projects will be accessing memory much more often than modifying it. But if I need to do things the other way then I&amp;rsquo;ll make adjustments as necessary.&lt;/p>
&lt;p>The other disadvantage of using these void pointers is that it could get confusing if you try to access things without saving function pointers to print or compare elements. I wrote the code so I know that if I just stick to the public functions things should be fine. But trying to make direct accesses to the internals of these structures could cause a lot of problems.&lt;/p>
&lt;p>Overall this experience has definitely highlighted the advantage of using a language like C++ for stronger types and operator overloading. But I&amp;rsquo;m happy I gave it a shot and know that it will come in handy moving forward. I will post the more complete set of code on my GitHub, but below is a short example of how I was managing the generics in my structures. I plan on providing a useful and working implementation of Array List, Linked List, Binary Search Tree, AVL Tree, B-Tree, and Hash Table.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-C" data-lang="C">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#66d9ef">struct&lt;/span> alist{
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#66d9ef">size_t&lt;/span> elementsize;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#66d9ef">size_t&lt;/span> maxsize;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#66d9ef">size_t&lt;/span> size;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#66d9ef">void&lt;/span> &lt;span style="color:#f92672">*&lt;/span>list;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>};
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#66d9ef">struct&lt;/span> alist &lt;span style="color:#f92672">*&lt;/span>&lt;span style="color:#a6e22e">alist_init&lt;/span>(&lt;span style="color:#66d9ef">size_t&lt;/span> elementsize, &lt;span style="color:#66d9ef">size_t&lt;/span> maxsize){
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#66d9ef">struct&lt;/span> alist &lt;span style="color:#f92672">*&lt;/span>list &lt;span style="color:#f92672">=&lt;/span> &lt;span style="color:#a6e22e">malloc&lt;/span>(&lt;span style="color:#66d9ef">sizeof&lt;/span>(&lt;span style="color:#f92672">*&lt;/span>list));
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> list&lt;span style="color:#f92672">-&amp;gt;&lt;/span>elementsize &lt;span style="color:#f92672">=&lt;/span> elementsize;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> list&lt;span style="color:#f92672">-&amp;gt;&lt;/span>maxsize &lt;span style="color:#f92672">=&lt;/span> maxsize;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> list&lt;span style="color:#f92672">-&amp;gt;&lt;/span>size &lt;span style="color:#f92672">=&lt;/span> &lt;span style="color:#ae81ff">0&lt;/span>;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> list&lt;span style="color:#f92672">-&amp;gt;&lt;/span>list &lt;span style="color:#f92672">=&lt;/span> &lt;span style="color:#a6e22e">malloc&lt;/span>(elementsize &lt;span style="color:#f92672">*&lt;/span> maxsize);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#66d9ef">if&lt;/span>(list&lt;span style="color:#f92672">-&amp;gt;&lt;/span>list &lt;span style="color:#f92672">==&lt;/span> NULL){
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#66d9ef">return&lt;/span> NULL;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> }
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#66d9ef">return&lt;/span> list;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>}
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#66d9ef">void&lt;/span> &lt;span style="color:#f92672">*&lt;/span>&lt;span style="color:#a6e22e">alist_insert&lt;/span>(&lt;span style="color:#66d9ef">struct&lt;/span> alist &lt;span style="color:#f92672">*&lt;/span>list, &lt;span style="color:#66d9ef">unsigned&lt;/span> &lt;span style="color:#66d9ef">int&lt;/span> position, &lt;span style="color:#66d9ef">void&lt;/span> &lt;span style="color:#f92672">*&lt;/span>valptr){
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> ...
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#66d9ef">uint8_t&lt;/span> &lt;span style="color:#f92672">*&lt;/span>array &lt;span style="color:#f92672">=&lt;/span> list&lt;span style="color:#f92672">-&amp;gt;&lt;/span>list;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">memcpy&lt;/span>(&lt;span style="color:#f92672">&amp;amp;&lt;/span>array[position &lt;span style="color:#f92672">*&lt;/span> list&lt;span style="color:#f92672">-&amp;gt;&lt;/span>elementsize], valptr, list&lt;span style="color:#f92672">-&amp;gt;&lt;/span>elementsize);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> ...
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>}
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div></content:encoded></item><item><title>Hello World</title><link>https://jagerard.com/posts/hello-world/</link><pubDate>Thu, 14 Oct 2021 00:00:00 -0600</pubDate><guid>https://jagerard.com/posts/hello-world/</guid><description>&lt;p>I’m a computer science graduate interested in cyber security and systems programming. I don’t currently work in a technical role that would be beneficial to getting a job in the cyber field. There is a plan in place for that to change in the next few years, but in the meantime I figured that a blog would give me a platform to showcase my studies, projects, and research. It will also (hopefully) motivate me to keep moving in the right direction during my free time!&lt;/p></description><content:encoded>&lt;p>I’m a computer science graduate interested in cyber security and systems programming. I don’t currently work in a technical role that would be beneficial to getting a job in the cyber field. There is a plan in place for that to change in the next few years, but in the meantime I figured that a blog would give me a platform to showcase my studies, projects, and research. It will also (hopefully) motivate me to keep moving in the right direction during my free time!&lt;/p>
&lt;p>I expect that the majority of my posts here will be short updates on what I’ve been researching, interesting challenges or courses I’ve finished, and comments on current events in the industry. All this comes with the ambitious goal of eventually passing the OSCP. I don’t know if it is possible in the next few years, but setting my sights high will at least put me in a comfortable position for when I transition to a new career field down the road.&lt;/p>
&lt;p>If you are interested in any of my posts, have advice for the best ways to move forward, or just want to chat, then feel free to send me an email. I’m looking forward to hopping into the work and hope to share some good bits of information with you soon.&lt;/p></content:encoded></item></channel></rss>