<?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>Wendbaar.nl</title>
	<atom:link href="http://wendbaar.nl/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://wendbaar.nl/blog</link>
	<description></description>
	<lastBuildDate>Thu, 13 Oct 2011 20:56:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Building a 3D printer</title>
		<link>http://wendbaar.nl/blog/2011/10/building-a-3d-printer/</link>
		<comments>http://wendbaar.nl/blog/2011/10/building-a-3d-printer/#comments</comments>
		<pubDate>Thu, 13 Oct 2011 20:55:51 +0000</pubDate>
		<dc:creator>berl</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Deventer]]></category>

		<guid isPermaLink="false">http://wendbaar.nl/blog/?p=229</guid>
		<description><![CDATA[Yes!!! the RepRap parts are in!]]></description>
			<content:encoded><![CDATA[<p>Now the building has commenced!</p>
<p>I posted a live stream on the the frontpage: <a href="http://mendel.dyndns.tv/videostream.cgi?user=public&#038;pwd="><br />
            <img src="http://mendel.dyndns.tv/snapshot.cgi?user=public&#038;pwd=" width="320" alt="Click me for live stream!"><br />
          </a><br />
(Click on the image)</p>
]]></content:encoded>
			<wfw:commentRss>http://wendbaar.nl/blog/2011/10/building-a-3d-printer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hacking on vacation</title>
		<link>http://wendbaar.nl/blog/2011/02/hacking-on-vacation/</link>
		<comments>http://wendbaar.nl/blog/2011/02/hacking-on-vacation/#comments</comments>
		<pubDate>Wed, 16 Feb 2011 06:42:51 +0000</pubDate>
		<dc:creator>berl</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[interactive]]></category>

		<guid isPermaLink="false">http://wendbaar.nl/blog/?p=214</guid>
		<description><![CDATA[
I&#8217;m on vacation in New Zealand, visiting my sister (Marie-Louise a.k.a. Seven). Se happens to be engaged to a fellow Geek (Let&#8217;s call him Uan). Well, She&#8217;s more geek than us because she created the most complicated machine in the world (which we can&#8217;t even imagine to produce): a baby!


As an IT shop owner (http://queenstownhq.co.nz/) [...]]]></description>
			<content:encoded><![CDATA[<p>
I&#8217;m on vacation in New Zealand, visiting my sister (Marie-Louise a.k.a. Seven). Se happens to be engaged to a fellow Geek (Let&#8217;s call him Uan). Well, She&#8217;s more geek than us because she created the most complicated machine in the world (which we can&#8217;t even imagine to produce): <strong>a baby!</strong>
</p>
<p>
As an IT shop owner (<a href="http://queenstownhq.co.nz/">http://queenstownhq.co.nz/</a>) who&#8217;s always busy to satisfy his customers Uan tends to shift his &#8220;want to do projects&#8221; (because customers pay the bill right?) to the next weekend.
</p>
<p>
Because he already has a lot of the parts and of course there is a shed (all New Zealanders appear to have an shed. great inventions are made here: <a href="http://www.asciimation.co.nz/beer/">The world first JET powered beercooler</a>), I offered some help. (otherwise I would ending up changing the new toddler&#8217;s diapers&#8230;..)</p>
<p>May I present to you:  my </p>
<h3>TODO list</h3>
<ul>
<li>DIY Touchscreen (we&#8217;re half way, more to come soon!)</li>
<li>Arduino hacks with Processing and OSC (I&#8217;ve got an Git Repository on <a href="https://github.com/LeipeLeon/interactive">Github</a>)
<ul>
<li>An philips Moodlight imitiation: <a href="https://github.com/LeipeLeon/interactive/blob/master/DOC/PhilipsLedOSC.md">PhilipsLed</a>
</li>
</ul>
<p>
You might think: &#8220;Dude, you&#8217;re on a bloody vacation! Go see the country!&#8221;. Yup, been there, done that! This vacation is for me to sit back and relax: I have been far too busy the last few months with working for clients. Now it&#8217;s some Leon time: do some personal interesting stuff!
</p>
<p>I&#8217;ll keep you posted!</p>
]]></content:encoded>
			<wfw:commentRss>http://wendbaar.nl/blog/2011/02/hacking-on-vacation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automagically tagging releases in github</title>
		<link>http://wendbaar.nl/blog/2010/04/automagically-tagging-releases-in-github/</link>
		<comments>http://wendbaar.nl/blog/2010/04/automagically-tagging-releases-in-github/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 17:24:46 +0000</pubDate>
		<dc:creator>berl</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://wendbaar.nl/blog/?p=198</guid>
		<description><![CDATA[(update: now available as a gem for capistrano)
Today at work we were discussing branching and tagging etc. to keep track of the currently deployed release on various servers. We&#8217;re working with Capistrano to do deploys.
This is a script I came up with:

Edit: refactored some errors out of it
]]></description>
			<content:encoded><![CDATA[<p><strong>(update: now available as a <a href="http://rubygems.org/gems/capistrano-git-tags">gem</a> for capistrano)</strong></p>
<p>Today at work we were discussing branching and tagging etc. to keep track of the currently deployed release on various servers. We&#8217;re working with <a href="http:///capify.org">Capistrano</a> to do deploys.</p>
<p>This is a script I came up with:</p>
<p><script src="http://gist.github.com/381852.js?file=capistrano_git.rb"></script></p>
<p>Edit: refactored some errors out of it</p>
]]></content:encoded>
			<wfw:commentRss>http://wendbaar.nl/blog/2010/04/automagically-tagging-releases-in-github/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ralf: S3 logfile downloader and merger</title>
		<link>http://wendbaar.nl/blog/2010/02/ralf-s3-logfile-downloader-and-merger/</link>
		<comments>http://wendbaar.nl/blog/2010/02/ralf-s3-logfile-downloader-and-merger/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 18:47:56 +0000</pubDate>
		<dc:creator>berl</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Freelance]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://wendbaar.nl/blog/?p=192</guid>
		<description><![CDATA[
	Today we released a new gem called Ralf, it stands for Retreive Amazon LogFiles


	Download the gem at http://gemcutter.org/gems/ralf or browse the source at http://github.com/kjwierenga/ralf

Usage
Prerequirements:

An S3 account (duh)
Enable logging on S3 (use cyberduck for example)

Execution:
r = Ralf.new(:config =&#62; '/my/config.yaml', :date =&#62; '2010-02-01')
r.run

Or run it in one go:
Ralf.run(:config =&#62; '/my/config.yaml', :date =&#62; '2010-02-01')

Parameters:
:config   a YAML [...]]]></description>
			<content:encoded><![CDATA[<p>
	Today we released a new gem called <strong>Ralf</strong>, it stands for <strong>Retreive Amazon LogFiles</strong>
</p>
<p>
	Download the gem at <a href="http://gemcutter.org/gems/ralf">http://gemcutter.org/gems/ralf</a> or browse the source at <a href="http://github.com/kjwierenga/ralf">http://github.com/kjwierenga/ralf</a>
</p>
<h3>Usage</h3>
<p>Prerequirements:</p>
<ul>
<li>An S3 account (duh)</li>
<li>Enable logging on S3 (use <a href="http://cyberduck.ch/">cyberduck</a> for example)</li>
</ul>
<p>Execution:</p>
<pre><code>r = Ralf.new(:config =&gt; '/my/config.yaml', :date =&gt; '2010-02-01')
r.run
</code></pre>
<p>Or run it in one go:</p>
<pre><code>Ralf.run(:config =&gt; '/my/config.yaml', :date =&gt; '2010-02-01')
</code></pre>
<h4>Parameters:</h4>
<pre><code>:config   a YAML config file, if none given it tries to open /etc/ralf.yaml or ~/.ralf.yaml
:date     the date to parse

:aws_access_key_id      (required in config)
:aws_secret_access_key  (required in config)
:out_path               (required in config)
:out_prefix             (optional, defaults to 's3_combined') Prefix the output file
</code></pre>
<p>You can ommit a configuration file when you supply the required parameters <strong>:aws_access_key_id</strong>_, <strong>:aws_secret_access_key</strong> and <strong>:out_path</strong><br />
They take precedence over the config file</p>
<h3>Caveats</h3>
<ul>
<li>There is no logrotation as we know it like on regular unix machines</li>
</ul>
<p>More info: <a href="http://docs.amazonwebservices.com/AmazonS3/latest/ServerLogs.html">S3 Server Access Logging</a></p>
<h3>TODO</3></p>
<ul>
<li>CLI executable</li>
<li>Grouping/combinig on week/month</li>
</ul>
<h3>Credits:</h3>
<p>This plugin is created for <a href="http://kerkdienstgemist.nl" title="Kerkdienst Gemist"><em>kerkdienstgemist.nl</em></a> for processing the logfiles generated by <a href="http://aws.amazon.com/s3/"><em>S3</em></a>.</p>
<p>Authors: <a href="http://github.com/LeipeLeon">Leon Berenschot</a> and <a href="http://github.com/kjwierenga">K.J. Wierenga</a></p>
]]></content:encoded>
			<wfw:commentRss>http://wendbaar.nl/blog/2010/02/ralf-s3-logfile-downloader-and-merger/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Twitter Screen Saver (a.k.a. a &#8220;Stream Saver&#8221;)</title>
		<link>http://wendbaar.nl/blog/2010/01/twitter-screen-saver-a-k-a-a-stream-saver/</link>
		<comments>http://wendbaar.nl/blog/2010/01/twitter-screen-saver-a-k-a-a-stream-saver/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 10:54:03 +0000</pubDate>
		<dc:creator>berl</dc:creator>
				<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://wendbaar.nl/blog/?p=186</guid>
		<description><![CDATA[Just a quick and dirty experiment: A Twitter ScreenSaver.
]]></description>
			<content:encoded><![CDATA[<p>Just a quick and dirty experiment: A<strong> Twitter ScreenSaver</strong>.</p>
<p><a href="http://wendbaar.nl/blog/wp-content/uploads/2010/01/TwitterStreamSaver.png"><img src="http://wendbaar.nl/blog/wp-content/uploads/2010/01/TwitterStreamSaver-300x245.png" alt="TwitterStreamSaver.png" border="0" width="300" height="245" " align="right" class="right"/></a></p>
<p>
With the <a href="http://developer.apple.com/technology/xcode.html"><strong>Apple Developer Tools</strong></a> installed, you are able to create your own screensavers with <a href="http://en.wikipedia.org/wiki/Quartz_Composer"><strong>Quartz Composer</strong></a>.<br />
(I&#8217;ve been experimenting with this tool a few years ago when it was called <strong>PixelShox</strong>. Later it was bought by Apple to include it in Quicktime.)
</p>
<p>This &#8220;<strong>StreamSaver</strong>&#8221; is still a work in progress and sorry; <strong>OSX 10.5+ only</strong>.</p>
<p>If you have any idea&#8217;s, <a href="http://twitter.com/leipeleon">lemme know!</a>
</p>
<p><a href="http://wendbaar.nl/blog/wp-content/uploads/2010/01/TwitterStreamSaver_1.0.qtz">Download/see it here</a>, and place it in <code>~/Library/Screen Savers</code>.</p>
]]></content:encoded>
			<wfw:commentRss>http://wendbaar.nl/blog/2010/01/twitter-screen-saver-a-k-a-a-stream-saver/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://wendbaar.nl/blog/wp-content/uploads/2010/01/TwitterStreamSaver-150x150.png" length="15105" type="image/png" />
		</item>
		<item>
		<title>Prediction: &#8220;Twitter App Formatting Standards War&#8221;</title>
		<link>http://wendbaar.nl/blog/2010/01/prediction-twitter-app-formatting-standards-war/</link>
		<comments>http://wendbaar.nl/blog/2010/01/prediction-twitter-app-formatting-standards-war/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 13:39:07 +0000</pubDate>
		<dc:creator>berl</dc:creator>
				<category><![CDATA[Speculation]]></category>
		<category><![CDATA[Usability]]></category>
		<category><![CDATA[#client]]></category>
		<category><![CDATA[#formatting]]></category>
		<category><![CDATA[#standard]]></category>
		<category><![CDATA[#TFS]]></category>
		<category><![CDATA[#tweet]]></category>

		<guid isPermaLink="false">http://wendbaar.nl/blog/?p=4</guid>
		<description><![CDATA[Well&#8230;, a war is a little bit exaggerated. But consistency is the issue here, which remembers me the early days of different implementations of webbrowsers (which is still a pain in the ass, ask any random webdeveloper)
For example, today I ran in to the formatting of an URL. In tweetdeck it&#8217;s only clickable when an [...]]]></description>
			<content:encoded><![CDATA[<p>Well&#8230;, a war is a little bit exaggerated. But consistency is the issue here, which remembers me the early days of different implementations of webbrowsers (which is still a pain in the ass, ask any random webdeveloper)</p>
<p>For example, today I ran in to the formatting of an URL. In tweetdeck it&#8217;s only clickable when an URL has the protocol attached to it (http://). So I <a href="http://twitter.com/LeipeLeon/status/7516634199">complained about it</a>, thinking that people didn&#8217;t understand linking in tweets.</p>
<p>Turns out <a href="http://twitter.com/FiXato/status/7518432077">I was wrong</a>, apps like tweetie and the webinterface of twitter itself automagically create a hyperlink from an address prefixed with www without an http://.</p>
<p>So my question is, should there be a standard (like HTML/CSS) or developer guidline to format tweets (or is there one already?)</p>
]]></content:encoded>
			<wfw:commentRss>http://wendbaar.nl/blog/2010/01/prediction-twitter-app-formatting-standards-war/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sending prawn documents with ActionMailer</title>
		<link>http://wendbaar.nl/blog/2009/12/sending-prawn-documents-with-actionmailer/</link>
		<comments>http://wendbaar.nl/blog/2009/12/sending-prawn-documents-with-actionmailer/#comments</comments>
		<pubDate>Thu, 17 Dec 2009 08:32:18 +0000</pubDate>
		<dc:creator>berl</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://beriedata.nl/blog/?p=106</guid>
		<description><![CDATA[Problem: How to send a prawn pdf wich normally is generated by a controller.
and keeping it DRY
Required: Prawn &#038; prawnto

first: Make your prawnto settings global with an initializer

?Download prawnto_globals.rbPRAWN_DEFAULT_STYLES = &#123;
  :page_size   =&#62; 'A4',
  :inline      =&#62; true,
  :left_margin =&#62; 50
&#125;

second: create a ActionMailer
./script/generate mailer recipient_mailer [...]]]></description>
			<content:encoded><![CDATA[<h2>Problem: How to send a prawn pdf wich normally is generated by a controller.</h2>
<p>and keeping it DRY</p>
<p>Required: Prawn &#038; prawnto</p>
<p><span id="more-106"></span></p>
<p>first: Make your prawnto settings global with an initializer</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://wendbaar.nl/blog/wp-content/plugins/wp-codebox/wp-codebox.php?p=106&amp;download=prawnto_globals.rb">prawnto_globals.rb</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1063"><td class="code" id="p106code3"><pre class="ruby" style="font-family:monospace;">PRAWN_DEFAULT_STYLES = <span style="color:#006600; font-weight:bold;">&#123;</span>
  <span style="color:#ff3333; font-weight:bold;">:page_size</span>   <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">'A4'</span>,
  <span style="color:#ff3333; font-weight:bold;">:inline</span>      <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#0000FF; font-weight:bold;">true</span>,
  <span style="color:#ff3333; font-weight:bold;">:left_margin</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#006666;">50</span>
<span style="color:#006600; font-weight:bold;">&#125;</span></pre></td></tr></table></div>

<p>second: create a ActionMailer</p>
<pre>./script/generate mailer recipient_mailer invoice</pre>
<p>third: edit the generated recipient mailer (note: because I&#8217;m using the views from the controller I&#8217;ve removed the autogenerated invoice.erb. Otherwise these will be included as well)</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://wendbaar.nl/blog/wp-content/plugins/wp-codebox/wp-codebox.php?p=106&amp;download=recipient_mailer.rb">recipient_mailer.rb</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1064"><td class="code" id="p106code4"><pre class="ruby" style="font-family:monospace;"><span style="color:#008000; font-style:italic;"># Include (optional) controller helpers</span>
<span style="color:#9966CC; font-weight:bold;">class</span> <span style="color:#6666ff; font-weight:bold;">Prawn::Document</span>
  <span style="color:#9966CC; font-weight:bold;">include</span> PdfHelper
<span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
<span style="color:#9966CC; font-weight:bold;">class</span> RecipientMailer <span style="color:#006600; font-weight:bold;">&lt;</span> <span style="color:#6666ff; font-weight:bold;">ActionMailer::Base</span>
  <span style="color:#008000; font-style:italic;"># explicitly require prawn, so we get all the goodieness</span>
  <span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'prawn'</span>
  <span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">&quot;prawn/format&quot;</span>
  <span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">&quot;prawn/layout&quot;</span>
&nbsp;
  <span style="color:#9966CC; font-weight:bold;">def</span> invoice<span style="color:#006600; font-weight:bold;">&#40;</span>ledger_item<span style="color:#006600; font-weight:bold;">&#41;</span>
    subject    <span style="color:#996600;">&quot;The subject&quot;</span>
    recipients <span style="color:#996600;">'&quot;Name&quot; &lt;info@example.com&gt;'</span>
    from       <span style="color:#996600;">'&quot;Name&quot; &lt;info@example.com&gt;'</span>
    sent_on    <span style="color:#CC00FF; font-weight:bold;">Time</span>.<span style="color:#9900CC;">now</span>
    content_type    <span style="color:#996600;">&quot;multipart/mixed&quot;</span>
&nbsp;
    <span style="color:#008000; font-style:italic;"># the templates live in RAILSROOT/app/views/documents</span>
    <span style="color:#008000; font-style:italic;"># these are views normally generated by the DocumentsController</span>
    part<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#ff3333; font-weight:bold;">:content_type</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">&quot;multipart/alternative&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>alternative<span style="color:#006600; font-weight:bold;">|</span>
      alternative.<span style="color:#9900CC;">part</span> <span style="color:#996600;">&quot;text/plain&quot;</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>p<span style="color:#006600; font-weight:bold;">|</span>
        <span style="color:#CC0066; font-weight:bold;">p</span>.<span style="color:#9900CC;">body</span> = render_message<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;documents/show.txt&quot;</span>, <span style="color:#ff3333; font-weight:bold;">:ledger_item</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> ledger_item<span style="color:#006600; font-weight:bold;">&#41;</span>
      <span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
      alternative.<span style="color:#9900CC;">part</span> <span style="color:#996600;">&quot;text/html&quot;</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>p<span style="color:#006600; font-weight:bold;">|</span>
        <span style="color:#CC0066; font-weight:bold;">p</span>.<span style="color:#9900CC;">body</span> = render_message<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;documents/show.html&quot;</span>, <span style="color:#ff3333; font-weight:bold;">:ledger_item</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> ledger_item<span style="color:#006600; font-weight:bold;">&#41;</span>
      <span style="color:#9966CC; font-weight:bold;">end</span>
    <span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
    <span style="color:#008000; font-style:italic;"># And here is the magic:</span>
    <span style="color:#008000; font-style:italic;"># probably could be refactored, but it's working!</span>
    attachment <span style="color:#996600;">&quot;application/pdf&quot;</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>a<span style="color:#006600; font-weight:bold;">|</span>
      a.<span style="color:#9900CC;">filename</span> = <span style="color:#996600;">&quot;#{ledger_item.period}.pdf&quot;</span>
&nbsp;
      template = <span style="color:#CC00FF; font-weight:bold;">File</span>.<span style="color:#CC0066; font-weight:bold;">open</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC00FF; font-weight:bold;">File</span>.<span style="color:#9900CC;">join</span><span style="color:#006600; font-weight:bold;">&#40;</span>Rails.<span style="color:#9900CC;">root</span>, <span style="color:#996600;">'app'</span>, <span style="color:#996600;">'views'</span>, <span style="color:#996600;">'documents'</span>, <span style="color:#996600;">'show.pdf.prawn'</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color:#9900CC;">read</span>
&nbsp;
      pdf = <span style="color:#6666ff; font-weight:bold;">Prawn::Document</span>.<span style="color:#9900CC;">new</span><span style="color:#006600; font-weight:bold;">&#40;</span>PRAWN_DEFAULT_STYLES<span style="color:#006600; font-weight:bold;">&#41;</span>;
      pdf.<span style="color:#9900CC;">instance_eval</span> <span style="color:#9966CC; font-weight:bold;">do</span>
        <span style="color:#0066ff; font-weight:bold;">@ledger_item</span> = ledger_item
        <span style="color:#CC0066; font-weight:bold;">eval</span><span style="color:#006600; font-weight:bold;">&#40;</span>template<span style="color:#006600; font-weight:bold;">&#41;</span>
      <span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
      a.<span style="color:#9900CC;">body</span> = pdf.<span style="color:#9900CC;">render</span>
    <span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
  <span style="color:#9966CC; font-weight:bold;">end</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://wendbaar.nl/blog/2009/12/sending-prawn-documents-with-actionmailer/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>RER2009 Rumble</title>
		<link>http://wendbaar.nl/blog/2009/11/rer2009-rumble/</link>
		<comments>http://wendbaar.nl/blog/2009/11/rer2009-rumble/#comments</comments>
		<pubDate>Sun, 08 Nov 2009 11:55:20 +0000</pubDate>
		<dc:creator>berl</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://wendbaar.nl/blog/?p=149</guid>
		<description><![CDATA[We (@kjw and @leipeleon) participated in the RubyEnRails Rumble last weekend. It was a blast!
]]></description>
			<content:encoded><![CDATA[<p>We (<a href="http://twitter.com/kjw">@kjw</a> and <a href="http://twitter.com/leipeleon">@leipeleon</a>) participated in the <a href="http://2009.rubyenrails.nl/">RubyEnRails</a> Rumble last weekend. It was a blast!</p>
]]></content:encoded>
			<wfw:commentRss>http://wendbaar.nl/blog/2009/11/rer2009-rumble/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Prevent spambots from posting</title>
		<link>http://wendbaar.nl/blog/2009/09/prevent-spambots-from-posting/</link>
		<comments>http://wendbaar.nl/blog/2009/09/prevent-spambots-from-posting/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 22:15:46 +0000</pubDate>
		<dc:creator>berl</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Usability]]></category>

		<guid isPermaLink="false">http://beriedata.nl/blog/?p=98</guid>
		<description><![CDATA[Just got a report that we&#8217;re getting spammed by a spambot.
Then I recalled a remark @smeevil made about a technique he used to fight off spambots: create a valid form element but put it away somewhere off screen (a hidden field won&#8217;t probably work)
table.rb:

?Download table.rbclass Table &#60; ActiveRecord::Base
  attr_accessor :company
  validates_length_of   [...]]]></description>
			<content:encoded><![CDATA[<p>Just got a report that we&#8217;re getting spammed by a spambot.</p>
<p>Then I recalled a remark <a href="http://twitter.com/smeevil">@smeevil</a> made about a technique he used to fight off spambots: create a valid form element but put it away somewhere off screen (a hidden field won&#8217;t probably work)</p>
<p><span id="more-98"></span>table.rb:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://wendbaar.nl/blog/wp-content/plugins/wp-codebox/wp-codebox.php?p=98&amp;download=table.rb">table.rb</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p987"><td class="code" id="p98code7"><pre class="ruby" style="font-family:monospace;"><span style="color:#9966CC; font-weight:bold;">class</span> Table <span style="color:#006600; font-weight:bold;">&lt;</span> <span style="color:#6666ff; font-weight:bold;">ActiveRecord::Base</span>
  attr_accessor <span style="color:#ff3333; font-weight:bold;">:company</span>
  validates_length_of       <span style="color:#ff3333; font-weight:bold;">:company</span>,  <span style="color:#ff3333; font-weight:bold;">:maximum</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#006666;">0</span>, <span style="color:#ff3333; font-weight:bold;">:allow_nil</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#0000FF; font-weight:bold;">true</span>, <span style="color:#ff3333; font-weight:bold;">:message</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">&quot;Don't spam us, OK?&quot;</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></td></tr></table></div>

<p># new.html.erb:</p>
<pre lang="html" file="new.html.erb">
&lt;%= error_message_on :abuse, :company, {
	:prepend_text =&gt; "&lt;div class='error'&gt;",
	:append_text =&gt; "&lt;/div&gt;",
	:css_class =&gt; "flash"
} %&gt;

&lt;% form_for @table do |f| %&gt;
  &lt;%= f.text_field :company, :class =&gt; "your_company"%&gt;
  &lt;%= f.label :real_field %&gt;&lt;br /&gt;
  &lt;%= f.text_field :real_field %&gt;
&lt;% end %&gt;

&lt;script LANGUAGE="javascript"&gt;
document.getElementById("table_real_field").focus();
&lt;/script&gt;
</pre>
<p># site.css</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://wendbaar.nl/blog/wp-content/plugins/wp-codebox/wp-codebox.php?p=98&amp;download=site.css">site.css</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p988"><td class="code" id="p98code8"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.your_company</span> <span style="color: #00AA00;">&#123;</span>
 <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
 <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-1000px</span><span style="color: #00AA00;">;</span>
 <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-1000px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://wendbaar.nl/blog/2009/09/prevent-spambots-from-posting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using github on the mac for non-programmers</title>
		<link>http://wendbaar.nl/blog/2009/06/using-github-on-the-mac-for-non-programmers/</link>
		<comments>http://wendbaar.nl/blog/2009/06/using-github-on-the-mac-for-non-programmers/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 13:30:20 +0000</pubDate>
		<dc:creator>berl</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[github]]></category>

		<guid isPermaLink="false">http://beriedata.nl/blog/?p=92</guid>
		<description><![CDATA[A quick and dirty tutorial for some friends of mine.
Needed software:

git-osx-installer: Full native OSX git client.

Nice to have:

Textmate: text editor.
GitHub account (for push rights).
GitX: Grapichal tool for commiting to local repo (OSX 10.5+).

Create account on github
 Go to http://github.com for an account.

Optional: Provide an SSH key for pushing changes.
Clone a Repo

My advice is to generate [...]]]></description>
			<content:encoded><![CDATA[<p>A quick and dirty tutorial for some friends of mine.</p>
<h2>Needed software:</h2>
<ul>
<li><a href="http://code.google.com/p/git-osx-installer/downloads/list?can=3">git-osx-installer</a>: Full native OSX git client.</li>
</ul>
<h2>Nice to have:</h2>
<ul>
<li><a href="http://macromates.com/">Textmate</a>: text editor.</li>
<li><a href="https://github.com/">GitHub</a> account (for push rights).</li>
<li><a href="http://gitx.frim.nl/">GitX</a>: Grapichal tool for commiting to local repo (OSX 10.5+).</li>
</ul>
<h2>Create account on github</h2>
<p> Go to <a href="http://github.com">http://github.com</a> for an account.</p>
<p>
Optional: <a href="http://github.com/guides/providing-your-ssh-key">Provide an SSH</a> key for pushing changes.</p>
<h2>Clone a Repo</h2>
<p><img src="http://beriedata.nl/blog/wp-content/uploads/2009/06/GitHub.jpg"/><br />
My advice is to generate a special dir for the projects (mine is <code>Rails</code>).<br/><br />
Fire up the terminal and type:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p92code12'); return false;">View Code</a> SHELL</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p9212"><td class="code" id="p92code12"><pre class="shell" style="font-family:monospace;">    # Goto the dir
cd ~/Rails
    # if the repo is read only:
git clone git://github.com/LeipeLeon/facebooker.git
    # if you have push rights:
git clone git@github.com:LeipeLeon/facebooker.git
    # if you installed GitX (as mentioned above)
gitx</pre></td></tr></table></div>

<h2>Adding changes</h2>
<p>With the gitx program it&#8217;s easy to commit thanges to your local repo. When these are ready to commit to the master you sync it first with the <code>HEAD</code> and then push your changes.

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p92code13'); return false;">View Code</a> SHELL</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p9213"><td class="code" id="p92code13"><pre class="shell" style="font-family:monospace;">    # get changes from the master repo to your local repo
git pull
    # push your changes
git push</pre></td></tr></table></div>

<h3>Additional info:</h3>
<p>If it&#8217;s a rails application you&#8217;re cloning, startup the server with</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p92code14'); return false;">View Code</a> SHELL</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p9214"><td class="code" id="p92code14"><pre class="shell" style="font-family:monospace;">    # Copy database credentials, uses sqlite3 as default
cp config/database.yml.example config/database.yml
    # install required gems
rake gems:install
    # make tables
rake db:migrate
    # startup server at http://localhost:3000
script/server</pre></td></tr></table></div>

<p> and you will be able to use the application at http://localhost:3000</p>
]]></content:encoded>
			<wfw:commentRss>http://wendbaar.nl/blog/2009/06/using-github-on-the-mac-for-non-programmers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://beriedata.nl/blog/wp-content/uploads/2009/06/GitHub.jpg" length="24216" type="image/jpeg" />
<enclosure url="http://beriedata.nl/blog/wp-content/uploads/2009/06/GitHub.jpg" length="24216" type="image/jpeg" />
<enclosure url="http://beriedata.nl/blog/wp-content/uploads/2009/06/GitHub.jpg" length="24216" type="image/jpeg" />
<enclosure url="http://beriedata.nl/blog/wp-content/uploads/2009/06/GitHub.jpg" length="24216" type="image/jpeg" />
		</item>
	</channel>
</rss>
