<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">

    <title>benjaminthomas.org</title>
    <id>http://benjaminthomas.org/</id>

    <link href="http://benjaminthomas.org/index.xml" rel="self"/>
    <link href="http://benjaminthomas.org/"/>

    <updated>2012-05-03T14:40:29-06:00</updated>

    <author>
        <name>Benjamin Thomas</name>
        <email>benjamin@benjaminthomas.org</email>
    </author>

    
        
            <entry>
                <title>256 Colors in Vim in tmux</title>
                <link href="http://benjaminthomas.org/2012-03-28/256-colors-in-tmux.html"/>
                <updated>2012-03-28T00:00:00-06:00</updated>
                <id>tag:benjaminthomas.org,2009-10-22:/2012-03-28/256-colors-in-tmux</id>
                <content type="html">&lt;p&gt;Most solutions I&amp;#8217;ve found for getting 256 colors in Vim inside tmux have you configure your terminal to report its type as having 256 colors, by setting the type to &lt;code&gt;screen-256color&lt;/code&gt;. While this solution works, it means that when you log into servers via &lt;code&gt;ssh&lt;/code&gt; that don&amp;#8217;t know the &lt;code&gt;screen-256color&lt;/code&gt; terminal type, you have to jump through hoops to get things working again. Either by again resetting your terminal type, or by compiling and installing terminfo files.&lt;/p&gt;

&lt;p&gt;An ideal solution for the colors problem doesn&amp;#8217;t change change your default terminal type but leaves it as something basic and understood by practically all servers (e.g. &lt;code&gt;xterm&lt;/code&gt; or &lt;code&gt;screen&lt;/code&gt;).&lt;/p&gt;

&lt;p&gt;tmux&amp;#8217;s own FAQ suggests the &lt;code&gt;-2&lt;/code&gt; flag, but that didn&amp;#8217;t work for me.&lt;/p&gt;

&lt;p&gt;Here&amp;#8217;s the solution I&amp;#8217;ve come up with:&lt;/p&gt;

