<?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></title>
    <description></description>
    <link>https://pmf.silvrback.com/feed</link>
    <atom:link href="https://pmf.silvrback.com/feed" rel="self" type="application/rss+xml"/>
    <category domain="pmf.silvrback.com">Content Management/Blog</category>
    <language>en-us</language>
      <pubDate>Sun, 18 May 2014 12:14:00 -0400</pubDate>
    <managingEditor>pmf@pmf.io ()</managingEditor>
      <item>
        <guid>http://b.pmf.io/preserving-purchasing-power#3996</guid>
          <pubDate>Sun, 18 May 2014 12:14:00 -0400</pubDate>
        <link>http://b.pmf.io/preserving-purchasing-power</link>
        <title>Preserving Purchasing Power</title>
        <description></description>
        <content:encoded><![CDATA[<p>Why invest one&#39;s money? A common answer would be &quot;to make more money&quot;, yet a successful investor can only start making money once they have stopped an hemorrhage that&#39;s easy to forget, inflation. Present in <a href="http://en.wikipedia.org/wiki/List_of_countries_by_inflation_rate">most countries</a>, it is the phenomenon by which money loses purchasing power over time.</p>

<p>If I think of investing, the bare minimum that I would like to accomplish is just that: preserving the purchasing power of my savings. I won&#39;t be particularly happy if that&#39;s all I manage to do, but on the path to finding a decent investment strategy, compensating for inflation is my first step.</p>

<p>Let&#39;s look at how successful an investor has to be in order to accomplish just this. Their return on investment would have to at least match inflation. So how much is inflation? According to the <a href="http://www.usinflationcalculator.com/inflation/current-inflation-rates/">US inflation calculator</a>, the rates for the past years in the United States were: </p>

<p><strong>2013: 1.5%<br>
2012: 1.7%<br>
2011: 3.0%<br>
2010: 1.5%<br>
2009: 2.7%</strong></p>

<p>Let&#39;s assume, to keep things simple, that inflation is 2% a year on average. Let&#39;s also consider an investor who has $100,000 worth of savings in a bank account without interest. Based on our 2% inflation rate, in five years, the purchasing power of those savings will have become equivalent to what $90,392.08 can buy today. About one tenth of the purchasing power will have been lost. In order to retain the same purchasing power, our investor would need to find a way to grow those savings into $110,408 in five years. This amount will be able to buy then what $100,000 can buy today.</p>

<p>Let&#39;s see how one might manage to grow savings at a rate of 2% a year. My bank accounts are at Chase so I looked up their <a href="https://apply.chase.com/oao/ViewDisclosures.aspx?type=PER">interest rates</a> to see how well they help me at the task of keeping up with inflation. Put simply, checking accounts yield 0.01% interest. That will bring the $100,000 up to $100,050 after five years. At 0.1%, savings accounts can bring 10 times more, leaving a balance of $100,501 after five years. This is still quite far from the 2% which would bring our investor to the $110,408 which is needed to match inflation.</p>

<p>Some banks offer high interest savings accounts. According to <a href="http://www.nerdwallet.com/blog/banking/nerdwallets-best-savings-accounts/">this survey</a>, some banks go as high as 0.95% interest rate. That&#39;s enough to cut in half the inflation, but not enough to stop it, much less to make profits.</p>

<p>Banks also offer certificates of deposit, instruments which deliver a fixed interest rate if money ix locked into them for a given amount of time. The more money is deposited and the longer the period, the higher the interest rate. Based on Chase&#39;s <a href="https://www.chase.com/legacy/index.jsp?pg_name=ccpmapp/individuals/cds/page/certificate-of-deposits-rates">CD interest rates</a>, a deposit of $100,000, if locked in to a CD for 10 years (a better rate than the 0.6% one gets for five years), will yield 1.05% a year of interest. After five years, that brings the deposit up to $105,361. Still not enough to match inflation.</p>

<p>Let&#39;s hold on for a minute and talk about taxes. Interest that comes from bank accounts and CDs is taxed in the US similarly to salaries. Now let&#39;s say our investor is in the 25% <a href="http://en.wikipedia.org/wiki/Income_tax_in_the_United_States#Marginal_tax_rates_for_2013">federal tax bracket</a>. That&#39;s pretty typical for upper middle class. Let&#39;s say they live in New York state and are in the <a href="http://www.bankrate.com/finance/taxes/state-taxes-new-york.aspx">6.65% tax bracket</a>. Let&#39;s just assume, to give this fictional investor a breather, that they do not live in New York City where they might get another 3.648% on top of that. Social Security tax which has a fixed rate of 6.2% and the Medicare tax of 1.45% don&#39;t apply to interest income. </p>

<p>This brings us to a total tax rate of approximately 32%. This is roughly how much extra income (salary or interest) gets taxed for someone who was in the brackets mentioned above. Back to the CD example, the $5361 of interest is actually only $3645 after those taxes. If we take taxes into account, it&#39;s not an interest of 2% that is needed to match inflation, it&#39;s actually 2.9%.</p>

<p>Does one even stand a chance at beating inflation? Let&#39;s look at other forms of investment. I checked what&#39;s available now in the secondary bond market, and there are offerings which match this with &lt;5 years to maturity with a credit rating in the low A&#39;s and high B&#39;s. Those are considered <em>investment grade</em> by the <a href="https://fixedincome.fidelity.com/ftgw/fi/FIAdvBondSearch?ref_rfi=0010">Fidelity bond search tool</a> which means they consider them pretty safe.</p>

<p>So bonds are one method that works. Let&#39;s now look at investing in stocks. Successful investing in stocks will yield capital gains when the stock is sold. Some stocks will also provide dividends. Both capital gains and dividends can be taxed at the terrible 32% rate. However, there are huge exceptions.</p>

<p>Most dividends from US corporations traded in the stock market are <em>qualified</em> dividends and because of this are taxed at 15% maximum (except for people in the $400,000+ tax bracket). Capital gain which results from the sale of investments held for more than a year is dubbed <em>long-term</em> and is subject the same tax as dividends. The 6.65% state income tax still applies to both however, for a total of about 22%. With that value, we&#39;re down to a required 2.6% of income as capital gains or qualified dividends in order to keep up with inflation.</p>

<p>Many stocks have dividends which exceed 2.6% a year. Also the major US indices tend to grow by more than 2.6% a year for long-term periods. It&#39;s possible to invest in ETFs whose price will track these indices and therefore have similar performance. Then again, nothing is guaranteed. A stock with a high dividend could drop in price. Or the market could start performing badly as a whole. But past performance has given investors a lot of opportunities to beat inflation in this way.</p>

<p>Another popular mode of investing is mutual funds. Brokers provide lots of details about their past results. Yet one challenging aspect of mutual funds is predicting their tax impact. Most funds, while held in an investor&#39;s portfolio, will generate distributions throughout the year. These can be for long- or short-term capital gains, or qualified or unqualified dividends. However, because mutual funds are opaque about their holdings, knowing in what proportions these will come and therefore what their tax rate will be is difficult. One can always assume the worse, in this case 32%.</p>

<p>Now&#39;s a great time to talk about retirement accounts. If the money being invested is in a retirement account like an IRA or a 401k (Roth or traditional), the income would not get taxed as it accrues, in which case it makes no difference what the taxes are. All that&#39;s needed is for the mutual fund to reach the 2% return to match inflation. All the other types of investments income will not generate taxes as they accrue either, so keeping up with inflation is easier in a retirement account.</p>

<p>In the course of this research, my goal was to figure out what an investor can do to merely match the inflation rate. Based on rough calculations, it looks like for interest-bearing instruments, the minimum rate of return would have to be 2.9%, while stocks would have to produce 2.6% at least, including capital gains and dividends. Among common investments, stocks, bonds and mutual funds seem to have the potential to offer returns high enough to match inflation.</p>
]]></content:encoded>
      </item>
      <item>
        <guid>http://b.pmf.io/linux-on-macbook-air#3959</guid>
          <pubDate>Wed, 14 May 2014 17:15:09 -0400</pubDate>
        <link>http://b.pmf.io/linux-on-macbook-air</link>
        <title>Debian on Macbook Air</title>
        <description>The small details</description>
        <content:encoded><![CDATA[<p>After being a Debian user for years, I switched to Ubuntu when I bought my Macbook air. I was worried that the exotic hardware wouldn&#39;t work well out of the box with Debian and I didn&#39;t have time to debug. Turns out I did spend a lot time tweaking things and they were never perfect. Now that time is more abundant, I&#39;m back to Debian unstable. Things were great out of the box. For the rest, I&#39;m documenting here how I got things to work. Work in progress.</p>

<h2 id="getting-smooth-scrolling-in-chrome">Getting smooth scrolling in chrome</h2>

<p>Navigate to chrome://flags and activate <strong>Smooth scrolling</strong>. Although this improves things a lot, it&#39;s still not quite a smooth as </p>

<p>Note: Firefox looks great in the latest Debian unstable. And its scrolling is smooth out of the box.</p>

<h2 id="using-the-oracle-java-vm">Using the Oracle java VM</h2>

<p>Use make-jpkg to make a .deb from the official Oracle tarball of the JRE.</p>

<h2 id="apple-type-trackpad-scrolling">&quot;Apple&quot; type trackpad scrolling</h2>

<p>The trackpad worked great out of the box. It has the correct sensitivity settings, support for middle-button using a three-finger click, support for right-click using a two-finger click. The only detail I like which is missing is the &quot;reverse&quot; scrolling which I got used to with MacOS.</p>

<p>To get the Apple-style scrolling, a line must be added in the <em>InputClass</em> section of the <strong>/usr/share/X11/xorg.conf.d/50-synaptics.conf</strong> file. In order to avoid the change be overwritten, the edited file should go in <strong>/etc/X11/xorg.conf.d</strong>. The line to add is marked below.</p>
<div class="highlight"><pre><span></span>Section &quot;InputClass&quot;
        Identifier &quot;touchpad catchall&quot;
        Driver &quot;synaptics&quot;
        MatchIsTouchpad &quot;on&quot;
# This option is recommend on all Linux systems using evdev, but cannot be
# enabled by default. See the following link for details:
# http://who-t.blogspot.com/2010/11/how-to-ignore-configuration-errors.html
#       MatchDevicePath &quot;/dev/input/event*&quot;
        Option &quot;VertScrollDelta&quot; &quot;-237&quot; ## Add this line
EndSection
</pre></div>
<p>Other reports online seemed to have success setting a button mapping option in the evdev configuration, but that didn&#39;t work for me. The X log file was useful in figuring out which driver was being used for the touchpad.</p>

<h2 id="special-keyboard-buttons">Special keyboard buttons</h2>

<p>I use the special laptop keys to change the screen brightness, etc. Window managers sort of try to address this but don&#39;t do very well in general. In addition, in my view, this is a problem that should have a more general solution than the window manager since I may very well have multiple X servers running or I might be in a native console. There&#39;s no reason for my buttons not to work then.</p>

<p>The way I&#39;m solving this now is with a <a href="https://github.com/pmfournier/pmkeyd">very simple daemon</a> that I&#39;ve made that monitors for keys being pressed and runs commands as a result. </p>

<h2 id="automatic-lcd-brightness-management">Automatic LCD brightness management.</h2>

<p>Work in progress. Looks like a command such as:</p>
<div class="highlight"><pre><span></span>brightd -w 30 -v -f -f -x -c acpi_video0
</pre></div>
<p>might help a lot.</p>

<h2 id="raising-the-cpu-frequency">Raising the CPU frequency</h2>

<p>Not sure why, but one day I noticed that the cpus were running too slowly. I&#39;m pretty sure they were running faster at some point. The problem was that they were using the speed governor &quot;powersave&quot; instead of &quot;performance&quot;. I fixed this by installing <code>cpufrequtils</code> and running the following command.</p>
<div class="highlight"><pre><span></span>for c in 0 1 2 3; do cpufreq-set --governor performance --cpu $c; done
</pre></div>
<p>The <a href="https://wiki.debian.org/HowTo/CpuFrequencyScaling">Debian Wiki</a> explains how to make the change permanent.</p>

<h2 id="broken-microphone">Broken microphone</h2>

<p>The builtin microphone on the machine appears to be setup such that its single channel is in fact channel 2 in alsa (the right side channel). This means that mono recording records nothing but silence.</p>

<p>One solution is to create a virtual alsa device in ~/.asoundrc:<br>
<code><br>
pcm.sanemike {<br>
    type route<br>
    slave.pcm &quot;default&quot;<br>
    slave.channels 2<br>
    ttable.0.1 4<br>
    ttable.1.0 0<br>
}<br>
</code></p>

<p>It&#39;s then necessary to use that device when recording.</p>
]]></content:encoded>
      </item>
      <item>
        <guid>http://b.pmf.io/pdp-11-keyboard#3317</guid>
          <pubDate>Sun, 27 Apr 2014 23:34:09 -0400</pubDate>
        <link>http://b.pmf.io/pdp-11-keyboard</link>
        <title>PDP-11 keyboard</title>
        <description></description>
        <content:encoded><![CDATA[<p>Along with <a href="http://www.trmm.net">Trammell</a>, we got our hands on a DEC PDP-11 to play with. &quot;Modern&quot; DEC VT100 terminals came along with it. This is what their dusty keyboards looked like.</p>

<p><img alt="Silvrback blog image" src="https://silvrback.s3.amazonaws.com/uploads/482528e1-b82d-4f4b-a9d1-7561b77d35a3/IMG_20140427_174339~2~2_large.jpg" /></p>

<p>The arrow keys are in a very strange position and they do not follow the hjkl layout. The Set-Up key seems to be used as an escape to control terminal features. It&#39;s unclear what the PF1-4 keys are for.</p>
]]></content:encoded>
      </item>
  </channel>
</rss>