<?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>//dennisbloete</title>
	<atom:link href="http://dennisbloete.de/feed/" rel="self" type="application/rss+xml" />
	<link>http://dennisbloete.de</link>
	<description>Arbeit und Alltag eines Software-Entwicklers aus Bremen</description>
	<lastBuildDate>Fri, 30 Jul 2010 21:46:18 +0000</lastBuildDate>
	<language>de-de</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>GitHub, I like…</title>
		<link>http://dennisbloete.de/blog/github-i-like%e2%80%a6/</link>
		<comments>http://dennisbloete.de/blog/github-i-like%e2%80%a6/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 16:20:53 +0000</pubDate>
		<dc:creator>Dennis</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[GitHub]]></category>
		<category><![CDATA[GreaseMonkey]]></category>

		<guid isPermaLink="false">http://dennisbloete.de/?p=739</guid>
		<description><![CDATA[Toying around with GreaseMonkey I wrote a little userscript that integrates the Facebook Like button into GitHub repository pages (click here to install it). Nothing special, but maybe you like it too Next up: Stop messing around with GreaseMonkey and learn how to write Safari Extensions.]]></description>
			<content:encoded><![CDATA[<p>Toying around with GreaseMonkey I wrote a <a href="http://github.com/dbloete/I-like-GitHub">little userscript</a> that integrates the Facebook Like button into GitHub repository pages (<a href="http://github.com/dbloete/I-like-GitHub/blob/master/i-like-github.user.js">click here to install it</a>). Nothing special, but maybe you like it too <img src='http://dennisbloete.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Next up: Stop messing around with GreaseMonkey and learn how to write <a href="http://extensions.apple.com/">Safari Extensions</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://dennisbloete.de/blog/github-i-like%e2%80%a6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Loading GreaseMonkey userscripts from a server</title>
		<link>http://dennisbloete.de/blog/greasemonkey-userscript-updates/</link>
		<comments>http://dennisbloete.de/blog/greasemonkey-userscript-updates/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 07:11:34 +0000</pubDate>
		<dc:creator>Dennis</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[GreaseMonkey]]></category>
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://dennisbloete.de/?p=740</guid>
		<description><![CDATA[Codeshelver relies heavily on the GreaseMonkey/GreaseKit userscript to customize the GitHub dashboard and repository pages. As I have got some more ideas for extending these functionalities (i.e. adding a list of recently shelved repositories to the dashboard) I was searching for a way to load the userscript from my server so that the users do [...]]]></description>
			<content:encoded><![CDATA[<p><a href="/blog/codeshelver-tag-github-repositories/">Codeshelver</a> relies heavily on the GreaseMonkey/GreaseKit userscript to customize the GitHub dashboard and repository pages. As I have got some more ideas for extending these functionalities (i.e. adding a list of recently shelved repositories to the dashboard) I was searching for a way to load the userscript from my server so that the users do not have to update the userscript manually everytime I add new features.</p>
<p>It turns out to be fairly simple, because you just have to split your userscript into two parts: The first one is the userscript that the user adds to his browser and which just loads the second part, namely a javascript file that gets integrated into the webpage and which contains the real functionality.</p>
<h4>myapp.user.js</h4>
<p>This is the userscript that you offer to download/add to the browser: It just integrates the real userscript from the server, so that the users do not have to update their userscripts and it also disables the userscript functionality in case your server is not available. The latter can be seen as a bug or a feature (depends on your use case), but for <a href="http://codeshelver.com">codeshelver.com</a> this is a feature, because if the server is down you are not able to shelve repositories anyway <img src='http://dennisbloete.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><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: #006600; font-style: italic;">//</span>
  <span style="color: #003366; font-weight: bold;">var</span> script <span style="color: #339933;">=</span> document.<span style="color: #660066;">createElement</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'script'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  script.<span style="color: #660066;">src</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">'http://myapp.com/userscript.js'</span><span style="color: #339933;">;</span>
  script.<span style="color: #660066;">type</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">'text/javascript'</span><span style="color: #339933;">;</span>
  document.<span style="color: #660066;">getElementsByTagName</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'head'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">appendChild</span><span style="color: #009900;">&#40;</span>script<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<h4>userscript.js</h4>
<p>Here goes the real functionality <img src='http://dennisbloete.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> Userscript <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span>
  init<span style="color: #339933;">:</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;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Hello :)&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
Userscript.<span style="color: #660066;">init</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>As I said this is pretty straight forward, so go ahead and enhance the web!<br />
<script type="text/javascript">
	var flattr_url = 'http://dennisbloete.de/blog/greasemonkey-userscript-updates/';
	var flattr_btn='compact';
</script><br />
<script src="http://api.flattr.com/button/load.js" type="text/javascript"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://dennisbloete.de/blog/greasemonkey-userscript-updates/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Codeshelver: Tagging GitHub repositories</title>
		<link>http://dennisbloete.de/blog/codeshelver-tag-github-repositories/</link>
		<comments>http://dennisbloete.de/blog/codeshelver-tag-github-repositories/#comments</comments>
		<pubDate>Sun, 18 Jul 2010 12:37:28 +0000</pubDate>
		<dc:creator>Dennis</dc:creator>
				<category><![CDATA[CouchDB / MongoDB]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[CouchDB]]></category>
		<category><![CDATA[ExpressJS]]></category>
		<category><![CDATA[GitHub]]></category>
		<category><![CDATA[GreaseMonkey]]></category>
		<category><![CDATA[NodeJS]]></category>

		<guid isPermaLink="false">http://dennisbloete.de/?p=727</guid>
		<description><![CDATA[Last week I polished my latest spare time project so that I could release it into the wild: Codeshelver lets you clean up your GitHub watchlist by tagging repositories you would like to remember. If you are a GitHub fanboy like me you probably know the problem: Almost daily an interesting project appears in your [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://codeshelver.com"><img class="align-right size-medium wp-image-728" title="Codeshelver" src="http://dennisbloete.de/wp-content/uploads/codeshelver-300x162.png" alt="Codeshelver lets you clean up your GitHub watchlist by storing repositories you would like to remember on your shelf." width="218" height="118" /></a>Last week I polished my latest spare time project so that I could release it into the wild: <a href="http://codeshelver.com/">Codeshelver</a> lets you clean up your <a href="http://github.com/">GitHub</a> watchlist by tagging repositories you would like to remember. If you are a GitHub fanboy like me you probably know the problem: Almost daily an interesting project appears in your timeline and you want to remember it, because you might need something like that in the future. You hit the <em>watch</em> button and from now on you are notified about every single commit, issue and wiki change of that project- This is great for code you are using on a daily basis but doesn&#8217;t make sense for repositories you would just like to remember, because it practically spams your dashboard timeline with things you are not really interested in.</p>
<p>I had the idea for this project on my mind for some time, but didn&#8217;t get around to realizing it because I lacked the motivation to build it with the common stack of technologies. A few weeks ago I started to play with <a href="http://nodejs.org/">NodeJS</a> and tried to come up with something that was beyond the Hello World examples so I stumbled upon <a href="http://expressjs.com/">ExpressJS</a>, which could be described as the <a href="http://www.sinatrarb.com/">Sinatra</a> of NodeJS. And so I had my use case for trying out some new technologies to which I also added <a href="http://www.greasespot.net/">GreaseMonkey</a> and <a href="http://couchdb.apache.org/">CouchDB</a> to make it more buzzwordy.</p>
<p>All in all it was fairly easy to develop the app as I just had to knit some good libraries together like <a href="http://github.com/visionmedia/express">express</a>, <a href="http://github.com/felixge/node-couchdb">node-couchdb</a> and <a href="http://github.com/shimondoodkin/nodejs-autorestart">nodejs-autorestart</a> which I&#8217;m currently using to make the deployment a little easier. Talking about deployment: I had some problems figuring out how to do it the best way, everyone seems to be using Ubuntu&#8217;s <a href="http://howtonode.org/deploying-node-upstart-monit">Upstart and Monit for deploying NodeJS apps</a>. I&#8217;d prefer a more generic solution, but I haven&#8217;t found a really satisfying way yet, so I&#8217;m just killing and restarting the processes.</p>
<p>There are some features in the pipeline that I&#8217;d like to add once some more people are using the service and I gather more data, which would offer the possibility to evaluate things like <a href="http://github.com/explore">trending</a> and <a href="http://github.com/repositories">interesting repositories</a>. Now that ExpressJS 1.0 is around the corner I&#8217;ll migrate the app and will most likely use <a href="http://www.slideshare.net/tim.lossen.de/coffeescript-7-reasons-you-are-gonna-hate-it">CoffeeScript</a> for that, because it looks very promising and <a href="http://geekiriki.blogspot.com/2010/07/getting-started-with-nodejs-and.html">easy to integrate</a> &#8211; it will also give me one more buzzword up my sleeve <img src='http://dennisbloete.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Please go ahead and try <a href="http://codeshelver.com">Codeshelver</a>, let me know what you think and leave comments and feedback here!</p>
<p><script type="text/javascript">
	var flattr_url = 'http://dennisbloete.de/blog/codeshelver-tag-github-repositories/';
	var flattr_btn='compact';
</script><br />
<script src="http://api.flattr.com/button/load.js" type="text/javascript"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://dennisbloete.de/blog/codeshelver-tag-github-repositories/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Installing a current CouchDB (and Erlang) from source on Ubuntu 8.04 LTS</title>
		<link>http://dennisbloete.de/blog/installing-couchdb-and-erlang-on-ubuntu-hardy/</link>
		<comments>http://dennisbloete.de/blog/installing-couchdb-and-erlang-on-ubuntu-hardy/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 20:13:30 +0000</pubDate>
		<dc:creator>Dennis</dc:creator>
				<category><![CDATA[CouchDB / MongoDB]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[CouchDB]]></category>
		<category><![CDATA[Erlang]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://dennisbloete.de/?p=693</guid>
		<description><![CDATA[Two weeks ago I had quite a hard time getting CouchDB up and running on my VPS, but with some help from Jonathan and Lars it finally worked. My main problem was that Erlang wasn&#8217;t configured with SSL support and that the CouchDB version I was using (0.11.0) did not play nice with the latest [...]]]></description>
			<content:encoded><![CDATA[<p>Two weeks ago I had quite a hard time getting CouchDB up and running on my VPS, but with some help from <a href="http://twitter.com/jweiss">Jonathan</a> and <a href="http://twitter.com/kangguru">Lars</a> it finally worked. My main problem was that Erlang wasn&#8217;t configured with SSL support and that the CouchDB version I was using (0.11.0) did not play nice with the latest Erland (R14A), so that I had to get CouchDB from the SVN repository. Now that <a href="http://www.couch.io/">CouchDB 1.0</a> is here, I thought it might be a good opportunity  to summarize the steps I had to take to install the latest Erlang and CouchDB 1.0 on my Ubuntu Hardy system…</p>
<p><span id="more-693"></span></p>
<p><strong>UPDATE:</strong> Here is a <a href="http://gist.github.com/501039">gist</a> that looks like there is a more hassle-free way to do the installation, please try it first and see the rest of this tutorial as a reference point if the gist does not work out for you.</p>
<p>I usually keep my source installs at <code>/usr/local/src/</code>, your milage may vary, adjust the steps accordingly.</p>
<h4>Installing the dependencies</h4>
<p>First of we got to install the dependencies for Erland and CouchDB:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #660033;">-y</span> <span style="color: #c20cb9; font-weight: bold;">automake</span> <span style="color: #c20cb9; font-weight: bold;">autoconf</span> libtool help2man
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #660033;">-y</span> build-essential erlang libicu-dev
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #660033;">-y</span> libmozjs-dev libcurl4-openssl-dev
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #660033;">-y</span> openssl libssl-dev</pre></div></div>

<h4>Installing Erlang</h4>
<p><a href="http://www.erlang.org/download.html">Download</a> and unpack the current Erlang version, in my case it&#8217;s R14A:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>src
$ <span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>www.erlang.org<span style="color: #000000; font-weight: bold;">/</span>download<span style="color: #000000; font-weight: bold;">/</span>otp_src_R14A.tar.gz
$ <span style="color: #c20cb9; font-weight: bold;">tar</span> xzf otp_src_R14A.tar.gz
$ <span style="color: #7a0874; font-weight: bold;">cd</span> otp_src_R14A</pre></div></div>

<p>Maybe you would like to see the config options and need to checkout which openssl should be used:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ .<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">-h</span>
$ <span style="color: #c20cb9; font-weight: bold;">which</span> openssl
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>openssl
$ .<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--with-ssl</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>include<span style="color: #000000; font-weight: bold;">/</span>openssl<span style="color: #000000; font-weight: bold;">/</span>
$ <span style="color: #c20cb9; font-weight: bold;">make</span>
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p>Once you installed Erlang, check whether its cryptography library (OpenSSL) are functioning correctly.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ erl
Erlang R14A <span style="color: #7a0874; font-weight: bold;">&#40;</span>erts-<span style="color: #000000;">5.8</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> …
&nbsp;
Eshell V5.8  <span style="color: #7a0874; font-weight: bold;">&#40;</span>abort with ^G<span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&gt;</span> crypto:start<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>.
ok
<span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;</span> q<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>.
ok</pre></div></div>

<h4>Installing CouchDB</h4>
<p><a href="http://couchdb.apache.org/downloads.html">Download</a> and unpack the current CouchDB version, in my case it&#8217;s 1.0:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>src
$ <span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>apache.linux-mirror.org<span style="color: #000000; font-weight: bold;">/</span>couchdb<span style="color: #000000; font-weight: bold;">/</span>1.0.0<span style="color: #000000; font-weight: bold;">/</span>apache-couchdb-1.0.0.tar.gz
$ <span style="color: #c20cb9; font-weight: bold;">tar</span> xzf apache-couchdb-1.0.0.tar.gz
$ <span style="color: #7a0874; font-weight: bold;">cd</span> apache-couchdb-1.0.0</pre></div></div>

<p>Here you might like to see the config options to and export some of the variables:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ .<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">-h</span>
$ <span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">ERL</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>erl
$ <span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">ERLC</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>erlc
$ .<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--with-erlang</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>erlang<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>include<span style="color: #000000; font-weight: bold;">/</span> 
$ <span style="color: #c20cb9; font-weight: bold;">make</span>
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p>For security reasons it makes sense to have a separate <code>couchdb</code> user that runs the process, go ahead and create it:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> adduser <span style="color: #660033;">--system</span> \
        <span style="color: #660033;">--home</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>couchdb <span style="color: #660033;">--no-create-home</span> \
        <span style="color: #660033;">--shell</span> <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">bash</span> \
        <span style="color: #660033;">--group</span> <span style="color: #660033;">--gecos</span> <span style="color: #ff0000;">&quot;CouchDB&quot;</span> couchdb</pre></div></div>

<p>You will also have to give this user access to some directories:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #660033;">-R</span> couchdb:couchdb <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>couchdb
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #660033;">-R</span> couchdb:couchdb <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>couchdb
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #660033;">-R</span> couchdb:couchdb <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>couchdb
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #660033;">-R</span> couchdb:couchdb <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>run<span style="color: #000000; font-weight: bold;">/</span>couchdb</pre></div></div>

<p>… and change the permissions for the directories:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #660033;">-R</span> 0770 <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>couchdb
$ <span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #660033;">-R</span> 0770 <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>couchdb
$ <span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #660033;">-R</span> 0770 <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>couchdb
$ <span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #660033;">-R</span> 0770 <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>run<span style="color: #000000; font-weight: bold;">/</span>couchdb</pre></div></div>

<p>After that, verify that it finally works:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ couchdb
Apache CouchDB is running <span style="color: #c20cb9; font-weight: bold;">as</span> process …, <span style="color: #000000; font-weight: bold;">time</span> to relax.
$ curl <span style="color: #660033;">-X</span> GET http:<span style="color: #000000; font-weight: bold;">//</span>127.0.0.1:<span style="color: #000000;">5984</span><span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #ff0000;">&quot;couchdb&quot;</span>:<span style="color: #ff0000;">&quot;Welcome&quot;</span>,<span style="color: #ff0000;">&quot;version&quot;</span>:<span style="color: #ff0000;">&quot;1.0.0&quot;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>
$ <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>couchdb start
 <span style="color: #000000; font-weight: bold;">*</span> Starting database server couchdb
   ...done.</pre></div></div>

<h4>Caveats</h4>
<p>If CouchDB does not work and it does not write into the log it is likely a permission problem, see if the couchdb directories belong to the <code>couchdb</code> user and that the permissions are set correctly.</p>
<p>Another thing that occured to me was an error that resulted from still having leftovers from previous installations at <code>/usr/lib/couchdb/erlang/lib</code>. Older version, especially of <code>mochiweb-r97</code> or couchdb can lead to &#8220;Bad Request&#8221; errors, so clean up the erlang lib directory.</p>
<p><script type="text/javascript">
	var flattr_url = 'http://dennisbloete.de/blog/installing-couchdb-and-erlang-on-ubuntu-hardy/';
	var flattr_btn='compact';
</script><br />
<script src="http://api.flattr.com/button/load.js" type="text/javascript"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://dennisbloete.de/blog/installing-couchdb-and-erlang-on-ubuntu-hardy/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Was macht eigentlich… ?</title>
		<link>http://dennisbloete.de/blog/was-macht-eigentlich/</link>
		<comments>http://dennisbloete.de/blog/was-macht-eigentlich/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 20:48:36 +0000</pubDate>
		<dc:creator>Dennis</dc:creator>
				<category><![CDATA[Ruby and Rails]]></category>
		<category><![CDATA[iPhone / iPad / iOS]]></category>
		<category><![CDATA[Freelance]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://dennisbloete.de/?p=678</guid>
		<description><![CDATA[Half a year ago I promised to let you know about my experiences becoming a freelancer. Not having written more than a few project announcements since then is actually a good thing, because it means I&#8217;m too busy to blog Nevertheless: Here is an update of what I have been doing the last months and [...]]]></description>
			<content:encoded><![CDATA[<p>Half a year ago <a href="http://dennisbloete.de/blog/going-solo/">I promised to let you know</a> about my experiences becoming a freelancer. Not having written more than a few <a href="/blog/disser-app-iphone/">project</a> <a href="/blog/zendome-iphone-app/">announcements</a> since then is actually a good thing, because it means I&#8217;m too busy to blog <img src='http://dennisbloete.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  Nevertheless: Here is an update of what I have been doing the last months and about what I plan to do for the rest of the year <img src='http://dennisbloete.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><span id="more-678"></span></p>
<p>After spending the first months completely involved in some iPhone projects and consulting and not doing anything web development related I decided to not take on new iPhone/iPad client projects. There are some reasons for that &#8211; first and foremost: Right now the web and mobile market are moving really fast and I just can&#8217;t (and don&#8217;t want to) find the time to stay up to date with both worlds (it&#8217;s appeasing that I&#8217;m not the only one who <a href="http://tammofreese.de/2009/09/03/goodbye-rails-hello-os-x-iphone-mac">thinks like that</a> <img src='http://dennisbloete.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ) There is so much exciting stuff happening in the Rails, JavaScript and HTML5 realm that I don&#8217;t want to miss and I really missed working in teams, because most of the iPhone gigs were just me on the development side. Another point is that I don&#8217;t like the lock in way Apple seems to be pursuing, but this is more of a personal issue. I&#8217;d really like to get the personal impression from those of you who are also doing iOS development, maybe it&#8217;s just me but I talked to some people who seamed to have similar opinions.</p>
<p>So what happened after making this decision? Something that seems logical looking at it retrospectively: I joined the guys over at <a href="http://railslove.com/"><strong></strong>Railslove</a> and worked with them on a World Cup prediction game (I&#8217;m sorry but I just don&#8217;t know how to translate &#8220;Tippspiel&#8221; &#8211; btw: why not join the <a href="http://cowocup2010.coworking.de/">Coworking Cup</a>? Invitation token is &#8220;weworkunited&#8221;). We had a very productive time and lots of fun together so we concluded it might be a good idea to work on some more projects and this assumption did not fail to deliver. We are working on some pretty exciting projects and if you are interested in joining Railslove just <a href="http://railslove.com/about-us">contact them</a>.</p>
<p>Okay, that&#8217;s the past and the present &#8211; what about the future? I don&#8217;t know, but if it turns out to be as exciting, informative and funny as the first six month it will be awesome! Two weeks ago I&#8217;ve been at the <a href="http://it-republik.de/conferences/railswaycon2010/">RailsWayCon</a> (you might want to read <a href="http://jan.krutisch.de/en/2010/06/04/railswaycon-recap.html">Jan&#8217;s recap</a>) and met a lot of the nice folks from the European Ruby/Rails Community. I&#8217;m also really looking forward for some more conferences and events this year, like <a href="http://railscamp.de/">RailsCamp</a>, <a href="http://jsconf.eu/2010/">JSConf EU</a> and <a href="http://www.railsrumble.com/">RailsRumble</a> to name a few &#8211; I hope we&#8217;ll see each other there!</p>
]]></content:encoded>
			<wfw:commentRss>http://dennisbloete.de/blog/was-macht-eigentlich/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>&#8220;Digitaler Schimpfweltmeister&#8221;: DISSER für&#8217;s iPhone</title>
		<link>http://dennisbloete.de/blog/disser-app-iphone/</link>
		<comments>http://dennisbloete.de/blog/disser-app-iphone/#comments</comments>
		<pubDate>Sun, 07 Mar 2010 13:42:46 +0000</pubDate>
		<dc:creator>Dennis</dc:creator>
				<category><![CDATA[iPhone / iPad / iOS]]></category>
		<category><![CDATA[Disser]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Marketing]]></category>

		<guid isPermaLink="false">http://dennisbloete.de/?p=667</guid>
		<description><![CDATA[Als Stephan Griesenbrock und Daniel Knobloch mir Ende letzten Jahres die Idee für ihre DISSER App für&#8217;s iPhone (und iPod Touch) vorstellten war mir schon klar, dass die App ein sehr großes Potential hat: Ein schlüßiges Konzept um eine witzige und bislang so nicht umgesetzte Idee, eine gut zu erreichende Zielgruppe und angebrachte Sharing-Funktionen für [...]]]></description>
			<content:encoded><![CDATA[<p>Als <a href="https://www.xing.com/profile/Stephan_Griesenbrock2">Stephan Griesenbrock</a> und <a href="https://www.xing.com/profile/Daniel_Knobloch4">Daniel Knobloch</a> mir Ende letzten Jahres die Idee für ihre <a href="http://disser-app.de/">DISSER App</a> für&#8217;s iPhone (und iPod Touch) vorstellten war mir schon klar, dass die App ein sehr großes Potential hat: Ein schlüßiges Konzept um eine witzige und bislang so nicht umgesetzte Idee, eine gut zu erreichende Zielgruppe und angebrachte Sharing-Funktionen für soziale Netzwerke, so dass auch der Grundstein für eine virale Verbreitung gelegt ist. Aber damit, dass die App direkt so einschlagen würde, hat von <a href="http://disser-app.de/team.php">uns dreien</a> selbst bei dem guten Feedback das wir von Freunden bekommen haben keiner gerechnet.</p>
<p><a href="http://www.disser-app.de/appstore/"><img class="align-right size-full wp-image-670" title="disser_platz_1_itunes" src="http://dennisbloete.de/wp-content/uploads/disser_platz_1_itunes.png" alt="" width="245" height="187" /></a>Wir schreiben heute Tag 4 nach Livegang <a href="http://www.disser-app.de/appstore/">im App Store</a> und der Disser hat sich bis ganz nach oben an Position 1 der meistverkauften Apps in Deutschland gepöbelt. Der helle Wahnsinn, vor allem weil es so schnell ging &#8211; was aber wiederum der sehr Marketingarbeit der zwei Jungs aus Köln zu verdanken ist: Rund um den Disser wurde vor dem Livegang ein umfassendes Gesamtpaket inklusive <a href="http://disser-app.de/">Website</a>, <a href="http://disser-app.de/blog/">Projektblog</a>, <a href="http://www.facebook.com/pages/Disser/241996562531">Facebook Fan-Page</a>, <a href="http://disser-app.de/demovideo.php">Marketing-Video</a> und <a href="http://disser-app.de/presse.php">Pressematerial</a> geschnürt, so dass die App nicht nur auf dem iPhone stattfindet. Schnell trudelten die ersten sehr guten Rezensionen und <a href="http://www.youtube.com/watch?v=V1VVHAKDz3Y&amp;feature=related">Video-Reviews</a> ein: So schreibt beispielsweise iPhone-Junkie Carsten Scheibe im <a href="http://www.stern.de/blog/95_iphone-junkie/archive/3579_disser_10_runzelige_speckbratze_.html">Stern.de Blog</a>: &#8220;Der Disser ist eine überaus professionell umgesetzte Fun-App, die auf jedes iPhone und auf jeden iPod touch gehört.&#8221;</p>
<p>Auch das Feedback der Nutzer im App Store und auf der Website sind super: Viele wollen den Wortschatz des Dissers erweitert sehen und schlagen selbst <a href="http://disser-app.de/diss-vorschlagen.php">neue Wörter</a> vor, so dass sich ein sehr kuriose und amüsante Liste von Vorschlägen ansammelt, die wir möglichst schnell mit einem neuen Update herausgeben werden. Wir sind gespannt auf die nächsten Tage, freuen uns über weitere Reviews und Vorschläge und bedanken uns bei allen Nutzern für&#8217;s Herunterladen der App &#8211; sowas macht echt Spaß! <img src='http://dennisbloete.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://dennisbloete.de/blog/disser-app-iphone/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Using MongoMapper with Rails 3</title>
		<link>http://dennisbloete.de/blog/using-mongomapper-with-rails-3/</link>
		<comments>http://dennisbloete.de/blog/using-mongomapper-with-rails-3/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 15:31:17 +0000</pubDate>
		<dc:creator>Dennis</dc:creator>
				<category><![CDATA[Ruby and Rails]]></category>
		<category><![CDATA[MongoDB]]></category>
		<category><![CDATA[MongoMapper]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://dennisbloete.de/?p=660</guid>
		<description><![CDATA[There is a really nice introduction at the MongoDB site on How to get started with MongoDB and Rails 3. I used this as a starting point but had to do a few more things before I was fully satisfied and got things running with MongoMapper. At the time of writing this the official repository [...]]]></description>
			<content:encoded><![CDATA[<p>There is a really nice introduction at the MongoDB site on <a href="http://www.mongodb.org/display/DOCS/Rails+3+-+Getting+Started">How to get started with MongoDB and Rails 3</a>. I used this as a starting point but had to do a few more things before I was fully satisfied and got things running with MongoMapper. At the time of writing this <a href="http://github.com/jnunemaker/mongomapper">the official repository</a> is not Rails 3 compatible (because it does not implement the ActiveModel interface, yet), so I had to go with the <a href="http://github.com/merbjedi/mongomapper/tree/rails3">rails3 branch of merbjedi&#8217;s repository</a>. Use the following line to add the dependency to your Gemfile:</p>

<div class="wp_syntax"><div class="code"><pre class="rails" style="font-family:monospace;">gem <span style="color:#996600;">&quot;mongo_mapper&quot;</span>, <span style="color:#ff3333; font-weight:bold;">:git</span> =<span style="color:#006600; font-weight:bold;">&amp;</span>gt; <span style="color:#996600;">'http://github.com/merbjedi/mongomapper.git'</span>, <span style="color:#ff3333; font-weight:bold;">:branch</span> =<span style="color:#006600; font-weight:bold;">&amp;</span>gt; <span style="color:#996600;">'rails3'</span></pre></div></div>

<p>And while you are at it, add this line to include <a href="http://github.com/indirect/rails3-generators">some handy generators for Rails 3</a>, including one for MongoMapper models:</p>

<div class="wp_syntax"><div class="code"><pre class="rails" style="font-family:monospace;">gem <span style="color:#996600;">&quot;rails3-generators&quot;</span></pre></div></div>

<p>To use the generator set the orm config in your <code>config/application.rb</code> to <code>:mongomapper</code></p>

<div class="wp_syntax"><div class="code"><pre class="rails" style="font-family:monospace;">config.<span style="color:#9900CC;">generators</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>g<span style="color:#006600; font-weight:bold;">|</span>
      g.<span style="color:#9900CC;">orm</span> <span style="color:#ff3333; font-weight:bold;">:mongomapper</span>
      …
<span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>

<p>… and you are good to go!</p>
<p>btw: If you are like me and you prefer to have some kind of GUI for quick database lookups, check out <a href="http://github.com/bububa/MongoHub">MongoHub</a>. It is in a very early stage of development, but at least you get to see your databases and documents.</p>
]]></content:encoded>
			<wfw:commentRss>http://dennisbloete.de/blog/using-mongomapper-with-rails-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ZENDOME für das iPhone</title>
		<link>http://dennisbloete.de/blog/zendome-iphone-app/</link>
		<comments>http://dennisbloete.de/blog/zendome-iphone-app/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 10:49:44 +0000</pubDate>
		<dc:creator>Dennis</dc:creator>
				<category><![CDATA[Cocoa / Objective-C]]></category>
		<category><![CDATA[iPhone / iPad / iOS]]></category>
		<category><![CDATA[Arbeit]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[Zendome]]></category>

		<guid isPermaLink="false">http://dennisbloete.de/?p=651</guid>
		<description><![CDATA[Es ist soweit und ZENDOME &#8211; ein Kundenprojekt an dem ich in letzter Zeit gearbeitet habe &#8211; ist nun kostenlos im App Store erhältlich. Die Applikation wurde im Auftrag der ZENDOME GmbH entwickelt und ermöglicht die Planung von individuellen Event-Landschaften, die beispielsweise auf Messen oder für Ausstellungen verwendet werden. Der Benutzer hat die Möglichkeit, die [...]]]></description>
			<content:encoded><![CDATA[<p>Es ist soweit und <a href="http://itunes.com/apps/zendome">ZENDOME</a> &#8211; ein Kundenprojekt an dem ich in letzter Zeit gearbeitet habe &#8211; ist nun <a href="itms://itunes.apple.com/de/app/zendome/id353137169?mt=8">kostenlos im App Store erhältlich</a>. Die Applikation wurde im Auftrag der <a href="http://zendome.de/">ZENDOME GmbH</a> entwickelt und ermöglicht die Planung von individuellen Event-Landschaften, die beispielsweise auf Messen oder für Ausstellungen verwendet werden. Der Benutzer hat die Möglichkeit, die verschiedenen geodätischen Dome zur ZENDOME.domescapes zu kombinieren und damit seine Veranstaltung vorzudenken. Ist eine Planung erstellt lässt sich schnell und unkompliziert ein Angebot anfordern.</p>
<p><a href="itms://itunes.apple.com/de/app/zendome/id353137169?mt=8"><img class="align-right size-full wp-image-652" title="zendome-iphone" src="http://dennisbloete.de/wp-content/uploads/zendome-iphone.png" alt="ZENDOME iPhone-Applikation" width="135" height="250" /></a></p>
<p>Besonderer Wert wurde auf eine intuitive Benutzung der Anwendung gelegt. Um dies zu erreichen wurde auf die aus dem allgemeinen iPhone-Kontext bekannte Gesten und Aktionen (bspw. Pinch/Zoom, Drag and Drop, Scrolling, etc. ) zurückgegriffen und einfache Interaktionsmuster benutzt. Es gibt bereits Erweiterungspläne für kommende Versionen: So ist insbesondere eine iPad-Variante angedacht, da die größere Bildschirmfläche natürlich mehr Platz für eine komfortable und detailreiche Planung bietet. Noch etwas zum technischen Hintergrund: Das Projekt wurde mit Xcode und CocoaTouch-Standardtechnologien wie UIKit, CoreGraphics und CoreAnimation innerhalb von vier Wochen realisiert und hatte insgesamt einen Arbeitsaufwand von ca. 40 Stunden. Weitere Projektdetails und Informationen plane ich in naher Zukunft in einer kurzen Fallstudie zu veröffentlichen.</p>
]]></content:encoded>
			<wfw:commentRss>http://dennisbloete.de/blog/zendome-iphone-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Going solo</title>
		<link>http://dennisbloete.de/blog/going-solo/</link>
		<comments>http://dennisbloete.de/blog/going-solo/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 17:42:46 +0000</pubDate>
		<dc:creator>Dennis</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Freelance]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://dennisbloete.de/?p=576</guid>
		<description><![CDATA[A few months ago, after the birth of our daugther (yeah, Lotta!) and during my parental leave, thoughts arose about realizing an idea I&#8217;ve carried around with me since I finished my studies: Going solo, working on my own projects and earning a living as a freelance software developer. A few weeks ago I realized [...]]]></description>
			<content:encoded><![CDATA[<p>A few months ago, after the birth of our daugther (<a href="http://www.flickr.com/photos/dbloete/4025365815/">yeah, Lotta!</a>) and during my parental leave, thoughts arose about realizing an idea I&#8217;ve carried around with me since I finished my studies: Going solo, working on my own projects and earning a living as a freelance software developer. A few weeks ago I realized that plan and decided to quit my current job at <a href="http://neuland-bfi.de/">neuland</a>, though it wasn&#8217;t an easy decision: working for neuland has always been fun, especially because of the nice environment and the multitude of different personalities of the people working there &#8211; some of which are now close friends of mine. Nevertheless I felt that deep urge of doing something on my own and having sold <a href="http://venteria.com/">venteria</a> in summer makes taking the plunge a little less risky.</p>
<p>Alright, so where am I heading? A new focus will be iPhone/Cocoa app development and I&#8217;ll keep on working with Ruby on Rails &#8211; I&#8217;m really looking forward to all the great enhancements planned for Rails 3.0 and I just love doing web development, so that I won&#8217;t <a href="http://tammofreese.de/2009/09/03/goodbye-rails-hello-os-x-iphone-mac">burn all the bridges</a> <img src='http://dennisbloete.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>The bootstrapping went pretty well so far, I joined a really nice coworking environment and got an office at the infamous <a href="http://abfertigung.de/">Abfertigung</a>. As far as I can tell I&#8217;ll be surrounded by a bunch of very nice, creative and innovative people. Furthermore it&#8217;s good to know that I can, but don&#8217;t have to work from home &#8211; that makes meeting clients and finding quiet hours to get work done (I&#8217;m lookin&#8217; atcha, <a href="http://www.flickr.com/photos/dbloete/4125102227/">Lotta</a>) a lot easier <img src='http://dennisbloete.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Hopefully I&#8217;ll find the time during the next weeks to write about some of the aspects of becoming a freelancer as I know some of you are interested in that and I&#8217;d like to take you along on that journey. I think it will be a pretty interesting time and I&#8217;ll learn tons about myself, meet nice and interesting people (including clients <img src='http://dennisbloete.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ) and most important of all: still have the time to enjoy my family… <a href="http://www.rainbowbody.com/newarticles/farmerson.htm">we shall see</a> <img src='http://dennisbloete.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://dennisbloete.de/blog/going-solo/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Syncing Socialite across multiple Macs (using Dropbox)</title>
		<link>http://dennisbloete.de/blog/syncing-socialite-across-multiple-macs-using-dropbox/</link>
		<comments>http://dennisbloete.de/blog/syncing-socialite-across-multiple-macs-using-dropbox/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 17:00:48 +0000</pubDate>
		<dc:creator>Dennis</dc:creator>
				<category><![CDATA[off topic]]></category>
		<category><![CDATA[Dropbox]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[Socialite]]></category>

		<guid isPermaLink="false">http://dennisbloete.de/?p=619</guid>
		<description><![CDATA[If you are working on multiple Macs (i.e. having a personal and one at work) you probably know this problem: You would like to sync some application data between these machines, so that you don&#8217;t have to manage separate todo-lists, items in your inbox that you&#8217;ve already read on one machine but are marked as [...]]]></description>
			<content:encoded><![CDATA[<p>If you are working on multiple Macs (i.e. having a personal and one at work) you probably know this problem: You would like to sync some application data between these machines, so that you don&#8217;t have to manage separate todo-lists, items in your inbox that you&#8217;ve already read on one machine but are marked as unread on the other, etc. I&#8217;m using <a href="https://www.dropbox.com/referrals/NTk4MDU4MDk">Dropbox</a> (disclaimer: If you sign up using this link, I&#8217;ll get some more disk space, thank you!) to sync various applications (<a href="http://culturedcode.com/things/">Things</a>, <a href="http://billingsapp.com/">Billings</a> and <a href="http://www.realmacsoftware.com/socialite/">Socialite</a> for example), but you can use any other cloud storage solution if you like.</p>
<p>In this little tutorial I&#8217;ll explain how to sync the data with Dropbox and I&#8217;m using Socialite as an example. It basically works like this for any app that stores its data in an <em>Application Support</em> folder, but Socialite requires some extra steps people are <a href="http://www.realmacsoftware.com/forums/index.php/forums/viewthread/26653/">frequently</a> <a href="http://www.realmacsoftware.com/forums/index.php/forums/viewthread/27518/">asking</a> about, so here we go:</p>
<ol>
<li>Go to your Dropbox folder and create a new folder called <em>Synced Application Support</em> (or whatever you like)</li>
<li>Quit any running instance of the application you would like to sync (in this case <em>Socialite</em>).</li>
<li>Got to your <em>~/Library/Application Support</em> and move the <em>Socialite</em> folder into the Dropbox folder you just created (<em>Synced Application Support</em>)</li>
<li>Open your Terminal.app and symlink the moved folder:<br />
<code>$ ln -s ~/Dropbox/Synced\ Application\ Support/Socialite/ ~/Library/</code><code>Application\ Support</code><code>/Socialite</code></li>
<li>Start the app and see if it worked</li>
</ol>
<p>After this five steps you should be up and running with most of your apps (syncing Things is as easy as that). Unfortunately Socialite requires some extra steps if you are using Twitter (and who isn&#8217;t these days), because it keeps the OAuth authentication tokens in the keychain, so that you need to sync them too. Fortunately this isn&#8217;t a big deal, because now you know how to sync your data, so go ahead and…</p>
<ol>
<li>Quit Socialite</li>
<li>Open your Keychain and create a new keychain called Socialite and save it within your <em>Synced Application Support/Socialite</em> folder</li>
<li>Right click the new Socialite keychain, edit the settings and uncheck the checkboxes so that you won&#8217;t be bothered with authentication request every now and then</li>
<li>Use the search bar at the upper right corner to search for twitter.com and move all items used by Socialite to the new Socialite keychain</li>
<li>Start Socialite and see if your Twitter services are still working &#8211; if not: Delete all items in your Socialite keychain, remove the Twitter services from Socialite, restart Socialite, add them again and move the freshly created twitter.com items in your Login keychain to the Socialite keychain.</li>
</ol>
<p>Okay, that&#8217;s it, I hope it&#8217;s helpful to some of you and I also hope that someday syncing will be baked into Socialite, though <a href="http://www.realmacsoftware.com/forums/index.php/forums/viewthread/26653/#115067">Realmac Software currenty doesn&#8217;t have any plans for implementing that</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://dennisbloete.de/blog/syncing-socialite-across-multiple-macs-using-dropbox/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Asynchronität mit dem iPhone SDK</title>
		<link>http://dennisbloete.de/blog/asynchronitat-mit-dem-iphone-sdk/</link>
		<comments>http://dennisbloete.de/blog/asynchronitat-mit-dem-iphone-sdk/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 20:22:16 +0000</pubDate>
		<dc:creator>Dennis</dc:creator>
				<category><![CDATA[Cocoa / Objective-C]]></category>
		<category><![CDATA[Events]]></category>
		<category><![CDATA[iPhone / iPad / iOS]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://dennisbloete.de/?p=605</guid>
		<description><![CDATA[Im Rahmen der WebTechCon in Karlsruhe fand heute der iPhone Dev Day statt, auf dem Arne Harren, Johannes Fahrenkrug, Tammo Freese und ich jeweils Sessions rund um die iPhone-Entwicklung gegeben haben. Hier findet ihr die Folien und den Demo Code meines Vortrags zum Thema &#8220;Asynchronität mit dem iPhone SDK&#8221; und ein paar Fotos zu den [...]]]></description>
			<content:encoded><![CDATA[<p>Im Rahmen der WebTechCon in Karlsruhe fand heute der <a href="http://it-republik.de/konferenzen/webtech09/sessions?tid=1380">iPhone Dev Day</a> statt, auf dem <a href="http://beharren.net/ah">Arne Harren</a>, <a href="http://blog.springenwerk.com/">Johannes Fahrenkrug</a>, <a href="http://tammofreese.de/">Tammo Freese</a> und ich jeweils Sessions rund um die iPhone-Entwicklung gegeben haben. Hier findet ihr die <a href="http://dennisbloete.de/talks/iPhone-Asynchronitaet.pdf">Folien</a> und den <a href="http://github.com/dbloete/webtech09-async-samples">Demo Code</a> meines Vortrags zum Thema &#8220;<a href="http://dennisbloete.de/talks/iPhone-Asynchronitaet.pdf">Asynchronität mit dem iPhone SDK</a>&#8221; und ein paar <a href="http://www.flickr.com/photos/dbloete/tags/iphonedevday/">Fotos zu den Sessions</a>. Ich freu mich sehr über das positive Feedback, sowohl zu meiner als auch den anderen Sessions. Falls Interesse besteht, kann ich den Vortrag gerne mal bei einem der lokalen CocoaHeads Treffen wiederholen.</p>
<p>Die <a href="http://it-republik.de/konferenzen/webtech09/">WebTechCon</a> war sehr gut organisiert, die Unterbringung, Essen und Atmosphäre top. Unterm Strich eine sehr nette Konferenz die Spaß gemacht hat und auf der ich viele nette Leute getroffen hab &#8211; unter anderem habe ich endlich auch mal den Rest der <a href="http://railslove.com/">Railslove</a> Gang persönlich kennen gelernt. Fazit: Vielen Dank, gerne wieder!</p>
]]></content:encoded>
			<wfw:commentRss>http://dennisbloete.de/blog/asynchronitat-mit-dem-iphone-sdk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Authentication handling on the iPhone</title>
		<link>http://dennisbloete.de/blog/authentication-logic-on-the-iphone/</link>
		<comments>http://dennisbloete.de/blog/authentication-logic-on-the-iphone/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 10:56:33 +0000</pubDate>
		<dc:creator>Dennis</dc:creator>
				<category><![CDATA[Cocoa / Objective-C]]></category>
		<category><![CDATA[iPhone / iPad / iOS]]></category>
		<category><![CDATA[Authentication]]></category>
		<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Objective-C]]></category>

		<guid isPermaLink="false">http://dennisbloete.de/?p=577</guid>
		<description><![CDATA[This iPhone tutorial about encapsulating authentication logic in a separate controller was planned as a chapter for an upcoming iPhone Recipes Book, but unfortunately the book got cancelled. As I had written most of it and already finished the example code I thought it might be of interest for some of you and I would [...]]]></description>
			<content:encoded><![CDATA[<p>This iPhone tutorial about encapsulating authentication logic in a separate controller was planned as a chapter for an upcoming <a href="http://www.iphonerecipesbook.com/">iPhone Recipes Book</a>, but unfortunately the book got <a href="http://www.iphonerecipesbook.com/2009/09/10/sadly/">cancelled</a>. As I had written most of it and already finished the <a href="http://github.com/dbloete/AuthenticationController">example code</a> I thought it might be of interest for some of you and I would like to share it before it gets dusty.</p>
<h4>Problem</h4>
<p>Most applications that deal with users registered on a backend (like webapps) are likely to verify<br />
the user credentials. This recipe explains how to extract the authentication functionality that<br />
handles the workflow of prompting the user for credentials and verifying them at the backend.</p>
<h4>Solution</h4>
<p>A separate (Modal View) Controller that acts as the apps AuthenticationController and gets called by other controllers. This controller encapsulates the authentication logic so that it is cleanly separated from the rest of the app. The provided code is compatible for all iPhone OS from 2.0 on.</p>
<p>The code for this recipe is <a href="http://github.com/dbloete/AuthenticationController">available on GitHub</a> and it contains an example app that features <a href="http://apiwiki.twitter.com/Authentication">authentication with the Twitter API</a> (HTTP Basic Auth, keepin&#8217; it simple) along with <a href="http://github.com/dbloete/AuthenticationController/blob/master/README">explanatory notes in the README</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://dennisbloete.de/blog/authentication-logic-on-the-iphone/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to deploy to older OS versions with the iPhone SDK 3.0</title>
		<link>http://dennisbloete.de/blog/how-to-deploy-to-older-os-versions-with-the-iphone-sdk-3-0/</link>
		<comments>http://dennisbloete.de/blog/how-to-deploy-to-older-os-versions-with-the-iphone-sdk-3-0/#comments</comments>
		<pubDate>Thu, 27 Aug 2009 10:19:11 +0000</pubDate>
		<dc:creator>Dennis</dc:creator>
				<category><![CDATA[Cocoa / Objective-C]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Xcode]]></category>

		<guid isPermaLink="false">http://dennisbloete.de/?p=521</guid>
		<description><![CDATA[One thing I recently struggled with was how to build and deploy apps for outdated OS versions. After upgrading to the new iPhone SDK 3.0 the build options for iPhone OS minor to 3.0 seem to be gone. The solution to this is pretty simple, but I spent some time searching for it: Open your [...]]]></description>
			<content:encoded><![CDATA[<p>One thing I recently struggled with was how to build and deploy apps for outdated OS versions. After upgrading to the new iPhone SDK 3.0 the build options for iPhone OS minor to 3.0 seem to be gone.</p>
<p><img class="alignnone size-full wp-image-523" title="build_options1" src="http://dennisbloete.de/wp-content/uploads/build_options1.png" alt="build_options1" width="265" height="167" /></p>
<p>The solution to this is pretty simple, but I spent some time searching for it: Open your Project Info (double click the project icon) and adjust the build settings. You need to set the Base SDK to something prior to OS 3.0.</p>
<p><img class="alignnone size-full wp-image-525" title="project_info" src="http://dennisbloete.de/wp-content/uploads/project_info.png" alt="project_info" width="528" height="244" /></p>
<p>Having done that, the build options for older versions reappear. I hope this little trick saves some of your time <img src='http://dennisbloete.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><img class="alignnone size-medium wp-image-524" title="build_options2" src="http://dennisbloete.de/wp-content/uploads/build_options2-261x300.png" alt="build_options2" width="261" height="300" /></p>
]]></content:encoded>
			<wfw:commentRss>http://dennisbloete.de/blog/how-to-deploy-to-older-os-versions-with-the-iphone-sdk-3-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing iPhone SDK 3.0</title>
		<link>http://dennisbloete.de/blog/installing-iphone-sdk-30/</link>
		<comments>http://dennisbloete.de/blog/installing-iphone-sdk-30/#comments</comments>
		<pubDate>Fri, 08 May 2009 07:28:52 +0000</pubDate>
		<dc:creator>Dennis</dc:creator>
				<category><![CDATA[Cocoa / Objective-C]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Xcode]]></category>

		<guid isPermaLink="false">http://dennisbloete.de/?p=514</guid>
		<description><![CDATA[Tonight Apple sent out a mail to all developers enrolled in the iPhone Development Program prompting us to test all our applications with the soon to be released SDK 3.0. Though the apps must be compatible with the changes in 3.0, they currently are not allowed to be build with the new SDK.]]></description>
			<content:encoded><![CDATA[<p>Tonight Apple sent out a mail to all developers enrolled in the iPhone Development Program prompting us to test all our applications with the soon to be released SDK 3.0. Though the apps must be compatible with the changes in 3.0, they currently are not allowed to be build with the new SDK. This requires developers to keep both instances of Xcode during the transitional period. So be sure to install the new Xcode to a different location (the neccessary steps are described in the accompanied README).</p>
<p>Happy beta testing and quick app approvals to all of you! <img src='http://dennisbloete.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://dennisbloete.de/blog/installing-iphone-sdk-30/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gravatar loading with Objective-C</title>
		<link>http://dennisbloete.de/blog/gravatar-loading-with-objective-c/</link>
		<comments>http://dennisbloete.de/blog/gravatar-loading-with-objective-c/#comments</comments>
		<pubDate>Tue, 05 May 2009 16:00:50 +0000</pubDate>
		<dc:creator>Dennis</dc:creator>
				<category><![CDATA[Cocoa / Objective-C]]></category>
		<category><![CDATA[iPhone / iPad / iOS]]></category>
		<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[Gravatar]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Objective-C]]></category>

		<guid isPermaLink="false">http://dennisbloete.de/?p=501</guid>
		<description><![CDATA[Working on iOctocat I had to integrate Gravatars. Therefore I wrote an Objective-C GravatarLoader class that I would like to share. You can use it like this: - &#40;void&#41;viewDidLoad &#123; &#91;super viewDidLoad&#93;; gravatarLoader = &#91;&#91;GravatarLoader alloc&#93; initWithTarget:self andHandle:@selector&#40;setGravatarImage:&#41;&#93;; &#91;gravatarLoader loadEmail:@&#34;your@email.com&#34; withSize:50&#93;; &#125; The gravatarLoader needs to be an instance variable of the class that&#8217;s using [...]]]></description>
			<content:encoded><![CDATA[<p>Working on <a href="http://dennisbloete.de/blog/ioctocat-a-github-app-for-the-iphone/">iOctocat</a> I had to integrate <a href="http://gravatar.com/">Gravatars</a>. Therefore I wrote an <a href="http://dennisbloete.de/stuff/code/GravatarLoader.zip">Objective-C GravatarLoader class</a> that I would like to share. You can use it like this:</p>

<div class="wp_syntax"><div class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span>viewDidLoad <span style="color: #002200;">&#123;</span>
   <span style="color: #002200;">&#91;</span>super viewDidLoad<span style="color: #002200;">&#93;</span>;
   gravatarLoader <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span>GravatarLoader alloc<span style="color: #002200;">&#93;</span> initWithTarget<span style="color: #002200;">:</span>self andHandle<span style="color: #002200;">:</span><span style="color: #a61390;">@selector</span><span style="color: #002200;">&#40;</span>setGravatarImage<span style="color: #002200;">:</span><span style="color: #002200;">&#41;</span><span style="color: #002200;">&#93;</span>;
   <span style="color: #002200;">&#91;</span>gravatarLoader loadEmail<span style="color: #002200;">:</span><span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;your@email.com&quot;</span> withSize<span style="color: #002200;">:</span><span style="color: #2400d9;">50</span><span style="color: #002200;">&#93;</span>;
<span style="color: #002200;">&#125;</span></pre></div></div>

<p>The <code>gravatarLoader</code> needs to be an instance variable of the class that&#8217;s using it as it loads the Gravatar asynchronously. You initialize the GravatarLoader with a target object and a selector. The selector works as request handle and gets passed an UIImage when the Gravatar is loaded. After initializing it you can load the image with the email address and the square size.</p>
<p>Download the <a href="http://dennisbloete.de/stuff/code/GravatarLoader.zip">GravatarLoader source</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://dennisbloete.de/blog/gravatar-loading-with-objective-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
