<?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 for Idle Hacking</title>
	<atom:link href="http://www.idle-hacking.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.idle-hacking.com</link>
	<description>Ruby, XUL/Javascript, C/C++, and more...</description>
	<lastBuildDate>Sat, 16 Jan 2010 03:54:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Accessible XUL Window Sizing by Mate</title>
		<link>http://www.idle-hacking.com/2005/09/accessible-xul-window-sizing/comment-page-1/#comment-5814</link>
		<dc:creator>Mate</dc:creator>
		<pubDate>Sat, 16 Jan 2010 03:54:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.idle-hacking.com/2005/09/accessible-xul-window-sizing/#comment-5814</guid>
		<description>It still helps even after five years later you published</description>
		<content:encoded><![CDATA[<p>It still helps even after five years later you published</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on hex2rgb Javascript by taf2</title>
		<link>http://www.idle-hacking.com/2010/01/hex2rgb-javascript/comment-page-1/#comment-5813</link>
		<dc:creator>taf2</dc:creator>
		<pubDate>Fri, 15 Jan 2010 21:38:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.idle-hacking.com/?p=790#comment-5813</guid>
		<description>Ah man that is way better than my implementation!</description>
		<content:encoded><![CDATA[<p>Ah man that is way better than my implementation!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on hex2rgb Javascript by Duncan Beevers</title>
		<link>http://www.idle-hacking.com/2010/01/hex2rgb-javascript/comment-page-1/#comment-5812</link>
		<dc:creator>Duncan Beevers</dc:creator>
		<pubDate>Fri, 15 Jan 2010 19:13:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.idle-hacking.com/?p=790#comment-5812</guid>
		<description>One thing that can really simplify your implementation is understanding the entire &lt;a href=&quot;https://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Global_Functions/ParseInt&quot; rel=&quot;nofollow&quot;&gt;signature of the parseInt method&lt;/a&gt;.

Specifically, the 2nd, optional parameter is the radix of the parse.  By passing 16 as the radix, you get automatic hex string parsing.

I created a squished-down version that utilizes this signature along with eliminating subString expressions by utilizing captures in the regular expression.

http://gist.github.com/278311
.-= Duncan Beevers&#180;s last blog ..&lt;a href=&quot;http://www.dweebd.com/javascript/cookie-path-handling-inconsistencies/&quot; rel=&quot;nofollow&quot;&gt;Cookie Path Handling Inconsistencies&lt;/a&gt; =-.</description>
		<content:encoded><![CDATA[<p>One thing that can really simplify your implementation is understanding the entire <a href="https://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Global_Functions/ParseInt" rel="nofollow">signature of the parseInt method</a>.</p>
<p>Specifically, the 2nd, optional parameter is the radix of the parse.  By passing 16 as the radix, you get automatic hex string parsing.</p>
<p>I created a squished-down version that utilizes this signature along with eliminating subString expressions by utilizing captures in the regular expression.</p>
<p><a href="http://gist.github.com/278311" rel="nofollow">http://gist.github.com/278311</a><br />
<span class="cluv"> Duncan Beevers&#180;s last blog ..<a href="http://www.dweebd.com/javascript/cookie-path-handling-inconsistencies/" rel="nofollow">Cookie Path Handling Inconsistencies</a> <span class="heart_tip_box"><img class="heart_tip" alt="My ComLuv Profile" border="0" width="16" height="14" src="http://www.idle-hacking.com/wp-content/plugins/commentluv/images/littleheart.gif"/></span></span></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Resumable file uploads by Adil</title>
		<link>http://www.idle-hacking.com/2009/03/resumable-file-uploads/comment-page-1/#comment-5789</link>
		<dc:creator>Adil</dc:creator>
		<pubDate>Fri, 08 Jan 2010 14:55:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.idle-hacking.com/?p=627#comment-5789</guid>
		<description>@taf2

exactly the same question that blacky asked was coming to my mind!
thanks for the answer! i will check it and will ask more if i need any help!

thanks

-adil</description>
		<content:encoded><![CDATA[<p>@taf2</p>
<p>exactly the same question that blacky asked was coming to my mind!<br />
thanks for the answer! i will check it and will ask more if i need any help!</p>
<p>thanks</p>
<p>-adil</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Follow up on caches_action and content_for blocks by taf2</title>
		<link>http://www.idle-hacking.com/2009/12/follow-up-on-caches_action-and-content_for-blocks/comment-page-1/#comment-5770</link>
		<dc:creator>taf2</dc:creator>
		<pubDate>Tue, 29 Dec 2009 21:22:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.idle-hacking.com/?p=772#comment-5770</guid>
		<description>Cryo,

   Okay, I figured out why the cache_path is lost.   In the override method  

caches_action_with_content_for

   options = actions.last.dup  

Needs to create a deep copy otherwise somewhere else those options are removed from the original Hash.</description>
		<content:encoded><![CDATA[<p>Cryo,</p>
<p>   Okay, I figured out why the cache_path is lost.   In the override method  </p>
<p>caches_action_with_content_for</p>
<p>   options = actions.last.dup  </p>
<p>Needs to create a deep copy otherwise somewhere else those options are removed from the original Hash.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Follow up on caches_action and content_for blocks by Todd</title>
		<link>http://www.idle-hacking.com/2009/12/follow-up-on-caches_action-and-content_for-blocks/comment-page-1/#comment-5765</link>
		<dc:creator>Todd</dc:creator>
		<pubDate>Sun, 27 Dec 2009 17:57:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.idle-hacking.com/?p=772#comment-5765</guid>
		<description>You are right.   When I circle back to this, I&#039;ll work on a solution.
.-= Todd&#180;s last blog ..&lt;a href=&quot;http://www.idle-hacking.com/2009/12/why-i-like-curb/&quot; rel=&quot;nofollow&quot;&gt;Why I like Curb&lt;/a&gt; =-.</description>
		<content:encoded><![CDATA[<p>You are right.   When I circle back to this, I&#8217;ll work on a solution.<br />
<span class="cluv"> Todd&#180;s last blog ..<a href="http://www.idle-hacking.com/2009/12/why-i-like-curb/" rel="nofollow">Why I like Curb</a> <span class="heart_tip_box"><img class="heart_tip" alt="My ComLuv Profile" border="0" width="16" height="14" src="http://www.idle-hacking.com/wp-content/plugins/commentluv/images/littleheart.gif"/></span></span></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Follow up on caches_action and content_for blocks by Cryo</title>
		<link>http://www.idle-hacking.com/2009/12/follow-up-on-caches_action-and-content_for-blocks/comment-page-1/#comment-5760</link>
		<dc:creator>Cryo</dc:creator>
		<pubDate>Thu, 24 Dec 2009 13:06:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.idle-hacking.com/?p=772#comment-5760</guid>
		<description>Tried it. Seems to work. But the cache key for content_for contents does not consider :cache_path Proc. Below is the example:

1. In Controller
 caches_action_with_content_for :predl,
                :expires_in =&gt; Conf.general[&#039;cache_expire&#039;].minutes,
                :layout =&gt; false,
                :cache_path =&gt; Proc.new{&#124;controller&#124; controller.params.merge({:region =&gt; controller.current_region.name_lat})}
So, I merge external parameter &quot;:region&quot; (which is taken from the user session in my case) into the cache key.


These are the relevant lines from the server log (region is &quot;ua&quot;):
calling our version of the render method # -&gt; predl
caching names: [:description]
use cache: cryo.feta.apress.ru/predl/computer/communications;description :predl -&gt; {:expires_in=&gt;1800 seconds}

Cached fragment hit: views/cryo.feta.apress.ru/ua/predl/computer/communications (34.9ms)

So, the content of the action itself is cached with correct key (views/cryo.feta.apress.ru/ua/predl/computer/communications), but all content_for blocks have no &quot;ua&quot; in their cache_key (cryo.feta.apress.ru/predl/computer/communications;description).

Can&#039;t figure out how to fix it. Seems that rails somewhere inside throws :cache_path option away and the line 
&quot;options = view.controller.class.instance_variable_get(:@action_caches)&quot;
get options without :cache_path.

What should I do get the desired behaviour?

Thank you.</description>
		<content:encoded><![CDATA[<p>Tried it. Seems to work. But the cache key for content_for contents does not consider :cache_path Proc. Below is the example:</p>
<p>1. In Controller<br />
 caches_action_with_content_for :predl,<br />
                :expires_in =&gt; Conf.general['cache_expire'].minutes,<br />
                :layout =&gt; false,<br />
                :cache_path =&gt; Proc.new{|controller| controller.params.merge({:region =&gt; controller.current_region.name_lat})}<br />
So, I merge external parameter &#8220;:region&#8221; (which is taken from the user session in my case) into the cache key.</p>
<p>These are the relevant lines from the server log (region is &#8220;ua&#8221;):<br />
calling our version of the render method # -&gt; predl<br />
caching names: [:description]<br />
use cache: cryo.feta.apress.ru/predl/computer/communications;description :predl -&gt; {:expires_in=&gt;1800 seconds}</p>
<p>Cached fragment hit: views/cryo.feta.apress.ru/ua/predl/computer/communications (34.9ms)</p>
<p>So, the content of the action itself is cached with correct key (views/cryo.feta.apress.ru/ua/predl/computer/communications), but all content_for blocks have no &#8220;ua&#8221; in their cache_key (cryo.feta.apress.ru/predl/computer/communications;description).</p>
<p>Can&#8217;t figure out how to fix it. Seems that rails somewhere inside throws :cache_path option away and the line<br />
&#8220;options = view.controller.class.instance_variable_get(:@action_caches)&#8221;<br />
get options without :cache_path.</p>
<p>What should I do get the desired behaviour?</p>
<p>Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Safe MemCache client wrapper by Joe Grossberg</title>
		<link>http://www.idle-hacking.com/2009/10/safe-memcache-client-wrapper/comment-page-1/#comment-5568</link>
		<dc:creator>Joe Grossberg</dc:creator>
		<pubDate>Mon, 05 Oct 2009 15:54:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.idle-hacking.com/?p=757#comment-5568</guid>
		<description>How do other languages&#039; memcached libraries handle this? Is Ruby the exception (no pun intended) by not handling a stopped memcached server more gracefully?</description>
		<content:encoded><![CDATA[<p>How do other languages&#8217; memcached libraries handle this? Is Ruby the exception (no pun intended) by not handling a stopped memcached server more gracefully?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Safe MemCache client wrapper by Dirceu Pauka Jr.</title>
		<link>http://www.idle-hacking.com/2009/10/safe-memcache-client-wrapper/comment-page-1/#comment-5566</link>
		<dc:creator>Dirceu Pauka Jr.</dc:creator>
		<pubDate>Mon, 05 Oct 2009 13:17:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.idle-hacking.com/?p=757#comment-5566</guid>
		<description>Never stopped to think that if memcached isn’t there it’s a cache miss but that is true.
In one project I&#039;ve to follow (a lot of) url-shorts (redirects). So I&#039;m doing some caching here using a simple LRU script and caching only 1000 redirects. Will use that and work with memcached &#124;&#124; LRUCache. Thanks!
.-= Dirceu Pauka Jr.&#180;s last blog ..&lt;a href=&quot;http://pomoti.com/modulos-do-nginx&quot; rel=&quot;nofollow&quot;&gt;Módulos do Nginx&lt;/a&gt; =-.</description>
		<content:encoded><![CDATA[<p>Never stopped to think that if memcached isn’t there it’s a cache miss but that is true.<br />
In one project I&#8217;ve to follow (a lot of) url-shorts (redirects). So I&#8217;m doing some caching here using a simple LRU script and caching only 1000 redirects. Will use that and work with memcached || LRUCache. Thanks!<br />
<span class="cluv"> Dirceu Pauka Jr.&#180;s last blog ..<a href="http://pomoti.com/modulos-do-nginx" rel="nofollow">Módulos do Nginx</a> <span class="heart_tip_box"><img class="heart_tip" alt="My ComLuv Profile" border="0" width="16" height="14" src="http://www.idle-hacking.com/wp-content/plugins/commentluv/images/littleheart.gif"/></span></span></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on smooth position:fixed in IE by Tom Lancaster</title>
		<link>http://www.idle-hacking.com/2006/02/smooth-positionfixed-in-ie/comment-page-1/#comment-5554</link>
		<dc:creator>Tom Lancaster</dc:creator>
		<pubDate>Fri, 25 Sep 2009 01:48:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.idle-hacking.com/2006/02/smooth-positionfixed-in-ie/#comment-5554</guid>
		<description>This would not stop the flicker for me until I put the css straight in the  of the document. It doesn&#039;t work as a </description>
		<content:encoded><![CDATA[<p>This would not stop the flicker for me until I put the css straight in the  of the document. It doesn&#8217;t work as a</p>
]]></content:encoded>
	</item>
</channel>
</rss>
