<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Posts on A day of coding</title>
    <link>https://www.jongerius.me/posts/</link>
    <description>Recent content in Posts on A day of coding</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Tue, 01 Dec 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://www.jongerius.me/posts/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Lazy constants in Java 27</title>
      <link>https://www.jongerius.me/posts/2026/12/01/lazy-constants-with-zgc-in-java/</link>
      <pubDate>Tue, 01 Dec 2026 00:00:00 +0000</pubDate>
      <guid>https://www.jongerius.me/posts/2026/12/01/lazy-constants-with-zgc-in-java/</guid>
      <description>&lt;p&gt;Two changes in the Java ecosystem look unrelated at first glance: &lt;em&gt;lazy constants&lt;/em&gt; and &lt;em&gt;ZGC&lt;/em&gt;. One is about when values get created. The other is about when memory gets reclaimed. But both are really about the same thing: moving cost away from the hot path without hiding the consequences.&lt;/p&gt;&#xA;&lt;p&gt;That is the hard part of language and runtime design. If a default is too eager, startup and initialization pay for work that may never matter. If a runtime is too aggressive about stopping the world, latency-sensitive applications pay for pauses they cannot afford. Lazy constants and ZGC are both responses to that problem.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advent of Code - Day 5: Cafeteria</title>
      <link>https://www.jongerius.me/posts/2025/12/05/cafeteria/</link>
      <pubDate>Fri, 05 Dec 2025 00:00:00 +0000</pubDate>
      <guid>https://www.jongerius.me/posts/2025/12/05/cafeteria/</guid>
      <description>&lt;p&gt;&lt;img src=&#34;https://www.jongerius.me/attachments/images/2025-12-05.png&#34; alt=&#34;2025-12-05.png&#34;&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;As the forklifts break through the wall, the Elves are delighted to discover that there was a cafeteria on the other side after all.&lt;/p&gt;&#xA;&lt;p&gt;-- &lt;cite&gt;&lt;a href=&#34;https://adventofcode.com/2025/day/5&#34;&gt;Day 5 - Advent of Code 2025&lt;/a&gt;&lt;/cite&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;h2 id=&#34;solution-in-java&#34;&gt;Solution in Java&lt;/h2&gt;&#xA;&lt;p&gt;Full source can be found: &lt;a href=&#34;https://github.com/gjong/advent-of-code/blob/main/solutions/src/main/java/com/github/gjong/advent/years/y2025/Day05.java&#34;&gt;in GitHub&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Day 5 revolves around interpreting ranges of ingredient IDs and determining which IDs are considered fresh. The input is split into two logical sections: a list of inclusive ID ranges, followed by a list of individual ingredient IDs. Part one asks us to validate the individual IDs against the ranges, while part two focuses entirely on the ranges themselves.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advent of Code - Day 4: Printing Department</title>
      <link>https://www.jongerius.me/posts/2025/12/04/printing-department/</link>
      <pubDate>Thu, 04 Dec 2025 00:00:00 +0000</pubDate>
      <guid>https://www.jongerius.me/posts/2025/12/04/printing-department/</guid>
      <description>&lt;p&gt;&lt;img src=&#34;https://www.jongerius.me/attachments/images/2025-12-04.png&#34; alt=&#34;2025-12-04.png&#34;&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;You ride the escalator down to the printing department. They&amp;rsquo;re clearly getting ready for Christmas; they have lots of large rolls of paper everywhere, and there&amp;rsquo;s even a massive printer in the corner (to handle the really big print jobs).&lt;/p&gt;&#xA;&lt;p&gt;-- &lt;cite&gt;&lt;a href=&#34;https://adventofcode.com/2025/day/4&#34;&gt;Day 4 - Advent of Code 2025&lt;/a&gt;&lt;/cite&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;h2 id=&#34;solution-in-java&#34;&gt;Solution in Java&lt;/h2&gt;&#xA;&lt;p&gt;Full source can be found: &lt;a href=&#34;https://github.com/gjong/advent-of-code/blob/main/solutions/src/main/java/com/github/gjong/advent/years/y2025/Day04.java&#34;&gt;in GitHub&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Day 4 of the Advent-style assignment takes us deep into the North Pole’s printing department. The challenge revolves around a grid filled with paper rolls, represented by &lt;code&gt;@&lt;/code&gt;, and empty spaces, represented by &lt;code&gt;.&lt;/code&gt;. Forklifts can only access certain rolls based on how crowded their surroundings are, and our job is to identify those rolls and then simulate their removal.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advent of Code - Day 3: Lobby</title>
      <link>https://www.jongerius.me/posts/2025/12/03/lobby/</link>
      <pubDate>Wed, 03 Dec 2025 00:00:00 +0000</pubDate>
      <guid>https://www.jongerius.me/posts/2025/12/03/lobby/</guid>
      <description>&lt;p&gt;&lt;img src=&#34;https://www.jongerius.me/attachments/images/2025-12-03.png&#34; alt=&#34;2025-12-03.png&#34;&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;You descend a short staircase, enter the surprisingly vast lobby, and are quickly cleared by the security checkpoint. When you get to the main elevators, however, you discover that each one has a red light above it: they&amp;rsquo;re all &lt;em&gt;offline&lt;/em&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&amp;ldquo;Sorry about that,&amp;rdquo; an Elf apologizes as she tinkers with a nearby control panel. &amp;ldquo;Some kind of electrical surge seems to have fried them. I&amp;rsquo;ll try to get them online soon.&amp;rdquo;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advent of Code - Day 2: Gift Shop</title>
      <link>https://www.jongerius.me/posts/2025/12/02/gift-shop/</link>
      <pubDate>Tue, 02 Dec 2025 00:00:00 +0000</pubDate>
      <guid>https://www.jongerius.me/posts/2025/12/02/gift-shop/</guid>
      <description>&lt;p&gt;&lt;img src=&#34;https://www.jongerius.me/attachments/images/2025-12-02.png&#34; alt=&#34;2025-12-02.png&#34;&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;You get inside and take the elevator to its only other stop: the gift shop. &amp;ldquo;Thank you for visiting the North Pole!&amp;rdquo; gleefully exclaims a nearby sign. You aren&amp;rsquo;t sure who is even allowed to visit the North Pole, but you know you can access the lobby through here, and from there you can access the rest of the North Pole base.&lt;/p&gt;&#xA;&lt;p&gt;-- &lt;cite&gt;&lt;a href=&#34;https://adventofcode.com/2025/day/2&#34;&gt;Day 2 - Advent of Code 2025&lt;/a&gt;&lt;/cite&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advent of Code - Day 1: Secret Entrance</title>
      <link>https://www.jongerius.me/posts/2025/12/01/secret-entrance/</link>
      <pubDate>Mon, 01 Dec 2025 00:00:00 +0000</pubDate>
      <guid>https://www.jongerius.me/posts/2025/12/01/secret-entrance/</guid>
      <description>&lt;p&gt;&lt;img src=&#34;https://www.jongerius.me/attachments/images/2025-12-01.png&#34; alt=&#34;2025-12-01.png&#34;&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;You arrive at the secret entrance to the North Pole base ready to start decorating. Unfortunately, the &lt;em&gt;password&lt;/em&gt; seems to have been changed, so you can&amp;rsquo;t get in. A document taped to the wall helpfully explains:&lt;/p&gt;&#xA;&lt;p&gt;&amp;ldquo;Due to new security protocols, the password is locked in the safe below. Please see the attached document for the new combination.&amp;rdquo;&lt;/p&gt;&#xA;&lt;p&gt;-- &lt;cite&gt;&lt;a href=&#34;https://adventofcode.com/2025/day/1&#34;&gt;Day 1 - Advent of Code 2025&lt;/a&gt;&lt;/cite&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Full source can be found: &lt;a href=&#34;https://github.com/gjong/advent-of-code/blob/main/solutions/src/main/java/com/github/gjong/advent/years/y2025/Day01.java&#34;&gt;in GitHub&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Automating Maven Releases with GitHub Actions</title>
      <link>https://www.jongerius.me/posts/2025/04/02/automating-releases-with-github-actions/</link>
      <pubDate>Wed, 02 Apr 2025 00:00:00 +0000</pubDate>
      <guid>https://www.jongerius.me/posts/2025/04/02/automating-releases-with-github-actions/</guid>
      <description>&lt;p&gt;Manually releasing a Maven package is a hassle—updating versions, tagging commits, building artifacts, and pushing them to a package repository. What if you could automate most of this from GitHub Actions?&lt;/p&gt;</description>
    </item>
    <item>
      <title>Monitoring application performance with OpenTelemetry</title>
      <link>https://www.jongerius.me/posts/2025/01/monitoring-performance-using-opentelemetry/</link>
      <pubDate>Thu, 09 Jan 2025 00:00:00 +0000</pubDate>
      <guid>https://www.jongerius.me/posts/2025/01/monitoring-performance-using-opentelemetry/</guid>
      <description>&lt;p&gt;When response times spike or a request fails deep in a distributed system, guessing is expensive. &lt;strong&gt;OpenTelemetry&lt;/strong&gt; gives you a vendor-neutral way to collect traces, metrics, and logs so you can see where time is spent and what broke.&lt;/p&gt;&#xA;&lt;p&gt;In this post, we’ll wire OpenTelemetry into a Java application: dependencies, manual SDK setup, wrapping work in spans, and exporting data so bottlenecks show up before users do.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;The code for this post can be found: &lt;a href=&#34;https://github.com/gjong/open-telemetry-demo&#34;&gt;gjong/open-telemetry-demo&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;</description>
    </item>
    <item>
      <title>Advent of Code - Day 20: Race Condition</title>
      <link>https://www.jongerius.me/posts/2024/12/20/race-condition/</link>
      <pubDate>Fri, 20 Dec 2024 00:00:00 +0000</pubDate>
      <guid>https://www.jongerius.me/posts/2024/12/20/race-condition/</guid>
      <description>&lt;p&gt;&lt;img src=&#34;https://www.jongerius.me/attachments/images/2024-12-20-generated.png&#34; alt=&#34;2024-12-20-generated.png&#34;&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;The Historians are quite pixelated again. This time, a massive, black building looms over you - you&amp;rsquo;re &lt;a href=&#34;https://adventofcode.com/2017/day/24&#34;&gt;right outside&lt;/a&gt; the CPU!&lt;/p&gt;&#xA;&lt;p&gt;While The Historians get to work, a nearby program sees that you&amp;rsquo;re idle and challenges you to a &lt;em&gt;race&lt;/em&gt;. Apparently, you&amp;rsquo;ve arrived just in time for the frequently-held &lt;em&gt;race condition&lt;/em&gt; festival!&lt;/p&gt;&#xA;&lt;p&gt;-- &lt;cite&gt;&lt;a href=&#34;https://adventofcode.com/2024/day/20&#34;&gt;Day 20 - Advent of Code 2024&lt;/a&gt;&lt;/cite&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;h2 id=&#34;solution-in-java&#34;&gt;Solution in Java&lt;/h2&gt;&#xA;&lt;p&gt;Full source can be found: &lt;a href=&#34;https://github.com/gjong/advent-of-code/blob/main/solutions/src/main/java/com/github/gjong/advent/years/y2024/Day20.java&#34;&gt;in GitHub&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;part-1&#34;&gt;Part 1&lt;/h3&gt;&#xA;&lt;p&gt;To represent each point in the grid of the assignment I created the &lt;code&gt;GridPlace&lt;/code&gt; class. Which contains the value of the character in the grid as well as the distance from the start (as computed by the path taken).&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advent of Code - Day 19: Linen Layout</title>
      <link>https://www.jongerius.me/posts/2024/12/19/linen-layout/</link>
      <pubDate>Thu, 19 Dec 2024 00:00:00 +0000</pubDate>
      <guid>https://www.jongerius.me/posts/2024/12/19/linen-layout/</guid>
      <description>&lt;p&gt;&lt;img src=&#34;https://www.jongerius.me/attachments/images/2024-12-19-generated.png&#34; alt=&#34;2024-12-19-generated.png&#34;&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Today, The Historians take you up to the &lt;a href=&#34;https://adventofcode.com/2023/day/12&#34;&gt;hot springs&lt;/a&gt; on Gear Island! Very &lt;a href=&#34;https://www.youtube.com/watch?v=ekL881PJMjI&#34;&gt;suspiciously&lt;/a&gt;, absolutely nothing goes wrong as they begin their careful search of the vast field of helixes.&lt;/p&gt;&#xA;&lt;p&gt;-- &lt;cite&gt;&lt;a href=&#34;https://adventofcode.com/2024/day/19&#34;&gt;Day 19 - Advent of Code 2024&lt;/a&gt;&lt;/cite&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;h2 id=&#34;solution-in-java&#34;&gt;Solution in Java&lt;/h2&gt;&#xA;&lt;p&gt;Full source can be found: &lt;a href=&#34;https://github.com/gjong/advent-of-code/blob/main/solutions/src/main/java/com/github/gjong/advent/years/y2024/Day19.java&#34;&gt;in GitHub&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;part-1&#34;&gt;Part 1&lt;/h3&gt;&#xA;&lt;p&gt;The solution for part 1 today can be resolved by creating a regular expression of all allowed rugs (line 16) and then checking each line in the input to see if it matches.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advent of Code - Day 18: RAM Run</title>
      <link>https://www.jongerius.me/posts/2024/12/18/ram-run/</link>
      <pubDate>Wed, 18 Dec 2024 00:00:00 +0000</pubDate>
      <guid>https://www.jongerius.me/posts/2024/12/18/ram-run/</guid>
      <description>&lt;p&gt;&lt;img src=&#34;https://www.jongerius.me/attachments/images/2024-12-18-generated.png&#34; alt=&#34;2024-12-18-generated.png&#34;&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;You and The Historians look a lot more pixelated than you remember. You&amp;rsquo;re &lt;a href=&#34;https://adventofcode.com/2017/day/2&#34;&gt;inside a computer&lt;/a&gt; at the North Pole!&lt;/p&gt;&#xA;&lt;p&gt;-- &lt;cite&gt;&lt;a href=&#34;https://adventofcode.com/2024/day/18&#34;&gt;Day 18 - Advent of Code 2024&lt;/a&gt;&lt;/cite&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;h2 id=&#34;solution-in-java&#34;&gt;Solution in Java&lt;/h2&gt;&#xA;&lt;p&gt;Full source can be found: &lt;a href=&#34;https://github.com/gjong/advent-of-code/blob/main/solutions/src/main/java/com/github/gjong/advent/years/y2024/Day18.java&#34;&gt;in GitHub&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Today the assignment involves yet another grid and pathfinding algorithm. So to read the input into memory I created this small method.&lt;/p&gt;&#xA;&lt;div class=&#34;publication-code&#34;&gt;&#xA;    &lt;div class=&#34;publication-code-toolbar&#34;&gt;&#xA;        &lt;span&gt;Java&lt;/span&gt;&#xA;        &lt;button type=&#34;button&#34; class=&#34;publication-code-copy&#34; aria-label=&#34;Copy code&#34; title=&#34;Copy code&#34; data-code=&#34;public void readInput() {  &#xA;    grid = new CharGrid(71, 71);&#xA;    inputLoader.splitOnNewLine()  &#xA;            .map(Point::of)  &#xA;            .limit(1024)                        // limit of bytes to fall part1  &#xA;            .forEach(point -&amp;gt; grid.set(point, &amp;#39;#&amp;#39;));  &#xA;}&#34; hidden&gt;&#xA;            &lt;svg class=&#34;publication-icon&#34; viewBox=&#34;0 0 24 24&#34; fill=&#34;none&#34; stroke=&#34;currentColor&#34; stroke-width=&#34;1.7&#34; stroke-linecap=&#34;round&#34; stroke-linejoin=&#34;round&#34; aria-hidden=&#34;true&#34; focusable=&#34;false&#34;&gt;&#xA;    &#xA;    &lt;rect x=&#34;4&#34; y=&#34;8&#34; width=&#34;12&#34; height=&#34;12&#34; rx=&#34;2&#34;/&gt;&lt;path d=&#34;M8 5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-1 1.7&#34;/&gt;&#xA;    &#xA;&lt;/svg&gt;&#xA;&#xA;        &lt;/button&gt;&#xA;        &lt;span class=&#34;publication-code-status&#34; role=&#34;status&#34;&gt;&lt;/span&gt;&#xA;    &lt;/div&gt;&#xA;    &lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#cdd6f4;background-color:#1e1e2e;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-java&#34; data-lang=&#34;java&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f849c&#34;&gt;1&lt;/span&gt;&lt;span&gt;&lt;span style=&#34;color:#f38ba8&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:#f38ba8&#34;&gt;void&lt;/span&gt; &lt;span style=&#34;color:#89b4fa&#34;&gt;readInput&lt;/span&gt;() {  &#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f849c&#34;&gt;2&lt;/span&gt;&lt;span&gt;    grid &lt;span style=&#34;color:#89dceb;font-weight:bold&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#cba6f7&#34;&gt;new&lt;/span&gt; CharGrid(71, 71);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f849c&#34;&gt;3&lt;/span&gt;&lt;span&gt;    inputLoader.&lt;span style=&#34;color:#89b4fa&#34;&gt;splitOnNewLine&lt;/span&gt;()  &#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f849c&#34;&gt;4&lt;/span&gt;&lt;span&gt;            .&lt;span style=&#34;color:#89b4fa&#34;&gt;map&lt;/span&gt;(Point::of)  &#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f849c&#34;&gt;5&lt;/span&gt;&lt;span&gt;            .&lt;span style=&#34;color:#89b4fa&#34;&gt;limit&lt;/span&gt;(1024)                        &lt;span style=&#34;color:#6c7086;font-style:italic&#34;&gt;// limit of bytes to fall part1  &lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f849c&#34;&gt;6&lt;/span&gt;&lt;span&gt;            .&lt;span style=&#34;color:#89b4fa&#34;&gt;forEach&lt;/span&gt;(point &lt;span style=&#34;color:#89dceb;font-weight:bold&#34;&gt;-&amp;gt;&lt;/span&gt; grid.&lt;span style=&#34;color:#89b4fa&#34;&gt;set&lt;/span&gt;(point, &lt;span style=&#34;color:#a6e3a1&#34;&gt;&amp;#39;#&amp;#39;&lt;/span&gt;));  &#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f849c&#34;&gt;7&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;h3 id=&#34;part-1&#34;&gt;Part 1&lt;/h3&gt;&#xA;&lt;p&gt;Since the best solution is using the Dijkstra pathfinding algorithm I created a &lt;code&gt;HistorianStep&lt;/code&gt; implementation of the &lt;code&gt;Node&amp;lt;T&amp;gt;&lt;/code&gt; that is required by the algorithm.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advent of Code - Day 17: Chronospatial Computer</title>
      <link>https://www.jongerius.me/posts/2024/12/17/chronospatial-computer/</link>
      <pubDate>Tue, 17 Dec 2024 00:00:00 +0000</pubDate>
      <guid>https://www.jongerius.me/posts/2024/12/17/chronospatial-computer/</guid>
      <description>&lt;p&gt;&lt;img src=&#34;https://www.jongerius.me/attachments/images/2024-12-17-generated.png&#34; alt=&#34;2024-12-17-generated.png&#34;&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;The Historians push the button on their strange device, but this time, you all just feel like you&amp;rsquo;re &lt;a href=&#34;https://adventofcode.com/2018/day/6&#34;&gt;falling&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;-- &lt;cite&gt;&lt;a href=&#34;https://adventofcode.com/2024/day/17&#34;&gt;Day 17 - Advent of Code 2024&lt;/a&gt;&lt;/cite&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;h2 id=&#34;solution-in-java&#34;&gt;Solution in Java&lt;/h2&gt;&#xA;&lt;p&gt;Full source can be found: &lt;a href=&#34;https://github.com/gjong/advent-of-code/blob/main/solutions/src/main/java/com/github/gjong/advent/years/y2024/Day17.java&#34;&gt;in GitHub&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;part-1&#34;&gt;Part 1&lt;/h3&gt;&#xA;&lt;p&gt;The first thing for today is modelling &lt;code&gt;Opcode&lt;/code&gt; and the &lt;code&gt;ComputeEngine&lt;/code&gt;. Where the compute engine represents the machine that is executing the instruction in the input string.&lt;/p&gt;&#xA;&lt;div class=&#34;publication-code&#34;&gt;&#xA;    &lt;div class=&#34;publication-code-toolbar&#34;&gt;&#xA;        &lt;span&gt;Java&lt;/span&gt;&#xA;        &lt;button type=&#34;button&#34; class=&#34;publication-code-copy&#34; aria-label=&#34;Copy code&#34; title=&#34;Copy code&#34; data-code=&#34;enum Opcode {  &#xA;    adv, bxl, bst, jnz, bxc, out, bdv, cdv  &#xA;}&#xA;&#xA;public static class ComputeEngine {  &#xA;    private final long[] registers;  &#xA;  &#xA;    int[] program;  &#xA;    int instructionPointer;  &#xA;  &#xA;    List&amp;lt;Integer&amp;gt; output = new ArrayList&amp;lt;&amp;gt;();  &#xA;  &#xA;    public ComputeEngine(long[] registers, int[] program) {  &#xA;        this.registers = registers;  &#xA;        this.program = program;  &#xA;        this.instructionPointer = 0;  &#xA;    }&#xA;}&#34; hidden&gt;&#xA;            &lt;svg class=&#34;publication-icon&#34; viewBox=&#34;0 0 24 24&#34; fill=&#34;none&#34; stroke=&#34;currentColor&#34; stroke-width=&#34;1.7&#34; stroke-linecap=&#34;round&#34; stroke-linejoin=&#34;round&#34; aria-hidden=&#34;true&#34; focusable=&#34;false&#34;&gt;&#xA;    &#xA;    &lt;rect x=&#34;4&#34; y=&#34;8&#34; width=&#34;12&#34; height=&#34;12&#34; rx=&#34;2&#34;/&gt;&lt;path d=&#34;M8 5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-1 1.7&#34;/&gt;&#xA;    &#xA;&lt;/svg&gt;&#xA;&#xA;        &lt;/button&gt;&#xA;        &lt;span class=&#34;publication-code-status&#34; role=&#34;status&#34;&gt;&lt;/span&gt;&#xA;    &lt;/div&gt;&#xA;    &lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#cdd6f4;background-color:#1e1e2e;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-java&#34; data-lang=&#34;java&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f849c&#34;&gt; 1&lt;/span&gt;&lt;span&gt;&lt;span style=&#34;color:#f38ba8&#34;&gt;enum&lt;/span&gt; Opcode {  &#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f849c&#34;&gt; 2&lt;/span&gt;&lt;span&gt;    adv, bxl, bst, jnz, bxc, out, bdv, cdv  &#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f849c&#34;&gt; 3&lt;/span&gt;&lt;span&gt;}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f849c&#34;&gt; 4&lt;/span&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f849c&#34;&gt; 5&lt;/span&gt;&lt;span&gt;&lt;span style=&#34;color:#f38ba8&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:#f38ba8&#34;&gt;static&lt;/span&gt; &lt;span style=&#34;color:#f38ba8&#34;&gt;class&lt;/span&gt; &lt;span style=&#34;color:#f9e2af&#34;&gt;ComputeEngine&lt;/span&gt; {  &#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f849c&#34;&gt; 6&lt;/span&gt;&lt;span&gt;    &lt;span style=&#34;color:#f38ba8&#34;&gt;private&lt;/span&gt; &lt;span style=&#34;color:#f38ba8&#34;&gt;final&lt;/span&gt; &lt;span style=&#34;color:#f38ba8&#34;&gt;long&lt;/span&gt;&lt;span style=&#34;color:#89dceb;font-weight:bold&#34;&gt;[]&lt;/span&gt; registers;  &#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f849c&#34;&gt; 7&lt;/span&gt;&lt;span&gt;  &#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f849c&#34;&gt; 8&lt;/span&gt;&lt;span&gt;    &lt;span style=&#34;color:#f38ba8&#34;&gt;int&lt;/span&gt;&lt;span style=&#34;color:#89dceb;font-weight:bold&#34;&gt;[]&lt;/span&gt; program;  &#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f849c&#34;&gt; 9&lt;/span&gt;&lt;span&gt;    &lt;span style=&#34;color:#f38ba8&#34;&gt;int&lt;/span&gt; instructionPointer;  &#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f849c&#34;&gt;10&lt;/span&gt;&lt;span&gt;  &#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f849c&#34;&gt;11&lt;/span&gt;&lt;span&gt;    List&lt;span style=&#34;color:#89dceb;font-weight:bold&#34;&gt;&amp;lt;&lt;/span&gt;Integer&lt;span style=&#34;color:#89dceb;font-weight:bold&#34;&gt;&amp;gt;&lt;/span&gt; output &lt;span style=&#34;color:#89dceb;font-weight:bold&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#cba6f7&#34;&gt;new&lt;/span&gt; ArrayList&lt;span style=&#34;color:#89dceb;font-weight:bold&#34;&gt;&amp;lt;&amp;gt;&lt;/span&gt;();  &#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f849c&#34;&gt;12&lt;/span&gt;&lt;span&gt;  &#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f849c&#34;&gt;13&lt;/span&gt;&lt;span&gt;    &lt;span style=&#34;color:#f38ba8&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:#89b4fa&#34;&gt;ComputeEngine&lt;/span&gt;(&lt;span style=&#34;color:#f38ba8&#34;&gt;long&lt;/span&gt;&lt;span style=&#34;color:#89dceb;font-weight:bold&#34;&gt;[]&lt;/span&gt; registers, &lt;span style=&#34;color:#f38ba8&#34;&gt;int&lt;/span&gt;&lt;span style=&#34;color:#89dceb;font-weight:bold&#34;&gt;[]&lt;/span&gt; program) {  &#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f849c&#34;&gt;14&lt;/span&gt;&lt;span&gt;        &lt;span style=&#34;color:#cba6f7&#34;&gt;this&lt;/span&gt;.&lt;span style=&#34;color:#89b4fa&#34;&gt;registers&lt;/span&gt; &lt;span style=&#34;color:#89dceb;font-weight:bold&#34;&gt;=&lt;/span&gt; registers;  &#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f849c&#34;&gt;15&lt;/span&gt;&lt;span&gt;        &lt;span style=&#34;color:#cba6f7&#34;&gt;this&lt;/span&gt;.&lt;span style=&#34;color:#89b4fa&#34;&gt;program&lt;/span&gt; &lt;span style=&#34;color:#89dceb;font-weight:bold&#34;&gt;=&lt;/span&gt; program;  &#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f849c&#34;&gt;16&lt;/span&gt;&lt;span&gt;        &lt;span style=&#34;color:#cba6f7&#34;&gt;this&lt;/span&gt;.&lt;span style=&#34;color:#89b4fa&#34;&gt;instructionPointer&lt;/span&gt; &lt;span style=&#34;color:#89dceb;font-weight:bold&#34;&gt;=&lt;/span&gt; 0;  &#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f849c&#34;&gt;17&lt;/span&gt;&lt;span&gt;    }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f849c&#34;&gt;18&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;p&gt;Using these two entities it is already possible to create the method that converts the input string.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advent of Code - Day 16: Reindeer Maze</title>
      <link>https://www.jongerius.me/posts/2024/12/16/reindeer-maze/</link>
      <pubDate>Mon, 16 Dec 2024 00:00:00 +0000</pubDate>
      <guid>https://www.jongerius.me/posts/2024/12/16/reindeer-maze/</guid>
      <description>&lt;p&gt;&lt;img src=&#34;https://www.jongerius.me/attachments/images/2024-12-16-generated.png&#34; alt=&#34;2024-12-16-generated.png&#34;&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;It&amp;rsquo;s time again for the &lt;a href=&#34;https://adventofcode.com/2015/day/14&#34;&gt;Reindeer Olympics&lt;/a&gt;! This year, the big event is the &lt;em&gt;Reindeer Maze&lt;/em&gt;, where the Reindeer compete for the &lt;em&gt;lowest score&lt;/em&gt;.&lt;/p&gt;&#xA;&lt;p&gt;-- &lt;cite&gt;&lt;a href=&#34;https://adventofcode.com/2024/day/16&#34;&gt;Day 16 - Advent of Code 2024&lt;/a&gt;&lt;/cite&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;h2 id=&#34;solution-in-java&#34;&gt;Solution in Java&lt;/h2&gt;&#xA;&lt;p&gt;Full source can be found: &lt;a href=&#34;https://github.com/gjong/advent-of-code/blob/main/solutions/src/main/java/com/github/gjong/advent/years/y2024/Day16.java&#34;&gt;in GitHub&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;part-1&#34;&gt;Part 1&lt;/h3&gt;&#xA;&lt;p&gt;Since the problem statement clearly indicates that a path solving algorithm would be best suited I decided to re-use the existing Dijkstra implementation. To use it I added the &lt;code&gt;Step&lt;/code&gt; class which implements the &lt;code&gt;Node&amp;lt;T&amp;gt;&lt;/code&gt; used by the algorithm.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advent of Code - Day 14: Restroom Redoubt</title>
      <link>https://www.jongerius.me/posts/2024/12/14/restroom-redoubt/</link>
      <pubDate>Sat, 14 Dec 2024 00:00:00 +0000</pubDate>
      <guid>https://www.jongerius.me/posts/2024/12/14/restroom-redoubt/</guid>
      <description>&lt;p&gt;&lt;img src=&#34;https://www.jongerius.me/attachments/images/2024-12-14-generated.png&#34; alt=&#34;2024-12-14-generated.png&#34;&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;One of The Historians needs to use the bathroom; fortunately, you know there&amp;rsquo;s a bathroom near an unvisited location on their list, and so you&amp;rsquo;re all quickly teleported directly to the lobby of Easter Bunny Headquarters.&lt;/p&gt;&#xA;&lt;p&gt;-- &lt;cite&gt;&lt;a href=&#34;https://adventofcode.com/2024/day/14&#34;&gt;Day 14 - Advent of Code 2024&lt;/a&gt;&lt;/cite&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;h2 id=&#34;solution-in-java&#34;&gt;Solution in Java&lt;/h2&gt;&#xA;&lt;p&gt;Full source can be found: &lt;a href=&#34;https://github.com/gjong/advent-of-code/blob/main/solutions/src/main/java/com/github/gjong/advent/years/y2024/Day14.java&#34;&gt;in GitHub&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Since the input is a robot I already added the following code before even starting any of the solution algorithms.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advent of Code - Day 13: Claw Contraption</title>
      <link>https://www.jongerius.me/posts/2024/12/13/claw-contraption/</link>
      <pubDate>Fri, 13 Dec 2024 00:00:00 +0000</pubDate>
      <guid>https://www.jongerius.me/posts/2024/12/13/claw-contraption/</guid>
      <description>&lt;p&gt;&lt;img src=&#34;https://www.jongerius.me/attachments/images/2024-12-13-generated.png&#34; alt=&#34;2024-12-13-generated.png&#34;&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Next up: the &lt;a href=&#34;https://adventofcode.com/2020/day/24&#34;&gt;lobby&lt;/a&gt; of a resort on a tropical island. The Historians take a moment to admire the hexagonal floor tiles before spreading out.&lt;/p&gt;&#xA;&lt;p&gt;Fortunately, it looks like the resort has a new &lt;a href=&#34;https://en.wikipedia.org/wiki/Amusement_arcade&#34;&gt;arcade&lt;/a&gt;! Maybe you can win some prizes from the &lt;a href=&#34;https://en.wikipedia.org/wiki/Claw_machine&#34;&gt;claw machines&lt;/a&gt;?&lt;/p&gt;&#xA;&lt;p&gt;-- &lt;cite&gt;&lt;a href=&#34;https://adventofcode.com/2024/day/13&#34;&gt;Day 13 - Advent of Code 2024&lt;/a&gt;&lt;/cite&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;h2 id=&#34;solution-in-java&#34;&gt;Solution in Java&lt;/h2&gt;&#xA;&lt;p&gt;Full source can be found: &lt;a href=&#34;https://github.com/gjong/advent-of-code/blob/main/solutions/src/main/java/com/github/gjong/advent/years/y2024/Day13.java&#34;&gt;in GitHub&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;First I created some records to represent the various entities in the assignment. This consists out of the &lt;code&gt;PlayCost&lt;/code&gt; representing the amount of steps that each hit of the button will cost. The second record &lt;code&gt;WinPoint&lt;/code&gt; represents the exact location that has to be hit to win a game.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advent of Code - Day 12: Garden Groups</title>
      <link>https://www.jongerius.me/posts/2024/12/12/garden-groups/</link>
      <pubDate>Thu, 12 Dec 2024 00:00:00 +0000</pubDate>
      <guid>https://www.jongerius.me/posts/2024/12/12/garden-groups/</guid>
      <description>&lt;p&gt;&lt;img src=&#34;https://www.jongerius.me/attachments/images/2024-12-12-generated.png&#34; alt=&#34;2024-12-12-generated.png&#34;&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;You&amp;rsquo;re about to settle near a complex arrangement of garden plots when some Elves ask if you can lend a hand. They&amp;rsquo;d like to set up fences around each region of garden plots, but they can&amp;rsquo;t figure out how much fence they need to order or how much it will cost. They hand you a map (your puzzle input) of the garden plots.&lt;/p&gt;&#xA;&lt;p&gt;-- &lt;cite&gt;&lt;a href=&#34;https://adventofcode.com/2024/day/12&#34;&gt;Day 12 - Advent of Code 2024&lt;/a&gt;&lt;/cite&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advent of Code - Day 11: Plutonian Pebbles</title>
      <link>https://www.jongerius.me/posts/2024/12/11/plutonian-pebbles/</link>
      <pubDate>Wed, 11 Dec 2024 00:00:00 +0000</pubDate>
      <guid>https://www.jongerius.me/posts/2024/12/11/plutonian-pebbles/</guid>
      <description>&lt;p&gt;&lt;img src=&#34;https://www.jongerius.me/attachments/images/2024-12-11-generated.png&#34; alt=&#34;2024-12-11-generated.png&#34;&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;The ancient civilization on &lt;a href=&#34;https://adventofcode.com/2019/day/20&#34;&gt;Pluto&lt;/a&gt; was known for its ability to manipulate spacetime, and while The Historians explore their infinite corridors, you&amp;rsquo;ve noticed a strange set of physics-defying stones.&lt;/p&gt;&#xA;&lt;p&gt;-- &lt;cite&gt;&lt;a href=&#34;https://adventofcode.com/2024/day/11&#34;&gt;Day 11 - Advent of Code 2024&lt;/a&gt;&lt;/cite&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;h2 id=&#34;solution-in-java&#34;&gt;Solution in Java&lt;/h2&gt;&#xA;&lt;p&gt;Full source can be found: &lt;a href=&#34;https://github.com/gjong/advent-of-code/blob/main/solutions/src/main/java/com/github/gjong/advent/years/y2024/Day11.java&#34;&gt;in GitHub&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;part-1&#34;&gt;Part 1&lt;/h3&gt;&#xA;&lt;p&gt;For today the first step is writing a recursive method that computes the amount of blinks per stone in the input. This method &lt;code&gt;stonesAfterBlink&lt;/code&gt; accepts the amount of blinks remaining, which is 25 for part 1. And uses a map as a cache, to prevent recalculation of any situation with the same amount of blinks left and for the same stone.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advent of Code - Day 10: Hoof it</title>
      <link>https://www.jongerius.me/posts/2024/12/10/hoof-it/</link>
      <pubDate>Tue, 10 Dec 2024 00:00:00 +0000</pubDate>
      <guid>https://www.jongerius.me/posts/2024/12/10/hoof-it/</guid>
      <description>&lt;p&gt;&lt;img src=&#34;https://www.jongerius.me/attachments/images/2024-12-10-generated.png&#34; alt=&#34;2024-12-10-generated.png&#34;&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;You all arrive at a &lt;a href=&#34;https://adventofcode.com/2023/day/15&#34;&gt;Lava Production Facility&lt;/a&gt; on a floating island in the sky. As the others begin to search the massive industrial complex, you feel a small nose boop your leg and look down to discover a reindeer wearing a hard hat.&lt;/p&gt;&#xA;&lt;p&gt;-- &lt;cite&gt;&lt;a href=&#34;https://adventofcode.com/2024/day/10&#34;&gt;Day 10 - Advent of Code 2024&lt;/a&gt;&lt;/cite&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;h2 id=&#34;solution-in-java&#34;&gt;Solution in Java&lt;/h2&gt;&#xA;&lt;p&gt;Full source can be found: &lt;a href=&#34;https://github.com/gjong/advent-of-code/blob/main/solutions/src/main/java/com/github/gjong/advent/years/y2024/Day10.java&#34;&gt;in GitHub&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;part-1&#34;&gt;Part 1&lt;/h3&gt;&#xA;&lt;p&gt;The first step of today is to write a path finding algorithm based on Dijkstra. This will look for any path where each step size would be exactly 1 (line 12). And if the number &lt;code&gt;9&lt;/code&gt; is found then the amount of found paths is increased.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advent of Code - Day 9: Disk Fragmenter</title>
      <link>https://www.jongerius.me/posts/2024/12/09/disk-fragmenter/</link>
      <pubDate>Mon, 09 Dec 2024 00:00:00 +0000</pubDate>
      <guid>https://www.jongerius.me/posts/2024/12/09/disk-fragmenter/</guid>
      <description>&lt;p&gt;&lt;img src=&#34;https://www.jongerius.me/attachments/images/2024-12-09-generated.png&#34; alt=&#34;2024-12-09-generated.png&#34;&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Another push of the button leaves you in the familiar hallways of some friendly &lt;a href=&#34;https://adventofcode.com/2021/day/23&#34;&gt;amphipods&lt;/a&gt;! Good thing you each somehow got your own personal mini submarine. The Historians jet away in search of the Chief, mostly by driving directly into walls.&lt;/p&gt;&#xA;&lt;p&gt;-- &lt;cite&gt;[Day 9 - Advent of Code 2024[(&lt;a href=&#34;https://adventofcode.com/2024/day/9&#34;&gt;https://adventofcode.com/2024/day/9&lt;/a&gt;)&lt;/cite&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;h2 id=&#34;solution-in-java&#34;&gt;Solution in Java&lt;/h2&gt;&#xA;&lt;p&gt;Full source can be found: &lt;a href=&#34;https://github.com/gjong/advent-of-code/blob/main/solutions/src/main/java/com/github/gjong/advent/years/y2024/Day09.java&#34;&gt;in GitHub&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Since todays challenge talks about disk usage with two potential states, one containing files (the &lt;code&gt;FileSegment&lt;/code&gt;) the other being empty (the &lt;code&gt;Spacing&lt;/code&gt;), I decided to model that out first.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advent of Code - Day 8: Resonant Collinearity</title>
      <link>https://www.jongerius.me/posts/2024/12/08/resonant-collinearity/</link>
      <pubDate>Sun, 08 Dec 2024 00:00:00 +0000</pubDate>
      <guid>https://www.jongerius.me/posts/2024/12/08/resonant-collinearity/</guid>
      <description>&lt;p&gt;&lt;img src=&#34;https://www.jongerius.me/attachments/images/2024-12-08-generated.png&#34; alt=&#34;2024-12-08-generated.png&#34;&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;You find yourselves on the &lt;a href=&#34;https://adventofcode.com/2016/day/25&#34;&gt;roof&lt;/a&gt; of a top-secret Easter Bunny installation.&lt;/p&gt;&#xA;&lt;p&gt;While The Historians do their thing, you take a look at the familiar &lt;em&gt;huge antenna&lt;/em&gt;. Much to your surprise, it seems to have been reconfigured to emit a signal that makes people 0.1% more likely to buy Easter Bunny brand Imitation Mediocre Chocolate as a Christmas gift! Unthinkable!&lt;/p&gt;&#xA;&lt;p&gt;-- &lt;cite&gt;&lt;a href=&#34;https://adventofcode.com/2024/day/8&#34;&gt;Day 8 - Advent of Code 2024&lt;/a&gt;&lt;/cite&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;h2 id=&#34;solution-in-java&#34;&gt;Solution in Java&lt;/h2&gt;&#xA;&lt;p&gt;Full source can be found: &lt;a href=&#34;https://github.com/gjong/advent-of-code/blob/main/solutions/src/main/java/com/github/gjong/advent/years/y2024/Day08.java&#34;&gt;in GitHub&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advent of Code - Day 7: Bridge Repair</title>
      <link>https://www.jongerius.me/posts/2024/12/07/bridge-repair/</link>
      <pubDate>Sat, 07 Dec 2024 00:00:00 +0000</pubDate>
      <guid>https://www.jongerius.me/posts/2024/12/07/bridge-repair/</guid>
      <description>&lt;h2 id=&#34;day-7-assignment&#34;&gt;Day 7 assignment&lt;/h2&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://www.jongerius.me/attachments/images/2024-12-07-generated.png&#34; alt=&#34;2024-12-07-generated.png&#34;&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;The Historians take you to a familiar &lt;a href=&#34;https://adventofcode.com/2022/day/9&#34;&gt;rope bridge&lt;/a&gt; over a river in the middle of a jungle. The Chief isn&amp;rsquo;t on this side of the bridge, though; maybe he&amp;rsquo;s on the other side?&lt;/p&gt;&#xA;&lt;p&gt;-- &lt;cite&gt;&lt;a href=&#34;https://adventofcode.com/2024/day/7&#34;&gt;Day 7 - Advent of Code 2024&lt;/a&gt;&lt;/cite&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;h2 id=&#34;solution-in-java&#34;&gt;Solution in Java&lt;/h2&gt;&#xA;&lt;p&gt;Full source can be found: &lt;a href=&#34;https://github.com/gjong/advent-of-code/blob/main/solutions/src/main/java/com/github/gjong/advent/years/y2024/Day07.java&#34;&gt;in GitHub&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;For today I setup a small little interface &lt;code&gt;Instruction&lt;/code&gt; to capture the instructions that we can apply on the input numbers. As well as already adding the &lt;code&gt;LiteralValue&lt;/code&gt; implementation of this interface to capture numbers. This would help to compute the possible answers in the two parts of today.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advent of Code: Guard Gallivant</title>
      <link>https://www.jongerius.me/posts/2024/12/06/guard-gallivant/</link>
      <pubDate>Fri, 06 Dec 2024 00:00:00 +0000</pubDate>
      <guid>https://www.jongerius.me/posts/2024/12/06/guard-gallivant/</guid>
      <description>&lt;h2 id=&#34;day-6-assignment&#34;&gt;Day 6 assignment&lt;/h2&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://www.jongerius.me/attachments/images/2024-12-06-generated.png&#34; alt=&#34;2024-12-06-generated.png&#34;&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;The Historians use their fancy &lt;a href=&#34;https://adventofcode.com/2024/day/4&#34;&gt;device&lt;/a&gt; again, this time to whisk you all away to the North Pole prototype suit manufacturing lab&amp;hellip; in the year &lt;a href=&#34;https://adventofcode.com/2018/day/5&#34;&gt;1518&lt;/a&gt;! It turns out that having direct access to history is very convenient for a group of historians.&lt;/p&gt;&#xA;&lt;p&gt;You still have to be careful of time paradoxes, and so it will be important to avoid anyone from 1518 while The Historians search for the Chief. Unfortunately, a single &lt;em&gt;guard&lt;/em&gt; is patrolling this part of the lab.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advent of Code: Print Queue</title>
      <link>https://www.jongerius.me/posts/2024/12/05/print-queue/</link>
      <pubDate>Thu, 05 Dec 2024 00:00:00 +0000</pubDate>
      <guid>https://www.jongerius.me/posts/2024/12/05/print-queue/</guid>
      <description>&lt;h2 id=&#34;day-5-assignment&#34;&gt;Day 5 assignment&lt;/h2&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://www.jongerius.me/attachments/images/2024-12-05-generated.png&#34; alt=&#34;2024-12-05-generated.png&#34;&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Satisfied with their search on Ceres, the squadron of scholars suggests subsequently scanning the stationery stacks of sub-basement 17.&lt;/p&gt;&#xA;&lt;p&gt;The North Pole printing department is busier than ever this close to Christmas, and while The Historians continue their search of this historically significant facility, an Elf operating a &lt;a href=&#34;https://adventofcode.com/2017/day/1&#34;&gt;very familiar printer&lt;/a&gt; beckons you over.&lt;/p&gt;&#xA;&lt;p&gt;-- &lt;cite&gt;&lt;a href=&#34;https://adventofcode.com/2024/day/5&#34;&gt;Day 5 - Advent of Code 2024&lt;/a&gt;&lt;/cite&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;h2 id=&#34;solution-in-java&#34;&gt;Solution in Java&lt;/h2&gt;&#xA;&lt;p&gt;Full source can be found: &lt;a href=&#34;https://github.com/gjong/advent-of-code/blob/main/solutions/src/main/java/com/github/gjong/advent/years/y2024/Day05.java&#34;&gt;in GitHub&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advent of Code: Ceres Search</title>
      <link>https://www.jongerius.me/posts/2024/12/04/ceres-search/</link>
      <pubDate>Wed, 04 Dec 2024 00:00:00 +0000</pubDate>
      <guid>https://www.jongerius.me/posts/2024/12/04/ceres-search/</guid>
      <description>&lt;h2 id=&#34;day-4-assignment&#34;&gt;Day 4 assignment&lt;/h2&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://www.jongerius.me/attachments/images/2024-12-04-generated.png&#34; alt=&#34;2024-12-04-generated.png&#34;&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&amp;ldquo;Looks like the Chief&amp;rsquo;s not here. Next!&amp;rdquo; One of The Historians pulls out a device and pushes the only button on it. After a brief flash, you recognize the interior of the &lt;a href=&#34;https://adventofcode.com/2019/day/10&#34;&gt;Ceres monitoring station&lt;/a&gt;!&lt;/p&gt;&#xA;&lt;p&gt;-- &lt;cite&gt;&lt;a href=&#34;https://adventofcode.com/2024/day/3&#34;&gt;Day 3 - Advent of Code 2024&lt;/a&gt;&lt;/cite&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;h2 id=&#34;solution-in-java&#34;&gt;Solution in Java&lt;/h2&gt;&#xA;&lt;p&gt;Full source can be found: &lt;a href=&#34;https://github.com/gjong/advent-of-code/blob/main/solutions/src/main/java/com/github/gjong/advent/years/y2024/Day04.java&#34;&gt;in GitHub&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;part-1&#34;&gt;Part 1&lt;/h3&gt;&#xA;&lt;p&gt;For the first part of today I chose to re-use my &lt;code&gt;CharGrid&lt;/code&gt; class. With this I can iterate of all of the columns and rows looking for the &lt;code&gt;X&lt;/code&gt; in any spot.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advent of Code: Mull it over</title>
      <link>https://www.jongerius.me/posts/2024/12/03/mull-it-over/</link>
      <pubDate>Tue, 03 Dec 2024 00:00:00 +0000</pubDate>
      <guid>https://www.jongerius.me/posts/2024/12/03/mull-it-over/</guid>
      <description>&lt;h2 id=&#34;day-3-assignment&#34;&gt;Day 3 assignment&lt;/h2&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://www.jongerius.me/attachments/images/2024-12-03-generated.png&#34; alt=&#34;2024-12-03-generated.png&#34;&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&amp;ldquo;Our computers are having issues, so I have no idea if we have any Chief Historians in stock! You&amp;rsquo;re welcome to check the warehouse, though,&amp;rdquo; says the mildly flustered shopkeeper at the &lt;a href=&#34;https://adventofcode.com/2020/day/2&#34;&gt;North Pole Toboggan Rental Shop&lt;/a&gt;. The Historians head out to take a look.&lt;/p&gt;&#xA;&lt;p&gt;&lt;cite&gt;&lt;a href=&#34;https://adventofcode.com/2024/day/3&#34;&gt;Day 3 - Advent of Code 2024&lt;/a&gt;&lt;/cite&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;h2 id=&#34;solution-in-java&#34;&gt;Solution in Java&lt;/h2&gt;&#xA;&lt;p&gt;Full source can be found: &lt;a href=&#34;https://github.com/gjong/advent-of-code/blob/main/solutions/src/main/java/com/github/gjong/advent/years/y2024/Day03.java&#34;&gt;in GitHub&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;part-1&#34;&gt;Part 1&lt;/h3&gt;&#xA;&lt;p&gt;For part 1 I decided to use a regular expression (line 4) to extract all the &lt;code&gt;mul(x,y)&lt;/code&gt; instructions of the input. For each match we find the result is converted to a number using a multiplication (line 7). Finally all the results are reduced using the &lt;code&gt;sum()&lt;/code&gt; operation.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advent of Code: Red-Nosed Reports</title>
      <link>https://www.jongerius.me/posts/2024/12/02/red-nosed-reports/</link>
      <pubDate>Mon, 02 Dec 2024 00:00:00 +0000</pubDate>
      <guid>https://www.jongerius.me/posts/2024/12/02/red-nosed-reports/</guid>
      <description>&lt;h2 id=&#34;day-2-assignment&#34;&gt;Day 2 assignment&lt;/h2&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://www.jongerius.me/attachments/images/2024-12-02-generated.png&#34; alt=&#34;2024-12-02-generated.png&#34;&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Fortunately, the first location The Historians want to search isn&amp;rsquo;t a long walk from the Chief Historian&amp;rsquo;s office.&lt;/p&gt;&#xA;&lt;p&gt;While the &lt;a href=&#34;https://adventofcode.com/2015/day/19&#34;&gt;Red-Nosed Reindeer nuclear fusion/fission plant&lt;/a&gt; appears to contain no sign of the Chief Historian, the engineers there run up to you as soon as they see you. Apparently, they &lt;em&gt;still&lt;/em&gt; talk about the time Rudolph was saved through molecular synthesis from a single electron.&lt;/p&gt;&#xA;&lt;p&gt;-- &lt;cite&gt;&lt;a href=&#34;https://adventofcode.com/2024/day/2&#34;&gt;Day 2 - Advent of Code 2024&lt;/a&gt;&lt;/cite&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advent of Code: Historian Hysteria</title>
      <link>https://www.jongerius.me/posts/2024/12/01/historian-hysteria/</link>
      <pubDate>Sun, 01 Dec 2024 00:00:00 +0000</pubDate>
      <guid>https://www.jongerius.me/posts/2024/12/01/historian-hysteria/</guid>
      <description>&lt;h2 id=&#34;day-1-assignment&#34;&gt;Day 1 assignment&lt;/h2&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://www.jongerius.me/attachments/images/2024-12-01-generated.png&#34; alt=&#34;2024-12-01-generated.png&#34;&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;The &lt;em&gt;Chief Historian&lt;/em&gt; is always present for the big Christmas sleigh launch, but nobody has seen him in months! Last anyone heard, he was visiting locations that are historically significant to the North Pole; a group of Senior Historians has asked you to accompany them as they check the places they think he was most likely to visit&amp;hellip;.&lt;/p&gt;&#xA;&lt;p&gt;-- &lt;cite&gt;&lt;a href=&#34;https://adventofcode.com/2024/day/1&#34;&gt;Day 1 - Advent of Code 2024&lt;/a&gt;&lt;/cite&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Building a compile-time annotation processor in Java</title>
      <link>https://www.jongerius.me/posts/2024/07/20/using-compile-time-annotation-processing-in-java/</link>
      <pubDate>Sat, 20 Jul 2024 00:00:00 +0000</pubDate>
      <guid>https://www.jongerius.me/posts/2024/07/20/using-compile-time-annotation-processing-in-java/</guid>
      <description>&lt;p&gt;In Java we have the option to add or change the code we are compiling during compilation. It allows us to add new code based upon annotations in the code. This could for example be used to generate some proxy classes, or setting up some service loader files.&lt;/p&gt;&#xA;&lt;p&gt;In this post we will be looking at annotation processing to create a light-weight and very simplistic bean context.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; if you are looking for a CDI framework please don&amp;rsquo;t use the example in this post but look at Guice or Spring instead.&lt;/p&gt;&#xA;&lt;p&gt;See the full code on GitHub: &lt;a href=&#34;https://github.com/gjong/demo-compile-time-annotation-processor&#34;&gt;gjong/demo-compile-time-annotation-processor&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advent of Code - Day 6: Wait For It</title>
      <link>https://www.jongerius.me/posts/2023/12/06/wait-for-it/</link>
      <pubDate>Wed, 06 Dec 2023 00:00:00 +0000</pubDate>
      <guid>https://www.jongerius.me/posts/2023/12/06/wait-for-it/</guid>
      <description>&lt;p&gt;&lt;img src=&#34;https://www.jongerius.me/attachments/images/2023-12-06-generated.png&#34; alt=&#34;2023-12-06-generated.png&#34;&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;As you try to figure out what to do next, you notice a poster on a wall near the ferry dock. &amp;ldquo;Boat races! Open to the public! Grand prize is an all-expenses-paid trip to &lt;em&gt;Desert Island&lt;/em&gt;!&amp;rdquo; That must be where the sand comes from! Best of all, the boat races are starting in just a few minutes.&lt;/p&gt;&#xA;&lt;p&gt;-- &lt;cite&gt;&lt;a href=&#34;https://adventofcode.com/2023/day/6&#34;&gt;Day 6 - Advent of Code 2023&lt;/a&gt;&lt;/cite&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;h2 id=&#34;solution-in-java&#34;&gt;Solution in Java&lt;/h2&gt;&#xA;&lt;p&gt;Full source can be found: &lt;a href=&#34;https://github.com/gjong/advent-of-code/blob/main/solutions/src/main/java/com/github/gjong/advent/years/y2023/Day06.java&#34;&gt;in GitHub&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advent of Code - Day 5: If You Give A Seed A Fertilizer</title>
      <link>https://www.jongerius.me/posts/2023/12/05/if-you-give-a-seed-a-fertilizer/</link>
      <pubDate>Tue, 05 Dec 2023 00:00:00 +0000</pubDate>
      <guid>https://www.jongerius.me/posts/2023/12/05/if-you-give-a-seed-a-fertilizer/</guid>
      <description>&lt;p&gt;&lt;img src=&#34;https://www.jongerius.me/attachments/images/2023-12-05.png&#34; alt=&#34;2023-12-05.png&#34;&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&amp;ldquo;Oh, we had to stop the water because we &lt;em&gt;ran out of sand&lt;/em&gt; to &lt;a href=&#34;https://en.wikipedia.org/wiki/Sand_filter&#34;&gt;filter&lt;/a&gt; it with! Can&amp;rsquo;t make snow with dirty water. Don&amp;rsquo;t worry, I&amp;rsquo;m sure we&amp;rsquo;ll get more sand soon; we only turned off the water a few days&amp;hellip; weeks&amp;hellip; oh no.&amp;rdquo; His face sinks into a look of horrified realization.&lt;/p&gt;&#xA;&lt;p&gt;-- &lt;cite&gt;&lt;a href=&#34;https://adventofcode.com/2023/day/5&#34;&gt;Day 5 - Advent of Code 2023&lt;/a&gt;&lt;/cite&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;h2 id=&#34;solution-in-java&#34;&gt;Solution in Java&lt;/h2&gt;&#xA;&lt;p&gt;Full source can be found: &lt;a href=&#34;https://github.com/gjong/advent-of-code/blob/main/solutions/src/main/java/com/github/gjong/advent/years/y2023/Day05.java&#34;&gt;in GitHub&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advent of Code - Day 4: Scratchcards</title>
      <link>https://www.jongerius.me/posts/2023/12/04/scratchcards/</link>
      <pubDate>Mon, 04 Dec 2023 00:00:00 +0000</pubDate>
      <guid>https://www.jongerius.me/posts/2023/12/04/scratchcards/</guid>
      <description>&lt;p&gt;&lt;img src=&#34;https://www.jongerius.me/attachments/images/2023-12-04-generated.png&#34; alt=&#34;2023-12-04-generated.png&#34;&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Tell you what: if you can help me with something quick, I&amp;rsquo;ll let you &lt;em&gt;borrow my boat&lt;/em&gt; and you can go visit the gardener. I got all these &lt;a href=&#34;https://en.wikipedia.org/wiki/Scratchcard&#34;&gt;scratchcards&lt;/a&gt; as a gift, but I can&amp;rsquo;t figure out what I&amp;rsquo;ve won.&amp;quot;&lt;/p&gt;&#xA;&lt;p&gt;-- &lt;cite&gt;&lt;a href=&#34;https://adventofcode.com/2023/day/4&#34;&gt;Day 4 - Advent of Code 2023&lt;/a&gt;&lt;/cite&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;h2 id=&#34;solution-in-java&#34;&gt;Solution in Java&lt;/h2&gt;&#xA;&lt;p&gt;Full source can be found: &lt;a href=&#34;https://github.com/gjong/advent-of-code/blob/main/solutions/src/main/java/com/github/gjong/advent/years/y2023/Day04.java&#34;&gt;in GitHub&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;part-1&#34;&gt;Part 1&lt;/h3&gt;&#xA;&lt;p&gt;I created a class &lt;code&gt;Card&lt;/code&gt; to represent the scratch cards from the assignment. Each card has a &lt;code&gt;score()&lt;/code&gt; representing the amount of points of the card.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advent of Code - Day 3: Gear Ratios</title>
      <link>https://www.jongerius.me/posts/2023/12/03/gear-ratios/</link>
      <pubDate>Sun, 03 Dec 2023 00:00:00 +0000</pubDate>
      <guid>https://www.jongerius.me/posts/2023/12/03/gear-ratios/</guid>
      <description>&lt;p&gt;&lt;img src=&#34;https://www.jongerius.me/attachments/images/2023-12-03-generated.png&#34; alt=&#34;2023-12-03-generated.png&#34;&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;You and the Elf eventually reach a &lt;a href=&#34;https://en.wikipedia.org/wiki/Gondola_lift&#34;&gt;gondola lift&lt;/a&gt; station; he says the gondola lift will take you up to the &lt;em&gt;water source&lt;/em&gt;, but this is as far as he can bring you. You go inside.&lt;/p&gt;&#xA;&lt;p&gt;It doesn&amp;rsquo;t take long to find the gondolas, but there seems to be a problem: they&amp;rsquo;re not moving.&lt;/p&gt;&#xA;&lt;p&gt;-- &lt;cite&gt;&lt;a href=&#34;https://adventofcode.com/2023/day/3&#34;&gt;Day 3 - Advent of Code 2023&lt;/a&gt;&lt;/cite&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;h2 id=&#34;solution-in-java&#34;&gt;Solution in Java&lt;/h2&gt;&#xA;&lt;p&gt;Full source can be found: &lt;a href=&#34;https://github.com/gjong/advent-of-code/blob/main/solutions/src/main/java/com/github/gjong/advent/years/y?????/Day??.java&#34;&gt;in GitHub&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advent of Code - Day 2: Cube Conundrum</title>
      <link>https://www.jongerius.me/posts/2023/12/02/cube-conundrum/</link>
      <pubDate>Sat, 02 Dec 2023 00:00:00 +0000</pubDate>
      <guid>https://www.jongerius.me/posts/2023/12/02/cube-conundrum/</guid>
      <description>&lt;p&gt;&lt;img src=&#34;https://www.jongerius.me/attachments/images/2023-12-02-generated.png&#34; alt=&#34;2023-12-02-generated.png&#34;&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;You&amp;rsquo;re launched high into the atmosphere! The apex of your trajectory just barely reaches the surface of a large island floating in the sky. You gently land in a fluffy pile of leaves. It&amp;rsquo;s quite cold, but you don&amp;rsquo;t see much snow. An Elf runs over to greet you.&lt;/p&gt;&#xA;&lt;p&gt;-- &lt;cite&gt;&lt;a href=&#34;https://adventofcode.com/2023/day/2&#34;&gt;Day 2 - Advent of Code 2023&lt;/a&gt;&lt;/cite&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;h2 id=&#34;solution-in-java&#34;&gt;Solution in Java&lt;/h2&gt;&#xA;&lt;p&gt;Full source can be found: &lt;a href=&#34;https://github.com/gjong/advent-of-code/blob/main/solutions/src/main/java/com/github/gjong/advent/years/y2023/Day02.java&#34;&gt;in GitHub&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;part-1&#34;&gt;Part 1&lt;/h3&gt;&#xA;&lt;p&gt;The first step for today is the parsing of the input string into &lt;code&gt;Game&lt;/code&gt; instances. To do this I created a record representing a single game and a parsing method &lt;code&gt;createGame&lt;/code&gt; that processes a single line of the input.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advent of Code - Day 1: Trebuchet?!</title>
      <link>https://www.jongerius.me/posts/2023/12/01/trebuchet/</link>
      <pubDate>Fri, 01 Dec 2023 00:00:00 +0000</pubDate>
      <guid>https://www.jongerius.me/posts/2023/12/01/trebuchet/</guid>
      <description>&lt;p&gt;&lt;img src=&#34;https://www.jongerius.me/attachments/images/2023-12-01-generated.png&#34; alt=&#34;2023-12-01-generated.png&#34;&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Something is wrong with global snow production, and you&amp;rsquo;ve been selected to take a look. The Elves have even given you a map; on it, they&amp;rsquo;ve used stars to mark the top fifty locations that are likely to be having problems.&lt;/p&gt;&#xA;&lt;p&gt;-- &lt;cite&gt;&lt;a href=&#34;https://adventofcode.com/2023/day/1&#34;&gt;Day 1 - Advent of Code 2023&lt;/a&gt;&lt;/cite&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;h2 id=&#34;solution-in-java&#34;&gt;Solution in Java&lt;/h2&gt;&#xA;&lt;p&gt;Full source can be found: &lt;a href=&#34;https://github.com/gjong/advent-of-code/blob/main/solutions/src/main/java/com/github/gjong/advent/years/y2023/Day01.java&#34;&gt;in GitHub&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;part-1&#34;&gt;Part 1&lt;/h3&gt;&#xA;&lt;p&gt;In the first part of this years Advent of Code we are requested to find the first and last digit in a string. The input will consists out of multiple of these strings.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Catching most PHP errors</title>
      <link>https://www.jongerius.me/posts/2007/05/06/catching-most-php-errors/</link>
      <pubDate>Sun, 06 May 2007 00:00:00 +0000</pubDate>
      <guid>https://www.jongerius.me/posts/2007/05/06/catching-most-php-errors/</guid>
      <description>&lt;p&gt;When developing in PHP you may have encountered the following problem:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;During an upgrade of the code, or just a minor bug fix, you have introduced new (non critical-error) code. This is causing PHP to crash and report ugly warnings to the user.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Well I think most developers of PHP have found this problem. One option, which is always done on live servers, is setting the logging level very low. Only critical errors are displayed. Though effective it’s far from perfect. I know I want to know when a page is creating problems, even if it is just a minor bug.&lt;/p&gt;</description>
    </item>
    <item>
      <title>MySQL and Random Row Selection</title>
      <link>https://www.jongerius.me/posts/2006/12/27/mysql-and-random-row-selection/</link>
      <pubDate>Wed, 27 Dec 2006 00:00:00 +0000</pubDate>
      <guid>https://www.jongerius.me/posts/2006/12/27/mysql-and-random-row-selection/</guid>
      <description>&lt;p&gt;I’ve been working on a quiz section for one of my websites lately, well tried to anyway. One of the dumbest things happened. In a quiz you want to randomly pick questions and serve them to the visitor. That way they can answer them and shout WAHOO once they have one right.&lt;/p&gt;&#xA;&lt;p&gt;Problem I had was that I couldn’t figure out how to sort all the questions in a completely random order, well semi random any way (since a computer does not know random as we do). I tried to do this by first counting the number of rows in the table and then creating a random array with 0..x (x being the number of rows). But this is very inefficient.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Setting Up A Dedicated SVN Server</title>
      <link>https://www.jongerius.me/posts/2006/12/10/setting-up-a-dedicated-svn-server/</link>
      <pubDate>Sun, 10 Dec 2006 00:00:00 +0000</pubDate>
      <guid>https://www.jongerius.me/posts/2006/12/10/setting-up-a-dedicated-svn-server/</guid>
      <description>&lt;p&gt;All software developers have to deal with it. Version control software. Today I decided to play a bit with installing my own dedicated SVN (subversion) server. This, hopefully brief, step plan will help you do the same.&lt;/p&gt;&#xA;&lt;h3 id=&#34;downloading-all-needed-software&#34;&gt;Downloading all needed software&lt;/h3&gt;&#xA;&lt;p&gt;Before you can continue with the tutorial you will have to get the following things:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;A &lt;em&gt;‘virtual’&lt;/em&gt; computer to install you dedicated SVN server on,&lt;br&gt;&#xA;I used VMWare to emulate a server, but you could also use an old computer that you have as a spare.&lt;/li&gt;&#xA;&lt;li&gt;Download Debian from &lt;a href=&#34;http://www.debian.org/devel/debian-installer/&#34;&gt;http://www.debian.org/devel/debian-installer/&lt;/a&gt;,&lt;br&gt;&#xA;The reason for picking Debian is easy. It’s supposed to be a stable and powerful Linux OS. (You can pick the &lt;strong&gt;netinst CD image&lt;/strong&gt;)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;That’s all you will need. But be aware that we will be downloading various other packages (software applications) later on. So make sure you have your network prepared.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Language indicator, to use or not to use?</title>
      <link>https://www.jongerius.me/posts/2006/07/10/using-language-indicators/</link>
      <pubDate>Mon, 10 Jul 2006 00:00:00 +0000</pubDate>
      <guid>https://www.jongerius.me/posts/2006/07/10/using-language-indicators/</guid>
      <description>&lt;p&gt;I’ve recently gotten a few questions on the issue of multilingual website implementation and the usage of a language indicator (eg: nl, uk, de). So today it’s time to look into best practice, both from the visitors point of view as well as that of the programmer.&lt;/p&gt;&#xA;&lt;h3 id=&#34;visitors-like-confirmation&#34;&gt;Visitors like confirmation&lt;/h3&gt;&#xA;&lt;p&gt;That was easy. I just summed up the reason why it could be important for your visitor to include a language indicator in the URL. If I am browsing your website I would like to know what language the information is that I can expect. And I mean all of the information, not just this page. Because of that reason I would prefer to see a URL like:&lt;/p&gt;</description>
    </item>
    <item>
      <title>SQL The Basics</title>
      <link>https://www.jongerius.me/posts/2006/05/15/sql-basics/</link>
      <pubDate>Mon, 15 May 2006 00:00:00 +0000</pubDate>
      <guid>https://www.jongerius.me/posts/2006/05/15/sql-basics/</guid>
      <description>&lt;p&gt;Strange title isn’t. Is there such a thing as basic &lt;a href=&#34;http://en.wikipedia.org/wiki/Sql&#34; title=&#34;Wikipedia: SQL&#34;&gt;SQL&lt;/a&gt;(Structured Query Language). Lets try and find out. I will be covering some basics, thus creating a simple table. Making some basic queries and basics on T-SQL (Transact SQL).&lt;/p&gt;&#xA;&lt;h3 id=&#34;why-use-databases&#34;&gt;Why use databases&lt;/h3&gt;&#xA;&lt;p&gt;Best to begin with a little story I suppose. Why would you want to use a database? Well it’s pretty easy. Databases give you the capability to store &lt;strong&gt;massive&lt;/strong&gt; amounts of data in a orderly manner. With easy and &lt;strong&gt;structured&lt;/strong&gt; access. I can hear those lovers of files shouting that you can do the same with files. I’ll grant them this, files can store information in the same way. But when it comes to &lt;strong&gt;quick access&lt;/strong&gt; or &lt;strong&gt;easy manipulation&lt;/strong&gt; then nothing beats databases.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
