<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Evan Dancer on Medium]]></title>
        <description><![CDATA[Stories by Evan Dancer on Medium]]></description>
        <link>https://medium.com/@edance?source=rss-115d827f1237------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*fyAOS2Gl8iIwYdEEOimqbw.jpeg</url>
            <title>Stories by Evan Dancer on Medium</title>
            <link>https://medium.com/@edance?source=rss-115d827f1237------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 11:30:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@edance/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Spacemacs + Org mode]]></title>
            <link>https://medium.com/@edance/spacemacs-org-mode-797ca526115e?source=rss-115d827f1237------2</link>
            <guid isPermaLink="false">https://medium.com/p/797ca526115e</guid>
            <dc:creator><![CDATA[Evan Dancer]]></dc:creator>
            <pubDate>Sun, 19 Aug 2018 18:01:41 GMT</pubDate>
            <atom:updated>2018-08-19T18:01:41.289Z</atom:updated>
            <content:encoded><![CDATA[<p>For the last four years, I have started every day pulling out my notebook and organizing my day. I break everything down by the hour, filling in meetings, todos, runs, and everything in between.</p><p>I have also been using spacemacs for the last four years. All emacs users know about org mode and how it can make your life easier. I started with a simple goal. Let’s not use paper anymore. Let’s use org mode.</p><p>Here is what I learned.</p><h4>Creating a TODOs.org</h4><p>For each project, I have been using a TODOs.org file to organize the things I want to accomplish. You can access your TODOs by using:</p><p>SPC p o</p><p>Note: This has stopped working for right now because org-projectile has undergone some big changes. It is fixed on the development branch and should make its way to master soon.</p><p>Add some todos. You can do this by adding bullets and hitting t on the bullet. This will mark it as a TODO.</p><h4>Finishing a TODO</h4><p>To simply finish a TODO item, just use:</p><p>t</p><p>This is the basics of org mode that I am using today. I will continue to play around with agenda and more org mode stuff shortly!</p><h4>Setting a deadline for the TODO</h4><p>You can set a deadline for a TODO by using:</p><p>SPC m d</p><p>Dates in org mode are really smart. You can type something like today at 2pm or next wednesday and it will be able to figure out the correct date and time.</p><h4>Clocking in and out</h4><p>I am a big fan of pomodoros! If you are not familiar with these, look them up! I will provide a link eventually.</p><p>You can start a pomodoro by using:</p><p>SPC m p</p><p>This will automatically clock-in on the TODO and clock-out when the TODO has been finished.</p><p><em>Originally posted at </em><a href="https://evandancer.com/pages/spacemacs-%2B-org-mode"><em>https://evandancer.com/pages/spacemacs-%2B-org-mode</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=797ca526115e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hack: Naming Hosts and Ports with Nginx]]></title>
            <link>https://medium.com/@edance/hack-naming-hosts-and-ports-with-nginx-f1fc998612d2?source=rss-115d827f1237------2</link>
            <guid isPermaLink="false">https://medium.com/p/f1fc998612d2</guid>
            <dc:creator><![CDATA[Evan Dancer]]></dc:creator>
            <pubDate>Sun, 19 Aug 2018 18:01:39 GMT</pubDate>
            <atom:updated>2018-08-19T18:01:39.421Z</atom:updated>
            <content:encoded><![CDATA[<p>At Cribspot, we had a bunch of different ember apps and one single rails api that fed all of them. Here is a breakdown of all of our apps:</p><ul><li>manage</li><li>home</li><li>owner</li><li>search</li></ul><p>They were all separate projects in different repos. Ember with ember server would run on port 4200 for every project.</p><p>We started by adding to the config for each app so that they would not conflict. We had:</p><ul><li>api: port 3000</li><li>manage: port 3001</li><li>home: port 3002</li><li>owner: port 3003</li><li>search: port 3004</li></ul><p>That worked well but it was hard to remember which port for each app. So let’s make it easier with nginx.</p><p>Open up your sites-enabled/default.conf and add this:</p><pre>server {<br>    listen 80;<br>    server_name api;<br>    location / {<br>        proxy_pass http://127.0.0.1:3000;<br>    }<br>}<br><br>server {<br>    listen 80;<br>    server_name manage;<br>    location / {<br>        proxy_pass http://127.0.0.1:3001;<br>    }<br>}<br><br># etc</pre><p>Also make sure to add to your /etc/hosts:</p><pre>127.0.0.1 api<br>127.0.0.1 manage<br>127.0.0.1 home<br>127.0.0.1 owner<br>127.0.0.1 search</pre><p>Now you can visit, <a href="http://home/">home/</a> or <a href="http://manage/">manage/</a> or whatever and life is easier!</p><p><em>Originally posted at </em><a href="https://evandancer.com/pages/hack%3A-naming-hosts-and-ports-with-nginx"><em>https://evandancer.com/pages/hack%3A-naming-hosts-and-ports-with-nginx</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f1fc998612d2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Setup]]></title>
            <link>https://medium.com/@edance/my-setup-9bcb65eeceb6?source=rss-115d827f1237------2</link>
            <guid isPermaLink="false">https://medium.com/p/9bcb65eeceb6</guid>
            <dc:creator><![CDATA[Evan Dancer]]></dc:creator>
            <pubDate>Sun, 19 Aug 2018 18:01:37 GMT</pubDate>
            <atom:updated>2018-08-19T18:01:37.637Z</atom:updated>
            <content:encoded><![CDATA[<h4>Computer</h4><p>I built my own computer but I also have a macbook air. Specs about my comp to come.</p><h4>Operating System</h4><p>I switched to Ubuntu in 2009 and haven’t looked back.</p><h4>Keyboard</h4><p>Das keyboard with blacked out keys. The numbers are rough.</p><h4>IDE</h4><p>I use spacemacs with is basically emacs + vim.</p><h4>Shell</h4><p>I use zsh with my own theme.</p><h4>Rvm or Rbenv</h4><p>Rbenv FTW.</p><p><em>Originally posted at </em><a href="https://evandancer.com/pages/my-setup"><em>https://evandancer.com/pages/my-setup</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9bcb65eeceb6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating a Global git ignore]]></title>
            <link>https://medium.com/@edance/creating-a-global-git-ignore-f5553b5e4b23?source=rss-115d827f1237------2</link>
            <guid isPermaLink="false">https://medium.com/p/f5553b5e4b23</guid>
            <dc:creator><![CDATA[Evan Dancer]]></dc:creator>
            <pubDate>Sun, 19 Aug 2018 18:01:35 GMT</pubDate>
            <atom:updated>2018-08-19T18:01:35.737Z</atom:updated>
            <content:encoded><![CDATA[<p>Something simple today.</p><p>I didn’t want to change every .gitignore for each project that I worked on at my company. I found this little trick.</p><pre>cat TODOs.org &gt;  ~/.gitignore_global<br>git config --global core.excludesfile ~/.gitignore_global</pre><p><em>Originally posted at </em><a href="https://evandancer.com/pages/creating-a-global-git-ignore"><em>https://evandancer.com/pages/creating-a-global-git-ignore</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f5553b5e4b23" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Spacemacs Command: Jump-to-definition]]></title>
            <link>https://medium.com/@edance/spacemacs-command-jump-to-definition-708f7f46e0e1?source=rss-115d827f1237------2</link>
            <guid isPermaLink="false">https://medium.com/p/708f7f46e0e1</guid>
            <dc:creator><![CDATA[Evan Dancer]]></dc:creator>
            <pubDate>Sun, 19 Aug 2018 18:01:33 GMT</pubDate>
            <atom:updated>2018-08-19T18:01:33.343Z</atom:updated>
            <content:encoded><![CDATA[<p>I learned a new trick today on spacemacs that is super ideal. I was watching a coworker use sublime text 2, and he used a shortcut to jump to the definition of a class. Spacemacs must have that too!</p><h4>Enter spacemacs/jump-to-definition</h4><p>You have two options for jumping into a definition. To <strong>open in the same window</strong>:</p><p>, g g</p><p>To <strong>open in a new window</strong>:</p><p>, g G</p><p><strong>or</strong></p><p>g D</p><blockquote>Note: To work in for ruby, you need to bundle install both pry and pry-doc.</blockquote><p><em>Originally posted at </em><a href="https://evandancer.com/pages/spacemacs-command%3A-jump-to-definition-"><em>https://evandancer.com/pages/spacemacs-command%3A-jump-to-definition-</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=708f7f46e0e1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Magit Introduction on Spacemacs]]></title>
            <link>https://medium.com/@edance/magit-introduction-on-spacemacs-49ebf5aca3ca?source=rss-115d827f1237------2</link>
            <guid isPermaLink="false">https://medium.com/p/49ebf5aca3ca</guid>
            <dc:creator><![CDATA[Evan Dancer]]></dc:creator>
            <pubDate>Sun, 19 Aug 2018 18:01:31 GMT</pubDate>
            <atom:updated>2018-08-19T18:01:31.270Z</atom:updated>
            <content:encoded><![CDATA[<p>Here is a quick tutorial on how to do a bunch of different. We will be talking about how to commit changes, use diff to look at changes between branches, how to checkout new and existing branches, and even how to speed it up so it isn’t so slow.</p><h4>What is Magit</h4><p>From the Magit repository:</p><blockquote>Magit is an interface to the version control system Git, implemented as an Emacs package.</blockquote><p>Basically, Magit is a way to use git without having to leave Spacemacs. It handles all of the git workflows that I use every day and it has me forgetting how to use the commands under the hood (not really but it is an amazing tool).</p><p>If you are using Spacemacs and git, you are in a lucky.</p><h4>How to Pronounce Magit</h4><p>There is an <a href="https://github.com/magit/magit/issues/742">issue</a> on github that asks this question. The conclusion was that you can pronounce Magit in two different ways:</p><pre>&quot;MA-jit&quot; (like &#39;magic&#39; with a &#39;t&#39; at the end)<br>&quot;MAH-git&quot; (&#39;maggot&#39;)</pre><h4>Getting Started</h4><p>To add Magit to Spacemacs:</p><ol><li>Open up your ~/.Spacemacs dotfile using SPC f e d</li><li>Add git to your dotSpacemacs-configuration-layers</li><li>Reload your config with SPC f e R</li></ol><pre>dotSpacemacs-configuration-layers<br>&#39;( <br>  ;; All your other layers like ruby, elixir, javascript<br>  git<br>)</pre><p>It’s that easy. Now you are ready to get to work with Magit.</p><h4>Magit Status</h4><p>Image of the Magit status</p><p>Now that you have everything install it is time to open the Magit status window. You can open the status window in any window just make sure that you are in a git repository. You can open the window by using the following command:</p><pre>SPC g s</pre><p>As with everything in Spacemacs, this is mnemonic and very easy to remember. All of our git commands are going to be slotted under g for git. If you type SPC g, you can see all the options that you have at your disposal.</p><p>When you first open the status window, you will notice that you are given a lot of useful information about the git state of the world. You will notice which branch you are currently on, the HEAD and tag that you are currently on. It is an easy way to see the staged/unstaged changes, stashes, and even recent commits. All of this just by pressing a few keystrokes.</p><p>The status window will be your central hub for a lot of different git actions. To see all the different commands that you can perform from here, you can pull up a handy list by typing ?. What I love about Spacemacs is how easy it is to find new functionality. Everything you do in the Spacemacs ecosystem has a helper menu for what each key does while you are typing. Magit is no different.</p><h4>Staging changes</h4><p>The first thing you will likely want to do from the Magit status window is to make a commit but we can’t commit something without staging a file. I started my engineering career using subversion and staging files wasn’t necessary. I’m lucky the industry standard switched to git.</p><p>There are a few different ways to stage a file. I am going to go through all of the ones that I use. There are probably more ways to do this. As the old saying goes, there are multiple ways to stage a change.</p><p><strong>Stage a single files</strong> — You can stage an individual file by moving your cursor to the individual file and hitting s for stage. If you would like to unstage that change, just type u.</p><p><strong>Stage all the changed files</strong> — Very similar before but you can stage all the changed files by moving your cursor to the Unstaged changes(2) and typing s.</p><p><strong>Staging hunks</strong> — Say you have made a lot of changes but you haven’t been consistent with committing your changes. Happens to the best of us. Sometimes you are too in the zone to break for a commit (Stick in there though. Magit will change that for you.) You can mold your git commit history into a methodical work of art and here is how:</p><ul><li>SPC d u - This is to see the diff for unstaged changes. More on this in a few sections.</li><li>Shift v - This puts you in visual line mode. You an also use Ctr v for visual mode.</li><li>Highlight the lines that you want to stage</li><li>s to stage those changes</li></ul><h4>Stashing changes</h4><p>Another important aspect of git that Magit handles well is stashing. I stash a lot. Sometimes I am working on the wrong branch and I need to move my changes. Sometimes what I was trying didn’t work and I just want a clean slate without creating a new branch. All of the stash actions are available from the Magit status window under the key z.</p><p><strong>Stash Changes</strong> — Say you have made some changes that you would like to stash. To do this you can type z z from the Magit status window. Magit will then prompt you to type a name of the stash that you are creating. This makes it helpful to remember what you were working on.</p><p><strong>Applying the Stashed Changes without Losing the Stash</strong> — If you would like to git stash apply your changes, you can access that with z a. This is a nice option if you don&#39;t want to lose the history of your stash.</p><p><strong>Popping the Staged Changes</strong> — This is the same as apply but you remove the stash as well. Use z p to pop a stash.</p><p><strong>Deleting a Stash</strong> — Sometimes you get a little carried away with all the stashes. You have stashes from two years ago on a class that has been removed from your repo. You have stashes from three api versions ago that you need to just let go. The keys z x will help you with that.</p><h4>Creating Commits</h4><p>After you have staged some changes that you want to commit (or stashed some that you did not), you are ready to make your first commit using Magit. To create a commit using Magit, you need to type c c. This will bring up your commit message prompt that you have seen before in other git flows. The nice part is that it brings it up directly in Spacemacs so no need to break your flow. After you use the vim (or emacs) keybindings to type up your commit message, you have to hit Ctr-c Ctr-c to create the commit.</p><p>All of the commit actions are under c for commit and are available only on the Magit status window. You have a few other options that are available to you:</p><p><strong>Amend a commit</strong> — c a</p><p><strong>Reword a commit</strong> — c w</p><h4>Log of commits</h4><p>It is also really helpful to see a log of commits. On the status window, you can see a small list of the last ten commits. This is helpful to see what has happened recently but doesn’t give you a true look at the history.</p><p>You can see a more detailed log by using l l on the Magit status window complete with author, commit date, and even a simple view of the branching and merging.</p><h4>Pushing Commits to origin</h4><p>Now that you have created a few commits and have things moving smoothly, you probably want to push this up to origin so that others can see your hard work. There are a few different push actions you can take and they all start with `p**. Magit allows you to push the remote repository of your choosing.</p><p><strong>Pushing to remote</strong> — p p This pushes to the remote that you have set up. Normally this is the same as `git push origin**.</p><p><strong>Pushing upstream</strong> — p u If you would like to set up another remote to be an upstream repository, this is an easy way to push your commits up to that branch.</p><p><strong>Pushing elsewhere</strong> — p e I use this the most when pushing to something like heroku where you have multiple different remotes for development and staging environments.</p><p><strong>Force Push</strong> — p -f p I use this command quite a bit. Whenever I am working on a feature branch and want to update that commit, I will use force push. I like to keep my pull requests to a single commit and amend the commit as I continue to develop.</p><h4>Fetching and pulling changes</h4><p>Another important part of a git workflow is pulling down the code that others have written. Within Magit status window, you can fetch and pull from remote, upstream, and really anywhere.</p><p><strong>Fetching from remote</strong> — f p This command is your basic git fetch origin.</p><p><strong>Pulling from remote</strong> — P p This command is very similar to push but just remember that to pull down the changes to use a captial P.</p><h4>Branching</h4><p>All the branching functionality is packed under b for branching.</p><p><strong>Creating a new branch</strong> — b s This creates a spin-off branch from the current branch. It is helpful if you are developing on master and then realized that you needed to branch off.</p><p><strong>Switching branches</strong> — b b This pops up a helm window with all the different branches that you can checkout.</p><p><strong>Branch and Checkout</strong> — b c Want to checkout a different branch from origin, this command is for you.</p><h4>Magithub Integration</h4><p>Magithub is an integration with github that allows you to create pull requests, create issues, and a lot more. My current workflow is to create a pull request for every feature and bug. Magithub significantly speeds up the time for me to create a pull request and review other pull requests. My goal is to never have to leave emacs and Magithub helps with that. I rarely find myself visiting github because all the functionality I need is baked right into my editor. For more information about Magithub, check out <a href="https://github.com/vermiculus/magithub/">Magithub’s github</a>.</p><h4>Speeding up</h4><p>One of the downsides about using the current version of Magit is the speed that it takes to start. Luckily the start up cost is only paid once per session and after you open the first Magit status window, you won’t have to worry about the load times. There are a few different ways to speed this up however.</p><p>The development branch of Spacemacs is currently much faster than what exists right now. You can go to your ~/.emacs.d and change your branch to development to get a sneak preview of all the changes that are coming up in the next release. With the faster environment, I will also warn you that this means development and your environment can be unstable. If you don&#39;t want the headache of dealing with fixing a few small issues every once in a while, I&#39;d stick to the master branch. If you want the speed and new features, life on the development branch can be very rewarding.</p><p>Another way to increase the speed is to start up Spacemacs in daemon mode when you log into your computer. Here is a <a href="https://www.emacswiki.org/emacs/EmacsAsDaemon">link</a> to set that up in a few different environments. I highly recommend this as you will never notice that Spacemacs is lagging because it does all the work for you in the background.</p><h4>Conclusion</h4><p>Hopefully I have convinced you to give Magit a try. It is an awesome tool for a developer that is using git. My goal with switching from vim to Spacemacs was to reduce the number of tools that I needed to use. Magit helps with everything I need to do in git. I never find myself resorting the the command line just to checkout a branch.</p><p><em>Originally posted at </em><a href="https://evandancer.com/pages/magit-introduction-on-spacemacs"><em>https://evandancer.com/pages/magit-introduction-on-spacemacs</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=49ebf5aca3ca" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Magithub + Spacemacs Useful Commands]]></title>
            <link>https://medium.com/@edance/magithub-spacemacs-useful-commands-391690b9b775?source=rss-115d827f1237------2</link>
            <guid isPermaLink="false">https://medium.com/p/391690b9b775</guid>
            <dc:creator><![CDATA[Evan Dancer]]></dc:creator>
            <pubDate>Sun, 19 Aug 2018 18:01:28 GMT</pubDate>
            <atom:updated>2018-08-19T18:01:28.765Z</atom:updated>
            <content:encoded><![CDATA[<h4>Creating a Pull Request</h4><p>To create a pull request on github, you will need to do the following:</p><ol><li>Push the branch up to remote. I normally use origin as my remote.</li><li>Open the Magit status window</li><li>Use H p to start the flow and follow the prompts at the bottom of spacemacs.</li></ol><h4>Refreshing Magithub Data</h4><p>I often need to refresh the data for pull requests or the build status for a branch. This command took me a bit of time to find. First, you need to have your cursor in the Magit status window. Highlight what you want to update. This can be pull requests, issues, build status, and more. Then use:</p><pre>g r</pre><p><em>Originally posted at </em><a href="https://evandancer.com/pages/magithub-%2B-spacemacs-useful-commands"><em>https://evandancer.com/pages/magithub-%2B-spacemacs-useful-commands</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=391690b9b775" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Detroit Marathon 2017]]></title>
            <link>https://medium.com/@edance/detroit-marathon-2017-c7964df1f04b?source=rss-115d827f1237------2</link>
            <guid isPermaLink="false">https://medium.com/p/c7964df1f04b</guid>
            <dc:creator><![CDATA[Evan Dancer]]></dc:creator>
            <pubDate>Sun, 04 Feb 2018 16:31:56 GMT</pubDate>
            <atom:updated>2018-02-04T16:31:56.531Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="46th_overall__Amazing_marathon_even_with_the_crazy_winds.jpg" src="https://cdn-images-1.medium.com/max/854/0*FiMInTtaVK_hfQRv." /></figure><p>I signed up for the Detroit Marathon 2017 with the idea of qualifying for the Boston Marathon (I know that sounds super basic). I have to say, the Detroit Marathon is truly one of a kind. There are quite a few experiences that I don’t think I would have experienced anywhere else.</p><h4>Getting to the Marathon</h4><p>I won’t lie, this was the hardest part of the marathon (besides mile 21). This was a big hurdle and I almost missed it. I live in Michigan and I decided to drive to the marathon on the day. Be aware, there can be a lot of traffic. I read about this and thought that an hour would be enough time. It wasn’t.</p><p>Luckily, my parents drove me. And after watching the cars inching along for an hour, I simply hopped out of the car and ran to the race. I got a little bit of a warmup I wasn’t planning on. After a quick pitstop, I made it to the start with the big countdown timer at 57 seconds. I had made it to the race.</p><h4>Starting Line</h4><p>There are barricades at the start of the race that make it difficult to get in. I followed a string of people jumping one.</p><h4>Crossing the Bridge</h4><p>This is the only race (that I know of) where you cross into Canada and back into Michigan. We crossed the Ambassador Bridge and it was crazy.</p><p>So at this point, it is still dark out. It is a very humid 50 degrees or so. And about every minute or so, I am blinded by a bright flash of the helicopter above watching. I assume this is to prevent terrorists from getting into Canada.</p><p>As I got close to the bridge, there are police officers closely inspecting every runner as they pass. These officers are spaced about 50 yards apart and look very serious.</p><blockquote>I ran past the first one, and heard <em>Yellow shorts.</em></blockquote><blockquote>I didn’t think anything of it. Then I heard again. <em>Yellow shorts.</em></blockquote><blockquote>I looked around and I was running next to a guy with yellow shorts. Hmm. <em>Yellow shorts.</em></blockquote><blockquote>And they grab the guy. Luckily they let him go immediately. I hope his marathon time wasn’t ruined. Didn’t see him at the finish line.</blockquote><h4>Canada</h4><p>Canada looks the same as the US but slightly newer. The sun was just coming up at this point so I couldn’t really see anything more.</p><h4>The Tunnel</h4><p>I was warned by friends about the tunnel. It was twice as humid in there and it smelled a little bit. Not a bad experience. It also seemed like it was part downhill while also being uphill. Gravity must not work in tunnels. I will tell Newton.</p><h4>Split-off Point</h4><p>I went from running with everyone, to being nearly alone on the course. These friends that I had grown close with over the last 13 miles, turned for home. It really sunk in that this was going to be a long race.</p><h4>Indian Village</h4><p>I don’t really remember much of the race or where we were running for a while. I remember that we ran east in a straight line for what felt like forever. We eventually made it to the fancy houses on the east side in Indian Village. I didn’t really take the time to appreciate it at this point.</p><h4>Belle Isle</h4><p>I talked to a friend the week before running the race and he told me this. When you get to Belle Isle, you will be upset that you have to run around it. When you are about to get to Belle Isle, you can see where downtown and the finish is.</p><p>Belle Isle is super beautiful but this is where I started to breakdown. Those skipped two hour runs were really starting to weigh heavy. At mile 21, I lost all my energy and went into a dog-trot to try to hang on. My mile times really hurt from here on out. I had hit mile 20 at 140 minutes but I felt like I was making a deal with the devil. The last five miles can really do that to you. You lose your mind. You want to be done. Your goals and aspirations go out the window.</p><h4>Riverwalk</h4><p>The Riverwalk was really windy but I could taste the finish. We ran past the boats along the water. At this point in the race, I did not take the time to enjoy it.</p><h4>Finish Line</h4><p>I made it to the finish line and immediately laid down on the ground. The finish is on the road so I was trying to get comfortable on the dirty asphalt. But I had made it. And with a new PR of 3:11.</p><p><em>Originally posted at </em><a href="https://evandancer.com/pages/detroit-marathon-2017"><em>https://evandancer.com/pages/detroit-marathon-2017</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c7964df1f04b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Useful Spacemacs Commands]]></title>
            <link>https://medium.com/@edance/useful-spacemacs-commands-904e2e9ecb8e?source=rss-115d827f1237------2</link>
            <guid isPermaLink="false">https://medium.com/p/904e2e9ecb8e</guid>
            <dc:creator><![CDATA[Evan Dancer]]></dc:creator>
            <pubDate>Sun, 04 Feb 2018 16:31:54 GMT</pubDate>
            <atom:updated>2018-02-04T16:31:54.196Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Spacemacs" src="https://cdn-images-1.medium.com/max/367/0*TASMAk-4UCJEL6BD." /></figure><p>I have been using spacemacs for a few years now and I wanted to make a quick list of helpful commands.</p><p>I heavily leaned on this <a href="https://gist.github.com/robphoenix/9e4db767ab5c912fb558">Spacemacs Cheat Sheet</a>.</p><h4>Basic Spacemacs commands</h4><ul><li>SPC q q - quit</li><li>SPC w / - split window vertically</li><li>SPC w - - split window horizontally</li><li>SPC w d - delete current window</li><li>SPC b b - switch buffers</li><li>SPC f f - find a file</li><li>SPC p p - open project</li><li>SPC p f - find a file in current project</li><li>SPC b d - kill current buffer</li><li>SPC b b - Helm mini; lists buffers &amp; recent files</li><li>SPC / - searches through project</li><li>SPC s s - search in a file</li><li>SPC s e - multiple cursors</li><li>ALT / - snippet completion</li><li>SPC e - syntax checking options</li></ul><h4>Magit Commands</h4><ul><li>SPC g s - show git status</li><li>SPC g b - open a magit blame</li><li>SPC g t - launch the git time machine</li></ul><h4>In Magit Window</h4><ul><li>C-c C-c - show help text</li><li>l l - log current branch</li><li>d s - show diff of staged changes</li><li>d u - show diff of unstaged changes</li><li>s - stage a file or change</li><li>u - unstage a file or change</li><li>c c - create a new commit</li><li>c a - amend a commit</li><li>r e - rebase elsewhere (normally on master)</li><li>r -i e - rebase interactively elsewhere</li><li>b b - checkout a branch</li><li>b c - create a branch</li><li>f f - fetch changes</li><li>F (r) u - pull tracked branch and rebase</li><li>g r - refresh</li></ul><h4>Useful Vim key bindings</h4><h4>Movement</h4><ul><li>0 - beginning of line</li><li>^ - beginning of non-whitespace</li><li>$ - end of line</li><li>w - move forward by word</li><li>b - move backward by word</li><li>g g - first line</li><li>G - last line</li><li>C-u - up half page</li><li>C-d - down half page</li><li>H - head of the screen</li><li>M - middle of the screen</li><li>L - last of the screen</li><li>} - move forward by paragraph or block</li><li>{ - move backwards by paragraph or block</li><li>n - search again forward</li><li>N - search again backwards</li><li># - search backwards for word under cursor</li><li>/ - search forward</li><li>? - search backward</li><li>% - find matching brace, paren, etc</li><li>ma - mark a line in a file with marker &quot;a&quot;</li><li>&#39;a - after moving around, go back to line of marker &quot;a&quot;</li><li>:marks - view all the marks</li></ul><h4>Editing</h4><ul><li>x - delete char under cursor</li><li>X - delete char before cursor</li><li>A - add to end of line</li><li>I - insert at the beginning of the line</li><li>dd - delete line</li><li>D - delete from cursor to end of line</li><li>di&#39; - delete text inside single quotes</li><li>yy - copy line</li><li>Y - copy from cursor to end of line</li><li>cc - change line</li><li>C - change from cursor to end of line</li><li>cit - change text inside html tag</li><li>ci&#39; - change text inside single quotes</li><li>ci{ - change text inside curly brackets.</li><li>ci... - etc</li><li>p - paste after cursor</li><li>P - paste before cursor</li><li>o - add line below</li><li>O - add line above</li><li>. = repeat last comment</li><li>r - replace character</li><li>R - replace. (overwrite) (good for columns of text)</li><li>J - join line (cursor can be anywhere on line)</li><li>:edit! - reload the file</li></ul><h4>Visual mode</h4><ul><li>v - visual char mode</li><li>V - visual line mode</li><li>C-v - block visual mode</li></ul><p><em>Originally posted at </em><a href="https://evandancer.com/pages/useful-spacemacs-commands"><em>https://evandancer.com/pages/useful-spacemacs-commands</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=904e2e9ecb8e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Fixed my Mechanical Keyboard]]></title>
            <link>https://medium.com/@edance/how-i-fixed-my-mechanical-keyboard-450af9f8cf43?source=rss-115d827f1237------2</link>
            <guid isPermaLink="false">https://medium.com/p/450af9f8cf43</guid>
            <dc:creator><![CDATA[Evan Dancer]]></dc:creator>
            <pubDate>Sun, 04 Feb 2018 16:31:51 GMT</pubDate>
            <atom:updated>2018-02-04T16:31:51.870Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="daskeyboard 4C" src="https://cdn-images-1.medium.com/max/1024/0*SkQ0kEJxbQKJgOam." /></figure><p>I ran into an issue with my keyboard recently. The “y” key was only working about half the time. As an <a href="https://evandancer.com/pages/useful-spacemacs-commands">spacemacs</a> user using vim keybindings, yank (basically copy for all non-vim) was only working when it felt like it. I didn’t realize how much I used yank. I guess I should probably write DRY’er code.</p><p>I wanted to fix this so I searched around a bit. I found something that ended up working and I highly recommend. Check it out.</p><h4>What you will need:</h4><ol><li>Isopropyl Alcohol (I used 70%…not sure about higher strength stuff)</li><li>Cotton swabs</li><li>Hair dryer</li><li>Keycap puller</li><li>Mechanical keyboard (didn’t test this on a non-mechanical keyboard)</li></ol><h4>Steps</h4><h4>Pull off the keycaps using the puller</h4><p>Using your keycap puller, remove all the keycaps from your keyboard. If you do not have a puller, I have used a credit card in the past. I would not recommend. When you are removing the keys, make sure to lay them out in the correct order. All of my caps are blank and this makes it easy to mess up.</p><h4>Clean the switches with cotton swabs and alcohol</h4><p>Dip your swab in the alcohol. Make sure you don’t have too much alcohol on your cotton swab. Clean around the switch, press down on the switch, basically clean every place on that switch that you can find.</p><h4>Blow dry the switches</h4><p>Use your blow dryer to dry all the alcohol on the switches. I like to press down on the switch when drying as well. Make sure that it gets really dry. Note: Don’t use on extreme heat. Blow dryers can get hot enough to melt plastic so be careful with that stuff.</p><h4>Reassemble your keyboard</h4><p>Snap your keys back on and you should be good to go. Before completely reassembling, test the keys that were causing issues and make sure that it is resolved. If the issue still exists, give it another try. If it still exists after that, look into getting replacement switches or a new keyboard.</p><p><em>Originally posted at </em><a href="https://evandancer.com/pages/how-I-fixed-my-mechanical-keyboard"><em>https://evandancer.com/pages/how-I-fixed-my-mechanical-keyboard</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=450af9f8cf43" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>