<?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: Rounded Corners in Rails</title>
	<atom:link href="http://furui.org/blog/2006/12/18/rounded-corners-in-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://furui.org/blog/2006/12/18/rounded-corners-in-rails/</link>
	<description>Jeff's Log</description>
	<lastBuildDate>Sat, 06 Jan 2007 05:30:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: furui</title>
		<link>http://furui.org/blog/2006/12/18/rounded-corners-in-rails/#comment-33</link>
		<dc:creator>furui</dc:creator>
		<pubDate>Sat, 06 Jan 2007 05:30:57 +0000</pubDate>
		<guid isPermaLink="false">http://furui.org/blog/2006/12/18/rounded-corners-in-rails/#comment-33</guid>
		<description>@Octoberdan,
Ah, right. I&#039;ll update the code to set a limit when I get a chance. Thanks a lot!

Hmm, strange. I first tested the javascript anti-spam plugin with Firefox 2.0.0.1. I&#039;ll try it with 1.5 later and if it doesn&#039;t work, I&#039;ll pull it.</description>
		<content:encoded><![CDATA[<p>@Octoberdan,<br />
Ah, right. I&#8217;ll update the code to set a limit when I get a chance. Thanks a lot!</p>
<p>Hmm, strange. I first tested the javascript anti-spam plugin with Firefox 2.0.0.1. I&#8217;ll try it with 1.5 later and if it doesn&#8217;t work, I&#8217;ll pull it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Octoberdan</title>
		<link>http://furui.org/blog/2006/12/18/rounded-corners-in-rails/#comment-32</link>
		<dc:creator>Octoberdan</dc:creator>
		<pubDate>Sat, 06 Jan 2007 00:45:53 +0000</pubDate>
		<guid isPermaLink="false">http://furui.org/blog/2006/12/18/rounded-corners-in-rails/#comment-32</guid>
		<description>Perhaps you should add validation and reject requests for obscenely large and therefore strenuous images. If this process continues to reside within and be offered by a controller, which is inherently publicly accessible, then  a malicious user with ill intent could theoretically write a script that fires off thousands of requests for large images and create heavy lag if not crash something... And if you implement caching and neglect protection from abuse, then that person could change their script to loop with &quot;w=#{n++}&quot; and cause further trouble. I&#039;m going to try out your code  and see if I can exploit it while its on my server. I&#039;ll report my findings... And by the way, I had to use Internet Explorer to post this comment, Firefox didn&#039;t pass the &quot;javascript test!&quot;</description>
		<content:encoded><![CDATA[<p>Perhaps you should add validation and reject requests for obscenely large and therefore strenuous images. If this process continues to reside within and be offered by a controller, which is inherently publicly accessible, then  a malicious user with ill intent could theoretically write a script that fires off thousands of requests for large images and create heavy lag if not crash something&#8230; And if you implement caching and neglect protection from abuse, then that person could change their script to loop with &#8220;w=#{n++}&#8221; and cause further trouble. I&#8217;m going to try out your code  and see if I can exploit it while its on my server. I&#8217;ll report my findings&#8230; And by the way, I had to use Internet Explorer to post this comment, Firefox didn&#8217;t pass the &#8220;javascript test!&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: furui</title>
		<link>http://furui.org/blog/2006/12/18/rounded-corners-in-rails/#comment-9</link>
		<dc:creator>furui</dc:creator>
		<pubDate>Tue, 19 Dec 2006 03:17:10 +0000</pubDate>
		<guid isPermaLink="false">http://furui.org/blog/2006/12/18/rounded-corners-in-rails/#comment-9</guid>
		<description>@Jaime, To use it, your server must support Ruby on Rails: http://www.rubyonrails.org/

It must also have the RMagick gem installed: http://rmagick.rubyforge.org/

The controller must be installed into a Rails application.

The image file is not necessary. The script generates the image on the fly.

@Jacob, I am going to experiment with fragment caching when the project I am working on approaches beta. At that time, I&#039;ll probably post an updated version of this snippet. This was a rough and fast throw together implementation.</description>
		<content:encoded><![CDATA[<p>@Jaime, To use it, your server must support Ruby on Rails: <a href="http://www.rubyonrails.org/" rel="nofollow">http://www.rubyonrails.org/</a></p>
<p>It must also have the RMagick gem installed: <a href="http://rmagick.rubyforge.org/" rel="nofollow">http://rmagick.rubyforge.org/</a></p>
<p>The controller must be installed into a Rails application.</p>
<p>The image file is not necessary. The script generates the image on the fly.</p>
<p>@Jacob, I am going to experiment with fragment caching when the project I am working on approaches beta. At that time, I&#8217;ll probably post an updated version of this snippet. This was a rough and fast throw together implementation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jacob Radford</title>
		<link>http://furui.org/blog/2006/12/18/rounded-corners-in-rails/#comment-8</link>
		<dc:creator>Jacob Radford</dc:creator>
		<pubDate>Mon, 18 Dec 2006 23:52:29 +0000</pubDate>
		<guid isPermaLink="false">http://furui.org/blog/2006/12/18/rounded-corners-in-rails/#comment-8</guid>
		<description>Can you take advantage of caching?  Then the cost will only hurt on the first call, right?</description>
		<content:encoded><![CDATA[<p>Can you take advantage of caching?  Then the cost will only hurt on the first call, right?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jaime Lassman</title>
		<link>http://furui.org/blog/2006/12/18/rounded-corners-in-rails/#comment-7</link>
		<dc:creator>Jaime Lassman</dc:creator>
		<pubDate>Mon, 18 Dec 2006 19:55:33 +0000</pubDate>
		<guid isPermaLink="false">http://furui.org/blog/2006/12/18/rounded-corners-in-rails/#comment-7</guid>
		<description>What do I need to do to get this to work on my own server?  If I copy the image and the ruby controller, I can&#039;t make it work.  What am I missing?

image http://www.myserver.com/corners/roundedcorners.png

controller file=http://www.myserver.com/corners/tools_controller.rb

the URL http://www.myserver.com/corners/roundedcorners?c=999999&amp;bc=white&amp;w=50&amp;h=50&amp;a=tr gives an error.  What am I missing?</description>
		<content:encoded><![CDATA[<p>What do I need to do to get this to work on my own server?  If I copy the image and the ruby controller, I can&#8217;t make it work.  What am I missing?</p>
<p>image <a href="http://www.myserver.com/corners/roundedcorners.png" rel="nofollow">http://www.myserver.com/corners/roundedcorners.png</a></p>
<p>controller file=http://www.myserver.com/corners/tools_controller.rb</p>
<p>the URL <a href="http://www.myserver.com/corners/roundedcorners?c=999999&amp;bc=white&amp;w=50&amp;h=50&amp;a=tr" rel="nofollow">http://www.myserver.com/corners/roundedcorners?c=999999&amp;bc=white&amp;w=50&amp;h=50&amp;a=tr</a> gives an error.  What am I missing?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: furui</title>
		<link>http://furui.org/blog/2006/12/18/rounded-corners-in-rails/#comment-6</link>
		<dc:creator>furui</dc:creator>
		<pubDate>Mon, 18 Dec 2006 17:57:12 +0000</pubDate>
		<guid isPermaLink="false">http://furui.org/blog/2006/12/18/rounded-corners-in-rails/#comment-6</guid>
		<description>@Derek, That&#039;s a good idea. I might rewrite it as a simple plugin or something, though. It&#039;s a quick hack, actually.

@Martin, In development mode running on a 2.2 GHz Opteron with 512 MB of ram on FreeBSD 6.1 AMD64 via Mongrel, it takes 0.0242~ seconds to completely process each rounded corner. Or, so the logs say. So, that much extra time for each rounded corner.

Processing ToolsController#roundedcorners (for 64.xxx.xxx.xxx at 2006-12-18 00:19:13) [GET]
  Session ID: xxx
  Parameters: {&quot;a&quot;=&gt;&quot;tr&quot;, &quot;w&quot;=&gt;&quot;50&quot;, &quot;bc&quot;=&gt;&quot;red&quot;, &quot;c&quot;=&gt;&quot;999999&quot;, &quot;action&quot;=&gt;&quot;roundedcorners&quot;, &quot;controller&quot;=&gt;&quot;tools&quot;, &quot;h&quot;=&gt;&quot;50&quot;}
Rendering tools/roundedcorners
Sending data 
Completed in 0.02423 (41 reqs/sec) &#124; Rendering: 0.00005 (0%) &#124; 200 OK</description>
		<content:encoded><![CDATA[<p>@Derek, That&#8217;s a good idea. I might rewrite it as a simple plugin or something, though. It&#8217;s a quick hack, actually.</p>
<p>@Martin, In development mode running on a 2.2 GHz Opteron with 512 MB of ram on FreeBSD 6.1 AMD64 via Mongrel, it takes 0.0242~ seconds to completely process each rounded corner. Or, so the logs say. So, that much extra time for each rounded corner.</p>
<p>Processing ToolsController#roundedcorners (for 64.xxx.xxx.xxx at 2006-12-18 00:19:13) [GET]<br />
  Session ID: xxx<br />
  Parameters: {&#8220;a&#8221;=>&#8221;tr&#8221;, &#8220;w&#8221;=>&#8221;50&#8243;, &#8220;bc&#8221;=>&#8221;red&#8221;, &#8220;c&#8221;=>&#8221;999999&#8243;, &#8220;action&#8221;=>&#8221;roundedcorners&#8221;, &#8220;controller&#8221;=>&#8221;tools&#8221;, &#8220;h&#8221;=>&#8221;50&#8243;}<br />
Rendering tools/roundedcorners<br />
Sending data<br />
Completed in 0.02423 (41 reqs/sec) | Rendering: 0.00005 (0%) | 200 OK</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin Smith</title>
		<link>http://furui.org/blog/2006/12/18/rounded-corners-in-rails/#comment-5</link>
		<dc:creator>Martin Smith</dc:creator>
		<pubDate>Mon, 18 Dec 2006 15:17:58 +0000</pubDate>
		<guid isPermaLink="false">http://furui.org/blog/2006/12/18/rounded-corners-in-rails/#comment-5</guid>
		<description>Hi,

How much extra processing does this take, compared to the same page without the corners?

Martin</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>How much extra processing does this take, compared to the same page without the corners?</p>
<p>Martin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derek</title>
		<link>http://furui.org/blog/2006/12/18/rounded-corners-in-rails/#comment-4</link>
		<dc:creator>Derek</dc:creator>
		<pubDate>Mon, 18 Dec 2006 14:21:06 +0000</pubDate>
		<guid isPermaLink="false">http://furui.org/blog/2006/12/18/rounded-corners-in-rails/#comment-4</guid>
		<description>I&#039;ve yet to test this out, but it looks interesting.

Here&#039;s a nitpicky concern: how come you didn&#039;t create this as a helper instead of a controller action?</description>
		<content:encoded><![CDATA[<p>I&#8217;ve yet to test this out, but it looks interesting.</p>
<p>Here&#8217;s a nitpicky concern: how come you didn&#8217;t create this as a helper instead of a controller action?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.155 seconds -->

