<?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 Jeremy Cook</title>
	<atom:link href="http://jeremycook.ca/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://jeremycook.ca</link>
	<description>Random musings on web development and PHP</description>
	<lastBuildDate>Thu, 23 Jan 2014 21:52:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.6.3</generator>
	<item>
		<title>Comment on Installing Imagick under Apache on Windows by Jeremy Cook</title>
		<link>http://jeremycook.ca/2010/06/06/installing-imagick-under-apache-on-windows/comment-page-1/#comment-356803</link>
		<dc:creator><![CDATA[Jeremy Cook]]></dc:creator>
		<pubDate>Thu, 23 Jan 2014 21:52:50 +0000</pubDate>
		<guid isPermaLink="false">http://jeremycook.ca/?p=114#comment-356803</guid>
		<description><![CDATA[The only things I can think of are to double check your php config to make sure the extension is loaded properly and to restart Apache...]]></description>
		<content:encoded><![CDATA[<p>The only things I can think of are to double check your php config to make sure the extension is loaded properly and to restart Apache&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A few Vim Tricks by Jeremy Cook</title>
		<link>http://jeremycook.ca/2013/01/13/a-few-vim-tricks/comment-page-1/#comment-356802</link>
		<dc:creator><![CDATA[Jeremy Cook]]></dc:creator>
		<pubDate>Thu, 23 Jan 2014 21:48:58 +0000</pubDate>
		<guid isPermaLink="false">http://jeremycook.ca/?p=322#comment-356802</guid>
		<description><![CDATA[Hi Marcin,

I don&#039;t remember ever having to wait when using this command but with 4153 php files it doesn&#039;t sound unreasonable... It&#039;s difficult to be any more specific though.

Hope that helps and sorry not to be able to offer any more help.]]></description>
		<content:encoded><![CDATA[<p>Hi Marcin,</p>
<p>I don&#8217;t remember ever having to wait when using this command but with 4153 php files it doesn&#8217;t sound unreasonable&#8230; It&#8217;s difficult to be any more specific though.</p>
<p>Hope that helps and sorry not to be able to offer any more help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Installing Imagick under Apache on Windows by jean</title>
		<link>http://jeremycook.ca/2010/06/06/installing-imagick-under-apache-on-windows/comment-page-1/#comment-356801</link>
		<dc:creator><![CDATA[jean]]></dc:creator>
		<pubDate>Wed, 22 Jan 2014 08:11:34 +0000</pubDate>
		<guid isPermaLink="false">http://jeremycook.ca/?p=114#comment-356801</guid>
		<description><![CDATA[Hello thanks for the post i installed the extensions and its showing and checked in the php extensions list , but when i try your sample code i get &quot;Class &#039;Imagick&#039; not found in C:\wamp\www\imagick.php on line 3&quot; i am using wamp on windows 7 any help please]]></description>
		<content:encoded><![CDATA[<p>Hello thanks for the post i installed the extensions and its showing and checked in the php extensions list , but when i try your sample code i get &#8220;Class &#8216;Imagick&#8217; not found in C:\wamp\www\imagick.php on line 3&#8221; i am using wamp on windows 7 any help please</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A few Vim Tricks by paws77</title>
		<link>http://jeremycook.ca/2013/01/13/a-few-vim-tricks/comment-page-1/#comment-356800</link>
		<dc:creator><![CDATA[paws77]]></dc:creator>
		<pubDate>Thu, 16 Jan 2014 19:40:44 +0000</pubDate>
		<guid isPermaLink="false">http://jeremycook.ca/?p=322#comment-356800</guid>
		<description><![CDATA[Hello Jeremy,

This blog post is more than 1 year old but let me ask one question. In .vimrc I have the following lines: 
set path=**
set suffixesadd=.php
set wildmode=longest,list
set wildmenu
set wildignore+=tmp\*,*.swp,*.zip,*.exe,*\.settings\*,\.classpath,\.project,*.class,\.springBeans,bin\*,target\*,*.jar,*\.git\*

My project has 4153 php files. When I type command :find Request and hit  key it takes few seconds to get list of found classes which have Request in their name. Do you remember if you also had to wait few seconds before results of find command were presented?

Thanks,

Marcin]]></description>
		<content:encoded><![CDATA[<p>Hello Jeremy,</p>
<p>This blog post is more than 1 year old but let me ask one question. In .vimrc I have the following lines:<br />
set path=**<br />
set suffixesadd=.php<br />
set wildmode=longest,list<br />
set wildmenu<br />
set wildignore+=tmp\*,*.swp,*.zip,*.exe,*\.settings\*,\.classpath,\.project,*.class,\.springBeans,bin\*,target\*,*.jar,*\.git\*</p>
<p>My project has 4153 php files. When I type command :find Request and hit  key it takes few seconds to get list of found classes which have Request in their name. Do you remember if you also had to wait few seconds before results of find command were presented?</p>
<p>Thanks,</p>
<p>Marcin</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Google Custom Search Engine by eric</title>
		<link>http://jeremycook.ca/2010/06/27/google-custom-search-engine/comment-page-1/#comment-327809</link>
		<dc:creator><![CDATA[eric]]></dc:creator>
		<pubDate>Mon, 18 Nov 2013 11:38:10 +0000</pubDate>
		<guid isPermaLink="false">http://jeremycook.ca/?p=124#comment-327809</guid>
		<description><![CDATA[Please i have two questions:
1) How can i group the results of my  search by specific url of specific pages
2) How can i use your class to display images as results of my search ?

thks]]></description>
		<content:encoded><![CDATA[<p>Please i have two questions:<br />
1) How can i group the results of my  search by specific url of specific pages<br />
2) How can i use your class to display images as results of my search ?</p>
<p>thks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Installing Imagick under Apache on Windows by Extension Imagick sous Windows 7 x64 et PHP 5.3 &#124; Mayako&#039;s Sanctuary</title>
		<link>http://jeremycook.ca/2010/06/06/installing-imagick-under-apache-on-windows/comment-page-1/#comment-327480</link>
		<dc:creator><![CDATA[Extension Imagick sous Windows 7 x64 et PHP 5.3 &#124; Mayako&#039;s Sanctuary]]></dc:creator>
		<pubDate>Sun, 17 Nov 2013 18:21:18 +0000</pubDate>
		<guid isPermaLink="false">http://jeremycook.ca/?p=114#comment-327480</guid>
		<description><![CDATA[[&#8230;] Elxsy.com Veidrodis.com Php.net (page sur l&#8217;extension) Jeremycook.ca [&#8230;]]]></description>
		<content:encoded><![CDATA[<p>[&#8230;] Elxsy.com Veidrodis.com Php.net (page sur l&#8217;extension) Jeremycook.ca [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Creating a Persistent Login Mechanism by Travis</title>
		<link>http://jeremycook.ca/2010/03/28/creating-a-persistent-login-mechanism/comment-page-1/#comment-269708</link>
		<dc:creator><![CDATA[Travis]]></dc:creator>
		<pubDate>Thu, 19 Sep 2013 15:37:12 +0000</pubDate>
		<guid isPermaLink="false">http://jeremycook.ca/?p=73#comment-269708</guid>
		<description><![CDATA[Yes I figured that, and I did see the date on the original blog post, but I figured since it&#039;s showing up in Google results I&#039;d drop a quick note for others that wander along this way.

Cheers! :)]]></description>
		<content:encoded><![CDATA[<p>Yes I figured that, and I did see the date on the original blog post, but I figured since it&#8217;s showing up in Google results I&#8217;d drop a quick note for others that wander along this way.</p>
<p>Cheers! 🙂</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Creating a Persistent Login Mechanism by Jeremy Cook</title>
		<link>http://jeremycook.ca/2010/03/28/creating-a-persistent-login-mechanism/comment-page-1/#comment-268969</link>
		<dc:creator><![CDATA[Jeremy Cook]]></dc:creator>
		<pubDate>Thu, 19 Sep 2013 02:09:27 +0000</pubDate>
		<guid isPermaLink="false">http://jeremycook.ca/?p=73#comment-268969</guid>
		<description><![CDATA[Good point and I wouldn&#039;t create the token in the way I originally wrote now. In my defence I wrote this post several years ago. :)]]></description>
		<content:encoded><![CDATA[<p>Good point and I wouldn&#8217;t create the token in the way I originally wrote now. In my defence I wrote this post several years ago. 🙂</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Creating a Persistent Login Mechanism by Travis</title>
		<link>http://jeremycook.ca/2010/03/28/creating-a-persistent-login-mechanism/comment-page-1/#comment-268130</link>
		<dc:creator><![CDATA[Travis]]></dc:creator>
		<pubDate>Wed, 18 Sep 2013 13:32:46 +0000</pubDate>
		<guid isPermaLink="false">http://jeremycook.ca/?p=73#comment-268130</guid>
		<description><![CDATA[Just a quick note for yourself or anyone else reading this...

&lt;code&gt;
$token = sha1(uniqid(mt_rand(), true));
&lt;/code&gt;

Is not a secure method for generating tokens, as it&#039;s not nearly random enough (even with the &quot;true&quot; on it) and can be guessed / brute forced by an attacker pretty easily. You should be using something like this:

&lt;code&gt;
$token = bin2hex(openssl_random_pseudo_bytes(20));
&lt;/code&gt;

Which will generate a fully random (or as near as possible) string. And as a bonus, no need to sha1 it. :)]]></description>
		<content:encoded><![CDATA[<p>Just a quick note for yourself or anyone else reading this&#8230;</p>
<p><code><br />
$token = sha1(uniqid(mt_rand(), true));<br />
</code></p>
<p>Is not a secure method for generating tokens, as it&#8217;s not nearly random enough (even with the &#8220;true&#8221; on it) and can be guessed / brute forced by an attacker pretty easily. You should be using something like this:</p>
<p><code><br />
$token = bin2hex(openssl_random_pseudo_bytes(20));<br />
</code></p>
<p>Which will generate a fully random (or as near as possible) string. And as a bonus, no need to sha1 it. 🙂</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Creating a Persistent Login Mechanism by Jeremy Cook</title>
		<link>http://jeremycook.ca/2010/03/28/creating-a-persistent-login-mechanism/comment-page-1/#comment-265567</link>
		<dc:creator><![CDATA[Jeremy Cook]]></dc:creator>
		<pubDate>Mon, 16 Sep 2013 00:51:18 +0000</pubDate>
		<guid isPermaLink="false">http://jeremycook.ca/?p=73#comment-265567</guid>
		<description><![CDATA[Hey Nathanael, thanks for the comment! I don&#039;t think that the issue you raise is really a concern. The contents of the cookie should be unique per user and login session and should therefore never appear on another computer. Of course, if a user logs in from another computer or device then the most recent login will be the one persisted in the database in this scheme. As the token part of the cookie is uniquely generated there should never be an occasion where the same information appears on more than one device. Of course if you wanted to allow persistent logins from the same user from more than one device you&#039;d need to use a different database schema than in the article or store the login tokens in something like APC or Memcache.]]></description>
		<content:encoded><![CDATA[<p>Hey Nathanael, thanks for the comment! I don&#8217;t think that the issue you raise is really a concern. The contents of the cookie should be unique per user and login session and should therefore never appear on another computer. Of course, if a user logs in from another computer or device then the most recent login will be the one persisted in the database in this scheme. As the token part of the cookie is uniquely generated there should never be an occasion where the same information appears on more than one device. Of course if you wanted to allow persistent logins from the same user from more than one device you&#8217;d need to use a different database schema than in the article or store the login tokens in something like APC or Memcache.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
