<?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>flip's</title>
	<atom:link href="http://flip.netzbeben.de/feed/" rel="self" type="application/rss+xml" />
	<link>http://flip.netzbeben.de</link>
	<description>development, music, design and inspiration</description>
	<pubDate>Wed, 13 Aug 2008 06:02:13 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<item>
		<title>Move Wubi installation (Ubuntu on Windows) to a native Ubuntu system</title>
		<link>http://flip.netzbeben.de/2008/08/move-wubi-installation-ubuntu-on-windows-to-a-native-ubuntu-system/</link>
		<comments>http://flip.netzbeben.de/2008/08/move-wubi-installation-ubuntu-on-windows-to-a-native-ubuntu-system/#comments</comments>
		<pubDate>Sat, 02 Aug 2008 18:26:41 +0000</pubDate>
		<dc:creator>flipkick</dc:creator>
		
		<category><![CDATA[Linux]]></category>

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

		<guid isPermaLink="false">http://flip.netzbeben.de/?p=25</guid>
		<description><![CDATA[There&#8217;s a tool called LVPM which could do the move, but there are sometimes problems with it. So I recommend to use a faster and safer way to do it - with the wubi-move-to-partition script:

Boot into your Wubi installation.
Open a shell and do a:
wget "https://wiki.ubuntu.com/WubiGuide?action=AttachFile&#38;do=get&#38;target=wubi-move-to-partition"
Install and run gparted:
sudo apt-get install gparted
sudo gparted
Now create a swap [...]]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s a tool called <a href="http://lubi.sourceforge.net/lvpm.html" target="_blank">LVPM</a> which could do the move, but there are sometimes problems with it. So I recommend to use a faster and safer way to do it - with the <em>wubi-move-to-partition</em> script:</p>
<ol>
<li>Boot into your Wubi installation.</li>
<li>Open a shell and do a:<br />
<code>wget "https://wiki.ubuntu.com/WubiGuide?action=AttachFile&amp;do=get&amp;target=wubi-move-to-partition"</code></li>
<li>Install and run gparted:<br />
<code>sudo apt-get install gparted</code><br />
<code>sudo gparted</code></li>
<li>Now create a swap partition (1x or better 2x the size of your memory) and an ext3 partition for your new ubuntu partition.</li>
<li>Back in the shell, find out how the new partitions are called with:<br />
<code>sudo fdisk -l</code></li>
<li>Now start the move:<br />
<code>sudo sh wubi-move-to-partition /dev/sdx1 /dev/sdx2</code><br />
(where /dev/sdx1 is your new ubuntu partition and /dev/sdx2 is the new swap partition you&#8217;ve just created with gparted)</li>
<li>After the successful move, simply reboot your system. You should be able to boot into your new native ubuntu system.</li>
</ol>
<p>If there are no problems with your new system, you might want to boot into windows to uninstall your wubi installation (Start Menu/Control Panel/Add or Remove Programs). It&#8217;s not needed any longer.<br />
Keywords: transfer wubi, upgrade wubi, change wubi, native ubuntu, native linux, proper, clean, full, real, remove wubi</p>
]]></content:encoded>
			<wfw:commentRss>http://flip.netzbeben.de/2008/08/move-wubi-installation-ubuntu-on-windows-to-a-native-ubuntu-system/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Smilies in Rails using RedCloth</title>
		<link>http://flip.netzbeben.de/2008/07/smilies-in-rails-using-redcloth/</link>
		<comments>http://flip.netzbeben.de/2008/07/smilies-in-rails-using-redcloth/#comments</comments>
		<pubDate>Wed, 02 Jul 2008 21:16:03 +0000</pubDate>
		<dc:creator>flipkick</dc:creator>
		
		<category><![CDATA[English]]></category>

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

		<category><![CDATA[Rails 2.1]]></category>

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

		<category><![CDATA[Ruby On Rails]]></category>

		<guid isPermaLink="false">http://flip.netzbeben.de/?p=24</guid>
		<description><![CDATA[RedCloth doesn&#8217;t come with support for smilies, so i&#8217;ve added it for one of my projects.
You need to extend the RedCloth class. You could do this by creating a file in your /lib directory, which you have to include in your environment.rb. Here an example for three simple smilies:

class RedCloth
  def glyphs_smilies(text)
   [...]]]></description>
			<content:encoded><![CDATA[<p>RedCloth doesn&#8217;t come with support for smilies, so i&#8217;ve added it for one of my projects.<br />
You need to extend the RedCloth class. You could do this by creating a file in your /lib directory, which you have to include in your environment.rb. Here an example for three simple smilies:</p>
<pre>
class RedCloth
  def glyphs_smilies(text)
    text.gsub!(/\:\-\)|\:\)/, '&lt;img src="/images/emoticons/smile.png" alt="smile" />')
    text.gsub!(/\;\-\)|\;\)/, '&lt;img src="/images/emoticons/wink.png" alt="wink" />')
    text.gsub!(/\:\-\(|\:\(/, '&lt;img src="/images/emoticons/sad.png" alt="sad" />')
  end
end
</pre>
<p>To include this new function in your views, write an helper, e.g. format_text in ApplicationHelper:</p>
<pre>
module ApplicationHelper
  def format_text(text)
    RedCloth.new(text).to_html(:textile, :glyphs_smilies)
  end
end
</pre>
<p>Now you could use it anywhere in your views, like </p>
<pre>
  &#060;%= format_text ":)" %>
</pre>
<p>or</p>
<pre>
  &#060;%= format_text @your_record.your_text %>
</pre>
<p>Of course, you have to put some smilies in /images/emoticons <img src='http://flip.netzbeben.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Keywords: smiley, smileys, smilie, smilies, rails, textile, redcloth, ruby, emoticon, emoticons</p>
]]></content:encoded>
			<wfw:commentRss>http://flip.netzbeben.de/2008/07/smilies-in-rails-using-redcloth/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Rails: routes and special characters like dots</title>
		<link>http://flip.netzbeben.de/2008/07/rails-routes-and-special-characters-like-dots/</link>
		<comments>http://flip.netzbeben.de/2008/07/rails-routes-and-special-characters-like-dots/#comments</comments>
		<pubDate>Wed, 02 Jul 2008 21:00:26 +0000</pubDate>
		<dc:creator>flipkick</dc:creator>
		
		<category><![CDATA[English]]></category>

		<category><![CDATA[Rails 1.2]]></category>

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

		<category><![CDATA[Rails 2.1]]></category>

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

		<category><![CDATA[Ruby On Rails]]></category>

		<guid isPermaLink="false">http://flip.netzbeben.de/?p=23</guid>
		<description><![CDATA[Rails doesn&#8217;t seem to like dots and other special chars in its routes.
If you want to use URLs like http://www.domain.com/post/1/just_a_test.. logically the following route seems to be sensible:
map.connect '/post/:id/:title', :controller => 'forum', :action => 'show_post'
But rails won&#8217;t like the dots. Use a route like the following to allow a URL with special characters to be [...]]]></description>
			<content:encoded><![CDATA[<p>Rails doesn&#8217;t seem to like dots and other special chars in its routes.<br />
If you want to use URLs like http://www.domain.com/post/1/just_a_test.. logically the following route seems to be sensible:</p>
<pre>map.connect '/post/:id/:title', :controller => 'forum', :action => 'show_post'</pre>
<p>But rails won&#8217;t like the dots. Use a route like the following to allow a URL with special characters to be routed:</p>
<pre>map.connect '/post/:id/:title', :controller => 'forum', :action => 'show_post', :requirements => { :title => /.*/ }</pre>
<p>Keywords: dots, dot, no route matches, punkt, punkte, routes.rb, routing, route, rails, problem, won&#8217;t work</p>
]]></content:encoded>
			<wfw:commentRss>http://flip.netzbeben.de/2008/07/rails-routes-and-special-characters-like-dots/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Sehnsucht nach Ruhe</title>
		<link>http://flip.netzbeben.de/2008/06/ruhe/</link>
		<comments>http://flip.netzbeben.de/2008/06/ruhe/#comments</comments>
		<pubDate>Sat, 28 Jun 2008 23:29:11 +0000</pubDate>
		<dc:creator>flipkick</dc:creator>
		
		<category><![CDATA[German]]></category>

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

		<guid isPermaLink="false">http://flip.netzbeben.de/?p=22</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p><embed src="/files/ruhe.mp3" loop="false" autostart="false" width="170" height="25" /></p>
]]></content:encoded>
			<wfw:commentRss>http://flip.netzbeben.de/2008/06/ruhe/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Functional test for HTTP Basic Authentication in Rails 2</title>
		<link>http://flip.netzbeben.de/2008/06/functional-test-for-http-authentication-in-rails-2/</link>
		<comments>http://flip.netzbeben.de/2008/06/functional-test-for-http-authentication-in-rails-2/#comments</comments>
		<pubDate>Mon, 23 Jun 2008 00:31:54 +0000</pubDate>
		<dc:creator>flipkick</dc:creator>
		
		<category><![CDATA[English]]></category>

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

		<category><![CDATA[Rails 2.1]]></category>

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

		<category><![CDATA[Ruby 1.8]]></category>

		<category><![CDATA[Ruby On Rails]]></category>

		<guid isPermaLink="false">http://flip.netzbeben.de/?p=15</guid>
		<description><![CDATA[If you want to provide a username and password for a HTTP Basic Authentication in one of your functional tests, simply use the following:

def test_should_get_index
  @request.env["HTTP_AUTHORIZATION"] = "Basic " + Base64::encode64("username:password")
  get :index
  assert_response :success
  assert_not_nil assigns(:articles)
end

Keywords: rails test, functionals, authorization, basic http authentication, how to test
]]></description>
			<content:encoded><![CDATA[<p>If you want to provide a username and password for a HTTP Basic Authentication in one of your functional tests, simply use the following:</p>
<pre>
def test_should_get_index
  <u>@request.env["HTTP_AUTHORIZATION"] = "Basic " + Base64::encode64("username:password")</u>
  get :index
  assert_response :success
  assert_not_nil assigns(:articles)
end
</pre>
<p>Keywords: rails test, functionals, authorization, basic http authentication, how to test</p>
]]></content:encoded>
			<wfw:commentRss>http://flip.netzbeben.de/2008/06/functional-test-for-http-authentication-in-rails-2/feed/</wfw:commentRss>
		</item>
		<item>
		<title>404 in rails</title>
		<link>http://flip.netzbeben.de/2008/06/404-in-rails/</link>
		<comments>http://flip.netzbeben.de/2008/06/404-in-rails/#comments</comments>
		<pubDate>Sat, 21 Jun 2008 21:24:50 +0000</pubDate>
		<dc:creator>flipkick</dc:creator>
		
		<category><![CDATA[English]]></category>

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

		<category><![CDATA[Ruby On Rails]]></category>

		<guid isPermaLink="false">http://flip.netzbeben.de/?p=14</guid>
		<description><![CDATA[If you need to show a 404 error page from your controller without using an exception, this could help:
render :file => "#{RAILS_ROOT}/public/404.html",  :status => 404 and return
]]></description>
			<content:encoded><![CDATA[<p>If you need to show a 404 error page from your controller without using an exception, this could help:</p>
<pre>render :file => "#{RAILS_ROOT}/public/404.html",  :status => 404 and return</pre>
]]></content:encoded>
			<wfw:commentRss>http://flip.netzbeben.de/2008/06/404-in-rails/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Rails 2: authenticate_or_request_with_http_basic and Apache</title>
		<link>http://flip.netzbeben.de/2008/06/authenticate_or_request_with_http_basic-and-apache/</link>
		<comments>http://flip.netzbeben.de/2008/06/authenticate_or_request_with_http_basic-and-apache/#comments</comments>
		<pubDate>Thu, 12 Jun 2008 21:33:10 +0000</pubDate>
		<dc:creator>flipkick</dc:creator>
		
		<category><![CDATA[English]]></category>

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

		<category><![CDATA[Rails 2.1]]></category>

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

		<category><![CDATA[Ruby On Rails]]></category>

		<guid isPermaLink="false">http://flip.netzbeben.de/?p=13</guid>
		<description><![CDATA[I&#8217;ve tried to use the new authenticate_or_request_with_http_basic function of Rails 2 to include a simple authentication for some special pages in an application. But Apache kept refusing authorization, even if the authenticate_or_request_with_http_basic-block was set to be always true.
To fix this, add or change this in your public/.htaccess (if using FastCGI):
RewriteRule ^(.*)$ dispatch.fcgi [E=X-HTTP_AUTHORIZATION:%{HTTP:Authorization},QSA,L]
Keywords: rails2 rails [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve tried to use the new authenticate_or_request_with_http_basic function of Rails 2 to include a simple authentication for some special pages in an application. But Apache kept refusing authorization, even if the authenticate_or_request_with_http_basic-block was set to be always true.</p>
<p>To fix this, add or change this in your public/.htaccess (if using FastCGI):</p>
<pre>RewriteRule ^(.*)$ dispatch.fcgi [E=X-HTTP_AUTHORIZATION:%{HTTP:Authorization},QSA,L]</pre>
<p>Keywords: rails2 rails http authentication error bug refusing apache problem</p>
]]></content:encoded>
			<wfw:commentRss>http://flip.netzbeben.de/2008/06/authenticate_or_request_with_http_basic-and-apache/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Save my life</title>
		<link>http://flip.netzbeben.de/2008/03/save-my-life/</link>
		<comments>http://flip.netzbeben.de/2008/03/save-my-life/#comments</comments>
		<pubDate>Mon, 24 Mar 2008 19:59:38 +0000</pubDate>
		<dc:creator>flipkick</dc:creator>
		
		<category><![CDATA[Emo]]></category>

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

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

		<guid isPermaLink="false">http://flip.netzbeben.de/?p=16</guid>
		<description><![CDATA[Another piece of great emo

]]></description>
			<content:encoded><![CDATA[<p>Another piece of great emo</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://www.youtube.com/v/BKqZZg2U6t4&amp;hl=de" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/BKqZZg2U6t4&amp;hl=de"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://flip.netzbeben.de/2008/03/save-my-life/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Okkervil River</title>
		<link>http://flip.netzbeben.de/2008/01/okkervil-river/</link>
		<comments>http://flip.netzbeben.de/2008/01/okkervil-river/#comments</comments>
		<pubDate>Thu, 24 Jan 2008 19:33:58 +0000</pubDate>
		<dc:creator>flipkick</dc:creator>
		
		<category><![CDATA[Emo]]></category>

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

		<guid isPermaLink="false">http://flip.netzbeben.de/?p=18</guid>
		<description><![CDATA[That&#8217;s what I&#8217;d call EMO.

]]></description>
			<content:encoded><![CDATA[<p>That&#8217;s what I&#8217;d call EMO.</p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/tKuQrflPVlQ&#038;hl=de"></param><embed src="http://www.youtube.com/v/tKuQrflPVlQ&#038;hl=de" type="application/x-shockwave-flash" width="425" height="344"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://flip.netzbeben.de/2008/01/okkervil-river/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Localization problem with Wordpress 2.3</title>
		<link>http://flip.netzbeben.de/2008/01/localization-problem-with-wordpress-23/</link>
		<comments>http://flip.netzbeben.de/2008/01/localization-problem-with-wordpress-23/#comments</comments>
		<pubDate>Mon, 07 Jan 2008 00:58:12 +0000</pubDate>
		<dc:creator>flipkick</dc:creator>
		
		<category><![CDATA[English]]></category>

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

		<guid isPermaLink="false">http://flip.netzbeben.de/2008/01/07/localization-problem-with-wordpress-23/</guid>
		<description><![CDATA[I&#8217;ve transferred a wordpress system to another server which runs PHP 5. The language file didn&#8217;t work  anymore. After one annoying hour I&#8217;ve found out that the gettext functions are buggy.
Solution:

Get the current version of php-gettext at http://download.savannah.nongnu.org/releases/php-gettext/
Extract the gettext.php and streams.php to your wp-includes-directory

That&#8217;s all.
Keywords: wordpress, localization, php 5, language file, problem, 64 [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve transferred a wordpress system to another server which runs PHP 5. The language file didn&#8217;t work  anymore. After one annoying hour I&#8217;ve found out that the gettext functions are buggy.</p>
<p>Solution:</p>
<ul>
<li>Get the current version of php-gettext at <a href="http://download.savannah.nongnu.org/releases/php-gettext/" target="_blank">http://download.savannah.nongnu.org/releases/php-gettext/</a></li>
<li>Extract the gettext.php and streams.php to your wp-includes-directory</li>
</ul>
<p>That&#8217;s all.</p>
<p>Keywords: wordpress, localization, php 5, language file, problem, 64 bit, gettext, de_DE.mo</p>
]]></content:encoded>
			<wfw:commentRss>http://flip.netzbeben.de/2008/01/localization-problem-with-wordpress-23/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
