<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Really checking the content-type/mime_type of a file in OSX and Linux</title>
	<atom:link href="http://www.frederico-araujo.com/2009/06/14/really-finding-the-content-type-of-a-file-in-osx-and-linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.frederico-araujo.com/2009/06/14/really-finding-the-content-type-of-a-file-in-osx-and-linux/</link>
	<description>Howto&#039;s, Tutorials and personal experience</description>
	<lastBuildDate>Thu, 26 Jan 2012 01:09:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Ches</title>
		<link>http://www.frederico-araujo.com/2009/06/14/really-finding-the-content-type-of-a-file-in-osx-and-linux/comment-page-1/#comment-702</link>
		<dc:creator>Ches</dc:creator>
		<pubDate>Mon, 31 May 2010 13:21:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.frederico-araujo.com/?p=95#comment-702</guid>
		<description>Beside the whole point, but as a side note the case construct allows you some regex matching convenience. The above can equivalently be written as:

&lt;pre&gt;&lt;code&gt;
real_type = case content_type
            when /image&#124;png&#124;jpg&#124;jpeg&#124;gif/
              &#039;image&#039;
            when /pdf/
              &#039;pdf&#039;
            # etc.
            end
&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Beside the whole point, but as a side note the case construct allows you some regex matching convenience. The above can equivalently be written as:</p>
<pre><code>
real_type = case content_type
            when /image|png|jpg|jpeg|gif/
              'image'
            when /pdf/
              'pdf'
            # etc.
            end
</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.frederico-araujo.com/2009/06/14/really-finding-the-content-type-of-a-file-in-osx-and-linux/comment-page-1/#comment-628</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 23 Sep 2009 22:19:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.frederico-araujo.com/?p=95#comment-628</guid>
		<description>Barce, over here nignx 0.7 has no more stability issues.
passenger has been updated since then and well tested in 0.7 branch</description>
		<content:encoded><![CDATA[<p>Barce, over here nignx 0.7 has no more stability issues.<br />
passenger has been updated since then and well tested in 0.7 branch</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Barce</title>
		<link>http://www.frederico-araujo.com/2009/06/14/really-finding-the-content-type-of-a-file-in-osx-and-linux/comment-page-1/#comment-623</link>
		<dc:creator>Barce</dc:creator>
		<pubDate>Tue, 08 Sep 2009 17:50:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.frederico-araujo.com/?p=95#comment-623</guid>
		<description>This is pretty useful. Is nginx 7 still having errors?

Thanks!</description>
		<content:encoded><![CDATA[<p>This is pretty useful. Is nginx 7 still having errors?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthew Platte</title>
		<link>http://www.frederico-araujo.com/2009/06/14/really-finding-the-content-type-of-a-file-in-osx-and-linux/comment-page-1/#comment-565</link>
		<dc:creator>Matthew Platte</dc:creator>
		<pubDate>Mon, 15 Jun 2009 02:29:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.frederico-araujo.com/?p=95#comment-565</guid>
		<description>Why yes, yes indeed it&#039;s useful.  This has been on my not-important-enough-to-be-a-bug list since forever.  I had no idea it would be so simple as file --raw --brief.

thanks for the tip!</description>
		<content:encoded><![CDATA[<p>Why yes, yes indeed it&#8217;s useful.  This has been on my not-important-enough-to-be-a-bug list since forever.  I had no idea it would be so simple as file &#8211;raw &#8211;brief.</p>
<p>thanks for the tip!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

