<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title></title>
    <description>This is my blog. Enjoy.
</description>
    <link>/</link>
    <atom:link href="/feed.xml" rel="self" type="application/rss+xml"/>
    <pubDate>Thu, 22 Oct 2026 18:57:05 +0000</pubDate>
    <lastBuildDate>Thu, 22 Oct 2026 18:57:05 +0000</lastBuildDate>
    <generator>Jekyll v4.4.1</generator>
    
      <item>
        <title>Effective Caching for Yarn, Bundler, and the Rails Asset Pipeline in CircleCI</title>
        <description>&lt;blockquote&gt;
  &lt;p&gt;This blog post was originally posted on the Voom Flights blog, &lt;a href=&quot;https://blog.voom.flights/effective-caching-for-yarn-bundler-and-the-rails-asset-pipeline-in-circleci-5ba60c22c983&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Phil Karlton said: “There are two hard problems in computer science: cache invalidation, naming things, and off-by-1 errors.”&lt;/p&gt;

&lt;p&gt;Well, maybe he didn’t say exact that, but it’s a &lt;a href=&quot;https://martinfowler.com/bliki/TwoHardThings.html&quot;&gt;decent joke&lt;/a&gt; anyway.&lt;/p&gt;

&lt;p&gt;In this article I’ll talk about the first of those problems, caching. And in doing so effectively, how we reduced our CircleCI build times by 36%. For those of you raising your eyebrows and saying “36% off of what?!”, I’ll direct your eyeballs to the graph below for some absolute numbers.
Average speed up of 36%! Total reduction of 19 minutes per workflow.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/effective_caching/build_times.png&quot; alt=&quot;Build Times&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Amazing, right?!&lt;/p&gt;

&lt;p&gt;Now I’ll show you how. But first, a note on all of the code snippets in this blog post!&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;All of the code snippets I’m sharing are &lt;a href=&quot;https://circleci.com/docs/2.0/configuration-reference/#commands-requires-version-21&quot;&gt;CircleCI commands&lt;/a&gt;, so they can be copy and pasted easily if you’re using CircleCI config version 2.1.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2 id=&quot;yarn-caching&quot;&gt;Yarn Caching&lt;/h2&gt;

&lt;p&gt;The important thing to do is to know when to invalidate caches. In this case, we know that the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;node_modules&lt;/code&gt; directory will update if and only if our &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;yarn.lock&lt;/code&gt; file updates. So yarn is actually pretty easy!&lt;/p&gt;

&lt;noscript&gt;&lt;pre&gt;yarn_install:
  description: Yarn Install
  steps:
    - restore_cache:
        keys:
          - v1-yarn-{{ arch }}-{{ checksum &amp;quot;~/voom/yarn.lock&amp;quot; }}
          - v1-yarn-{{ arch }}-

    - run:
        name: &amp;quot;Yarn Install (Note: Bump cache prefix if this step takes over 30 seconds.)&amp;quot;
        command: cd ~/voom; yarn install

    - save_cache:
        key: v1-yarn-{{ arch }}-{{ checksum &amp;quot;~/voom/yarn.lock&amp;quot; }}
        paths:
          - ~/voom/node_modules&lt;/pre&gt;&lt;/noscript&gt;
&lt;script src=&quot;https://gist.github.com/hjhart/1f421479e56f58fa5959dda01ec36ffe.js?file=circle_ci.yarn_install.config.yml&quot;&gt; &lt;/script&gt;

&lt;h2 id=&quot;bundler-caching&quot;&gt;Bundler Caching&lt;/h2&gt;

&lt;p&gt;Bundler is similar too. The &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Gemfile.lock&lt;/code&gt; file is explicit with dependencies, so only when it changes do we need to invalidate the cache and generate a new one.&lt;/p&gt;

&lt;noscript&gt;&lt;pre&gt;bundle_install:
  description: Bundle Install
  steps:
    - restore_cache:
        keys:
          - bundle-{{ arch }}-{{ checksum &amp;quot;~/voom/Gemfile.lock&amp;quot; }}
          - bundle-{{ arch }}-

    - run:
        name: Install Bundler
        command: gem install bundler -v 1.17.3

    - run:
        name: Bundle Install
        command: cd ~/voom/; bundle check || bundle install --without production --without staging

    - save_cache:
        key: bundle-{{ arch }}-{{ checksum &amp;quot;~/voom/Gemfile.lock&amp;quot; }}
        paths:
          - ~/voom/vendor/bundle
&lt;/pre&gt;&lt;/noscript&gt;
&lt;script src=&quot;https://gist.github.com/hjhart/6a0fe4acd5eaf1b728e83ae7e4edbf2b.js?file=circleci.bundle_install.yml&quot;&gt; &lt;/script&gt;

&lt;p&gt;You’ll notice that there are two keys within the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;restore_cache&lt;/code&gt; step. The first key, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;bundle--&lt;/code&gt; will always match if the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Gemfile.lock&lt;/code&gt; matches.&lt;/p&gt;

&lt;p&gt;But what if the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Gemfile.lock&lt;/code&gt; changes?&lt;/p&gt;

&lt;p&gt;Well, it will fall back to the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;bundle--&lt;/code&gt; key, which was created the same time the first &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;bundle--&lt;/code&gt; was saved.&lt;/p&gt;

&lt;p&gt;Caches are immutable in CircleCI, so once you create them you will not create them again.&lt;/p&gt;

&lt;p&gt;Which presents us with a challenging caching scenario. Let’s say that I run this job in January of this year. Then, in six months, when I run this job again and the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;bundle-&lt;/code&gt; key matches, that means the cache is six months old. That might not be an improvement!&lt;/p&gt;

&lt;p&gt;So it is good to invalidate those caches every so often. So, let’s manipulate that key to invalidate every month or so.&lt;/p&gt;

&lt;p&gt;This allows us to fall back to a cache if the initial key doesn’t match.&lt;/p&gt;

&lt;noscript&gt;&lt;pre&gt;bundle_install:
  description: Bundle Install
  steps:
    - run:
        name: Expire cache key every month
        command: date &amp;#39;+%Y %m&amp;#39; &amp;gt; ~/voom/dependency_checksum

    - restore_cache:
        keys:
          - v1-bundle-{{ arch }}-{{ checksum &amp;quot;~/voom/dependency_checksum&amp;quot; }}-{{ checksum &amp;quot;~/voom/Gemfile.lock&amp;quot; }}
          - v1-bundle-{{ arch }}-{{ checksum &amp;quot;~/voom/dependency_checksum&amp;quot; }}
          - v1-bundle-{{ arch }}-

    - run:
        name: Install Bundler
        command: gem install bundler -v 1.17.3

    - run:
        name: Bundle Install
        command: cd ~/voom/; bundle check || bundle install --frozen --without production --without staging

    - save_cache:
        key: v1-bundle-{{ arch }}-{{ checksum &amp;quot;~/voom/dependency_checksum&amp;quot; }}-{{ checksum &amp;quot;~/voom/Gemfile.lock&amp;quot; }}
        paths:
          - ~/voom/vendor/bundle
