<?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 Jamie Nay</title>
	<atom:link href="http://jamienay.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://jamienay.com</link>
	<description>A PHP web developer writing about the web.</description>
	<lastBuildDate>Mon, 26 Jul 2010 20:07:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>Comment on Useful CakePHP Tutorial Roundup for July 03, 2009 by Emil</title>
		<link>http://jamienay.com/2009/07/useful-cakephp-tutorial-roundup-for-july-03-2009/comment-page-1/#comment-7015</link>
		<dc:creator>Emil</dc:creator>
		<pubDate>Mon, 26 Jul 2010 20:07:42 +0000</pubDate>
		<guid isPermaLink="false">http://jamienay.com/?p=222#comment-7015</guid>
		<description>We appreciate you including us in the roundup, Jamie!</description>
		<content:encoded><![CDATA[<p>We appreciate you including us in the roundup, Jamie!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Simple Site Maintenance Mode with CakePHP 1.2 by Pubis</title>
		<link>http://jamienay.com/2009/06/simple-site-maintenance-mode-with-cakephp-12/comment-page-1/#comment-6975</link>
		<dc:creator>Pubis</dc:creator>
		<pubDate>Sun, 18 Jul 2010 08:51:03 +0000</pubDate>
		<guid isPermaLink="false">http://jamienay.com/?p=211#comment-6975</guid>
		<description>Very nice! Worked like a charm together with my custom permissions.</description>
		<content:encoded><![CDATA[<p>Very nice! Worked like a charm together with my custom permissions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A Quick, Dirty and Useful Widget Component for CakePHP by Mark</title>
		<link>http://jamienay.com/2009/06/a-quick-dirty-and-useful-widget-component-for-cakephp/comment-page-1/#comment-6963</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Wed, 14 Jul 2010 12:48:18 +0000</pubDate>
		<guid isPermaLink="false">http://jamienay.com/?p=155#comment-6963</guid>
		<description>Thank you. Thank you! THANK YOU!</description>
		<content:encoded><![CDATA[<p>Thank you. Thank you! THANK YOU!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Cipher Behavior with Zend_Filter for CakePHP 1.3 &#8211; Easy Two-Way Encryption by Jamie</title>
		<link>http://jamienay.com/2010/02/cipher-behavior-with-zend_filter-for-cakephp-1-3-easy-two-way-encryption/comment-page-1/#comment-6930</link>
		<dc:creator>Jamie</dc:creator>
		<pubDate>Tue, 06 Jul 2010 15:41:45 +0000</pubDate>
		<guid isPermaLink="false">http://jamienay.com/?p=547#comment-6930</guid>
		<description>I highly recommend not using Cake&#039;s cipher function, which is found in the Security class. It&#039;s not true encryption. My behavior uses mcrypt, which is a very good php extension that handles two-way encryption. Blowfish is another decent encryption engine. I&#039;d say that you should use either of those before you resort to Cake&#039;s Security::cipher() function, which is a pretty weak encryption tool. Otherwise, I wouldn&#039;t have written this behavior!

Is there a reason why you don&#039;t want to use mcrypt or blowfish?</description>
		<content:encoded><![CDATA[<p>I highly recommend not using Cake&#8217;s cipher function, which is found in the Security class. It&#8217;s not true encryption. My behavior uses mcrypt, which is a very good php extension that handles two-way encryption. Blowfish is another decent encryption engine. I&#8217;d say that you should use either of those before you resort to Cake&#8217;s Security::cipher() function, which is a pretty weak encryption tool. Otherwise, I wouldn&#8217;t have written this behavior!</p>
<p>Is there a reason why you don&#8217;t want to use mcrypt or blowfish?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Cipher Behavior with Zend_Filter for CakePHP 1.3 &#8211; Easy Two-Way Encryption by Louis Stephens</title>
		<link>http://jamienay.com/2010/02/cipher-behavior-with-zend_filter-for-cakephp-1-3-easy-two-way-encryption/comment-page-1/#comment-6929</link>
		<dc:creator>Louis Stephens</dc:creator>
		<pubDate>Tue, 06 Jul 2010 15:32:11 +0000</pubDate>
		<guid isPermaLink="false">http://jamienay.com/?p=547#comment-6929</guid>
		<description>I like what you have done here. I was wondering though, is there a way to achieve this using the built in cipher($key)? Sorry, I am pretty new to cake php, and I was told to use the cipher behavior that was in the cakephp bakery and modify it from using &quot;blowfish&quot; to using the built in &quot;cipher&quot; and to be honest I am quite lost.</description>
		<content:encoded><![CDATA[<p>I like what you have done here. I was wondering though, is there a way to achieve this using the built in cipher($key)? Sorry, I am pretty new to cake php, and I was told to use the cipher behavior that was in the cakephp bakery and modify it from using &#8220;blowfish&#8221; to using the built in &#8220;cipher&#8221; and to be honest I am quite lost.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Auto Paginate Component for CakePHP (Persisting Pagination Limits 2.0) by jayu</title>
		<link>http://jamienay.com/2009/07/auto-paginate-component-for-cakephp-persisting-pagination-limits-20/comment-page-1/#comment-6858</link>
		<dc:creator>jayu</dc:creator>
		<pubDate>Thu, 24 Jun 2010 08:14:49 +0000</pubDate>
		<guid isPermaLink="false">http://jamienay.com/?p=267#comment-6858</guid>
		<description>hello,

I used your component but it shows me error array_combine() [function.array-combine]: Both parameters should have an equal number of elements my code is given below. I just change the name of the component as pagination. 


in events controller 

$this-&gt;Event-&gt;recursive = 0;
		$this-&gt;Pagination-&gt;setPaginate(array(
 		&#039;contain&#039; =&gt; array(&#039;Event&#039;)
 		));
 		$this-&gt;data = $this-&gt;Event-&gt;find(&quot;all&quot;);
 		
 		$this-&gt;set($this-&gt;data, $this-&gt;Paginate());


Thanks</description>
		<content:encoded><![CDATA[<p>hello,</p>
<p>I used your component but it shows me error array_combine() [function.array-combine]: Both parameters should have an equal number of elements my code is given below. I just change the name of the component as pagination. </p>
<p>in events controller </p>
<p>$this-&gt;Event-&gt;recursive = 0;<br />
		$this-&gt;Pagination-&gt;setPaginate(array(<br />
 		&#8216;contain&#8217; =&gt; array(&#8216;Event&#8217;)<br />
 		));<br />
 		$this-&gt;data = $this-&gt;Event-&gt;find(&#8220;all&#8221;);</p>
<p> 		$this-&gt;set($this-&gt;data, $this-&gt;Paginate());</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Zend_Search_Lucene Datasource for CakePHP by Jamie</title>
		<link>http://jamienay.com/2010/01/zend_search_lucene-datasource-for-cakephp/comment-page-1/#comment-6848</link>
		<dc:creator>Jamie</dc:creator>
		<pubDate>Tue, 22 Jun 2010 03:23:50 +0000</pubDate>
		<guid isPermaLink="false">http://jamienay.com/?p=512#comment-6848</guid>
		<description>Joseph - can you post your code from config/database.php, and also any relevant code in your models?</description>
		<content:encoded><![CDATA[<p>Joseph &#8211; can you post your code from config/database.php, and also any relevant code in your models?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Zend_Search_Lucene Datasource for CakePHP by Joseph Le Brech</title>
		<link>http://jamienay.com/2010/01/zend_search_lucene-datasource-for-cakephp/comment-page-1/#comment-6842</link>
		<dc:creator>Joseph Le Brech</dc:creator>
		<pubDate>Mon, 21 Jun 2010 10:16:58 +0000</pubDate>
		<guid isPermaLink="false">http://jamienay.com/?p=512#comment-6842</guid>
		<description>I&#039;m struggling with this error message.

Unable to import DataSource class .ZendsearchluceneSource [CORE\cake\libs\model\connection_manager.php, line 186]

have i missed a step somehow?

I&#039;m using 1.3 for this.</description>
		<content:encoded><![CDATA[<p>I&#8217;m struggling with this error message.</p>
<p>Unable to import DataSource class .ZendsearchluceneSource [CORE\cake\libs\model\connection_manager.php, line 186]</p>
<p>have i missed a step somehow?</p>
<p>I&#8217;m using 1.3 for this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Finding Random Model Records in CakePHP 1.2 by mark</title>
		<link>http://jamienay.com/2009/11/finding-random-model-records-in-cakephp-1-2/comment-page-1/#comment-6828</link>
		<dc:creator>mark</dc:creator>
		<pubDate>Fri, 18 Jun 2010 20:41:07 +0000</pubDate>
		<guid isPermaLink="false">http://jamienay.com/?p=465#comment-6828</guid>
		<description>by the way:
caching the primary keys might actually make your method 100x faster... 
usually those records dont change that often. and new ones dont have to appear right away.
maybe by enabling &quot;cache&quot;=&gt;true/false as parameter?</description>
		<content:encoded><![CDATA[<p>by the way:<br />
caching the primary keys might actually make your method 100x faster&#8230;<br />
usually those records dont change that often. and new ones dont have to appear right away.<br />
maybe by enabling &#8220;cache&#8221;=&gt;true/false as parameter?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Finding Random Model Records in CakePHP 1.2 by mark</title>
		<link>http://jamienay.com/2009/11/finding-random-model-records-in-cakephp-1-2/comment-page-1/#comment-6827</link>
		<dc:creator>mark</dc:creator>
		<pubDate>Fri, 18 Jun 2010 20:37:25 +0000</pubDate>
		<guid isPermaLink="false">http://jamienay.com/?p=465#comment-6827</guid>
		<description>nice idea
but i ended up with using sql internal RAND() because its way faster - especially if the records are getting more and more...

	function __findRandom($options) {
		$type = &#039;first&#039;;
		if (isset($options[&#039;type&#039;]) &amp;&amp; $options[&#039;type&#039;] != &#039;random&#039;) {
			$type = $options[&#039;type&#039;];
			unset($options[&#039;type&#039;]);
		}
		$options[&#039;order&#039;] = &#039;rand()&#039;;
		return $this-&gt;find($type, $options);
	}</description>
		<content:encoded><![CDATA[<p>nice idea<br />
but i ended up with using sql internal RAND() because its way faster &#8211; especially if the records are getting more and more&#8230;</p>
<p>	function __findRandom($options) {<br />
		$type = &#8216;first&#8217;;<br />
		if (isset($options['type']) &amp;&amp; $options['type'] != &#8216;random&#8217;) {<br />
			$type = $options['type'];<br />
			unset($options['type']);<br />
		}<br />
		$options['order'] = &#8216;rand()&#8217;;<br />
		return $this-&gt;find($type, $options);<br />
	}</p>
]]></content:encoded>
	</item>
</channel>
</rss>
