<?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>batteryslave &#187; uncategorized</title>
	<atom:link href="http://www.batteryslave.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.batteryslave.com</link>
	<description>minor thoughts about gadgets, code, podcasts and other technical stuff...</description>
	<lastBuildDate>Sat, 20 Feb 2010 18:41:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ant replace task: remind the encoding</title>
		<link>http://www.batteryslave.com/2010/02/ant-replace-task-remind-the-encoding/</link>
		<comments>http://www.batteryslave.com/2010/02/ant-replace-task-remind-the-encoding/#comments</comments>
		<pubDate>Sat, 20 Feb 2010 18:39:36 +0000</pubDate>
		<dc:creator>batteryslave</dc:creator>
				<category><![CDATA[uncategorized]]></category>

		<guid isPermaLink="false">http://www.batteryslave.com/?p=160</guid>
		<description><![CDATA[puh man again nearly going crazy over a simple problem. 
the environment: 

java project
edited in eclipse (an a mac)
check into subversion (on a linux box)
teamcity buildserver using ant build script (same linux box as subversion)

what happened: everywhere the encoding was correct beside one file. in that file my umlauts where messed. in my eclipse build [...]]]></description>
			<content:encoded><![CDATA[<p>puh man again nearly going crazy over a simple problem. </p>
<p>the environment: </p>
<ul>
<li>java project</li>
<li>edited in eclipse (an a mac)</li>
<li>check into subversion (on a linux box)</li>
<li>teamcity buildserver using ant build script (same linux box as subversion)</li>
</ul>
<p>what happened: everywhere the encoding was correct beside one file. in that file my umlauts where messed. in my eclipse build (warning: not using the ant there) everything was fine. but when is looked at the file in teamcitys build directory it was messed. at first i thought of subversion. checked everything  out by hand on the linux box => fine. then i tried to find out how teamcity uses svn. they have their own implementation. so i figured they do something wrong. so i updated teamcity from 4.5 to 5.0.2&#8230;same result. so i waited about a week.<br />
then with a fresh mind i looked at the ant script when it hit me: i had a replace task to set the buildnumber in the messed sourcecode file (perhaps an unusual attemped but&#8230;). and replace uses the default encoding of the executing jvm. i neede to set the encoding for the javac task but i forgot or better didnt consider it a problem for the replace.<br />
with the encoding set everything was fine. see how:</p>
<pre class="brush: xml; ">

&lt;replace file=&quot;MainWindow.java&quot; token=&quot;buildnumber&quot; value=&quot;${myBuildNumber}&quot;  encoding=&quot;ISO-8859-1&quot;/&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.batteryslave.com/2010/02/ant-replace-task-remind-the-encoding/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>getting ruby on rails to run on my debian 4 vps</title>
		<link>http://www.batteryslave.com/2009/10/getting-ruby-on-rails-to-run-on-my-debian-4-vps/</link>
		<comments>http://www.batteryslave.com/2009/10/getting-ruby-on-rails-to-run-on-my-debian-4-vps/#comments</comments>
		<pubDate>Tue, 13 Oct 2009 12:29:26 +0000</pubDate>
		<dc:creator>batteryslave</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[uncategorized]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.batteryslave.com/?p=151</guid>
		<description><![CDATA[man&#8230;always fighting to get a recent version of anything to run on the debian 4 (etch) vps i have. this time: ruby on rails. ruby v1.9.1, gems 1.3.5 and ror 2.3.4 is what i had i mind. 
first step: download ruby. execute the usual ./configure &#038;&#038; make &#038;&#038; make install triplet. worked fine. then download [...]]]></description>
			<content:encoded><![CDATA[<p>man&#8230;always fighting to get a recent version of anything to run on the debian 4 (etch) vps i have. this time: ruby on rails. ruby v1.9.1, gems 1.3.5 and ror 2.3.4 is what i had i mind. </p>
<p>first step: download ruby. execute the usual ./configure &#038;&#038; make &#038;&#038; make install triplet. worked fine. then download ruby gems. but when i tried to run anything with gem i got:</p>
<p><code><br />
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- zlib (LoadError)<br />
	from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'<br />
	from /usr/local/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:1<br />
	from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'<br />
	from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'<br />
	from /usr/local/lib/ruby/site_ruby/1.8/rubygems/commands/update_command.rb:5<br />
	from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'<br />
	from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'<br />
	from /usr/local/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:167:in `load_and_instantiate'<br />
	from /usr/local/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:88:in `[]'<br />
	from /usr/local/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:144:in `find_command'<br />
	from /usr/local/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:131:in `process_args'<br />
	from /usr/local/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:102:in `run'<br />
	from /usr/local/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:58:in `run'<br />
	from /usr/local/bin/gem:21<br />
</code></p>
<p>after googleing and trying some stuff i solved it this way:</p>
<ul>
<li>edit ruby-1.9.1-p0/ext/Setup</li>
<li>uncomment the line zlib</li>
<li>make &#038;&#038; make install again</li>
</ul>
<p>next step. successfully let gem install rails. but then <code>ruby script/server</code> stopped with:</p>
<p><code><br />
=> Booting WEBrick<br />
=> Rails 2.3.4 application starting on http://0.0.0.0:3000<br />
/usr/local/lib/ruby/gems/1.9.1/gems/rails-2.3.4/lib/initializer.rb:271:in `rescue in require_frameworks': no such file to load -- openssl (RuntimeError)<br />
	from /usr/local/lib/ruby/gems/1.9.1/gems/rails-2.3.4/lib/initializer.rb:268:in `require_frameworks'<br />
	from /usr/local/lib/ruby/gems/1.9.1/gems/rails-2.3.4/lib/initializer.rb:134:in `process'<br />
	from /usr/local/lib/ruby/gems/1.9.1/gems/rails-2.3.4/lib/initializer.rb:113:in `run'<br />
	from /var/www/rails/ukk/config/environment.rb:9:in `<top (required)>'<br />
	from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:156:in `require'<br />
	from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:156:in `block in require'<br />
	from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:521:in `new_constants_in'<br />
	from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:156:in `require'<br />
	from /usr/local/lib/ruby/gems/1.9.1/gems/rails-2.3.4/lib/commands/server.rb:84:in `<top (required)>'<br />
	from script/server:3:in `require'<br />
	from script/server:3:in `<main>'<br />
</code></p>
<p>after a another round i found <a href="http://linuxnuggetz.blogspot.com/2009/06/ruby-on-rail-on-ubuntu.html">this site</a> with help:</p>
<ul>
<li>apt-get install openssl libssl-dev</li>
<li>apt-get install ruby1.9-dev</li>
<li>cd ruby-1.9.1-p129/ext/openssl</li>
<li>ruby extconf.rb</li>
<li>make &#038;&#038; make install</li>
</ul>
<p>that worked. nice. so now i am waiting for the next fail</p>
]]></content:encoded>
			<wfw:commentRss>http://www.batteryslave.com/2009/10/getting-ruby-on-rails-to-run-on-my-debian-4-vps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>damn, new server: forgot to enable mod_rewrite</title>
		<link>http://www.batteryslave.com/2009/02/damn-new-server-forgot-to-enable-mod_rewrite/</link>
		<comments>http://www.batteryslave.com/2009/02/damn-new-server-forgot-to-enable-mod_rewrite/#comments</comments>
		<pubDate>Sat, 14 Feb 2009 16:24:51 +0000</pubDate>
		<dc:creator>batteryslave</dc:creator>
				<category><![CDATA[uncategorized]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.batteryslave.com/?p=81</guid>
		<description><![CDATA[dont know if someone besides thilo noticed, but since i reinstalled my server (2 weeks ago) all the links in this blog (running wordpress) where broken.
wordpress uses an apache module called mod_rewrite to rewrite the url. so what u see in the adressbar in your browser is not like
www.batterslave.com/?p=9
but
www.batteryslave.com/2009/02/lixhot-boysmeisenfrei-log/
a bit more readable. but i forgot [...]]]></description>
			<content:encoded><![CDATA[<p>dont know if someone besides thilo noticed, but since i reinstalled my server (2 weeks ago) all the links in this blog (running wordpress) where broken.</p>
<p>wordpress uses an apache module called <a href="http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html">mod_rewrite</a> to rewrite the url. so what u see in the adressbar in your browser is not like</p>
<pre><code>www.batterslave.com/?p=9</code></pre>
<p>but</p>
<pre><code>www.batteryslave.com/2009/02/lixhot-boysmeisenfrei-log/</code></pre>
<p>a bit more readable. but i forgot to enable the module. that is an easy step if you running a standard debian 4.0 linux on your server like i do. apache 2 comes with some little helper scripts for managing modules and sites. in my case the script a2enmod will do the job (# will symbolise my prompt):</p>
<pre><code># a2enmod rewrite</code></pre>
<p>after that you call</p>
<pre><code># /etc/init.d/apache2 reload</code></pre>
<p>so apache relaods the module and config. and we are ready to run.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.batteryslave.com/2009/02/damn-new-server-forgot-to-enable-mod_rewrite/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>oecher coder &#8211; .net user group aachen (germany)</title>
		<link>http://www.batteryslave.com/2009/01/oecher-coder-net-user-group-aachen-germany/</link>
		<comments>http://www.batteryslave.com/2009/01/oecher-coder-net-user-group-aachen-germany/#comments</comments>
		<pubDate>Sat, 03 Jan 2009 18:29:16 +0000</pubDate>
		<dc:creator>batteryslave</dc:creator>
				<category><![CDATA[uncategorized]]></category>

		<guid isPermaLink="false">http://www.batteryslave.com/?p=64</guid>
		<description><![CDATA[
 there is a .net user group forming in aachen. we met twice. next time we meet end of januar 2009 and there will be a presentation about wpf. 
]]></description>
			<content:encoded><![CDATA[</p>
<p> there is a .net user group forming in aachen. we met twice. next time we meet end of januar 2009 and there will be a presentation about wpf. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.batteryslave.com/2009/01/oecher-coder-net-user-group-aachen-germany/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>another one joining the shelfari posse</title>
		<link>http://www.batteryslave.com/2008/11/another-one-joining-the-shelfari-posse/</link>
		<comments>http://www.batteryslave.com/2008/11/another-one-joining-the-shelfari-posse/#comments</comments>
		<pubDate>Sun, 02 Nov 2008 14:18:24 +0000</pubDate>
		<dc:creator>batteryslave</dc:creator>
				<category><![CDATA[uncategorized]]></category>

		<guid isPermaLink="false">http://www.batteryslave.com/?p=54</guid>
		<description><![CDATA[i am adding myself into the line of book-shelf-sharers. after michel, björn and stefan here is my shelfari.
Shelfari: Book reviews on your book blog
Share a book review on Shelfari, where this reader meets fellow readers.

]]></description>
			<content:encoded><![CDATA[<p>i am adding myself into the line of book-shelf-sharers. after <a href="http://geekswithblogs.net/alternativedotnet/Default.aspx" target="_blank">michel</a>, <a href="http://www.bjoernrochel.de/" target="_blank">björn</a> and <a href="http://www.lieser-online.de/blog/" target="_blank">stefan</a> here is <a href="http://www.shelfari.com/o1518055028" target="_blank">my shelfari</a>.</p>
<div id="ShelfariWidget73880"><a href='http://www.shelfari.com/'>Shelfari: Book reviews on your book blog</a><script src="http://www.shelfari.com/ws/73880/widget.js" type="text/javascript" language="javascript"></script><noscript>
<p>Share a <a href="http://www.shelfari.com/books">book review</a> on Shelfari, where this <a href="http://www.shelfari.com/">reader</a> meets fellow readers.</p>
<p></noscript></div>
]]></content:encoded>
			<wfw:commentRss>http://www.batteryslave.com/2008/11/another-one-joining-the-shelfari-posse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Do not pollute your code</title>
		<link>http://www.batteryslave.com/2008/11/do-not-pollute-your-code/</link>
		<comments>http://www.batteryslave.com/2008/11/do-not-pollute-your-code/#comments</comments>
		<pubDate>Sun, 02 Nov 2008 13:31:08 +0000</pubDate>
		<dc:creator>batteryslave</dc:creator>
				<category><![CDATA[uncategorized]]></category>

		<guid isPermaLink="false">http://www.batteryslave.com/?p=53</guid>
		<description><![CDATA[Last week a had another episode where i realized how important it is to remove code and files u are not shure why they are there. ok i have to admit i am still living in an environment with about 500k lines of code and a coverage far away from 10%. so testing was not [...]]]></description>
			<content:encoded><![CDATA[<p>Last week a had another episode where i realized how important it is to remove code and files u are not shure why they are there. ok i have to admit i am still living in an environment with about 500k lines of code and a coverage far away from 10%. so testing was not our strength. so it is a bit harder to know if the code is used anywhere. </p>
<p>but still. to pollute your source-tree with stuff you dont need anymore but are afraid to loose is a bad habit. of course you should have source control to have the security to return to a point in the past where the code existed. but dont comment dozens of lines in production-code. it makes it hard to read and probably the next time you are going to implement the commented code your u are smarter and will do it better.</p>
<p>as i like to say: removing old code is as nice as producing new one.</p>
<p>happy removing&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.batteryslave.com/2008/11/do-not-pollute-your-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Favorite Tools I</title>
		<link>http://www.batteryslave.com/2008/11/favorite-tools-i/</link>
		<comments>http://www.batteryslave.com/2008/11/favorite-tools-i/#comments</comments>
		<pubDate>Sun, 02 Nov 2008 13:07:01 +0000</pubDate>
		<dc:creator>batteryslave</dc:creator>
				<category><![CDATA[uncategorized]]></category>

		<guid isPermaLink="false">http://www.batteryslave.com/?p=52</guid>
		<description><![CDATA[I know there are a lot of tools lists out there one of the the best i found for Windows based tools is the one of scott hanselman.&#160; but because this one is very big and has a lot of tools in it and also lacks the mac os site of stuff i decided to [...]]]></description>
			<content:encoded><![CDATA[<p>I know there are a lot of tools lists out there one of the the best i found for Windows based tools is the one of <a href="http://www.hanselman.com/tools" target="_blank">scott hanselman</a>.&#160; but because this one is very big and has a lot of tools in it and also lacks the mac os site of stuff i decided to compile my very little own tools list:</p>
<h4>file manager</h4>
<p>windows: <a href="http://www.ghisler.com" target="_blank">total commander</a> (26&#8364;)</p>
<p>most powerful two-pane-designed eplorer substitute i know. is around a long time now and still updated. with all the good stuff we loved in norton commander (which we called &quot;the friend&quot; back in the days). but here is what i like most:</p>
<ul>
<li>obviously the two pane design</li>
<li>the focus on keyboard over mouse</li>
<li>instant search as you type like firefox (there are various other options to search the current filelist)</li>
<li>multiple tab support</li>
<li>syncronous navigation of the open panes (when developing software it is that you often have multiple nearly equal directory tree, open them both in one pane and navigate through them in sync, very nice)</li>
<li>the copy/move-queue (you can add to a queue when copying/moving files)</li>
<li>renaming assistant</li>
</ul>
<p>mac os x: <a href="http://www.cocoatech.com/" target="_blank">pathfinder</a> (40&#8364;)</p>
<p>a nice replacement for the finder. no comparison to total commander but ok. i like:</p>
<ul>
<li>the drop stack where you can drop files and dirs</li>
<li>intergated terminal</li>
<li>integrated preview</li>
</ul>
<h4>editor (usually for viewing only)</h4>
<p>my normal editor for coding is the editor in my ide (visual studio or eclipse). but for viewing textfiles or searching/replacing in them i use:</p>
<p>windows: <a href="http://notepad-plus.sourceforge.net/de/site.htm" target="_blank">notepad++</a> (free, os)</p>
<ul>
<li>fast</li>
<li>multiple opened files (can remember which files where open in last session)</li>
<li>can change encoding format</li>
</ul>
<p>mac os x: <a href="http://code.google.com/p/macvim/" target="_blank">macvim</a> (free, os)</p>
<p>mac os clone of the glorious loved/hated vim-editor. </p>
<ul>
<li>vim can do everything&#8230;</li>
</ul>
<h4>image viewing</h4>
<p>windows: <a href="http://www.irfanview.net/" target="_blank">irfanview</a> (free)</p>
<ul>
<li>fast</li>
<li>can make screenshots</li>
<li>nice printing</li>
<li>view exif data</li>
<li>crop images</li>
</ul>
<p>mac os x: xee (free)</p>
<ul>
<li>fast</li>
<li>very easy interface</li>
</ul>
<h5>image editing</h5>
<p>windows: <a href="http://paint.net/" target="_blank">paint.net</a> (free, os)</p>
<ul>
<li>fast</li>
<li>supports layers</li>
</ul>
<p>mac os x: <a href="http://www.adobe.com/de/products/photoshopelmac/" target="_blank">photoshop elements</a> (70&#8364;)</p>
<ul>
<li>most features i used from photoshop i can use here</li>
<li>repair brush</li>
<li>scan ability</li>
<li>the legendary photoshup user interface</li>
</ul>
<p>to bee continued&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.batteryslave.com/2008/11/favorite-tools-i/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>angry monkeys</title>
		<link>http://www.batteryslave.com/2008/10/angry-monkeys/</link>
		<comments>http://www.batteryslave.com/2008/10/angry-monkeys/#comments</comments>
		<pubDate>Mon, 06 Oct 2008 19:50:43 +0000</pubDate>
		<dc:creator>batteryslave</dc:creator>
				<category><![CDATA[uncategorized]]></category>

		<guid isPermaLink="false">http://www.batteryslave.com/?p=46</guid>
		<description><![CDATA[today i got a copy of the book The Productive Programmer by Neal Ford seems like a great book. i will write about it when i read it more but while scrolling through it a small story got my attention: the angry monkeys. great stuff. here it is:
several years ago some scientist made an experiment. [...]]]></description>
			<content:encoded><![CDATA[<p>today i got a copy of the book <a href="http://www.amazon.de/Productive-Programmer-Theory-Practice-OReilly/dp/0596519788" target="_blank">The Productive Programmer</a> by Neal Ford seems like a great book. i will write about it when i read it more but while scrolling through it a small story got my attention: the angry monkeys. great stuff. here it is:</p>
<blockquote><p>several years ago some scientist made an experiment. they put 5 monkeys in a cage, hung some bananas on the ceiling and added a stepladder to the scenery. the monkeys got the bananas with the ladder. in the next step the scientists sprayed the monkeys with ice cold water as soon as they touched the stepladder. so they learned not to touch the ladder what means no bananas. next step: remove a monkey and add one who doesn&#8217;t now the scene. so the monkey tried to get the bananas with the ladder. as soon as he reaches over to the ladder the other monkeys beat him up (angry monkeys). the monkeys that know the water where replaced by unknown monkeys in the next steps until not one monkeys knew why they beat up the new clueless monkey.</p></blockquote>
<p>u see at the end none of the monkeys know why they beat up the clueless one. doesn&#8217;t this sound familiar? ever got the answer: &#8220;cause we do it that way forever?&#8221; the monkeys would say that&#8230;</p>
<p>so u should find a better cause for something. and when you dont know why. don&#8217;t do it!</p>
<p>so long basti</p>
]]></content:encoded>
			<wfw:commentRss>http://www.batteryslave.com/2008/10/angry-monkeys/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