&lt;/pre&gt;&lt;/noscript&gt;
&lt;script src=&quot;https://gist.github.com/hjhart/d6162db7802021e4d04b10c9b3adf0e4.js?file=better_circleci.bundle_install.yml&quot;&gt; &lt;/script&gt;

&lt;p&gt;Okay, this looks better.&lt;/p&gt;

&lt;p&gt;Now, if our &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Gemfile.lock&lt;/code&gt; changes at most we will be falling back to a cache generated at the beginning of the month, so instead of a 6 month old cache, we will get a 1 month old cache.&lt;/p&gt;

&lt;p&gt;You can tighten or loosen the time-based invalidation based on what you prefer. The first job where the cache is invalidated will be slow, and you should expect each subsequent build to be fast after that.&lt;/p&gt;

&lt;p&gt;At this point, I need to point out a huge time waster that I discovered in my journey: &lt;strong&gt;If you are using checksum for cache invalidation, make sure the file does not change in between &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;restore_cache&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;save_cache&lt;/code&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;For instance, I was running &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;bundle install&lt;/code&gt; with a different version of bundler inside of CircleCI. That would update the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Gemfile.lock&lt;/code&gt; to change the version of bundler used.&lt;/p&gt;

&lt;p&gt;That means that the checksum when saving the cache was based off a file that was never checked into version control.&lt;/p&gt;

&lt;p&gt;So that’s why we are using bundlers &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--frozen&lt;/code&gt; flag during bundles to make sure that doesn’t happen (again).&lt;/p&gt;

&lt;h2 id=&quot;asset-pipeline-and-webpacker-caching&quot;&gt;Asset Pipeline and Webpacker Caching&lt;/h2&gt;

&lt;p&gt;We currently use both sprockets and webpacker to generate our assets. Eventually, we will migrate all of our assets to webpacker. In the meantime, this is what it looks like to cache both:&lt;/p&gt;

&lt;noscript&gt;&lt;pre&gt;precompile_assets:
  description: Precompile Rails Assets
  steps:
    - run:
        name: Set up Cache Key
        command: find ~/voom/app/javascript ~/voom/app/assets -type f -exec md5 -q {} \; &amp;gt; ~/voom/dependency_checksum

    - restore_cache:
        keys:
          - v3-assets-{{ arch }}-{{ .Branch }}-{{ checksum &amp;quot;~/voom/dependency_checksum&amp;quot; }}
          - v3-assets-{{ arch }}-{{ .Branch }}
          - v3-assets-{{ arch }}

    - run:
        name: &amp;quot;Precompile assets (Note: Bump the cache prefix if this step takes over 20 seconds)&amp;quot;
        command: ~/voom/bin/rails assets:precompile assets:clean

    - save_cache:
        key: v3-assets-{{ arch }}-{{ .Branch }}-{{ checksum &amp;quot;~/voom/dependency_checksum&amp;quot; }}
        paths:
          - ~/voom/public/assets
          - ~/voom/public/packs-test
          - ~/voom/public/packs
          - ~/voom/.sass-cache
          - ~/voom/tmp/cache/assets
          - ~/voom/tmp/cache/webpacker&lt;/pre&gt;&lt;/noscript&gt;
&lt;script src=&quot;https://gist.github.com/hjhart/a33d677da341bc89ab0b1de1d8aac159.js?file=rails_assets.config.yml&quot;&gt; &lt;/script&gt;

&lt;p&gt;Here is another strategy for cache invalidation:&lt;/p&gt;

&lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;find ~/voom/app/javascript ~/voom/app/assets -type f -exec md5 -q {} \; &amp;gt; ~/voom/dependency_checksum&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;What it says is: If any file within these directories (&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;~/voom/app/javascript&lt;/code&gt; or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;~/voom/app/assets&lt;/code&gt;) then let’s generate a new cache.&lt;/p&gt;

&lt;p&gt;I suspect there are holes in this cache key, like, if a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;yarn.lock&lt;/code&gt; file changes potentially it should invalidate the cache. And since caching is hard, and I don’t really want to think too hard about it, I like to add the note to bump the cache when things get too slow (with a threshold, so anyone can bump the cache prefix).&lt;/p&gt;

&lt;h2 id=&quot;bonus-macos-homebrew-caching&quot;&gt;Bonus: MacOS Homebrew caching&lt;/h2&gt;

&lt;p&gt;I’m going to post this one here because it took about a minute off of each macOS build for me, and it is working great. You’ve seen the strategies already, so I won’t go into them:&lt;/p&gt;

&lt;noscript&gt;&lt;pre&gt;update_homebrew_formula:
  description: Pulls in new homebrew formula and caches them
  steps:
    - run:
        name: Set up Cache Key
        command: date &amp;#39;+%Y %m %d&amp;#39; &amp;gt; ~/voom/dependency_checksum

    - restore_cache:
        keys:
          - v3-homebrew-{{ .Branch }}-{{ checksum &amp;quot;~/voom/dependency_checksum&amp;quot; }}
          - v3-homebrew-{{ .Branch }}

    - run:
        name: Update Homebrew formulas
        command: brew update

    - save_cache:
        key: v3-homebrew-{{ .Branch }}-{{ checksum &amp;quot;~/voom/dependency_checksum&amp;quot; }}
        paths:
          - /usr/local/Homebrew&lt;/pre&gt;&lt;/noscript&gt;
&lt;script src=&quot;https://gist.github.com/hjhart/ec8d2484f19763dc22a73064a06308f0.js?file=homebrew.config.yml&quot;&gt; &lt;/script&gt;

&lt;h2 id=&quot;wrapping-up&quot;&gt;Wrapping Up&lt;/h2&gt;

&lt;p&gt;Well, we have come a long way, but we still have a lot to go. Cocoapod installation still takes 3 minutes. xCode building takes about 5 minutes. We stand to gain a lot from a better caching strategy!&lt;/p&gt;

&lt;p&gt;Please reach out to anyone on the Voom engineering team if this article helped, or if you’ve found some other strategies that work well for you. Making CI faster means we can ship better features, faster!&lt;/p&gt;
</description>
        <pubDate>Thu, 20 Jun 2019 02:21:16 +0000</pubDate>
        <link>/2019/06/20/effective-caching-for-yarn.html</link>
        <guid isPermaLink="true">/2019/06/20/effective-caching-for-yarn.html</guid>
        
        
      </item>
    
      <item>
        <title>Our Team Workstation at Voom: Continuous Improvement</title>
        <description>&lt;blockquote&gt;
  &lt;p&gt;This blog post was originally posted on the Voom Flights blog, &lt;a href=&quot;https://blog.voom.flights/our-team-workstation-at-voom-continuous-improvement-a1cf35ec1a43&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Having a standardized workstation on our pairing machines allows us to set a baseline for the tooling at Voom. By allowing any engineer on the team to make changes to that baseline, we empower our team to contribute improvements, which allows us to ship code faster. When you have complete control over your workstation tooling, you no longer feel limited to using “someone else’s machine” – you are now contributing to the team’s workstation.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/continuous_improvement.jpg&quot; alt=&quot;Typing!&quot; /&gt;&lt;/p&gt;

