<?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>Stop Being Carbon &#187; Coding</title>
	<atom:link href="http://www.stopbeingcarbon.com/category/technology/coding/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stopbeingcarbon.com</link>
	<description>The philosophy of being 01.</description>
	<pubDate>Tue, 18 Nov 2008 20:30:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
	<language>en</language>
			<item>
		<title>Flip an image with Scriptaculous</title>
		<link>http://www.stopbeingcarbon.com/2008/11/flip-an-image-with-scriptaculous/</link>
		<comments>http://www.stopbeingcarbon.com/2008/11/flip-an-image-with-scriptaculous/#comments</comments>
		<pubDate>Tue, 18 Nov 2008 20:30:46 +0000</pubDate>
		<dc:creator>Christoph</dc:creator>
		
		<category><![CDATA[Coding]]></category>

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

		<guid isPermaLink="false">http://www.stopbeingcarbon.com/?p=679</guid>
		<description><![CDATA[I was the need of a flip effect for scriptaculous and came up with this solution:


Effect.Flip = Class.create&#40;&#41;;
Object.extend&#40;Object.extend&#40;Effect.Flip.prototype,
  Effect.Base.prototype&#41;, &#123;
&#160;
    initialize: function&#40;element, flip_graphic, original_graphic&#41; &#123;
      var options = arguments&#91;3&#93; &#124;&#124; &#123;&#125;;
&#160;
      this.element = $&#40;element&#41;;
      this.flip_graphic = [...]]]></description>
			<content:encoded><![CDATA[<p>I was the need of a flip effect for scriptaculous and came up with this solution:</p>


<div class="wp_syntax"><div class="code"><pre class="javascript javascript" style="font-family:monospace;">Effect.<span style="color: #660066;">Flip</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">Class</span>.<span style="color: #660066;">create</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>;
Object.<span style="color: #660066;">extend</span><span style="color: #009900;">&#40;</span>Object.<span style="color: #660066;">extend</span><span style="color: #009900;">&#40;</span>Effect.<span style="color: #660066;">Flip</span>.<span style="color: #660066;">prototype</span><span style="color: #339933;">,</span>
  Effect.<span style="color: #660066;">Base</span>.<span style="color: #660066;">prototype</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span>
&nbsp;
    initialize<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>element<span style="color: #339933;">,</span> flip_graphic<span style="color: #339933;">,</span> original_graphic<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #003366; font-weight: bold;">var</span> options <span style="color: #339933;">=</span> arguments<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">3</span><span style="color: #009900;">&#93;</span> || <span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span>;
&nbsp;
      <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">element</span> <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span>element<span style="color: #009900;">&#41;</span>;
      <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">flip_graphic</span> <span style="color: #339933;">=</span> flip_graphic;
      <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">original_graphic</span> <span style="color: #339933;">=</span> original_graphic;
&nbsp;
      <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">element</span>.<span style="color: #660066;">getAttribute</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'src'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">flip_graphic</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">flip_graphic</span> <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">original_graphic</span>;
        <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">original_graphic</span> <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">element</span>.<span style="color: #660066;">getAttribute</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'src'</span><span style="color: #009900;">&#41;</span>;
      <span style="color: #009900;">&#125;</span>
&nbsp;
      <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">width</span> <span style="color: #339933;">=</span> options.<span style="color: #660066;">width</span> || <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">element</span>.<span style="color: #660066;">getWidth</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>;
      <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">delta</span> <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">width</span> <span style="color: #339933;">*</span> <span style="color: #CC0000;">2</span>;
      <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">flip</span> <span style="color: #339933;">=</span> <span style="color: #CC0000;">1</span>;
&nbsp;
      <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">start</span><span style="color: #009900;">&#40;</span>options<span style="color: #009900;">&#41;</span>;
    <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
&nbsp;
    update<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>position<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>    
&nbsp;
      <span style="color: #003366; font-weight: bold;">var</span> change <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">flip</span> <span style="color: #339933;">*</span> <span style="color: #009900;">&#40;</span><span style="color: #CC0000;">0.5</span> <span style="color: #339933;">-</span> position<span style="color: #009900;">&#41;</span> <span style="color: #339933;">*</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">delta</span>;
      <span style="color: #003366; font-weight: bold;">var</span> padding <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">width</span> <span style="color: #009966; font-style: italic;">/ 2 - change /</span> <span style="color: #CC0000;">2</span>;
&nbsp;
      <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">element</span>.<span style="color: #660066;">setStyle</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
        width<span style="color: #339933;">:</span> change <span style="color: #339933;">+</span> <span style="color: #3366CC;">'px'</span><span style="color: #339933;">,</span>
        padding<span style="color: #339933;">:</span> <span style="color: #3366CC;">'0 0 0 '</span> <span style="color: #339933;">+</span> padding <span style="color: #339933;">+</span> <span style="color: #3366CC;">'px'</span>
      <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>;
&nbsp;
      <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>change <span style="color: #339933;">&lt;</span> 0<span style="color: #009900;">&#41;</span>
      <span style="color: #009900;">&#123;</span>
        <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">element</span>.<span style="color: #660066;">writeAttribute</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> src<span style="color: #339933;">:</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">flip_graphic</span> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>;
        <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">flip</span> <span style="color: #339933;">=</span> <span style="color: #339933;">-</span><span style="color: #CC0000;">1</span>;
      <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
  <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>;</pre></div></div>


<p>You can use it like that:</p>


<div class="wp_syntax"><div class="code"><pre class="javascript javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">new</span> Effect.<span style="color: #660066;">Flip</span><span style="color: #009900;">&#40;</span>element<span style="color: #339933;">,</span> <span style="color: #3366CC;">'graphics/original.jpg'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'graphics/flip.png'</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span> width<span style="color: #339933;">:</span> <span style="color: #CC0000;">120</span> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>;</pre></div></div>


<p>I will post a demo tomorrow - I promise, it looks cool!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stopbeingcarbon.com/2008/11/flip-an-image-with-scriptaculous/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Strange module error with Hpricot</title>
		<link>http://www.stopbeingcarbon.com/2008/08/strange-module-error-with-hpricot/</link>
		<comments>http://www.stopbeingcarbon.com/2008/08/strange-module-error-with-hpricot/#comments</comments>
		<pubDate>Sat, 16 Aug 2008 14:27:56 +0000</pubDate>
		<dc:creator>Christoph</dc:creator>
		
		<category><![CDATA[Coding]]></category>

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

		<guid isPermaLink="false">http://www.stopbeingcarbon.com/?p=633</guid>
		<description><![CDATA[I got some strange error today when I tried to deploy one of my rails projects to my slice at slicehost. The problem was that I had a newer version of Hpricot running on the slice (0.6.161) versus 0.6 on my local machine. The following line failed:


Hpricot::XChar::PREDEFINED_U.merge!&#40;&#123;&#34;&#38;nbsp;&#34; =&#62; 32&#125;&#41;


Ahm, okay. I didn&#8217;t see any changes [...]]]></description>
			<content:encoded><![CDATA[<p>I got some strange error today when I tried to deploy one of my rails projects to my slice at slicehost. The problem was that I had a newer version of Hpricot running on the slice (0.6.161) versus 0.6 on my local machine. The following line failed:</p>


<div class="wp_syntax"><div class="code"><pre class="ruby ruby" style="font-family:monospace;"><span style="color:#6666ff; font-weight:bold;">Hpricot::XChar::PREDEFINED_U</span>.<span style="color:#9900CC;">merge</span>!<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#996600;">&quot;&amp;nbsp;&quot;</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#006666;">32</span><span style="color:#006600; font-weight:bold;">&#125;</span><span style="color:#006600; font-weight:bold;">&#41;</span></pre></div></div>


<p>Ahm, okay. I didn&#8217;t see any changes made to the overall layout of Hpricot so I suspect that line <em>should</em> work. Any ideas?</p>

<p>(If anyone is interested in the meaning of the above line, check <a href="http://code.whytheluckystiff.net/hpricot/ticket/137">this ticket</a>).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stopbeingcarbon.com/2008/08/strange-module-error-with-hpricot/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Reading osm files with Python - python-osm</title>
		<link>http://www.stopbeingcarbon.com/2008/07/reading-osm-file-with-python-python-osm/</link>
		<comments>http://www.stopbeingcarbon.com/2008/07/reading-osm-file-with-python-python-osm/#comments</comments>
		<pubDate>Sun, 13 Jul 2008 10:19:14 +0000</pubDate>
		<dc:creator>Christoph</dc:creator>
		
		<category><![CDATA[Coding]]></category>

		<category><![CDATA[open source]]></category>

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

		<guid isPermaLink="false">http://www.stopbeingcarbon.com/?p=620</guid>
		<description><![CDATA[A few days ago I experimented with some data files from the Open Street Map Project. Because I do most of my quick&#8217;n'dirty prototyping with Python, I looked for a Python module which would read osm files (which is, to be fair, really no problem because it&#8217;s clean XML).

I stumbled over Rory McCann&#8217;s python-osm lib [...]]]></description>
			<content:encoded><![CDATA[<p>A few days ago I experimented with some data files from the <a href="http://www.openstreetmap.org/">Open Street Map Project</a>. Because I do most of my quick&#8217;n'dirty prototyping with Python, I looked for a Python module which would read osm files (which is, to be fair, really no problem because it&#8217;s clean XML).</p>

<p>I stumbled over Rory McCann&#8217;s <a href="http://github.com/rory/python-osm/tree/master">python-osm</a> lib over at Github. His version was missing the relation feature of the osm data structure but it was a one minute walk to implement it.</p>

<p>You can access the forked project <a href="http://github.com/Kitto/python-osm/tree/master">@Github</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stopbeingcarbon.com/2008/07/reading-osm-file-with-python-python-osm/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Possible bug in Lightbox (and fix)</title>
		<link>http://www.stopbeingcarbon.com/2008/05/possible-bug-in-lightbox-and-fix/</link>
		<comments>http://www.stopbeingcarbon.com/2008/05/possible-bug-in-lightbox-and-fix/#comments</comments>
		<pubDate>Mon, 26 May 2008 20:55:08 +0000</pubDate>
		<dc:creator>Christoph</dc:creator>
		
		<category><![CDATA[Coding]]></category>

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

		<guid isPermaLink="false">http://www.stopbeingcarbon.com/?p=617</guid>
		<description><![CDATA[I&#8217;m currently working on some Rails project which makes use of the great attachment_fu plugin by Technoweenie (which led to my first bugfix for an Open Source project).

Yesterday I stumbled over some glitch with Lightbox (or Script.aculo.us, I&#8217;m not really sure) which results in a mal-sized picture. For the sample, go here. The fix is [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m currently working on some Rails project which makes use of the great attachment_fu plugin by Technoweenie (which led to <a href="http://github.com/technoweenie/attachment_fu/commit/834553ad3d876541b986ed6de115ea0023070bb5">my first bugfix</a> for an Open Source project).</p>

<p>Yesterday I stumbled over some glitch with Lightbox (or Script.aculo.us, I&#8217;m not really sure) which results in a mal-sized picture. For the sample, <a href="http://www.stopbeingcarbon.com/lightbox_bug">go here</a>. The fix is quite simple, you have to explicitly set the width of the image (that should be around line #260):</p>


<div class="wp_syntax"><div class="code"><pre class="javascript javascript" style="font-family:monospace;">imgPreloader.<span style="color: #000066;">onload</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">lightboxImage</span>.<span style="color: #660066;">src</span> <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">imageArray</span><span style="color: #009900;">&#91;</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">activeImage</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>0<span style="color: #009900;">&#93;</span>;
    <span style="color: #006600; font-style: italic;">// The following line will fix the glitch:</span>
    <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">lightboxImage</span>.<span style="color: #660066;">width</span> <span style="color: #339933;">=</span> imgPreloader.<span style="color: #660066;">width</span>;
    <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">resizeImageContainer</span><span style="color: #009900;">&#40;</span>imgPreloader.<span style="color: #660066;">width</span><span style="color: #339933;">,</span> imgPreloader.<span style="color: #660066;">height</span><span style="color: #009900;">&#41;</span>;
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">bind</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>;
imgPreloader.<span style="color: #660066;">src</span> <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">imageArray</span><span style="color: #009900;">&#91;</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">activeImage</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>0<span style="color: #009900;">&#93;</span>;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.stopbeingcarbon.com/2008/05/possible-bug-in-lightbox-and-fix/feed/</wfw:commentRss>
		</item>
		<item>
		<title>SharpMap modifications</title>
		<link>http://www.stopbeingcarbon.com/2008/03/sharpmap-modifications/</link>
		<comments>http://www.stopbeingcarbon.com/2008/03/sharpmap-modifications/#comments</comments>
		<pubDate>Sun, 02 Mar 2008 15:02:16 +0000</pubDate>
		<dc:creator>Christoph</dc:creator>
		
		<category><![CDATA[Coding]]></category>

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

		<category><![CDATA[.net]]></category>

		<category><![CDATA[c#]]></category>

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

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

		<guid isPermaLink="false">http://www.stopbeingcarbon.com/2008/03/sharpmap-modifications/</guid>
		<description><![CDATA[Wow, nearly three weeks since my last blog post (but I do post some updates more frequently on Twitter).

[Warning: tech stuff follows]
Anyway, I&#8217;m doing quite fine. My bachelor project is slowly taking shape. Currently I am modifying SharpMap for our needs (adding a dynamic layer for our data, adding some events to know what&#8217;s going [...]]]></description>
			<content:encoded><![CDATA[<p>Wow, nearly three weeks since my last blog post (but I do post some updates more frequently on <a href="http://twitter.com/clupprich">Twitter</a>).</p>

<p>[Warning: tech stuff follows]
Anyway, I&#8217;m doing quite fine. My bachelor project is slowly taking shape. Currently I am modifying <a href="http://www.codeplex.com/SharpMap">SharpMap</a> for our needs (adding a dynamic layer for our data, adding some events to know what&#8217;s going on inside of SharpMap,&#8230;).</p>

<p>I&#8217;ve also touched the clipping function, which really sucked. I replaced it with Sutherland-Hodgman&#8217;s polygon-clipping algorithm which works like a charm. This move was necessary because GDI+ has some problems rendering invalid data (meaning data which is far outside of the viewport). The process doing the drawing will block all others and your system will come to a halt  - no moving cursors, no task manager, no nothing.</p>

<p>Because SharpMap is released under the LGPL, I will post the .diff patches as soon as the major work is finished.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stopbeingcarbon.com/2008/03/sharpmap-modifications/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Ruby sum</title>
		<link>http://www.stopbeingcarbon.com/2008/01/ruby-sum/</link>
		<comments>http://www.stopbeingcarbon.com/2008/01/ruby-sum/#comments</comments>
		<pubDate>Fri, 11 Jan 2008 16:46:12 +0000</pubDate>
		<dc:creator>Christoph</dc:creator>
		
		<category><![CDATA[Coding]]></category>

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

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

		<guid isPermaLink="false">http://www.stopbeingcarbon.com/2008/01/ruby-sum/</guid>
		<description><![CDATA[
def sum&#40;enum, &#38;block&#41;
  sum = 0
  enum.each do &#124;value&#124;
    v = block.call&#40;value&#41;
    sum = v ? v + sum : sum
  end
  sum
end

]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="ruby ruby" style="font-family:monospace;"><span style="color:#9966CC; font-weight:bold;">def</span> sum<span style="color:#006600; font-weight:bold;">&#40;</span>enum, <span style="color:#006600; font-weight:bold;">&amp;</span>block<span style="color:#006600; font-weight:bold;">&#41;</span>
  sum = 0
  enum.<span style="color:#9900CC;">each</span> <span style="color:#9966CC; font-weight:bold;">do</span> |value|
    v = block.<span style="color:#9900CC;">call</span><span style="color:#006600; font-weight:bold;">&#40;</span>value<span style="color:#006600; font-weight:bold;">&#41;</span>
    sum = v ? v <span style="color:#006600; font-weight:bold;">+</span> sum : sum
  <span style="color:#9966CC; font-weight:bold;">end</span>
  sum
<span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.stopbeingcarbon.com/2008/01/ruby-sum/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Presenting Folaroids</title>
		<link>http://www.stopbeingcarbon.com/2008/01/presenting-folaroids/</link>
		<comments>http://www.stopbeingcarbon.com/2008/01/presenting-folaroids/#comments</comments>
		<pubDate>Fri, 04 Jan 2008 21:18:43 +0000</pubDate>
		<dc:creator>Christoph</dc:creator>
		
		<category><![CDATA[Coding]]></category>

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

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

		<category><![CDATA[script.aculo.us]]></category>

		<guid isPermaLink="false">http://www.stopbeingcarbon.com/2008/01/presenting-folaroids/</guid>
		<description><![CDATA[I played around a little bit with script.aculo.us the last few days and came up with some small Flickr photo browser called Folaroids.

It&#8217;s based on Ruby and JavaScript (Prototype and script.aculo.us). It&#8217;s the first time that I&#8217;ve done some real word application with erb and script.aculo.us (whose effects and support is just awesome).

Check it out [...]]]></description>
			<content:encoded><![CDATA[<p>I played around a little bit with script.aculo.us the last few days and came up with some small Flickr photo browser called <a href="http://folaroids.stopbeingcarbon.com">Folaroids</a>.</p>

<p>It&#8217;s based on Ruby and JavaScript (Prototype and script.aculo.us). It&#8217;s the first time that I&#8217;ve done some real word application with erb and script.aculo.us (whose effects and support is just awesome).</p>

<p><a href="http://folaroids.stopbeingcarbon.com">Check it out</a> (and leave comments).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stopbeingcarbon.com/2008/01/presenting-folaroids/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Love? Hate? Whatever&#8230;</title>
		<link>http://www.stopbeingcarbon.com/2007/10/love-hate-whatever/</link>
		<comments>http://www.stopbeingcarbon.com/2007/10/love-hate-whatever/#comments</comments>
		<pubDate>Sun, 21 Oct 2007 15:18:44 +0000</pubDate>
		<dc:creator>Christoph</dc:creator>
		
		<category><![CDATA[Coding]]></category>

		<category><![CDATA[.net]]></category>

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

		<guid isPermaLink="false">http://www.stopbeingcarbon.com/2007/10/love-hate-whatever/</guid>
		<description><![CDATA[
// This won't work:
Process proc = new Process&#40;&#41;;
string path = System.IO.Path.GetDirectoryName&#40;System.Reflection.Assembly.GetExecutingAssembly&#40;&#41;.CodeBase&#41;;
&#160;
proc.StartInfo.Filename = System.IO.Path.Combine&#40;path, &#34;myApp.exe&#34;&#41;;
proc.Start&#40;&#41;;
proc.WaitForExit&#40;&#41;; // &#60;-- Will crash here
&#160;
// This does work:
Process proc = new Process&#40;&#41;;
&#160;
proc.StartInfo.Filename = &#34;myApp.exe&#34;;
proc.Start&#40;&#41;;
proc.WaitForExit&#40;&#41;;


Both samples will start myApp.exe just fine, but the first one seems to have some problems with Windows. Cost me four precious hours of my life.

btw, can anyone [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="csharp csharp" style="font-family:monospace;"><span style="color: #008080; font-style: italic;">// This won't work:</span>
Process proc <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Process<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
<span style="color: #FF0000;">string</span> path <span style="color: #008000;">=</span> <span style="color: #000000;">System.<span style="color: #0000FF;">IO</span></span>.<span style="color: #0000FF;">Path</span>.<span style="color: #0000FF;">GetDirectoryName</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">System.<span style="color: #0000FF;">Reflection</span></span>.<span style="color: #0000FF;">Assembly</span>.<span style="color: #0000FF;">GetExecutingAssembly</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>.<span style="color: #0000FF;">CodeBase</span><span style="color: #000000;">&#41;</span>;
&nbsp;
proc.<span style="color: #0000FF;">StartInfo</span>.<span style="color: #0000FF;">Filename</span> <span style="color: #008000;">=</span> <span style="color: #000000;">System.<span style="color: #0000FF;">IO</span></span>.<span style="color: #0000FF;">Path</span>.<span style="color: #0000FF;">Combine</span><span style="color: #000000;">&#40;</span>path, <span style="color: #666666;">&quot;myApp.exe&quot;</span><span style="color: #000000;">&#41;</span>;
proc.<span style="color: #0000FF;">Start</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
proc.<span style="color: #0000FF;">WaitForExit</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>; <span style="color: #008080; font-style: italic;">// &lt;-- Will crash here</span>
&nbsp;
<span style="color: #008080; font-style: italic;">// This does work:</span>
Process proc <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Process<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
&nbsp;
proc.<span style="color: #0000FF;">StartInfo</span>.<span style="color: #0000FF;">Filename</span> <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;myApp.exe&quot;</span>;
proc.<span style="color: #0000FF;">Start</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
proc.<span style="color: #0000FF;">WaitForExit</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</pre></div></div>


<p>Both samples will start myApp.exe just fine, but the first one seems to have some problems with Windows. Cost me four precious hours of my life.</p>

<p>btw, can anyone tell me why &#8220;new&#8221; in the code snippet above links to a google search for new and msdn.microsoft.com? No? That figures.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stopbeingcarbon.com/2007/10/love-hate-whatever/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Py-ISO8211</title>
		<link>http://www.stopbeingcarbon.com/2007/08/py-iso8211/</link>
		<comments>http://www.stopbeingcarbon.com/2007/08/py-iso8211/#comments</comments>
		<pubDate>Wed, 29 Aug 2007 17:44:41 +0000</pubDate>
		<dc:creator>Christoph</dc:creator>
		
		<category><![CDATA[Coding]]></category>

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

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

		<guid isPermaLink="false">http://www.stopbeingcarbon.com/2007/08/py-iso8211/</guid>
		<description><![CDATA[Does anybody know if the iso8211 library for Python have been updated to work with Python 2.5? I got them working rudimentary but I still found some issues.
]]></description>
			<content:encoded><![CDATA[<p>Does anybody know if the <a href="http://py-iso8211.sourceforge.net/">iso8211 library for Python</a> have been updated to work with Python 2.5? I got them working rudimentary but I still found some issues.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stopbeingcarbon.com/2007/08/py-iso8211/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Python Lifestream</title>
		<link>http://www.stopbeingcarbon.com/2007/07/python-lifestream/</link>
		<comments>http://www.stopbeingcarbon.com/2007/07/python-lifestream/#comments</comments>
		<pubDate>Mon, 16 Jul 2007 12:41:53 +0000</pubDate>
		<dc:creator>Christoph</dc:creator>
		
		<category><![CDATA[Coding]]></category>

		<category><![CDATA[Site News]]></category>

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

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

		<guid isPermaLink="false">http://www.stopbeingcarbon.com/2007/07/python-lifestream/</guid>
		<description><![CDATA[The last few days I had some time to create a lifestream, as you can find some here and there.

It was actually pretty simple thanks to Mark Pilgrim&#8217;s Universal Feed Parser. I simply stuffed all my personal feeds into a dict, including the source description for different styles, text,&#8230;; did the feed parsing, collected all [...]]]></description>
			<content:encoded><![CDATA[<p>The last few days I had some time to create a <a href="http://www.stopbeingcarbon.com/lifestream/">lifestream</a>, as you can find some <a href="http://adactio.com/extras/stream/">here</a> and <a href="http://www2.jeffcroft.com/stream/">there</a>.</p>

<p>It was actually pretty simple thanks to Mark Pilgrim&#8217;s <a href="http://feedparser.org/">Universal Feed Parser</a>. I simply stuffed all my personal feeds into a dict, including the source description for different styles, text,&#8230;; did the feed parsing, collected all entries, sorted them and wrote them to an html file (I was a bit shy about an online solution due to some speed, performance and privacy concerns - at least not everybody can see my virtual-personal actions for every second of my life).</p>

<p>All in all the hardest part was getting that damn thing running on Dreamhost via a cronjob (mainly because I&#8217;m using my own version of Python, own modules,&#8230;).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stopbeingcarbon.com/2007/07/python-lifestream/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
