<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Jeremy Heckt on Medium]]></title>
        <description><![CDATA[Stories by Jeremy Heckt on Medium]]></description>
        <link>https://medium.com/@jeremy-heckt?source=rss-b3ec53c29359------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*rvbljZHCPC07pSTDgYirSA.png</url>
            <title>Stories by Jeremy Heckt on Medium</title>
            <link>https://medium.com/@jeremy-heckt?source=rss-b3ec53c29359------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 02:40:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jeremy-heckt/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Logging Off]]></title>
            <link>https://jeremy-heckt.medium.com/logging-off-cd5c7b36d43d?source=rss-b3ec53c29359------2</link>
            <guid isPermaLink="false">https://medium.com/p/cd5c7b36d43d</guid>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[social-media]]></category>
            <dc:creator><![CDATA[Jeremy Heckt]]></dc:creator>
            <pubDate>Fri, 02 Jan 2026 21:45:45 GMT</pubDate>
            <atom:updated>2026-01-02T21:45:45.669Z</atom:updated>
            <content:encoded><![CDATA[<p>Compressing thought down to 140 or so characters does a lot of things. Reading other people’s compressed thoughts seems to have a negative impact on me, so I think it is time to log off of any media focused on short-form content. That goes for both short-form video, which I already avoided, and now short-form text-based media. I am also going to begin avoiding spending time on any website that is primarily algorithmically driven, or has infinite scrolling mechanisms.</p><p>When I spend time on sites such as BlueSky, and previously sites such as Twitter, I notice that I become frustrated with what people are posting fairly frequently, the things they have to say. Often I actually agree with the person, but there are several negatives to compressed thought that I think I should avoid it for the benefit of myself. Scrolling forever makes it easy to waste lots of time. Additionally, you see a lot of green grass on the other sides of fences that is maybe not as green as you think. Some examples:</p><ul><li>Due to needing to express an idea in such few characters it is easy to make a mountain out of a molehill. Due to how engagement works, this effect can be amplified depending on how that “poster” is choosing engage with the site themselves.</li><li>Maybe it is just how my brain is interpreting the words in-front of me, but it is easy to feel as if really smart people who know a lot about their topics are punching down at others for not being as knowledgeable. Possibly this effect would be diminished with an actual essay or blog post by the person, but the limited characters makes it easy to come off that way I think, even if unintentional.</li><li>Related to the above two points: it feels as if quite a lot of people on social media are angry or upset all the time. Advocating for things is fine, and does not bother me, but it took me a while to realize complainers are what annoy me. While advocates fight for change, complainers complain into the void and just circle-jerk their day away.</li><li>While I often feel lonely in real life, scrolling my feed would make me feel slightly less lonely. You can reply to people, and they will talk back to you. But really these false “hangout” sessions are pulling me away from actually getting out of the house and meeting real people in real life. Maybe I would be married by now if I had gotten off social media years ago, but to dwell like that is to waste more time.</li><li>I keep putting off going back to school. I beat myself up about this almost every day. I am 34 now, I have plenty of time, but I have put it off for far too long. Sure, I do not know what to do next but I can figure it out if I stop feeling jealous of all of the other people who got to go to graduate school.</li><li>I feel as if constantly moving from topic to topic at 140 or so characters has broken my reading brain somehow. My eyes start to cross if I have to read too much text. I know I have ADHD, but I used to practically swallow books whole as a child. What is different between my childhood and now? Social media and smart phones. I also have a separate issue of getting anxiety when I start to read a fiction book, any fiction book, but that is something I can probably muscle through if I start grunting out books.</li></ul><p>Will there be an adjustment period for me? Sure, probably around the loneliness part specifically. But after two days off of BlueSky I feel as if I am not really going to miss it. I did delete my original Twitter account years ago because I felt as if everyone was angry all the time and guess what: the Twitter clone had the same problems.</p><p>So this year my resolution is to log off. I am going to close the tab and go out into the world and find myself. I am going to practice artwork, fiddle in my garage with my electronics, and take up cold weather hiking/camping. Oh, and read some long-form writing, hopefully lots of it.</p><p>This article was original posted here: <a href="https://blog.jeremyheckt.com/blog/post-logging-off/">https://blog.jeremyheckt.com/blog/post-logging-off/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cd5c7b36d43d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using Python to Improve A Magic: The Gathering Deck]]></title>
            <link>https://medium.com/galleys-game-corner/using-python-to-improve-a-magic-the-gathering-deck-682f5931acb2?source=rss-b3ec53c29359------2</link>
            <guid isPermaLink="false">https://medium.com/p/682f5931acb2</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[games]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Jeremy Heckt]]></dc:creator>
            <pubDate>Sat, 18 Mar 2023 04:21:30 GMT</pubDate>
            <atom:updated>2023-03-18T04:21:30.709Z</atom:updated>
            <content:encoded><![CDATA[<h3>Intro</h3><p>I have been playing quite a bit of MTG: Arena lately. It is some good fun, and you can get away with spending very little (or even zero) money by focusing on just one or two core decks.</p><p>Currently I am building a deck in the Explorer category, a mono-white life gain deck. Having risen to the Diamond league I just cannot seem to broach into Mythic. The core loop of this deck is that the creatures gain +1/+1 counters on them whenever I gain life, and I have several ways of gaining life — such as when creatures enter, when they attack, or when my opponent plays a creature.</p><p>Here is what my deck consisted of when I started this endeavor:</p><pre><br>Deck<br>3 Celestial Unicorn (AFR) 5<br>4 Ajani&#39;s Welcome (M19) 6<br>2 Ajani&#39;s Pridemate (WAR) 4<br>4 Lunarch Veteran (MID) 27<br>4 Ajani, Strength of the Pride (M20) 2<br>4 Voice of the Blessed (VOW) 44<br>4 Linden, the Steadfast Queen (ELD) 20<br>2 Ajani&#39;s Pridemate (M19) 5<br>2 Hopeful Initiate (VOW) 20<br>4 Valorous Stance (VOW) 42<br>3 Authority of the Consuls (KLR) 9<br>4 Tocasia&#39;s Welcome (BRO) 30<br>2 Grafdigger&#39;s Cage (M20) 227<br>21 Plains (DAR) 253</pre><h3>Taking A Look</h3><p>My main concern at first was this: I felt as if I always have either too few mana/land (dry) cards or too many mana/land (flooded) cards. My porridge was never just right.</p><p>In this state my deck consisted of 63 cards with 21 of them being Plains (mana/land).</p><p>The first thing I decided to look at was the average probability of drawing a land on each given turn. After writing the code for that and running the simulation multiple times I found that it pretty much stays the same value. With 1/3 of cards in a deck being Plains it makes sense that the chance to draw that card is pretty much always 1/3. In retrospect this should have been obvious but this is why I love doing this kind of stuff — learning.</p><p>Here is what one of those charts looked like for posterity:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*YGFtNUntaQP0vhoRKmQTDA.png" /></figure><p>Next I decided what would be much more useful is to determine my probability of having X lands in my hand by turn Y. This part is explained in the following section.</p><h3>The Code</h3><p>First I needed a simple way to represent the deck of cards as well as the “hand” I was constantly drawing into. I decided to ignore maximum hand-size and would assume I would cast zero spells per turn — I just wanted to get some raw draw data.</p><p>Python’s dataclasses to the rescue!</p><pre>from dataclass import dataclass<br><br>@dataclass<br>class Deck:<br>    total_cards: int<br>    cards_remaining: int<br>    original_cards: dict  # {&quot;Card Name&quot;: count}<br>    cards: dict  # {&quot;Card Name&quot;: count}, but decremented on draw<br>    pile: list  # An actual list of cards to draw from<br><br><br>@dataclass<br>class Hand:<br>    total_cards: int<br>    cards: list<br><br>    def show_hand(self) -&gt; None:  # Prints the hand to the terminal<br>        print(&quot;Hand:&quot;)<br>        for card in self.cards:<br>            print(&quot;-&quot;, card)<br><br>    def count_card(self, cardname: str) -&gt; int:<br>        return self.cards.count(cardname)</pre><p>Sure, it could have been easier to just use arbitrary cards and just count how many Plains I drew over time, but I want to be able to reuse this code for other deck purposes.</p><p>Next I wrote a messy function for parsing the deck-list above, as well as a function for drawing cards from the deck into the hand. These are omitted here for brevity but all of the code can be found at the URL in the Resources section.</p><p>Now it was time to simulate the drawing of cards over X turns in Y games:</p><pre>def cardCountGameSimulate(games: int, turns: int, cardname: str):<br>    card_count = []<br><br>    for _ in range(games):<br>        deck = load_deck()<br>        hand = Hand(0, [])<br>        random.shuffle(deck.pile)<br><br>        for _ in range(7):<br>            draw_card(deck, hand)<br><br>        for _ in range(turns):<br>            draw_card(deck, hand)<br><br>        card_count.append(hand.count_card(&quot;Plains&quot;))<br><br>    plt.figure(figsize=(8, 3))<br>    plt.hist(card_count)<br>    plt.title(f&quot;Copies of {cardname} in hand on turn {turns} over {games} games&quot;)<br><br>    plt.show()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/1*6lfBz8_G3xAm_Br6ulGiKw.png" /></figure><p>Now that looks like useful information. It seems that more than half of the games have me having seen less than four Plains by turn four. Mind you this is <em>after</em> we draw our hand, so we have seen a total of 11 cards by turn 4. 4/11 cards (or less!) are Plains by turn 4. This could be okay or this could be terrible depending on what the opening hand was and how long it took to get these Plains.</p><p>After thinking about it for a hot minute I decided to increase the amount of hands in my deck by three, up to 24/66. I did this for multiple reasons:</p><ul><li>I needed to ensure that I was getting lands to play my three and four mana cards by turns four</li><li>I needed to be able to possibly play multiple lower mana cards by turn four</li><li>I have Tocasia’s Welcome which allows me card draw when I play a creature with mana value three or less. This give me a mostly-reliable way to filter extra lands <em>if</em> they come up</li></ul><p>Having been playing for a day or so after doing this I do feel like my deck is performing at least marginally better. I may reduce the land count by one soon, but we will see.</p><h3>Resources</h3><ul><li>All of the code used in this article can be found here: <a href="https://git.sr.ht/~jheckt/GoofyStuff/tree/main/item/analysis/python/deckcheck">https://git.sr.ht/~jheckt/GoofyStuff/tree/main/item/analysis/python/deckcheck</a></li><li>MTG: Arena can be downloaded directly from Wizards of the Coast here: <a href="https://magic.wizards.com/en/mtgarena">https://magic.wizards.com/en/mtgarena</a></li></ul><p>—</p><blockquote>This post also appeared on my site, here: <a href="https://galleywest.media/post/using-python-to-improve-mtg-deck/">https://galleywest.media/post/using-python-to-improve-mtg-deck/</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=682f5931acb2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/galleys-game-corner/using-python-to-improve-a-magic-the-gathering-deck-682f5931acb2">Using Python to Improve A Magic: The Gathering Deck</a> was originally published in <a href="https://medium.com/galleys-game-corner">Galley’s Game Corner</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Praise For The Longing And Lessons Learned]]></title>
            <link>https://medium.com/galleys-game-corner/praise-for-the-longing-and-lessons-learned-a7c0773a9433?source=rss-b3ec53c29359------2</link>
            <guid isPermaLink="false">https://medium.com/p/a7c0773a9433</guid>
            <category><![CDATA[game-design]]></category>
            <category><![CDATA[video-game-review]]></category>
            <category><![CDATA[game-development]]></category>
            <dc:creator><![CDATA[Jeremy Heckt]]></dc:creator>
            <pubDate>Fri, 17 Mar 2023 03:41:23 GMT</pubDate>
            <atom:updated>2023-03-17T03:42:07.526Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*Rd73ee5EDh7VzPlAqNCwfw.gif" /></figure><blockquote>patient — ˈpā-shənt — adjective 1: bearing pains or trials calmly or without complaint</blockquote><p>Waiting is something that I have struggled with my entire life. If I have something at 2pm somehow I cannot do anything else before then. I sit around in this restless “waiting mode” seemingly incapable of planning another activity. I always try to do things I need to do (or can do) later-on right this second.</p><p>I have a habit of trying to develop some form of progress <em>right now</em> in all of my projects. I tend to drive and drive until I get burnout, and push through the burnout to a product of some kind. Sure, things get completed, but the major downside is that I do not want to go back and polish my work — I submit a final draft and “set it and forget it”.</p><p>Doing things takes time. Living life takes time. Building a bed takes a few hours. Growing mushrooms takes a few days at the least.</p><h3>The Longing</h3><h4>Plot</h4><p>The Longing is a game with a simple goal: the king need to cast a powerful spell to help eliminate all longing from the world. In order to save up the energy they needs to sleep they tasks you, a shade, with waking up the king in 400 days — 400 real days. The game continues to count down the time even as the game is closed — it is a sort of <a href="https://en.wikipedia.org/wiki/Incremental_game">idle game</a>, just much more interactive.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0Asko-XK5BUtYIH37RHhGw.jpeg" /></figure><p>The player is given no real guidance other than to wait for 400 days. There is a timer at the top of the screen that continuously reminds the player of the time. Rather fittingly the “bedroom” of the shade is incredibly dull so the player is incentivized to explore immediately. The first thing noticed is just how slow the shade walks.</p><p>The first barrier you face is a door to the upper levels of the kingdom — two hours to open. However once the door does open you are given full access to the Kingdom under rule of your liege.</p><p>The Kingdom is divided into multiple main areas:</p><ul><li>Western Caves</li><li>Main Halls</li><li>Eastern Mines</li><li>Library</li><li>Other stretches of caves connected to these areas</li></ul><p>Outside of the Kingdom we find these areas:</p><ul><li>Mushroom Caves</li><li>The Darkness</li><li>???</li></ul><p>The player is not given a map. When the shade chooses to investigate the map on the wall in one of the main hall rooms the camera will slowly pan out to reveal the area you are in.</p><h3>Mechanics</h3><blockquote>Waiting is not so bad once you learn to keep yourself occupied<em>. <br>–A shade</em></blockquote><h4>Time</h4><p>Time does not need to pass this slowly. One of the main mechanics of the game is finding ways to have time past faster. The primary means of accomplishing this is to decorate your “bedroom”. The more decorated it is, the faster time passes while the shade is in the room (including during “idle” time when the game is closed).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*D32dbsDcLg15fJIa1gXVsg.gif" /></figure><p>The shade can find ways to make time pass <em>even faster</em> for short periods of time, as well as reverse time should you miss something date specific.</p><p><strong>Books</strong></p><p>The most conspicuous item in the “bedroom” of the shade is the large bookshelf. When you start the game you only have a few books presents, including your personal notebook and Moby Dick.</p><p>Reading books has two main impacts on the game:</p><ol><li>Some books, when finished, reveal secrets or hints to the player as the shade appends their thoughts to the end of a book.</li><li>The first time the shade “reads” a page of a book the clock goes ahead one minute. This is useful if you want time to pass faster during a certain window: just give the shade a book, select “idle reading” and close the game.</li></ol><p><strong>Paintings</strong></p><p>The shade loves pictures, but especially….lice pictures.</p><p>As you explore the Kingdom you will come across 5 colors of minerals you can use for painting: white, black, blue, yellow, red. You can select which combination of colors you wish to use for a particular painting. Each color combination has certain paintings associated with it to choose from.</p><p>The more paintings on your wall the faster time progresses while the shade is in their bedroom.</p><p><strong>Items and Furniture</strong></p><p>There are several items for you to find in the game that can also speed up time. The more decorations you have, the better. There is also a musical instrument you can play. Can you figure out the tune in the shade’s head and play it successfully?</p><p>One of the most involved items you can get in the game is the bed for the shade. It takes 10 wood and 20 moss to build, and collecting that will take quite some time. However, once built, the bed allows the shade to dream which reveals useful information relating to the plot of the game and the goals of the shade.</p><p><strong>Fire</strong></p><p>The shade can use coal to light a fire. When a fire is lit time progresses <em>even faster</em> — it acts as a multiplier.</p><p>There are multiple types of fires that serve different functions. You should try making them all to see what happens!</p><h4>Waiting</h4><p>A lot of actions, passageways, items, are triggered or obtainable based on time. Waiting for moss to grow, waiting for stalactite to fall, a puddle to fill. Everything in this game takes time and patience. However when paired with your ability to manipulate time in an “idle” state you should be able to progress faster and faster with each “overnight”.</p><h4>Mattocks</h4><p>Mattocks are extremely useful. They allow you to expand tunnels in specific areas as well as mine things from the cave walls.</p><p>Collecting the crystals with the mattock and using them to decorate your bedroom causes time to move forward faster while in your bedroom. Not all crystals are mined, though! Can you find them?</p><h4>Found Items</h4><p>There are several types of collectible items you can find in the Kingdom. Moss, boards, coal, sulfur, etc. All of these collectibles have some feature in the plot of the game.</p><p>One fun item to collect are <em>Disappointments</em>. These are when you fail at a task for the first time. Cannot jump high enough to grab a ledge? Thats disappointing.</p><p><strong>Halls Of Eternity</strong></p><p>In the Western Caves there is a hallway that goes on forever. For every step the shade takes into the hallway, they have to take that step back to get out — it really does go on forever.</p><p>The purpose of the Halls of Eternity is for the player to find some specific items, <em>as well as</em> supply a source of books and paper should the player run out or be unable to procure more in the Kingdom proper.</p><p><strong>Hidden Places</strong></p><p>There are a lot of hidden places and items in this game. Some take time, some are findable during specific times, and some are just very well hidden. If you feel like you have searched everywhere in the game, maybe try lighting a specific kind of fire and see what happens.</p><h3>Takeaways</h3><p>The Longing teaches us a lot. It teaches us about patience and it teaches us about ourselves.</p><p>There came I time when I found myself digging for minerals with the mattock and the shade mentioned how slow they were going. The first thought that I had was along the lines of “it is not going to take you that long” — I think means the game is working and slowing <em>me</em> down. Not being able to play the game every day to progress (much) faster makes its way into other aspects of your life. Knowing something is rewarding, understanding that it will take time, and understanding it is worth the time is a great feeling.</p><p>The ending that I got from this game was very satisfying. Admittedly I had the endings spoiled for me before I played this game, but I had no idea how to trigger them (apart from the obvious one). Because of this I pushed forward with a specific ending in mind and I am glad that I did this.</p><p>For some spoiler GIFs that I find oh-so-charming please click the following links:</p><ol><li><a href="https://static.letseatlabs.com/data/blog/games/longing-bath.gif">Game ending GIF 1</a></li><li><a href="https://static.letseatlabs.com/data/blog/games/longing-tea.gif">Game ending GIF 2</a></li></ol><p>Personally I needed the message from this game. I needed to slow down and stop worrying.</p><p>—</p><blockquote>This post also appeared on my site, here: <a href="https://galleywest.media/post/the-longing/">https://galleywest.media/post/the-longing/</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a7c0773a9433" width="1" height="1" alt=""><hr><p><a href="https://medium.com/galleys-game-corner/praise-for-the-longing-and-lessons-learned-a7c0773a9433">Praise For The Longing And Lessons Learned</a> was originally published in <a href="https://medium.com/galleys-game-corner">Galley’s Game Corner</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Value Chains In Oldschool Runescape Skills]]></title>
            <link>https://medium.com/galleys-game-corner/value-chains-in-oldschool-runescape-skills-31ceb73a4c2c?source=rss-b3ec53c29359------2</link>
            <guid isPermaLink="false">https://medium.com/p/31ceb73a4c2c</guid>
            <category><![CDATA[games]]></category>
            <category><![CDATA[game-design]]></category>
            <category><![CDATA[game-development]]></category>
            <dc:creator><![CDATA[Jeremy Heckt]]></dc:creator>
            <pubDate>Fri, 17 Mar 2023 03:08:58 GMT</pubDate>
            <atom:updated>2023-03-17T03:08:58.949Z</atom:updated>
            <content:encoded><![CDATA[<p>For the past 10+ years the Old School Runescape grind has been real. Known by many to be “grindy” to max out some or all of their skills at 99/99, why do so many people do it?</p><p>Runescape’s skill list may seem simple at first glance but in reality it is a complex weaving of various value chains, sources and sinks, and other economic levers and pulleys.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/543/1*zvpUj5KiCqbfVIUSxwTzRw.png" /><figcaption>A screenshot of the Oldschool Runescape Skill Pane</figcaption></figure><p>Going over the entirety of the Oldschool Runescape skill-tree and its various economic interactions within the game-world could take up the space of an entire book series — so for this essay we will be looking at a few, more specific, examples that we can dive into.</p><p>Particularly I want to look at the value chains that exist within the Oldschool Runescape skills.</p><h3>What Are Value Chains?</h3><p>This is a good question, and I will attempt to summarize below. If you wish for a full, in-depth description of these then please see this <a href="https://lostgarden.home.blog/2021/12/12/value-chains/">Lost Garden Blog post</a>.</p><p>The essence of a value chain is a chain of actions that a player takes in game to achieve an “anchor” which is some form of intrinsic goal or value for the player. These intrinsic goals are what drives your in-game economy. The images below are examples, and credit goes to the Lost Garden Blog.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/628/1*DdWEJnPkDLYae1ntqah9_A.png" /></figure><p>In this case self-expression is the intrinsic goal at the end of this particular value chain. The player collected the stick to craft the lamp to decorate their house so that they could express themselves. But there are plenty of other intrinsic goals such as (but not limited to) mastery over the environment, relaxing/decompressing, or even competition.</p><p>Value chains, preceding the anchor, generally consist of the following:</p><ol><li>Source — Source of items in your economy</li><li>Transform — Actions or items in your economy that transforms one element into another</li><li>Sink — Actions or processes that remove items from your economy</li></ol><p>Sources and sinks both have several different types that can be implemented in the chain. The types of sources are capped, trickle, grind, investment, and random. Sinks consist of fixed, repeatable, exponential, and competitive. Again, for a full deep-dive into these types (with graphs!) please see the <a href="https://lostgarden.home.blog/2021/12/12/value-chains/">Lost Garden Blog post</a> on this topic.</p><h3>Value Chains In Oldschool Runescape</h3><p>Oldschool Runescape (referred to as OSRS from here on out) currently enjoys 23 skills that all have varying degrees of interaction. The image below is a non-exhaustive list of skill interactions from a source-sink perspective. The lines originate at the source and the arrow on the line points to the sink.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4b0vByF_gHtomPrGEHvKLQ.jpeg" /></figure><p>You will notice some skills stand alone or with very few connections — this is not saying they do not interact with other skills but rather they are not easily associated with a source/sink dynamic. Strength, being the only one in the above chart without a line, is the skill which determines your maximum damage output in combat (if that combat was with another player then one could argue it is a sink for Hitpoints, which is itself a sink for other skills).</p><p>Some lines are not drawn, such as Woodcutting -&gt; Farming. While Woodcutting does help you collect some seeds the drop rate is very, very low. As well, monsters in the game world drop items that are related to all sorts of skills so lines from the combat skills are not drawn.</p><h3>Examples Of Intrinsic Motivation Anchors For Skills In OSRS</h3><p>There are a multitude of examples to pull from but I am going to limit my scope at two of the skills for this short post.</p><h4>Construction</h4><p>The construction skill serves the purpose of allowing the player to better construct their player-owned house. The player may, at any point, begin the use of this skill by paying one of the realtors in game a total of 15,000 gold coins¹ for the purchase of the player owned home. The first home location is in Rimmington and players may pay additional gold coins to relocate the home to another town. This is beneficial as with a high enough magic level you can teleport to the home, thus saving time if you wish to get to that city.</p><p>Construction of items within the house, however, is not free. That takes resources and an appropriate construction level. There are a <a href="https://oldschool.runescape.wiki/w/Player-owned_house">plethora of rooms</a> and items that one can put into their house. The items are a mix of both decorative and functional, with the player given almost complete control of the layout (you have to stick to a grid system and overlap rules, etc).</p><p>Plenty of these rooms serve no functional purpose other than self-expression such as the <a href="https://oldschool.runescape.wiki/w/Hall_%28quest_trophies%29">quest hall</a> for displaying trophies, a <a href="https://oldschool.runescape.wiki/w/Throne_room">throne room</a>, and the <a href="https://oldschool.runescape.wiki/w/Formal_garden">formal garden</a>. Other rooms, such as the <a href="https://oldschool.runescape.wiki/w/Portal_chamber">portal chamber</a>, offer lots of utility to the player.</p><h4>Smithing</h4><p>Look at the chart above and you should notice that a couple of skills are connected to more than all of the rest. The smithing skill is used to turn metals into other objects such as swords, armour, arrowheads, and other utility objects. Smithing also acts as both a transform and sink for mining, as well as both a source and transform for crafting.</p><p>What is interesting about the smithing skill is that a lot of the things you can make at a higher level can be purchased from vendors at a lower level². An extreme example are the <a href="https://oldschool.runescape.wiki/w/Rune_platelegs">rune platelegs</a> which can be smithed at level 99 smithing but worn at 40 defense. These platelegs can be purchased from <a href="https://oldschool.runescape.wiki/w/Scavvo%27s_Rune_Store">Scavvo’s Rune Store</a> in the Champion’s Guild for 64,000 gold coins.</p><p>While mining does produce items such as gems, smithing is almost a skill you can just “buy”. So why do players do it? An answer is self-sufficiency. While a large part of the OSRS experience is working with other players (or at least buying/selling with them on the grand exchange) there is also a culture of pride around skills and being able to do things yourself.</p><p>This culture is so strong that Jagex added a full character mode dedicated to it: Ironman Mode. Characters in this mode are unable to trade with other players, use the grand exchange, or even see items dropped by others³.</p><h3>Conclusion</h3><p>OSRS does a great job at pulling the players toward long term goals with intrinsic motivation regardless of who you are or your play style.</p><p>It is worth pointing out that OSRS has some quests locked behind some skill level pre-requisites, so completionism intrinsic goals are also pulling people’s numbers up! Often time these quests unlock portions of the game world for the player, so those exploration seekers get pulled too.</p><p>OSRS is currently celebrating its <a href="https://secure.runescape.com/m=news/10th-birthday-event?oldschool=1">10-year birthday</a>. If you have never played, or you have not played since you were a child, come give it a go and get some free in-game swag and stay for the pixelated point-and-click nostalgia.</p><p>—</p><p>[1]: I would like to point out that OSRS has never been pay-to-win. The only thing you can exchange real-life money for is a game-time token called a Bond, which you could sell to another player for in-game coins if you wished. This benefits those who wish to get a small head start (maybe a returning player) and those who wish to grind out enough items to sell on the Grand Exchange to afford a “free” membership to the game.</p><p>[2]: You can buy any item from other players on the Grand Exchange, including items that no merchants can sell you, apart from the select few the game has marked as untradeable. This leads to another intrinsic motivator: getting in-game rich (mastery over the economy/environment)!</p><p>[3]: There are <a href="https://oldschool.runescape.wiki/w/Ironman_Mode">further modes</a> for those with even more of an appetite for this, such as Ultimate and Hardcore Ironman. There is also a Group Ironman option for those who wish to be able to trade with just their friend group from the start.</p><blockquote>This blog also appeared on my site, here: <a href="https://galleywest.media/post/value-chains-in-osrs/">https://galleywest.media/post/value-chains-in-osrs/</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=31ceb73a4c2c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/galleys-game-corner/value-chains-in-oldschool-runescape-skills-31ceb73a4c2c">Value Chains In Oldschool Runescape Skills</a> was originally published in <a href="https://medium.com/galleys-game-corner">Galley’s Game Corner</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cool Reactions Of The Week — July 16th]]></title>
            <link>https://medium.com/lets-eat-labs-blog/cool-reactions-of-the-week-july-16th-a6eed779c37d?source=rss-b3ec53c29359------2</link>
            <guid isPermaLink="false">https://medium.com/p/a6eed779c37d</guid>
            <category><![CDATA[food]]></category>
            <category><![CDATA[chemistry]]></category>
            <dc:creator><![CDATA[Jeremy Heckt]]></dc:creator>
            <pubDate>Sat, 16 Jul 2022 01:40:04 GMT</pubDate>
            <atom:updated>2022-07-16T01:40:26.180Z</atom:updated>
            <content:encoded><![CDATA[<h3>Cool Reactions Of The Week — July 16th</h3><p>This post originally appeared on our official blog here: <a href="https://blog.letseatlabs.com/post/cool-food-reactions-of-the-week-july-16th/">https://blog.letseatlabs.com/post/cool-food-reactions-of-the-week-july-16th/</a></p><h3>Welcome</h3><p>This is a new series that we will be publishing each week! As we are back in our learning cycle we have taken it upon ourselves to share the coolest reactions we found during the week!</p><p>This week we have decided to dip our toes in the water with a more commonly known mechanism — The Maillard!</p><h3>Maillard</h3><p>This reaction is commonly known as the “toast” or “burnt ends” reaction. When you bake bread or grill meat this is one of the primary reactions that forms the “crust” you experience with these foods.</p><p>The reaction imparts a sweeter flavor to the food, possibly due to the sugar now being cyclic and containing a nitrogen compound!</p><p>Let us look:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NtlAJvKYTZIsOo-vk3vYoQ.jpeg" /><figcaption>Mechanism for the Maillard reaction</figcaption></figure><p>First we have a nucleophilic attack of the NH2-R compound against the aldehyde group at the end of the sugar. We then have a molecular rearrangement due to the charged nitrogen compound being unhappy (ignore the backwards arrows!).</p><p>After the rearrangement the compounds are in equilibrium with an N+ containing compound. This compound allows for a donation of electrons from a free OH group, which in turn causes another bound rearrangement.</p><p>A free water molecule then comes in and donates a proton to the double bond, creating a carbonyl with an extra proton.. The remaining OH group gets to hang around. While the OH group is just hanging around we have an attack on the carbonyl groups’ carbon that contains the double bond to oxygen from the other side of the ring. The OH group that was just hanging around then takes the extra proton that was hanging on this newly formed “ether” in the ring.</p><p>After all of this we are left with our final compound and the free water molecule has formed back again!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a6eed779c37d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/lets-eat-labs-blog/cool-reactions-of-the-week-july-16th-a6eed779c37d">Cool Reactions Of The Week — July 16th</a> was originally published in <a href="https://medium.com/lets-eat-labs-blog">Let’s Eat Labs Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Won’t My VirtualBox VM Work on Windows 10?]]></title>
            <link>https://jeremy-heckt.medium.com/why-wont-my-virtualbox-vm-work-on-windows-10-2515f1691530?source=rss-b3ec53c29359------2</link>
            <guid isPermaLink="false">https://medium.com/p/2515f1691530</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[windows-10]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Jeremy Heckt]]></dc:creator>
            <pubDate>Sun, 28 Feb 2021 23:36:15 GMT</pubDate>
            <atom:updated>2021-02-28T23:36:15.808Z</atom:updated>
            <content:encoded><![CDATA[<p>This one will be quick, but I felt it was pertinent to get the information stored in one place…</p><p>If you are like me and you have a virtual machine that just refuses to start up fully (looking at you Kali Linux post 5.7.0) then the culprit is likely Hyper-V.</p><p>Hyper-V and VirtualBox cannot efficiently coexist at this time. Hyper-V requires access to everything.</p><blockquote>But Jeremy, I do not see Hyper-V listed in my Windows Features toggle window!</blockquote><p>This is probably because you, like me, are using Windows 10 Home edition and are quite possibly using WSLv2. WSLv2 uses Hyper-V. If you have WSLv2 installed, you cannot <strong><em>effectively </em></strong>use VirtualBox, period, on Windows 10.</p><p>Luckily the fix is easy, but it will prevent WSLv2 from booting up…</p><p>Run the following in an Administrator level Powershell instance:</p><pre>bcdedit /set hypervisorlaunchtype off<br>shutdown -s -t 2</pre><p>These commands will 1) disable Hyper-V, and 2) power off your system. Once your system is powered off, flip the power switch on it (or unplug it from the wall) for 20 seconds. After that turn it all back on and your VirtualBox machines should be working much better.</p><p>WSLv2 stops working, but that is a small price to pay to use VirtualBox again.</p><p>Further Reading: <a href="https://forums.virtualbox.org/viewtopic.php?f=6&amp;t=98668">https://forums.virtualbox.org/viewtopic.php?f=6&amp;t=98668</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2515f1691530" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Projects Update: February 3rd, 2021]]></title>
            <link>https://jeremy-heckt.medium.com/projects-update-february-3rd-2021-7b3b5eb4f10f?source=rss-b3ec53c29359------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b3b5eb4f10f</guid>
            <dc:creator><![CDATA[Jeremy Heckt]]></dc:creator>
            <pubDate>Thu, 04 Feb 2021 07:16:01 GMT</pubDate>
            <atom:updated>2021-02-04T07:16:01.458Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eCa2WrRUxQaODzWifkslVA.png" /><figcaption>Just keep swimming, swimming, swimming!</figcaption></figure><p>We have been a little busy getting the laboratory set up. We have got quite a few changes done! A brief recap:</p><ol><li>Migrated production software off of a Raspberry Pi to an HP Proliant server, or VMs on said server.</li><li>Started our own, locally managed, git server to avoid using commercial options.</li><li>Further set ourselves up for some machine learning applications.</li><li>Configured our services to use HTTPS on certificates provided by Let’s Encrypt.</li></ol><p>What are we currently up to?</p><ol><li>We are building tanks that grow seedlings for us! This is what the image at the top of the post is about. It is going to take some time, as we are still learning some of the electrical components involved, but we will get it done. The code lives on our private git server for now, but we will move it to Github when production ready.</li><li>We are going to work on deploying our intended services as microservices in Kubernetes, or something similar. We will begin work on this after we have made more headway towards the seedling tanks.</li></ol><p>See you soon!</p><p>This story also appeared on my laboratory’s blog, here: <a href="https://blog.letseatlabs.com/projects-update/">https://blog.letseatlabs.com/projects-update/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b3b5eb4f10f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Floating In Our Food: Food Contact Materials]]></title>
            <link>https://medium.com/lets-eat-labs-blog/floating-in-our-food-food-contact-materials-d7401f41b76a?source=rss-b3ec53c29359------2</link>
            <guid isPermaLink="false">https://medium.com/p/d7401f41b76a</guid>
            <category><![CDATA[food]]></category>
            <category><![CDATA[health]]></category>
            <dc:creator><![CDATA[Jeremy Heckt]]></dc:creator>
            <pubDate>Sun, 24 Jan 2021 22:39:56 GMT</pubDate>
            <atom:updated>2022-01-18T05:50:33.716Z</atom:updated>
            <content:encoded><![CDATA[<h4>As I am sure you are aware, plastic is everywhere in your kitchen</h4><h3>Introduction</h3><p>Plastic is everywhere these days — it is an unavoidable fact of life. You put your leftovers in Tupperware, you use a plastic ladle to serve your soup, and you even use plastic cups for your hot coffee. You then clean these out using plastic scrub brushes and other such utensils.</p><p>We often think about what goes into our food, but how often do we consider what our food goes into?</p><p>This is the start of a multi-part series where I will take a look at the research that is currently being conducted around plastic food contact materials (FCMs from here on out). It will be divided into multiple entries. The first of which is this one which will take a look at research into specific types of FCMs and the results they found. The next entry will take a look at the underlying chemistry of plastic FCMs and what happens to them when heat is applied, among other such actions.</p><h3>What Are Food Contact Materials?</h3><p>FCMs are essentially what it says on the tin: materials that purposefully contact your food. They can be storage containers, linings, spoons, anything of that sort. The EU <a href="https://ec.europa.eu/food/safety/chemical_safety/food_contact_materials_en">defines them as such</a> [1]:</p><blockquote>Food contact materials are either intended to be brought into contact with food, are already in contact with food, or can reasonably be brought into contact with food or transfer their constituents to the food under normal or foreseeable use. <strong>This includes direct or indirect contact.</strong> Examples include:</blockquote><blockquote>- containers for transporting food<br>- machinery to process food<br>- packaging materials<br>- kitchenware and tableware</blockquote><p>Based on this definition we can safely assume that any item in your kitchen that is even remotely used for preparing or storing food is an FCM, or contains FCMs (I would argue the metal grates in your toaster are the FCM and not the toaster itself, for example).</p><p>There are three specific FCMs we will look at in this article. In the next article we will be taking a look at proposed underlying mechanisms for what we observe. These three FCMs are:</p><ol><li>Plastic liners in <a href="https://en.wikipedia.org/wiki/Aluminium">aluminium</a> cans</li><li>Plastic beverage cups</li><li>Kitchen utensils, in particular ladles and such</li></ol><h3>What Do You Mean The Liner In My Can?</h3><p>Aluminium cans contain a plastic-y liner on the inside of them <a href="https://doi.org/10.1016/j.fpsl.2018.03.004">[2]</a>. These can liners may also contain additives such as filaments or pigments, but as the study I am quoting from pointed out these are not a migratory issue as they seem to stay put — the plastic liner itself remains a concern (It should be noted this test was performed at high temperatures.):</p><blockquote>Via <a href="https://www.coriolis-pharma.com/analytical-services/particle-characterization/asymmetrical-flow-field-flow-fractionation-af4">AF4/MALLS</a> measurements the release of small <a href="https://en.wikipedia.org/wiki/Oligomer">oligomeric</a> components from internal coating formulations was detected. However, the particle- and element-specific detection system demonstrated the none-migration of nanomaterials (fillers or pigments) from all test samples.</blockquote><p>Okay, so what does this mean?</p><p>This means that compounds that could have reasonably been made out of smaller repeating units, e.g. possibly a polymer, are found to have migrated into the food simulants the study used in the cans. Any additives added to the liner of the can that were being targeted for study in migration did not manage to move into the food simulant. It should be noted that the food simulant used in this study was an ethanol solution (50% v/v). This is not outside the realm of possibility for real canned food items you could buy at a store (likely a liquor store, but still).</p><p>These liners are applied in a plethora of ways. Since we have moved away from Bisphenol A (BPA) the are now more commonly lacquers of some kind of polyester, although it does appear some companies advertise their sprays as <a href="https://packagingcoatings.akzonobel.com/content/dam/akzonobel-packagingcoatings/en/-download-everything-from-brochures-to-certificates/20170817-aqualure-g150.pdf">BPA Non-Intentionaly Added (BPA-NI)</a></p><h3>Plastic Cups?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*zrQm452qwJbEQEaG.jpg" /><figcaption>This cup is polystyrene, but it is here to illustrate a plastic cup. “As seen on American shows like Friends” — <a href="https://www.cater4you.co.uk/acatalog/red-plastic-party-cup.html">https://www.cater4you.co.uk/acatalog/red-plastic-party-cup.html</a></figcaption></figure><p>Studies have shown that heat application to the cups (well above room temperature) <a href="https://doi.org/10.1016/j.fpsl.2019.100305">have led to contaminant migration</a> into the liquid being held in the cup. This study also used 50% v/v ethanol for its food simulant.</p><p>This study also looked at the length of time the preheating was applied and what impact that had on the chemical migrants. From the article:</p><blockquote>The observed changes in migration behavior seem to be correlated with the chemical structure of the additives. While an increase of the migration rate with prolongation of the duration of the pre-heating was observed for the higher molecular weight and bulkier additives (FCM №500 and 808), a decrease was observed for the lower molecular weight and linear structure ones (glycerols).</blockquote><p>The implication here is that the longer you preheat the cups, the greater the number of larger molecules present migrate into the food simulant. The opposite seems true for the smaller molecules with those being less prevalent the longer you heat the cup. Depending on the molecule you did not have to heat the cup that long:</p><blockquote>Two main clusters are clearly observed in the PCA score plot (<a href="https://www.sciencedirect.com/science/article/pii/S2214289418303296?via%3Dihub#fig0040">Fig. 8</a> — a), distinguishing the non-pre-heated PP cups (blue dashed circled data) and the pre-heated cups (red dashed circle data). Even a 10 min heat-treatment at 40 °C was sufficient to place all substances in a different cluster than the non-pre-heated cups results.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/755/0*IKv3-Xx210GclK9n.jpg" /><figcaption>Fig. 8 from the referenced quote above: <a href="https://www.sciencedirect.com/science/article/pii/S2214289418303296?via%3Dihub#fig0040">https://www.sciencedirect.com/science/article/pii/S2214289418303296?via%3Dihub#fig0040</a></figcaption></figure><h3>What About Kitchen Utensils?</h3><p>Yes, even here. Though it should be stated that this depends on the type of plastic that makes up your utensils. <a href="https://doi.org/10.1371/journal.pone.0159547">This article</a> looked at two specific polymers - PA6 and PA66:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rsey7XfZ4dKbJ8Uc" /><figcaption>Synthesis of PA6 and PA66: <a href="https://journals.plos.org/plosone/article/figure?id=10.1371/journal.pone.0159547.g001">https://journals.plos.org/plosone/article/figure?id=10.1371/journal.pone.0159547.g001</a></figcaption></figure><p>This study used three different food simulants: 20% ethanol, olive oil, and water. Again, the ethanol-plastic interaction is found:</p><blockquote>The migration tests suggested that these monomers and oligomers readily migrated into alcoholic beverages possibly due to their features of easy swelling, but hardly migrated into fatty foods possibly due to their low solubility and swelling in the oil. Furthermore, the migrant substances were primarily cyclic monomers and low molecular weight cyclic oligomers. In addition, the PA66-based materials might be easily swelled and degraded, potentially leading to a large amount of PA66 cyclic monomer and oligomers migrating on contact with alcohols at high temperature.</blockquote><p>This study performed different tests at different temperature based on the use of the item. Ladles were done near 95–100C, which is when one uses a ladle. As for other items like sesame grinders and cake servers, they tested at 60C — which is clearly above the operating temperature one would expect for a sesame grinder, but a cake server might have a hot cake placed on it.</p><h3>So, Heat?</h3><p>Well, it seems that heat certainly does have an impact. How though? Evidence seems to point to the impact of heat on the crystallinity of the polymer, or in the case of ethanol its ability to cause “swelling”. In the next article I plan to explore this on a molecular level.</p><h3>Bibliography</h3><p>[1] <a href="https://ec.europa.eu/food/safety/chemical_safety/food_contact_materials_en">https://ec.europa.eu/food/safety/chemical_safety/food_contact_materials_en</a><br>[2] <a href="https://doi.org/10.1016/j.fpsl.2018.03.004">https://doi.org/10.1016/j.fpsl.2018.03.004</a><br>[3] <a href="https://doi.org/10.1016/j.fpsl.2019.100305">https://doi.org/10.1016/j.fpsl.2019.100305</a><br>[4] <a href="https://doi.org/10.1371/journal.pone.0159547">https://doi.org/10.1371/journal.pone.0159547</a></p><p>This blog also appears on my laboratory’s blog <a href="https://medium.com/lets-eat-labs-blog">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d7401f41b76a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/lets-eat-labs-blog/floating-in-our-food-food-contact-materials-d7401f41b76a">Floating In Our Food: Food Contact Materials</a> was originally published in <a href="https://medium.com/lets-eat-labs-blog">Let’s Eat Labs Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Attemping To Be Professional With Computers Is A Nightmare]]></title>
            <link>https://jeremy-heckt.medium.com/attemping-to-be-professional-with-computers-is-a-nightmare-e9d94d53cc0b?source=rss-b3ec53c29359------2</link>
            <guid isPermaLink="false">https://medium.com/p/e9d94d53cc0b</guid>
            <category><![CDATA[planning]]></category>
            <dc:creator><![CDATA[Jeremy Heckt]]></dc:creator>
            <pubDate>Sat, 23 Jan 2021 06:59:08 GMT</pubDate>
            <atom:updated>2021-01-24T04:58:20.151Z</atom:updated>
            <content:encoded><![CDATA[<h3>Attempting To Be Professional With Computers Is A Nightmare</h3><p>Back when I was kicking around the idea of starting a laboratory of my own I just sort of walked around and day dreamed. Now that I have actually committed to doing something with my time I am realizing just how complicated becoming “professional” can be. There are just so many steps! To go from “just a guy” to “a guy that goes things” takes a lot of steps. There are two sides to this movement: personal growth and professional steps.</p><h3>Personal Growth</h3><p>There were (are?) a lot of things that I need(ed?) to change about myself to begin to start a laboratory (or at least be successful at it). A short list of what I am focusing on is this:</p><ol><li>Attention span</li><li>Exercise and movement</li><li>Mindfulness</li><li>Self love</li></ol><p>Focusing these things have actually generated a greater self of well-being in me and my life has improved for the positive.</p><h3>Professional Steps</h3><p>This is the portion that takes more effort than I anticipated. With my personal growth goals I know what my shortcomings are so I know what kind of work it is going to take. Starting my own laboratory? I am fully ignorant on what that sort of activity takes. Here is a list of what I have done so far, and then a list of what I need to do further:</p><h4>Done So Far</h4><ol><li>Got a professional domain for my email and resume: <a href="https://www.jeremyheckt.com/resume">www.jeremyheckt.com/</a></li><li>Acquired some equipment (I got a server!)</li><li>Financial saving</li><li>Started writing</li></ol><h4>What I Need To Do Further</h4><ol><li>Get some more equipment!</li><li>More financial saving</li><li>Write way more often</li><li>Sit down and plan my first few big projects</li><li>Heat up the garage as it is cold in the winter</li></ol><p>I feel lost, I feel like I am treading in some liquid I have never gotten into before — and I love it.</p><p>Want to read my <a href="https://jeremyheckt.mataroa.blog/">personal blog</a>? This article actually did FINALLY appear in my laboratory’s blog, <a href="https://blog.letseatlabs.com/">https://blog.letseatlabs.com</a>, because I think I did basically lock myself out of my previous dev instance on my Raspberry Pi. It is now running on a Debian VM.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e9d94d53cc0b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setting Up a Man In The Middle Raspberry Pi Monitor]]></title>
            <link>https://medium.com/lets-eat-labs-blog/setting-up-a-man-in-the-middle-raspberry-pi-monitor-b8f0dff7eddc?source=rss-b3ec53c29359------2</link>
            <guid isPermaLink="false">https://medium.com/p/b8f0dff7eddc</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[raspberry-pi]]></category>
            <category><![CDATA[hardware]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Jeremy Heckt]]></dc:creator>
            <pubDate>Sun, 20 Dec 2020 03:43:24 GMT</pubDate>
            <atom:updated>2022-01-18T05:49:59.584Z</atom:updated>
            <content:encoded><![CDATA[<h4>How to capture traffic from any IP capable device</h4><h4>Summary</h4><p>This article assumes you have a running Raspberry Pi (Pi 3 or newer) server running either Ubuntu Server or Raspbian. This guide was written using Ubuntu 20.04 — but you can also use Raspbian and its built-in raspi-config if you choose.</p><p>What we are going to set up is a Raspberry Pi that is configured to act as a “man in the middle” (MITM) for anything that is connected to its LAN port. This can be useful if you want to connect something like a wireless router to the Pi so you can capture wireless traffic from a target IOT device. The Pi will act as a router of its own over the Ethernet port, and will forward all traffic to the router that the Pi itself is connected to over WiFi .</p><h4>Connecting the Pi to WiFi</h4><p>First, lets update our Pi to the most recent software versions:</p><pre>ubuntu@ubuntu:~$ sudo apt update<br>ubuntu@ubuntu:~$ sudo apt upgrade -y</pre><p>Now we will set up the WIFI. Grab the interface names:</p><pre>ubuntu@ubuntu:~$ ls /sys/class/net<br>eth0 lo wlan0</pre><p>Then we will want to modify the netplan init file:</p><pre>ubuntu@ubuntu:~$ sudoedit /etc/netplan/50-cloud-init.yaml</pre><p>Modify it so that it looks like this, but with your WiFi information filled out (you must keep the SSID and password in quotes):</p><pre>network:<br>    ethernets:<br>        eth0:<br>            dhcp4: true<br>            optional: true<br>    version: 2<br>    wifis:<br>        wlan0:<br>            optional: true<br>            access-points:<br>                &quot;SSID-NAME-HERE&quot;:<br>                    password: &quot;PASSWORD-HERE&quot;<br>            dhcp4: true</pre><p>Go ahead and reload the netplan and check your network interfaces:</p><pre>ubuntu@ubuntu:~$ sudo netplan apply<br>ubuntu@ubuntu:~$ ifconfig</pre><p>You should be able to see your WiFi interface now has an IP address:</p><pre>wlan0: flags=4163&lt;UP,BROADCAST,RUNNING,MULTICAST&gt;  mtu 1500<br>        inet 192.168.0.19  netmask 255.255.255.0  broadcast 192.168.0.255<br>        inet6 fe80::ba27:ebff:fea5:79b0  prefixlen 64  scopeid 0x20&lt;link&gt;<br>        ether b8:27:eb:a5:79:b0  txqueuelen 1000  (Ethernet)<br>        RX packets 12  bytes 1152 (1.1 KB)<br>        RX errors 0  dropped 0  overruns 0  frame 0<br>        TX packets 13  bytes 2088 (2.0 KB)<br>        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0</pre><p>Great! These changes should persist through reboots. I suggest logging into your main WiFi router and setting a static DHCP reservation for the MAC address of your Pi’s wireless network interface. Doing so will make it easy for you since you will only ever need to memorize one IP address for your Pi (at least on this network).</p><h4>Configure DHCP Server</h4><p>This portion is heavily from <a href="https://www.ascinc.com/blog/linux/how-to-build-a-simple-router-with-ubuntu-server-18-04-1-lts-bionic-beaver/">this article</a>, I suggest you give them a click. You will need to configure the Raspberry Pi’s ethernet interface to run DHCP. Start with installing an application to assist us:</p><pre>ubuntu@ubuntu:~$ sudo apt install isc-dhcp-server</pre><p>After this has been installed we will go back to our netplan file and configure the ethernet port to be static:</p><pre>network:<br>    ethernets:<br>        eth0:<br>            addresses:<br>            - 10.10.10.1/24<br>            dhcp4: false<br>            optional: true<br>            nameservers:<br>                addresses:<br>                - 8.8.8.8<br>                - 8.8.4.4<br>                search: []<br>    version: 2<br>    wifis:<br>        wlan0:<br>            optional: true<br>            access-points:<br>                &quot;SSID-NAME-HERE&quot;:<br>                    password: &quot;PASSWORD-HERE&quot;<br>            dhcp4: true</pre><p>Now backup your config and apply:</p><pre>ubuntu@ubuntu:~$ cp /etc/netplan/50-cloud-init.yaml ~<br>ubuntu@ubuntu:~$ sudo netplan generate<br>ubuntu@ubuntu:~$ sudo netplan apply</pre><p>Now we need to mess with the DHCP application settings. We will need to tell it which IP interface to use:</p><pre>ubuntu@ubuntu:~$ sudo vi /etc/default/isc-dhcp-server</pre><p>Set it up as shown, leaving IPv6 commented out for now:</p><pre>INTERFACESv4=”eth0&quot;<br>#INTERFACESv6=”eth0&quot;</pre><p>I followed the guide for reference <a href="https://www.ascinc.com/blog/linux/how-to-build-a-simple-router-with-ubuntu-server-18-04-1-lts-bionic-beaver/">[2]</a> for this portion of the setup, and I ended up using/un-commenting these settings:</p><pre>option domain-name &quot;lel.co&quot;;<br>option domain-name-servers 8.8.8.8, 8.8.4.4;</pre><pre>default-lease-time 600;<br>max-lease-time 7200;</pre><pre>ddns-update-style none;</pre><pre>authoritative;</pre><pre>subnet 10.10.10.0 netmask 255.255.255.0 {<br>    range 10.10.10.2 10.10.10.254;<br>    option subnet-mask 255.255.255.0;<br>    option routers 10.10.10.1;<br>    option broadcast-address 10.10.10.255;<br>}</pre><p>Connect something to your ethernet port on your Pi (or ensure `eth0` is “up” in another fashion) After the lights on the port turn on check that it has an IP address, then go ahead and start up `dhcpd`:</p><pre>ubuntu@ubuntu:~$ ip a | grep eth0<br>2: eth0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc fq_codel state UP group default qlen 1000<br> inet 10.10.10.1/24 brd 10.10.10.255 scope global eth0<br>ubuntu@ubuntu:~$ sudo systemctl restart isc-dhcp-server<br>ubuntu@ubuntu:~$ sudo systemctl status isc-dhcp-server</pre><p>You will need to start this application manually after something has “lit up” your ethernet port lights. Connect something that wants DHCP to this port, then run the restart command.</p><h4>Acting as a router</h4><p>Next we will configure the firewall to forward requests appropriately. First enable Uncomplicated Firewall and edit the configuration:</p><pre>ubuntu@ubuntu:~$ sudo ufw enable<br>Command may disrupt existing ssh connections. Proceed with operation (y|n)? y<br>Firewall is active and enabled on system startup</pre><pre>ubuntu@ubuntu:~$ sudo vi /etc/ufw/sysctl.conf</pre><p>Un-comment this line:</p><pre>net/ipv4/ip_forward=1</pre><p>When you are done with this, ensure to enable `ssh` access in `ufw` otherwise you will need to physically connect to your Pi for access after your next reboot:</p><pre>ubuntu@ubuntu:~$ sudo ufw allow ssh</pre><p>Then, modifying a script supplied <a href="https://www.ascinc.com/blog/linux/how-to-build-a-simple-router-with-ubuntu-server-18-04-1-lts-bionic-beaver/">here</a>, we place a script at `/etc/rc.local`. Here is my modified version for `wlan0`:</p><pre>#!/bin/bash</pre><pre># /etc/rc.local</pre><pre># Default policy to drop all incoming packets.<br>iptables -P INPUT DROP<br>iptables -P FORWARD DROP</pre><pre># Accept incoming packets from localhost and the LAN interface.<br>iptables -A INPUT -i lo -j ACCEPT<br>iptables -A INPUT -i eth0 -j ACCEPT</pre><pre># Accept incoming packets from the WAN if the router initiated the connection.<br>iptables -A INPUT -i wlan0 -m conntrack \<br> — ctstate ESTABLISHED,RELATED -j ACCEPT</pre><pre># Forward LAN packets to the WAN.<br>iptables -A FORWARD -i eth0 -o wlan0 -j ACCEPT</pre><pre># Forward WAN packets to the LAN if the LAN initiated the connection.<br>iptables -A FORWARD -i wlan0 -o eth0 -m conntrack \<br> — ctstate ESTABLISHED,RELATED -j ACCEPT</pre><pre># NAT traffic going out the WAN interface.<br>iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE</pre><pre># rc.local needs to exit with 0<br>exit 0</pre><p>Make the script executable and reboot the machine. <strong><em>Ensure you set ssh to allow in ufw</em></strong>:</p><pre>ubuntu@ubuntu:~$ sudo chmod 755 /etc/rc.local<br>ubuntu@ubuntu:~$ sudo reboot</pre><h4>MITM Monitoring</h4><p>Now you will want to connect some ethernet capable device, that uses DHCP, to the ethernet port on your Raspberry Pi. Then while that is doing its business, run this command and press Ctrl-C after about a minute:</p><pre>ubuntu@ubuntu:~$ sudo tcpdump -w test.pcap<br>tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes<br>^C41 packets captured<br>41 packets received by filter<br>0 packets dropped by kernel</pre><p>Now if we open this test.pcap file we will see the traffic from both interfaces on the Pi. In my below example, I successfully capture the traffic from my Valve Steam Link device.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aBRHkAhBNKS7Qenrix_P4w.png" /></figure><p>There are plenty of uses for such a setup, including connecting the WAN port of a secondary WiFi router to the ethernet port on your Pi, starting up dhcpd, and capturing packets from whatever IOT devices you then connect to the secondary router.</p><h4>Bibliography</h4><p>[1] <a href="https://linuxconfig.org/ubuntu-20-04-connect-to-wifi-from-command-line">https://linuxconfig.org/ubuntu-20-04-connect-to-wifi-from-command-line</a><br>[2] <a href="https://www.ascinc.com/blog/linux/how-to-build-a-simple-router-with-ubuntu-server-18-04-1-lts-bionic-beaver/">https://www.ascinc.com/blog/linux/how-to-build-a-simple-router-with-ubuntu-server-18-04-1-lts-bionic-beaver/</a></p><h4>More Reading</h4><p>Like this? Maybe you will want to read my <a href="https://github.com/turnipsoup/ctfwriteups">CTF writeups</a>!<br>This post also appeared on my professional blog at <a href="https://medium.com/lets-eat-labs-blog">https://medium.com/lets-eat-labs-blog</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b8f0dff7eddc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/lets-eat-labs-blog/setting-up-a-man-in-the-middle-raspberry-pi-monitor-b8f0dff7eddc">Setting Up a Man In The Middle Raspberry Pi Monitor</a> was originally published in <a href="https://medium.com/lets-eat-labs-blog">Let’s Eat Labs Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>