<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Blue Horn Ltd</title>
	<atom:link href="http://bluehorn.co.nz/feed/" rel="self" type="application/rss+xml" />
	<link>http://bluehorn.co.nz</link>
	<description>New Zealand System Development Company (PHP 5, MySQL, Symfony Framework, Apache, Linux)</description>
	<lastBuildDate>Wed, 14 Jul 2010 23:51:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to change CSRF attack message in Symfony 1.2</title>
		<link>http://bluehorn.co.nz/2010/07/15/how-to-change-csrf-attack-message-in-symfony-1-2/</link>
		<comments>http://bluehorn.co.nz/2010/07/15/how-to-change-csrf-attack-message-in-symfony-1-2/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 23:48:05 +0000</pubDate>
		<dc:creator>Sid</dc:creator>
				<category><![CDATA[Symfony Framework]]></category>

		<guid isPermaLink="false">http://bluehorn.co.nz/?p=398</guid>
		<description><![CDATA[I wanted to change the symfony 1.2 CSRF attack message from &#8220;CSRF attack detected.&#8221; to &#8220;This session has expired. Please return to the home page and try again.&#8221;.


The default scary error message is hard coded in sfValidatorCSRFToken.class.php like this:

$this-&#62;addMessage&#40;'csrf_attack', 'CSRF attack detected.'&#41;;

There aren&#8217;t that many clues out there about how to change it without modifying [...]


Related posts:<ol><li><a href='http://bluehorn.co.nz/2010/03/26/how-to-make-symfony-session-to-never-timeout/' rel='bookmark' title='Permanent Link: How to make Symfony session to never timeout'>How to make Symfony session to never timeout</a> <small>This is fo</small></li></ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I wanted to change the symfony 1.2 CSRF attack message from &#8220;CSRF attack detected.&#8221; to &#8220;This session has expired. Please return to the home page and try again.&#8221;.</p>
<p><img src="http://bluehorn.co.nz/wp-content/uploads/2010/07/good_csrf_attack_message.png" alt="" title="good_csrf_attack_message" width="438" height="93" class="aligncenter size-full wp-image-402" /></p>
<p><span id="more-398"></span></p>
<p>The default scary error message is hard coded in sfValidatorCSRFToken.class.php like this:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addMessage</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'csrf_attack'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'CSRF attack detected.'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>There aren&#8217;t that many clues out there about how to change it without modifying the core class either. Kris Wallsmith (Symfony Release Manager) suggested I look at using event dispatcher. Then I found <a href="http://www.symfony-project.org/more-with-symfony/1_4/en/14-Playing-with-Symfony-Config-Cache" target="_blank">his article</a> on the net which gave me more clues.</p>
<p>So here&#8217;s the solution that I ended up with. First let&#8217;s create a listener class and save it in the project lib folder as myTemplateFilterParametersListener.php</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">class</span> myTemplateFilterParametersListener
<span style="color: #009900;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> connect<span style="color: #009900;">&#40;</span>sfEventDispatcher <span style="color: #000088;">$dispatcher</span><span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$dispatcher</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">connect</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'template.filter_parameters'</span><span style="color: #339933;">,</span>
      <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'filterParameters'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> filterParameters<span style="color: #009900;">&#40;</span>sfEvent <span style="color: #000088;">$event</span><span style="color: #339933;">,</span> <span style="color: #000088;">$parameters</span><span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$parameters</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$name</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$param</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
      <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$param</span> instanceof sfForm<span style="color: #009900;">&#41;</span>
      <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$form</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$param</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">/* @var $form sfForm */</span>
&nbsp;
        <span style="color: #000000; font-weight: bold;">self</span><span style="color: #339933;">::</span><span style="color: #004000;">changeCSRFErrorMessage</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$form</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #b1b100;">return</span> <span style="color: #000088;">$parameters</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">public</span> static <span style="color: #000000; font-weight: bold;">function</span> changeCSRFErrorMessage<span style="color: #009900;">&#40;</span>sfForm <span style="color: #000088;">$form</span><span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$errors</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$form</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getErrorSchema</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getNamedErrors</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$errors</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
      <span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$errors</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$i</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$error</span><span style="color: #009900;">&#41;</span>
      <span style="color: #009900;">&#123;</span> <span style="color: #666666; font-style: italic;">/* @var $error sfValidatorError */</span>
&nbsp;
        <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'_csrf_token'</span><span style="color: #009900;">&#41;</span>
        <span style="color: #009900;">&#123;</span>
          <span style="color: #000088;">$validator</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$error</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getValidator</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
          <span style="color: #666666; font-style: italic;">/* @var $validator sfValidatorCSRFToken */</span>
          <span style="color: #000088;">$validator</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setMessage</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'csrf_attack'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'This session has expired. Please return to the home page and try again.'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
      <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Then hook it to the event dispatcher in apps/frontend/config/frontendConfiguration.class.php</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
<span style="color: #000000; font-weight: bold;">class</span> frontendConfiguration <span style="color: #000000; font-weight: bold;">extends</span> sfApplicationConfiguration
<span style="color: #009900;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span>  initialize<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$listener</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> myTemplateFilterParametersListener<span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getConfigCache</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$listener</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">connect</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">dispatcher</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> configure<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#123;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>./symfony cc</p>
<p>That&#8217;s it :)</p>
<p>Use Firebug to test it. Open your webpage containing the form, use Firebug to change the _csrf_token value to trigger CSRF attack error, and you should see &#8220;This session has expired. Please return to the home page and try again.&#8221; error message.</p>


<p>Related posts:<ol><li><a href='http://bluehorn.co.nz/2010/03/26/how-to-make-symfony-session-to-never-timeout/' rel='bookmark' title='Permanent Link: How to make Symfony session to never timeout'>How to make Symfony session to never timeout</a> <small>This is fo</small></li></ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://bluehorn.co.nz/2010/07/15/how-to-change-csrf-attack-message-in-symfony-1-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Can Symfony programmer flip like a ninja?</title>
		<link>http://bluehorn.co.nz/2010/07/05/can-symfony-programmer-flip-like-a-ninja/</link>
		<comments>http://bluehorn.co.nz/2010/07/05/can-symfony-programmer-flip-like-a-ninja/#comments</comments>
		<pubDate>Mon, 05 Jul 2010 04:54:34 +0000</pubDate>
		<dc:creator>Sid</dc:creator>
				<category><![CDATA[Symfony Framework]]></category>

		<guid isPermaLink="false">http://bluehorn.co.nz/?p=396</guid>
		<description><![CDATA[Yes&#8230;

A Symfony programmer, rekarnar, was doing a butterfly twist move


No related posts.
Related posts brought to you by Yet Another Related Posts Plugin.


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Yes&#8230;</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="385" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/LTp8rioRl9M&amp;hl=en_US&amp;fs=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="480" height="385" src="http://www.youtube.com/v/LTp8rioRl9M&amp;hl=en_US&amp;fs=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>A Symfony programmer, <a href="http://www.rekarnar.com/blog" target="_blank">rekarnar</a>, was doing a butterfly twist move</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://bluehorn.co.nz/2010/07/05/can-symfony-programmer-flip-like-a-ninja/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>sfSimpleGoogleSitemapPlugin</title>
		<link>http://bluehorn.co.nz/2010/06/07/sfsimplegooglesitemapplugin/</link>
		<comments>http://bluehorn.co.nz/2010/06/07/sfsimplegooglesitemapplugin/#comments</comments>
		<pubDate>Sun, 06 Jun 2010 16:18:55 +0000</pubDate>
		<dc:creator>Sid</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://bluehorn.co.nz/?p=394</guid>
		<description><![CDATA[Just a thread where people can leave comments/discuss about sfSimpleGoogleSitemapPlugin, a Symfony plugin that I originally wrote more than a year ago.


No related posts.
Related posts brought to you by Yet Another Related Posts Plugin.


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Just a thread where people can leave comments/discuss about <a href="http://www.symfony-project.org/plugins/sfSimpleGoogleSitemapPlugin" target="_blank">sfSimpleGoogleSitemapPlugin, a Symfony plugin</a> that I originally wrote more than a year ago.</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://bluehorn.co.nz/2010/06/07/sfsimplegooglesitemapplugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to make Symfony session to never timeout</title>
		<link>http://bluehorn.co.nz/2010/03/26/how-to-make-symfony-session-to-never-timeout/</link>
		<comments>http://bluehorn.co.nz/2010/03/26/how-to-make-symfony-session-to-never-timeout/#comments</comments>
		<pubDate>Thu, 25 Mar 2010 12:07:34 +0000</pubDate>
		<dc:creator>Sid</dc:creator>
				<category><![CDATA[Symfony Framework]]></category>

		<guid isPermaLink="false">http://bluehorn.co.nz/?p=379</guid>
		<description><![CDATA[This is for Symfony 1.2 and sfGuardPlugin, but may be relevant for newer versions (1.3, 1.4, etc).
Setting timeout to false in factories.yml should&#8217;ve worked, e.g. like this:

all:
  user:
    class: myUser
    param:
      # this should have worked, but did not
     [...]


Related posts:<ol><li><a href='http://bluehorn.co.nz/2010/07/15/how-to-change-csrf-attack-message-in-symfony-1-2/' rel='bookmark' title='Permanent Link: How to change CSRF attack message in Symfony 1.2'>How to change CSRF attack message in Symfony 1.2</a> <small>I wanted t</small></li></ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>This is for Symfony 1.2 and sfGuardPlugin, but may be relevant for newer versions (1.3, 1.4, etc).</p>
<p>Setting timeout to false in factories.yml should&#8217;ve worked, e.g. like this:</p>

<div class="wp_syntax"><div class="code"><pre class="yml" style="font-family:monospace;">all:
  user:
    class: myUser
    param:
      # this should have worked, but did not
      timeout: false</pre></div></div>

<p>But it didn&#8217;t work because I think &#8216;false&#8217; did not get parsed as literal false.<br />
<span id="more-379"></span><br />
Anyway, my hackish workaround is to add the following inside myUser.class.php:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">class</span> myUser <span style="color: #000000; font-weight: bold;">extends</span> sfGuardSecurityUser
<span style="color: #009900;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> initialize<span style="color: #009900;">&#40;</span>sfEventDispatcher <span style="color: #000088;">$dispatcher</span><span style="color: #339933;">,</span> sfStorage <span style="color: #000088;">$storage</span><span style="color: #339933;">,</span> <span style="color: #000088;">$options</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#123;</span>
    <span style="color: #666666; font-style: italic;">// disable timeout</span>
    <span style="color: #000088;">$options</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'timeout'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
    parent<span style="color: #339933;">::</span><span style="color: #004000;">initialize</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$dispatcher</span><span style="color: #339933;">,</span> <span style="color: #000088;">$storage</span><span style="color: #339933;">,</span> <span style="color: #000088;">$options</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #666666; font-style: italic;">// ...</span>
<span style="color: #009900;">&#125;</span></pre></div></div>



<p>Related posts:<ol><li><a href='http://bluehorn.co.nz/2010/07/15/how-to-change-csrf-attack-message-in-symfony-1-2/' rel='bookmark' title='Permanent Link: How to change CSRF attack message in Symfony 1.2'>How to change CSRF attack message in Symfony 1.2</a> <small>I wanted t</small></li></ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://bluehorn.co.nz/2010/03/26/how-to-make-symfony-session-to-never-timeout/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Symfony Reloaded (Symfony 2)</title>
		<link>http://bluehorn.co.nz/2010/02/28/symfony-reloaded-symfony-2/</link>
		<comments>http://bluehorn.co.nz/2010/02/28/symfony-reloaded-symfony-2/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 20:45:59 +0000</pubDate>
		<dc:creator>Sid</dc:creator>
				<category><![CDATA[Symfony Framework]]></category>

		<guid isPermaLink="false">http://bluehorn.co.nz/?p=342</guid>
		<description><![CDATA[Symfony Framework has a preview release (not stable yet) of Symfony version 2 (Symfony Reloaded).
At a glance, by reading the &#8216;read and learn&#8216; section, this new version will be quite different than the previous versions in terms of file and directory structure, components, etc.
Some highlights:

Namespace &#8211; finally PHP has namespace and Symfony will be one [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Symfony Framework has a preview release (not stable yet) of <a href="http://symfony-reloaded.org/" target="_blank">Symfony version 2 (Symfony Reloaded)</a>.</p>
<p style="text-align: left;">At a glance, by reading the &#8216;<a href="http://symfony-reloaded.org/learn" target="_blank">read and learn</a>&#8216; section, this new version will be quite different than the previous versions in terms of file and directory structure, components, etc.</p>
<p style="text-align: left;">Some highlights:</p>
<ul>
<li>Namespace &#8211; finally PHP has namespace and Symfony will be one of the first frameworks to support it.</li>
<li>Bundles &#8211; this is kind of like plugin, but in Symfony 2, most/all the codes are organized in bundles. A bundle consists of PHP, css, javascript, images, etc.</li>
<li>View layer will be even more flexible, due to bundles. I&#8217;m guessing there&#8217;s be no more issue with trying to share codes between &#8216;apps&#8217; (no more apps in Symfony 2, they are all bundles).</li>
<li>More configurable routing.yml &#8211; for example you can specify for a routing to return xml, json, and more.</li>
</ul>
<p>Interesting comparison with other frameworks showing how fast Symfony 2 is, Symfony team claimed it is <a href="http://symfony-reloaded.org/fast" target="_blank">arguably the fastest</a>!</p>
<p>I look forward to spend sometime to get familiar with this new version.</p>
<p>Happy coding!</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://bluehorn.co.nz/2010/02/28/symfony-reloaded-symfony-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>sflive2010 &#8211; Symfony Core Dev in HD videos</title>
		<link>http://bluehorn.co.nz/2010/02/21/sflive2010-symfony-core-dev-in-hd-videos/</link>
		<comments>http://bluehorn.co.nz/2010/02/21/sflive2010-symfony-core-dev-in-hd-videos/#comments</comments>
		<pubDate>Sat, 20 Feb 2010 17:32:09 +0000</pubDate>
		<dc:creator>Sid</dc:creator>
				<category><![CDATA[Symfony Framework]]></category>
		<category><![CDATA[symfony conference]]></category>

		<guid isPermaLink="false">http://bluehorn.co.nz/?p=340</guid>
		<description><![CDATA[I haven&#8217;t watched these videos yet, but here they are! I hope they are in English :P
Thanks to Ben Haine for uploading those videos :)


No related posts.
Related posts brought to you by Yet Another Related Posts Plugin.


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I haven&#8217;t watched these videos yet, but <a title="sflive2010 Symfony core dev Q&amp;A session HD videos" href="http://www.vimeo.com/user1491208/videos" target="_blank">here they are</a>! I hope they are in English :P</p>
<p>Thanks to <a title="Ben Haine" href="http://www.benhaines.co.uk/" target="_blank">Ben Haine</a> for uploading those videos :)</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://bluehorn.co.nz/2010/02/21/sflive2010-symfony-core-dev-in-hd-videos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Speed up Symfony by installing APC on Ubuntu</title>
		<link>http://bluehorn.co.nz/2010/01/29/speed-up-symfony-by-installing-apc-on-ubuntu/</link>
		<comments>http://bluehorn.co.nz/2010/01/29/speed-up-symfony-by-installing-apc-on-ubuntu/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 00:44:59 +0000</pubDate>
		<dc:creator>Sid</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Symfony Framework]]></category>
		<category><![CDATA[apc]]></category>
		<category><![CDATA[pecl]]></category>
		<category><![CDATA[Symfony Resources]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://bluehorn.co.nz/?p=338</guid>
		<description><![CDATA[APC (Alternative PHP Cache) is an open source code PHP code cache and optimizer (or code accelerator). It is a necessary companion to any Symfony project. So here we go:
sudo apt-get update
sudo apt-get install php5-dev apache2-dev build-essential apache2-threaded-dev php-pear
sudo pecl install apc
Then update /etc/php5/apache2/php.ini and add this line:
extension=apc.so
Have fun!


No related posts.
Related posts brought to you [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>APC (Alternative PHP Cache) is an open source code PHP code cache and optimizer (or code accelerator). It is a necessary companion to any Symfony project. <span id="more-338"></span>So here we go:</p>
<p>sudo apt-get update<br />
sudo apt-get install php5-dev apache2-dev build-essential apache2-threaded-dev php-pear<br />
sudo pecl install apc</p>
<p>Then update /etc/php5/apache2/php.ini and add this line:</p>
<p>extension=apc.so</p>
<p>Have fun!</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://bluehorn.co.nz/2010/01/29/speed-up-symfony-by-installing-apc-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Microsoft VBScript runtime (0&#215;800A0046) Permission denied</title>
		<link>http://bluehorn.co.nz/2009/12/05/microsoft-vbscript-runtime-0x800a0046-permission-denied/</link>
		<comments>http://bluehorn.co.nz/2009/12/05/microsoft-vbscript-runtime-0x800a0046-permission-denied/#comments</comments>
		<pubDate>Sat, 05 Dec 2009 01:22:30 +0000</pubDate>
		<dc:creator>Sid</dc:creator>
				<category><![CDATA[asp]]></category>

		<guid isPermaLink="false">http://bluehorn.co.nz/2009/12/05/microsoft-vbscript-runtime-0x800a0046-permission-denied/</guid>
		<description><![CDATA[The answer is run &#8216;cacls&#8217; from DOS command line. You can just type &#8216;cacls&#8217; and see the command help.
Example of usage:
cacls C:\Inetpub\wwwroot\mypublicfile.txt /E /G Guest:F

C:\Inetpub\wwwroot\mypublicfile.txt is the file, but we can also specify a folder
Guest is the user we want to give access
/E means we add to existing file security settings. Without /E, the system [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>The answer is run &#8216;cacls&#8217; from DOS command line. You can just type &#8216;cacls&#8217; and see the command help.</p>
<p>Example of usage:</p>
<p>cacls C:\Inetpub\wwwroot\mypublicfile.txt /E /G Guest:F
<ul>
<li>C:\Inetpub\wwwroot\mypublicfile.txt is the file, but we can also specify a folder</li>
<li>Guest is the user we want to give access</li>
<li>/E means we add to existing file security settings. Without /E, the system will delete everyone else&#8217;s access.</li>
<li>/G must exists before user:access</li>
<li>F means full access, R means read, W means write</li>
</ul>
<p>I got this info from <a target="_blank" href="http://bytes.com/topic/asp-classic/answers/53795-file-permission-problem">this thread</a> when trying to solve permission denied problem of my ASP script when trying to delete a file.</p>
<p>Happy coding!</p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=9c363669-d624-8692-b808-b7e521295d9a" /></div>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://bluehorn.co.nz/2009/12/05/microsoft-vbscript-runtime-0x800a0046-permission-denied/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux command to recursively delete .svn folders</title>
		<link>http://bluehorn.co.nz/2009/11/13/linux-command-to-recursively-delete-svn-folders/</link>
		<comments>http://bluehorn.co.nz/2009/11/13/linux-command-to-recursively-delete-svn-folders/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 04:29:01 +0000</pubDate>
		<dc:creator>Sid</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://bluehorn.co.nz/2009/11/13/linux-command-to-recursively-delete-svn-folders/</guid>
		<description><![CDATA[find . -name .svn -print0 &#124; xargs -0 rm -rf
Credit: http://codesnippets.joyent.com/posts/show/104



No related posts.
Related posts brought to you by Yet Another Related Posts Plugin.


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><span class="ident">find</span> <span class="punct">.</span> <span class="punct">-</span><span class="ident">name</span> <span class="punct">.</span><span class="ident">svn</span> <span class="punct">-</span><span class="ident">print0</span> <span class="punct">|</span> <span class="ident">xargs</span> <span class="punct">-</span><span class="number">0</span> <span class="ident">rm</span> <span class="punct">-</span><span class="ident">rf</p>
<p>Credit: <a target="_blank" href="http://codesnippets.joyent.com/posts/show/104">http://codesnippets.joyent.com/posts/show/104</a><br /></span></p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=bedbb065-1290-8061-b17e-89926e769e49" /></div>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://bluehorn.co.nz/2009/11/13/linux-command-to-recursively-delete-svn-folders/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Popular websites powered by PHP</title>
		<link>http://bluehorn.co.nz/2009/09/26/popular-websites-powered-by-php/</link>
		<comments>http://bluehorn.co.nz/2009/09/26/popular-websites-powered-by-php/#comments</comments>
		<pubDate>Fri, 25 Sep 2009 15:44:50 +0000</pubDate>
		<dc:creator>Sid</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Websites]]></category>

		<guid isPermaLink="false">http://bluehorn.co.nz/?p=325</guid>
		<description><![CDATA[Just a handy list for me and anyone else out there. Most popular high traffic websites only.
Wikipedia, Facebook, Friendster, Yahoo, Delicious, Youtube, Digg, Wordpress, Tagged, W3Counter, MyYearBook


No related posts.
Related posts brought to you by Yet Another Related Posts Plugin.


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Just a handy list for me and anyone else out there. Most popular high traffic websites only.</p>
<p>Wikipedia, Facebook, Friendster, Yahoo, Delicious, Youtube, Digg, Wordpress, Tagged, W3Counter, MyYearBook</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://bluehorn.co.nz/2009/09/26/popular-websites-powered-by-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
