<?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>Niels' Homepage</title>
	<atom:link href="http://www.heirbaut.nl/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.heirbaut.nl</link>
	<description>Everything I want to put on the web</description>
	<lastBuildDate>Tue, 23 Feb 2010 19:44:08 +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>Forcing a Yii application to authenticate</title>
		<link>http://www.heirbaut.nl/2010/02/23/forcing-a-yii-application-to-authenticate/</link>
		<comments>http://www.heirbaut.nl/2010/02/23/forcing-a-yii-application-to-authenticate/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 19:44:08 +0000</pubDate>
		<dc:creator>Niels</dc:creator>
				<category><![CDATA[Otime]]></category>

		<guid isPermaLink="false">http://www.heirbaut.nl/?p=190</guid>
		<description><![CDATA[ 	I wanted my Yii based application to force users to authenticate. After studying the forums, the manuals and searching the web the solution came to me just as I was about to go to bed. It is dead simple: just make sure that the only action a default user can perform is actionLogin(). See [...]]]></description>
			<content:encoded><![CDATA[<p> 	I wanted my <a href="http://www.yiiframework.com">Yii</a> based application to force users to authenticate. After studying the forums, the manuals and searching the web the solution came to me just as I was about to go to bed. It is dead simple: just make sure that the only action a default user can perform is <code>actionLogin()</code>. See the code below on how to accomplish this:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">class</span> SiteController <span style="color: #000000; font-weight: bold;">extends</span> Controller
<span style="color: #009900;">&#123;</span>
    <span style="color: #009933; font-style: italic;">/**
     * @return array action filters
     */</span>
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> filters<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">return</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
            <span style="color: #0000ff;">'accessControl'</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">// perform access control for CRUD operations</span>
        <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #009933; font-style: italic;">/**
     * Specifies the access control rules.
     * This method is used by the 'accessControl' filter.
     * @return array access control rules
     */</span>
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> accessRules<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">return</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
            <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'allow'</span><span style="color: #339933;">,</span>  <span style="color: #666666; font-style: italic;">// allow all users to perform 'login'</span>
                <span style="color: #0000ff;">'actions'</span><span style="color: #339933;">=&gt;</span>array<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'login'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
                <span style="color: #0000ff;">'users'</span><span style="color: #339933;">=&gt;</span>array<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'*'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
            <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
            <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'allow'</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">// allow authenticated user to perform any action</span>
                <span style="color: #0000ff;">'users'</span><span style="color: #339933;">=&gt;</span>array<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'@'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
            <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
            <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'deny'</span><span style="color: #339933;">,</span>  <span style="color: #666666; font-style: italic;">// deny all users</span>
                <span style="color: #0000ff;">'users'</span><span style="color: #339933;">=&gt;</span>array<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'*'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
            <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</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;">// The rest of the SiteController implementation</span>
&nbsp;
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>I am not sure if this is the best possible solution, but since it is simple and elegant I am inclined to think it is.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.heirbaut.nl/2010/02/23/forcing-a-yii-application-to-authenticate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Just blogging again</title>
		<link>http://www.heirbaut.nl/2010/02/07/just-blogging-again/</link>
		<comments>http://www.heirbaut.nl/2010/02/07/just-blogging-again/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 16:16:59 +0000</pubDate>
		<dc:creator>Niels</dc:creator>
				<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://www.heirbaut.nl/?p=184</guid>
		<description><![CDATA[ 	A lot has happened the last couple of years. This has kept me busy and did not leave me with much desire to keep this blog up to data. And just when you think I will blog tomorrow, tomorrow has gone. And when tomorrow has gone, two years are gone.
But while I was enjoying [...]]]></description>
			<content:encoded><![CDATA[<p> 	A lot has happened the last couple of years. This has kept me busy and did not leave me with much desire to keep this blog up to data. And just when you think I will blog tomorrow, tomorrow has gone. And when tomorrow has gone, two years are gone.</p>
<p>But while I was enjoying a presentation on <a href="http://www.identi.ca">Identi.ca</a> at <a href="http://www.fosdem.org/2010">FOSDEM</a> I all of a sudden had the idea that now would be a good time to start again. So <a href="http://identi.ca/nielsheirbaut">I joined Identi.ca</a> and added this entry to this site. Expect more in the very near future. Being on-line feels like fun again.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.heirbaut.nl/2010/02/07/just-blogging-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mmmmm, nerd test&#8230;</title>
		<link>http://www.heirbaut.nl/2008/02/01/mmmmm-nerd-test/</link>
		<comments>http://www.heirbaut.nl/2008/02/01/mmmmm-nerd-test/#comments</comments>
		<pubDate>Fri, 01 Feb 2008 08:55:08 +0000</pubDate>
		<dc:creator>Niels</dc:creator>
				<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://www.heirbaut.nl/2008/02/01/mmmmm-nerd-test/</guid>
		<description><![CDATA[ 	I am not sure if this is good or bad. I just did the Nerd Test and got the following result:

Should I be proud or crawl back in the basement?
Let&#8217;s see with the second test offered at that site:



Ok, back into the basement, I have to dust of some comic books&#8230;
]]></description>
			<content:encoded><![CDATA[<p> 	I am not sure if this is good or bad. I just did the <a href="http://www.nerdtests.com/ft_nq.php">Nerd Test</a> and got the following result:<a href="http://www.nerdtests.com/nq_ref.html"><br />
<img src="http://www.nerdtests.com/images/badge/a7f8038bfe082efb.gif" alt="I am nerdier than 94% of all people. Are you a nerd? Click here to find out!" /></a></p>
<p>Should I be proud or crawl back in the basement?</p>
<p>Let&#8217;s see with <a href="http://www.nerdtests.com/ft_nt2.php">the second test</a> offered at that site:<br />
<a href="http://www.nerdtests.com/nt2ref.html"><br />
<img src="http://www.nerdtests.com/images/badge/nt2/89ccbaf784b9056a.png" alt="NerdTests.com says I'm a Cool Nerd King.  What are you?  Click here!"><br />
</a></p>
<p>Ok, back into the basement, I have to dust of some comic books&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.heirbaut.nl/2008/02/01/mmmmm-nerd-test/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Color schemes, Color schemes, Color schemes&#8230;</title>
		<link>http://www.heirbaut.nl/2007/11/14/color-schemes-color-schemes-color-schemes/</link>
		<comments>http://www.heirbaut.nl/2007/11/14/color-schemes-color-schemes-color-schemes/#comments</comments>
		<pubDate>Wed, 14 Nov 2007 19:46:55 +0000</pubDate>
		<dc:creator>Niels</dc:creator>
				<category><![CDATA[ViM]]></category>

		<guid isPermaLink="false">http://www.heirbaut.nl/2007/11/14/color-schemes-color-schemes-color-schemes/</guid>
		<description><![CDATA[ 	As a passionate and seasoned user of the best editor in the world I always look around for ways to improve the editing experience. One way to improve that is by selecting a good color scheme. The ViM website offer a ton of color schemes but no way to sample them other then look [...]]]></description>
			<content:encoded><![CDATA[<p> 	As a passionate and seasoned user of <a href="http://www.vim.org" title="The best editor...">the best editor in the world</a> I always look around for ways to improve the editing experience. One way to improve that is by selecting a good color scheme. The ViM website offer a ton of color schemes but no way to sample them other then look at the user ratings, install them and then judge for yourself. And even then the color schemes on the ViM site are not all schemes that are available.</p>
<p>Fortunately <a href="http://www.cs.cmu.edu/~maverick/VimColorSchemeTest/" title="ViM color schemes overview">someone</a> wrote a page where, as far as I know, all color schemes are shown and downloadable. Even my two favorite ones: <a href="http://www.cs.cmu.edu/~maverick/VimColorSchemeTest/desert.vim" title="Desert color scheme">here</a> and <a href="http://www.cs.cmu.edu/~maverick/VimColorSchemeTest/ekvoli.vim" title="Ekvoli color scheme">here</a>. The only minor annoyance is the fact that the color schemes are not all alphabetically ordered.</p>
<p>I know, I know, old news, but I still like to use this web site as my own long term memory&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.heirbaut.nl/2007/11/14/color-schemes-color-schemes-color-schemes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Aikido exam images added</title>
		<link>http://www.heirbaut.nl/2007/10/14/aikido-exam-images-added/</link>
		<comments>http://www.heirbaut.nl/2007/10/14/aikido-exam-images-added/#comments</comments>
		<pubDate>Sun, 14 Oct 2007 17:13:21 +0000</pubDate>
		<dc:creator>Niels</dc:creator>
				<category><![CDATA[Website]]></category>

		<guid isPermaLink="false">http://www.heirbaut.nl/2007/10/14/aikido-exam-images-added/</guid>
		<description><![CDATA[ 	Just added some more pictures from the aikido exams in Amersfoort on 6 October. You can find them here.
If you really like them as I do, just contact my lovely wife.
]]></description>
			<content:encoded><![CDATA[<p> 	Just added some more pictures from the aikido exams in Amersfoort on 6 October. You can find them <a href="http://www.heirbaut.nl/gallery/aikido-examens-2007/">here</a>.</p>
<p>If you really like them as I do, just contact my <a href="http://www.diona.nl">lovely wife</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.heirbaut.nl/2007/10/14/aikido-exam-images-added/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comment spam (a big 132 to spammers)</title>
		<link>http://www.heirbaut.nl/2007/10/12/comment-spam-a-big-132-to-spammers/</link>
		<comments>http://www.heirbaut.nl/2007/10/12/comment-spam-a-big-132-to-spammers/#comments</comments>
		<pubDate>Fri, 12 Oct 2007 08:35:22 +0000</pubDate>
		<dc:creator>Niels</dc:creator>
				<category><![CDATA[Website]]></category>

		<guid isPermaLink="false">http://www.heirbaut.nl/2007/10/12/comment-spam-a-big-132-to-spammers/</guid>
		<description><![CDATA[ 	Ever since I changed my CMS to WordPress, the ability to comment option on my postings has been switched on. Of course I do not want all kinds of spam on my weblog, so at first I made sure that only comments from people I approved would be allowed on this weblog. This caused [...]]]></description>
			<content:encoded><![CDATA[<p> 	Ever since I changed my CMS to WordPress, the ability to comment option on my postings has been switched on. Of course I do not want all kinds of spam on my weblog, so at first I made sure that only comments from people I approved would be allowed on this weblog. This caused me to have to disapprove a lot of comments a day, so I installed the <a href="http://akismet.com">Akismet plugin</a> for WordPress. That caught a lot of spam comments automatically, but the plugin retains the comments for 15 days before finally deleting them. So after 15 days I had +/- 900 comment spams in my database, waiting to be deleted once they are 15 days old.</p>
<p>Since I am a cheapskate (read: I don not want to pay for more storage than necessary). I was wondering how to reduce the number of comment spams that Akismet had to catch. So I installed a CAPTCHA plugin called <a href="http://recaptcha.net/plugins/wordpress/">reCAPTCHA</a>. It has the nice side effect that it not only generates good captchas remotely and with disabled (i.e. blind) people in mind, it also is used to help in digitizing old books. The words that you type in are scrambled images from a book that needs to be digitized. What a wonderful project!</p>
<p>Lets see if this keeps down the amount of comment spam. And if you are wondering what the &#8216;132&#8242; means in the title: just show this number in binary using your fingers :).</p>
<p><strong>Update 11:36:</strong></p>
<p>First it seemed that the CAPTCHA plugin did not prevent comments from being processed by Akismet. After some Googling I found that the Akismet plugin had to be switched off. But reCAPTCHA is seems to be easily defeated as I already have 6 comments waiting to be moderated. So for now I will switch Akismet on again, saving me some time moderating.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.heirbaut.nl/2007/10/12/comment-spam-a-big-132-to-spammers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Aikido!</title>
		<link>http://www.heirbaut.nl/2007/10/06/aikido/</link>
		<comments>http://www.heirbaut.nl/2007/10/06/aikido/#comments</comments>
		<pubDate>Sat, 06 Oct 2007 07:58:57 +0000</pubDate>
		<dc:creator>Niels</dc:creator>
				<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://www.heirbaut.nl/2007/10/06/aikido/</guid>
		<description><![CDATA[ 	Incredible but true, I passed my aikido shodan test today! It feels really good as most people are convinced I am more of a jiu-jitsu type than an aikido type.
The exam itself went really well. I wasn&#8217;t nervous at all and completely focused and relaxed. Although you wouldn&#8217;t think so if you looked at [...]]]></description>
			<content:encoded><![CDATA[<p> 	Incredible but true, I passed my aikido shodan test today! It feels really good as most people are convinced I am more of a jiu-jitsu type than an aikido type.</p>
<p>The exam itself went really well. I wasn&#8217;t nervous at all and completely focused and relaxed. Although you wouldn&#8217;t think so if you looked at my face on the image below. Perhaps that is way people have the perception that I am more of a jiu-jitsu guy.</p>
<p>As far as I know I only made two mistakes: moving a bit too fast on kote-gaeshi and mixing up kata-otoshi and kata-ha-otoshi when asked to perform kata-otoshi.</p>
<p>Next time I hope to take part as <a href="http://www.vermaatonline.com/aikido">Rick&#8217;s</a> uke. He unfortunately did not pass his nidan test. But knowing his dedication I am sure that he will put on a great show in March.</p>
<p>A big <strong>THANKS!</strong> for Willem and Raymond for helping me pass this test and for Rick for still allowing to have a party at his house.<br />
<a href="http://www.heirbaut.nl/wp-content/uploads/2007/10/suwari_waza.jpg" title="Image of shodan exam"></a></p>
<div style="text-align: center"><a href="http://www.heirbaut.nl/wp-content/uploads/2007/10/suwari_waza.jpg" title="Image of shodan exam"><img src="http://www.heirbaut.nl/wp-content/uploads/2007/10/suwari_waza.thumbnail.jpg" alt="Image of shodan exam" /></a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.heirbaut.nl/2007/10/06/aikido/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The finald leads</title>
		<link>http://www.heirbaut.nl/2007/07/25/the-finald-leads/</link>
		<comments>http://www.heirbaut.nl/2007/07/25/the-finald-leads/#comments</comments>
		<pubDate>Wed, 25 Jul 2007 15:22:04 +0000</pubDate>
		<dc:creator>Niels</dc:creator>
				<category><![CDATA[Website]]></category>

		<guid isPermaLink="false">http://www.heirbaut.nl/2007/07/25/the-finald-leads/</guid>
		<description><![CDATA[ 	Are the heaviest. Or so they say in Dutch. It means that the last task you have to do is the hardest.
This is just a message to let you know that the internal links should now all point to the correct places within this web site and that this website is now fully functional.
]]></description>
			<content:encoded><![CDATA[<p> 	Are the heaviest. Or so they say in Dutch. It means that the last task you have to do is the hardest.</p>
<p>This is just a message to let you know that the internal links should now all point to the correct places within this web site and that this website is now <a href="http://en.wikipedia.org/wiki/The_Naked_Now_(TNG_episode)" title="It's a joke, lighten up...">fully functional</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.heirbaut.nl/2007/07/25/the-finald-leads/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Looking better and better (2)&#8230;</title>
		<link>http://www.heirbaut.nl/2007/07/24/looking-better-and-better-2/</link>
		<comments>http://www.heirbaut.nl/2007/07/24/looking-better-and-better-2/#comments</comments>
		<pubDate>Tue, 24 Jul 2007 18:49:01 +0000</pubDate>
		<dc:creator>Niels</dc:creator>
				<category><![CDATA[Website]]></category>

		<guid isPermaLink="false">http://www.heirbaut.nl/2007/07/24/looking-better-and-better-2/</guid>
		<description><![CDATA[ 	The overview of the archives in the sidebar was a bit too verbose to my taste. So in a natural reflex (stupid software engineers) I studied how to write my own archive list creation function. Luckily I thought of searching for a Wordpress plugin that filled my needs. Thanks again!
]]></description>
			<content:encoded><![CDATA[<p> 	The overview of the archives in the sidebar was a bit too verbose to my taste. So in a natural reflex (stupid software engineers) I studied how to write my own archive list creation function. Luckily I thought of searching for a Wordpress plugin that <a href="http://rmarsh.com/plugins/compact-archives/" title="Compact Archives">filled my needs</a>. Thanks again!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.heirbaut.nl/2007/07/24/looking-better-and-better-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Looking better and better</title>
		<link>http://www.heirbaut.nl/2007/07/24/looking-better-and-better/</link>
		<comments>http://www.heirbaut.nl/2007/07/24/looking-better-and-better/#comments</comments>
		<pubDate>Tue, 24 Jul 2007 18:17:57 +0000</pubDate>
		<dc:creator>Niels</dc:creator>
				<category><![CDATA[Website]]></category>

		<guid isPermaLink="false">http://www.heirbaut.nl/2007/07/24/looking-better-and-better/</guid>
		<description><![CDATA[ 	The default Wordpress theme is so&#8230;.
DEFAULT!
So I went  searching on the web for nice themes and this was the one I really liked. Only a few minor tweaks were necessary thus far.
Check out the creator&#8217;s site, he has lots more where this came from. Thanks!
]]></description>
			<content:encoded><![CDATA[<p> 	The default Wordpress theme is so&#8230;.</p>
<p align="center"><strong>DEFAULT!</strong></p>
<p>So I went  searching on the web for nice themes and <a href="http://themes.sadish.net/?wptheme=TechLand" title="TechLand Theme">this</a> was the one I really liked. Only a few minor tweaks were necessary thus far.</p>
<p>Check out the <a href="http://themes.sadish.net" title="Sadish’s WordPress Themes">creator&#8217;s</a> site, he has lots more where this came from. Thanks!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.heirbaut.nl/2007/07/24/looking-better-and-better/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