&lt;p&gt;The importance of a shared workstation comes from pairing every day and rotating machines often. No &lt;em&gt;one&lt;/em&gt; engineering workstation is owned solely by &lt;em&gt;one&lt;/em&gt; engineer at the office. This makes having a comfortable and familiar and nearly identical setup a requirement for a productive team.&lt;/p&gt;

&lt;p&gt;At Voom, we have a fairly standard Ruby on Rails development set up on macOS. Alongside the web app, we are developing a native iOS app in react-native. Each workstation is identical to reduce surprises and inefficiencies, and to allow engineers to share fixes to common pitfalls when they encounter them. Having a tool that everybody knows how to use, troubleshoot, customize, and extend is important to iterating on our team’s workstation. Enter &lt;a href=&quot;https://github.com/voomflights/workstation-setup&quot;&gt;voomflights/workstation-setup&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/workstation_setup.gif&quot; alt=&quot;A single run of Voom’s workstation setup&quot; /&gt;&lt;/p&gt;

&lt;h2 id=&quot;an-introduction-to-our-tool&quot;&gt;An Introduction to Our Tool&lt;/h2&gt;

&lt;p&gt;The workstation-setup tool is a series of bash scripts that allow a team to manage their workstations in a single git repository, using a language that is familiar to veterans, easy to learn for newcomers, and quick to troubleshoot.&lt;/p&gt;

&lt;p&gt;Want to add an alias? Add it to our common alias file that gets copied over every run!&lt;/p&gt;

&lt;p&gt;Want to install the newest version of Slack? Add it to the list of applications we install!&lt;/p&gt;

&lt;p&gt;Want to install a new plugin in Sublime Text? Add it to the version-controlled json preferences file!&lt;/p&gt;

&lt;p&gt;Want to enable another bash_it plugin, alias, or completion? Simple!&lt;/p&gt;

&lt;p&gt;Want to tweak your shell prompt? A simple change to a single file will customize and update the next time you open a shell.&lt;/p&gt;

&lt;h2 id=&quot;understanding-the-goals-of-the-tool&quot;&gt;Understanding the Goals of the Tool&lt;/h2&gt;

&lt;p&gt;The tool is fairly opinionated about the environment and gives the user recommendations on how to do things and what the standard setup should be. Some of these things I don’t agree with, but most are useful, and in an environment as flexible as your workspace, it’s good to have a bit of structure. I’ll give you a bit of background as to what we at Voom like, and what we’ve changed.&lt;/p&gt;

&lt;h2 id=&quot;what-workstation-setup-does-right&quot;&gt;What workstation-setup Does Right&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;Installs homebrew and homebrew cask&lt;/li&gt;
  &lt;li&gt;Installs popular text editors, code environments, and data stores — Sublime Text, rbenv, ruby 2.5.1, bundler, postgresql, redis&lt;/li&gt;
  &lt;li&gt;Installs useful applications for development — ShiftIt, KeyCastr, Dash, FlyCut, Postman, MacDown, Slack&lt;/li&gt;
  &lt;li&gt;Installs &lt;a href=&quot;https://github.com/Bash-it/bash-it&quot;&gt;bash_it&lt;/a&gt;, a popular shell, and customizes the prompt to assist in git pairing tools.&lt;/li&gt;
  &lt;li&gt;Makes macOS “awesome” — faster key repeat rates, hide / show dock, pins Chrome and iTerm to the dock, customizes the clock in the menu bar&lt;/li&gt;
  &lt;li&gt;Installs custom scripts you want &lt;a href=&quot;https://github.com/pivotal/workstation-setup/tree/master/scripts/opt-in&quot;&gt;opt-in&lt;/a&gt; to, designer tools, docker tools, golang dev tools&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;vooms-modifications-to-suit-our-needs&quot;&gt;Voom’s Modifications to Suit Our Needs&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;Install our currently used version of ruby, node, and any dependencies for the Voom web app or iOS app&lt;/li&gt;
  &lt;li&gt;Checked in our sublime preferences json file, allowing us to share settings and installed plugins&lt;/li&gt;
  &lt;li&gt;There seems to be an aversion to running the workstation setup repeatedly, like you’d want to do if you’re testing a new change. We’ve adjusted that on our fork, which we will address in another post.&lt;/li&gt;
  &lt;li&gt;Added a custom background to our workstations&lt;/li&gt;
  &lt;li&gt;No longer install IDEs that we don’t use (Jetbrains, emacs, Atom)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;From a philosophical standpoint, when something goes wrong that is environment specific on a workstation, one pair can diagnose and repair the problem, then commit and push the fix. During standup or in Slack, we can notify everyone to update and run the workstation setup — thereby avoiding a problem that could be affecting every computer and wasting everyone’s time. At this point, we are not automatically pushing updates to computers — we want the updates to be “opt-in” as well as to adhere to the &lt;a href=&quot;https://en.wikipedia.org/wiki/Principle_of_least_astonishment&quot;&gt;principle of least surprise&lt;/a&gt;. This follows the same pattern as security updates, or package management systems like apt.&lt;/p&gt;

&lt;h2 id=&quot;how-to-iterate-with-your-team&quot;&gt;How to Iterate With Your Team&lt;/h2&gt;

&lt;p&gt;Establish a mutual agreement with your team so that when changes are made to the workstations, you let people know the next day at standup! Overriding commonly used keyboard shortcuts at an operating system level could confuse your fellow coworkers. Make sure you understand the implications of the changes you’re making, and communicate those to your coworkers.&lt;/p&gt;

&lt;p&gt;Better yet, set up a system of pull requests where at least one other pair needs to agree to the changes you’ve made before accepting. Don’t be afraid to make mistakes and revert those changes if unexpected things happen.&lt;/p&gt;

&lt;h2 id=&quot;before-adopting-caveat-emptor&quot;&gt;Before Adopting… Caveat Emptor&lt;/h2&gt;

&lt;h3 id=&quot;secrets&quot;&gt;Secrets&lt;/h3&gt;

&lt;p&gt;Do NOT check in secrets. When you fork this repository (and you should), you need to make sure that any changes you make are safe for the world to see. If you have many secret environment variables (e.g. API keys, login credentials) you will want to manage those in some other way, not within this repo.&lt;/p&gt;

&lt;h3 id=&quot;destructive&quot;&gt;Destructive&lt;/h3&gt;

&lt;p&gt;From their README:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Warning: the automation script is currently aggressive about what it does and will overwrite vim configurations, bash-it configurations, etc.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I wouldn’t run this on a personal machine that you’ve been configuring for months or years — this should be run on a fresh machine with a modern version of macOS installed (currently 10.13.6 at Voom).&lt;/p&gt;
</description>
        <pubDate>Fri, 28 Sep 2018 21:42:29 +0000</pubDate>
        <link>/2018/09/28/our-team-workstation-at-voom-continuous-improvement.html</link>
        <guid isPermaLink="true">/2018/09/28/our-team-workstation-at-voom-continuous-improvement.html</guid>
        
        
      </item>
    
      <item>
        <title>Things you can do when gogo in flight doesn&apos;t work</title>
        <description>&lt;p&gt;Okay, I’ve been on this flight for 30 minutes now, and I’m still trying to figure out what is going on.&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;dig gogoinflight.com
