<?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: validate image dimensions with paperclip</title>
	<atom:link href="http://dev.elevationblog.com/2009/01/31/validate-image-dimensions-with-paperclip/feed/" rel="self" type="application/rss+xml" />
	<link>http://dev.elevationblog.com/2009/01/31/validate-image-dimensions-with-paperclip/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=validate-image-dimensions-with-paperclip</link>
	<description></description>
	<lastBuildDate>Wed, 01 Feb 2012 03:36:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: zhanglijue</title>
		<link>http://dev.elevationblog.com/2009/01/31/validate-image-dimensions-with-paperclip/comment-page-1/#comment-516</link>
		<dc:creator>zhanglijue</dc:creator>
		<pubDate>Tue, 22 Nov 2011 05:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://elevationblog.com/2009/01/31/validate-image-dimensions-with-paperclip#comment-516</guid>
		<description>Safety Buckle




tuxin_tuxin@yahoo.com




http://www.gasgoo.com/auto-products/safety-belts-buckle-426/





At the first level of control in all nuclear reactors, a process of &lt;a href=&quot;http://www.gasgoo.com/auto-products/processing_parts_mould_302/&quot; rel=&quot;nofollow&quot;&gt;Car Mould
&lt;/a&gt; emission by a number of neutron-rich fission isotopes is an important physical process. These delayed neutrons account for about 0.65% of the total neutrons produced in fission, with the remainder (termed &quot;prompt neutrons&quot;) released immediately upon fission. The fission products which produce delayed neutrons have half lives for their decay by &lt;a href=&quot;http://www.gasgoo.com/auto-products/braking_system_484/&quot; rel=&quot;nofollow&quot;&gt;Braking System
&lt;/a&gt; that range from milliseconds to as long as several minutes. Keeping the reactor in the zone of chain-reactivity where delayed neutrons are necessary to achieve a critical mass state, allows time for mechanical devices or human operators to have time to control a &lt;a href=&quot;http://www.gasgoo.com/auto-products/material_and_equipment_305/&quot; rel=&quot;nofollow&quot;&gt;auto equipment
&lt;/a&gt; in &quot;real time&quot;; otherwise the time between achievement of &lt;a href=&quot;http://www.gasgoo.com/auto-products/electricity_electronics_298/&quot; rel=&quot;nofollow&quot;&gt;car electricity
&lt;/a&gt; and &lt;a href=&quot;http://www.gasgoo.com/auto-products/drivetrain_966/&quot; rel=&quot;nofollow&quot;&gt;Drivetrain
&lt;/a&gt; as a result of an exponential power surge from the normal nuclear chain reaction, would be too short to allow for intervention. This division manufactures steel wheels for trucks, buses and agricultural &lt;a href=&quot;http://www.gasgoo.com/auto-products/material_and_equipment_305/&quot; rel=&quot;nofollow&quot;&gt;car material&lt;/a&gt; and complete chassis.
</description>
		<content:encoded><![CDATA[<p>Safety Buckle</p>
<p><a href="mailto:tuxin_tuxin@yahoo.com">tuxin_tuxin@yahoo.com</a></p>
<p><a href="http://www.gasgoo.com/auto-products/safety-belts-buckle-426/" rel="nofollow">http://www.gasgoo.com/auto-products/safety-belts-buckle-426/</a></p>
<p>At the first level of control in all nuclear reactors, a process of <a href="http://www.gasgoo.com/auto-products/processing_parts_mould_302/" rel="nofollow">Car Mould<br />
</a> emission by a number of neutron-rich fission isotopes is an important physical process. These delayed neutrons account for about 0.65% of the total neutrons produced in fission, with the remainder (termed &#8220;prompt neutrons&#8221;) released immediately upon fission. The fission products which produce delayed neutrons have half lives for their decay by <a href="http://www.gasgoo.com/auto-products/braking_system_484/" rel="nofollow">Braking System<br />
</a> that range from milliseconds to as long as several minutes. Keeping the reactor in the zone of chain-reactivity where delayed neutrons are necessary to achieve a critical mass state, allows time for mechanical devices or human operators to have time to control a <a href="http://www.gasgoo.com/auto-products/material_and_equipment_305/" rel="nofollow">auto equipment<br />
</a> in &#8220;real time&#8221;; otherwise the time between achievement of <a href="http://www.gasgoo.com/auto-products/electricity_electronics_298/" rel="nofollow">car electricity<br />
</a> and <a href="http://www.gasgoo.com/auto-products/drivetrain_966/" rel="nofollow">Drivetrain<br />
</a> as a result of an exponential power surge from the normal nuclear chain reaction, would be too short to allow for intervention. This division manufactures steel wheels for trucks, buses and agricultural <a href="http://www.gasgoo.com/auto-products/material_and_equipment_305/" rel="nofollow">car material</a> and complete chassis.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aji</title>
		<link>http://dev.elevationblog.com/2009/01/31/validate-image-dimensions-with-paperclip/comment-page-1/#comment-354</link>
		<dc:creator>aji</dc:creator>
		<pubDate>Thu, 15 Jul 2010 11:39:18 +0000</pubDate>
		<guid isPermaLink="false">http://elevationblog.com/2009/01/31/validate-image-dimensions-with-paperclip#comment-354</guid>
		<description>many thanks for this</description>
		<content:encoded><![CDATA[<p>many thanks for this</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rohan</title>
		<link>http://dev.elevationblog.com/2009/01/31/validate-image-dimensions-with-paperclip/comment-page-1/#comment-353</link>
		<dc:creator>Rohan</dc:creator>
		<pubDate>Mon, 12 Jul 2010 20:44:49 +0000</pubDate>
		<guid isPermaLink="false">http://elevationblog.com/2009/01/31/validate-image-dimensions-with-paperclip#comment-353</guid>
		<description>Ohh thanks...googling helped me land on this quickly and did the job for me</description>
		<content:encoded><![CDATA[<p>Ohh thanks&#8230;googling helped me land on this quickly and did the job for me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jared</title>
		<link>http://dev.elevationblog.com/2009/01/31/validate-image-dimensions-with-paperclip/comment-page-1/#comment-284</link>
		<dc:creator>Jared</dc:creator>
		<pubDate>Tue, 30 Mar 2010 00:02:27 +0000</pubDate>
		<guid isPermaLink="false">http://elevationblog.com/2009/01/31/validate-image-dimensions-with-paperclip#comment-284</guid>
		<description>Thanks for posting the tip Jamie!</description>
		<content:encoded><![CDATA[<p>Thanks for posting the tip Jamie!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jared Moody</title>
		<link>http://dev.elevationblog.com/2009/01/31/validate-image-dimensions-with-paperclip/comment-page-1/#comment-374</link>
		<dc:creator>Jared Moody</dc:creator>
		<pubDate>Tue, 30 Mar 2010 00:02:00 +0000</pubDate>
		<guid isPermaLink="false">http://elevationblog.com/2009/01/31/validate-image-dimensions-with-paperclip#comment-374</guid>
		<description>Thanks for posting the tip Jamie!</description>
		<content:encoded><![CDATA[<p>Thanks for posting the tip Jamie!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie Flournoy</title>
		<link>http://dev.elevationblog.com/2009/01/31/validate-image-dimensions-with-paperclip/comment-page-1/#comment-283</link>
		<dc:creator>Jamie Flournoy</dc:creator>
		<pubDate>Mon, 29 Mar 2010 18:21:16 +0000</pubDate>
		<guid isPermaLink="false">http://elevationblog.com/2009/01/31/validate-image-dimensions-with-paperclip#comment-283</guid>
		<description>Identify hangs when Paperclip invokes it like this:

identify -format &quot;%wx%h&quot; &quot;&quot;[0] 2&gt; /dev/null

note the &quot;&quot; before [0]. Identify sees this:

identify -format %wx%h [0]

and never does anything.

To avoid this make sure you don&#039;t pass a null to from_file. Inside the validate method add this condition around the code above:

def validate
  if self.image &amp;&amp; self.image.queued_for_write[:original]
    # ... dimensions = etc etc
  end
end

and it will stop hanging.</description>
		<content:encoded><![CDATA[<p>Identify hangs when Paperclip invokes it like this:</p>
<p>identify -format &#8220;%wx%h&#8221; &#8220;&#8221;[0] 2&gt; /dev/null</p>
<p>note the &#8220;&#8221; before [0]. Identify sees this:</p>
<p>identify -format %wx%h [0]</p>
<p>and never does anything.</p>
<p>To avoid this make sure you don&#8217;t pass a null to from_file. Inside the validate method add this condition around the code above:</p>
<p>def validate<br />
  if self.image &amp;&amp; self.image.queued_for_write[:original]<br />
    # &#8230; dimensions = etc etc<br />
  end<br />
end</p>
<p>and it will stop hanging.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie Flournoy</title>
		<link>http://dev.elevationblog.com/2009/01/31/validate-image-dimensions-with-paperclip/comment-page-1/#comment-373</link>
		<dc:creator>Jamie Flournoy</dc:creator>
		<pubDate>Mon, 29 Mar 2010 18:21:00 +0000</pubDate>
		<guid isPermaLink="false">http://elevationblog.com/2009/01/31/validate-image-dimensions-with-paperclip#comment-373</guid>
		<description>Identify hangs when Paperclip invokes it like this:

identify -format &quot;%wx%h&quot; &quot;&quot;[0] 2&gt; /dev/null

note the &quot;&quot; before [0]. Identify sees this:

identify -format %wx%h [0]

and never does anything.

To avoid this make sure you don&#039;t pass a null to from_file. Inside the validate method add this condition around the code above:

def validate
  if self.image &amp;&amp; self.image.queued_for_write[:original]
    # ... dimensions = etc etc
  end
end

and it will stop hanging.</description>
		<content:encoded><![CDATA[<p>Identify hangs when Paperclip invokes it like this:</p>
<p>identify -format &#8220;%wx%h&#8221; &#8220;&#8221;[0] 2&gt; /dev/null</p>
<p>note the &#8220;&#8221; before [0]. Identify sees this:</p>
<p>identify -format %wx%h [0]</p>
<p>and never does anything.</p>
<p>To avoid this make sure you don&#8217;t pass a null to from_file. Inside the validate method add this condition around the code above:</p>
<p>def validate<br />
  if self.image &amp;&amp; self.image.queued_for_write[:original]<br />
    # &#8230; dimensions = etc etc<br />
  end<br />
end</p>
<p>and it will stop hanging.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jared</title>
		<link>http://dev.elevationblog.com/2009/01/31/validate-image-dimensions-with-paperclip/comment-page-1/#comment-69</link>
		<dc:creator>Jared</dc:creator>
		<pubDate>Thu, 15 Oct 2009 23:34:22 +0000</pubDate>
		<guid isPermaLink="false">http://elevationblog.com/2009/01/31/validate-image-dimensions-with-paperclip#comment-69</guid>
		<description>@Dave can you post your test code too?</description>
		<content:encoded><![CDATA[<p>@Dave can you post your test code too?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jared Moody</title>
		<link>http://dev.elevationblog.com/2009/01/31/validate-image-dimensions-with-paperclip/comment-page-1/#comment-372</link>
		<dc:creator>Jared Moody</dc:creator>
		<pubDate>Thu, 15 Oct 2009 23:34:00 +0000</pubDate>
		<guid isPermaLink="false">http://elevationblog.com/2009/01/31/validate-image-dimensions-with-paperclip#comment-372</guid>
		<description>@Dave can you post your test code too?</description>
		<content:encoded><![CDATA[<p>@Dave can you post your test code too?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Mauldin</title>
		<link>http://dev.elevationblog.com/2009/01/31/validate-image-dimensions-with-paperclip/comment-page-1/#comment-68</link>
		<dc:creator>Dave Mauldin</dc:creator>
		<pubDate>Thu, 15 Oct 2009 22:57:10 +0000</pubDate>
		<guid isPermaLink="false">http://elevationblog.com/2009/01/31/validate-image-dimensions-with-paperclip#comment-68</guid>
		<description>The code can be seen at http://gist.github.com/211365</description>
		<content:encoded><![CDATA[<p>The code can be seen at <a href="http://gist.github.com/211365" rel="nofollow">http://gist.github.com/211365</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