&lt;p&gt;In your &lt;code&gt;.vimrc&lt;/code&gt; file, tell Vim to use 256 colors:&lt;/p&gt;
&lt;div class='highlight'&gt;&lt;pre&gt;&lt;code class='vim'&gt;&lt;span class='k'&gt;set&lt;/span&gt; &lt;span class='nb'&gt;t_Co&lt;/span&gt;&lt;span class='p'&gt;=&lt;/span&gt;&lt;span class='m'&gt;256&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;Now, tmux needs to report supporting 256 colors as well. tmux has a configuration option for setting terminal overrides. Basically, all terminals have this string that describe their capabilities, and the &lt;code&gt;terminal-overrides&lt;/code&gt; tmux function allows us to selectively change certain capabilities. So, the following line makes tmux report itself as being able to use 256 colors:&lt;/p&gt;
&lt;div class='highlight'&gt;&lt;pre&gt;&lt;code class='text'&gt;set -g terminal-overrides &amp;#39;xterm:colors=256&amp;#39;
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;You&amp;#8217;ll have to change &lt;code&gt;xterm&lt;/code&gt; in there to whatever type your terminal reports itself as (both iTerm and gnome-terminal, the programs I use, report &lt;code&gt;xterm&lt;/code&gt; as their default).&lt;/p&gt;</content>
            </entry>
        
    
        
            
                <entry>
                    <title>TermKit &#8594;</title>
                    <link href="https://github.com/unconed/TermKit"/>
                    <updated>2011-10-16T00:00:00-06:00</updated>
                    <id>tag:benjaminthomas.org,2009-10-22:/2011-10-16/on-the-interwebs-22-4</id>
                    <content type="html">&lt;p&gt;&lt;a href=&quot;https://github.com/unconed/TermKit&quot;&gt;TermKit&lt;/a&gt; &amp;#8212; Trying to redesign the terminal so we aren&amp;#8217;t using basically the same tool we&amp;#8217;ve had for 30 years. At first I was vehemently opposed to the idea, but the &lt;a href=&quot;http://acko.net/blog/on-termkit&quot;&gt;more I read&lt;/a&gt; and thought about it, the more it made sense. I haven&amp;#8217;t tried it yet though&amp;#8230;&lt;/p&gt;&lt;a href="http://benjaminthomas.org/2011-10-16/on-the-interwebs-22.html#p_nth_4"&gt;#&lt;/a&gt;</content>
                </entry>
            
                <entry>
                    <title>GitHub Flow &#8594;</title>
                    <link href="http://scottchacon.com/2011/08/31/github-flow.html"/>
                    <updated>2011-10-16T00:00:00-06:00</updated>
                    <id>tag:benjaminthomas.org,2009-10-22:/2011-10-16/on-the-interwebs-22-3</id>
                    <content type="html">&lt;p&gt;&lt;a href=&quot;http://scottchacon.com/2011/08/31/github-flow.html&quot;&gt;GitHub Flow&lt;/a&gt;: &amp;#8212; Description of how GitHub uses Git. I really need to start using Git in a more intelligent manner..&lt;/p&gt;&lt;a href="http://benjaminthomas.org/2011-10-16/on-the-interwebs-22.html#p_nth_3"&gt;#&lt;/a&gt;</content>
                </entry>
            
                <entry>
                    <title>Zsh Line Editor &#8594;</title>
                    <link href="http://www.cs.elte.hu/zsh-manual/zsh_14.html"/>
                    <updated>2011-10-16T00:00:00-06:00</updated>
                    <id>tag:benjaminthomas.org,2009-10-22:/2011-10-16/on-the-interwebs-22-2</id>
                    <content type="html">&lt;p&gt;&lt;a href=&quot;http://www.cs.elte.hu/zsh-manual/zsh_14.html&quot;&gt;Zsh Line Editor&lt;/a&gt; &amp;#8212; List of commands that can be bound to keys in the Zsh shell. I was already a big fan of Zsh and then I played around with trying these out for an hour or two and now I&amp;#8217;m a huge fan of Zsh. You can change little things that improve your terminal experience in just wonderful ways. The most important of which, I was able to get Home and End keys to work properly in gnome-terminal. &lt;a href=&quot;https://github.com/bentomas/dotfiles/blob/master/zshrc#L35-81&quot;&gt;Here&amp;#8217;s the relevant section&lt;/a&gt; of my &lt;code&gt;.zshrc&lt;/code&gt; file, to see what I ended up with&amp;#8230;&lt;/p&gt;&lt;a href="http://benjaminthomas.org/2011-10-16/on-the-interwebs-22.html#p_nth_2"&gt;#&lt;/a&gt;</content>
                </entry>
            
                <entry>
                    <title>A Farewell to CSS3 Gradients &#8594;</title>
                    <link href="http://designfestival.com/a-farewell-to-css3-gradients/"/>
                    <updated>2011-10-16T00:00:00-06:00</updated>
                    <id>tag:benjaminthomas.org,2009-10-22:/2011-10-16/on-the-interwebs-22-1</id>
                    <content type="html">&lt;p&gt;&lt;a href=&quot;http://designfestival.com/a-farewell-to-css3-gradients/&quot;&gt;A Farewell to CSS3 Gradients&lt;/a&gt; &amp;#8212; Did you know that modern browsers support using SVG images in backgrounds? I didn&amp;#8217;t. Cool!&lt;/p&gt;&lt;a href="http://benjaminthomas.org/2011-10-16/on-the-interwebs-22.html#p_nth_1"&gt;#&lt;/a&gt;</content>
                </entry>
            
                <entry>
                    <title>ievms &#8594;</title>
                    <link href="https://github.com/xdissent/ievms"/>
                    <updated>2011-10-16T00:00:00-06:00</updated>
                    <id>tag:benjaminthomas.org,2009-10-22:/2011-10-16/on-the-interwebs-22-0</id>
                    <content type="html">&lt;p&gt;&lt;a href=&quot;https://github.com/xdissent/ievms&quot;&gt;ievms&lt;/a&gt; &amp;#8212; A schell script that will install VirtualBox virtual machines for testing IE 7, 8 and 9 in a completely legal and Microsoft supported manner. This is fantastic.&lt;/p&gt;&lt;a href="http://benjaminthomas.org/2011-10-16/on-the-interwebs-22.html#p_nth_0"&gt;#&lt;/a&gt;</content>
                </entry>
            
        
    
        
            <entry>
                <title>A Machine For Reading Books</title>
                <link href="http://benjaminthomas.org/2011-10-13/a-machine-for-reading-books.html"/>
                <updated>2011-10-13T00:00:00-06:00</updated>
                <id>tag:benjaminthomas.org,2009-10-22:/2011-10-13/a-machine-for-reading-books</id>
                <content type="html">&lt;p&gt;The very smart Lukas Mathis &lt;a href='http://ignorethecode.net/blog/2011/09/29/machine_for_reading_books/'&gt;posed a question&lt;/a&gt; after the Kindle Touch devices were announced at the end of September that was, &amp;#8220;If you were to design a piece of hardware that was only used for one single task, to read books, how would you design it?&amp;#8221;&lt;/p&gt;

