<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet type="text/xsl" href="http://deheus.net/petrik/stylesheets/style.xsl" media="screen"?>
<feed version="0.3"
  xmlns="http://purl.org/atom/ns#"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xml:lang="en">
  <title>Petrik de Heus</title>
  <link rel="alternate" type="text/html" href="http://deheus.net/petrik/atom/" />
  <tagline>tagline</tagline>
  <modified>Sat, 07 Mar 2009 22:11:44 GMT</modified>
  <copyright>Copyright </copyright>

  
    
	<entry>
	  <author>
	    <name>petrik</name>
	  </author>
	  <title>Running lunit with luarocks and mac ports</title>
	  <link rel="alternate" type="text/html" href="/petrik/blog/2009/03/07/running-lunit-with-luarocks-and-mac-ports/" />
		<!-- http://diveintomark.org/archives/2004/05/28/howto-atom-id -->
          <id>tag:http://deheus.net'petrik/<div><strong>undefined tag `id'</strong></div></id>
	  <id><div><strong>undefined tag `id'</strong></div></id>
          <modified>Sat, 07 Mar 2009 22:11:44 GMT</modified>
	  <issued>Sat, 07 Mar 2009 22:11:44 GMT</issued>
          <summary type="text/html" mode="escaped"><p>Install lua and luarocks: <code>sudo port install lua luarocks</code></p>


	<p>If you get the &#8220;lunit: command not found&#8221; error you need to add luarocks/bin to your <span class="caps">PATH</span>:</p>


<pre>export PATH=/opt/local/lib/luarocks/bin:$PATH</pre>

	<p>If you get the &#8220;module &#8216;lunit&#8217; not found&#8221; error you need to add luarocks to your <span class="caps">LUA</span>_PATH:</p>


<pre>export LUA_PATH="/opt/local/share/lua/5.1//?.lua;${LUA_PATH}"&lt;/br&gt;
export LUA_INIT="require 'luarocks.require'"</pre></summary>
          <content type="text/html" mode="escaped"><p>Install lua and luarocks: <code>sudo port install lua luarocks</code></p>


	<p>If you get the &#8220;lunit: command not found&#8221; error you need to add luarocks/bin to your <span class="caps">PATH</span>:</p>


<pre>export PATH=/opt/local/lib/luarocks/bin:$PATH</pre>

	<p>If you get the &#8220;module &#8216;lunit&#8217; not found&#8221; error you need to add luarocks to your <span class="caps">LUA</span>_PATH:</p>


<pre>export LUA_PATH="/opt/local/share/lua/5.1//?.lua;${LUA_PATH}"&lt;/br&gt;
export LUA_INIT="require 'luarocks.require'"</pre></content>
	</entry>
    
	<entry>
	  <author>
	    <name>petrik</name>
	  </author>
	  <title>Redirect, a simple Ruby redirect DSL build on Rack</title>
	  <link rel="alternate" type="text/html" href="/petrik/blog/2009/02/19/redirect-a-simple-ruby-redirect-dsl-build-on-rack/" />
		<!-- http://diveintomark.org/archives/2004/05/28/howto-atom-id -->
          <id>tag:http://deheus.net'petrik/<div><strong>undefined tag `id'</strong></div></id>
	  <id><div><strong>undefined tag `id'</strong></div></id>
          <modified>Thu, 19 Feb 2009 16:20:59 GMT</modified>
	  <issued>Thu, 19 Feb 2009 16:20:59 GMT</issued>
          <summary type="text/html" mode="escaped"><p>Just released another small gem called <a href="http://redirect.rubyforge.org/">Redirect</a> for doing quick redirects.</p>
<h2>Example</h2>
<p>
Create a file and pass an array to the redirect method:

</p>
<pre>
  require 'redirect'
  redirect  ['/catch_url', '/redirect_url'],
            ['/catch_url2', '/redirect_url2',
             {:code =&gt; 307, :name =&gt; 'redirect link'}],
            ['^/some_regexp', '/all']
</pre>
<p>
The catch_url can be a regular expression. You can overwrite the default
301 http code in the options.
</p>
<p>
The default redirect code can be changed:
</p>
<pre>
  Redirect.default_code = 307
</pre>
<p>
A sitemap.xml is generated for all redirects that have a name.
</p></summary>
          <content type="text/html" mode="escaped"><p>Just released another small gem called <a href="http://redirect.rubyforge.org/">Redirect</a> for doing quick redirects.</p>
<h2>Example</h2>
<p>
Create a file and pass an array to the redirect method:

</p>
<pre>
  require 'redirect'
  redirect  ['/catch_url', '/redirect_url'],
            ['/catch_url2', '/redirect_url2',
             {:code =&gt; 307, :name =&gt; 'redirect link'}],
            ['^/some_regexp', '/all']
</pre>
<p>
The catch_url can be a regular expression. You can overwrite the default
301 http code in the options.
</p>
<p>
The default redirect code can be changed:
</p>
<pre>
  Redirect.default_code = 307
</pre>
<p>
A sitemap.xml is generated for all redirects that have a name.
</p></content>
	</entry>
    
	<entry>
	  <author>
	    <name>petrik</name>
	  </author>
	  <title>"no &lt;group_id&gt; configured for ..." error when releasing a Gem to Rubyforge</title>
	  <link rel="alternate" type="text/html" href="/petrik/blog/2009/02/19/no-lt-group_idgt-configured-for-error-when-releasing-a-gem-to-rubyforge/" />
		<!-- http://diveintomark.org/archives/2004/05/28/howto-atom-id -->
          <id>tag:http://deheus.net'petrik/<div><strong>undefined tag `id'</strong></div></id>
	  <id><div><strong>undefined tag `id'</strong></div></id>
          <modified>Thu, 19 Feb 2009 16:16:21 GMT</modified>
	  <issued>Thu, 19 Feb 2009 16:16:21 GMT</issued>
          <summary type="text/html" mode="escaped"><p>If you get the "no &lt;group_id&gt; configured for &lt;PROJECTNAME&gt;" error, you probably need to do the following:</p>
<p><code>rubyforge setup # unless you already did this before</code><br />
<code>rubyforge config PROJECTNAME</code>
</p></summary>
          <content type="text/html" mode="escaped"><p>If you get the "no &lt;group_id&gt; configured for &lt;PROJECTNAME&gt;" error, you probably need to do the following:</p>
<p><code>rubyforge setup # unless you already did this before</code><br />
<code>rubyforge config PROJECTNAME</code>
</p></content>
	</entry>
    
	<entry>
	  <author>
	    <name>petrik</name>
	  </author>
	  <title>Bukka White - Old Lady Blues</title>
	  <link rel="alternate" type="text/html" href="/petrik/blog/2009/02/13/bukka-white---old-lady-blues/" />
		<!-- http://diveintomark.org/archives/2004/05/28/howto-atom-id -->
          <id>tag:http://deheus.net'petrik/<div><strong>undefined tag `id'</strong></div></id>
	  <id><div><strong>undefined tag `id'</strong></div></id>
          <modified>Fri, 13 Feb 2009 07:40:46 GMT</modified>
	  <issued>Fri, 13 Feb 2009 07:40:46 GMT</issued>
          <summary type="text/html" mode="escaped"><p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/bePWlO26daM&hl=nl&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/bePWlO26daM&hl=nl&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p></summary>
          <content type="text/html" mode="escaped"><p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/bePWlO26daM&hl=nl&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/bePWlO26daM&hl=nl&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p></content>
	</entry>
    
	<entry>
	  <author>
	    <name>petrik</name>
	  </author>
	  <title>Casablanca, a ruby CAS client</title>
	  <link rel="alternate" type="text/html" href="/petrik/blog/2009/01/30/casablanca-a-ruby-cas-client/" />
		<!-- http://diveintomark.org/archives/2004/05/28/howto-atom-id -->
          <id>tag:http://deheus.net'petrik/<div><strong>undefined tag `id'</strong></div></id>
	  <id><div><strong>undefined tag `id'</strong></div></id>
          <modified>Fri, 30 Jan 2009 19:36:41 GMT</modified>
	  <issued>Fri, 30 Jan 2009 19:36:41 GMT</issued>
          <summary type="text/html" mode="escaped"><p>In search of a single sign-on solution I came across <a href="http://code.google.com/p/rubycas-client/">rubycas-client</a>.
But I needed a tested solution with an <span class="caps">MIT</span> license so I decided to write <a href="http://github.com/p8/casablanca/tree/master">Casablanca</a> instead.<br />
<em>(Relevance wrote <a href="http://blog.thinkrelevance.com/2008/10/28/castronaut-sso-the-big-unit-and-a-fedora">Castronaut</a>, a tested ruby <span class="caps">CAS</span> server with a <span class="caps">MIT</span> license, for the same reasons.)</em></p>


	<h2>Current features</h2>


	<p>Casablanca can be run as a Rails plugin.
Gatewaying (permitting the user to continue without authentication) is not implemented.
Just skip the filter for those actions.</p>


	<p>Casablanca includes a commandline Client to test getting service tickets from a <span class="caps">CAS</span> server.</p>


	<h2>Todo</h2>


	<p>I still need to implement proxing.</p>


	<p>Documentation: <a href="http://casablanca.rubyforge.org/">http://casablanca.rubyforge.org/</a> <br />
Github: <a href="http://github.com/p8/casablanca/tree/master">http://github.com/p8/casablanca/tree/master</a></p></summary>
          <content type="text/html" mode="escaped"><p>In search of a single sign-on solution I came across <a href="http://code.google.com/p/rubycas-client/">rubycas-client</a>.
But I needed a tested solution with an <span class="caps">MIT</span> license so I decided to write <a href="http://github.com/p8/casablanca/tree/master">Casablanca</a> instead.<br />
<em>(Relevance wrote <a href="http://blog.thinkrelevance.com/2008/10/28/castronaut-sso-the-big-unit-and-a-fedora">Castronaut</a>, a tested ruby <span class="caps">CAS</span> server with a <span class="caps">MIT</span> license, for the same reasons.)</em></p>


	<h2>Current features</h2>


	<p>Casablanca can be run as a Rails plugin.
Gatewaying (permitting the user to continue without authentication) is not implemented.
Just skip the filter for those actions.</p>


	<p>Casablanca includes a commandline Client to test getting service tickets from a <span class="caps">CAS</span> server.</p>


	<h2>Todo</h2>


	<p>I still need to implement proxing.</p>


	<p>Documentation: <a href="http://casablanca.rubyforge.org/">http://casablanca.rubyforge.org/</a> <br />
Github: <a href="http://github.com/p8/casablanca/tree/master">http://github.com/p8/casablanca/tree/master</a></p></content>
	</entry>
    
	<entry>
	  <author>
	    <name>petrik</name>
	  </author>
	  <title>Billy Preston: Agent Double O Soul</title>
	  <link rel="alternate" type="text/html" href="/petrik/blog/2009/01/20/billy-preston-agent-double-o-soul/" />
		<!-- http://diveintomark.org/archives/2004/05/28/howto-atom-id -->
          <id>tag:http://deheus.net'petrik/<div><strong>undefined tag `id'</strong></div></id>
	  <id><div><strong>undefined tag `id'</strong></div></id>
          <modified>Tue, 20 Jan 2009 19:56:38 GMT</modified>
	  <issued>Tue, 20 Jan 2009 19:56:38 GMT</issued>
          <summary type="text/html" mode="escaped"><p>Billy Preston singing and getting down</p>
<p><object width="480" height="295"><param name="movie" value="http://www.youtube.com/v/4SiqmoZq47I?hl=en&amp;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/4SiqmoZq47I?hl=en&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="295"></embed></object></p></summary>
          <content type="text/html" mode="escaped"><p>Billy Preston singing and getting down</p>
<p><object width="480" height="295"><param name="movie" value="http://www.youtube.com/v/4SiqmoZq47I?hl=en&amp;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/4SiqmoZq47I?hl=en&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="295"></embed></object></p></content>
	</entry>
    
	<entry>
	  <author>
	    <name>petrik</name>
	  </author>
	  <title>Automaticaly setting a private SSH key for a host</title>
	  <link rel="alternate" type="text/html" href="/petrik/blog/2009/01/19/automaticaly-setting-a-private-ssh-key-for-a-host/" />
		<!-- http://diveintomark.org/archives/2004/05/28/howto-atom-id -->
          <id>tag:http://deheus.net'petrik/<div><strong>undefined tag `id'</strong></div></id>
	  <id><div><strong>undefined tag `id'</strong></div></id>
          <modified>Mon, 19 Jan 2009 10:26:33 GMT</modified>
	  <issued>Mon, 19 Jan 2009 10:26:33 GMT</issued>
          <summary type="text/html" mode="escaped"><p>Edit your ~/.ssh/config file and add something like this:</p>

<pre>Host &lt;name&gt;
    IdentityFile ~/.ssh/&lt;filename&gt;
</pre>
</summary>
          <content type="text/html" mode="escaped"><p>Edit your ~/.ssh/config file and add something like this:</p>

<pre>Host &lt;name&gt;
    IdentityFile ~/.ssh/&lt;filename&gt;
</pre>
</content>
	</entry>
    
	<entry>
	  <author>
	    <name>petrik</name>
	  </author>
	  <title>"We Are The Authors Of This Tragedy"</title>
	  <link rel="alternate" type="text/html" href="/petrik/blog/2009/01/18/we-are-the-authors-of-this-tragedy/" />
		<!-- http://diveintomark.org/archives/2004/05/28/howto-atom-id -->
          <id>tag:http://deheus.net'petrik/<div><strong>undefined tag `id'</strong></div></id>
	  <id><div><strong>undefined tag `id'</strong></div></id>
          <modified>Sun, 18 Jan 2009 14:44:59 GMT</modified>
	  <issued>Sun, 18 Jan 2009 14:44:59 GMT</issued>
          <summary type="text/html" mode="escaped"><p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/IIpvrOJQ0J0?color1=0xb1b1b1&amp;color2=0xcfcfcf&amp;feature=player_embedded&amp;fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/IIpvrOJQ0J0?color1=0xb1b1b1&amp;color2=0xcfcfcf&amp;feature=player_embedded&amp;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object></p></summary>
          <content type="text/html" mode="escaped"><p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/IIpvrOJQ0J0?color1=0xb1b1b1&amp;color2=0xcfcfcf&amp;feature=player_embedded&amp;fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/IIpvrOJQ0J0?color1=0xb1b1b1&amp;color2=0xcfcfcf&amp;feature=player_embedded&amp;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object></p></content>
	</entry>
    
	<entry>
	  <author>
	    <name>petrik</name>
	  </author>
	  <title>Configuring QuickProxy FireFox plugin</title>
	  <link rel="alternate" type="text/html" href="/petrik/blog/2008/07/16/configuring-quickproxy-firefox-plugin/" />
		<!-- http://diveintomark.org/archives/2004/05/28/howto-atom-id -->
          <id>tag:http://deheus.net'petrik/<div><strong>undefined tag `id'</strong></div></id>
	  <id><div><strong>undefined tag `id'</strong></div></id>
          <modified>Wed, 16 Jul 2008 19:10:58 GMT</modified>
	  <issued>Wed, 16 Jul 2008 19:10:58 GMT</issued>
          <summary type="text/html" mode="escaped"><p>While trying out <a href="http://code.google.com/p/ratproxy/">Ratproxy</a> I needed to use <a href="https://addons.mozilla.org/en-US/firefox/addon/1557">QuickProxy</a>.
I couldn&#8217;t find any configuration description, so here is what I did.</p>


	<p>Go to: Preferences &gt; Advanced &gt; Network, and set <span class="caps">HTTP</span> Proxy to localhost and Port to 8080 for the default Ratproxy settings.
To turn QuickProxy on/off click the &#8216;P&#8217; icon in the status bar.</p></summary>
          <content type="text/html" mode="escaped"><p>While trying out <a href="http://code.google.com/p/ratproxy/">Ratproxy</a> I needed to use <a href="https://addons.mozilla.org/en-US/firefox/addon/1557">QuickProxy</a>.
I couldn&#8217;t find any configuration description, so here is what I did.</p>


	<p>Go to: Preferences &gt; Advanced &gt; Network, and set <span class="caps">HTTP</span> Proxy to localhost and Port to 8080 for the default Ratproxy settings.
To turn QuickProxy on/off click the &#8216;P&#8217; icon in the status bar.</p></content>
	</entry>
    
	<entry>
	  <author>
	    <name>petrik</name>
	  </author>
	  <title>Seam, a second look at JSF</title>
	  <link rel="alternate" type="text/html" href="/petrik/blog/2008/07/10/seam-a-second-look-at-jsf/" />
		<!-- http://diveintomark.org/archives/2004/05/28/howto-atom-id -->
          <id>tag:http://deheus.net'petrik/<div><strong>undefined tag `id'</strong></div></id>
	  <id><div><strong>undefined tag `id'</strong></div></id>
          <modified>Thu, 10 Jul 2008 22:04:55 GMT</modified>
	  <issued>Thu, 10 Jul 2008 22:04:55 GMT</issued>
          <summary type="text/html" mode="escaped"><p>I decided to have another look at <span class="caps">JSF</span> by reading the <a href="http://docs.jboss.com/seam/2.0.1.GA/reference/en/html/tutorial.html">Tutorial</a>. The last time I used <span class="caps">JSF</span> was 2 years ago (I thought it sucked then). Maybe it has improved with Seam.</p>


	<p>Besides almost falling asleep from all the xml I did notice Seam supports Ruby style templating Strings(example 1.2), which is sort of nice.
I&#8217;m not sure if you can use simple java oneliners though.</p>


	<p>A couple of things that suck:</p></summary>
          <content type="text/html" mode="escaped"><p>I decided to have another look at <span class="caps">JSF</span> by reading the <a href="http://docs.jboss.com/seam/2.0.1.GA/reference/en/html/tutorial.html">Tutorial</a>. The last time I used <span class="caps">JSF</span> was 2 years ago (I thought it sucked then). Maybe it has improved with Seam.</p>


	<p>Besides almost falling asleep from all the xml I did notice Seam supports Ruby style templating Strings(example 1.2), which is sort of nice.
I&#8217;m not sure if you can use simple java oneliners though.</p>


	<p>A couple of things that suck:</p></content>
	</entry>
    
    
</feed>
