<?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"
	>

<channel>
	<title>credmp</title>
	<atom:link href="http://www.credmp.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.credmp.org</link>
	<description>Ramblings of a code junkie</description>
	<pubDate>Thu, 25 Dec 2008 08:22:57 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<item>
		<title>Google Reader</title>
		<link>http://www.credmp.org/2008/12/25/google-reader/</link>
		<comments>http://www.credmp.org/2008/12/25/google-reader/#comments</comments>
		<pubDate>Thu, 25 Dec 2008 08:22:57 +0000</pubDate>
		<dc:creator>core</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.credmp.org/?p=151</guid>
		<description><![CDATA[I use google reader as my RSS feed-reader, just so I can access it anywhere.
Today I found out that you can also insert clips from google reader into your own site, like the below &#8217;starred items&#8217;:


Quite nice!
]]></description>
			<content:encoded><![CDATA[<p>I use google reader as my RSS feed-reader, just so I can access it anywhere.</p>
<p>Today I found out that you can also insert clips from google reader into your own site, like the below &#8217;starred items&#8217;:</p>
<p><script type="text/javascript" src="http://www.google.com/reader/ui/publisher-en.js"></script><br />
<script type="text/javascript" src="http://www.google.com/reader/public/javascript/user/13555050162905136239/state/com.google/starred?n=10&#038;callback=GRC_p(%7Bc%3A%22gray%22%2Ct%3A%22my%20starred%20items%22%2Cs%3A%22true%22%2Cb%3A%22false%22%7D)%3Bnew%20GRC"></script></p>
<p>Quite nice!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.credmp.org/2008/12/25/google-reader/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Living at the server side</title>
		<link>http://www.credmp.org/2008/10/07/living-at-the-server-side/</link>
		<comments>http://www.credmp.org/2008/10/07/living-at-the-server-side/#comments</comments>
		<pubDate>Tue, 07 Oct 2008 13:21:23 +0000</pubDate>
		<dc:creator>core</dc:creator>
		
		<category><![CDATA[Code]]></category>

		<category><![CDATA[Emacs]]></category>

		<category><![CDATA[books]]></category>

		<category><![CDATA[erlang]]></category>

		<category><![CDATA[objective-c]]></category>

		<guid isPermaLink="false">http://www.credmp.org/?p=130</guid>
		<description><![CDATA[It has been a long while since my last blog post. A lot of stuff has happened in my personal life, but I have a feeling that it has calmed down significantly enough for me to enjoy my life once again.
I have been reading some books lately, all programming related:
iPhone SDK Development: this is a [...]]]></description>
			<content:encoded><![CDATA[<p>It has been a long while since my last blog post. A lot of stuff has happened in my personal life, but I have a feeling that it has calmed down significantly enough for me to enjoy my life once again.</p>
<p>I have been reading some books lately, all programming related:</p>
<p><a href="http://pragprog.com/titles/amiphd/iphone-sdk-development">iPhone SDK Development</a>: this is a Beta book from the pragmatic programmers group&#8230; it is not yet finished but what I read so far is quite interesting. The book tries to easy you into iPhone development, it kind of succeeds, however since it is a beta book it has a lot of small errors&#8230;. and that makes it hard to follow along, since you are regularly trying to find out why something is not working and thinking you did not pay enought attention :S&#8230;. luckily the <a href="http://pragprog.com/titles/amiphd/errata">errata</a> section on the website helps a lot! In the end this will be a great book to start your own development, I am sure!</p>
<p><a href="http://pragprog.com/titles/jaerlang/programming-erlang">Programming Erlang</a>: a very good book to get you into Erlang programming! I would recommend this book to anyone interested in learning Erlang. The book starts with a gentle introduction into the language itself and the change of mindset needed with functional programming after which it nicely covers everything from distribution of code over several nodes, storing data in the various database possibilities and creating distributed, fault tolerant and concurrent systems using the Open Telecom Platform (OTP).</p>
<p><a href="http://pragprog.com/screencasts/v-kserl/erlang-in-practice">Erlang in practice</a>: not really a book, it is a set of screencasts exploring the process of writing an erlang chat server. Takes you through all the steps; setting up, distributing, persisting and adding REST support.</p>
<p>Although the iPhone/Objective-C book is quite interesting I find that I am more attracted to writing server side software. I guess it is because server side software is more of an boolean logic then interfaces (either it works, or it doesn&#8217;t).</p>
<p>Although the Erlang package comes with a great Emacs mode for editing erlang software it misses 2 things:</p>
<p>The mode uses <a href="http://www.emacswiki.org/cgi-bin/wiki/TempoMode">Tempo</a> snippet support, while I have found that <a href="http://www.emacswiki.org/cgi-bin/wiki/YaSnippetMode">YA Snippet</a> provides far superior templating. </p>
<p>The other is that flymake is quite a necessity I think. Flymake provides on-the-fly syntax checking of your source code.</p>
<p>I have added the following configuration to my emacs setup to enable it:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
</pre></td><td class="code"><pre class="lisp"><span style="color: #66cc66;">&#40;</span>add<span style="color: #66cc66;">-</span>to<span style="color: #66cc66;">-</span><span style="color: #b1b100;">list</span> 'load<span style="color: #66cc66;">-</span>path <span style="color: #ff0000;">&quot;path-to-erlang-package-emacs-mode&quot;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#40;</span>require 'erlang<span style="color: #66cc66;">-</span>start<span style="color: #66cc66;">&#41;</span>
&nbsp;
<span style="color: #66cc66;">&#40;</span>add<span style="color: #66cc66;">-</span>to<span style="color: #66cc66;">-</span><span style="color: #b1b100;">list</span> 'auto<span style="color: #66cc66;">-</span>mode<span style="color: #66cc66;">-</span>alist '<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\\</span>.erl?$&quot;</span> . erlang<span style="color: #66cc66;">-</span>mode<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#40;</span>add<span style="color: #66cc66;">-</span>to<span style="color: #66cc66;">-</span><span style="color: #b1b100;">list</span> 'auto<span style="color: #66cc66;">-</span>mode<span style="color: #66cc66;">-</span>alist '<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\\</span>.hrl?$&quot;</span> . erlang<span style="color: #66cc66;">-</span>mode<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
&nbsp;
<span style="color: #66cc66;">&#40;</span>require 'flymake<span style="color: #66cc66;">&#41;</span>
&nbsp;
<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">defun</span> flymake<span style="color: #66cc66;">-</span>erlang<span style="color: #66cc66;">-</span>init <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
  <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">let</span><span style="color: #66cc66;">*</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>temp<span style="color: #66cc66;">-</span>file <span style="color: #66cc66;">&#40;</span>flymake<span style="color: #66cc66;">-</span>init<span style="color: #66cc66;">-</span>create<span style="color: #66cc66;">-</span>temp<span style="color: #66cc66;">-</span>buffer<span style="color: #66cc66;">-</span>copy
		     'flymake<span style="color: #66cc66;">-</span>create<span style="color: #66cc66;">-</span>temp<span style="color: #66cc66;">-</span>inplace<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
	 <span style="color: #66cc66;">&#40;</span>local<span style="color: #66cc66;">-</span>file <span style="color: #66cc66;">&#40;</span>file<span style="color: #66cc66;">-</span>relative<span style="color: #66cc66;">-</span><span style="color: #b1b100;">name</span> temp<span style="color: #66cc66;">-</span>file
		<span style="color: #66cc66;">&#40;</span>file<span style="color: #66cc66;">-</span>name<span style="color: #66cc66;">-</span>directory buffer<span style="color: #66cc66;">-</span>file<span style="color: #66cc66;">-</span><span style="color: #b1b100;">name</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
    <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">list</span> <span style="color: #ff0000;">&quot;path-to-eflymake&quot;</span> <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">list</span> local<span style="color: #66cc66;">-</span>file<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
&nbsp;
<span style="color: #66cc66;">&#40;</span>add<span style="color: #66cc66;">-</span>to<span style="color: #66cc66;">-</span><span style="color: #b1b100;">list</span> 'flymake<span style="color: #66cc66;">-</span>allowed<span style="color: #66cc66;">-</span>file<span style="color: #66cc66;">-</span>name<span style="color: #66cc66;">-</span>masks '<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\\</span>.erl<span style="color: #000099; font-weight: bold;">\\</span>'&quot;</span> flymake<span style="color: #66cc66;">-</span>erlang<span style="color: #66cc66;">-</span>init<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span></pre></td></tr></table></div>

<p>Lines 1 and 2 setup the erlang mode, 4 and 5 associate this mode with .erl and .hrl (erlang records) files, line 7 loads up flymake and lines 9 up to and including 14 tell flymake how to check erlang files for syntax. I use the eflymake script for this job. Line 16 tells flymake to use this for .erl files.</p>
<p>The eflymake script mentioned is an escript script:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre>#!/usr/local/bin/escript
-export([main/1]).
&nbsp;
main([File_Name]) -&gt;
    compile:file(File_Name, [warn_obsolete_guard, warn_unused_import, 
                             warn_shadow_vars, warn_export_vars,
  			     strong_validation, report,
  			     {i, &quot;../include&quot;}]).</pre></td></tr></table></div>

<p>This greatly simplifies the writing of code using our favorite editor ;). During the screencasts of Erlang in Practice (mentioned above) you see the benefit of this extension. The author starts out with a clean Emacs installation it seems and over the various screencasts you see that he adds this extension. In the first couple of sessions you see him make some small mistakes and lateron you see that Emacs warns him and he fixes the code before he gets bitten by it.</p>
<p>While learning Erlang I found that I have a new-found love for server programming. I was kinda dumbed down by the many years of Java programming and was loosing interest in programming server-side really, now with an injection of a new language and &#8220;new&#8221; ideas I am totally excited to be in this field again&#8230; quite awesome what taking some time to learn something new can bring with it!</p>
<p>So, expect some Erlang posts the coming time. I am trying to think of a nice example to illustrate some of the niceties of Erlang and the OTP.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.credmp.org/2008/10/07/living-at-the-server-side/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Iron Maiden 2008</title>
		<link>http://www.credmp.org/2008/08/17/iron-maiden-2008/</link>
		<comments>http://www.credmp.org/2008/08/17/iron-maiden-2008/#comments</comments>
		<pubDate>Sun, 17 Aug 2008 09:40:01 +0000</pubDate>
		<dc:creator>core</dc:creator>
		
		<category><![CDATA[Blog]]></category>

		<category><![CDATA[concerts]]></category>

		<category><![CDATA[iron maiden]]></category>

		<guid isPermaLink="false">http://www.credmp.org/?p=121</guid>
		<description><![CDATA[Iron Maiden, on their Somewhere Back In Time Tour, passed through The Netherlands once again&#8230; and as usual me, Patrick, Leon and Marco went to see them. We have done this ritual the last few times they came through on their different tours. I think this was the 3rd time we saw Maiden as a [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://ironmaiden.com/">Iron Maiden</a>, on their Somewhere Back In Time Tour, passed through The Netherlands once again&#8230; and as usual me, Patrick, Leon and Marco went to see them. We have done this ritual the last few times they came through on their different tours. I think this was the 3rd time we saw Maiden as a group actually, while it was the 8th time for me!</p>
<p>Since the first lineups would start aroung 4:30pm / 5pm (lauren harris) we figured it would be a good idea to leave a little bit early. So at 2 we were on our way from Almere to Assen, the TT Circuit, where the concert was being held. Luckily we left early, because for the first in all our concert trips we had big car problems; the coolant hose ruptured when we were a few hundred meters away from the concert grounds!</p>
<p><a href="http://www.credmp.org/wp-content/uploads/2008/08/l-640-480-22c44868-d8e5-4f03-b84e-c261b1b440b2.jpeg" rel="lightbox[121]"><img src="http://www.credmp.org/wp-content/uploads/2008/08/l-640-480-22c44868-d8e5-4f03-b84e-c261b1b440b2.jpeg" alt="" width="300" height="225" class="alignnone size-full wp-image-364" /></a></p>
<p>Luckily for us we were not the only ones with car trouble. A guy (not even 50 meters further down the road) broke down an hour and a half before and had called the <a href="http://www.anwb.nl/">ANWB</a>. So after about another 20 minutes waiting the ANWB guy helped us out with patching the cable with some special tape and filling up our coolant tank again.
<p>One very important thing I learned last time at <a href="http://www.fieldsofrock.nl/">Fields Of Rock</a> was to have some extra supplies for after the concert when you try to get out of the parking lots (it took us 2 hours back then)&#8230; these supplies were a welcome thing while standing in the burning sun with a broken car!</p>
<p>When we finally arrived at the concert grounds (around 6pm) first thing to do is grab some drinks and food. The food was actually of good quality, I had a big chicken leg and the other guys had some chicken wrap type of thing and a square (?!) hamburger; they seem to be enjoying it!</p>
<p><a href="http://www.credmp.org/wp-content/uploads/2008/08/l-640-480-e6d0a344-2c11-432f-b16d-6b3babdfacc2.jpeg" rel="lightbox[121]"><img src="http://www.credmp.org/wp-content/uploads/2008/08/l-640-480-e6d0a344-2c11-432f-b16d-6b3babdfacc2.jpeg" alt="" width="300" height="225" class="alignnone size-full wp-image-364" /></a></p>
<p>Due to the car trouble we missed the first 2 shows really; <a href="http://www.myspace.com/laurenharrisuk">Lauren Harris</a> and <a href="http://www.kamelot.com/">Kamelot</a> which was a shame. Only one act left which was <a href="http://www.within-temptation.com/">Within Temptation</a>, which was actually very good, they have grown really rapidly from the last time I saw them live! So much even that I went out to get their album today!</p>
<p><a href="http://www.credmp.org/wp-content/uploads/2008/08/l-640-480-cb19dc4e-7768-4ea5-a85e-bb80c27558e3.jpeg" rel="lightbox[121]"><img src="http://www.credmp.org/wp-content/uploads/2008/08/l-640-480-cb19dc4e-7768-4ea5-a85e-bb80c27558e3.jpeg" alt="" width="300" height="225" class="alignnone size-full wp-image-364" /></a></p>
<p>Then, finally, the biggest and baddest show I have seen in a long time. Iron Maiden lived up to its name and played an amazing set of old songs that made the crowd go wild from the first sounds of Churchill&#8217;s speech! Time flew so fast that I totally forgot to take pictures :(, but I saw Marco use his iPhone, so hopefully he has some good pics to show on his blog.</p>
<p>After the concert we had some drinks to fill up the bodily fluids once again! Standing between 30 000 metal heads, men and women, and going along in the music makes you sweat like crazy!</p>
<p>When the largest part of the 30 000 people crowd is gone you can truely see how large a mess is made during such a concert.</p>
<p><a href="http://www.credmp.org/wp-content/uploads/2008/08/l-640-480-4399a678-f16a-4a58-b4c7-9405e2f22865.jpeg" rel="lightbox[121]"><img src="http://www.credmp.org/wp-content/uploads/2008/08/l-640-480-4399a678-f16a-4a58-b4c7-9405e2f22865.jpeg" alt="" width="300" height="225" class="alignnone size-full wp-image-364" /></a></p>
<p>The way back went very smoothly, the Assen-er people seem to know how to deal with large crowds of cars and people and we were quickly on our way, albeit with a gigantic detour through the outer side of Assen/Drente. When we came in it took us 10 minutes to get from the freeway to a parking place, on the way out it took an hour to get back to the freeway because of the weird detour.</p>
<p>All in all a very good experience once again! Loved the concert, loved the crowd!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.credmp.org/2008/08/17/iron-maiden-2008/feed/</wfw:commentRss>
		</item>
		<item>
		<title>iPhone wordpress</title>
		<link>http://www.credmp.org/2008/08/11/iphone-wordpress/</link>
		<comments>http://www.credmp.org/2008/08/11/iphone-wordpress/#comments</comments>
		<pubDate>Mon, 11 Aug 2008 09:13:37 +0000</pubDate>
		<dc:creator>core</dc:creator>
		
		<category><![CDATA[Blog]]></category>

		<category><![CDATA[iphone]]></category>

		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.credmp.org/?p=110</guid>
		<description><![CDATA[The iPhone wordpress app was released I noticed today. To celebrate this I am writing this post and attaching a photo I shot yesterday at my dad&#8217;s place.

]]></description>
			<content:encoded><![CDATA[<p>The iPhone wordpress app was released I noticed today. To celebrate this I am writing this post and attaching a photo I shot yesterday at my dad&#8217;s place.</p>
<p><a href="http://www.credmp.org/wp-content/uploads/2008/08/l-640-480-36ccfc66-401d-4994-afd8-316dc055d146.jpeg" rel="lightbox[110]"><img src="http://www.credmp.org/wp-content/uploads/2008/08/l-640-480-36ccfc66-401d-4994-afd8-316dc055d146.jpeg" alt="" width="300" height="225" class="alignnone size-full wp-image-364" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.credmp.org/2008/08/11/iphone-wordpress/feed/</wfw:commentRss>
		</item>
		<item>
		<title>An update Java development environment</title>
		<link>http://www.credmp.org/2008/08/06/an-update-java-development-environment/</link>
		<comments>http://www.credmp.org/2008/08/06/an-update-java-development-environment/#comments</comments>
		<pubDate>Wed, 06 Aug 2008 07:25:06 +0000</pubDate>
		<dc:creator>core</dc:creator>
		
		<category><![CDATA[Code]]></category>

		<category><![CDATA[Emacs]]></category>

		<category><![CDATA[file-cache]]></category>

		<category><![CDATA[Java]]></category>

		<category><![CDATA[jde]]></category>

		<category><![CDATA[sacha chua]]></category>

		<guid isPermaLink="false">http://www.credmp.org/?p=101</guid>
		<description><![CDATA[As a pre-cursor to my promised larger articles, a post about Emacs and some of the development tweaks I did last week.
The last weeks there has been quite some chatter about development setups. Most notably Sacha Chua figured out that she could be more productive in Emacs then in Eclipse in her current project, read [...]]]></description>
			<content:encoded><![CDATA[<p>As a pre-cursor to my promised larger articles, a post about Emacs and some of the development tweaks I did last week.</p>
<p>The last weeks there has been quite some chatter about development setups. Most notably <a href="http://www.sachachua.com">Sacha Chua</a> figured out that she could be more productive in Emacs then in Eclipse in her current project, read about it <a href="http://sachachua.com/wp/2008/07/29/from-eclipse-to-emacs-drupal-development-with-subversion-tags-templates-and-xdebug/">here</a>, <a href="http://sachachua.com/wp/2008/07/27/eclipse-to-emacs-navigating-your-source-tree/">here</a> and <a href="http://sachachua.com/wp/2008/07/30/emacs-and-php-theres-more-than-one-way-to-do-it-of-course/">here</a>.</p>
<p>Sometimes it just takes another person to bring back a thought about some feature or another that you go &#8220;damn, how could I have forgotten that one?&#8221;. Sacha&#8217;s posts and the <a href="http://www.emacswiki.org">emacswiki</a> have fine-tuned my development process a little more.</p>
<p>Here are the changes I made, first the file-cache usage. I didn&#8217;t know about this one and I found it really usefull. It requires the usage of <b>ido-mode</b> though, so it might not be for everyone.</p>

<div class="wp_syntax"><div class="code"><pre class="lisp"><span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">defun</span> file<span style="color: #66cc66;">-</span>cache<span style="color: #66cc66;">-</span>ido<span style="color: #66cc66;">-</span>find<span style="color: #66cc66;">-</span>file <span style="color: #66cc66;">&#40;</span>file<span style="color: #66cc66;">&#41;</span>
  <span style="color: #ff0000;">&quot;Using ido, interactively open file from file cache'.
First select a file, matched using ido-switch-buffer against the contents
in `file-cache-alist'. If the file exist in more than one
directory, select directory. Lastly the file is opened.&quot;</span>
  <span style="color: #66cc66;">&#40;</span>interactive <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">list</span> <span style="color: #66cc66;">&#40;</span>file<span style="color: #66cc66;">-</span>cache<span style="color: #66cc66;">-</span>ido<span style="color: #66cc66;">-</span>read <span style="color: #ff0000;">&quot;File: &quot;</span>
                                          <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">mapcar</span>
                                           <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">lambda</span> <span style="color: #66cc66;">&#40;</span>x<span style="color: #66cc66;">&#41;</span>
                                             <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">car</span> x<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
                                           file<span style="color: #66cc66;">-</span>cache<span style="color: #66cc66;">-</span>alist<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
  <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">let</span><span style="color: #66cc66;">*</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>record <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">assoc</span> file file<span style="color: #66cc66;">-</span>cache<span style="color: #66cc66;">-</span>alist<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
    <span style="color: #66cc66;">&#40;</span>find<span style="color: #66cc66;">-</span>file
     <span style="color: #66cc66;">&#40;</span>expand<span style="color: #66cc66;">-</span>file<span style="color: #66cc66;">-</span><span style="color: #b1b100;">name</span>
      file
      <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">=</span> <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">length</span> record<span style="color: #66cc66;">&#41;</span> <span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#41;</span>
          <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">car</span> <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">cdr</span> record<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
        <span style="color: #66cc66;">&#40;</span>file<span style="color: #66cc66;">-</span>cache<span style="color: #66cc66;">-</span>ido<span style="color: #66cc66;">-</span>read
         <span style="color: #66cc66;">&#40;</span>format <span style="color: #ff0000;">&quot;Find %s in dir: &quot;</span> file<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">cdr</span> record<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
&nbsp;
<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">defun</span> file<span style="color: #66cc66;">-</span>cache<span style="color: #66cc66;">-</span>ido<span style="color: #66cc66;">-</span>read <span style="color: #66cc66;">&#40;</span>prompt choices<span style="color: #66cc66;">&#41;</span>
  <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">let</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>ido<span style="color: #66cc66;">-</span>make<span style="color: #66cc66;">-</span>buffer<span style="color: #66cc66;">-</span>list<span style="color: #66cc66;">-</span>hook
         <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">lambda</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
           <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> ido<span style="color: #66cc66;">-</span>temp<span style="color: #66cc66;">-</span><span style="color: #b1b100;">list</span> choices<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
    <span style="color: #66cc66;">&#40;</span>ido<span style="color: #66cc66;">-</span>read<span style="color: #66cc66;">-</span>buffer prompt<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
&nbsp;
<span style="color: #66cc66;">&#40;</span>require 'filecache<span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#40;</span>require 'ido<span style="color: #66cc66;">&#41;</span>
&nbsp;
<span style="color: #66cc66;">&#40;</span>ido<span style="color: #66cc66;">-</span>mode t<span style="color: #66cc66;">&#41;</span>
&nbsp;
<span style="color: #66cc66;">&#40;</span>global<span style="color: #66cc66;">-</span>set<span style="color: #66cc66;">-</span>key <span style="color: #66cc66;">&#40;</span>kbd <span style="color: #ff0000;">&quot;ESC ESC f&quot;</span><span style="color: #66cc66;">&#41;</span> 'file<span style="color: #66cc66;">-</span>cache<span style="color: #66cc66;">-</span>ido<span style="color: #66cc66;">-</span>find<span style="color: #66cc66;">-</span>file<span style="color: #66cc66;">&#41;</span></pre></div></div>

<p>This sets up file-cache and adds a hook to ido for finding a file using file-cache. Pressing <b>ESC ESC f</b> will popup a prompt in the echo area for a name, just type the filename, without directory, and ido will list all files matching without looking if it is in the current directory or not.</p>
<p>I use this a lot with Java projects, using the JDEE mode. In order to adjust the file-cache to the current JDEE project, add the following to your <b>.emacs</b> file.</p>

<div class="wp_syntax"><div class="code"><pre class="lisp"><span style="color: #808080; font-style: italic;">;; Prevent subversion files form polluting the cache</span>
<span style="color: #66cc66;">&#40;</span>add<span style="color: #66cc66;">-</span>to<span style="color: #66cc66;">-</span><span style="color: #b1b100;">list</span> 'file<span style="color: #66cc66;">-</span>cache<span style="color: #66cc66;">-</span>filter<span style="color: #66cc66;">-</span>regexps <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\\</span>.svn-base$&quot;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #808080; font-style: italic;">;; global variable to keep track of current project</span>
<span style="color: #66cc66;">&#40;</span>defvar credmp<span style="color: #66cc66;">/</span>current<span style="color: #66cc66;">-</span>jde<span style="color: #66cc66;">-</span>project <span style="color: #b1b100;">nil</span><span style="color: #66cc66;">&#41;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">;; small function to re-create the cache when the project changes</span>
<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">defun</span> credmp<span style="color: #66cc66;">/</span>update<span style="color: #66cc66;">-</span>cache <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
  <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">not</span> <span style="color: #66cc66;">&#40;</span>string<span style="color: #66cc66;">=</span> jde<span style="color: #66cc66;">-</span>current<span style="color: #66cc66;">-</span>project credmp<span style="color: #66cc66;">/</span>current<span style="color: #66cc66;">-</span>jde<span style="color: #66cc66;">-</span>project<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
      <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">progn</span>
        <span style="color: #66cc66;">&#40;</span>file<span style="color: #66cc66;">-</span>cache<span style="color: #66cc66;">-</span>clear<span style="color: #66cc66;">-</span>cache<span style="color: #66cc66;">&#41;</span>
        <span style="color: #66cc66;">&#40;</span>file<span style="color: #66cc66;">-</span>cache<span style="color: #66cc66;">-</span>add<span style="color: #66cc66;">-</span>directory<span style="color: #66cc66;">-</span>using<span style="color: #66cc66;">-</span>find <span style="color: #66cc66;">&#40;</span>substring jde<span style="color: #66cc66;">-</span>current<span style="color: #66cc66;">-</span>project <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">-</span> <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">length</span> jde<span style="color: #66cc66;">-</span>current<span style="color: #66cc66;">-</span>project<span style="color: #66cc66;">&#41;</span> <span style="color: #cc66cc;">6</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
    <span style="color: #66cc66;">&#41;</span>
  <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> credmp<span style="color: #66cc66;">/</span>current<span style="color: #66cc66;">-</span>jde<span style="color: #66cc66;">-</span>project jde<span style="color: #66cc66;">-</span>current<span style="color: #66cc66;">-</span>project<span style="color: #66cc66;">&#41;</span>
  <span style="color: #66cc66;">&#41;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">;; add the hook...</span>
<span style="color: #66cc66;">&#40;</span>add<span style="color: #66cc66;">-</span>hook 'jde<span style="color: #66cc66;">-</span>project<span style="color: #66cc66;">-</span>hooks 'credmp<span style="color: #66cc66;">/</span>update<span style="color: #66cc66;">-</span>cache<span style="color: #66cc66;">&#41;</span></pre></div></div>

<p>One a-ha erlebniss (as the germans call it) was Etags, a usefull TAGS file generating program, which basically creates an index of symbols from your source tree.</p>
<p>In order to use etags you need 2 things, a TAGS file and etags support in Emacs. Generating a TAGS file is easy, if you are on Linux or Mac OS X. How it is done on Windows, I don&#8217;t know <img src='http://www.credmp.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>The shell command to execute:</p>
<pre>
$ find . -name '*.java' | etags -
</pre>
<p>And the necessary elisp to use it:</p>

<div class="wp_syntax"><div class="code"><pre class="lisp"><span style="color: #66cc66;">&#40;</span>require 'etags<span style="color: #66cc66;">&#41;</span></pre></div></div>

<p>Now you can use <b>M-.</b> to jump to a TAG. For in-depth info on TAGS please see section <b>33 Maintaining</b> of your GNU Emacs manual (<b>C-h i</b> and then <b>m Emacs</b>).</p>
<p>It is quite nice to see our Emacs community so active in enhancing our day to day lives! Keep bringing it!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.credmp.org/2008/08/06/an-update-java-development-environment/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Blog updates</title>
		<link>http://www.credmp.org/2008/07/26/blog-updates/</link>
		<comments>http://www.credmp.org/2008/07/26/blog-updates/#comments</comments>
		<pubDate>Sat, 26 Jul 2008 11:03:38 +0000</pubDate>
		<dc:creator>core</dc:creator>
		
		<category><![CDATA[Blog]]></category>

		<category><![CDATA[gravatar]]></category>

		<category><![CDATA[lightbox 2]]></category>

		<category><![CDATA[sandbox]]></category>

		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.credmp.org/?p=99</guid>
		<description><![CDATA[Alright, after the migration I wrote about earlier I have updated the theme from the standard one to a new one inspired by a blogpost by Jeff Waugh and the sandbox theme.
Support was added for a new Syntax Highlighting plugin, lightbox 2 and Gravatar support in the comments.
I also wanted to let you know about [...]]]></description>
			<content:encoded><![CDATA[<p>Alright, after the migration I wrote about earlier I have updated the theme from the standard one to a new one inspired by <a href="http://bethesignal.org/blog/2008/07/26/projects-that-make-my-wordpress-rock/">a blogpost by Jeff Waugh</a> and the <a href="http://www.plaintxt.org/themes/sandbox/">sandbox theme</a>.</p>
<p>Support was added for a new <a href="http://wordpress.org/extend/plugins/wp-syntax/">Syntax Highlighting plugin</a>, <a href="http://www.huddletogether.com/projects/lightbox2/">lightbox 2</a> and <a href="http://www.gravatar.com">Gravatar</a> support in the comments.</p>
<p>I also wanted to let you know about the upcoming series of posts I am preparing. I found that I get the most satisfaction (and response) from writing long, in-depth, articles like the post on <a href="http://www.credmp.org/?p=61">my GTD setup</a>. So I have been writing some in-depth stuff on Java programming: the Spring framework, RESTful services and Hibernate.</p>
<p>As it stands now the articles will start with the basics and the end result will be a fully functional service that illustrates a lot of concepts and techniques.</p>
<p>Stay tuned, hopefully the 1st of the articles will be pushed to the blog this week <img src='http://www.credmp.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.credmp.org/2008/07/26/blog-updates/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Upgraded wordpress</title>
		<link>http://www.credmp.org/2008/07/20/upgraded-wordpress/</link>
		<comments>http://www.credmp.org/2008/07/20/upgraded-wordpress/#comments</comments>
		<pubDate>Sun, 20 Jul 2008 19:43:44 +0000</pubDate>
		<dc:creator>core</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://www.credmp.org/?p=92</guid>
		<description><![CDATA[It&#8217;s been a while since the last post and I have several large posts lined up, however before posting those I decided to upgrade wordpress to the latest version.
The upgrade was very uneventfull except for a non-working theme and a surprise delete (due to the ftp software) of my uploads dir&#8230;. (also first making this [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a while since the last post and I have several large posts lined up, however before posting those I decided to upgrade wordpress to the latest version.</p>
<p>The upgrade was very uneventfull except for a non-working theme and a surprise delete (due to the ftp software) of my uploads dir&#8230;. (also first making this post as a &#8216;page&#8217;&#8230;. <img src='http://www.credmp.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ) but everything should be restored now, except for the theme.</p>
<p>So it is time to update to a normal theme again and post some very nice in-depth articles.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.credmp.org/2008/07/20/upgraded-wordpress/feed/</wfw:commentRss>
		</item>
		<item>
		<title>worklog-mode now on github</title>
		<link>http://www.credmp.org/2008/06/04/worklog-mode-now-on-github/</link>
		<comments>http://www.credmp.org/2008/06/04/worklog-mode-now-on-github/#comments</comments>
		<pubDate>Wed, 04 Jun 2008 19:00:14 +0000</pubDate>
		<dc:creator>core</dc:creator>
		
		<category><![CDATA[Code]]></category>

		<category><![CDATA[Emacs]]></category>

		<category><![CDATA[github]]></category>

		<category><![CDATA[worklog]]></category>

		<guid isPermaLink="false">http://www.credmp.org/index.php/2008/06/04/worklog-mode-now-on-github/</guid>
		<description><![CDATA[Since switching to github last weekend I have very pleased with it, so pleased that I also have put worklog onto it.
You can find it on the worklog page on github. I also added the documentation to the wiki.
If anyone wants to work on it, please create a github account and I will add you [...]]]></description>
			<content:encoded><![CDATA[<p>Since switching to github last weekend I have very pleased with it, so pleased that I also have put worklog onto it.</p>
<p>You can find it <a href="http://github.com/credmp/worklog">on the worklog</a> page on github. I also added the documentation to the wiki.</p>
<p>If anyone wants to work on it, please create a github account and I will add you to the list of collaborators <img src='http://www.credmp.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.credmp.org/2008/06/04/worklog-mode-now-on-github/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Using github</title>
		<link>http://www.credmp.org/2008/06/01/using-github/</link>
		<comments>http://www.credmp.org/2008/06/01/using-github/#comments</comments>
		<pubDate>Sun, 01 Jun 2008 09:48:51 +0000</pubDate>
		<dc:creator>core</dc:creator>
		
		<category><![CDATA[Code]]></category>

		<category><![CDATA[Emacs]]></category>

		<category><![CDATA[color theme]]></category>

		<category><![CDATA[emacs lisp]]></category>

		<category><![CDATA[git]]></category>

		<category><![CDATA[github]]></category>

		<category><![CDATA[lisp]]></category>

		<guid isPermaLink="false">http://www.credmp.org/index.php/2008/06/01/using-github/</guid>
		<description><![CDATA[A while back I advertised I was running my own git repos. Today I switched color-theme-arjen to use github.
This switch will allow anyone to do development on it, to fork it or to just watch it.
Public cloning can be done by issueing the following command:

$ git clone git://github.com/credmp/color-theme-arjen.git

Enjoy!
]]></description>
			<content:encoded><![CDATA[<p>A while back <a href="http://www.credmp.org/index.php/2008/04/27/small-updates/">I advertised I was running my own git repos</a>. Today I switched color-theme-arjen to <a href="http://github.com/credmp/color-theme-arjen/tree/master">use github</a>.</p>
<p>This switch will allow anyone to do development on it, to fork it or to just watch it.</p>
<p>Public cloning can be done by issueing the following command:</p>
<pre>
$ git clone git://github.com/credmp/color-theme-arjen.git
</pre>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.credmp.org/2008/06/01/using-github/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Kings of Code, a Bunny and a Drivers license</title>
		<link>http://www.credmp.org/2008/05/31/kings-of-code-a-bunny-and-a-drivers-license/</link>
		<comments>http://www.credmp.org/2008/05/31/kings-of-code-a-bunny-and-a-drivers-license/#comments</comments>
		<pubDate>Sat, 31 May 2008 08:35:05 +0000</pubDate>
		<dc:creator>core</dc:creator>
		
		<category><![CDATA[Blog]]></category>

		<category><![CDATA[Code]]></category>

		<category><![CDATA[kings of code]]></category>

		<category><![CDATA[web 2.0]]></category>

		<guid isPermaLink="false">http://www.credmp.org/index.php/2008/05/31/kings-of-code-a-bunny-and-a-drivers-license/</guid>
		<description><![CDATA[It&#8217;s been a while since I posted on my blog and there have been some interesting happenings in my life.
First, last week I finally passed my drivers examn. Almost 12 years later then anyone else, but still sooner then some other people :). To actually get a drivers license in The Netherlands now you first [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a while since I posted on my blog and there have been some interesting happenings in my life.</p>
<p>First, last week I finally passed my drivers examn. Almost 12 years later then anyone else, but still sooner then some other people :). To actually get a drivers license in The Netherlands now you first pass the examn, then the CBR (the goverment branch that arranges driver tests) sends your result electronically to the city databases. The next day you can go and request a drivers license at city hall, at this point you are still not allowed to drive however. I now have to way 5 days before actually getting my drivers license, but then a new danger will be on the road! <img src='http://www.credmp.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I drove with a very nice organisation called <a href="http://www.anwb.nl/auto/rijden/rijbewijs-halen,/anwb-rijopleiding/anwb-rijopleiding.html">ANWB</a> which I can wholeheartedly recommend. I failed miserably on my first examn; nothing is ever easy <img src='http://www.credmp.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Next up is <a href="http://www.kingsofcode.nl">Kings of Code</a>. eBuddy actually sponsered the event, so pretty much every developer of eBuddy was there listening to the various talks. There were numerous interesting talks:</p>
<dl>
<dt>Peter Paul Koch</dt>
<dd>I missed out on most of this talk, but <a href="http://www.quirksmode.org/">PPK</a> had much to say about event handlers. He is quite a natural in giving presentations and everybody I talked to found it very informative (<a href="http://www.quirksmode.org/blog/archives/2008/05/kings_of_code_s.html">slides</a>)</dd>
<dt>Folke Lemaitre (Netlog)</dt>
<dd><a href="http://nl.netlog.com/">netlog.com</a> is one of those sites you hear very little about but then you realise that half the world uses it. A community site much like <a href="http://hyves.nl">Hyves</a> or <a href="http://myspace.com">myspace</a>, only not as ugly as those. Folke showed us how they handle scalability of databases and HTML caching. The most interesting part of the discussion was about how they utilized <a href="http://www.danga.com/memcached/">memcached</a> to provide content caching and MySQL read offloading. A two thumbs up presentation from my part.</dd>
<dt>Mark Birbeck (W3C)</dt>
<dd>As a representative from the W3C Mark gave an insight into <a href="http://www.w3.org/TR/xhtml-rdfa-primer/">RDFa</a>. I had a long discussion with him afterwards about the feasability of the semantic web.</dd>
<dt>Nate Abele (CakePHP)</dt>
<dd>This guy didn&#8217;t make a lot of friends during the conference. Apparently the current way to win souls for you PHP project is by telling people how messed up the project lead is for the other project. This talk also spurred a Rails vs PHP ditchotomy (as john resig so aptly called it). Not very productive I think.</dd>
<dt>Nate Koechley (Yahoo!)</dt>
<dd>The second Nate was awesome however. He talked about the performance of websites; many things were not new to me but the presentation was awesome nevertheless. I think a lot of the attendees went home with a lot to think about and hopefully it will lead to some better designs on the web.</dd>
<dt>Open Source Pitches</dt>
<dd>I didn&#8217;t attend most of the OSS pitches, so I have very little to say about this.</dd>
<dt>Menno van Slooten (eBuddy)</dt>
<dd><a href="http://www.mennovanslooten.nl">Menno</a> gave a smooth overview on the history of web development and the need to give future web developers education in order to bring the skill level up to the next level.</dd>
<dt>John Resig (Mozilla)</dt>
<dd>I spent a fair amount of time talking to <a href="http://ejohn.org/">John</a> before his talk about processing and some other projects. His talk was about choosing a Javascrip library by comparing 4 different ones. I didn&#8217;t find it very usefull, since I have very little to do with Javascript libraries, however a lot of people that I talked to who do have to choose found if very informative. John also showed a project called Sizzle, which he will release soon hopefully.</dd>
</dl>
<p>On a very happy note the Blender Foundation has released it&#8217;s second open movie project: <a href="http://www.bigbuckbunny.org">Big Buck Bunny</a>. Their website is quite overloaded at the moment, but they also put the movie on <a href="http://www.youtube.com/watch?v=YE7VzlLtp-4">Youtube</a>. Very funny and well worth the 10 minutes of my time :). Great job guys!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.credmp.org/2008/05/31/kings-of-code-a-bunny-and-a-drivers-license/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