&lt;p&gt;In particular he thought that moving the page turning buttons to the touch screen was a bad idea:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;What’s the one single thing Kindle owners do the most? I’m guessing it’s turning to the next page. While reading a book, every Kindle Touch owner will do this at least once a minute, probably hundreds of times in a single session.&lt;/p&gt;

&lt;p&gt;With a button, it’s simple. You don’t have to move your finger. You don’t cover the screen with any part of your hand. You push down a bit, and you get tactile feedback, a little «click» that tells you that you’ve successfully initiated a page turn.&lt;/p&gt;

&lt;p&gt;Now, compare this to turning pages using a touchscreen. First of all, the Kindles don’t have resistive screens. This is usually an advantage, but in this particular case, it means that you can’t rest your finger on the screen. You have to physically lift it before you can turn the page.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;And in response to not his original question, but the question at the top of the section I just quoted, the single thing that Kindle Touch owners will do the most while using it is hold it. And with a real book you can hold it by any of its margins without obscuring text. However, if you add buttons to this margin, then you now have to be careful how you hold it, for fear of accidentally hitting a button.&lt;/p&gt;

&lt;p&gt;So, I&amp;#8217;d say that Amazon did optimize the reading experience. Though, I neither own nor have I ever used a Kindle, so I could be completely wrong. But I always found the placement of the page turning buttons on the margins to be a strange choice.&lt;/p&gt;</content>
            </entry>
        
    
        
            <entry>
                <title>Windows Phone 8 is a great start at a response to the iPad</title>
                <link href="http://benjaminthomas.org/2011-06-03/windows-phone-8.html"/>
                <updated>2011-06-03T00:00:00-06:00</updated>
                <id>tag:benjaminthomas.org,2009-10-22:/2011-06-03/windows-phone-8</id>
                <content type="html">&lt;p&gt;&lt;a href='http://ignorethecode.net/blog/2011/06/02/windows_8/'&gt;A video preview of Windows 8&lt;/a&gt; has been passed around today, and I have to say, the UI looks really neat. It really looks like something I&amp;#8217;d use and even enjoy using. Which is a big deal, since I haven&amp;#8217;t enjoyed using a Windows computer in years.&lt;/p&gt;

&lt;p&gt;However, all isn&amp;#8217;t peachy, afterwards, my two biggest reactions were:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Why are they building one OS for two completely different devices? This new OS is for both touch screen tablets and mouse based computers? If the iPhone and iPad have shown anything it is how much better a device you can make if you get rid of all the baggage (both historical and practical) that comes with the status quo.&lt;/li&gt;