# No response

iconfig en0
# Nothing interesting, was trying to find the router.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Open up your wireless settings in macOS, find the router. For example, if your IP address is 172.19.131.149, it should look like 172.19.131.2.&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;curl 172.19.131.2
# dy&amp;gt;
Questa pagina dovrebbe rinviarvi subito verso il sito di autenticazione.&amp;lt;p&amp;gt;
curl: (56) Recv failure: Connection reset by peer
Se la ridirezione non avviene, &amp;lt;a href=&quot;http://airborne.gogoinflight.com/abp/page/abpDefault.do?REP=127.0.0.1&amp;amp;AUTH=172.19.131.149&amp;amp;CLI=54273&amp;amp;PORT=54272&amp;amp;RPORT=&quot;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Okay, now lets try going to that website.&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;open http://airborne.gogoinflight.com/abp/page/abpDefault.do?REP=127.0.0.1&amp;amp;AUTH=172.19.131.149&amp;amp;CLI=54273&amp;amp;PORT=54272&amp;amp;RPORT=
open http://airborne.gogoinflight.com/abp/page/abpDefault.do?REP=127.0.0.1&amp;amp;AUTH=172.19.131.149&amp;amp;CLI=54273&amp;amp;PORT=54272
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;It’s not working! Why??  Let’s try flushing the dns cache.&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;dscacheutil -flushcache
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;dig airborne.gogoinflight.com&lt;/p&gt;
&lt;h1 id=&quot;nothing&quot;&gt;NOTHING!&lt;/h1&gt;
&lt;p&gt;```&lt;/p&gt;

&lt;p&gt;Okay, something is wrong with DNS. Let’s remove DNS server (8.8.8.8) from the DNS tab within the wireless settings. Turns out I had it set to 8.8.8.8 manually to avoid my ISPs weird default 404 page rife with advertisements.&lt;/p&gt;

&lt;p&gt;Once I removed the default DNS server I started getting that sweet, delicious internet!&lt;/p&gt;

&lt;p&gt;So I guess the lesson learned is that DNS goes FIRST. Get DNS working first. If &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;dig airborne.gogoinflight.com&lt;/code&gt; is returning nothing, you’re gonna have a bad time.&lt;/p&gt;

&lt;p&gt;I probably could’ve diagnosed that by looking closer at my &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;sudo tcpdump -i en0 -v&lt;/code&gt; command, and now that I have internet it all makes sense. But, if you have problems with gogoinflight, some of those commands may help you!&lt;/p&gt;

&lt;p&gt;Also something to note, is that now I am able to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;dig&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The return value is &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;10.241.151.31&lt;/code&gt;, so if you want to browse to that IP to try and see if DNS is the problem more power to you!&lt;/p&gt;
</description>
        <pubDate>Tue, 14 Nov 2017 00:00:00 +0000</pubDate>
        <link>/2017/11/14/things-you-can-do-when-gogo-in-flight-doesnt-work.html</link>
        <guid isPermaLink="true">/2017/11/14/things-you-can-do-when-gogo-in-flight-doesnt-work.html</guid>
        
        
      </item>
    
      <item>
        <title>Using Bundler to Securely Install Your Private Github Gems</title>
        <description>&lt;p&gt;Do you see this message all the time when you run &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;bundle install&lt;/code&gt;?&lt;/p&gt;

&lt;noscript&gt;&lt;pre&gt;The git source `git://github.com/hjhart/private_repo.git` uses the `git` protocol, which transmits data without encryption. Disable this warning with `bundle config git.allow_insecure true`, or switch to the `https` protocol to keep your data secure.
&lt;/pre&gt;&lt;/noscript&gt;
&lt;script src=&quot;https://gist.github.com/hjhart/c1fb019a2ef3320f690e1076cabdb44e.js?file=bundler_warning_message&quot;&gt; &lt;/script&gt;

&lt;p&gt;It’s true. The git protocol is not fully secure, meaning that the server that you are pulling code from is not verified by certificate authorities. Seems a bit scary!&lt;/p&gt;

&lt;p&gt;Now, when converting, most of your gems in your &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Gemfile&lt;/code&gt; will be fine converting from git protocol to https. However, it is the private repositories that you’ll need to authenticate.&lt;/p&gt;

&lt;p&gt;In order to switch to the HTTPS protocol, for these private gems from github, you’ll need to figure out how you’re going to authenticate when deploying, shipping to CI, or setting up a new workstation.&lt;/p&gt;

&lt;p&gt;So how do we go about doing this?&lt;/p&gt;

&lt;h2 id=&quot;oauth-verification&quot;&gt;OAuth Verification&lt;/h2&gt;

&lt;p&gt;In a very old post on github’s blog, they &lt;a href=&quot;https://github.com/blog/1270-easier-builds-and-deployments-using-git-over-https-and-oauth&quot;&gt;announced&lt;/a&gt; that they were going to support a HTTP Basic Auth implementation allowing OAuth generated tokens. When you normally do a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;bundle install&lt;/code&gt;, your workstation will ask you for a username and a password, but when you’re deploying or running a build in CI, you won’t be able to enter that. You want to be able to run a uninterrupted, non-interactive &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;bundle install&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Let’s break it down to a more simple problem. We want to be able to do a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;git clone https://github.com/hjhart/private_repo&lt;/code&gt; without being asked for a username or a password. We can do that by adding some basic authentication parameters to the URL, with the username being a newly generated OAuth token.&lt;/p&gt;

&lt;noscript&gt;&lt;pre&gt;git clone https://c0db1529df7dfe5168c4f7c28fa2e005f9984b32:x-oauth-token@github.com/hjhart/private_repo
&lt;/pre&gt;&lt;/noscript&gt;
&lt;script src=&quot;https://gist.github.com/hjhart/c1fb019a2ef3320f690e1076cabdb44e.js?file=git_clone_basic_auth.sh&quot;&gt; &lt;/script&gt;

&lt;p&gt;The above command will no longer ask you for a password! You can also omit the password &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;x-oauth-token&lt;/code&gt; if that fits your workflow better.&lt;/p&gt;

&lt;noscript&gt;&lt;pre&gt;git clone https://c0db1529df7dfe5168c4f7c28fa2e005f9984b32@github.com/hjhart/private_repo
&lt;/pre&gt;&lt;/noscript&gt;
&lt;script src=&quot;https://gist.github.com/hjhart/c1fb019a2ef3320f690e1076cabdb44e.js?file=git_clone_basic_auth_no_passwd.sh&quot;&gt; &lt;/script&gt;

&lt;h2 id=&quot;the-gemfile&quot;&gt;The Gemfile&lt;/h2&gt;

&lt;p&gt;We will use the same strategy in your Gemfile to clone these repositories in your deployments or your CI scripts.&lt;/p&gt;

&lt;p&gt;Inside your Gemfile, you’ll want to replace lines that use &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;git: &apos;git@github.com...&apos;&lt;/code&gt; with HTTPS urls, like so:&lt;/p&gt;

