<?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 Rene Bakx</title>
	<atom:link href="http://renebakx.nl/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://renebakx.nl</link>
	<description>about me, me and did i mention me?</description>
	<lastBuildDate>Wed, 18 Aug 2010 11:15:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>Comment on Compiling PHP 5.3.3, with nginx on ubuntu 10.4 for drupal 7 by PHP 5.3.3 Adds PHP-FPM</title>
		<link>http://renebakx.nl/22/compiling-php-5-3-3-with-nginx-on-ubuntu-10-4-for-drupal-7/#comment-111</link>
		<dc:creator>PHP 5.3.3 Adds PHP-FPM</dc:creator>
		<pubDate>Wed, 18 Aug 2010 11:15:34 +0000</pubDate>
		<guid isPermaLink="false">http://renebakx.nl/?p=22#comment-111</guid>
		<description>[...] managed to find one decent guide to compiling and setting it up so far. It looks fairly simple. I might have to give it a try sometime, as my current setup (which [...]</description>
		<content:encoded><![CDATA[<p>[...] managed to find one decent guide to compiling and setting it up so far. It looks fairly simple. I might have to give it a try sometime, as my current setup (which [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Introducing, the twig for drupal template engine by Rene</title>
		<link>http://renebakx.nl/35/introducing-the-twig-for-drupal-template-engine/#comment-99</link>
		<dc:creator>Rene</dc:creator>
		<pubDate>Sun, 15 Aug 2010 12:55:52 +0000</pubDate>
		<guid isPermaLink="false">http://renebakx.nl/?p=35#comment-99</guid>
		<description>There is no better, just different. Short tags are not enabled on every php installation. But there is more to twig then just a simple &lt; ?php print $this;?&gt; replacement. 
For example there is no need for a themer to know if $node is an array of an object. The themer just does a {{ user.name}} or {{node.somefield.content}}

or in a foreach loop, to set a different something on the first element of the loop, just check {{ if loop.last}} do something {{endif}}

It&#039;s little things like that, that i believe makes live just easier. 

And secondly drupal is not really designed for that, i still see a lot of PHP logic in templates. I agree, that it is bad practice, but by using an engine like twig, you gently enforce logic to be in a module or template.php and just stick with loops, if&#039;s and conditions like that.

Finally i personally like the readability of templates after twig&#039;ing them. But that is pure personal preference :)</description>
		<content:encoded><![CDATA[<p>There is no better, just different. Short tags are not enabled on every php installation. But there is more to twig then just a simple < ?php print $this;?> replacement.<br />
For example there is no need for a themer to know if $node is an array of an object. The themer just does a {{ user.name}} or {{node.somefield.content}}</p>
<p>or in a foreach loop, to set a different something on the first element of the loop, just check {{ if loop.last}} do something {{endif}}</p>
<p>It&#8217;s little things like that, that i believe makes live just easier. </p>
<p>And secondly drupal is not really designed for that, i still see a lot of PHP logic in templates. I agree, that it is bad practice, but by using an engine like twig, you gently enforce logic to be in a module or template.php and just stick with loops, if&#8217;s and conditions like that.</p>
<p>Finally i personally like the readability of templates after twig&#8217;ing them. But that is pure personal preference :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Introducing, the twig for drupal template engine by gagarine</title>
		<link>http://renebakx.nl/35/introducing-the-twig-for-drupal-template-engine/#comment-98</link>
		<dc:creator>gagarine</dc:creator>
		<pubDate>Sun, 15 Aug 2010 12:46:44 +0000</pubDate>
		<guid isPermaLink="false">http://renebakx.nl/?p=35#comment-98</guid>
		<description>Every body can prefer on syntax to an other. But your target was to separate the processing logic and the display. In my mind, Drupal is already build for that...

Can you explain how twig do that better?  For example:
 or with short tag 
and twig
{{ var }}

Is exactly the same thing -&gt; printing a variable.</description>
		<content:encoded><![CDATA[<p>Every body can prefer on syntax to an other. But your target was to separate the processing logic and the display. In my mind, Drupal is already build for that&#8230;</p>
<p>Can you explain how twig do that better?  For example:<br />
 or with short tag<br />
and twig<br />
{{ var }}</p>
<p>Is exactly the same thing -&gt; printing a variable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Compiling PHP 5.3.3, with nginx on ubuntu 10.4 for drupal 7 by Utkarsh</title>
		<link>http://renebakx.nl/22/compiling-php-5-3-3-with-nginx-on-ubuntu-10-4-for-drupal-7/#comment-52</link>
		<dc:creator>Utkarsh</dc:creator>
		<pubDate>Sun, 01 Aug 2010 18:43:34 +0000</pubDate>
		<guid isPermaLink="false">http://renebakx.nl/?p=22#comment-52</guid>
		<description>Hey,

Just a small note here - if you are changing the php-fpm.pid path in /etc/init.d/php-fpm, it should also be changed in the php-fpm.conf file at the top.</description>
		<content:encoded><![CDATA[<p>Hey,</p>
<p>Just a small note here &#8211; if you are changing the php-fpm.pid path in /etc/init.d/php-fpm, it should also be changed in the php-fpm.conf file at the top.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Running a local wildcard DNS server on your mac by Fixing the documentroot with vhost_alias &#171; Rene Bakx</title>
		<link>http://renebakx.nl/7/running-a-local-wildcard-dns-server-on-your-mac/#comment-33</link>
		<dc:creator>Fixing the documentroot with vhost_alias &#171; Rene Bakx</dc:creator>
		<pubDate>Thu, 15 Jul 2010 10:09:28 +0000</pubDate>
		<guid isPermaLink="false">http://renebakx.dev.local/?p=7#comment-33</guid>
		<description>[...] small solution in follow up of the document root issue drm brought up in a previous post. Setting the correct $_SERVER[&quot;document_root&quot;] value for your vhost_alias [...]</description>
		<content:encoded><![CDATA[<p>[...] small solution in follow up of the document root issue drm brought up in a previous post. Setting the correct $_SERVER[&quot;document_root&quot;] value for your vhost_alias [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Running a local wildcard DNS server on your mac by drm</title>
		<link>http://renebakx.nl/7/running-a-local-wildcard-dns-server-on-your-mac/#comment-6</link>
		<dc:creator>drm</dc:creator>
		<pubDate>Sun, 13 Jun 2010 12:26:05 +0000</pubDate>
		<guid isPermaLink="false">http://renebakx.dev.local/?p=7#comment-6</guid>
		<description>I have tried VirtualDocumentRoot some time ago, but one big downside is that the DOCUMENT_ROOT environment variable isn&#039;t virtual, which might get you in trouble with resolving rewritten paths to local files. So be aware that this will get you in trouble when relying on DOCUMENT_ROOT.

I&#039;m not sure this is still the case though, but it might be worth checking.</description>
		<content:encoded><![CDATA[<p>I have tried VirtualDocumentRoot some time ago, but one big downside is that the DOCUMENT_ROOT environment variable isn&#8217;t virtual, which might get you in trouble with resolving rewritten paths to local files. So be aware that this will get you in trouble when relying on DOCUMENT_ROOT.</p>
<p>I&#8217;m not sure this is still the case though, but it might be worth checking.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Running a local wildcard DNS server on your mac by Rene</title>
		<link>http://renebakx.nl/7/running-a-local-wildcard-dns-server-on-your-mac/#comment-5</link>
		<dc:creator>Rene</dc:creator>
		<pubDate>Sun, 13 Jun 2010 11:34:03 +0000</pubDate>
		<guid isPermaLink="false">http://renebakx.dev.local/?p=7#comment-5</guid>
		<description>The syntax of the vhost alias module really  bugs me, it so not logic to me. But i just found out that you can use multiple rules! So i added your part to the part i already had. Presto, very flexible folder structure. Sweet!</description>
		<content:encoded><![CDATA[<p>The syntax of the vhost alias module really  bugs me, it so not logic to me. But i just found out that you can use multiple rules! So i added your part to the part i already had. Presto, very flexible folder structure. Sweet!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Running a local wildcard DNS server on your mac by Rik</title>
		<link>http://renebakx.nl/7/running-a-local-wildcard-dns-server-on-your-mac/#comment-4</link>
		<dc:creator>Rik</dc:creator>
		<pubDate>Sun, 13 Jun 2010 09:40:32 +0000</pubDate>
		<guid isPermaLink="false">http://renebakx.dev.local/?p=7#comment-4</guid>
		<description>Cool to see my comment in the article.

As for the &#039;renebakx.nl.dev.local&#039; issue:

Just replace the VirtualDocumentRoot with something like this:

VirtualDocumentRoot &quot;/Users/rikvanderkemp/Sites/%-3+/public_html&quot;</description>
		<content:encoded><![CDATA[<p>Cool to see my comment in the article.</p>
<p>As for the &#8216;renebakx.nl.dev.local&#8217; issue:</p>
<p>Just replace the VirtualDocumentRoot with something like this:</p>
<p>VirtualDocumentRoot &#8220;/Users/rikvanderkemp/Sites/%-3+/public_html&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Running a local wildcard DNS server on your mac by rik</title>
		<link>http://renebakx.nl/7/running-a-local-wildcard-dns-server-on-your-mac/#comment-3</link>
		<dc:creator>rik</dc:creator>
		<pubDate>Sat, 12 Jun 2010 21:48:48 +0000</pubDate>
		<guid isPermaLink="false">http://renebakx.dev.local/?p=7#comment-3</guid>
		<description>Oh nice I see the VirtualHost *:80 and Directory &quot;/Users/bla&quot; things were filtered out in the comment.</description>
		<content:encoded><![CDATA[<p>Oh nice I see the VirtualHost *:80 and Directory &#8220;/Users/bla&#8221; things were filtered out in the comment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Running a local wildcard DNS server on your mac by rik</title>
		<link>http://renebakx.nl/7/running-a-local-wildcard-dns-server-on-your-mac/#comment-2</link>
		<dc:creator>rik</dc:creator>
		<pubDate>Sat, 12 Jun 2010 21:47:06 +0000</pubDate>
		<guid isPermaLink="false">http://renebakx.dev.local/?p=7#comment-2</guid>
		<description>Nice thanks!

To make life even simpler enable vhost_alias so you do not have to add the virtual host sections anymore.

- Make sure vhost_alias_module is loaded in apache (In MAMP it&#039;s already loaded)

Now in httpd.conf or where ever add something similar to this:


    ServerAdmin webmaster@localhost
    VirtualDocumentRoot &quot;/Users/rikvanderkemp/Sites/%1/public_html&quot;
    ServerName subdomains.dev.local
    ServerAlias *.dev.local



    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all



Of course substituting what applies to you :-)

Now you will not have to do any maintenance whatsoever. The server will just look for the appropriate folder. 

So e.g. mysite.dev.local will look for /Users/rikvanderkemp/Sites/mysite/public_html

(Note, the folder public_html is of course optional)

greets,
Rik</description>
		<content:encoded><![CDATA[<p>Nice thanks!</p>
<p>To make life even simpler enable vhost_alias so you do not have to add the virtual host sections anymore.</p>
<p>- Make sure vhost_alias_module is loaded in apache (In MAMP it&#8217;s already loaded)</p>
<p>Now in httpd.conf or where ever add something similar to this:</p>
<p>    ServerAdmin webmaster@localhost<br />
    VirtualDocumentRoot &#8220;/Users/rikvanderkemp/Sites/%1/public_html&#8221;<br />
    ServerName subdomains.dev.local<br />
    ServerAlias *.dev.local</p>
<p>    Options Indexes FollowSymLinks<br />
    AllowOverride All<br />
    Order allow,deny<br />
    Allow from all</p>
<p>Of course substituting what applies to you :-)</p>
<p>Now you will not have to do any maintenance whatsoever. The server will just look for the appropriate folder. </p>
<p>So e.g. mysite.dev.local will look for /Users/rikvanderkemp/Sites/mysite/public_html</p>
<p>(Note, the folder public_html is of course optional)</p>
<p>greets,<br />
Rik</p>
]]></content:encoded>
	</item>
</channel>
</rss>