&lt;li&gt;When I saw them load up Excel in the demo, I think I was supposed to be excited, but my heart sunk. What the hell is that doing there? That is the last thing I wanted to see.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;John Gruber apparently &lt;a href='http://daringfireball.net/2011/06/windows_8_fundamentally_flawed'&gt;had the second reaction too&lt;/a&gt; (via &lt;a href='http://www.marco.org/2011/06/03/gruber-on-windows-8'&gt;Marco Arment&lt;/a&gt;):&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The ability to run Mac OS X apps on the iPad, with full access to the file system, peripherals, etc., would make the iPad worse, not better. The iPad succeeds because it has eliminated complexity, not because it has covered up the complexity of the Mac with a touch-based “shell”. iOS’s lack of backward compatibility with any existing software means that all apps for iOS are written specifically for iOS.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Though, after I had time to collect my thoughts a little:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;In response to my first reaction, I think this is the thing to be legitimately upset about. This has Steve Balmer written all over it. So, cocky and self-assured that of course they can build one OS for both types of devices. They just doesn&amp;#8217;t get it.&lt;/p&gt;
&lt;/li&gt;

&lt;li&gt;
&lt;p&gt;In response to my second reaction, and to what The Grübes wrote, for 25 years one of Window&amp;#8217;s biggest selling points for customers and developers has been backwards compatibility. Especially with the corporate world. Imagine the revolt if the next version of the operating system dropped all support for old applications and programs. I mean what other reason is there to use Windows? There is a reason that so many IT departments won&amp;#8217;t upgrade from IE 6. IE 7 isn&amp;#8217;t backwards compatible.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Microsoft has backed itself into a corner where it has a crappy OS compared to iOS and Mac OS X, but it can&amp;#8217;t start over because the fact that so many people are using their crappy OS as it is now is the only thing keeping them going. The position Apple was in when they started over with OS X was completely different.&lt;/p&gt;

&lt;p&gt;So, I don&amp;#8217;t think this demo was for some new &amp;#8220;shell&amp;#8221; or &amp;#8220;skin&amp;#8221;. This was Microsoft admitting defeat. This was them saying, Okay, what we have isn&amp;#8217;t working, we need to do something new. This was them starting over but giving all those legacy apps some place to go.&lt;/p&gt;

&lt;p&gt;I for one am excited to see where they take this. While I think Android is giving Apple some competition it needs in the mobile space (iPads and Xooms included), it is too iOS like to really challenge Apple creatively speaking. But WebOS, Windows Phone 7, and now this really are very different in their approaches.&lt;/p&gt;

&lt;p&gt;Good work Microsoft! (Woah! That feels weird to say!)&lt;/p&gt;

&lt;p&gt;I guess time will tell whose theory is right (and The Grübes tends to be right) but my guess is when it comes time to ship devices with Windows 8 that there won&amp;#8217;t be one app included that isn&amp;#8217;t specifically written for this new &amp;#8220;shell&amp;#8221;. If not, then they need to fire whoever made that decision.&lt;/p&gt;</content>
            </entry>
        
    
        
            <entry>
                <title>Website update</title>
                <link href="http://benjaminthomas.org/2011-02-22/site-update.html"/>
                <updated>2011-02-22T00:00:00-07:00</updated>
                <id>tag:benjaminthomas.org,2009-10-22:/2011-02-22/site-update</id>
                <content type="html">&lt;p&gt;I&amp;#8217;ve updated this website with a couple small tweaks.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;I now use a smaller font and narrower column width, which I think make it easier for reading.&lt;/p&gt;
&lt;/li&gt;

&lt;li&gt;
&lt;p&gt;I&amp;#8217;ve changed the way &lt;a href='http://benjaminthomas.org/archives/interwebs.html'&gt;links&lt;/a&gt; show up in the feed. Now instead of all the links showing up as one item, they each are their own item and the URL associated with them is for the page I am linking to. This should make it easier to read and bookmark from within a feed reader.&lt;/p&gt;

&lt;p&gt;So, sorry if I spam your feed reader today!&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I&amp;#8217;m hoping to start posting here more regularly. We&amp;#8217;ll see how that goes.&lt;/p&gt;</content>
            </entry>
        
    

</feed>
