<?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>Matt&#039;s Blog</title>
	<atom:link href="http://blogs.n1zyy.com/n1zyy/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.n1zyy.com/n1zyy</link>
	<description>It&#039;s a blog.</description>
	<lastBuildDate>Tue, 07 Feb 2012 01:54:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Direct Democracy</title>
		<link>http://blogs.n1zyy.com/n1zyy/2012/02/06/direct-democracy/</link>
		<comments>http://blogs.n1zyy.com/n1zyy/2012/02/06/direct-democracy/#comments</comments>
		<pubDate>Tue, 07 Feb 2012 01:54:45 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blogs.n1zyy.com/n1zyy/?p=3625</guid>
		<description><![CDATA[As luck would have it, I&#8217;ve had multiple discussions lately that centered around the concept of direct democracy. Fundamentally, the power of the United States of America rests with we, the people. (Forgive the grammatical inaccuracy. I was making a point.) But in practice, if you stopped someone on the street and asked who runs America, [...]]]></description>
			<content:encoded><![CDATA[<p>As luck would have it, I&#8217;ve had multiple discussions lately that centered around the concept of direct democracy.</p>
<p>Fundamentally, the power of the United States of America rests with <em>we, the people</em>. (Forgive the grammatical inaccuracy. I was making a point.) But in practice, if you stopped someone on the street and asked who runs America, I&#8217;m pretty sure no one would say &#8220;you and me, buddy!&#8221; You&#8217;d get answers like, &#8220;Obama,&#8221; &#8220;Congress,&#8221; &#8220;Special interests,&#8221; or the political parties.</p>
<p>As a matter of practicality and convenience, since we couldn&#8217;t have all 300 million of us gather in one place to talk, and since we have busy lives to lead, we have appointed some delegates. We pay them a generous salary to do our bidding, and call these employees of ours &#8220;Congress.&#8221; But how many people believe Congress is actually representing their interests? The question is not rhetorical. <a href="http://www.cbsnews.com/8301-503544_162-20125482-503544/congressional-approval-at-all-time-low-of-9-according-to-new-cbs-news-new-york-times-poll/">The answer is 9%</a>.</p>
<p>We hire people to represent us in Congress because we don&#8217;t have the inclination to do it ourselves, and because it&#8217;s not practical for so many people to meet. But I content that both of these premises are wrong.</p>
<p>People talk about politics <em>all the time</em>. We read about politics in the newspaper, and we forward each other political emails. We monitor elections in other states to see if the people who share our political beliefs are elected. When <a href="http://en.wikipedia.org/wiki/Stop_Online_Piracy_Act">a terrible piece of legislation</a> is put forth, millions of people reach out to try to stop it, but feel mildly powerless to effect change. People <em>are</em> involved in their government, and feel like they don&#8217;t have <em>enough</em> involvement.</p>
<p>As for 300 million people meeting, the Internet has changed this. True, it&#8217;s not remotely feasible for 300 million people to gather in a meeting hall. But having 300 million people collaborate on something online? Sites like Facebook and Google handle massively more users than we have citizens. And sites like Wikipedia and Github prove that people can come together and build amazing things.</p>
<p>But when I bring this concept up, there are two problems that <em>everyone</em> I&#8217;ve mentioned it to have raised. I instinctively agree with them, but, thinking more about, I&#8217;m not sure either is worse than status quo.</p>
<p>The first issue is that hackers will have a field day with it. And there&#8217;s some truth here. Electronic voting machines are <em>ridiculously</em> insecure and error-prone, to the point that a huge number of geeks actively oppose the use of electronic voting machines. It&#8217;s one thing to be able to break into my Facebook account and post spam, but it&#8217;s something entirely different to hijack my vote. Security would have to be a key consideration central to the design of such a system, but that&#8217;s a design requirement, not a reason to write the whole thing off as infeasible. But second, opposition on the basis of  security assumes that our system is presently secure. When you do vote for candidates, voting fraud is a known issue, although it&#8217;s not nearly as rampant as in other countries. But how often do you even get to vote on the issues that affect you? You write to your Congressman, who reads your email, but who also hears a lot from lobbyists who can wine-and-dine him in a way you cannot. So I have to wonder if, even if the system were wildly insecure, it would actually give users less of a voice than they have now. I&#8217;m inclined to think that it would still be an improvement.</p>
<p>The second issue is more surprising: do we actually trust people with a vote? Read the comments on any major news site some time, or worse, the comments on Youtube, and you will be horrified at the prospect of <em>those people</em> voting. And then consider all the falsehoods and fake emails that get sent around to try to scare people into voting for their preferred candidate. And it turns out that this question of whether everyone should be able to vote on everything goes all the way back to the American Revolution, and the general answer was &#8220;No,&#8221; which is why we have a representative democracy. It&#8217;s not just that the Founders saw practical issues: it&#8217;s that they didn&#8217;t trust everyone!</p>
<p>But I contend that this, too, is wrong. (<a href="http://en.wikipedia.org/wiki/Direct_democracy#United_States">Sorry, Alexander Hamilton</a>.) There are, admittedly, a ton of people whose ability to vote terrifies me, and I completely agree with many of the observations about the pitfalls of allowing everyone to vote on issues. But I reject the notion that allowing us to pick representatives to make decisions for us somehow solves the problems of tyranny of the majority that the Founders thought were inherent to a direct democracy. And the whole model is based on the offensive notion that our elected officials know better than we do.</p>
<p>To be sure, this isn&#8217;t a simple problem. Given the pace of anything involving the government &#8212; and the fact that incumbents (and special interest groups) have every reason in the world to oppose being replaced by a website &#8212; I can&#8217;t imagine that this could be put in place in less than a decade. But that&#8217;s all the more reason to start thinking about it now.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.n1zyy.com/n1zyy/2012/02/06/direct-democracy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Investments: Good, Great, and Excellent</title>
		<link>http://blogs.n1zyy.com/n1zyy/2012/01/16/investments-good-great-and-excellent/</link>
		<comments>http://blogs.n1zyy.com/n1zyy/2012/01/16/investments-good-great-and-excellent/#comments</comments>
		<pubDate>Tue, 17 Jan 2012 00:58:21 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blogs.n1zyy.com/n1zyy/?p=3610</guid>
		<description><![CDATA[I have very little money invested in either account, but this isn&#8217;t actually about money for those of you who are just skimming the article. 401(k) plan over the past year: A good investment. (Sort of.) &#160; Actively-traded brokerage account I opened with a small amount of savings as an experiment after realizing my bank [...]]]></description>
			<content:encoded><![CDATA[<p>I have very little money invested in either account, but this isn&#8217;t actually about money for those of you who are just skimming the article.</p>
<p>401(k) plan over the past year: A good investment. (Sort of.)</p>
<p><a href="http://blogs.n1zyy.com/n1zyy/files/2012/01/Screen-shot-2012-01-16-at-7.42.02-PM.png"><img class="aligncenter size-full wp-image-3611" title="2.4% ROI" src="http://blogs.n1zyy.com/n1zyy/files/2012/01/Screen-shot-2012-01-16-at-7.42.02-PM.png" alt="" width="581" height="147" /></a></p>
<p>&nbsp;</p>
<p>Actively-traded brokerage account I opened with a small amount of savings as an experiment after realizing my bank was paying me 0.25% interest on that money, and after borrowing <a href="http://www.amazon.com/Little-Still-Market-Books-Profits/dp/0470624159/ref=sr_1_1?ie=UTF8&amp;qid=1326761449&amp;sr=8-1">some concepts from Joel Greenblatt</a> but only investing in companies with excellent analyst recommendations when they dipped below their normal range without substantial cause. (Axis is chopped to not show off my pitiful balance, but the rate of return is approximately 30%.) Overall: Great investment.</p>
<p><a href="http://blogs.n1zyy.com/n1zyy/files/2012/01/Screen-shot-2012-01-16-at-7.37.10-PM.png"><img class="aligncenter size-full wp-image-3612" title="Stock Returns" src="http://blogs.n1zyy.com/n1zyy/files/2012/01/Screen-shot-2012-01-16-at-7.37.10-PM.png" alt="" width="190" height="134" /></a></p>
<p><a href="http://www.hannaford.com/product/Edwards-Key-Lime-Pie/731488.uts#">Key Lime Pie</a>, frozen, bought at supermarket and stored in freezer for whenever I want a slice, even if it&#8217;s not a tenth as good as something you&#8217;d find in a gourmet restaurant or in Key West: <strong>Excellent</strong> investment.</p>
<p><a href="http://blogs.n1zyy.com/n1zyy/files/2012/01/pkg-pies-keylime.png"><img class="aligncenter size-full wp-image-3613" title="Frozen Key Lime Pie" src="http://blogs.n1zyy.com/n1zyy/files/2012/01/pkg-pies-keylime.png" alt="" width="156" height="169" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.n1zyy.com/n1zyy/2012/01/16/investments-good-great-and-excellent/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wireless Network Info Card</title>
		<link>http://blogs.n1zyy.com/n1zyy/2012/01/07/wireless-network-info-card/</link>
		<comments>http://blogs.n1zyy.com/n1zyy/2012/01/07/wireless-network-info-card/#comments</comments>
		<pubDate>Sat, 07 Jan 2012 22:10:41 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blogs.n1zyy.com/n1zyy/?p=3602</guid>
		<description><![CDATA[Like any good geek, I locked down my wireless network a bit after I set it up. I&#8217;m running WPA2, and the password/key was generated with pwqgen, for something sufficiently secure but semi-memorable. I disabled SSID broadcast. My router automatically generated a weird name, which I presume to be two random dictionary words mashed together. [...]]]></description>
			<content:encoded><![CDATA[<p>Like any good geek, I locked down my wireless network a bit after I set it up. I&#8217;m running <a href="http://en.wikipedia.org/wiki/IEEE_802.11i-2004">WPA2</a>, and the password/key was generated with <a href="http://dev.man-online.org/man1/pwqgen/">pwqgen</a>, for something sufficiently secure but semi-memorable. I disabled SSID broadcast. My router automatically generated a weird name, which I presume to be two random dictionary words mashed together. More for congestion-avoidance than security, I also run the router on 5 GHz instead of 2.4 GHz, which limits me to 802.11a and 802.11n. This seems to work with most everything (except for my HTC Inspire cell phone).</p>
<p>The problem is that when people come over, it&#8217;s really tiring to hand them a sheet with the network name and password/key on it, and still have to explain:</p>
<ul>
<li>My network isn&#8217;t any of the ones that pop up on your wireless device, because I turned SSID Broadcast off. You have to manually add it.</li>
<li>It&#8217;s WPA2, not WEP. It&#8217;s also Personal, not Enterprise, so there&#8217;s no username prompt.</li>
<li>The name is weird, because it was auto-generated. Stop asking what it means; it means nothing.</li>
<li>It&#8217;s only on 5 GHz.</li>
</ul>
<p>So I decided I wanted something more than a sheet of notebook paper, but also something that people could &#8220;get&#8221; pretty quickly. I grabbed a photo of the iOS network setup, guessed that Helvetica Neue was a close-enough match for the font, and did a little Photoshop manipulation, ending up with this:</p>
<p><a href="http://blogscdn.n1zyy.com/n1zyy/files/2012/01/NetConf-template-copy.png"><img class="aligncenter size-full wp-image-3603" title="iOS-style Network Config Card" src="http://blogscdn.n1zyy.com/n1zyy/files/2012/01/NetConf-template-copy.png" alt="" width="539" height="314" /></a></p>
<p>(These values are randomized and not my actual credentials.)</p>
<p>My plan (once I get my printer set up and working) is to print a couple copies of this on thick cardstock like an index card and keep them handy for when guests want to use my network.</p>
<p><a href="http://blogscdn.n1zyy.com/random-content/NetConf-template.psd">Photoshop template here</a> [720KB, .psd], if you&#8217;d like.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.n1zyy.com/n1zyy/2012/01/07/wireless-network-info-card/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Blogs are back&#8230;</title>
		<link>http://blogs.n1zyy.com/n1zyy/2012/01/07/blogs-are-back/</link>
		<comments>http://blogs.n1zyy.com/n1zyy/2012/01/07/blogs-are-back/#comments</comments>
		<pubDate>Sat, 07 Jan 2012 19:05:43 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blogs.n1zyy.com/n1zyy/?p=3596</guid>
		<description><![CDATA[Protip: Don&#8217;t accidentally delete the Apache config file for a site. It took me 90 seconds to fix and 24 hours to notice. Oops&#8230; :-[]]></description>
			<content:encoded><![CDATA[<p>Protip: Don&#8217;t accidentally delete the Apache config file for a site. It took me 90 seconds to fix and 24 hours to notice. Oops&#8230; :-[</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.n1zyy.com/n1zyy/2012/01/07/blogs-are-back/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stumped by (13)Permission denied: file permissions deny server access ?</title>
		<link>http://blogs.n1zyy.com/n1zyy/2011/12/08/stumped-by-13permission-denied-file-permissions-deny-server-access/</link>
		<comments>http://blogs.n1zyy.com/n1zyy/2011/12/08/stumped-by-13permission-denied-file-permissions-deny-server-access/#comments</comments>
		<pubDate>Fri, 09 Dec 2011 03:15:22 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blogs.n1zyy.com/n1zyy/?p=3578</guid>
		<description><![CDATA[I was just pretty stumped by the following Apache error, in /var/log/httpd/error_log: [Thu Dec 08 21:53:28 2011] [error] [client 192.168.1.2] (13)Permission denied: file permissions deny server access: /var/www/html/aml/i ndex.html The error implies it&#8217;s a filesystem permissions issue, and the Apache site explains that it&#8217;s almost always related to filesystem permissions, not Apache configuration. But this [...]]]></description>
			<content:encoded><![CDATA[<p>I was just pretty stumped by the following Apache error, in /var/log/httpd/error_log:</p>
<pre>[Thu Dec 08 21:53:28 2011] [error] [client 192.168.1.2] (13)Permission denied: file permissions deny server access: /var/www/html/aml/i
ndex.html</pre>
<p>The error implies it&#8217;s a filesystem permissions issue, and the Apache site explains that it&#8217;s almost always related to filesystem permissions, not Apache configuration. But this was exasperating, because the file ownership was apache.apache, and index.html was chmod 755. Apache could absolutely access it. But then the Apache docs made a passing mention that sometimes it was related to SELinux errors.</p>
<p>Sure enough, that&#8217;s exactly my problem:</p>
<pre>[matt@bos aml]$ ls -alZ
drwxr-xr-x. apache apache unconfined_u:object_r:httpd_sys_content_t:s0 .
drwxr-xr-x. root   root   system_u:object_r:httpd_sys_content_t:s0 ..
-rw-r--r--. apache apache unconfined_u:object_r:httpd_sys_content_t:s0 .htaccess
drwxr-xr-x. apache apache unconfined_u:object_r:user_home_t:s0 images
-rw-r--r--. apache apache unconfined_u:object_r:user_home_t:s0 index.html
drwxr-xr-x. apache apache unconfined_u:object_r:user_home_t:s0 stylesheets</pre>
<p>Note that the directory, and the .htaccess file I touched, have the <code>httpd_sys_content</code> label, which is appropriate here. But the other files show <code>user_home_t</code>. This apparently precludes Apache from being able to see them.</p>
<p>Where this went wrong is that, to get them onto the server, I scp&#8217;ed them from my desktop to my home directory on the webserver, and then cp&#8217;ed them to /var/www/html. In doing so, they picked up the user_home_t label since they were in my home directory.</p>
<p>A quick <code>sudo restorecon -r .</code> got everything sorted out. There may be a more elegant way, but this worked for me.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.n1zyy.com/n1zyy/2011/12/08/stumped-by-13permission-denied-file-permissions-deny-server-access/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>VerifyHostKeyDNS</title>
		<link>http://blogs.n1zyy.com/n1zyy/2011/11/29/verifyhostkeydns/</link>
		<comments>http://blogs.n1zyy.com/n1zyy/2011/11/29/verifyhostkeydns/#comments</comments>
		<pubDate>Tue, 29 Nov 2011 16:33:45 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blogs.n1zyy.com/n1zyy/?p=3563</guid>
		<description><![CDATA[I just happened across something nifty: you can use the VerifyHostKeyDNS option in your SSH configuration to fetch the host&#8217;s public key fingerprint over DNSSEC-secured DNS (with a &#8220;SSHFP&#8221; record type). This is defined in RFC 4255, Using DNS to Securely Publish Secure Shell (SSH) Key Fingerprints if you&#8217;re looking for some light reading.]]></description>
			<content:encoded><![CDATA[<p>I just happened across something nifty: you can use the <a href="http://www.novell.com/coolsolutions/tip/18123.html">VerifyHostKeyDNS</a> option in your SSH configuration to fetch the host&#8217;s public key fingerprint over DNSSEC-secured DNS (with a &#8220;SSHFP&#8221; record type).</p>
<p>This is defined in <a href="http://www.ietf.org/rfc/rfc4255.txt">RFC 4255, Using DNS to Securely Publish Secure Shell (SSH) Key Fingerprints</a> if you&#8217;re looking for some light reading.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.n1zyy.com/n1zyy/2011/11/29/verifyhostkeydns/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>All Shiny and New</title>
		<link>http://blogs.n1zyy.com/n1zyy/2011/11/26/all-shiny-and-new/</link>
		<comments>http://blogs.n1zyy.com/n1zyy/2011/11/26/all-shiny-and-new/#comments</comments>
		<pubDate>Sun, 27 Nov 2011 03:44:59 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blogs.n1zyy.com/n1zyy/?p=3561</guid>
		<description><![CDATA[We&#8217;re now running on a faster virtual machine hosted in Boston, which seems to have excellent uptime. I&#8217;ve also taken this opportunity to upgrade to the latest WordPress. The main page is gone for now, but it avoids the total lunacy of a Ruby on Rails application running for the main page, with PHP for [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;re now running on a faster virtual machine hosted in Boston, which seems to have excellent uptime. I&#8217;ve also taken this opportunity to upgrade to the latest WordPress. The main page is gone for now, but it avoids the total lunacy of a Ruby on Rails application running for the main page, with PHP for the rest of the (WordPress) site with about 100 lines of mod_rewrite insanity to glue it all together. It&#8217;s nice and simple now, like it should be.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.n1zyy.com/n1zyy/2011/11/26/all-shiny-and-new/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Secure random strings in Ruby</title>
		<link>http://blogs.n1zyy.com/n1zyy/2011/10/26/secure-random-strings-in-ruby/</link>
		<comments>http://blogs.n1zyy.com/n1zyy/2011/10/26/secure-random-strings-in-ruby/#comments</comments>
		<pubDate>Wed, 26 Oct 2011 18:12:33 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://blogs.n1zyy.com/n1zyy/?p=3555</guid>
		<description><![CDATA[File this under &#8220;Well-documented features I never noticed before.&#8221; In Ruby, if you need to generate random strings for various purposes, there&#8217;s a native module: SecureRandom. In Ruby 1.8, you can generate Base-64-encoded strings, hex, random numbers (integers), and random bytes. Ruby 1.9 adds the ability to generate UUIDs and URL-safe Base64 strings. Really simple, [...]]]></description>
			<content:encoded><![CDATA[<p>File this under &#8220;Well-documented features I never noticed before.&#8221; In Ruby, if you need to generate random strings for various purposes, there&#8217;s a native module: <a href="http://rubydoc.info/stdlib/securerandom/1.9.2/SecureRandom">SecureRandom</a>.</p>
<p>In Ruby 1.8, you can generate Base-64-encoded strings, hex, random numbers (integers), and random bytes. Ruby 1.9 adds the ability to generate UUIDs and URL-safe Base64 strings. Really simple, and not particularly interesting &#8212; unless, like me, you found yourself thinking you had to write this functionality yourself.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.n1zyy.com/n1zyy/2011/10/26/secure-random-strings-in-ruby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facts about K-Mart</title>
		<link>http://blogs.n1zyy.com/n1zyy/2011/10/22/facts-about-k-mart/</link>
		<comments>http://blogs.n1zyy.com/n1zyy/2011/10/22/facts-about-k-mart/#comments</comments>
		<pubDate>Sat, 22 Oct 2011 04:25:39 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blogs.n1zyy.com/n1zyy/?p=3553</guid>
		<description><![CDATA[Don&#8217;t ask why I was spending my Friday night this way, but I was just reading about Juno, the ISP that I assumed went out of business a decade ago. It turns out that they merged with NetZero (another ISP I forgot all about), and formed United Online. (The interesting thing about their merger is [...]]]></description>
			<content:encoded><![CDATA[<p>Don&#8217;t ask why I was spending my Friday night this way, but I was just reading about <a href="http://en.wikipedia.org/wiki/Juno_Online_Services">Juno</a>, the ISP that I assumed went out of business a decade ago. It turns out that they merged with NetZero (another ISP I forgot all about), and formed United Online. (The interesting thing about their merger is that they were in a ferocious legal battle, and somehow decided that, rather than continuing to sue each other, they were better of merging into one company. That seems like the least likely outcome.) Wikipedia mentioned that United Online also holds a third Internet service &#8212; Kmart&#8217;s BlueLight ISP. This &#8220;WTF&#8221; sentence led to me reading a lot about Kmart.</p>
<p>So first things first, Kmart is still in business. I was surprised to learn this. I asked my roommate and he was too. We both just kind of assumed that, like Juno and NetZero, they had gone out of business when their names faded from our memory years ago. It turns out that Kmart has about 1,300 stores in the United States.</p>
<p>I glossed over the company&#8217;s history, but it&#8217;s interesting to note that the company was started by Sebastian Kresge &#8212; then working as a traveling salesman selling to Woolworth&#8217;s &#8212; in 1897. In 1912 he incorporated S.S. Kresge Corporation. In 1918, the corporation was listed on the NYSE. In 1924, Kresge&#8217;s personal net worth was estimated at $325 million. (In 1924 dollars.) It wasn&#8217;t until 1977 that S.S. Kresge Corporation was renamed to Kmart.</p>
<p>But back to random facts about Kmart. It turns out that, between 2004 and 2005, <strong>Kmart bought Sears</strong>. I apparently failed to notice this at any point in the past 6 years. The purchase <a title="Kmart buys sears for $11 billion" href="http://www.washingtonpost.com/wp-dyn/articles/A56358-2004Nov17.html">was a mere $11 billion</a>. The name was changed to Sears Holdings Corporation. (So it&#8217;s interesting to note that Kmart bought Sears, but Kmart is now a brand of &#8220;Sears Holdings Corporation,&#8221; which gives a confusing sense of who bought who.)</p>
<p>It also turns out that Sears Holding Corporation owns a lot more than I was aware of.</p>
<p>For example, Kmart bought Waldenbooks in 1984, and in 1994, Borders and Waldenbooks merged.</p>
<p>The <a title="OfficeMax history" href="http://en.wikipedia.org/wiki/OfficeMax#History">Kmart-OfficeMax lineage hurts my head</a>, but Kmart more or less bought OfficeMax in 1990 before taking it public in 1995 and then selling off its remaining shares.</p>
<p>Also in 1990, <a title="Kmart acquisition of Sports Authority" href="http://en.wikipedia.org/wiki/The_Sports_Authority#Sports_Authority">Kmart bought Sports Authority</a>. Like with OfficeMax, Sports Authority was spun off from Kmart proper in 1995.</p>
<p>And as for Kmart&#8217;s ISP? It, too, has a confusing history. They started it as a dialup ISP in 1999, as a free service supported by in-browser ads. The company was later spun off from Kmart. In 2001, after becoming a paid service, Kmart bought BlueLight back. In 2002, Kmart filed for bankruptcy, and that&#8217;s when United Online stepped in to purchase BlueLight. (It seems that Kmart filed for bankruptcy protection in 2002. It emerged from bankruptcy in 2003, and in 2004 it purchased Sears.)</p>
<p>Okay, so maybe I&#8217;m a little weird&#8230; But I found this moderately fascinating.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.n1zyy.com/n1zyy/2011/10/22/facts-about-k-mart/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>IMAP Search Musings</title>
		<link>http://blogs.n1zyy.com/n1zyy/2011/10/21/imap-search-musings/</link>
		<comments>http://blogs.n1zyy.com/n1zyy/2011/10/21/imap-search-musings/#comments</comments>
		<pubDate>Fri, 21 Oct 2011 01:19:45 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blogs.n1zyy.com/n1zyy/?p=3550</guid>
		<description><![CDATA[I think most geeks get a ton of email. I&#8217;ve been rather selective in what lists I join (and what mail I just auto-delete at the server level), so I only get perhaps a couple hundred emails a day now. For various ridiculous reasons, searching a mailbox is hard. Most of my mail clients will [...]]]></description>
			<content:encoded><![CDATA[<p>I think most geeks get a ton of email. I&#8217;ve been rather selective in what lists I join (and what mail I just auto-delete at the server level), so I only get perhaps a couple hundred emails a day now.</p>
<p>For various ridiculous reasons, searching a mailbox is hard. Most of my mail clients will do it, but sometimes I really want to do it myself because I want to be more exacting. Lately I&#8217;ve been tinkering more and more with using IMAP from the command line. Partially it&#8217;s that IMAP is really just a little bit unusual and kind of intriguing. But mostly, it&#8217;s just that, from time to time, it&#8217;s easier for me to just send some manual IMAP commands if I know what I&#8217;m doing. (For example, I have absolutely no idea how to subscribe to a particular folder in any of the mail clients I have available. I could wade through the menus and maybe find it, but it&#8217;s easier for me to just <a title="Using Ruby's Net::IMAP to subscribe to a mailbox folder" href="https://gist.github.com/1203568">use Net::IMAP to subscribe to the folder</a>.)</p>
<p>Like most implementations, Ruby&#8217;s Net::IMAP library provides a <a title="Ruby Net::IMAP search" href="http://ruby-doc.org/stdlib-1.9.2/libdoc/net/imap/rdoc/Net/IMAP.html#method-i-search">search</a> method. And, like most implementations, it does a very poor job of documenting what is supported. At the risk of sounding like I&#8217;ve lost my mind, I actually found the <a title="IMAP RFC 3501" href="http://tools.ietf.org/html/rfc3501#section-6.4.4">IMAP RFC (3501)</a> to be the easiest bit of documentation to understand. Below are some examples:</p>
<p>You can chain keys, so the following is a valid search command:</p>
<p><code>FROM "matt" SUBJECT "bacon"</code></p>
<p>But what isn&#8217;t abundantly clear is that search terms are combined with a logical AND, so the above will only match mail from Matt with &#8220;bacon&#8221; in the subject line.</p>
<p>This appears to be the way to get a logical OR instead:</p>
<p><code>(FROM "matt") OR (SUBJECT "bacon")</code></p>
<p>After spending a while trying to get all possible keys for a text search &#8212; e.g., <tt>(FROM "foo") OR (SUBJECT "foo") OR (CC "foo")...</tt> &#8212; I realized that there&#8217;s an easier way: the TEXT key, which searches headers and the body. So for my generic search method, the search simply became <tt>TEXT "foo"</tt>.</p>
<p>You may also find some of the other keys interesting, like the ability to search for <tt>RECENT</tt> or <tt>FLAGGED</tt>. I don&#8217;t intend to provide an exhaustive list here, however.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.n1zyy.com/n1zyy/2011/10/21/imap-search-musings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

