<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>greenideas</title>
	<atom:link href="http://mwhenry.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://mwhenry.com/blog</link>
	<description>A blog by Matt Henry</description>
	<lastBuildDate>Fri, 02 Jul 2010 23:26:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Responsive Web Design for Mobile</title>
		<link>http://mwhenry.com/blog/2010/07/responsive-web-design-for-mobile/</link>
		<comments>http://mwhenry.com/blog/2010/07/responsive-web-design-for-mobile/#comments</comments>
		<pubDate>Fri, 02 Jul 2010 22:36:32 +0000</pubDate>
		<dc:creator>Matt Henry</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[responsive]]></category>

		<guid isPermaLink="false">http://mwhenry.com/blog/?p=124</guid>
		<description><![CDATA[Responsive web design is undeniably the new hotness in CSS. If you’re not familiar with the technique, go and read Ethan Marcotte’s amazing article over on A List Apart. What Marcotte has created is a way to create one design that adapts to different resolutions using media queries. There are countless advantages to building sites [...]]]></description>
			<content:encoded><![CDATA[<p>Responsive web design is undeniably the new hotness in CSS. If you’re not familiar with the technique, go and read <a href="http://www.alistapart.com/articles/responsive-web-design/">Ethan Marcotte’s amazing article</a> over on <i>A List Apart</i>. What Marcotte has created is a way to create one design that adapts to different resolutions using <a href="http://www.w3.org/TR/css3-mediaqueries/">media queries</a>.</p>
<p>There are countless advantages to building sites in this way, but arguably the most compelling reason is the ability to share one layout across both desktop and mobile browsers. However, if you’re new to mobile development there are a couple of tricks you’ll need to use in order to make this work. It wasn’t really in the scope of Marcotte’s article to cover the mobile-specific aspects of his technique, so I figured a quick post was in order to fill in the gaps.</p>
<p>The example site we’ll be looking at is a hypothetical site for foodies called <a href="http://mwhenry.com/blog/examples/forkd/">Fork’d</a>. When you look at it in a normal sized desktop browser, It’s got a vertical navigation list and three columns of content. If you resize the window to be a fair bit narrower, you’ll see that the floats disappear, and the navigation as well as all of the content is lined up in a single column. This is the layout we want our mobile users to see. However, what they’re actually going to see is this:</p>
<p><img src="http://mwhenry.com/blog/images/forkd_iphone_tiny.jpg" alt="the site renders very small" style="border:1px solid #ccc" /></p>
<p>Fortunately, we just need a tiny sprinkling of pixie dust to make this work the way we expect it to. We’ll just add this meta tag to our page:</p>
<pre class="code">
<code class="html">
&lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
</code>
</pre>
<p>(For way more info on viewports, check out <a href="http://developer.apple.com/safari/library/documentation/appleapplications/reference/safariwebcontent/usingtheviewport/usingtheviewport.html">Apple’s documentation on the subject</a>.)</p>
<p>Once we put that in place, the Fork’d site renders like this:</p>
<p><img src="http://mwhenry.com/blog/images/forkd_iphone.jpg" alt="the site renders at the correct resolution" style="border:1px solid #ccc" /></p>
<p>Perfect! We now have one layout that works across different desktop screen resolutions as well as (high-end) mobile devices, and the only extra trick we had to employ was to add a single meta tag.</p>
]]></content:encoded>
			<wfw:commentRss>http://mwhenry.com/blog/2010/07/responsive-web-design-for-mobile/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ugly font-variant bug</title>
		<link>http://mwhenry.com/blog/2010/04/ugly-font-variant-bug/</link>
		<comments>http://mwhenry.com/blog/2010/04/ugly-font-variant-bug/#comments</comments>
		<pubDate>Thu, 22 Apr 2010 18:21:52 +0000</pubDate>
		<dc:creator>Matt Henry</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[browsers]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[font-face]]></category>
		<category><![CDATA[typography]]></category>
		<category><![CDATA[webfonts]]></category>

		<guid isPermaLink="false">http://mwhenry.com/blog/?p=96</guid>
		<description><![CDATA[Here’s an annoying little bug that manifests when you try to set a CSS font-variant property (say, small-caps) with a font that doesn’t provide the requested variant. For instance, here is some text in League Gothic, pulled in via @font-face: League Gothic doesn’t have its own small caps variant. So what happens when you tell [...]]]></description>
			<content:encoded><![CDATA[<p>Here’s an annoying little bug that manifests when you try to set a CSS font-variant property (say, small-caps) with a font that doesn’t provide the requested variant. For instance, here is some text in League Gothic, pulled in via <code>@font-face</code>:</p>
<p><img src="http://mwhenry.com/blog/images/lg-normal.png" alt="Sample of league gothic text, rendered normally"/></p>
<p>League Gothic doesn’t have its own small caps variant. So what happens when you tell the browser to give you one anyway? Here it is with <code>font-variant: small-caps</code> applied as rendered in Firefox:</p>
<p><img src="http://mwhenry.com/blog/images/lg-sc-firefox.png" alt="Sample of league gothic small caps, rendered correctly in Firefox" /></p>
<p>So far, so good. But here’s what you get when you add small caps to League Gothic in Webkit:</p>
<p><img src="http://mwhenry.com/blog/images/lg-sc-webkit.png" alt="Sample of league gothic small caps, which falls back to the default font in Webkit" /></p>
<p>Whoops! Webkit-based browsers (I tested this in Safari, Webkit Nightly, and Chrome for OSX), when they don’t find the specified variant in the font itself, just go to the next font in the stack. In this case, it’s the browser’s default font.</p>
<p>So which behavior is correct? The CSS2 spec essentially left it up to implementors to decide whether or not they would dynamically scale the font to implement small caps. CSS3 removes the ambiguity:</p>
<blockquote><p>If a genuine small-caps font is not available, user agents should simulate a small-caps font, for example by taking a normal font and replacing the lowercase letters by scaled uppercase characters. (<a href="http://www.w3.org/TR/css3-fonts/#small-caps-the-font-variant-property"><cite>CSS fonts module level 3</cite></a>)</p></blockquote>
<p>Although a typographic purist might take issue with this behavior (Bringhurst rails against the practice of “rolling your own” variants by dynamically scaling the existing face), this is what the spec says browsers are supposed to do. And in fact, this is what Firefox does. Webkit, on the other hand, checks each font in the stack in order until it finds one that supplies the desired variant. As in the example above, if there’s nothing else in the stack, it will fall back on the browser’s default font. </p>
<p>Unfortunately, there aren’t really any workarounds for this bug. But it should serve to remind you yet again that it’s super-important to put a good deal of thought into your font stack. Always try to build a stack where all of the fonts are as similar as possible, so when something like this happens, your design doesn’t break too badly.</p>
<p>For reference, or if you’d like to see how your browser of choice handles these cases, <a href="http://mwhenry.com/blog/examples/font-variant/">here are some test cases together on a separate page.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mwhenry.com/blog/2010/04/ugly-font-variant-bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Curb Gem on Ubuntu</title>
		<link>http://mwhenry.com/blog/2010/03/install-curb-gem-on-ubuntu/</link>
		<comments>http://mwhenry.com/blog/2010/03/install-curb-gem-on-ubuntu/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 22:40:11 +0000</pubDate>
		<dc:creator>Matt Henry</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://mwhenry.com/blog/?p=93</guid>
		<description><![CDATA[A quickie: If you’re getting the old ERROR: Failed to build gem native extension. error while trying to install the curb gem, you’ll need to install libcurl4-openssl-dev (along with the ruby1.x-dev package for the version of Ruby you’re running).]]></description>
			<content:encoded><![CDATA[<p>A quickie:</p>
<p>If you’re getting the old</p>
<p><code>ERROR: Failed to build gem native extension.</code></p>
<p>error while trying to install the curb gem, you’ll need to install libcurl4-openssl-dev (along with the ruby1.x-dev package for the version of Ruby you’re running).</p>
]]></content:encoded>
			<wfw:commentRss>http://mwhenry.com/blog/2010/03/install-curb-gem-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Font-face Support Table</title>
		<link>http://mwhenry.com/blog/2009/12/font-face-support-table/</link>
		<comments>http://mwhenry.com/blog/2009/12/font-face-support-table/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 19:26:08 +0000</pubDate>
		<dc:creator>Matt Henry</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[font-face]]></category>
		<category><![CDATA[typography]]></category>
		<category><![CDATA[web standards]]></category>
		<category><![CDATA[webfonts]]></category>

		<guid isPermaLink="false">http://mwhenry.com/blog/?p=84</guid>
		<description><![CDATA[I’ve been sitting on this for a little while, so I thought I’d just go ahead and publish it. For an in-depth explanation of how I got these results, check out this post. In a nutshell, it shows that all of the main desktop browsers support some kind of @font-face format, so as long as [...]]]></description>
			<content:encoded><![CDATA[<p>I’ve been sitting on this for a little while, so I thought I’d just go ahead and publish it. For an in-depth explanation of how I got these results, check out <a href="http://mwhenry.com/blog/2009/11/webfonts-and-mobile-devices/">this post.</a> In a nutshell, it shows that all of the main desktop browsers support some kind of @font-face format, so as long as you use something like the Bulletproof font-face syntax, your fonts will render in all of the the major browsers (e.g. those with &gt; 3% market share). On mobile, it’s still a Mobile Safari-only party.</p>
<table id="fontFaceSupport" class="results" cellspacing="0" width="100%">
<caption>Webfont format support by browser</caption>
<thead>
<tr class="font-types">
<th></th>
<th>Embedded Open Type (.eot)</th>
<th>TrueType (.ttf)</th>
<th>OpenType (otf)</th>
<th>Web Open Font Format (.woff)</th>
<th>SVG (.svg)</th>
</tr>
<tr>
<th colspan="6">Mobile Browsers<a href="#fontFaceSupport-note1"><sup>1</sup></a></th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="6"><a href="#fontFaceSupport"><sup id="fontFaceSupport-note1">1</sup></a> I haven’t had a chance to test Mozilla’s portable offerings</td>
</tr>
</tfoot>
<tbody>
<tr>
<th>Mobile IE (≤ WinMo 6.5)</th>
<td class="no">No</td>
<td class="no">No</td>
<td class="no">No</td>
<td class="no">No</td>
<td class="no">No</td>
</tr>
<tr>
<th>Opera Mini (≤ v4.2)</th>
<td class="no">No</td>
<td class="no">No</td>
<td class="no">No</td>
<td class="no">No</td>
<td class="no">No</td>
</tr>
<tr>
<th>Opera Mobile (9.7 Beta WinMo)</th>
<td class="no">No</td>
<td class="no">No</td>
<td class="no">No</td>
<td class="no">No</td>
<td class="no">No</td>
</tr>
<tr>
<th>Palm WebOS </th>
<td class="no">No</td>
<td class="no">No</td>
<td class="no">No</td>
<td class="no">No</td>
<td class="no">No</td>
</tr>
<tr>
<th>Mobile Safari (3.1)</th>
<td class="no">No</td>
<td class="no">No</td>
<td class="no">No</td>
<td class="no">No</td>
<td class="yes">Yes!</td>
</tr>
<tr>
<th>Android (≥ 2.2 SDK)</th>
<td class="no">No</td>
<td class="yes">Yes</td>
<td class="yes">Yes</td>
<td class="no">No</td>
<td class="no">No</td>
</tr>
</tbody>
<thead>
<tr>
<th colspan="6">Desktop Browsers (Incomplete. I’ll be filling this in more over time)</th>
</tr>
</thead>
<tbody>
<tr>
<th>IE (≥ 5.5)</th>
<td class="yes">Yes</td>
<td class="no">No</td>
<td class="no">No</td>
<td class="no">No</td>
<td class="no">No</td>
</tr>
<tr>
<th>Firefox</th>
<td class="no">No</td>
<td class="yes">Yes (≥ 3.5)</td>
<td class="yes">Yes (≥ 3.5)</td>
<td class="yes">Yes (≥ 3.6)</td>
<td class="no">No</td>
</tr>
<tr>
<th>Safari</th>
<td class="no">No</td>
<td class="yes">Yes (≥ 3.1)</td>
<td class="yes">Yes (≥ 3.1)</td>
<td class="no">No</td>
<td class="yes">Yes (≥ 3.1)</td>
</tr>
<tr>
<th>Opera</th>
<td class="no">No</td>
<td class="yes">Yes</td>
<td class="yes">Yes</td>
<td class="no">No</td>
<td class="yes">Yes</td>
</tr>
<tr>
<th>Chrome</th>
<td class="no">No</td>
<td class="no">No</td>
<td class="no">No</td>
<td class="no">No</td>
<td class="yes">Yes (≥ 3.0)</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://mwhenry.com/blog/2009/12/font-face-support-table/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Shiny CSS-only iPhone Buttons</title>
		<link>http://mwhenry.com/blog/2009/11/shiny-css-only-iphone-buttons/</link>
		<comments>http://mwhenry.com/blog/2009/11/shiny-css-only-iphone-buttons/#comments</comments>
		<pubDate>Fri, 27 Nov 2009 19:24:50 +0000</pubDate>
		<dc:creator>Matt Henry</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[mobile]]></category>

		<guid isPermaLink="false">http://mwhenry.com/blog/?p=80</guid>
		<description><![CDATA[Just a quickie: I came up with these CSS-only iPhone-style buttons as part of a bigger pet project I’m working on. They make heavy use of -webkit-gradient instead of the typical PNG-based solution you typically see out there, such as in iUI. The CSS is here, and be sure to check out the example buttons. [...]]]></description>
			<content:encoded><![CDATA[<p>Just a quickie: I came up with these CSS-only iPhone-style buttons as part of a bigger pet project I’m working on. They make heavy use of <code>-webkit-gradient</code> instead of the typical PNG-based solution you typically see out there, such as in iUI.</p>
<p>The CSS is <a href="/blog/examples/iphone_buttons/styles/ui.css">here</a>, and be sure to check out the <a href="/blog/examples/iphone_buttons/">example buttons</a>.</p>
<p>The one thing I’m not crazy about when you use these styles on an actual device is that the normal <code>:active</code> state doesn’t get triggered, so I kind of had to half-ass it with a <code>:hover</code> so you’d see the “active” style as the button sheet eases out (if you’ve wired the transitions together).</p>
<p>Enjoy, and please let me know if you find them useful.</p>
]]></content:encoded>
			<wfw:commentRss>http://mwhenry.com/blog/2009/11/shiny-css-only-iphone-buttons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Webfonts and Mobile Devices</title>
		<link>http://mwhenry.com/blog/2009/11/webfonts-and-mobile-devices/</link>
		<comments>http://mwhenry.com/blog/2009/11/webfonts-and-mobile-devices/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 23:32:55 +0000</pubDate>
		<dc:creator>Matt Henry</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[font-face]]></category>
		<category><![CDATA[typography]]></category>
		<category><![CDATA[web standards]]></category>
		<category><![CDATA[webfonts]]></category>

		<guid isPermaLink="false">http://mwhenry.com/blog/?p=58</guid>
		<description><![CDATA[If you pay even a little attention to emerging trends in Web Standards, you’re no doubt familiar with the explosion in interest in the CSS @font-face property. This property goes back to CSS2, and has been supported in IE as far back as 5.5, but @font-face support is being added at a rapid pace to [...]]]></description>
			<content:encoded><![CDATA[<div class="image"><img src="/blog/images/chunk.gif" alt="" /></div>
<p>If you pay even a little attention to emerging trends in Web Standards, you’re no doubt familiar with the explosion in interest in the CSS <code>@font-face</code> property. This property goes back to CSS2, and has been supported in IE as far back as 5.5, but <code>@font-face</code> support is being added at a rapid pace to other browsers, hence the recent surge of interest.</p>
<p>As someone who spends his days developing for mobile platforms, I wanted to check on how <code>@font-face</code> support was progressing in mobile browsers. Read on to see what I found out.</p>
<h3>Methodology</h3>
<p>I put together a <a href="/blog/examples/font-face-test/">test page</a> I used to check the extent of <code>@font-face</code> support.</p>
<p>I made test elements and separate font families for each font format being tested (e.g. there’s a font family called “ChunkFive SVG” that will only be applied to the <code>span#SVG</code> test element. View source on the sample page for more details). I checked for <code>@font-face</code> support with three criteria (two automated):</p>
<ol>
<li>Ask each test element what font-family it thinks it is being rendered with. This is done via the <code>window.getComputedStyle()</code> method (and why I’m sticking with testing W3C compliant browsers at the moment). If all goes well, the return value should be some variant of ChunkFive.</li>
<li>Check to see if the rendered text is wider than text rendered in the browser’s default font. For the test to pass, it has to be wider, since there are font size bugs in Mobile Safari (see below).</li>
<li>Eyeball it. In some cases, the criteria above aren’t met, so the <code>@font-face</code> implementation is incorrect, but it’s close enough to be saved with some extra TLC.</li>
</ol>
<p>I also included a test case based on <a href="http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/">Paul Irish’s Bulletproof @font-face syntax</a> as a bit of a sanity check and for the sake of having a less contrived example. Lastly, I threw in samples of Cufon and sIFR text, just for comparison.</p>
<p>All that said, here’s what I came up with.</p>
<h3>Results</h3>
<h4>Mobile Safari 3.0</h4>
<p>Support for <code>@font-face</code> in Mobile Safari is currently broken in several frustrating ways:</p>
<ol>
<li>Certain formats (e.g. TTF &amp; OTF), when applied, falsely report that they have been successfully applied. That is, if you check the value of font-family from getComputedStyle() on that element, it will return the <code>@font-face value</code>, even though it doesn’t render as such. (<strong>Update 11/13:</strong> As Paul Irish correctly pointed out in the comments to this post, Opera is actually the only browser that returns the font that’s actually used when <code>getComputedStyle()</code> is called.)</li>
<li>What’s worse, is that when this situation occurs, if no fallback <code>font-family</code> is specified, the text will render with the browser’s default <code>font-family</code> (as you’d expect), but <em>it does so at less than the default font size</em>. Fortunately, if you specify a fallback value in the <code>font-family</code> declaration, it will render the fallback typeface at the correct size, so always remember to pick a degradation path for your fonts.</li>
<li>Another issue with text size arises if you use the SVG format to get around the lack of support for other formats on the iPhone. While you can indeed use SVG fonts in your font-face rules on the iPhone, text rendered in SVG fonts will render at smaller than expected sizes. So if you opt for this strategy, just plan for this consequence, and correct the font sizes accordingly.  Desktop browsers that support SVG fonts (Safari &amp; Chrome) don’t exhibit this bug, so you need to target this font-size fix to mobile browsers. You can easily handle this case with a <code>@media</code> query in your stylesheet. Users of the Bulletproof Syntax will see this bug, since it will fall through to SVG on Mobile Safari.
<div class="image alignRight"><img src="/blog/images/SVGfail.png" alt="Mobile Safari renders SVG text too small" /><span class="caption">SVG fonts on Mobile Safari render too small out of the box.</span></div>
</li>
<li>Another (possibly more academic) issue is that calling <code>getComputedStyle()</code> on text rendered with an SVG font will not return the font-family value in your <code>@font-face</code> declaration, even though it renders with that font family. This could prove troublesome if you’re using Javascript to test the success of your font rendering.</li>
</ol>
<p>So if you need to use <code>@font-face</code> on Mobile Safari today, you should be sure to include an SVG version in your <code>@font-face</code> declaration, and you should patch any text size bugs with a <code>@media</code> query. (If you’re not familiar with @media queries, you should <a href="http://www.w3.org/TR/css3-mediaqueries/">read up on them</a>.)</p>
<p>Incidentally, Opera 10 on the desktop also shows a slight variation in font-size when using SVG fonts as well. However, since it supports TrueType and OpenType formats, this shouldn’t cause any particular issues if you’re using the bulletproof syntax (that’s why it’s bulletproof, yo).</p>
<h4>Android 2.0 SDK</h4>
<p>Short and not so sweet: There is no support in the Android 2.0 SDK for any webfont format. If you’re targeting Android, use Cufon.</p>
<h4>Palm WebOS</h4>
<p>Like Android, there is currently no support whatsoever for @font-face in WebOS. Additionally, in my (not at all extensive) tests, Cufon didn’t even appear to work at all (as in no text was rendered).</p>
<h3>Summary</h3>
<p>In short, if you want your mobile site to join the Nice Web Type bandwagon, you have a little more work to do than for your desktop site. Of all of the modern WebKit-based mobile browsers, only Mobile Safari provides any kind of @font-face support. And even that support is buggy and incomplete. However, if you are aware of these limitations ahead of time (which you ought to be by this point in the post), you have a couple of tricks in your back pocket to keep things running smoothly.</p>
<h3>What’s Next?</h3>
<p>In the next little while, I’ll extend these tests to cover IE on WinMo and also do a similar write-up for <code>@font-face</code> support in desktop browsers and tabulate all of the results in a little more formal manner.</p>
<p><strong>Update:</strong> In case anyone wants to take a look under the hood of these tests without jumping through hoops in Firebug or View Source, the test code is <a href="http://github.com/greenideas/font-face-test">up on Github</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://mwhenry.com/blog/2009/11/webfonts-and-mobile-devices/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>On not knowing _why</title>
		<link>http://mwhenry.com/blog/2009/08/on-not-knowing-_why/</link>
		<comments>http://mwhenry.com/blog/2009/08/on-not-knowing-_why/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 22:35:18 +0000</pubDate>
		<dc:creator>Matt Henry</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[manners]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[_why]]></category>

		<guid isPermaLink="false">http://mwhenry.com/?p=49</guid>
		<description><![CDATA[Sometime this morning, Why the Lucky Stiff basically erased himself from the Internet. He deleted his Twitter &#38; Github accounts, as well as took down the sites at his various domains, including his massively influential “Why’s Poignant Guide to Ruby.” Of course, what you don’t know is why he did it. And nobody could know [...]]]></description>
			<content:encoded><![CDATA[<p>Sometime this morning, Why the Lucky Stiff basically erased himself from the Internet. He deleted his Twitter &amp; Github accounts, as well as took down the sites at his various domains, including his massively influential “Why’s Poignant Guide to Ruby.”</p>
<p>Of course, what you don’t know is why he did it. And nobody could know that unless/until _why himself decides to come back and tell us, for lack of a better word, why. Naturally, that hasn’t stopped folks from guessing out loud. At the moment, the prevailing “wisdom” in the various threads on Hacker News is that _why’s disappeared himself as a response to his identity being disclosed last month. If that’s the case, then I humbly encourage those responsible to fornicate themselves with something rusty. There were no death threats involved, so we’re not at the Kathy Sierra level of offense, but the end result for the web community is the same: somebody who obviously cared a lot about making the web a better place for everyone has decided it’s not worth the abuse.</p>
<p>It should be pretty obvious why I don’t feel particularly inclined to link back to any of the trolls out there who, even if they’re not directly responsible for _why’s decision, <em>are</em> directly responsible for the web being less of a great place to live and work. That said, I do want to point to John Resig’s <a href="http://ejohn.org/blog/eulogy-to-_why/http://ejohn.org/blog/eulogy-to-_why/">“eulogy”</a> for _why, mostly because I wish I could be as positive as he is about this whole thing.</p>
]]></content:encoded>
			<wfw:commentRss>http://mwhenry.com/blog/2009/08/on-not-knowing-_why/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Links for June the Second, 2009</title>
		<link>http://mwhenry.com/blog/2009/06/links-for-june-the-second-2009/</link>
		<comments>http://mwhenry.com/blog/2009/06/links-for-june-the-second-2009/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 20:14:22 +0000</pubDate>
		<dc:creator>Matt Henry</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[closures]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://mwhenry.com/?p=47</guid>
		<description><![CDATA[1 line CSS Grid Framework — Distilling a CSS framework into one line is an interesting experiment, in that it shows essentially what all of the other (bigger than one line) frameworks are doing. Also, if you look at the markup of a site that was built using it, it serves as a pretty good [...]]]></description>
			<content:encoded><![CDATA[<ul>
<li><a href="http://www.vcarrer.com/2009/06/1-line-css-grid-framework.html">1 line CSS Grid Framework</a> — Distilling a CSS framework into one line is an interesting experiment, in that it shows essentially what all of the other (bigger than one line) frameworks are doing. Also, if you look at the markup of a site that was built using it, it serves as a pretty good <em>reductio ad absurdum</em> against CSS frameworks.</li>
<li><a href="http://www.artzstudio.com/2009/04/jquery-performance-rules/">jQuery Performance Rules</a> — A useful collection of best practices that can speed up your jQuery code by non-trivial amounts. I’ll admit that I’m often guilty of sticking the bulk of my code inside of <code>$(function(){...})</code>.</li>
<li><a href="http://haineault.com/blog/105/">jQuery: Inline caching for selectors</a> — If you’re taking the advice of the article linked above and caching your jQuery objects, take a look at this technique for keeping those cached objects available throughout your app without polluting the global namespace (hint: it uses closures).</li>
<li><a href="http://www.railsfire.com/article/procs-and-blocks-and-anonymous-functions">Procs And Blocks And Anonymous Functions</a> — Speaking of closures, this is a decent rundown of the various uses of closures in Ruby.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://mwhenry.com/blog/2009/06/links-for-june-the-second-2009/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>zsh: Scratching a geeky itch</title>
		<link>http://mwhenry.com/blog/2009/04/zsh-scratching-a-geeky-itch/</link>
		<comments>http://mwhenry.com/blog/2009/04/zsh-scratching-a-geeky-itch/#comments</comments>
		<pubDate>Sat, 04 Apr 2009 22:47:50 +0000</pubDate>
		<dc:creator>Matt Henry</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[irb]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[zsh]]></category>

		<guid isPermaLink="false">http://mwhenry.com/?p=40</guid>
		<description><![CDATA[I’ll apologize right out of the gate for the resemblance this post bears to one Rafe Colburn made today. We sit across from each other at work, and we’re both diving into zsh at the moment, so cross-pollination was probably inevitable. The other day, I switched my shell from bash to zsh. Just like Rafe, [...]]]></description>
			<content:encoded><![CDATA[<p>I’ll apologize right out of the gate for the resemblance this post bears to <a href="http://rc3.org/2009/04/04/my-zsh-adventure/">one Rafe Colburn made today</a>. We sit across from each other at work, and we’re both diving into zsh at the moment, so cross-pollination was probably inevitable.</p>
<p>The other day, I switched my shell from bash to zsh. Just like Rafe, I read the <a href="http://friedcpu.wordpress.com/2007/07/24/zsh-the-last-shell-youll-ever-need/">Fried CPU post about zsh</a>, and was convinced to give it a whirl. It’s been in the back of my mind for a while now, since I’ve notice that a lot of people whom I respect (<a href="http://railscasts.com">Ryan Bates</a>, for one) are using it, but the concise list of really powerful features in the Fried CPU article was the tipping point. I’ll admit that, never having switched shells before, I thought it was going to be a heck of a lot more complicated than just typing <code>chsh</code> and replacing “/bin/bash” with “/bin/zsh” in the config file that pops up. Had I known it would be that easy, I would’ve tried it a lot sooner.</p>
<p>At first, I tried copying huge chunks out of the zshrc &amp; other zsh config files that Joe Ferris maintains in a <a href="http://github.com/jferris/config_files/tree/master">repo at Github</a>, but eventually decided I’d get more out of this experiment if I took more bite-sized chunks out of other peoples configurations, and only added them to my own when I understood what they were doing.</p>
<p>That’s when things got out of hand.</p>
<p>When I was copying bits of my old bash configs over to my zshrc, I noticed how disorganized all of my dotfiles were–not just the shell ones, but my irbrc, and vim &amp; emacs configs, etc., etc., etc. So I  basically decided to scrap all of them and take the same approach to them as I was taking with my shell configs. So basically, I’m starting over with Unix, and slowly rebuilding what I’m hoping will be a super-organized and super-optimized environment for future work and play.</p>
<p>If you’re interested in seeing how things develop, you can follow along with my <a href="http://github.com/greenideas/dotfiles/tree/master">dotfiles repo on Github</a>. But what I’m sure will be infinitely more interesting will be to start on your own adventure in Unix configuration. If you go down that road, here are some of the resources I’ve used in rebuilding my environment:</p>
<ul>
<li><a href="http://github.com/jferris/config_files/tree/master">Joe Ferris’s config_files repo</a>: I mentioned this before, but it’s worth mentioning again, due to its being awesome.
<li><a href="http://dotfiles.org/">dotfiles.org</a>: User-conributed dotfiles for just about every *nix-based utility that uses a text-based configuration file.</li>
<li><a href="http://giantrobots.thoughtbot.com/2008/12/23/script-console-tips">irb &amp; script/console tips</a>: Obviously these are only useful to Rubyists, but if you swing that way, theses are well worth checking out. Ever since I first saw the SQL generated by an ActiveRecord query show up in someone’s script/console, I’ve coveted that functionality. Dan Croak shows how it’s done.</li>
<li>Dr. Nic also has some <a href="http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/">great irb tips</a></li>
<li>Finally, I cribbed a git-aware prompt from <a href="http://smartic.us/2009/04/02/more-git-prompt-goodies-with-zsh/">this screencast</a>. A very neat trick.</li>
</ul>
<p>So yeah, it’s been really fun getting back to basics with my Unix configs. That said, I have had one small hiccup in this process. After going through all of this with my OSX terminal, I went to switch my shiny new <a href="http://intranation.com/entries/2009/03/development-virtual-machines-os-x-using-vmware-and/">Ubuntu JeOS VM</a>’s shell over to zsh, but found that after doing so, my delete key wasn’t behaving like a backspace as it had been doing when I was using bash. Apparently this is a known issue when using zsh or screen over ssh. I still haven’t found a good workaround for this, and so am still using bash in Ubuntu.</p>
<p>All in all, switching from bash to zsh has been an extremely rewarding experience, and definitely one I’d recommend to anyone looking to change up their routine and learn something new and useful.</p>
]]></content:encoded>
			<wfw:commentRss>http://mwhenry.com/blog/2009/04/zsh-scratching-a-geeky-itch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Eyes of March</title>
		<link>http://mwhenry.com/blog/2009/03/the-eyes-of-march/</link>
		<comments>http://mwhenry.com/blog/2009/03/the-eyes-of-march/#comments</comments>
		<pubDate>Sun, 01 Mar 2009 16:05:02 +0000</pubDate>
		<dc:creator>Matt Henry</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[experimonth]]></category>
		<category><![CDATA[photography]]></category>

		<guid isPermaLink="false">http://mwhenry.com/?p=38</guid>
		<description><![CDATA[This month, I’ll be participating in the Experimonth project. The main thrust of Experimonth is that for every month in 2009, participants will do something they (probably) don’t normally do every day in that month and record their experience. For instance, January’s experiment was to eat only raw foods for the entire month. This month’s [...]]]></description>
			<content:encoded><![CDATA[<p>This month, I’ll be participating in the <a href="http://experimonth.com/">Experimonth project</a>. The main thrust of Experimonth is that for every month in 2009, participants will do something they (probably) don’t normally do every day in that month and record their experience. For instance, <a href="http://january.experimonth.com/">January’s experiment</a> was to eat only raw foods for the entire month.</p>
<p>This month’s experiment, called <a href="http://march.experimonth.com/">“The Eyes of March”</a> involves taking or making a picture of something every day. If you want to follow along, there’s a <a href="http://www.flickr.com/groups/eyesofmarch/">Flickr group for the project</a>.</p>
<p>Of course, every experiment needs a hypothesis, so here’s mine: I’m guessing (and indeed hoping) that being on the lookout for things to take pictures of every day will make me more mindful of the visual impact of things that I look at all the time and don’t pay very much attention to. So if by the end of the month, I’ve been able to look at the things around me and notice something new and or important about even a few of them, then the experiment will have been a success. If anything like that happens, I’ll be sure to make a note of it here.</p>
]]></content:encoded>
			<wfw:commentRss>http://mwhenry.com/blog/2009/03/the-eyes-of-march/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
