<?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 JonnyReeves.co.uk</title>
	<atom:link href="http://www.jonnyreeves.co.uk/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jonnyreeves.co.uk</link>
	<description>Actionscript, Flash, PHP and stuff</description>
	<lastBuildDate>Thu, 11 Mar 2010 06:50:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Automatically Generating a Maven POM file with ANT by Erik</title>
		<link>http://www.jonnyreeves.co.uk/2010/01/automatically-generating-a-maven-pom-file-with-ant/comment-page-1/#comment-8322</link>
		<dc:creator>Erik</dc:creator>
		<pubDate>Thu, 11 Mar 2010 06:50:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.jonnyreeves.co.uk/?p=151#comment-8322</guid>
		<description>I think there might be a few gotchas that could get you on the right track. 

First, when creating the pom, you should use the distributionManagement element of the POM (see http://maven.apache.org/pom.html#Distribution_Management) for specifying repositories. The remoteRepository element that you specified is not a POM element but rather a sub element to the artifact:deploy ant task (which is how you correctly used it in the &quot;workaround&quot;). I agree that the error message you got is not crystal clear in that regard.

Also, if you specify the trim=&quot;false&quot; attribute on the writepom-task, it will write out the whole pom, by default it for some reason trims &quot;unnecessary&quot; information such as build configuration, repositories, and profiles. (See the bottom of http://maven.apache.org/ant-tasks/examples/write-pom.html for details).

Hope that helps.</description>
		<content:encoded><![CDATA[<p>I think there might be a few gotchas that could get you on the right track. </p>
<p>First, when creating the pom, you should use the distributionManagement element of the POM (see <a href="http://maven.apache.org/pom.html#Distribution_Management)" rel="nofollow">http://maven.apache.org/pom.html#Distribution_Management)</a> for specifying repositories. The remoteRepository element that you specified is not a POM element but rather a sub element to the artifact:deploy ant task (which is how you correctly used it in the &#8220;workaround&#8221;). I agree that the error message you got is not crystal clear in that regard.</p>
<p>Also, if you specify the trim=&#8221;false&#8221; attribute on the writepom-task, it will write out the whole pom, by default it for some reason trims &#8220;unnecessary&#8221; information such as build configuration, repositories, and profiles. (See the bottom of <a href="http://maven.apache.org/ant-tasks/examples/write-pom.html" rel="nofollow">http://maven.apache.org/ant-tasks/examples/write-pom.html</a> for details).</p>
<p>Hope that helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on CakePHP &#8211; Activating User Account via Email by David Lefkon</title>
		<link>http://www.jonnyreeves.co.uk/2008/06/cakephp-activating-user-account-via-email/comment-page-1/#comment-8268</link>
		<dc:creator>David Lefkon</dc:creator>
		<pubDate>Tue, 02 Mar 2010 08:40:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.jonnyreeves.co.uk/?p=42#comment-8268</guid>
		<description>Nice tutorial .. thx!

Made a mod that should allow the activation code an additional day before it expires:

in app/controllers/users_controller:

function register() {
	if (!empty($this-&gt;data)) {
		$this-&gt;User-&gt;create();
		$this-&gt;User-&gt;save($this-&gt;data);
		$this-&gt;Session-&gt;setFlash(&#039;Your account has not been activated yet!&#039;);
		$this-&gt;__sendActivationEmail($this-&gt;User-&gt;getLastInsertID());
		$this-&gt;redirect(&#039;/line&#039;);
	}
}

function __sendActivationEmail($user_id) {
  $user = $this-&gt;User-&gt;find(array(&#039;User.id&#039; =&gt; $user_id), array(&#039;User.id&#039;, &#039;User.email&#039;, &#039;User.username&#039;), null, false);
  if ($user === false) {
          debug(__METHOD__.&quot; failed to retrieve User data for user.id: {$user_id}&quot;);
          return false;
  }
  // Set data for the &quot;view&quot; of the Email
  $this-&gt;set(&#039;activate_url&#039;, &#039;http://&#039; . env(&#039;SERVER_NAME&#039;) . &#039;/users/activate/&#039; . $user[&#039;User&#039;][&#039;id&#039;] . &#039;/&#039; . $this-&gt;User-&gt;getActivationHash());
  $this-&gt;set(&#039;username&#039;, $this-&gt;data[&#039;User&#039;][&#039;username&#039;]);
  $this-&gt;Email-&gt;to = $user[&#039;User&#039;][&#039;email&#039;];
  $this-&gt;Email-&gt;subject = env(&#039;SERVER_NAME&#039;) . &#039; – Please confirm your email address&#039;;
  $this-&gt;Email-&gt;from = &#039;noreply@&#039; . env(&#039;SERVER_NAME&#039;);
  $this-&gt;Email-&gt;template = &#039;user_confirm&#039;;
  $this-&gt;Email-&gt;sendAs = &#039;text&#039;;   // &#039;text&#039;, &#039;html&#039; and &#039;both&#039; are options   
  return $this-&gt;Email-&gt;send();
}
    
function activate($user_id = null, $in_hash = null) {
  $this-&gt;User-&gt;find(array(&#039;User.id&#039; =&gt; $this-&gt;params[&#039;pass&#039;][0]), array(&#039;User.id&#039;, &#039;User.email&#039;, &#039;User.username&#039;), null, false);
  if ($this-&gt;User-&gt;getActivationHash() == $this-&gt;params[&#039;pass&#039;][1] &#124;&#124; $this-&gt;User-&gt;getYesterdaysActivationHash() == $this-&gt;params[&#039;pass&#039;][1])
  {
    // Update the active flag in the database
    $this-&gt;User-&gt;saveField(&#039;active&#039;, 1);
   
    // Let the user know they can now log in!
    $this-&gt;Session-&gt;setFlash(&#039;Your account has been activated, please log in below&#039;);
    $this-&gt;redirect(&#039;login&#039;);
  }
  // Activation failed, render ‘/views/user/activate.ctp’ which should tell the user.
}


... and in app/models/user.php

function getActivationHash()
{
        if (!isset($this-&gt;id)) {
                return false;
        }
        return substr(Security::hash(Configure::read(&#039;Security.salt&#039;) . $this-&gt;field(&#039;created&#039;) . date(&#039;y&#039;) . date(&#039;m&#039;). date(&#039;d&#039;)), 0, 8);
}

function getYesterdaysActivationHash()
{
        if (!isset($this-&gt;id)) {
                return false;
        }
        return substr(Security::hash(Configure::read(&#039;Security.salt&#039;) . $this-&gt;field(&#039;created&#039;) . date(&#039;y&#039;) . date(&#039;m&#039;). date(&#039;d&#039;) - 1), 0, 8);
}</description>
		<content:encoded><![CDATA[<p>Nice tutorial .. thx!</p>
<p>Made a mod that should allow the activation code an additional day before it expires:</p>
<p>in app/controllers/users_controller:</p>
<p>function register() {<br />
	if (!empty($this-&gt;data)) {<br />
		$this-&gt;User-&gt;create();<br />
		$this-&gt;User-&gt;save($this-&gt;data);<br />
		$this-&gt;Session-&gt;setFlash(&#8217;Your account has not been activated yet!&#8217;);<br />
		$this-&gt;__sendActivationEmail($this-&gt;User-&gt;getLastInsertID());<br />
		$this-&gt;redirect(&#8217;/line&#8217;);<br />
	}<br />
}</p>
<p>function __sendActivationEmail($user_id) {<br />
  $user = $this-&gt;User-&gt;find(array(&#8217;User.id&#8217; =&gt; $user_id), array(&#8217;User.id&#8217;, &#8216;User.email&#8217;, &#8216;User.username&#8217;), null, false);<br />
  if ($user === false) {<br />
          debug(__METHOD__.&#8221; failed to retrieve User data for user.id: {$user_id}&#8221;);<br />
          return false;<br />
  }<br />
  // Set data for the &#8220;view&#8221; of the Email<br />
  $this-&gt;set(&#8217;activate_url&#8217;, &#8216;http://&#8217; . env(&#8217;SERVER_NAME&#8217;) . &#8216;/users/activate/&#8217; . $user['User']['id'] . &#8216;/&#8217; . $this-&gt;User-&gt;getActivationHash());<br />
  $this-&gt;set(&#8217;username&#8217;, $this-&gt;data['User']['username']);<br />
  $this-&gt;Email-&gt;to = $user['User']['email'];<br />
  $this-&gt;Email-&gt;subject = env(&#8217;SERVER_NAME&#8217;) . &#8216; – Please confirm your email address&#8217;;<br />
  $this-&gt;Email-&gt;from = &#8216;noreply@&#8217; . env(&#8217;SERVER_NAME&#8217;);<br />
  $this-&gt;Email-&gt;template = &#8216;user_confirm&#8217;;<br />
  $this-&gt;Email-&gt;sendAs = &#8216;text&#8217;;   // &#8216;text&#8217;, &#8216;html&#8217; and &#8216;both&#8217; are options<br />
  return $this-&gt;Email-&gt;send();<br />
}</p>
<p>function activate($user_id = null, $in_hash = null) {<br />
  $this-&gt;User-&gt;find(array(&#8217;User.id&#8217; =&gt; $this-&gt;params['pass'][0]), array(&#8217;User.id&#8217;, &#8216;User.email&#8217;, &#8216;User.username&#8217;), null, false);<br />
  if ($this-&gt;User-&gt;getActivationHash() == $this-&gt;params['pass'][1] || $this-&gt;User-&gt;getYesterdaysActivationHash() == $this-&gt;params['pass'][1])<br />
  {<br />
    // Update the active flag in the database<br />
    $this-&gt;User-&gt;saveField(&#8217;active&#8217;, 1);</p>
<p>    // Let the user know they can now log in!<br />
    $this-&gt;Session-&gt;setFlash(&#8217;Your account has been activated, please log in below&#8217;);<br />
    $this-&gt;redirect(&#8217;login&#8217;);<br />
  }<br />
  // Activation failed, render ‘/views/user/activate.ctp’ which should tell the user.<br />
}</p>
<p>&#8230; and in app/models/user.php</p>
<p>function getActivationHash()<br />
{<br />
        if (!isset($this-&gt;id)) {<br />
                return false;<br />
        }<br />
        return substr(Security::hash(Configure::read(&#8217;Security.salt&#8217;) . $this-&gt;field(&#8217;created&#8217;) . date(&#8217;y') . date(&#8217;m'). date(&#8217;d')), 0, 8);<br />
}</p>
<p>function getYesterdaysActivationHash()<br />
{<br />
        if (!isset($this-&gt;id)) {<br />
                return false;<br />
        }<br />
        return substr(Security::hash(Configure::read(&#8217;Security.salt&#8217;) . $this-&gt;field(&#8217;created&#8217;) . date(&#8217;y') . date(&#8217;m'). date(&#8217;d') &#8211; 1), 0, 8);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Steaming HD Content to the Playstation 3 with Windows Media Player 11 by Fatih</title>
		<link>http://www.jonnyreeves.co.uk/2009/01/steaming-hd-content-to-the-playstation-3-with-windows-media-player-11/comment-page-1/#comment-8241</link>
		<dc:creator>Fatih</dc:creator>
		<pubDate>Fri, 26 Feb 2010 00:50:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.jonnyreeves.co.uk/?p=66#comment-8241</guid>
		<description>Thanks for sharing. These days I am wondering whether I can stream 1080p through homeplugs. Your experience confirms that it works on 720p.</description>
		<content:encoded><![CDATA[<p>Thanks for sharing. These days I am wondering whether I can stream 1080p through homeplugs. Your experience confirms that it works on 720p.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Error 2048 and Flash Policy File Logging by Nikos</title>
		<link>http://www.jonnyreeves.co.uk/2010/02/error-2048-and-flash-policy-file-logging/comment-page-1/#comment-8188</link>
		<dc:creator>Nikos</dc:creator>
		<pubDate>Wed, 17 Feb 2010 16:57:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.jonnyreeves.co.uk/?p=167#comment-8188</guid>
		<description>Good to know ;-)</description>
		<content:encoded><![CDATA[<p>Good to know ;-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on CakePHP &#8211; Activating User Account via Email by Ganzgenau</title>
		<link>http://www.jonnyreeves.co.uk/2008/06/cakephp-activating-user-account-via-email/comment-page-1/#comment-7499</link>
		<dc:creator>Ganzgenau</dc:creator>
		<pubDate>Mon, 21 Dec 2009 16:45:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.jonnyreeves.co.uk/?p=42#comment-7499</guid>
		<description>Thanks so much!</description>
		<content:encoded><![CDATA[<p>Thanks so much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on CakePHP &#8211; Activating User Account via Email by ANAND</title>
		<link>http://www.jonnyreeves.co.uk/2008/06/cakephp-activating-user-account-via-email/comment-page-1/#comment-7209</link>
		<dc:creator>ANAND</dc:creator>
		<pubDate>Tue, 24 Nov 2009 06:59:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.jonnyreeves.co.uk/?p=42#comment-7209</guid>
		<description>hi all...
Actually am getting bellow mentioned error

Missing Component File

Error: The component file was not found.

Error: Create the class ‘Auth’Component in file: app\controllers\components\‘auth’.php



Notice: If you want to customize this error message, create app\views\errors\missing_component_file.ctp



not getting wt is the proble...</description>
		<content:encoded><![CDATA[<p>hi all&#8230;<br />
Actually am getting bellow mentioned error</p>
<p>Missing Component File</p>
<p>Error: The component file was not found.</p>
<p>Error: Create the class ‘Auth’Component in file: app\controllers\components\‘auth’.php</p>
<p>Notice: If you want to customize this error message, create app\views\errors\missing_component_file.ctp</p>
<p>not getting wt is the proble&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on CakePHP &#8211; Activating User Account via Email by Siddhartha</title>
		<link>http://www.jonnyreeves.co.uk/2008/06/cakephp-activating-user-account-via-email/comment-page-1/#comment-7142</link>
		<dc:creator>Siddhartha</dc:creator>
		<pubDate>Tue, 17 Nov 2009 02:39:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.jonnyreeves.co.uk/?p=42#comment-7142</guid>
		<description>Wonderful tutorial.
Just one point to note.

file:// /app/controllers/users_controller.php

Add following line in the UsersController::beforeFilter()
{
...
$this-&gt;Auth-&gt;autoRedirect = false;
...
}
This will allow you to use further checking on login() action.</description>
		<content:encoded><![CDATA[<p>Wonderful tutorial.<br />
Just one point to note.</p>
<p>file:// /app/controllers/users_controller.php</p>
<p>Add following line in the UsersController::beforeFilter()<br />
{<br />
&#8230;<br />
$this-&gt;Auth-&gt;autoRedirect = false;<br />
&#8230;<br />
}<br />
This will allow you to use further checking on login() action.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Actionscript &#8211; Loading Acute and UTF-8 Characters from XML into Dynamic Text with Flash by Elias</title>
		<link>http://www.jonnyreeves.co.uk/2008/06/actionscript-acute-utf-8-data-xml-flash/comment-page-1/#comment-7047</link>
		<dc:creator>Elias</dc:creator>
		<pubDate>Thu, 05 Nov 2009 23:16:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.jonnyreeves.co.uk/?p=54#comment-7047</guid>
		<description>Hi there!

Thanks for the solution, I just bought a template from the Flahoo site and couldn&#039;t translate to spanish (we use a lot of special characters: á é í ó ú ñ, etc...) In this particular case, I saved the XML with an UTF-8 enconding, and also added the System.useCodepage = true; to the very first line of the main SWF file, despite the XML being parsed by external actionscript file.</description>
		<content:encoded><![CDATA[<p>Hi there!</p>
<p>Thanks for the solution, I just bought a template from the Flahoo site and couldn&#8217;t translate to spanish (we use a lot of special characters: á é í ó ú ñ, etc&#8230;) In this particular case, I saved the XML with an UTF-8 enconding, and also added the System.useCodepage = true; to the very first line of the main SWF file, despite the XML being parsed by external actionscript file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on CakePHP &#8211; Open_Basedir Restriction in Effect by Shaun</title>
		<link>http://www.jonnyreeves.co.uk/2008/06/cakephp-open_basedir-restriction-in-effect/comment-page-1/#comment-6523</link>
		<dc:creator>Shaun</dc:creator>
		<pubDate>Sat, 26 Sep 2009 05:51:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.jonnyreeves.co.uk/?p=40#comment-6523</guid>
		<description>The fix didn&#039;t work for me, but I am not using Plesk. I have a feeling this is going to waste my whole day.</description>
		<content:encoded><![CDATA[<p>The fix didn&#8217;t work for me, but I am not using Plesk. I have a feeling this is going to waste my whole day.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The State of Logging in ActionScript 3 by ping.zou</title>
		<link>http://www.jonnyreeves.co.uk/2008/10/the-state-of-logging-in-actionscript-3/comment-page-1/#comment-6240</link>
		<dc:creator>ping.zou</dc:creator>
		<pubDate>Tue, 15 Sep 2009 12:52:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.jonnyreeves.co.uk/?p=62#comment-6240</guid>
		<description>Hello Jonny, 

I am working with Flex SDK 3.4.0 + Flex Builder 3, the error message seems a bit changed. So the update to function getCallerFromStackTrace():
(different delimiters)

{{{
L61 parts = stackTrace.split(&quot;\n\tat &quot;);
L71 callerMethod = parts[3].split(&quot;::&quot;)[0];
}}}</description>
		<content:encoded><![CDATA[<p>Hello Jonny, </p>
<p>I am working with Flex SDK 3.4.0 + Flex Builder 3, the error message seems a bit changed. So the update to function getCallerFromStackTrace():<br />
(different delimiters)</p>
<p>{{{<br />
L61 parts = stackTrace.split(&#8221;\n\tat &#8220;);<br />
L71 callerMethod = parts[3].split(&#8221;::&#8221;)[0];<br />
}}}</p>
]]></content:encoded>
	</item>
</channel>
</rss>