&lt;noscript&gt;&lt;pre&gt;# Change any of these versions
gem &amp;#39;private_repo&amp;#39;, git: &amp;#39;git@github.com:hjhart/private_repo.git&amp;#39;, branch: :master
gem &amp;#39;private_repo&amp;#39;, github: &amp;#39;hjhart/private_repo&amp;#39;

# Into this version
gem &amp;#39;private_repo&amp;#39;, git: &amp;quot;https://github.com/hjhart/private_repo&amp;quot;
&lt;/pre&gt;&lt;/noscript&gt;
&lt;script src=&quot;https://gist.github.com/hjhart/c1fb019a2ef3320f690e1076cabdb44e.js?file=Gemfile&quot;&gt; &lt;/script&gt;

&lt;h2 id=&quot;bundle-config&quot;&gt;Bundle Config&lt;/h2&gt;

&lt;p&gt;Now we just need to instruct bundler where the find the credentials. We can do that by issuing a bundle config command.&lt;/p&gt;

&lt;noscript&gt;&lt;pre&gt; bundle config github.com c0db1529df7dfe5168c4f7c28fa2e005f9984b32&lt;/pre&gt;&lt;/noscript&gt;
&lt;script src=&quot;https://gist.github.com/hjhart/c1fb019a2ef3320f690e1076cabdb44e.js?file=bundle_config&quot;&gt; &lt;/script&gt;

&lt;p&gt;This creates an environment variable in your &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;~/.bundle/config&lt;/code&gt; file, which will exist every time you run a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;bundle&lt;/code&gt; command.&lt;/p&gt;

&lt;noscript&gt;&lt;pre&gt;---
BUNDLE_GITHUB__COM: &amp;quot;c0db1529df7dfe5168c4f7c28fa2e005f9984b32&amp;quot;
&lt;/pre&gt;&lt;/noscript&gt;
&lt;script src=&quot;https://gist.github.com/hjhart/c1fb019a2ef3320f690e1076cabdb44e.js?file=~.bundle_config&quot;&gt; &lt;/script&gt;

&lt;p&gt;Now, running a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;bundle install&lt;/code&gt; will authenticate using those credentials specified. For CI environments, or deployment environments, you can also just specify the environment variable when issuing bundle commands, but I find it more consistent to place the authentication token inside of the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;bundle config&lt;/code&gt;&lt;/p&gt;

&lt;noscript&gt;&lt;pre&gt;BUNDLE_GITHUB__COM=c0db1529df7dfe5168c4f7c28fa2e005f9984b32 bundle install&lt;/pre&gt;&lt;/noscript&gt;
&lt;script src=&quot;https://gist.github.com/hjhart/c1fb019a2ef3320f690e1076cabdb44e.js?file=bundle_install.sh&quot;&gt; &lt;/script&gt;

&lt;h2 id=&quot;a-quick-side-note&quot;&gt;A Quick Side Note&lt;/h2&gt;

&lt;p&gt;For gems that are defined like this: &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;gem &apos;private_repo&apos;, github: &apos;hjhart/private_repo&apos;&lt;/code&gt;, bundler 2.0 will default to using HTTPS. For now, you can also issue a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;bundle config github.https true&lt;/code&gt; to allow this convenient notation to use HTTPS. See this &lt;a href=&quot;https://github.com/bundler/bundler/issues/4978&quot;&gt;github issue&lt;/a&gt; for more details.&lt;/p&gt;

&lt;h2 id=&quot;generate-your-token&quot;&gt;Generate Your Token&lt;/h2&gt;

&lt;p&gt;To generate a new token, just replace the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--user&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;note&lt;/code&gt; in the command below.&lt;/p&gt;

&lt;noscript&gt;&lt;pre&gt;curl --user &amp;#39;hjhart&amp;#39; -d &amp;#39;{&amp;quot;scopes&amp;quot;:[&amp;quot;repo&amp;quot;],&amp;quot;note&amp;quot;:&amp;quot;Blog Post Example 2&amp;quot;}&amp;#39; https://api.github.com/authorizations
&lt;/pre&gt;&lt;/noscript&gt;
&lt;script src=&quot;https://gist.github.com/hjhart/c1fb019a2ef3320f690e1076cabdb44e.js?file=curl_request.sh&quot;&gt; &lt;/script&gt;

&lt;p&gt;After being prompted for your password, a response will be returned like this:&lt;/p&gt;

&lt;noscript&gt;&lt;pre&gt;{
  &amp;quot;id&amp;quot;: 93931604,
  &amp;quot;url&amp;quot;: &amp;quot;https://api.github.com/authorizations/12312&amp;quot;,
  &amp;quot;app&amp;quot;: {
    &amp;quot;name&amp;quot;: &amp;quot;Blog Post Example&amp;quot;,
    &amp;quot;url&amp;quot;: &amp;quot;https://developer.github.com/v3/oauth_authorizations/&amp;quot;,
    &amp;quot;client_id&amp;quot;: &amp;quot;00000000000000000000&amp;quot;
  },
  &amp;quot;token&amp;quot;: &amp;quot;c0db1529df7dfe5168c4f7c28fa2e005f9984b32&amp;quot;,
  &amp;quot;hashed_token&amp;quot;: &amp;quot;REDACTED&amp;quot;,
  &amp;quot;token_last_eight&amp;quot;: &amp;quot;f9984b32&amp;quot;,
  &amp;quot;note&amp;quot;: &amp;quot;Blog Post Example&amp;quot;,
  &amp;quot;note_url&amp;quot;: null,
  &amp;quot;created_at&amp;quot;: &amp;quot;2017-04-05T19:12:59Z&amp;quot;,
  &amp;quot;updated_at&amp;quot;: &amp;quot;2017-04-05T19:12:59Z&amp;quot;,
  &amp;quot;scopes&amp;quot;: [
    &amp;quot;repo&amp;quot;
  ],
  &amp;quot;fingerprint&amp;quot;: null
}
&lt;/pre&gt;&lt;/noscript&gt;
&lt;script src=&quot;https://gist.github.com/hjhart/c1fb019a2ef3320f690e1076cabdb44e.js?file=curl_response.json&quot;&gt; &lt;/script&gt;

&lt;p&gt;Use the generated token as described in the Bundle Config section of this blog post for your workstations, your CI environment, and any app servers you deploy to.&lt;/p&gt;

&lt;p&gt;Now, when you run a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;bundle install&lt;/code&gt; your gems will be downloaded in a secure manner, and you won’t get any more warnings from bundler! Happy bundling!&lt;/p&gt;

&lt;p&gt;You can see all of your active tokens on &lt;a href=&quot;https://github.com/settings/tokens&quot;&gt;github here&lt;/a&gt;.&lt;/p&gt;

&lt;h2 id=&quot;caveat-emptor&quot;&gt;Caveat Emptor&lt;/h2&gt;

&lt;p&gt;When changing from the git protocol to the HTTPS protocol, bundler loses “track” of which version or git SHA the gem will be locked to. It sometimes will help to grab the git reference from the Gemfile.lock, and placing it into the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Gemfile&lt;/code&gt; while making the switch. That way, the gems code will not unexpectedly change!&lt;/p&gt;

