<?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 AJ Villalobos on Medium]]></title>
        <description><![CDATA[Stories by AJ Villalobos on Medium]]></description>
        <link>https://medium.com/@ajvillalobos?source=rss-2c01cdfb5fa4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*5J-Ra4HS7zj6waPhXCm5VA.jpeg</url>
            <title>Stories by AJ Villalobos on Medium</title>
            <link>https://medium.com/@ajvillalobos?source=rss-2c01cdfb5fa4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 15:37:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ajvillalobos/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[Fix intermittent tests in your Rails App]]></title>
            <link>https://medium.com/@ajvillalobos/fix-intermittent-tests-in-your-rails-app-495b718eb576?source=rss-2c01cdfb5fa4------2</link>
            <guid isPermaLink="false">https://medium.com/p/495b718eb576</guid>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[ruby-on-rails]]></category>
            <category><![CDATA[ruby]]></category>
            <dc:creator><![CDATA[AJ Villalobos]]></dc:creator>
            <pubDate>Tue, 26 Sep 2017 14:18:55 GMT</pubDate>
            <atom:updated>2017-09-26T14:18:55.361Z</atom:updated>
            <content:encoded><![CDATA[<iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Fl0MYrcp9C0VtytlEA%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fsurvivorau-survivor-australiansurvivor-l0MYrcp9C0VtytlEA&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fl0MYrcp9C0VtytlEA%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/8bd755639ae6d9f9837373e6f692a1e3/href">https://medium.com/media/8bd755639ae6d9f9837373e6f692a1e3/href</a></iframe><p>Earlier today I had an intermittent test that when I run the whole test suite, the test sometimes passes, sometimes not. But when I run the single file which causes the error, it passes by itself. What the f?</p><p>This was my first time having this problem and I was just gonna dump it to <strong>fix it later</strong> bin until I found <a href="https://github.com/seattlerb/minitest-bisect">minitest_bisect</a>. So what is minitest_bisect you ask?</p><pre>Hunting down random test failures can be very very difficult, sometimes impossible, but minitest-bisect makes it easy.</pre><pre><strong>minitest-bisect</strong> helps you isolate and debug random test failures.</pre><pre>If your tests only fail randomly, you can reproduce the error consistently by using `–seed &lt;num&gt;`, but what then? How do you figure out which combination of tests out of hundreds are responsible for the failure? You know which test is failing, but what others are causing it to fail or were helping it succeed in a different order? That’s what minitest-bisect does best.</pre><p>It is quite easy to install, just add gem minitest-bisect to your Gemfile and you’re good to go. After that run your test again and when it fails, note the seed number where it fails.</p><pre>project_name master % bin/rails test<br>Running via Spring preloader in process 19316<br>Run options: --seed 30692</pre><pre># Running:</pre><pre>........F</pre><p>Then after seeing your test fails, run it again with minitest-bisect.</p><pre>bundle exec minitest_bisect --seed 9808 -Itest test/<br>reproducing... in 3.08 sec<br>Reproduction run passed? Aborting.<br>Try running with MTB_VERBOSE=2 to verify.</pre><p>You may see some problems at first when running it like this, so we can just follow and add the MTB_VERBOSE=2 to our command.</p><pre>MTB_VERBOSE=2 bundle exec minitest_bisect --seed 9808 -Itest test/<br>lib/rails/test_unit/minitest_plugin.rb:62:in `plugin_rails_options&#39;: invalid option: --server (OptionParser::InvalidOption)</pre><p>Now, if you see an error with OptionParser::InvalidOptionlike above, it means that you are running Rails version ≤5.1.2. There’s <a href="https://github.com/seattlerb/minitest-bisect/issues/16">pending issue</a> that can be solved by upgrading to at least 5.1.3. Once you do that, run again the command. Don’t be surprised if it looks like it’s looping (running the test again and again). Wait for it.</p><pre>bundle exec minitest_bisect --seed 9808 -Itest test/<br>...<br>...<br>...<br>Final reproduction:<br>Run options: --seed 9808 -n &quot;/^(?:test_new_employees_sorts_specified_time))$/&quot;</pre><p>You’ll see this Final reproduction: block with the Run options take note of this whole command. This is the command you’re supposed to run every time to fix the intermittent error you are currently getting.</p><pre>bin/rails test test/ --seed 9808 -n &quot;/^(?:test_new_employees_sorts_specified_time))$/&quot;</pre><p>For my problem, I need to change how I deal with time and my sample data is off so I had to fix that too.</p><p>In case you have a problem dealing with time, <a href="https://www.varvet.com/blog/working-with-time-zones-in-ruby-on-rails/">this article</a> by <a href="https://twitter.com/ramhoj">Nicklas Ramhöj</a> is a good read.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=495b718eb576" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sync Atom settings across different computers]]></title>
            <link>https://medium.com/@ajvillalobos/sync-atom-settings-across-different-computers-d3330a65ad37?source=rss-2c01cdfb5fa4------2</link>
            <guid isPermaLink="false">https://medium.com/p/d3330a65ad37</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[atom]]></category>
            <category><![CDATA[sync]]></category>
            <category><![CDATA[text-editor]]></category>
            <dc:creator><![CDATA[AJ Villalobos]]></dc:creator>
            <pubDate>Tue, 05 Sep 2017 13:52:05 GMT</pubDate>
            <atom:updated>2017-09-05T13:52:05.397Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve been playing with different text editors lately although I’m still at home with<a href="https://www.sublimetext.com/3">Sublime Text 3</a>. I also tried Microsoft’s <a href="https://code.visualstudio.com/">Visual Studio Code</a> but I feel it’s too strict for me. Right now I’m back again with Github’s <a href="https://medium.com/atom.io">Atom</a>. They all feel the same since I don’t think I’m using atleast 50% of all the text editor features.</p><p>My only requirements for a text editor are syntax highlighting, support for linters and can split comfortably. But I’m also having a hard time syncing my settings between my home and work machines. When I was using <strong>Sublime Text</strong> before I use <em>symlinks</em> and <em>dropbox</em> for syncing. With <strong>Atom</strong> they have an extension called <a href="https://atom.io/packages/sync-settings">sync-settings</a> that uses <strong>Github</strong> and <strong>Github Gists</strong> to store and retrieve your settings, which is pretty cool!</p><p>Although it doesn’t support automatic backup. It’s still very easy to backup and restore. To backup, open the command palette and search for <strong>Sync Settings: Backup</strong> and to restore you only need to search for <strong>Sync Settings: Restore</strong> and viola settings are restored.</p><p>If you are using <strong>Atom</strong> this will be the no. 1 plugin you need to install.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d3330a65ad37" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding how you fit in the bigger picture, goes a long way.]]></title>
            <link>https://medium.com/@ajvillalobos/understanding-how-you-fit-in-the-bigger-picture-goes-a-long-way-2108f41d59ec?source=rss-2c01cdfb5fa4------2</link>
            <guid isPermaLink="false">https://medium.com/p/2108f41d59ec</guid>
            <category><![CDATA[workplace]]></category>
            <category><![CDATA[work]]></category>
            <category><![CDATA[purpose]]></category>
            <category><![CDATA[passion]]></category>
            <category><![CDATA[management]]></category>
            <dc:creator><![CDATA[AJ Villalobos]]></dc:creator>
            <pubDate>Fri, 01 Sep 2017 23:38:46 GMT</pubDate>
            <atom:updated>2017-09-01T23:40:53.750Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V23BIu4HEGT7eoP-1nB30w.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/photos/Kw_zQBAChws?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Ashim D’Silva</a> on <a href="https://unsplash.com/?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Someone shared <a href="https://www.fastcompany.com/40419679/new-graduates-these-are-the-new-unspoken-rules-of-the-workplace-you-need-to-know">this article</a> in my facebook feed and it was a great read.</p><p>There’s 1 rule that really got my attention, and that is <strong><em>Understanding how you fit in the bigger picture, goes a long way</em></strong>.</p><p>For me this is the most important realization. For a while I jumped from company to company seeking my purpose, “my passion”, but what you really need to know is how you fit in the puzzle, how you can help your company in their mission.</p><p>With this in mind, every task you will do, every goal you want to reach, you know that you’re doing it for the best of your company. Your managers won’t need to micro-manage you, they’ll give you more autonomy on how you work out your tasks. Because they know, they can trust you.</p><p>Now, you will feel you belong and that there’s no contribution you make that is useless. <strong>Everything has a purpose.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2108f41d59ec" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simplify your tools]]></title>
            <link>https://medium.com/@ajvillalobos/simplify-your-tools-75841888f6f7?source=rss-2c01cdfb5fa4------2</link>
            <guid isPermaLink="false">https://medium.com/p/75841888f6f7</guid>
            <category><![CDATA[simplicity]]></category>
            <category><![CDATA[workflow]]></category>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[ruby-on-rails]]></category>
            <dc:creator><![CDATA[AJ Villalobos]]></dc:creator>
            <pubDate>Sat, 12 Aug 2017 00:22:48 GMT</pubDate>
            <atom:updated>2017-08-12T02:13:00.104Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Guitar gurus say, “Tone is in your fingers”. You can buy the same guitar, effects pedals, and amplifier that Eddie Van Halen uses. But when you play that rig, it’s still going to sound like you — Excerpt from <a href="https://www.amazon.com/Rework-Jason-Fried/dp/0307463745">Rework</a>.</blockquote><p>I’m currently reading <a href="https://www.amazon.com/Rework-Jason-Fried/dp/0307463745">Rework</a> by <a href="https://basecamp.com/">Basecamp</a><a href="https://basecamp.com/)(formerly">(formerly</a> 37signals) and I’m on the chapter where they talk about how the tools you used are not essentials to running your business. But use the one you already have or can afford and just go. It’s not the tools that matter but how you used it.</p><p>In my current work I am also simplifying my tools both hardware and software. I am a ruby developer by the way and mostly I used the <a href="http://rubyonrails.org/">Rails Framework</a> for my everyday job. I also started to use the <a href="http://david.heinemeierhansson.com/2012/rails-is-omakase.html">Omakase Stack</a> that means using the gems that are included already in the framework. For deployment I enjoy how <a href="https://www.heroku.com/">Heroku</a> makes the ops simpler.</p><p>I started to use single monitor setup compare to dual/triple with a laptop. I’m using a 23–24&quot; monitor with 1080p resolution so I still have plenty of space even though I only use 1 monitor. It also keeps me from juggling on all my available screens.</p><p>With these small little changes in my workflow, I expect to focus on the big things, solving the real problems, creating better quality software instead of thinking about the tools I used.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gAWe5NwF-d2Lt6Oc3mb3Jg.jpeg" /><figcaption>Workstation at Home</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=75841888f6f7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>