<?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>heipei's weblog &#187; Rails</title>
	<atom:link href="http://heipei.net/category/rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://heipei.net</link>
	<description>Johannes 'heipei' Gilger</description>
	<lastBuildDate>Sun, 01 Apr 2012 16:47:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Rails 1.1 / lighttpd-1.4.11 / fastcgi fuckup</title>
		<link>http://heipei.net/2006/08/04/rails-11-lighttpd-1411-fastcgi-fuckup/</link>
		<comments>http://heipei.net/2006/08/04/rails-11-lighttpd-1411-fastcgi-fuckup/#comments</comments>
		<pubDate>Fri, 04 Aug 2006 18:12:23 +0000</pubDate>
		<dc:creator>Jojo</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Geekstuff]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://hackvalue.de/heipei/2006/08/04/rails-11-lighttpd-1411-fastcgi-fuckup/</guid>
		<description><![CDATA[some people, like me, tend to be a little slower. so if you run into the same problems after updating to rails 1.1 and your old 1.0 rails app dont work with lighttpd anymore (but instead quit with this error:) 2006-08-04 19:59:41: (mod_fastcgi.c.1022) execve failed for: public/dispatch.fcgi No such file or directory 2006-08-04 19:59:41: (mod_fastcgi.c.1048) [...]]]></description>
			<content:encoded><![CDATA[<p>some people, like me, tend to be a little slower. so if you run into the same problems after updating to rails 1.1 and your old 1.0 rails app dont work with lighttpd anymore (but instead quit with this error:)<br />
<code><br />
2006-08-04 19:59:41: (mod_fastcgi.c.1022) execve failed for: public/dispatch.fcgi No such file or directory<br />
2006-08-04 19:59:41: (mod_fastcgi.c.1048) the fastcgi-backend public/dispatch.fcgi failed to start:<br />
2006-08-04 19:59:41: (mod_fastcgi.c.1052) child exited with status 2 public/dispatch.fcgi<br />
2006-08-04 19:59:41: (mod_fastcgi.c.1055) if you try do run PHP as FastCGI backend make sure you use the FastCGI enabled version.<br />
[...]<br />
</code><br />
you have to do what is being told in <a href="http://trac.lighttpd.net/trac/ticket/487">this bugreport</a> and change the line in config/lighttpd.conf from<br />
<code><br />
"bin-path"  => "public/dispatch.fcgi",<br />
</code><br />
to:<br />
<code><br />
"bin-path"  => CWD + "/public/dispatch.fcgi",<br />
</code></p>
<p>also <a href="http://wiki.rubyonrails.org/rails/pages/ShebangChangeScripts">this tip about the she-bang line</a> in rails applications proved to be very useful.<br />
<b>Update:</b><br />
Ive looked a little further, and ive come to the conclusion that when developing/deploying rails apps on multiple systems (like Mac OS X and Gentoo Linux in my case) its best to use rails with the &#8211;ruby option when generating a new app. So whenever you build your new rails app do it like this (or even use an alias):<br />
<code><br />
rails --ruby="/usr/bin/env ruby" projectname<br />
</code><br />
this way your apps work on most systems (as long as env installed which seems to be pretty standard) without modifiying any files like the dispatch.fcgi</p>
]]></content:encoded>
			<wfw:commentRss>http://heipei.net/2006/08/04/rails-11-lighttpd-1411-fastcgi-fuckup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails: First Steps</title>
		<link>http://heipei.net/2006/02/26/rails-first-steps/</link>
		<comments>http://heipei.net/2006/02/26/rails-first-steps/#comments</comments>
		<pubDate>Sun, 26 Feb 2006 13:23:37 +0000</pubDate>
		<dc:creator>Jojo</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Geekstuff]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://heipei.net/2006/02/26/rails-first-steps/</guid>
		<description><![CDATA[I thought i&#8217;d report back here to tell you how much progress i made (with RoR). Well, to be honest, not that much. But as always I learned some other useful things in the progress. Anywho, as you can see in the photo i created a little rails application which takes a search string and [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/heipei/104615408/" title="Photo Sharing"><img src="http://static.flickr.com/35/104615408_077361cbfa_m.jpg" width="240" height="180" alt="my first little rails application" class="alignleft"/></a>I thought i&#8217;d report back here to tell you how much progress i made (with RoR). Well, to be honest, not that much. But as always I learned some other useful things in the progress. Anywho, as you can see in the photo i created a little rails application which takes a search string and returns the image results from flickr and yahoo image search. <a href="http://hackvalue.de">Flo</a> inspired me to do this, and i was planning on adding other search engines as well (Google Images, MSN Image Search). The good thing about flickr is that there is a ruby gem called &#8216;flickr&#8217; which does everything one could need, albeit reaaally slow (takes 3-5 sec. per image, somethings wrong there). The same guy also created a yahoo-search library, but for some reason didnt include the url for the thumbnails cached at yahoo, which is why i had to implement it (easy though). Having looked at the flickr, the yahoo and the google api for search request i can say that i cant stop padding the shoulder of the flickr-guys. Not only is their whole service really great but the api is as well.<br />
Now, i cant say that developing it has been much fun so far. Sure, rails is cool when you do what its supposed to do. Like create a form which sends something and using the magic that is ajax re-renders a part of your webpage. Cool thing, and compared to writing it yourself (like in the current german it magazine c&#8217;t) it saves you a lot of time. But then you reach a point where you ask &#8216;how can one form call multiple methods which update multiple regions in turn&#8217; or &#8216;i dont get this whole render :foo principle, why can there only be one render command?&#8217; and finally &#8216;why do the flickr results take so f***ing long to render?&#8217;<br />
[tags]ruby, rails, flickr, yahoo, search, engine, web, development[/tags]</p>
]]></content:encoded>
			<wfw:commentRss>http://heipei.net/2006/02/26/rails-first-steps/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Riding the Rails Day 1</title>
		<link>http://heipei.net/2006/02/19/riding-the-rails-day-1/</link>
		<comments>http://heipei.net/2006/02/19/riding-the-rails-day-1/#comments</comments>
		<pubDate>Sun, 19 Feb 2006 17:16:23 +0000</pubDate>
		<dc:creator>Jojo</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Geekstuff]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://heipei.net/2006/02/19/riding-the-rails-day-1/</guid>
		<description><![CDATA[So, i have made the incredibly wise decision to start learning Ruby on Rails while im home for a week. Wise because my Agile Web Development with Ruby on Rails book is in my bookshelf in Aachen &#8230; don&#8217;t ask. What can i say so far? Wow! There are a lot of hypes, and i [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.rubyonrails.org"><img src="/heipei/weblog/riding-the-rails.png" class="alignleft" alt="Riding the Rails" /></a>So, i have made the incredibly wise decision to start learning Ruby on Rails while im home for a week. Wise because my Agile Web Development with Ruby on Rails book is in my bookshelf in Aachen &#8230; don&#8217;t ask.<br />
What can i say so far? Wow! There are a lot of hypes, and i am always careful about those kinda people which want to propagate an image of the ultimate solution, the cure to every problem there is. Let me start by saying: No, Ruby and the Rails framework are not perfect nor do they fit every problem. But when it comes to database-driven web development they are certainly one of the easiest things to use. I dont know what the future will bring, and although O&#8217;Reilly&#8217;s Ruby book sales already overtook the Python books, there is no saying what cool new things the future might bring.<br />
Having said this, rails is something everyone should give a try. So far i only developed web applications (just small scripts, a guestbook, stuff like that) with Perl or PHP. In retrospect i still love Perl, but for the web applications it sucked imho. PHP was okay, but i dont think i have to eloborate on certain PHP shortcomings here. Rails has the great advantage on being built ontop of Ruby, a very clean, simple and easy object-oriented programming language. Now Ruby has been around some time, and is a full-blown complete language, you can use it outside any web environment without a problem.<br />
Rails is a framework (get used to that term and make sure you know what it means ;) which does a lot of those tedious tasks for you. It creates a directory structure, provides its own webserver for development, handles connection to your database, simplifies stuff like AJAX or authentication.<br />
Its my first day, and i probably just sratched the cool things, but im already very impressed. Stay tuned.<br />
[tags]ruby, rails, ajax, web, development[/tags]</p>
]]></content:encoded>
			<wfw:commentRss>http://heipei.net/2006/02/19/riding-the-rails-day-1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fun Stuff with Ruby on Rails/JScript</title>
		<link>http://heipei.net/2006/02/19/fun-stuff-with-ruby-on-railsjscript/</link>
		<comments>http://heipei.net/2006/02/19/fun-stuff-with-ruby-on-railsjscript/#comments</comments>
		<pubDate>Sat, 18 Feb 2006 23:28:46 +0000</pubDate>
		<dc:creator>Jojo</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Geekstuff]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://heipei.net/2006/02/19/fun-stuff-with-ruby-on-railsjscript/</guid>
		<description><![CDATA[Fun stuff you find out when trying to get into Ruby on Rails. Since the prototype and effects library come with Rails it is no surprise that one stumbles over then at some point (when doing some AJAX stuff for example). Now, i know that there are some cool things out there, but i have [...]]]></description>
			<content:encoded><![CDATA[<p>Fun stuff you find out when trying to get into <a href="http://www.rubyonrails.org">Ruby on Rails</a>. Since the prototype and effects library come with Rails it is no surprise that one stumbles over then at some point (when doing some AJAX stuff for example). Now, i know that there are some cool things out there, but i have never even used Javascript or been very tempted to do so. Well, until now ;). Check out the links below, they do something with the header of the weblog (so, this is only cool as long as this article is on top or when you have opened the article page).</p>
<p><a href="#" onclick="Element.toggle('header');">Toggle visibility</a> (Use this when one of the effects has hidden the header)<br />
The following only make sense when the header is visible ;)<br />
<a href="#" onclick="Effect.Shake('header');">Shake it baby!</a><br />
<a href="#" onclick="Effect.Fade('header');">Fade away!</a><br />
<a href="#" onclick="Effect.Fold('header');">Fold it!</a><br />
<a href="#" onclick="Effect.Shrink('header');">Shrink it!</a><br />
This make sense when the header is invisible<br />
<a href="#" onclick="Effect.BlindDown('header');">Blind Down!</a><br />
<a href="#" onclick="Effect.Appear('header');">Appear!</a></p>
<p>It seems that the Effects are courtesy of <a href="http://script.aculo.us">script.aculo.us</a>, a website dedicated to those effects in RoR/AJAX Environments, which i have visited many times before, but never used their stuff. I can only guess how much cool things lie ahead ;)</p>
]]></content:encoded>
			<wfw:commentRss>http://heipei.net/2006/02/19/fun-stuff-with-ruby-on-railsjscript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Focus!</title>
		<link>http://heipei.net/2005/12/15/focus/</link>
		<comments>http://heipei.net/2005/12/15/focus/#comments</comments>
		<pubDate>Thu, 15 Dec 2005 21:26:26 +0000</pubDate>
		<dc:creator>Jojo</dc:creator>
				<category><![CDATA[Aachen]]></category>
		<category><![CDATA[Geekstuff]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Uni]]></category>

		<guid isPermaLink="false">http://heipei.net/2005/12/15/focus/</guid>
		<description><![CDATA[Kennt ihr das auch? Man will was cooles neues ausprobieren, wofuer man dann auch noch was Zeit und Ruhe mitbringen muss weil es sonst zu chaotisch wird. In der gleichen Zeit gibts allerdings so Dinge die man unbedingt machen muss, und die Prioritaet haben. Mich nervts. Jap. Wuerde gerne was mit Ruby on Rails rumspielen, [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://static.flickr.com/32/56883622_18f242e114_m.jpg" alt="Ruby on Rails" class="alignleft"/>Kennt ihr das auch? Man will was cooles neues ausprobieren, wofuer man dann auch noch was Zeit und Ruhe mitbringen muss weil es sonst zu chaotisch wird. In der gleichen Zeit gibts allerdings so Dinge die man unbedingt machen muss, und die Prioritaet haben. Mich nervts. Jap. Wuerde gerne was mit <a href="http://www.rubyonrails.org">Ruby on Rails</a> rumspielen, bisher fand ich alles was ich darueber gehoert und davon gesehen hab mehr als ansprechend. Aber nein: Da liegen noch ein Haufen Blaetter LA die darauf warten angekreutzt und beschrieben zu werden. Und dann noch sowas wie Uebungen fuer Programmierung. Liebe Leute im LuFGi, Ruby ist auch eine Objektorientierte und Plattform-unabhaengige Sprache. Man muss sie nicht mal muehsam wie Java compilen. Stichwort zwei Fliegen mit einer Klappe totschlagen. Wie waers? Naja, bald ist Congress, und immer wenn mich der Nerv-Wurm wieder aergern will denk ich dadran. A man&#8217;s gotta dream too ;)</p>
]]></content:encoded>
			<wfw:commentRss>http://heipei.net/2005/12/15/focus/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