&lt;p&gt;However, if all gems are recent (which they most likely will, as these are your private gems), you won’t have any problems.&lt;/p&gt;

</description>
        <pubDate>Wed, 05 Apr 2017 19:56:06 +0000</pubDate>
        <link>/2017/04/05/using-bundler-to-securely-install-your-private-github-gems.html</link>
        <guid isPermaLink="true">/2017/04/05/using-bundler-to-securely-install-your-private-github-gems.html</guid>
        
        
      </item>
    
      <item>
        <title>How to Side Load Videos into Littlstar using MacOS</title>
        <description>&lt;p&gt;&lt;span class=&quot;newthought&quot;&gt;Alright, let’s get right into it. You’re trying to side load&lt;/span&gt; some videos on a USB stick from MacOS or OSX into Littlstar media player. For the sake of simplicity, we’re going to erase the entire contents of your USB drive in this tutorial. Be prepared to lose all data on that drive!&lt;/p&gt;

&lt;p&gt;Step 1: Open up Disk Utility. Under &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Applications &amp;gt; Utilities &amp;gt; Disk Utilities&lt;/code&gt;. It looks like this.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/littlstar/disk_utility.png&quot; alt=&quot;Disk Utility&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Step 2: Grab your USB Stick, plug it in. I just bought &lt;a href=&quot;https://www.amazon.com/gp/product/B013CCTOC2/ref=as_li_ss_tl?ie=UTF8&amp;amp;psc=1&amp;amp;linkCode=ll1&amp;amp;tag=hjhartblog-20&amp;amp;linkId=5d919eca9cadfe6414cb007a3aa11d66&quot;&gt;this USB stick&lt;/a&gt; specifically for side loading. At $10 for 32 GB, it’s a pretty hard deal to beat.&lt;/p&gt;

&lt;p&gt;Step 3: Let’s start formatting the drive. Click on the drive you just plugged in on the left column, and click the “Erase” button.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/littlstar/erase_clicks.png&quot; alt=&quot;Erase Clicks&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Step 4: Format the drive. Your name can be anything you want, but the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ExFat&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Master Boot Record&lt;/code&gt; settings are important.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/littlstar/erase_settings.png&quot; alt=&quot;Erase Settings&quot; /&gt;&lt;/p&gt;

&lt;p&gt;I’ve noticed that GUID Partition does NOT work. I haven’t had success with MS-DOS (FAT) either.&lt;/p&gt;

&lt;p&gt;Step 5: Ignore this error if you see it. Click “Done” and repeat Step 4 again.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/littlstar/error_message.png&quot; alt=&quot;Oh noes! Erasing failed.&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Step 6: Amaze in the glory that is a success message.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/littlstar/success_message.png&quot; alt=&quot;Success!&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Step 7: Eject that disk.&lt;/p&gt;

&lt;p&gt;Alright, now this part is how I’ve figured out if things will work or will not work. Turn on your PS4, plug the newly formatted USB drive (without content) into your PS4. Open the Littlstar App. Navigate to your &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Library&lt;/code&gt;&lt;sup id=&quot;fnref:1&quot;&gt;&lt;a href=&quot;#fn:1&quot; class=&quot;footnote&quot; rel=&quot;footnote&quot; role=&quot;doc-noteref&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;. You’ll need to have created an account and be logged in. You’ll see a message that says “You have not yet downloaded any videos, downloaded videos show here.”&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/littlstar/littlstar_message.jpg&quot; alt=&quot;Littlstar Message!&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Now, Littlstar will have tried to create a directory on that USB stick. If it is formatted correctly, the directory will be created. If not, there will be no directory.&lt;/p&gt;

&lt;p&gt;Plug your USB drive back into your computer. If the directory called LITTLSTAR has been created on your USB drive, then congratulations! The hard part is over!&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/littlstar/created_directory.png&quot; alt=&quot;Even more Success!&quot; /&gt;&lt;/p&gt;

&lt;p&gt;You can now drag files with the &lt;a href=&quot;http://docs.littlstar.com/display/CG/PlayStation+VR+Video+Sideloading#PlayStationVRVideoSideloading-HarddriveorUSBflashdrivesetup&quot;&gt;appropriate naming conventions&lt;/a&gt; into the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;LITTLSTAR&lt;/code&gt; directory.&lt;/p&gt;

&lt;p&gt;Good job! Now go enjoy your PSVR.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Edit:&lt;/strong&gt; User /u/hellsfoxes on reddit &lt;a href=&quot;https://www.reddit.com/r/PSVR/comments/5y1fr0/how_to_side_load_videos_into_littlstar_using_macos/demzpw0/?context=3&quot;&gt;pointed out not to load the files&lt;/a&gt; that look like &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;._filename_sbs_180.mp4&lt;/code&gt;. Instead, load files that look like &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;filename_sbs_180.mp4&lt;/code&gt; (note the leading period and underscore). Loading the first style of files will make the app go into an indefinite loading screen.&lt;/p&gt;

&lt;div class=&quot;footnotes&quot; role=&quot;doc-endnotes&quot;&gt;
  &lt;ol&gt;
    &lt;li id=&quot;fn:1&quot;&gt;
      &lt;p&gt;Hint, if you can’t figure out how to get to the “Library” part in Littlstar, press the circle button once or twice. &lt;a href=&quot;#fnref:1&quot; class=&quot;reversefootnote&quot; role=&quot;doc-backlink&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
    &lt;/li&gt;
  &lt;/ol&gt;
&lt;/div&gt;
</description>
        <pubDate>Tue, 07 Mar 2017 07:39:29 +0000</pubDate>
        <link>/2017/03/07/how-to-side-load-videos-into-littlstar-using-macos.html</link>
        <guid isPermaLink="true">/2017/03/07/how-to-side-load-videos-into-littlstar-using-macos.html</guid>
        
        
      </item>
    
      <item>
        <title>Ticketmaster is a horrible company</title>
        <description>&lt;p&gt;&lt;span class=&quot;newthought&quot;&gt;Ticketmaster is my least favorite shopping experiences on the internet.&lt;/span&gt; Each screen I click through I feel like I’m being taken advantage of. Just now, during my previous shopping experience, I decided I’ve finally had enough. If I can help it, I will never order another ticket from them again.&lt;/p&gt;

&lt;p&gt;I would rather spend my time to go directly to box offices, which can be &lt;em&gt;incredibly inconvenient and time consuming&lt;/em&gt;, than give them my money.&lt;/p&gt;

&lt;p&gt;Let’s take a look at some screenshots:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/ticket_master/sub_total.png&quot; alt=&quot;Sub Total&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Okay, here is the subtotal. That’s not so bad, less than I expected… &lt;s&gt;but still: a $1.50 facility charge? You&apos;re not the facility. Surely I wouldn&apos;t be charged this facility charge if I went directly to Neptune Theatre and purchased tickets – and they&apos;re the facility. So what the fuck?&lt;/s&gt;&lt;sup id=&quot;fnref:1&quot;&gt;&lt;a href=&quot;#fn:1&quot; class=&quot;footnote&quot; rel=&quot;footnote&quot; role=&quot;doc-noteref&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;

