<?xml version="1.0" encoding="UTF-8"?>
<rss version='2.0' 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">
  <channel>
    <title>Stefan Wrobel</title>
    <description>Startup Founder | Engineering Leader with an MBA</description>
    <link>https://stefanwrobel.com/feed</link>
    <atom:link href="https://stefanwrobel.com/feed" rel="self" type="application/rss+xml"/>
    <category domain="stefanwrobel.com">Content Management/Blog</category>
    <language>en-us</language>
      <pubDate>Thu, 23 Oct 2014 23:02:00 -0700</pubDate>
    <managingEditor>swrobel@gmail.com (Stefan Wrobel)</managingEditor>
      <item>
        <guid>http://stefanwrobel.com/make-spring-simplecov-play-nice#9128</guid>
          <pubDate>Thu, 23 Oct 2014 23:02:00 -0700</pubDate>
        <link>http://stefanwrobel.com/make-spring-simplecov-play-nice</link>
        <title>Make Spring &amp; SimpleCov play nice</title>
        <description>Want to achieve spring-ified bliss for your rails-rspec-guard setup? Read on.</description>
        <content:encoded><![CDATA[<h2 id="background">Background</h2>

<p><a href="https://github.com/rails/spring">Spring</a>, the app preloader that&#39;s integrated with Rails 4.1+, and <a href="https://github.com/colszowka/simplecov">SimpleCov</a>, everyone&#39;s favorite test coverage analyzer <a href="https://github.com/colszowka/simplecov/issues/271#issuecomment-48831083">don&#39;t seem to play nice</a>. The symptoms are differing results when you run rspec with and without Spring. The Spring results will skip many files because of eager loading; SimpleCov doesn&#39;t get loaded before your app does.</p>

<h2 id="the-solution">The Solution</h2>

<p>Create a <code>config/spring.rb</code> file and move your SimpleCov config into it from your <code>spec_helper.rb</code> file. For example:</p>
<div class="highlight"><pre><span></span><span class="k">if</span> <span class="no">ENV</span><span class="o">[</span><span class="s1">&#39;RAILS_ENV&#39;</span><span class="o">]</span> <span class="o">==</span> <span class="s1">&#39;test&#39;</span>
  <span class="nb">require</span> <span class="s1">&#39;simplecov&#39;</span>
  <span class="no">SimpleCov</span><span class="o">.</span><span class="n">start</span>
<span class="k">end</span>
</pre></div>
<h2 id="update">Update</h2>

<p>I&#39;ve essentially given up on Spring. Despite this fix, coverage reporting is inconsistent, and often lower when running tests with Spring. See <a href="https://github.com/colszowka/simplecov/issues/271#issuecomment-65198339">here</a> for more discussion. None of the proposed fixes in that discussion have worked for me.</p>
]]></content:encoded>
      </item>
      <item>
        <guid>http://stefanwrobel.com/using-kingo-root-on-a-mac#1541</guid>
          <pubDate>Mon, 10 Mar 2014 18:35:00 -0700</pubDate>
        <link>http://stefanwrobel.com/using-kingo-root-on-a-mac</link>
        <title>Using Kingo Root on a Mac</title>
        <description>Root your Android device without using Boot Camp</description>
        <content:encoded><![CDATA[<h2 id="tl-dr">tl;dr</h2>

<p>Use Kingo to root your android device via VirtualBox with a free Windows image. Just make sure to install the VirtualBox extension pack and enable USB 2.0 support. This may very well work on Linux as well.</p>

<h2 id="background">Background</h2>

<p><a href="http://www.kingoapp.com/">Kingo Root</a> seems to be the easiest way to root most modern Android devices. I was excited to use it on my Samsung Galaxy Note 3, but dismayed when I discovered it only works on Windows. I&#39;ve never booted Windows on my MacBook, and I really didn&#39;t want to set up a Boot Camp partition just to root my phone, so I set out to figure out whether I could get Kingo to work inside of a free virtual machine.</p>

<h2 id="virtualbox">VirtualBox</h2>

<p><a href="https://www.virtualbox.org/">VirtualBox</a> is a great free virtualization tool that will allow you to run one operating system in a window inside of another. For example, you can run Windows inside of MacOS, which is what we&#39;re going to do in this case. Download and install VirtualBox and the Extension Pack (located right below the download links on the rather poorly designed <a href="https://www.virtualbox.org/wiki/Downloads">downloads page</a>). That was easy.</p>

<h2 id="get-a-windows-virtual-machine-image">Get a Windows virtual machine image</h2>

<p>Next, you need to install Windows. The <a href="https://github.com/xdissent/ievms">ievms project</a> provides pre-built VirtualBox images for rapid testing of various versions of Internet Explorer, which is useful for web developers like me. It also provides the quickest way that I found to boot Windows inside of VirtualBox without going through the painful Windows installation wizard. By default, it will install several different versions of Windows (each with different versions of Internet Explorer) totaling tens of gigabytes. You really only need one of these, so I decided to go with Windows XP SP3 since it was one of the smallest options.</p>
<div class="highlight"><pre><span></span>curl -s https://raw.githubusercontent.com/xdissent/ievms/master/ievms.sh <span class="p">|</span> env <span class="nv">IEVMS_VERSIONS</span><span class="o">=</span><span class="s2">&quot;8&quot;</span> bash
</pre></div>
<h2 id="configure-the-virtual-machine">Configure the Virtual Machine</h2>

<p>You&#39;ll need to set some options for the virtual machine to make sure it plays nice with your device&#39;s USB connection. Shut down the Windows VM if it&#39;s running and go into its settings. Now is the time to install that <a href="https://www.virtualbox.org/wiki/Downloads">Extension Pack</a> if you haven&#39;t already. Enable the USB 2.0 controller, and with your device connected, add it to the USB Device Filters list (this will give VirtualBox exclusive access to the device when it is running).</p>

<p><img alt="Silvrback blog image" src="https://silvrback.s3.amazonaws.com/uploads/7caf9c2c-f222-4411-810b-3e8a08c47fb9/virtualbox-usb_large.png" /></p>

<h2 id="root">Root!</h2>

<p>Start up the Windows virtual machine and install <a href="http://www.kingoapp.com/">Kingo Root</a> inside of it. It should install the drivers for your device automatically and let you root it with one click. If you see a message like &quot;Connection Unstabitil&quot; [sic] or something to that effect, then you either didn&#39;t install the VirtualBox Extension Pack &amp; enable USB 2.0, or you&#39;re using a USB 3.0 cable (the one with the wide connector that comes with the Galaxy Note 3 and possibly other newer devices). Make sure to use standard MicroUSB cable and you should be good to go.</p>
]]></content:encoded>
      </item>
      <item>
        <guid>http://stefanwrobel.com/hack-your-gmail-inbox#1707</guid>
          <pubDate>Fri, 14 Feb 2014 22:51:04 -0800</pubDate>
        <link>http://stefanwrobel.com/hack-your-gmail-inbox</link>
        <title>Hack your Gmail inbox</title>
        <description>Use Priority Inbox&#39;s advanced features to improve your workflow</description>
        <content:encoded><![CDATA[<h2 id="tl-dr">tl;dr</h2>

<p>Maximize your Gmail efficiency by organizing your inbox into the following sections (in order):</p>

<ol>
<li>Priority unread</li>
<li>Drafts</li>
<li>Starred</li>
<li>Everything else</li>
</ol>

<h2 id="leveraging-gmails-best-feature">Leveraging Gmail&#39;s best feature</h2>

<p>Priority Inbox is my favorite feature to come to Gmail since the original (and revolutionary) threading system. Thanks to it, I only get notifications on my phone when the email is actually something that warrants my attention. The algorithm is surprisingly good. Little known is how it allows you to customize the sections your inbox is split into.</p>

<p><img alt="Silvrback blog image" src="https://silvrback.s3.amazonaws.com/uploads/619d34e6-762e-4401-ac0a-87831c586acb/Inbox__1__-_swrobel_gmail_com_-_Gmail-8_large.png" /></p>

<p>I&#39;ve divided up my inbox in priority order:</p>

<ol>
<li>First come <strong>unread priority messages</strong></li>
<li>Next come <strong>drafts</strong>. Whenever I need to respond to an email but don&#39;t have time to do it immediately, I create a draft and check this area for emails that I need to follow up on when I have the time to do so. I limit this to 5 visible items but I try not to have more than that many drafts open at a time anyway.</li>
<li>Next come <strong>starred</strong> messages. Whenever I need to read an email again later, or follow up on a link in it, I star it. I guess everyone probably has their own system for starring messages. I like the distinction between emails that merely need to be read (stars) vs. responded to (drafts). I limit this to 5 visible items as well.</li>
<li>Last comes <strong>everything else</strong>. I comb through this section much less frequently for unread messages or ones that should have drafts or stars that slipped through the cracks.</li>
</ol>

<p>I set all of these sections to hide when empty (not sure why you wouldn&#39;t want this behavior). I see a lot of people using desktop clients to access Gmail, but I think by doing so you give up some of the best aspects of the web interface, which makes a clean break from the traditional mail client paradigm.</p>

<p><img alt="Silvrback blog image" src="https://silvrback.s3.amazonaws.com/uploads/2f5ad8ae-bd7e-4fcd-84dd-e8e0cad638c8/Screen%20Shot%202014-02-14%20at%2010.48.26%20PM_large.png" /></p>

<p>Give it a try, you&#39;ve got nothing to lose except the time you&#39;re wasting.</p>
]]></content:encoded>
      </item>
  </channel>
</rss>