<?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 Veno Designs</title>
	<atom:link href="http://venodesigns.net/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://venodesigns.net</link>
	<description>Online Presence of Ryan McGrath</description>
	<lastBuildDate>Sun, 09 Oct 2011 10:21:13 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on More Power to ExpressionEngine URLs by Ryan</title>
		<link>http://venodesigns.net/2011/05/07/when-expressionengine-defaults-are-not-enough/comment-page-1/#comment-1612</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Sun, 09 Oct 2011 10:21:13 +0000</pubDate>
		<guid isPermaLink="false">http://venodesigns.net/?p=121#comment-1612</guid>
		<description>Hey Dennis - thanks for the code, that&#039;s awesome!</description>
		<content:encoded><![CDATA[<p>Hey Dennis &#8211; thanks for the code, that&#8217;s awesome!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on More Power to ExpressionEngine URLs by Dennis</title>
		<link>http://venodesigns.net/2011/05/07/when-expressionengine-defaults-are-not-enough/comment-page-1/#comment-1603</link>
		<dc:creator>Dennis</dc:creator>
		<pubDate>Fri, 07 Oct 2011 19:36:49 +0000</pubDate>
		<guid isPermaLink="false">http://venodesigns.net/?p=121#comment-1603</guid>
		<description>Disregard previous comment...

For anybody trying to do this, I ran into a few bugs in the code. Here&#039;s the controller I eventually got working:

This also will render global variables.

&lt;code&gt;core-&gt;_initialize_core();
        $this-&gt;EE = $this-&gt;core-&gt;EE;

        /* This is required to initialize template rendering */
        require APPPATH.&#039;libraries/Template&#039;.EXT;
    }

    private function _render($template_group, $template, $opts = array()) {
        /* Create a new EE Template Instance */
        $this-&gt;EE-&gt;TMPL = new EE_Template();

        /* Run through the initial parsing phase, set output type */
        $this-&gt;EE-&gt;TMPL-&gt;fetch_and_parse($template_group, $template, FALSE);
        $this-&gt;EE-&gt;output-&gt;out_type = $this-&gt;EE-&gt;TMPL-&gt;template_type;
        
        /* Return source. If we were given opts to do template replacement, parse them in */
        if(count($opts) &gt; 0) {
            $this-&gt;EE-&gt;output-&gt;set_output(
                $this-&gt;EE-&gt;TMPL-&gt;parse_variables(
                	$this-&gt;EE-&gt;TMPL-&gt;parse_globals($this-&gt;EE-&gt;TMPL-&gt;final_template),
                	array($opts)
                )
            );
        } else {
            $this-&gt;EE-&gt;output-&gt;set_output($this-&gt;EE-&gt;TMPL-&gt;final_template);
        }
    }

    function test($ext) {
        return $this-&gt;_render(&#039;test&#039;, &#039;testing&#039;, array(
			&#039;var&#039; =&gt; &#039;yes&#039;,
        ));
    }
}

/* End of file */&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Disregard previous comment&#8230;</p>
<p>For anybody trying to do this, I ran into a few bugs in the code. Here&#8217;s the controller I eventually got working:</p>
<p>This also will render global variables.</p>
<p><code>core-&gt;_initialize_core();<br />
        $this-&gt;EE = $this-&gt;core-&gt;EE;</p>
<p>        /* This is required to initialize template rendering */<br />
        require APPPATH.'libraries/Template'.EXT;<br />
    }</p>
<p>    private function _render($template_group, $template, $opts = array()) {<br />
        /* Create a new EE Template Instance */<br />
        $this-&gt;EE-&gt;TMPL = new EE_Template();</p>
<p>        /* Run through the initial parsing phase, set output type */<br />
        $this-&gt;EE-&gt;TMPL-&gt;fetch_and_parse($template_group, $template, FALSE);<br />
        $this-&gt;EE-&gt;output-&gt;out_type = $this-&gt;EE-&gt;TMPL-&gt;template_type;</p>
<p>        /* Return source. If we were given opts to do template replacement, parse them in */<br />
        if(count($opts) &gt; 0) {<br />
            $this-&gt;EE-&gt;output-&gt;set_output(<br />
                $this-&gt;EE-&gt;TMPL-&gt;parse_variables(<br />
                	$this-&gt;EE-&gt;TMPL-&gt;parse_globals($this-&gt;EE-&gt;TMPL-&gt;final_template),<br />
                	array($opts)<br />
                )<br />
            );<br />
        } else {<br />
            $this-&gt;EE-&gt;output-&gt;set_output($this-&gt;EE-&gt;TMPL-&gt;final_template);<br />
        }<br />
    }</p>