&lt;p&gt;Alright then, that’s not so bad. I’ll just select my shipping and move on.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/ticket_master/total_charges.png&quot; alt=&quot;Total Charges&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Oh! Another &lt;strong&gt;$4.00&lt;/strong&gt; that is unavoidable. For processing! Right, because credit cards are so prohibitively expensive to process that we need to charge you another &lt;strong&gt;$4.00&lt;/strong&gt;. And another &lt;strong&gt;$2.25&lt;/strong&gt; if I want physical tickets.&lt;/p&gt;

&lt;p&gt;Both of those things I would get for free if I purchased them at the box office. And it wouldn’t take me 10-14 days to get the tickets in hand, they’d print them right there for me.&lt;/p&gt;

&lt;p&gt;And while I’m on that point – why the hell does it take 10-14 days to ship those tickets? Is it the time it takes to print the tickets? Is it the USPS taking so long? It couldn’t be.&lt;/p&gt;

&lt;p&gt;A very conservative estimate gives each of those things taking 2-3 days. Which puts the estimate closer to 4-6 days. Which means that ticketmaster is purposefully delaying their efficiency in order to get people to purchase more expensive shipping times.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Fuck&lt;/em&gt; you ticketmaster.&lt;/p&gt;

&lt;p&gt;But here is the kicker that put me over the edge:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/ticket_master/ticket_protection.png&quot; alt=&quot;ticket protection&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Right at the bottom of the page, right before hitting the “Submit Order” button, people are presented with a seemingly good product. Initially, since there is no price noticeably shown, one might think it’s a convenience that ticketmaster does for it’s customers. You know, out of the goodness of their hearts.&lt;/p&gt;

&lt;p&gt;But in the small text, if you read through what ticketmaster meant for you to skip, you’ll find out it is actually &lt;strong&gt;$7.99&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;But wait! Even if you click “YES, Protect my ticket purchase!” it doesn’t even update the subtotal at the top of the page!&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/ticket_master/ticket_master_is_horrible.gif&quot; alt=&quot;I hate you, ticket master&quot; /&gt;&lt;/p&gt;

&lt;p&gt;So Ticketmaster not only deceptively hides the number &lt;strong&gt;$7.99&lt;/strong&gt;, but when the user accepts the charge, they don’t even update the subtotal. My legal understanding of ecommerce could be better, but I’m pretty sure that’s teetering on illegal.&lt;/p&gt;

&lt;p&gt;So that’s it, then. I’m done with ticketmaster. I’m going to go hop on my scooter and drive 15 minutes out of my way to the theatre’s box office to go pick up a single ticket. Out of spite!&lt;/p&gt;

&lt;p&gt;Okay, okay, enough already! Enough negativity for the day.&lt;sup id=&quot;fnref:2&quot;&gt;&lt;a href=&quot;#fn:2&quot; class=&quot;footnote&quot; rel=&quot;footnote&quot; role=&quot;doc-noteref&quot;&gt;2&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;

&lt;p&gt;Hope you all have a good new year. :)&lt;/p&gt;

&lt;div class=&quot;footnotes&quot; role=&quot;doc-endnotes&quot;&gt;
  &lt;ol&gt;
    &lt;li id=&quot;fn:1&quot;&gt;
      &lt;p&gt;After going and purchasing tickets directly from the venue, they were $20.00, including the $1.50 facility fee. I stand corrected. &lt;a href=&quot;#fnref:1&quot; class=&quot;reversefootnote&quot; role=&quot;doc-backlink&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
    &lt;/li&gt;
    &lt;li id=&quot;fn:2&quot;&gt;
      &lt;p&gt;This post garnered quite a bit of discussion on Hacker News. See the discussion &lt;a href=&quot;https://news.ycombinator.com/item?id=13312629&quot;&gt;here&lt;/a&gt;. &lt;a href=&quot;#fnref:2&quot; class=&quot;reversefootnote&quot; role=&quot;doc-backlink&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
    &lt;/li&gt;
  &lt;/ol&gt;
&lt;/div&gt;
</description>
        <pubDate>Tue, 03 Jan 2017 19:23:17 +0000</pubDate>
        <link>/2017/01/03/ticketmaster-is-a-horrible-company.html</link>
        <guid isPermaLink="true">/2017/01/03/ticketmaster-is-a-horrible-company.html</guid>
        
        
      </item>
    
      <item>
        <title>How do I find Core Dumps on Circle CI?</title>
        <description>&lt;p&gt;&lt;span class=&quot;newthought&quot;&gt;We were getting a lot of core dumps and segfaults &lt;/span&gt; in our CI builds. We’ve been getting them for a while, now, but they were so infrequent we just let them slide by the wayside.&lt;/p&gt;

&lt;p&gt;As soon as we switched over from Travis Pro to Circle CI for our private repositories at Wanelo we noticed the frequency of segmentation faults were increasing. Great! If this is more reproducable, now we can actually troubleshoot.&lt;/p&gt;

&lt;p&gt;Well, it turns out that core dumps aren’t saved on Circle CI currently. Apport appears to be configured to handle the core dumps (as configured on &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;/proc/sys/kernel/core_pattern&lt;/code&gt;). It also appears to be installed on the boxes when I SSH into them. However, checking out &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;/etc/security/limits.conf&lt;/code&gt; showed that ubuntu wasn’t allowing core dumps to be created (the default max file size is 0 bytes on Ubuntu).&lt;/p&gt;

&lt;p&gt;The good news is that upon submitting a request ticket to Circle CI Support, a gentleman got back to me and verified that core dumps are not currently created there, but should be in a couple of weeks. They’ll announce it on &lt;a href=&quot;https://discuss.circleci.com/&quot;&gt;discuss&lt;/a&gt; when they release it.&lt;/p&gt;

&lt;p&gt;That’s some pretty good news from a company I’m just starting to get acquainted with. I’ll probably stick with Circle CI next time I am setting up a new CI environment.&lt;/p&gt;

&lt;h2 id=&quot;need-it-before-then&quot;&gt;Need it before then?&lt;/h2&gt;

&lt;p&gt;It’s possible that you might be able to add a couple of lines into &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;/etc/security/limits.conf&lt;/code&gt; when setting up the machine in a custom build step that sets the limit of user ubuntu for the core process. I never ended up needing to spike into that, but if you go that route and succeed, let me know.&lt;/p&gt;

</description>
        <pubDate>Fri, 09 Sep 2016 21:29:18 +0000</pubDate>
        <link>/2016/09/09/how-do-i-find-core-dumps-on-circle-ci.html</link>
        <guid isPermaLink="true">/2016/09/09/how-do-i-find-core-dumps-on-circle-ci.html</guid>
        
        
      </item>
    
      <item>
        <title>View and reset PostgreSQL query statistics</title>
        <description>&lt;p&gt;&lt;span class=&quot;newthought&quot;&gt;When trying to understand how to alleviate pressure &lt;/span&gt; from our PostgreSQL instances, we were using a query like this:&lt;/p&gt;

