<rss version="2.0">
  <channel>
    <title>TristanHavelick.com</title>
    <description>Tristan Havelick's Blog</description>
    <link>https://tristanhavelick.com</link>
    <pubDate>Tue, 17 Mar 2026 00:00:00</pubDate>
    
    <item>
      <title>Less Code Review</title>
      <link>https://tristanhavelick.com/less-code-review/</link>
      
      <category>blog</category>
      
      <pubDate>Tue, 17 Mar 2026 00:00:00</pubDate>
      <content><![CDATA[
<p>Lately, like many software engineers, I've felt the double-edged sword of coding agents' ability to create a lot of working code really quickly as well as the additional burden of reviewing that code. Avery Pennarun <a href="https://apenwarr.ca/log/20260316">recently wrote</a> that this burden predates LLMs and that agentic coding only amplifies the problem. His thoughts feel apt:</p>
<blockquote>
<p>The job of a code reviewer isn't to review code. It's to figure out how to obsolete their code review comment, that whole class of comment, in all future cases, until you don't need their reviews at all anymore.</p>
<p>(Think of the people who first created "go fmt" and how many stupid code review comments about whitespace are gone forever. Now that's engineering.)</p>
</blockquote>
<p>It's heartening to realize that I've already been on the journey of reducing code review burden through automation for years, and that finding ways to do more is just traveling further down that path.</p>
<p>Some teams are experimenting with a <a href="https://simonwillison.net/2026/Jan/28/the-five-levels/">"Dark Factory"</a> pattern where no humans ever look at the code. This scares me, but I do agree with Avery when he says:</p>
<blockquote>
<p>Reducing review stages, even to an uncomfortable degree, is going to be needed. But you can't just reduce review stages without something to replace them. That way lies the Ford Pinto or any recent Boeing aircraft.</p>
</blockquote>
<p>One way of doing this is probably to increase the amount of automated testing we do to what would have been a ridiculous degree a few years ago. Ideas like <a href="https://peterlavigne.com/writing/verifying-ai-generated-code">mutation testing</a> help validate that our tests are actually testing functionality and we don't have untested side effects. Building this kind of thing into our workflows could make it possible to avoid reviewing tests as closely while still staying confident that they're effective.</p>
<p>Finding the right balance here is going to be tricky, but I'm here for it.</p>
      ]]></content>
    </item>
    
    <item>
      <title>My questionable use of AI coding instead learning something new</title>
      <link>https://tristanhavelick.com/questionable-ai/</link>
      
      <category>blog</category>
      
      <pubDate>Wed, 26 Mar 2025 00:00:00</pubDate>
      <content><![CDATA[
<p>Tonight I was reading,
<a href="https://ratfactor.com/tech-nope">I'm an American software developer and the "broligarchs" don't speak for me</a> and ran across this passage which completely derailed me way beyond what it should have:</p>
<blockquote>
<p>I can buy a 32Gb USB flash drive for the price of a cup of coffee, store a compressed copy of Wikipedia on it, and throw it in my pocket like it’s no big deal. That’s incredible.</p>
</blockquote>
<p>I thought, huh. That is indeed incredible! But what if I were more pedantic? I remembered the wikipedia archive I'd used previously being around 100GB, which is well beyond what you can throw on a 32 GB thumb drive. That said, I'm wrong more often than not so I decided to check my memory. I jumped over to the Kiwix Library page to investigate. For those who are unaware, Kiwix is a neat system that allows you to self host Wikipedia and a bunch of other useful websites in case the world, or just your internet connection, goes a little haywire. The Kiwix library page search leaves a lot to be desired though. With some quick browsing I could tell that the largest, most complete English Wikipedia archive was 100 GB. But with so many smaller alternatives, it was hard to tell what the smallest complete version was". Rather than spending 5 more minutes reading through the search results to find the right result I decided to see if I could quickly scrape some data here to make searching easier.</p>
<p>This was my first mistake.</p>
<p>I quickly found an <a href="https://library.kiwix.org/catalog/v2/entries">Atom feed</a> that I could add URL parameters like <code>start</code>, <code>count</code> and <code>category</code>. I had data! But it was in XML. XML and I. Well. Let's just say we don't really get along. If this was json, I could throw <a href="https://jqlang.org/">jq</a> at it and query the data I need in a couple minutes. But it wasn't. It was XML. Ugh. But, wondered, perhaps there's something like <code>jq</code> that works with XML. Yes! It turns out <a href="https://github.com/sibprogrammer/xq">xq</a> is a thing. So I installed that and fiddled with it for all of 3 minutes before giving up on finding the right XPath expression to find the largest full archive. Then I decided, that perhaps it'd be easier to just have AI code up a customized script to get the data I wanted.</p>
<p>This was my second mistake.</p>
<p>I booted up <a href="https://aider.chat">Aider</a> in a new repo and set out to create a script to convert the atom feed to a SQLite database I could very easily query. 19 minutes of prompting later and I had my answer. Now, I'm not one to just have an AI puke out some slop and post it on github and walk away. No sir! So I spent another 40 minutes cleaning it up and making it look nice. If you need a good tool to <a href="https://github.com/thavelick/kiwix-atom-to-sqlitedb">convert a Kiwix atom feed to a SQLite DB</a>, I have your back. Because I'm certain you need this tool.</p>
<p>An hour and a half later, I now know that a full image free copy of Wikipedia will set you back 53 GB, meaning you'd actually need a 64 GB flash drive. On Amazon this would cost an additional-- wait. The 64 GB drives seem to be <strong>cheaper</strong> on balance than the 32 GB ones!? Nevermind. Where was I?</p>
<p>The AI tooling made this easy. But I can't help but pause and feel like maybe I'd lost something here. Had I not had access to these tools, maybe I would have actually sat down and learned <code>xq</code> better. Maybe I would have refreshed my XPath skills and maybe I wouldn't continue to give XML so much grief. Or maybe I would have realized sooner the silliness of throwing technology at a question I could have just read a few more words using my own brain to find the answer. In some alternate timeline, I could have just focused on what I was reading and ignored an irrelevant throw-away fact.</p>
<p>With new technologies, we let previous skills atrophy. With writing, we lessened memorization and discounted the oral tradition. With pocket calculators we placed less importance on rote arithmetic. With search engines we became less practiced in research in the library. Perhaps tools like <code>jq</code> and <code>xq</code> will be less needed in some future where we can ask AI to code anything in seconds. But just like memorization and storytelling are still valuable skills today, keeping up on such tools is likely going to be useful for some time to come.</p>
<p>Now, I should really get back to reading that blog article. It's certainly worth my time.</p>
      ]]></content>
    </item>
    
    <item>
      <title>You aren&#39;t locked in</title>
      <link>https://tristanhavelick.com/you-arent-locked-in/</link>
      
      <category>blog</category>
      
      <pubDate>Fri, 14 Mar 2025 00:00:00</pubDate>
      <content><![CDATA[
<p>In 1998, Netscape decided to rewrite the code behind their iconic web browser from scratch. They failed. By the time they released the rewritten version, it was so riddled with bugs that the team decided to scrap it. <a href="https://www.joelonsoftware.com/2000/04/06/things-you-should-never-do-part-i/">Joel Spolsky</a> called this "The worst strategic mistake that any software company can make". As a new professional, his message was clear and haunted me for years to come.</p>
<p>But a codebase without direction and planning can indeed really get out of hand. Much later in my career, a website I worked on with tons of ad-hoc PHP and spaghetti jQuery was getting incredibly hard to work with. Not having effective front-end unit tests or clear logic separation made rollbacks and merge conflicts happen. More than one high impact initiative was cancelled due to missed deadlines. We knew the current path wasn't going to work in the long run. But I knew that doing a rewrite from scratch could potentially end the company. So what to do?</p>
<p>Tasked with finding a way out of this, I dove into researching and found it's not the rewrite that's dangerous. It's lack of feedback. The longer you work on a project without getting it into the hands of the people who'll use it, the worse off you'll be. That leaves two options do it fast, or do it slow, one piece at a time.</p>
<p>In the case of the PHP/jQuery migration we went with the second option as there was too much to do to be fast. We took advantage of the <a href="https://martinfowler.com/bliki/StranglerFigApplication.html">Strangler Fig pattern</a>. We began by started moving core back-end functionality to Python/Flask API server. Then we moved bits of functionality, page by page, component by component over to a new Next.js/React system. We put a reverse proxy on from the old server to the new one that we could activate on a URL by URL basis. We started with a simple page as a proof of concept, but once we had that, we started moving our most changing and highest traffic routes over. Within less than a month we saw the benefits of faster page load times, easier collaboration and quicker implementation of split tests. Over time, more and more pages lived on the new system. All of it was turned on, in production, in front of customers from day one. No development branch lived for more than a week or so without being merged in. And it worked. After a few years, we'd migrated 98% of the application to the new systems with no giant rollbacks, no crunch time and no regrets. The new system isn't perfect. It has some of the dependency hell kind of problems that plague a lot of React/Next projects. But it works well overall and is a far cry from where we used to be.</p>
<p>You're not stuck choosing between a complete, existentially risky write and languishing in a buggy, hard-to-work with code base. You can escape to something better. And with LLM-based code completion like GitHub Copilot and agentic development environments like <a href="https://aider.chat">Aider</a> and Cursor, you can probably do such a migration a heck of a lot faster than we did. On a recent undertaking, I saw  this firsthand when I moved my manually edited HTML-only (and admittedly much smaller) personal site to a database-driven flask site using a similar process. This time the bulk of the work was done in less than 24 hours. More on that next time.</p>
<p>Did you find this article valuable? Let me know on <a href="https://social.linux.pizza/@Natris1979">Mastodon</a>!</p>
      ]]></content>
    </item>
    
    <item>
      <title>On Nexus</title>
      <link>https://tristanhavelick.com/nexus/</link>
      
      <category>blog</category>
      
      <pubDate>Sun, 01 Dec 2024 12:31:00</pubDate>
      <content><![CDATA[
<p>Sapiens by Yuval Harari is probably the last non-fiction book I read that had a big effect
 on how I view the world.
 After years of buying into the new atheism and the skeptics movement, the book really helped
 me soften to religious and spiritual people again and that there is value in believing things
 that aren't true actually can have value.
 So when I saw <em>Nexus</em> had been written and focused on Information Networks and how AI
 might effect society moving forward I was pretty excited as AI has always been a big interest
 of mine and has already been making big changes in my corner of the world. Although it wasn't
 as earth shattering to my worldview, it did change my perspective on some things.</p>
<p>One, was explaining the difference between autocracy and totalitarianism.
 Autocracy refers to societies with a single powerful leader with no checks on their power.
 However, an autocratic leader, historically would be limited by the scope of their view. Sure,
 a Roman Emperor could monitor and exact revenge on those he didn't like close to home, but
 managing every aspect of people's lives in a city thousands of miles away was impossible.
 In the 20th century, with technology like the telegraph, totalitarianism came about.
 Stalin, for instance, could plant spies and get reports from across the entirety of the U.S.S.R
 and control things at a greater distance with greater ease.
 In fact, getting too much information was often a more difficult problem than not having enough.
 One of the things Harari argues is that AI technology will make it easy for totalitarians to
 micromanage across vast areas even more effectively because it can collect and filter through
 large sets of data about people to identify potential bad actors. China's social reputation
 scoring system might be an example of this that already exists.</p>
<p>But, he brings up the point that AI, on the other hand, could be used to fight against such total
 control.
 If dissidents against a totalitarian power can make bots that share anti government ideas
 online without being traceable back to the original author, perhaps AI can help those fighting
 gain their own reach.</p>
<p>Beyond giving me some ideas on how to think about how AI might affect the world, the book really
 drove home for me that History can be an interesting lens to look at current and future events
 through.
 I haven't generally read a lot of history, but maybe that should change.</p>
      ]]></content>
    </item>
    
    <item>
      <title>Cajun Sausage and Beans</title>
      <link>https://tristanhavelick.com/recipes/cajun-sausage-and-beans/</link>
      
      <category>recipe</category>
      
      <pubDate>Wed, 25 Oct 2023 00:00:00</pubDate>
      <content><![CDATA[
<h2>Ingredients</h2>
<ul>
<li>1 lb. Turkey, Smoked or, Andouille Sausage, sliced into 1/2 inch slices</li>
<li>1-2 cups cooked, left over <a href="/recipes/the-rice">THE Rice</a></li>
<li>1 can (15 oz.) red kidney beans, rinsed and drained</li>
<li>1 can (15 oz.) diced tomatoes</li>
<li>2 celery stalks, chopped</li>
<li>1 green bell pepper, chopped</li>
<li>1 onion, chopped in the food processor</li>
<li>1/2 teaspoon of salt</li>
<li>About 2 teaspoons of Cajun Seasoning</li>
<li>2 tablespoons of jarred minced garlic</li>
<li>1-2 tablespoons of olive oil</li>
<li>1/2 cup (4 fl. oz) of water</li>
<li>salt and pepper to taste</li>
</ul>
<h2>Instructions</h2>
<ol>
<li>Heat the olive oil in a large skillet over medium heat.
 Add the sausage and cook until browned.
 Set aside.</li>
<li>Add more olive oil to the skillet if needed.
 Add the green peppers, onion, and celery to the skillet along with the salt.
 Toss in half the Cajun seasoning.
 Cook until tender.</li>
<li>Add the garlic and cook for about 30 seconds.</li>
<li>Add the beans, tomatoes, water, rice, along with the rest of the Cajun seasoning.
 Simmer for about 10 minutes.</li>
<li>Stir back in the sausage.
 Let it warm if needed.</li>
<li>Sprinkle some salt and pepper to your taste.</li>
</ol>
      ]]></content>
    </item>
    
    <item>
      <title>Sustainable Cooks&#39; Garlic Butter Rice</title>
      <link>https://tristanhavelick.com/recipes/the-rice/</link>
      
      <category>recipe</category>
      
      <pubDate>Sun, 15 Oct 2023 00:00:00</pubDate>
      <content><![CDATA[
<p>I often make this ahead on the weekend for use in various meals through the week.</p>
<h2>Ingredients</h2>
<ul>
<li>3 tablespoons butter</li>
<li>1 cup uncooked white rice</li>
<li>1/3 cup uncooked brown rice</li>
<li>2 cups water</li>
<li>2 teaspoons of veggie Better Than Bouillon</li>
<li>2 tablespoons of jarred minced garlic</li>
<li>3/4 teaspoons parsley</li>
<li>2 tablespoons grated Parmesan cheese (optional)</li>
</ul>
<h2>Instructions</h2>
<ol>
<li>Set Instant Pot to "saute" to melt the butter (it will take about 1-2 minutes). Once melted, turn the Instant
 Pot to "off/keep warm".</li>
<li>Add the rice, broth, garlic, and dried parsley. Stir.</li>
<li>Lock the lid into place and set the steam release handle (valve on top) to “Sealing”. Press the "rice" button.</li>
<li>When the cooking time is up, flip the vent to venting and perform a quick release.</li>
<li>Carefully open the lid and add the parmesan and stir.</li>
</ol>
<h2>Notes</h2>
<ul>
<li>The original recipe sets pressure to high for 6 minutes. The rice button sets the time to 12 minutes but it
 still turns out great. I'm not really sure what the rice button does, but it works</li>
<li>Typically, I omit the original recipe's use of parmesan cheese so it fits with a wider variety of cuisines.</li>
<li>The rice will stick to the side of the pot less if you rinse it first.</li>
<li>Sustainable Cooks calls for just white rice, but I found adding some brown rice adds some extra flavor and
 nutrition.</li>
</ul>
<h2>Original Recipe</h2>
<p><a href="https://www.sustainablecooks.com/parmesan-rice/">Sustainable Cook's Garlic Butter Rice</a></p>
      ]]></content>
    </item>
    
    <item>
      <title>Adam Ragusea&#39;s Pizza Dough</title>
      <link>https://tristanhavelick.com/recipes/pizza-dough/</link>
      
      <category>recipe</category>
      
      <pubDate>Sun, 15 Oct 2023 00:00:00</pubDate>
      <content><![CDATA[
<h2>Ingredients</h2>
<ul>
<li>2 1/4 cups (530 ml) warm water</li>
<li>1 tbsp sugar (12g) sugar</li>
<li>1 tbsp (9g) active dry yeast</li>
<li>2 tbsp (30 ml) olive oil</li>
<li>1 tbsp (18 g) kosher salt</li>
<li>5 cups (600g) bread flour, plus more for working the dough</li>
<li>additional oil for greasing the dough</li>
<li>cornmeal, semolina flour, or coarse-ground whole wheat flour for dusting</li>
</ul>
<h2>Instructions</h2>
<ol>
<li>Start the dough by combining the water, sugar and yeast in a large bowl and let sit for a few minutes.</li>
<li>If the yeast goes foamy, it's alive and you're good to proceed (if it doesn't, it's dead and you
 need new yeast). Add the olive oil and salt and 5 cups (600g) of bread flour. Mix until just
 combined, then start kneading. Add just enough additional flour to keep the dough workable
 (i.e. not too sticky) and kneed until you can stretch some of the dough into a thin sheet
 without it tearing. (NOTE: You will probably need to add a lot more flour. The quantity I give
 here is just a base line to get your started.)</li>
<li>Divide the dough into four equal balls and put them in four containers (ideally glass) and
 lightly coat the balls and the interior of their containers with olive oil. Cover, and either rise at room
 temperature for two hours, or put them in the refrigerator and let them rise for 1-7 days. (I prefer the long,
 cold
 rise.)</li>
</ol>
<h2>Notes</h2>
<ul>
<li>Sometimes I choose the easy way and get pizza dough premade from the grocery store and that's totally okay</li>
</ul>
<h2>Original</h2>
<ul>
<li><a href="https://www.youtube.com/watch?v=SDpCzJw2xm4">New York-style pizza at home, v2.0</a></li>
</ul>
      ]]></content>
    </item>
    
    <item>
      <title>Internet Shaquille&#39;s Chicken Tinga</title>
      <link>https://tristanhavelick.com/recipes/chicken-tinga/</link>
      
      <category>recipe</category>
      
      <pubDate>Sun, 15 Oct 2023 00:00:00</pubDate>
      <content><![CDATA[
<h2>Ingredients</h2>
<ul>
<li>2 lbs skinless chicken thighs</li>
<li>2-5 canned chipotle peppers</li>
<li>1-14.5-ounce can of fire-roasted tomatoes</li>
<li>3 tablespoons of jarred minced garlic</li>
<li>1 onion</li>
<li>Olive oil</li>
<li>3 teaspoon kosher salt</li>
<li>black pepper</li>
<li>1 teaspoon cumin</li>
<li>1 teaspoon oregano</li>
<li>chili powder (optional)</li>
<li>a whole bay leaf (optional)</li>
<li>smoked paprika (optional)</li>
</ul>
<h2>Instructions</h2>
<ol>
<li>Chop the onion in the food processor.</li>
<li>Set the instant pot to "Saute" add the oil and let it get hot.</li>
<li>Add the onion and let it cook.</li>
<li>Toss in the chicken and brown it a bit
 (or if feeling lazy, drop it in frozen and don't worry about browning).</li>
<li>Plop in the rest of the ingredients.</li>
<li>Set the instant pot to "Pressure Cook" for 15 minutes. Quick release the pressure when it's done.</li>
<li>Take the the chicken out to cool.</li>
<li>Set the instant pot to "Saute". Use an immersion blender to turn the braising liquid into a smooth sauce.</li>
<li>Shred it by tearing it apart with your fingers.</li>
<li>Return the chicken to the bubbling sauce.</li>
<li>Serve chicken as part of nachos, tacos, tostadas, quesadillas, or enchiladas</li>
</ol>
<h2>Notes</h2>
<ul>
<li>Shaquille uses a crockpot for this but I find the Instant Pot easier and faster.</li>
<li>He is a chef so he chops his onion with a knife. So fancy!</li>
<li>This is probably better if you mince garlic like Shaq, but I'm lazy so I used the jarred stuff.</li>
<li>We'll often make this for meals through the week. If the chicken gets low, we'll heat it up with some canned
 beans and corn to pad it out a bit.</li>
</ul>
<h2>Original Recipe</h2>
<p><a href="https://www.youtube.com/watch?v=DqTsb9N3cqY">Internet Shaquille's Chicken Tinga</a></p>
      ]]></content>
    </item>
    
    <item>
      <title>A Library for Making List Webpages &#34;Readable&#34;</title>
      <link>https://tristanhavelick.com/readable-list/</link>
      
      <category>blog</category>
      
      <pubDate>Tue, 16 May 2023 00:00:00</pubDate>
      <content><![CDATA[
<p>This started as a README for a potential open source project. I
decided to make a blog post to maybe get some feedback or suggestions.</p>
<h2>Status</h2>
<p>Just an idea at this point.</p>
<h2>Description</h2>
<p>There are "readability" libraries such as:</p>
<ul>
<li><a href="https://github.com/mozilla/readability">https://github.com/mozilla/readability</a></li>
<li><a href="https://github.com/buriy/python-readability">https://github.com/buriy/python-readability</a></li>
</ul>
<p>These take a webpage containing an article and strip out all the
navigation and ads. Most of these work great for pages that are
articles and some, like Mozilla's do a pretty good job of
identifying when a page is NOT an article. However, there isn't
much these libraries can currently do with pages that are lists of
articles like:</p>
<ul>
<li><a href="https://coloradosun.com/category/news/housing/">https://coloradosun.com/category/news/housing/</a></li>
<li><a href="https://drewdevault.com/">https://drewdevault.com/</a></li>
<li><a href="https://www.npr.org/sections/culture/">https://www.npr.org/sections/culture/</a></li>
<li><a href="https://www.cnn.com/health">https://www.cnn.com/health</a></li>
</ul>
<p>Here, I'm considering making a library that strips out
extraneous side navigation/ads/other junk from web pages like
these, and either returning a list of article URLs or a very simple
page with article links in a bulleted list.</p>
<p>By combining this with a standard readability algorithm/library,
one could create a simple and/or text-only view of a website than
what is typically rendered by text browsers like w3m and lynx.</p>
<p>A browser built using this could sit in a missing place in the
continuum of browser complexity:</p>
<pre><code>Offpunk &lt; THIS THING &lt; w3m/lynx/elinks &lt; visurf/netsurf/surf &lt; qutebrowser/chrome/firefox

</code></pre>
<h2>Possible Algorithm</h2>
<ol>
<li>Start with a given HTTP/S URL</li>
<li>retrieve that page</li>
<li>Parse the page and get a list of all the links on that
page</li>
<li>Remove any links that are to domains other than the one from
the original link</li>
<li>Retrieve a few, say 10,maybe random links from the remaining of
the list</li>
<li>Get a similar list of links for each of those pages</li>
<li>Get a list of the links that are common across all of the
retrieved pages. It is a reasonable assumption that these would we
be navigational links.</li>
<li>Finally, we'd return to the list of links from the original
page, and remove the links we've determined are navigational</li>
<li>At this point, we're left with links only to unique content
pages!</li>
</ol>
<h3>Flaws</h3>
<ul>
<li>If a website makes heavy use of cross linking in articles,
those articles may be unfairly excluded from the final list of
articles</li>
<li>For some sites, this would be redundant with RSS/Atom feeds a
be of lower quality</li>
<li>This probably wouldn't work (out of the box) for sites that
rely on client-side JavaScript to render content.</li>
</ul>
      ]]></content>
    </item>
    
    <item>
      <title>How to Verify on Mastodon</title>
      <link>https://tristanhavelick.com/how-to-verify-on-mastodon/</link>
      
      <category>blog</category>
      
      <pubDate>Sun, 06 Nov 2022 00:00:00</pubDate>
      <content><![CDATA[
<p>With the most recent influx of users from Twitter to Mastodon, I've noticed several new
 accounts that appear to be famous people. Because these folks are new to Mastodon, most I've
 seen are unverified. Verification works really differently on Mastodon than it does on Twitter
 and is a little technical, so this post serves as a step by step guid for anyone who is at
 risk of being impersonated on Mastodon.</p>
<h2>Differences from Twitter</h2>
<p>On Twitter, verification is a process that is handled by Twitter staff. They verify that
 you are who you say you are by asking you to provide a photo of your ID. Once you've
 provided that, they verify you and you get a blue checkmark next to your name. Up to now
 Twitter did this at their own discretion, but they recently announced that they may start
 making this a paid feature.</p>
<p>On Mastodon, there's no centralized authority that can verify folks in the same way as
 Twitter. Instead you can verify yourself by putting a link to your website in your bio,
 then linking back to your Mastodon account from your website in a special way.</p>
<h2>Linking to your site From Mastodon</h2>
<p>Note:  <strong>I'm assuming in these instructions that you're using a PC and are interacting with
 your Mastodon account with a web browser.</strong> Certain features are different or missing from
 the mobile website and from the mobile apps, so if you're on your phone things might be a
 little different.</p>
<p>The first step in verifying yourself is linking from your Mastodon profile to your website.
 This should be your public website that people trust is run by you or your organization.
 To do this, follow these steps:</p>
<ol>
<li>Go to your profile page on Mastodon. Click on "Edit Profile" under your username on the left.</li>
<li>Scroll down to the "Metadata" section, towards the bottom of the page. In the first row,
 type "Website" in the box on the left and the full URL of your website in the box on the
 right. Your website URL should start with <code>https://</code>. For example, for my site
 I put <code>https://tristanhavelick.com</code>.</li>
<li>Click "Save Changes" at the bottom of the page.</li>
</ol>
<p>This will add a link to your website in your profile. However this isn't enough to verify
 you.</p>
<h2>Linking back to your Mastodon account from your website</h2>
<p>Now, you need to add a link to your Mastodon account from your website. The easiest way to
 do this is to steal the bit of HTML code that Mastodon generates for you. To do this, just
 hit the copy button to the right of where you added your website on your Mastodon profile
 page, under "Verification". The HTML code will look something like this:</p>
<pre><code>&lt;a href=&quot;https://your-mastodon.site/@YourMastodonUser&quot; rel=&quot;me&quot;&gt;Mastodon&lt;/a&gt;
</code></pre>
<p>The important bit here is the <code>rel="me"</code> part. This says "this link is to a page that I control and
 represents me".</p>
<p>Then, you just add that code somewhere on the home page of your site. (If you don't maintain
 the code on your website contact whoever does and send them the link to this article along
 with the link to this to your Mastodon, they should be able to help from there.</p>
<p>Once you've done that, you should be verified on Mastodon. You can check by going to your
 profile page on Mastodon and looking for the little checkmark next to your username.</p>
<h2>This solution isn't perfect</h2>
<p>Even with this solution, it's still possible that someone could impersonate you on Mastodon.
 This verification is only as reliable as the websites that you link to. If someone were to
 create a website that looks like yours, they could link to their cloned Mastodon account from
 that. But it's better than nothing, and Twitter verification has it's flaws as well.
 Have you seen how many verified Elon Musks there are on Twitter these days?</p>
      ]]></content>
    </item>
    
    <item>
      <title>TIL: The Difference Between `docker compose exec` and `docker compose run`</title>
      <link>https://tristanhavelick.com/til/difference-between-docker-compose-exec-and-run/</link>
      
      <category>blog</category>
      
      <category>til</category>
      
      <pubDate>Sun, 25 Sep 2022 00:00:00</pubDate>
      <content><![CDATA[
<p>In the past, I've used the commands <code>docker compose exec [some container] bash</code> and
<code>docker compose run [some container] bash</code> pretty much interchangeably. I figured there was some
subtle, probably unimportant, difference between them. Recently I learned what it is.</p>
<p>Recently I had a problem where I ran the <code>run</code> variant to check the contents of a configuration file
and to my surprise it was missing entirely! I suspected this <code>exec</code>/<code>run</code> business to be the culprit
so I tried using <code>exec</code> instead and sure enough the missing configuration file was there.</p>
<p>As it turns out, <code>docker compose exec [some container] [command]</code> will run the given command in
the docker container that is already running. On the other hand,
<code>docker compose run [some container] [command]</code> spins up a fresh container.</p>
<p>But how does that explain the missing configuration file? In our case we have a <code>Dockerfile</code> that's
laid out kind of like this:</p>
<pre><code class="language-dockerfile">FROM ubuntu:latest as base

WORKDIR /app
# ... Do a bunch of things ...

FROM base as development

# ... Do a bunch of extra things ...
# Build all the configuration files:
CMD ./entrypoint.sh
</code></pre>
<p>Then we have a <code>docker-compose.yml</code> that looks like this:</p>
<pre><code class="language-yaml"># ...
services:
    app:
        build:
            context: .
            target: development
# ...
</code></pre>
<p>With this setup, when I ran docker compose up, it would build the container with the <code>development</code>
target and the configuration files would be created. Then when I ran <code>docker compose exec app bash</code>,
I'd see the files. However when I ran <code>docker compose run app bash</code>, it would make a new container
that was built with the <code>base</code> target which didn't have the files!</p>
<p>If you're like me, even after learning this you'll have some trouble recalling
which command is which, so here's a silly mnemonic to help:</p>
<ul>
<li>(ex)ec is for (ex)isting containers</li>
<li>(r)u(n) is for (r)unning a (n)ew container</li>
</ul>
<p>I'm still not exactly clear why the <code>run</code> command doesn't just build the new container
with the <code>development</code> target but I'll update this TIL if I figure it out.</p>
      ]]></content>
    </item>
    
    <item>
      <title>TIL: nosetests - Only Recurses Sub-folders That Are Modules</title>
      <link>https://tristanhavelick.com/til/nosetests_only_recurses_subfolders_that_are_modules/</link>
      
      <category>blog</category>
      
      <category>til</category>
      
      <pubDate>Sun, 25 Sep 2022 00:00:00</pubDate>
      <content><![CDATA[
<p>In a project I work on, we organize tests under a <code>tests</code> folder.  Within that
folder, of course, we have several levels of sub-folders. Recently I had a
problem where some newer tests weren't being run with our build. It turns out
that <code>nosetests</code> only recurses into subfolders that are modules. Thus, to fix
the problem, I had to add an empty <code>__init__.py</code> file to the subfolder that
contained the tests that weren't being run.</p>
<p>To prevent this from happening again, I added the following little meta-test to
our test suite:</p>
<pre><code class="language-python">import os
import unittest

class TestEnsureAllTestFoldersAreModules(unittest.TestCase):
    def test_ensure_all_test_folders_are_modules(self):
        # nosetests won't run tests in folders that don't have an __init__.py
        # file, so make sure that all the sub-folders under tests/, recursively,
        # have an __init__.py file. Only check folders that contain a test_*.py
        # file as some folders like __pycache__ don't contain actual tests.

        for root, dirs, files in os.walk('tests'):
            if any([f.startswith('test_') and f.endswith(&quot;.py&quot;) for f in files]):
                self.assertTrue(
                    '__init__.py' in files,
                    '{} does not have an __init__.py file'.format(root)
                )
</code></pre>
<h2>Resources</h2>
<ul>
<li><a href="https://stackoverflow.com/questions/19852548/run-nosetests-in-all-subdirectories">How to Run nosetests in All Subdirectories (Stack Overflow)</a></li>
<li><a href="https://docs.python.org/3.11/library/os.html#os.walk">Python Docs: os.walk</a></li>
</ul>
      ]]></content>
    </item>
    
    <item>
      <title>TIL: Skip git Commit Hooks</title>
      <link>https://tristanhavelick.com/til/skip_git_commit_hooks/</link>
      
      <category>blog</category>
      
      <category>til</category>
      
      <pubDate>Sun, 25 Sep 2022 00:00:00</pubDate>
      <content><![CDATA[
<p>On my work laptop, I've got git hooks set up so git will complain if I forget
certain things that make my commits more professional, like:</p>
<ul>
<li>Making sure I've got ticket numbers in branch names and commit messages</li>
<li>Making sure I'm conforming to our commitlint rules</li>
<li>Make sure I'm not committing to the directly to the main, production branch</li>
</ul>
<p>But sometimes I'm committing to a personal repo like this one or my
<a href="https://github.com/thavelick/dotfiles">dotfiles repo</a> and I don't care about
this stuff. After messing with a series of silly ways prevent the hooks from
running I learned that you can just use a simple flag, either <code>--no-verify</code> or
<code>-n</code> to skip the hooks:</p>
<pre><code class="language-bash">git commit -n -m &quot;my unprofessional commit message&quot;
</code></pre>
<h2>Resources</h2>
<ul>
<li><a href="https://stackoverflow.com/questions/7230820/skip-git-commit-hooks">Stack Overflow: Skip Git Commit Hooks</a></li>
</ul>
      ]]></content>
    </item>
    
    <item>
      <title>TIL: Using ctrl-z to toggle between a program and the terminal</title>
      <link>https://tristanhavelick.com/til/ctrl-z-bg-and-fg/</link>
      
      <category>blog</category>
      
      <category>til</category>
      
      <pubDate>Sun, 11 Sep 2022 00:00:00</pubDate>
      <content><![CDATA[
<p>In almost any terminal program you can hit <code>ctrl-z</code> to pause it, then run <code>fg</code>
to bring it back. With some zsh configuration you can make <code>ctrl-z</code> bring back
the program too.</p>
<p>First, I tried doing what this <a href="https://schulz.dk/2022/01/26/using-ctrl-z-to-toggle-process-in-fg-bg/">Blog post</a>
suggested:</p>
<pre><code># .zshrc
# use ctrl-z to toggle in and out of bg
if [[ $- == *i* ]]; then
  stty susp undef
  bind '&quot;\C-z&quot;:&quot; fg\015&quot;'
fi
</code></pre>
<p>But my system doesn't seem to support the <code>bind</code> command. Thus I ended up with:</p>
<pre><code># .zshrc
foreground() {
    fg
}

zle -N foreground
# use ctrl-z to toggle in and out of bg
if [[ $- == *i* ]]; then
  stty susp undef
  bindkey &quot;^Z&quot; foreground
fi
</code></pre>
<p>Which worked, but it didn't work from nvim which is where I thought I'd find
it most useful.  It turns out this is because I'm using Doom vim which disables
<code>crtrl-z</code> in <code>lua/doom/extras/keybindings/core.lua</code>:</p>
<pre><code>mappings.map(&quot;n&quot;, &quot;&lt;c-z&gt;&quot;, &quot;&lt;Nop&gt;&quot;, opts, &quot;Editor&quot;, &quot;disable_suspending&quot;, &quot;Disable suspending&quot;)
</code></pre>
<p>Commenting out the offending line fixed me up nicely.</p>
<p>From: <a href="https://bsd.network/@solene/108973780663404081">@Solene on Mastodon</a>
and <a href="https://unix.stackexchange.com/questions/475310/how-to-bind-a-keyboard-shortcut-in-zsh-to-a-program-requiring-stdin">Unix Stack Exchange: How to bind a keyboard shortcut in zsh to a program requiring stdin?</a></p>
      ]]></content>
    </item>
    
    <item>
      <title>Slowing down to combat burnout</title>
      <link>https://tristanhavelick.com/burnout/</link>
      
      <category>blog</category>
      
      <pubDate>Sat, 05 Dec 2020 17:00:00</pubDate>
      <content><![CDATA[
<p>Last week, a co-worker asked me if I had any resources that he could point his employees
 to that could help dealing with burn-out. I couldn't really think of any, but went through
 my list of usual strategies including:</p>
<ul>
<li>Taking a break for a few days</li>
<li>Writing down a list of things I've done as I complete them, as opposed to keeping a
 to-do list</li>
<li>Re-evaluating my goals and making sure my current actions align with those goals</li>
<li>Being on the look out for any stress in my personal life that may be affecting my
 desire to work</li>
<li>Working on something different. Variety can powerful</li>
<li>Collaborating through difficult work</li>
</ul>
<p>But the list felt flat. I wasn't sure if anything I'd come up with would really be
 helpful. A few days later, I reread <a href="https://sive.rs/tilt">a story from Derek
 Sivers</a> about slowing down on a difficult drive and explicitly ignoring those people who
 it might annoy, thus making the drive much more enjoyable. He reminds us to adjust adjust
 our environment to what we need even if it's inconvenient to others.</p>
<p>The story reminded me a burnout combatting strategy I'd used in the past: <strong>Slow
 down and focus on craftsmanship</strong>. Often burnout comes when you feel stress always
 be getting something done, always moving on to the next thing that's needed. Instead of
 getting things done as quickly as possibly, it can help to take the slow route. Zoom in on
 the little details. Take a lot more time to make what you're working on as perfect as you
 can. In a software development context, is each variable name as good as it could be? Could
 any lines of code be removed? Could we make it perform faster? If what you're working on
 feels repetitive, could you make the computer do the work for you? Could the code be
 rewritten to be more readable?</p>
<p>When it works, this strategy helps me find the beauty in my work again. Sometimes I go a
 bit overboard and end up with an over-engineered mess I have to throw away. But when I do,
 the quick solution and simple solution I started with ends up feeling much better as now
 I've seen the flaws in the alternative. And of course, burnout can be caused by the reverse
 too. Sometimes, if I've been to in the weeds of the details and too focused on making
 things perfect it can help to step back and come up with a quick and un-elegant solution
 instead.</p>
<p>The feeling of burnout is your brain's way of telling you that something needs to
 change. So, the next time that feeling settles upon you consider that perhaps the solution
 is as simple as changing the pace and focus of your work.</p>
      ]]></content>
    </item>
    
    <item>
      <title>Already Blogging</title>
      <link>https://tristanhavelick.com/already-blogging/</link>
      
      <category>blog</category>
      
      <pubDate>Mon, 23 Nov 2020 17:00:00</pubDate>
      <content><![CDATA[
<p>My recent return to updating my website and finally getting
 around to starting a blog on my own site was inspired in large part
 by Alexey Guzey's article on <a href="https://guzey.com/personal/why-have-a-blog/">Why you should start
 a blog right now</a>. In it, he helped me overcome my biggest
 objections to starting. First, he convinced me that it doesn't
 matter if I don't come up with anything original to say:</p>
<blockquote>
<p>Consider a university professor teaching a course. Does she say
 anything original? Do you think she should cancel her course
 because somebody else discovered the things she wants to teach? Or
 does she have to cancel her course simply because there is a
 similar course at some other university?</p>
<p>Or consider yourself. Do you avoid having conversations with
 your friends when you think you have nothing original to say? Do
 you share things with them? Do you give advice? Do you help to
 understand things?</p>
</blockquote>
<p>Second, the article gave me a lot of ideas on where to find
 something to write about including:</p>
<ul>
<li>Scouring old IM logs and emails for things you said that seemed
 useful to others.</li>
<li>Looking at comments you've made on other peoples posts.</li>
<li>Thinking about advice you repeatedly give to friends.</li>
<li>Look through notes taken when researching different
 topics.</li>
</ul>
<p>This got me thinking about other sources I could use for article
 ideas and it hit me: I'd already written a lot of article-like
 content but it was spread scattershot over the web. I then
 collected a few of these, made some minor edits and they became the
 first few articles on this site. The oldest of which I adapted from
 a StackOverflow post I wrote all the way back in 2008! If you're
 starting a blog, you should look around the web to find things
 you've already written and consider adding them as back dated posts
 on the new site.</p>
<h2>Where to find articles you've already written to add to your</h2>
<p>blog</p>
<p>There are a lot of places you can probably find content you've
 written that you can adapt to blog articles. Some you can likely
 import directly into your blog and others you might need to edit
 and or flesh out a little.</p>
<ul>
<li>Posts you've written on third party blogging platforms like
 Medium, Blogger or BlogSpot.</li>
<li>Questions you've asked or answered on Q\&amp;A websites like
 Quora, StackOverflow or StackExchange. In these cases you might
 need to edit them a bit so they make sense in a more narrative
 form, but doing so is probably quicker and easier than you
 anticipated.</li>
<li>Forum posts.</li>
<li>Entries from your personal journal (it's probably a good idea
 to heavily edit these and obviously not post everything en
 masse).</li>
<li>Articles or documentation you've written for work that might be
 useful for a wider audience. Check with your boss before adapting
 any of this work, but chances are they'll approve so long as you
 aren't revealing anything proprietary or that could be a security
 risk.</li>
<li>If you're a programmer, README's from open source tools you've
 developed.</li>
<li>Notes you've taken when learning something new.</li>
<li>Content you've written on old, now defunct websites accessed
 through the <a href="https://archive.org/web/web.php">Wayback
 Machine</a>.</li>
<li>Content that has been removed by changing moderation standards.
 When I wrote the original post behind my article on getting
 <a href="/breaking-into-coding">my first software development
 job</a> on <a href="http://stackoverflow.com">StackOverflow</a>
 they allowed open ended questions. When the site decided to focus
 on questions with more definitive answers, my answer was removed by
 moderators even though many people found it useful. Adding it to my
 blog makes this long missing advice public again.</li>
<li>Long posts from Facebook or Twitter threads that others outside
 your friend circle might find useful.</li>
</ul>
<h2>Why you shouldn't worry about duplicating content</h2>
<p>Collecting all of your writing in your blog can allow people
 that would otherwise only find one or two fragments of your writing
 to read all you've had to say if they are so inclined.</p>
<p>Also, it's a great motivational exercise. It makes writing seem
 like a less daunting and new task. Once doing it, you'll realize
 you've actually been writing for years, and now have something to
 show for it. That should make future writing easier.</p>
<p>SEO experts sometimes rail against duplicate content. This might
 make you think I'm crazy for advocating using it. However,
 generally <a href="https://searchengineland.com/myth-duplicate-content-penalty-259657">duplicate content won't penalize your rankings</a>, it just won't
 count positively toward your rankings so content from the original
 site might rank more highly that the one on your new blog. If
 you're really worried about this you can add a <code>noindex</code>
 meta tag to the page to make search engines ignore it. That way at
 least people who come to your blog through other articles can still
 get value out of it.</p>
<h2>It doesn't matter that your old writing wasn't that great</h2>
<p>Think about one of your favorite blogs. One you've read for
 years perhaps. Go there, and click into the author's archives and
 read their first few posts. Chances are they will suck compared to
 what they're posting today. It's natural for writing to improve
 over time and for your thinking on a topic to change. Make minor
 (or even major) edits if you feel the need. Write some introductory
 text that gives context about what was happening when you wrote the
 article.</p>
<h2>Don't stop with the old stuff</h2>
<p>Of course, the idea here is not to just collect a bunch of old
 personal writing artifacts, but to give your blog (and your brain)
 a bit of a jump start. Once you've added a few older articles,
 spend some time to write some new ones. If your thoughts on a topic
 have changed, write a follow up post. Or write something entirely
 different.</p>
      ]]></content>
    </item>
    
    <item>
      <title>Welcome</title>
      <link>https://tristanhavelick.com/welcome/</link>
      
      <category>blog</category>
      
      <pubDate>Mon, 21 May 2018 18:00:00</pubDate>
      <content><![CDATA[
<p><em>[I wrote this a couple years back in draft form and never
 got around to publishing it. I'm a little less enthusiastic about
 the "IndieWeb" revolution now, but it does serve introduce the blog
 reasonably well]</em></p>
<p>I'm joining the IndieWeb revolution by creating my own personal
 website again for the first time in years! A lot of the structure
 comes from the venerable Derek Sivers, Is built with GatsbyJS and
 is hosted on GitHub Pages. Soon I'll be porting all of my old
 facebook, twitter and medium posts over here, along with hopefully
 adding some new content.</p>
      ]]></content>
    </item>
    
    <item>
      <title>PS4</title>
      <link>https://tristanhavelick.com/ps4/</link>
      
      <category>blog</category>
      
      <pubDate>Sat, 02 Jan 2016 17:00:00</pubDate>
      <content><![CDATA[
<p><em>[This article has been adapted from a post I wrote at
 Medium, years ago. It was revised and published here on
 2020-11-21]</em></p>
<p><img alt="cover image" src="https://cdn-images-1.medium.com/max/2000/1*pYOJ7QeG4cAoI1t9TjPTyA.jpeg" /></p>
<p>For Christmas 2015 I got a new PlayStation 4, which was pretty
 damn awesome. It has amazing graphics, and with it came this really
 sweet open world game, Fallout 4, where you play as a survivor in
 this post-apocalyptic world that people probably spent years
 painstakingly creating detail after detail. Its pretty fun and
 impressive. But I barely played it in the weeks following recieving
 it.</p>
<p>Instead, I spent most of my time playing this Free/Open Source
 game first released 20 years ago (in some form). The game’s
 graphics (at their best) look like this:</p>
<p><img alt="" src="https://cdn-images-1.medium.com/max/2034/1*vb2J01WJlJWlOcVNZJZZ8A.png" /></p>
<p>It’s called <a href="http://crawl.develz.org/wordpress/">Dungeon
 Crawl: Stone Soup,</a> and I’ve been a little obsessed. Why? In
 this game you can actually die. Just now, I played the game for 2
 hours, took a misstep and my character died. And that was it. I
 couldn’t be regenerated. I couldn’t restart from a save point. I
 couldn’t even play again and be faced with the same maps and
 enemies again armed with my newly acquired knowledge of what to
 find where, because the levels in this game are randomly generated
 each time you play. This very likely sounds awful but it’s not. As
 far as I can tell, there are two reasons for this being awesome
 instead of horrible.</p>
<p>First, this kind of “permadeath” really ratchets up the
 intensity of the game. When you’re staring down a giant ogre with a
 spiked club he looks like something my cat could draw on the
 screen. But when he has the power to wipe out hours of effort in a
 single turn he becomes incredibly scary in your mind’s eye. And if
 you’re otherwise doing well you’ll do anything in your power to
 survive. In my recent game, I felt this kind of thrilling moment
 over and over again. I stumbled upon a very powerful weapon called
 a Dark Maul. This thing was several times more powerful than any
 normal weapon in the game, but had the disadvantage of being
 extremely slow. I could take out almost any enemy in a single hefty
 hit of this beast of a hammer, but then I’d be left at the mercy of
 any other enemies as I worked to lift it over my head to attack
 again. Despite the disadvantage I was doing well, carefully luring
 enemies into hallways where I could take them on one by one, acting
 as a one man Spartain Army in my personal Pass of Thermopylae. If
 things got to be too much, I could run up stairs, kill off any
 close enemies that followed and head back down to the waiting
 horde. If I got into a bind, I could use a scroll of teleportation
 to wisk myself away to a random location in the dungeon. Of course,
 this is what ended up doing me in. I teleported away from some
 enemies while at deaths door into a gauntlet of still more enemies
 and before I could move I was hit by a fireball from an otherwise
 weak and typically harmless orcish wizard. The moments leading up
 to that death were some of the most thrilling I’ve experienced in a
 game.</p>
<p><em>My Final Moments</em>: <img alt="My Final Moments" src="https://cdn-images-1.medium.com/max/3664/1*6hEdaggcmFDCg0wKjV_Y-g.png" /></p>
<p>And this leads me to the second reason I really like this
 particular game. I could have done better. I could have used an
 ability called “Berserk” to send my character into an inferno of
 adrenaline fueled rage that maybe, just maybe would have given me
 enough speed and energy to get away to a more defensible position.
 DCSS is just one in a long line of “Roguelikes” games that share
 it’s randomly generated dungeons and permanent death. The thing for
 me that sets it apart from other Roguelikes I’ve played is every
 time I die, I feel like I could have done better. I feel like if
 I’d just thought about my last move a little bit longer, or used a
 better strategy to avoid getting in such a tight spot, but I
 didn’t. My death was my fault, not due to just an unfortunate roll
 of the dice. Other rogue likes seem to spring surprises on you that
 with your limited resources are simply too weak to deal with. In
 classics of the genere like Nethack or the original rogue, people
 spend sometimes years between wins, waiting for that perfect game
 to come along.</p>
<p>DCSS keeps driving me to play again and again. It has a small
 enough complexity to be easy enough to wrap my mind around, yet a
 large enough variety to keep me coming back and trying new things.
 Big polished AAA games have their appeal and I certainly returned
 to them over the lifetime of the PS4. But then I'd find myself
 drawn back into the lofi dungeon to see if this time I might
 survive just a little while longer this time...</p>
      ]]></content>
    </item>
    
    <item>
      <title>Thoughts on consumer goods and christmas 2010</title>
      <link>https://tristanhavelick.com/consumerism/</link>
      
      <category>blog</category>
      
      <pubDate>Tue, 30 Nov 2010 17:00:00</pubDate>
      <content><![CDATA[
<p><em>[This article originally appeared on Blog Spot and was
published here on 2020-11-22]</em></p>
<p>In recent months I've come to realization that I can buy pretty
much any consumer good I really want. True, I can't go down to
cherry creek mall and buy the most expensive watch they have, but
I've never had much of a taste for luxury anyhow. I can however,
head down to the music store and buy any CD I want. Had I the
inclination, I could visit Best Buy and purchase any DVD I wanted.
The same can be said about a visit to Tattered Cover, my local
bookshop and obtain a copy of anything I desired to read. In any
case, I could probably get away with doing these things quite
often.</p>
<p>The preceding paragraph was not written out of a desire to brag.
The fact is, with very little determination and the ability to bend
(okay break) a little copyright law, or dare I say, visit your
local library you too can have similar ability even when living
hand to mouth.</p>
<p>Strange as it may seem, given the ability to own all this media
and physical goods, I have recently come to procure less and less
of it. In most cases if I want to watch a movie, I'll Tivo it, or
watch it on Netflix. If I want to listen to music, more often than
not in the pas t few months, I'll visit Pandora. Truth be told,
prior to my reunion with Pandora I'd pirated a lot of music, but
that activity has greatly slowed recently. Whenever I do want to
listen to specific music, I'll acquire it digitally, or at the very
least get a CD and immediately rip it to digital format, with the
CD itself rarely to be seen again. I also very rarely buy physical
books these days. Unless I'm reading something obscure, I almost
always read on my Kindle.</p>
<p>Yet, as I look around my apartment I see shelf after shelf of
movies I like, but rarely watch. I see bookshelves filled so much
that books are stacked in front of other books. The phenomenon
continues as I look to my kitchen, filled with gadgets rarely used,
and cookbooks rarely opened.</p>
<p>Julia (my wife) and I spent a lot of time today clearing things
out and getting rid of a lot of junk we've acquired over the years,
and although we have a lot to go, it finally feels more than just
clean-- It has some semblance of being organized. And yet, a sense
of foreboding comes over me as the day after Christmas
approaches.</p>
<p>Despite my being an atheist, Christmas is by far my favorite
holiday. I love spending time with family, eating, drinking and
talking. I love the spirit of giving and honest camaraderie. I love
to see the expressions on everyone's faces when they get something
they really wanted. I even really love the feeling I get when I
myself open a really creative and unique gift I hadn't even thought
of buying myself, or that one thing I was really hoping for.</p>
<p>That said, I have in some ways come to dread the day after
christmas. When I come home, much of the revelry has passed and I
have got a brand new batch of stuff to layer atop my existing
possessions. Its not that I don't like them, its that I really hate
storing them. I live in a small condo and really don't want to
"upgrade"my housing just to accommodate more stuff.</p>
<p>At the same time, I've come to realize of late that I get much
more enjoyment out of doing things than having things. I really
enjoyed the last couple books I read, but I enjoy discussing such
books with people almost more than reading. I enjoy listening to
music, but I most enjoy hearing new music a friend recommended, or
going to a concert (either classical or rock). Overall, I've found
that more happiness comes from gaining memories rather than
possessions. I've even seen a lot of research to back up that
proposition. On that note, I have the following suggestions to gift
givers out there:</p>
<ul>
<li>If you're going to give some kind of media give the digital kind, if the recipient is like me and is so inclined.</li>
<li>Instead of giving someone an art book, offer to visit your favorite museum with them, or buy them a membership.</li>
<li>Instead of giving someone a DVD, buy them some movie tickets and offer to join them.</li>
<li>In lieu of a CD, offer to take someone to a concert, play, musical, or symphony.</li>
<li>Rather than giving a cookbook or gadget, invite your recipient over to cook something with you or clip a few of your own favorite recipes.</li>
</ul>
<p>Sure, there are many out there who like getting stuff for
Christmas. I know when I was younger and had a severe shortage of
stuff, I would have been disappointed if my Christmas consisted of
things from the above list. Also, many times a physical gift really
is best. If you are endowed with amazing talent at creating or
finding unique gifts, keep it up. A place can always be found for
something truly heartfelt or amazing. But if your Christmas
shopping typically consists of a visit to the mall, best buy, or a
web superstore, and you can't figure out what to give to your
Wookie friend when he already owns too many combs (see <a href="https://www.youtube.com/watch?v=OSWCQ7ALEms">this video</a>) ,
give the above list a shot.</p>
      ]]></content>
    </item>
    
    <item>
      <title>How I Got My First Programming Job</title>
      <link>https://tristanhavelick.com/breaking-into-coding/</link>
      
      <category>blog</category>
      
      <pubDate>Thu, 04 Dec 2008 17:00:00</pubDate>
      <content><![CDATA[
<p><em>[This article is based on a stack overflow answer that was deleted after the site moved away from more open ended questions. I published it here on 11/21/2020]</em></p>
<p>When I was in high school, one of my teachers told us a story of when he was in college. A friend of his wanted a job as a DJ for the university's radio station so he bought a huge rock and roll encyclopedia, and carried it around everywhere he went. A few months later when a position opened, he was offered the DJ job. Everyone saw him with that book, and assumed he was an expert in subject. The thing was, he never actually read a word of the book.</p>
<p>Now, you won't get a job coding simply by carrying around a PHP and not reading it. However my teacher's story inspired me to continuously learn new technologies and to do so conspicuously, letting everyone know in both subtle and non-subtle ways what I was are learning.</p>
<p>Months after hearing this story, I was a a freshman at University, and I was very anxious to start coding professionally. I'd been coding in Atari Basic, and then (now) old versions of Visual Basic since I was 8 years old, and didn't want to wait until I graduated four years later to start making money with it. I was teaching myself HTML and (Classic) ASP on the side, and really came to like web development.</p>
<p>I wasn't very confident in my abilities at that point, and I just wanted to get some kind of a job working with computers at a company that had a development department. In that vein, I applied for a job at a local Internet Service Provider who was hiring folks to support their Dial-Up Internet service. I got the job, and I'm fairly certain it was due to the fact that I was carrying around O'reily's TCP/IP Networking book when I went to the interview and this impressed the interviewer.</p>
<p>After getting my foot in the door, instead of spending my lunch hours eating with people in the support department or alone, I'd walk up to the web development department and bug the folks there. I'd show them what I was working on for little side projects, and they'd show me what they were working on. I would hang out behind them, watching them code (they didn't seem to mind) and soon I was making suggestions when they got stuck. A while later, I'd come up and volunteer to help code things (on my own) in the evenings when they were close to a deadline (for free).</p>
<p>After a few months of this, they offered me a job in the department, when one of the other developers left.</p>
<p>So in summary:</p>
<ol>
<li>Always be learning new things, and make sure people know you are learning them. Don't just fake it like my teacher's friend.</li>
<li>Work on your own development projects. This is the most important thing. You need to be able to show people your can actually get stuff done.</li>
<li>Don't be afraid to get a non-coding job to get your foot in the door.</li>
<li>If you do (3), spend as much free time as possible working with the people in the company who actually do programming, but make sure you are providing value.</li>
</ol>
<p>Of course, this strategy wouldn't work for everyone, and wouldn't work at every company, but it can work.</p>
      ]]></content>
    </item>
    
    <item>
      <title>Underhanded SEO tricks</title>
      <link>https://tristanhavelick.com/underhanded-seo-tricks/</link>
      
      <category>blog</category>
      
      <category>seo</category>
      
      <pubDate>Wed, 13 Feb 2008 00:00:00</pubDate>
      <content><![CDATA[
<p>I’ve been doing a lot of reading of late on “Black Hat SEO”, which is basically search engine optimization that doesn’t play by search engines rules. This includes more grey area things, like scraping massive amounts of content from other sites, and re-optimizing with new keywords, to more nefarious things like blog spam. A lot of things these Black Hats are just plain creative. One such thing is the using a forged referrer back to your website on all websites you visit. ( See <a href="https://web.archive.org/web/20190402172825/http://www.nickycakes.com/fake-your-referer-get-more-traffic/">Fake Your Referer, Get More Traffic</a>  ) I’m testing this now, so if you got here by finding my site in your logs, let me know!</p>
      ]]></content>
    </item>
    
    <item>
      <title>An Economic Case for Labor Unions in a Political World</title>
      <link>https://tristanhavelick.com/an-economic-case-for-labor-unions-in-a-political-world/</link>
      
      <category>blog</category>
      
      <category>economics</category>
      
      <pubDate>Sat, 01 Dec 2007 00:00:00</pubDate>
      <content><![CDATA[
<p>Ask most western economists today, and they’ll tell you that a free market is the most efficient and fair economic system that exists. They’ll show through the laws of supply and demand that price caps cause shortages, that subsidies cause undue surpluses, that monopolies and inter-company collusion cause higher prices and lower wages for workers, and that labor unions and minimum wage laws cause higher unemployment and less efficiency in the economy as a whole.</p>
<p>Economists will typically preface such analyses with a phrase such as, “All else held equal” that simplifies their argument and allows them to talk about one thing at a time and extrapolate useful patterns. However, the real world does not exist in an economic vacuum. The way our political system works today greatly influences the economic realities in our country. Today’s Mega-corporations control vast amount of capital that can be used to fund lobbies that can greatly influence policy regarding antitrust laws, hiring practices and other such political-economic decisions. Thus, the political power of corporations can lead to artificially lower wages and higher prices than would be the case in a fully free market.</p>
<p>In an otherwise free market, labor unions typically cause artificially high wages, causing higher unemployment across each unionized industry. This means that those worker who would have had jobs in the industry at a lower pay rate move to other industries which they are not as well suited. Since they are not well suited to their second choice job, they are contributing to the economy as much as they otherwise would. Therefore, in a truly free market labor unions are unnecessary and counter productive.</p>
<p>However, with the power large employers can gain in our political world, the price of labor is already lower than it would otherwise be in a free market. Thus, there are two possible solutions to this problem: (1.) raise the wages of laborers to their natural level by restructuring the political system through campaign finance laws and lobbying reform or (2.) by allowing workers to organize and negotiate high wages as a unit. Clearly, given the existing political power already realized by corporate America, the former solution wold be difficult and timely. In the later solution, labor can be organized without the explicit help of the political system. Workers can use their collective power to raise wages without the intervention of the government, and have.</p>
<p>Labor unions (in most cases) are not raising their wages beyond what they would be in a free market, they are simply raising them to the level they would be under a truly free market. Labor unions create the same economic tension with large corporations that a large group of individual workers, acting in their own self interest create against a large market of potential employers. Unions are not the result of greed and laziness on the part of worker, but simply an economic response to balance the increased power of large politically interested companies.</p>
      ]]></content>
    </item>
    
    <item>
      <title>Back Online / Concluding Spirituality</title>
      <link>https://tristanhavelick.com/back-online-concluding-spirituality/</link>
      
      <category>blog</category>
      
      <category>spirituality</category>
      
      <category>rambling</category>
      
      <pubDate>Fri, 26 Oct 2007 00:00:00</pubDate>
      <content><![CDATA[
<p>I finally got some time to fix my blog this afternoon… (It had been broken for a long while).</p>
<p>Since I last posted, I have lost interest in spirituality reading, and thus future posts will likely be about other things. Regarding Spirituality, I still sit in pretty much the same boat I started in: I see myself as an open-minded agnostic, respecting (nearly) all spiritual disciplines for their wisdom.</p>
      ]]></content>
    </item>
    
    <item>
      <title>On Obsessions</title>
      <link>https://tristanhavelick.com/on-obsessions/</link>
      
      <category>blog</category>
      
      <category>rambling</category>
      
      <pubDate>Fri, 26 Oct 2007 00:00:00</pubDate>
      <content><![CDATA[
<p>If you’ve known me personally for a while, you’ll notice that I tend to get very interested in certain topics for 4-6 month periods. During such a period, I’ll focus nearly all of my energy in learning everything I can about that particular topic. I don’t choose these periods, it just kind of happens that way. </p>
<p>This blog was started when my interest was focused on Spirituality. During the time this blog was broken, I became interested in, and later became bored with three to five months later:</p>
<ul>
<li>
<p>Board Games – I played classic games like Mille Bornes, Othello, Cribbage and Dominoes as well as newer “German style” board games like Lost Cities. Julia (my wife) shared this interest with me. In February we went to Genghis Con, a big Gaming Convention here in Colorado and had a lot of fun. Julia was disappointed when I lost interest in board games, but I suspect I’ll come back to this one soon.</p>
</li>
<li>
<p>Entrepreneurship – If I could be paid to read about running a business, I’d be a happy man. (That isn’t to say I’m not happy as it is). Unfortunately, I tend to get really lazy when it comes to actually running a business. However, I went through a period this year where I read a ton of business books, fully intent on starting my own (non-Consulting) business. I read classics, as well as books and blogs on “Information Marketing”, running a software business etc. I had several ideas, but none of them really panned out. Looking back, its clear I was looking for a “get rich quick” plan, which I now realize can’t really work. The last book I read in this vein was “The Millionaire Next Door” which totally changed my perspective on the whole “get rich” issue and led to my next topic of interest …</p>
</li>
<li>
<p>Personal Financial Management – After reading Thomas Stanley’s “The Millionaire Mind” I realized that I could get ‘rich’, without taking a bunch of risk, and without even doing a bunch of extra work. The key is this: Live on less than you make. Simply by going out to eat less, and visiting libraries instead of bookstores etc. I realized we could become wealthy, by Tom Stanley’s definition in about four years, much sooner than I’d ever thought possible before. Around the same time, I found Dave Ramsey, the host of a radio talk show on personal finance. In line with Stanley he advocates a detailed plan that involves paying off all consumer debt, building up a big emergency fund, then putting 15% of ones income to-wards retirement, then paying off one’s house ASAP. We are essentially on this plan. Using it, we’ve paid off our car, some credit card debt, and raised an emergency fund that will cover me being unemployed for up to 6 months should I lose my job. Although I’ve stopped reading on this topic, we still live on a budget. We still plan on having our house paid off in a little over 3 years from now!</p>
</li>
<li>
<p>Programming – This is a recurring obsession that I’ve based my career on. This time I’m most interested in Artificial Intellegence related stuff.</p>
</li>
<li>
<p>Mathematics and Movies – I’m now interested in these two topics. I’ll write more on these in future posts.</p>
</li>
</ul>
<p>So, this blog will be a bit disjointed. Its probably not a good idea from a marketing standpoint, but I’m not trying to make money from this anyway</p>
      ]]></content>
    </item>
    
    <item>
      <title>Spirituality Survey</title>
      <link>https://tristanhavelick.com/spirituality-survey/</link>
      
      <category>blog</category>
      
      <category>spirituality</category>
      
      <pubDate>Fri, 27 Oct 2006 00:00:00</pubDate>
      <content><![CDATA[
<p>Tonight, I found this spirituality survey. Unlike some survey sites, this one is pretty unbiased and seems to have a wide variety of questions and answer choices. Although I think there is a lot to be learned from all the world’s religions, even the ones we consider “Mythology” now, it seems to have pegged my current spiritual state pretty well. Here are my results. How did you (my 1.2 regular readers out there) do? How does it compare with what you <em>think</em> you believe?</p>
<blockquote>
<ol>
<li>Unitarian Universalism (100%)</li>
<li>Liberal Quakers (96%)</li>
<li>Mainline to Liberal Christian Protestants (94%)</li>
<li>Mahayana Buddhism (85%)</li>
<li>Theravada Buddhism (83%)</li>
<li>Neo-Pagan (83%)</li>
<li>New Age (78%)</li>
<li>Baháʼí Faith (76%)</li>
<li>Christian Science (Church of Christ, Scientist) (72%)</li>
<li>Taoism (66%)</li>
<li>New Thought (65%)</li>
<li>Reform Judaism (64%)</li>
<li>Secular Humanism (62%)</li>
<li>Sikhism (61%)</li>
<li>Hinduism (60%)</li>
<li>Scientology (60%)</li>
<li>Jainism (59%)</li>
<li>Orthodox Quaker (52%)</li>
<li>Church of Jesus Christ of Latter-Day Saints (Mormons) (48%)</li>
<li>Mainline to Conservative Christian/Protestant (43%)</li>
<li>Jehovah’s Witness (38%)</li>
<li>Orthodox Judaism (37%)</li>
<li>Nontheist (35%)</li>
<li>Islam (31%)</li>
<li>Seventh Day Adventist (27%)</li>
<li>Eastern Orthodox (18%)</li>
<li>Roman Catholic (18%)</li>
</ol>
</blockquote>
      ]]></content>
    </item>
    
    <item>
      <title>Debunking Religion as “insurance”</title>
      <link>https://tristanhavelick.com/debunking-religion-as-insurance/</link>
      
      <category>blog</category>
      
      <category>spirituality</category>
      
      <pubDate>Tue, 24 Oct 2006 00:00:00</pubDate>
      <content><![CDATA[
<p>Surfing around today, I stumbled onto a blog on MySpace. Here is what he says:</p>
<blockquote>
<p>...</p>
<p>I've come to view Christianity this way. If i live right, do what the bible says, and die (which – face it, we all will someday) and there is no God … all i would of given up is a couple nights of partying… sex before marriage (cos you do get to have sex… all you have to do is wait…)</p>
<p>BUT…</p>
<p>If there is a God and he sent his son to die for us… and you haven't lived right. Do what the bible says you shouldn't… Who has more to lose?</p>
<p>...</p>
</blockquote>
<p>I hear this argument quite a bit, so I decided to take a minute to respond. Here is what I responded:</p>
<p>I find that sort of “Insurance” based belief to be a bit misleading. It works great if there are only two possibilities (Christianity or Nothing). But that isn't the case. Wikipeida's world religions category contains over 75 different entries, not including those in sub categories. Thus, in a purely statistical sense, by choosing Christianity, you have only a 1 in 76 chance in choosing correctly!</p>
<p>If your goal is to choose the spiritual path that will most likely help you avoid pain and suffering, you may want to look a Buddhism. Buddhism centers around focus on the present moment, and accepting what is, be it happiness suffering or whatever. Thus, the external world means little to the Buddhist. There are even Monks in Tibet who have gotten so good at being in touch with their inner energy, that they can turn off their sense of physical pain. (This is not conjecture, myth or just a story. Actual western scientists have researched this and have verified using brain scans etc, that they in fact do not feel pain unless they choose to). Thus, if the Buddhist is wrong, and a literal Jewish/Christian view is correct, I doubt it would matter in the slightest to the Buddhist if he were tortured in the depths of firey hell. He is no longer connected with physical and emotional pain, and can endure Satan’s torture as easily as you or I could tolerate a food we do not enjoy.</p>
<p>Now of course, this is pretty ridiculous. I’m not telling you to convert or anything. I am just saying that this sort of argument you've presented doesn't quite hold up. If you believe in Christianity, have faith from the depths of your heart – not as a fail-safe against suffering in the afterlife.</p>
      ]]></content>
    </item>
    
    <item>
      <title>Philosophical Questions re-emerge after seeing, The Lion King</title>
      <link>https://tristanhavelick.com/spiritual-questions-re-emerge-after-seeing-the-lion-king/</link>
      
      <category>blog</category>
      
      <category>spirituality</category>
      
      <category>rambling</category>
      
      <pubDate>Mon, 23 Oct 2006 00:00:00</pubDate>
      <content><![CDATA[
<p>Last Friday, my family and I saw the stage adaptation of Disney’s <em>The Lion King</em>. It reminded me of an important lesson. Of late I had taken on the philosophy of staying focused on the present moment, and not dwelling in the past or fearing the future. Although a valuable outlook, <em>The Lion King</em> reminded me that one should not focus on the present at the expense of responsibility created in the past.</p>
      ]]></content>
    </item>
    
    <item>
      <title>Islamic Philosophy through Sufism</title>
      <link>https://tristanhavelick.com/islamic-philosophy-through-sufism/</link>
      
      <category>blog</category>
      
      <category>spirituality</category>
      
      <category>philosophy</category>
      
      <pubDate>Mon, 23 Oct 2006 00:00:00</pubDate>
      <content><![CDATA[
<p>Last week, when I walked into my local bookstore, they had a display paying homage to this being the Islamic Holy month of Ramadan. Seeing this, I thought it would be prudent to honor it by reading up on Islamic Mysticism, as seen by the Sufis. So I picked up The Way of the Sufi (Penguin Arkana).</p>
<p>Although the book was a valuable read, and at times very inthrawling, it was also quite difficult to proccess. Part of Sufism states that the right spiritual path is dependent on time and location. Thus, teachings that apply to one locality at one time, do not apply in another time or place. Therefore I was reading something that was telling me again and again that it was not applicable to me. </p>
<p>Although it was frustrating, I found the Sufis did (do) exhibit quite a bit of true wisdom. Their general philosophy of education as described above is actually quite intriguing in and of itself. It reminds me that applying ancient texts like the Bible, the Bhagavad Gita, Homer’s works, the Koran etc. Are never going to be as applicable as they were to the contemporaries of those works. I would argue, as I believe the Sufi’s certainly would that such ancient texts are not devoid of meaning outside their original contexts, just that they should be taken with a grain of salt.</p>
<p>The Sufis also make extensive use of parable and poetry, often meant to misdirect the reader/student to learn something he doesn’t necessarily expect or even desire, while at the same time something that student <strong>needs</strong> to learn. This principle is well illustrated in a story I’ll attempt to paraphrase:</p>
<p><strong>The Happiest Man in the World</strong></p>
<p>A young man went to a Sufi teacher and asked him, “What do I need to do to attain true happiness? ”. The master responded that the questioner should seek out the happiest man in the world and ask for his shirt. Thus he would attain true happiness. </p>
<p>Eager to find the answer, the young man packed his bags and went on a journey to find the happiest man in the world. As he arrived in a new town, he asked the townsfolk who was the happiest person they knew. Each time he would meet someone, they always said “I know of a man who is much happier than I. He lives in such and such a place; seek him out”. For 40 years the man searched the world from town to town, from country, seeking ever happier and happier men.</p>
<p>Finally, the man’s tiring travels led him to a very old man, living alone atop a high mountain. Exhausted he asked the old man: “Are you the happiest man in the world?” The old man, smiled and replied that he could not think of anyone who was happier than he. Relived that he had reached the end of Journey and was near attainment of what he had sought all these many years he asked the old one, “Please, I was instructed to ask for your shirt so that I may be as happy as you are”, the man requested, “May I please have your shirt?”</p>
<p>At the question, the old man laughed a large and hearty laugh saying, “I’m sorry son, but I do not have a shirt. Can you not see that my chest is bare?”</p>
<p>Puzzled, the younger man studied elder. Not only was he not wearing a shirt but looking under the old one’s long beard and wrinkled, leather-like skin was the face of the the Sufi teacher who first sent him on the quest. “Why!, Why”, the man cried, “why did you send me on this quest, when I had known you all those years ago?”</p>
<p>The old man smiled a wide grin and said, “Because that is what you needed at the time. Now you are ready to learn”.</p>
      ]]></content>
    </item>
    
    <item>
      <title>Sunday Quote of Wisdom II - A look into rationalist atheism.</title>
      <link>https://tristanhavelick.com/sunday-quote-of-wisdom-ii-a-look-into-rationalist-atheism/</link>
      
      <category>blog</category>
      
      <category>philosophy</category>
      
      <category>sunday quote of wisdom</category>
      
      <pubDate>Mon, 23 Oct 2006 00:00:00</pubDate>
      <content><![CDATA[
<p>In order to maintain a true balance in my quest for spiritual wisdom, I’ve decided to take a while to investigate the counter-argument. Thus, today I started reading: Why I Am Not a Christian: And Other Essays on Religion and Related Subjects. So far I am finding that Russell presents very good arguments against the formalized dogma and religious hierarchy, such as that in the Catholic church, or Tibetan Buddhism. </p>
<p>That said, his arguments don’t seem to hold up against less dogmatic spirituality as presented in Buddhism by Tich Naht Hanh (in my brief exposure to him) Eckhart Tolle and Quakerism, that focus on an individual connection with “the infinite” be it God, the Tao or whatever you’d like to call it. </p>
<p>Still, I think there is a lot Russell and his spiritual adversaries can agree on. This quote struck me as such a case:</p>
<blockquote>
<p>The good life is one inspired by love and guided by knowledge.</p>
</blockquote>
<p>Although many spiritual teachers I have read seem to reject knowledge as part of “enlightenment”, reading deeper, they do see knowledge as a valued asset for one’s day to day life.</p>
<p>Russell brings up the point that religions tend to open up and become more mild in free, open societies. What he may not realize is that perhaps that openness is part of the human race’s spiritual argument. Yes, Dogmatic, closed, judgemental religion probably isn’t good for society. It perpetuates situations like Europe saw in the Middle Ages, and what parts of the middle east are experiencing today. On the other hand, it doesn’t necessarily follow that all spiritual beliefs are useless.</p>
      ]]></content>
    </item>
    
    <item>
      <title>The Tao Te Ching For Programmers</title>
      <link>https://tristanhavelick.com/the-tao-te-ching-for-programmers/</link>
      
      <category>blog</category>
      
      <category>spirituality</category>
      
      <category>philosophy</category>
      
      <category>programming</category>
      
      <pubDate>Thu, 12 Oct 2006 00:00:00</pubDate>
      <content><![CDATA[
<p>Reading the Tao, several of it’s short chapters seemed to speak to me as a programmer. I’ll quote some of them here and give my thoughts.</p>
<p><strong>Chapter 4</strong></p>
<blockquote>
<p>The Tao is like a well:</p>
<p>used but never used up.</p>
<p>It is like the eternal void:</p>
<p>filled with infinite possibilities.
It is hidden but always present.</p>
<p>I don’t know who gave birth to it.</p>
<p>It is older than God.</p>
</blockquote>
<p>In this chapter, the Tao reminds me of the ideal code behind a software application. Its code can be used again and again, as many times as needed. It’s objects and classes can be used in infinite combinations, making for very flexible software. The users can’t see the code, and may not even know its there, but it is.</p>
<p>The last two lines are a little harder to fit into this perspective. Perhaps this is referring to some of the old BASIC and FORTRAN programs my grandfather wrote in the 70’s and 80’s ~~- Powerful and flexible for their time, yet impossible to maintain :~~)</p>
<p><strong>Chapter 63</strong></p>
<blockquote>
<p>Act without doing;</p>
<p>work without effort.</p>
<p>Think of the small as large</p>
<p>and the few as many.</p>
<p>Confront the difficult</p>
<p>while it is still easy;</p>
<p>accomplish the great task</p>
<p>by a series of small acts.</p>
<p>The Master never reaches for the great;</p>
<p>thus she achieves greatness.</p>
<p>When she runs into a difficulty,</p>
<p>she stops and gives herself to it.</p>
<p>She doesn’t cling to her own comfort;</p>
<p>thus problems are no problem for her.</p>
</blockquote>
<p>This chapter describes the ideal attitude for a programmer. In my mind, this passage speaks for itself. I’ll leave the commentary to you.</p>
<p><strong>Chapter 64</strong></p>
<blockquote>
<p>What is rooted is easy to nourish.</p>
<p>What is recent is easy to correct.</p>
<p>What is brittle is easy to break.</p>
<p>What is small is easy to scatter.</p>
<p>Prevent trouble before it arises.</p>
<p>Put things in order before they exist.</p>
<p>The giant pine tree</p>
<p>grows from a tiny sprout.</p>
<p>The journey of a thousand miles</p>
<p>starts from beneath your feet.</p>
<p>Rushing into action, you fail.</p>
<p>Trying to grasp things, you lose them.</p>
<p>Forcing a project to completion,</p>
<p>you ruin what was almost ripe.</p>
<p>Therefore the Master takes action</p>
<p>by letting things take their course.</p>
<p>He remains as calm</p>
<p>at the end as at the beginning.</p>
<p>He has nothing,</p>
<p>thus has nothing to lose.</p>
<p>What he desires is non-desire;</p>
<p>what he learns is to unlearn.</p>
<p>He simply reminds people</p>
<p>of who they have always been.</p>
<p>He cares about nothing but the Tao.</p>
<p>Thus he can care for all things.</p>
</blockquote>
<p>This passage brings me back to the Pragmatic Programmers who detailed such practices as</p>
<ul>
<li>Care About Your Craft</li>
<li>Think! About Your Work</li>
<li>Don’t Panic When Debugging</li>
<li>Remember the Big Picture</li>
<li>Abstractions Live Longer than Details</li>
</ul>
<p>and just about every other chapter in their book, seems to speak this chapter of the Tao.</p>
<p><strong>Overall Thoughts</strong></p>
<p>A word of advice for all my programmer readers out there (I think there might be 2 of you): As a first step, put away that book on Ajax, Ruby, Haskell, the upcoming .Net Framework or whatever the latest language is and pick up some books that will help you become a better programmer in general. Second, at the same time, do not forget that programming does not exist in isolation. Be sure to expand your mind and spirit to other ideas outside of the day to day grind. I’ll end with a fitting stanza from Chapter 12 of the Tao Te Ching:</p>
<blockquote>
<p>The Master observes the world
but trusts his inner vision.
He allows things to come and go.
His heart is open as the sky.</p>
</blockquote>
<p>Quotes taken from Stephen Mitchell’s version of Lao Tzu’s Tao te Ching. (c) 1988.</p>
      ]]></content>
    </item>
    
    <item>
      <title>The Tao Te Ching</title>
      <link>https://tristanhavelick.com/the-tao-te-ching/</link>
      
      <category>blog</category>
      
      <category>spirituality</category>
      
      <category>philosophy</category>
      
      <pubDate>Mon, 09 Oct 2006 00:00:00</pubDate>
      <content><![CDATA[
<p>I’ve just finsihed my second, slower read of Lau Tzu’s Tao Te Ching as translated by Stephen Mitchell. While pondering this short but rich (as in cheesecake) book, I thought of many things that would make great blog entries. I couldn’t decide on just one, so here is a preview of blog posts to come regarding and/or inspired by this ancient writing:</p>
<ul>
<li><a href="http://www.tristanhavelick.com/the-tao-te-ching-for-programmers/">The Tao Te Ching for programmers</a> (Not to be confused with the Tao of Programming)</li>
<li>A time for this and a time for that – One stanza of the Tao Te Ching that seems strangely similar to a book of the bible (and, by proxy a classic rock song)</li>
<li>Is there a role for the “enlightend” in Politics?</li>
<li>Lao Tzu – Adam Smith from 500 BC?</li>
<li>A Quick Summary of the Tao – Not what you expect.</li>
</ul>
<p>Meanwhile, I’ll be starting on my next book. It’s back to the western world for a while with Holy Silence: The Gift Of Quaker Spirituality</p>
      ]]></content>
    </item>
    
    <item>
      <title>Sunday Quote of Wisdom I</title>
      <link>https://tristanhavelick.com/sunday-quote-of-wisdom-i/</link>
      
      <category>blog</category>
      
      <category>philosophy</category>
      
      <category>sunday quote of wisdom</category>
      
      <pubDate>Sun, 08 Oct 2006 00:00:00</pubDate>
      <content><![CDATA[
<blockquote>
<p>On the mountains of truth you can never climb in vain: either you will reach a point higher up today, or you will be training your powers so that you will be able to climb higher tomorrow. – <strong>Nietzsche</strong></p>
</blockquote>
<p>Whether in science or in spirit, this rings ture. So long as we keep an open mind and keep pressing forward, we come closer to truth.</p>
<p>This weeks image is an artists rendering of the mountains of Saturn’s moon, Titan.</p>
<p>Note that the Sunday Quote of Wisdom is a shameless ripoff of my sister’s <a href="https://web.archive.org/web/20101230041145/http://scienceblogs.com/chaoticutopia/2006/10/friday_fractal_xxi.php">Friday Fractal</a> at her blog, <a href="https://web.archive.org/web/20110101181627/http://scienceblogs.com/chaoticutopia">Chaotic Utopia</a>.</p>
      ]]></content>
    </item>
    
    <item>
      <title>A Journey Into Christian Mysticism</title>
      <link>https://tristanhavelick.com/a-journey-into-christian-mysticism/</link>
      
      <category>blog</category>
      
      <category>spirituality</category>
      
      <pubDate>Fri, 06 Oct 2006 00:00:00</pubDate>
      <content><![CDATA[
<p>Last week, I attended the rehearsal dinner for the wedding of some friends of ours. We ended up sitting with our friend’s priest and his wife. At first, my mind was a little conflicted with the prospect of spending a meal talking to a Christian Priest. On the one hand, I had had some bad experiences with Christianity as a child, and it had turned me away from the Chruch and spirituality in general for many years. On the other hand, I’d been doing a lot of spiritual reading of late and was eager to get an enlightened Christian perspective. I set my prejudices aside and greeted the priest with an open mind.</p>
<p>Father Stace turned out to be quite wise and charismatic. We discussed his life as a Priest in training, my dabbling in Buddhism, Hinduism and “New Age” readings, his blog, movies and more. I mentioned that I had attempted to read the Bible a few times and struggled with its immense length. He recommend I start with a few books of the New Testament first, which I plan to do. He could somehow tell that I was interested in the more spiritual side of Christianity and recommended I read, The Mountain of Silence: A Search for Orthodox Spirituality. I wasn’t really enjoying the other book I was reading at the time, so the next day I went out and bought it. I’m quite glad I did.</p>
<p>In some of my other studies I had heard about Christian Mysticism and that it had some similarities with East Asian spiritual paths, but when I researched it online everything was a bit over my head from a theological perspective. The Mountain of Silence was a great change. Written from the perspective of a western academic who had studied other spiritual ideas than Christianity, it was a great change of pace. I won’t try to summarize the book, as I’m sure you can get an idea from Amazon, but here are some ideas that seemed to strike a chord with me:</p>
<ul>
<li>
<p>The Athonite monks recommend a practice of “Ceaseless Prayer” in which a novice monk will repeat the Jesus Prayer (something like “Lord Jesus Christ, Have Mercy on me, a sinner”) until it persisted constantly in the background behind the thought of worldly concerns. This reminded me of the Buddhist/New Age concepts of meditation involving stopping thought. I imagine that while repeating the prayer, one does not have the time for worldly thoughts, and enters a very meditative-like state. It reminds me of Tolle’s idea that useful thoughts will emerge “from the stillness” in a person who focuses solely on the present moment. The Greek Orthodox concept of Logosimoi also rang of this.</p>
</li>
<li>
<p>The concept of Hell outlined by Maximos and the other monks from the Mountain seems much plausible than the fire and brimstone picture we get from Christian Fundamentalism and Dante. First, it is not simply unending torture. The monk tells several stories of sinful folk ascending to heaven after death, due to the prayer’s of monks and others on the worldly plane. He also explains that the real suffering in Hell comes from being cut off from God, not necessarily physical pain know here on earth.</p>
</li>
<li>
<p>Suffering as a doorway to God. This reminded me so much of Tich Naht Hanh, the Buddhist monk and author, that several times I had to check the title of the book just to be sure of what I was reading.</p>
</li>
<li>
<p>Spiritual insight as a “Scientific” practice. Although any practicing scientist would scoff, Father Maximos proposed that spiritual growth is a somewhat scientific process. He said that for spiritual pursuits we must use the proper tools to investigate: Prayer, studying the scriptures, Fasting etc. I would add Meditation and perhaps even rational reductionism ala Hobbes and Descartes to this list. Now, before any of you scientists jump down my throat, I am aware that most things of the spiritual world won’t hold up to a strictly objective scientific method, but taking a more personal/subjective perspective it makes sense.</p>
</li>
</ul>
<p>Through reading The Mountain of Silence, I've gained a new respect for the Jewish/Christian tradition. Although I don’t plan on rushing out to attend church every Sunday, Christianity will no longer be absent from my reading lists.</p>
<p>The wider my breadth of spiritual knowledge and wisdom becomes, the more I realize that all truly enlightened people are all talking about the same things. Terrorism, War and Famine might be all things of the past if people learned from their truly enlightened spiritual guides rather than blindly following interpretations of “Holy” texts that happen to meet their worldly wishes at the moment.</p>
      ]]></content>
    </item>
    
    <item>
      <title>The Dao of Programming</title>
      <link>https://tristanhavelick.com/the-dao-of-programming/</link>
      
      <category>blog</category>
      
      <category>spirituality</category>
      
      <category>programming</category>
      
      <pubDate>Fri, 06 Oct 2006 00:00:00</pubDate>
      <content><![CDATA[
<p>If anyone happens to look at my “Currently reading” list on the left, you’ll see I’m reading the “Tao Te Ching”. If you are are programmer, you can get a shorter, and more specialized work based on it, <a href="http://www.canonical.org/~kragen/tao-of-programming.html">The Tao of Programming</a></p>
<p>It’s hilarious in that “funny because its true” way.</p>
      ]]></content>
    </item>
    
  </channel>
</rss>