<p>    function test($ext) {<br />
        return $this-&gt;_render('test', 'testing', array(<br />
			'var' =&gt; 'yes',<br />
        ));<br />
    }<br />
}</p>
<p>/* End of file */</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on More Power to ExpressionEngine URLs by Dennis</title>
		<link>http://venodesigns.net/2011/05/07/when-expressionengine-defaults-are-not-enough/comment-page-1/#comment-1602</link>
		<dc:creator>Dennis</dc:creator>
		<pubDate>Fri, 07 Oct 2011 19:18:46 +0000</pubDate>
		<guid isPermaLink="false">http://venodesigns.net/?p=121#comment-1602</guid>
		<description>Is there a way to make global variables work in these templates? Things like {site_name}, {site_url}, etc etc?</description>
		<content:encoded><![CDATA[<p>Is there a way to make global variables work in these templates? Things like {site_name}, {site_url}, etc etc?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Emulating Ruby&#8217;s &#8220;method_missing&#8221; in Python by Ryan</title>
		<link>http://venodesigns.net/2010/11/02/emulating-rubys-method_missing-in-python/comment-page-1/#comment-1595</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Thu, 06 Oct 2011 20:51:43 +0000</pubDate>
		<guid isPermaLink="false">http://venodesigns.net/?p=94#comment-1595</guid>
		<description>You have a good (and valid) point; at a glance I still think of it as being the same general idea, but the execution path is different, yes.

I bet there&#039;s a way to do it more like method_missing beyond copying every standard method. If I ever get free time, I&#039;d look into it for the hell of it.</description>
		<content:encoded><![CDATA[<p>You have a good (and valid) point; at a glance I still think of it as being the same general idea, but the execution path is different, yes.</p>
<p>I bet there&#8217;s a way to do it more like method_missing beyond copying every standard method. If I ever get free time, I&#8217;d look into it for the hell of it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Emulating Ruby&#8217;s &#8220;method_missing&#8221; in Python by dgx</title>
		<link>http://venodesigns.net/2010/11/02/emulating-rubys-method_missing-in-python/comment-page-1/#comment-1577</link>
		<dc:creator>dgx</dc:creator>
		<pubDate>Mon, 03 Oct 2011 16:24:00 +0000</pubDate>
		<guid isPermaLink="false">http://venodesigns.net/?p=94#comment-1577</guid>
		<description>Well, it&#039;s not like method_missing you know.
Because method_missing is called only if Ruby doesn&#039;t find the method required.
In your implementation, __getattr__ is called all the time.
It means that if I want to do 
print twitter
it will fail, because there is no method __str__ nor __repr__ inside method_dictionary.

An ugly way to pass through this would be to copy every standard method inside it, but well... it&#039;s pretty damn ugly isn&#039;t it?</description>
		<content:encoded><![CDATA[<p>Well, it&#8217;s not like method_missing you know.<br />
Because method_missing is called only if Ruby doesn&#8217;t find the method required.<br />
In your implementation, __getattr__ is called all the time.<br />
It means that if I want to do<br />
print twitter<br />
it will fail, because there is no method __str__ nor __repr__ inside method_dictionary.</p>
<p>An ugly way to pass through this would be to copy every standard method inside it, but well&#8230; it&#8217;s pretty damn ugly isn&#8217;t it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on On Deactivating My Facebook Account by Shawn</title>
		<link>http://venodesigns.net/2011/09/24/on-deactivating-my-facebook-account/comment-page-1/#comment-1501</link>
		<dc:creator>Shawn</dc:creator>
		<pubDate>Sun, 25 Sep 2011 03:09:25 +0000</pubDate>
		<guid isPermaLink="false">http://venodesigns.net/?p=152#comment-1501</guid>
		<description>I wholeheartedly agree. But where&#039;s the &#039;like&#039; button?</description>
		<content:encoded><![CDATA[<p>I wholeheartedly agree. But where&#8217;s the &#8216;like&#8217; button?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on More Power to ExpressionEngine URLs by Patrik Engborg</title>
		<link>http://venodesigns.net/2011/05/07/when-expressionengine-defaults-are-not-enough/comment-page-1/#comment-1497</link>
		<dc:creator>Patrik Engborg</dc:creator>
		<pubDate>Thu, 22 Sep 2011 10:50:18 +0000</pubDate>
		<guid isPermaLink="false">http://venodesigns.net/?p=121#comment-1497</guid>
		<description>Great stuff! I had almost given up getting CI and EE to work side by side. So this is exactly what i needed.
Also, you convinced me to give django/python a go. Most useful blogpost in a long time. Thank you so much!</description>
		<content:encoded><![CDATA[<p>Great stuff! I had almost given up getting CI and EE to work side by side. So this is exactly what i needed.<br />
Also, you convinced me to give django/python a go. Most useful blogpost in a long time. Thank you so much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Emulating Ruby&#8217;s &#8220;method_missing&#8221; in Python by Ryan</title>
		<link>http://venodesigns.net/2010/11/02/emulating-rubys-method_missing-in-python/comment-page-1/#comment-1496</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Mon, 19 Sep 2011 03:22:39 +0000</pubDate>
		<guid isPermaLink="false">http://venodesigns.net/?p=94#comment-1496</guid>
		<description>Hey there!

Sorry, I just got time to circle back to this... I actually responded to your comment over on r/python, but I&#039;ll put it here as well for the sake of complete-ness. Thanks for commenting!

&lt;em&gt;I personally don&#039;t like it being a freely-available trick, as I think it introduces rather sloppy coding practices in general. There&#039;s very few cases where this even makes sense, at least in my opinion, hence why I&#039;d probably never submit a PEP on it. Cheers, though.&lt;/em&gt;</description>
		<content:encoded><![CDATA[<p>Hey there!</p>
<p>Sorry, I just got time to circle back to this&#8230; I actually responded to your comment over on r/python, but I&#8217;ll put it here as well for the sake of complete-ness. Thanks for commenting!</p>
<p><em>I personally don&#8217;t like it being a freely-available trick, as I think it introduces rather sloppy coding practices in general. There&#8217;s very few cases where this even makes sense, at least in my opinion, hence why I&#8217;d probably never submit a PEP on it. Cheers, though.</em></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Emulating Ruby&#8217;s &#8220;method_missing&#8221; in Python by mvrak</title>
		<link>http://venodesigns.net/2010/11/02/emulating-rubys-method_missing-in-python/comment-page-1/#comment-1482</link>
		<dc:creator>mvrak</dc:creator>
		<pubDate>Tue, 13 Sep 2011 19:48:18 +0000</pubDate>
		<guid isPermaLink="false">http://venodesigns.net/?p=94#comment-1482</guid>
		<description>If you really like it then submit a PEP.  If the community agrees then you&#039;ve just strengthened Python.  There are more coders available than idea people!

Also, why call it &quot;emulating&quot;?  It is really &quot;implementing&quot; unless you are making an incomplete copy.</description>
		<content:encoded><![CDATA[<p>If you really like it then submit a PEP.  If the community agrees then you&#8217;ve just strengthened Python.  There are more coders available than idea people!</p>
<p>Also, why call it &#8220;emulating&#8221;?  It is really &#8220;implementing&#8221; unless you are making an incomplete copy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Hacking the Human Brain by Nishant</title>
		<link>http://venodesigns.net/2011/03/06/hacking-the-human-brain/comment-page-1/#comment-1381</link>
		<dc:creator>Nishant</dc:creator>
		<pubDate>Thu, 01 Sep 2011 07:05:24 +0000</pubDate>
		<guid isPermaLink="false">http://venodesigns.net/?p=111#comment-1381</guid>
		<description>thanks a bunch for the tutorial.
I really think its more of psychology but you sure did taught me a lot of things.</description>
		<content:encoded><![CDATA[<p>thanks a bunch for the tutorial.<br />
I really think its more of psychology but you sure did taught me a lot of things.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