&lt;noscript&gt;&lt;pre&gt;select substr(query, 0, 250), calls, 
    to_char(total_time/(60*60), &amp;#39;999,999,9999,999&amp;#39;) as &amp;quot;Cumulative Time (hrs)&amp;quot;, rows, 
    to_char(total_time/calls, &amp;#39;999.999&amp;#39;) as per_call_ms 
  from pg_stat_statements 
  order by total_time desc 
  limit 12;
&lt;/pre&gt;&lt;/noscript&gt;
&lt;script src=&quot;https://gist.github.com/hjhart/65a5ab33623c14995b48e1e7bdd3ff51.js?file=query.sql&quot;&gt; &lt;/script&gt;

&lt;p&gt;Which displays the 12 most expensive queries that postgres has spent time doing. It’s pretty useful for finding out where you should be putting indexes, or where you can change your application code to alleviate the pressure.&lt;/p&gt;

&lt;noscript&gt;&lt;pre&gt;                                 query                                         |    calls    | Cumulative Time (hrs) |    rows    | per_call_ms
-------------------------------------------------------------------------------+-------------+-----------------------+------------+-------------
 SELECT  &amp;quot;posts&amp;quot;.* FROM &amp;quot;posts&amp;quot;  WHERE &amp;quot;posts&amp;quot;.&amp;quot;crush_id&amp;quot; = ? LIMIT ?          |   256078900 |          1510,418     |   35940202 |   21.234
 UPDATE &amp;quot;posts&amp;quot; SET &amp;quot;state&amp;quot; = ?, &amp;quot;updated_at&amp;quot; = ? WHERE &amp;quot;posts&amp;quot;.&amp;quot;id&amp;quot; = ?       |    48610033 |          1086,287     |   48610033 |   80.449
 etc... etc...
(12 rows)&lt;/pre&gt;&lt;/noscript&gt;
&lt;script src=&quot;https://gist.github.com/hjhart/65a5ab33623c14995b48e1e7bdd3ff51.js?file=results.sql&quot;&gt; &lt;/script&gt;

&lt;p&gt;Once you’ve optimized all the things on the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;posts&lt;/code&gt; table and deployed out new code, you will want to get those statistics updated. I had a hard time figuring this one out, so I’m leaving it here for myself for later:&lt;/p&gt;

&lt;noscript&gt;&lt;pre&gt;select pg_stat_statements_reset()
&lt;/pre&gt;&lt;/noscript&gt;
&lt;script src=&quot;https://gist.github.com/hjhart/65a5ab33623c14995b48e1e7bdd3ff51.js?file=reset.sql&quot;&gt; &lt;/script&gt;

</description>
        <pubDate>Tue, 06 Sep 2016 21:54:00 +0000</pubDate>
        <link>/2016/09/06/reset-postgresql-statistics.html</link>
        <guid isPermaLink="true">/2016/09/06/reset-postgresql-statistics.html</guid>
        
        
      </item>
    
      <item>
        <title>Troubleshooting an upgrade from postgres 9.2 to 9.4</title>
        <description>&lt;p&gt;&lt;span class=&quot;newthought&quot;&gt;When attempting to upgrade from Postgres 9.2.8 to 9.4.5&lt;/span&gt; I encountered a bizarre error that was difficult to troubleshoot:&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;pg_restore: creating VIEW tables
pg_restore: [archiver (db)] Error while PROCESSING TOC:
pg_restore: [archiver (db)] Error from TOC entry 1206; 1259 10190710 VIEW tables postgres
pg_restore: [archiver (db)] could not execute query: ERROR:  column pg_class.reltoastidxid does not exist
LINE 19:             ELSE ( SELECT &quot;pg_class&quot;.&quot;reltoastidxid&quot;
                                   ^
    Command was:
-- For binary upgrade, must preserve pg_type oid
SELECT binary_upgrade.set_next_pg_type_oid(&apos;10190712&apos;::pg_catalog.oid);

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I found a message in the postgresql.org message board &lt;a href=&quot;https://www.postgresql.org/message-id/flat/A68AE592-FAA0-4A63-A3FF-967895A0E3BF%40classmates.com#A68AE592-FAA0-4A63-A3FF-967895A0E3BF@classmates.com&quot;&gt;here&lt;/a&gt;, but there were no answers posted. Also – it doesn’t seem possible to respond to that mailing-list….&lt;/p&gt;

&lt;p&gt;The solution ended up being to drop the pg_repack extension, then performing the pg_upgrade after it was dropped.&lt;/p&gt;

&lt;p&gt;This got rid of the problematic views that couldn’t successfully recreate themslves through the respective &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;pg_dump&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;pg_restore&lt;/code&gt; commands that &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;pg_upgrade&lt;/code&gt; performs.&lt;/p&gt;

&lt;p&gt;The upgrade worked successfully. We don’t use pg_repack anymore, so I was just able to uninstall and upgrade, but the postgresql &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;pg_upgrade&lt;/code&gt; documentation even states if the problem is a contrib module, it may need to be uninstalled, then postgresql upgraded, then the extension reinstalled again. This appears to have been the case.&lt;/p&gt;

</description>
        <pubDate>Wed, 29 Jun 2016 02:46:49 +0000</pubDate>
        <link>/2016/06/29/troubleshooting-an-upgrade-from-postgres-92-to-94.html</link>
        <guid isPermaLink="true">/2016/06/29/troubleshooting-an-upgrade-from-postgres-92-to-94.html</guid>
        
        
      </item>
    
      <item>
        <title>Stop Pesky Amazon Marketplace Review Requests</title>
        <description>&lt;p&gt;&lt;span class=&quot;newthought&quot;&gt;I order a lot from Amazon.com&lt;/span&gt; My wife orders a ton from amazon. Just recently we’ve received an influx of emails from marketplace vendors asking for feedback.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/feedback_requests.png&quot; alt=&quot;Look at all these pests&quot; /&gt;&lt;/p&gt;

&lt;p&gt;I really don’t want to do that. I’d rather have the marketplace vendors be completely obfuscated from me, and me just know that I’m ordering from &lt;em&gt;Amazon&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;So, after receiving two emails requesting feedback in one day, which happened to be the 25th time &lt;em&gt;this year&lt;/em&gt; of having feedback requested, I decided to take matters into my own hands.&lt;/p&gt;

&lt;p&gt;Here’s the filter you want to create on gmail:&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;from:*@marketplace.amazon.com 
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Then, Skip the inbox and you’re good to go! No more pesky feedback requests from Amazon marketplace vendors.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/feedback_filter.png&quot; alt=&quot;Pester me no more.&quot; /&gt;&lt;/p&gt;

</description>
        <pubDate>Wed, 20 Apr 2016 01:38:29 +0000</pubDate>
        <link>/2016/04/20/filtering-pesky-amazon-marketplace-review-requests.html</link>
        <guid isPermaLink="true">/2016/04/20/filtering-pesky-amazon-marketplace-review-requests.html</guid>
        
        
      </item>
    
  </channel>
</rss>
