<?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>Guido Handrick Developers Blog</title>
	<atom:link href="http://blog.guido-handrick.info/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.guido-handrick.info</link>
	<description>Frontend- and Backend-Development</description>
	<lastBuildDate>Sat, 14 Apr 2012 16:46:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>CSSOff final placement: 34th</title>
		<link>http://blog.guido-handrick.info/2012/04/cssoff-final-placement-34th/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=cssoff-final-placement-34th</link>
		<comments>http://blog.guido-handrick.info/2012/04/cssoff-final-placement-34th/#comments</comments>
		<pubDate>Sat, 14 Apr 2012 16:46:33 +0000</pubDate>
		<dc:creator>Guido</dc:creator>
				<category><![CDATA[CSS3]]></category>
		<category><![CDATA[CSSOff]]></category>

		<guid isPermaLink="false">http://blog.guido-handrick.info/?p=179</guid>
		<description><![CDATA[OK, this is my first post after months and it&#8217;s not the latest news, but still important for me. After waiting a long time i got my scores and feedback from UnmatchedStyle CSSOff 2012. To put it in a nutshell: &#8230; <a href="http://blog.guido-handrick.info/2012/04/cssoff-final-placement-34th/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[
<p>OK, this is my first post after months and it&#8217;s not the latest news, but still important for me. After waiting a long time i got my scores and feedback from UnmatchedStyle CSSOff 2012.</p>
<p><a href="http://blog.guido-handrick.info/wp-content/uploads/2012/04/CSSOff-screenshot.png" rel="lightbox[179]"><img class="aligncenter size-medium wp-image-181" title="CSSOff-screenshot" src="http://blog.guido-handrick.info/wp-content/uploads/2012/04/CSSOff-screenshot-300x273.png" alt="" width="300" height="273" /></a></p>
<p>To put it in a nutshell: Final Score: 68.67pts | Final Placement: 34th</p>
<blockquote><p>Loving all the custom hover animations in here. Topbar, logo, title, obstacles and prizes all have very fun transitions. Form could use some validation, select input display could be customized more, and I wish the timer did something besides loop. Overall, pretty solid entry.</p></blockquote>
<p>Yeah! What a surprise! You can watch my result here: <a href="http://dl.dropbox.com/u/4799476/CSSOFF-GH/index.html" target="_blank">http://dl.dropbox.com/u/4799476/CSSOFF-GH/index.html</a> and, if you want, the winners here: <a href="http://unmatchedstyle.com/news/cssoff-winners-2012.php" target="_blank">CSSOff Winners 2012</a></p>

]]></content:encoded>
			<wfw:commentRss>http://blog.guido-handrick.info/2012/04/cssoff-final-placement-34th/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Computerspielemuseum</title>
		<link>http://blog.guido-handrick.info/2012/01/computerspielemuseum/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=computerspielemuseum</link>
		<comments>http://blog.guido-handrick.info/2012/01/computerspielemuseum/#comments</comments>
		<pubDate>Fri, 27 Jan 2012 12:42:06 +0000</pubDate>
		<dc:creator>Guido</dc:creator>
				<category><![CDATA[Life & Work]]></category>
		<category><![CDATA[painstation]]></category>

		<guid isPermaLink="false">http://blog.guido-handrick.info/?p=174</guid>
		<description><![CDATA[Just found this on my desk and remembering so much fun at the &#8220;PainStation&#8221;! You can check it out here: computerspielemuseum.de]]></description>
			<content:encoded><![CDATA[
<p><a href="http://blog.guido-handrick.info/wp-content/uploads/2012/01/computerspielemuseum.jpg" rel="lightbox[174]"><img class="aligncenter size-medium wp-image-175" title="computerspielemuseum" src="http://blog.guido-handrick.info/wp-content/uploads/2012/01/computerspielemuseum-300x181.jpg" alt="" width="300" height="181" /></a>Just found this on my desk and remembering so much fun at the &#8220;PainStation&#8221;!</p>
<p>You can check it out here: <a href="http://www.computerspielemuseum.de/" target="_blank">computerspielemuseum.de</a></p>

]]></content:encoded>
			<wfw:commentRss>http://blog.guido-handrick.info/2012/01/computerspielemuseum/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress archive for single category</title>
		<link>http://blog.guido-handrick.info/2012/01/wordpress-archive-for-single-category/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=wordpress-archive-for-single-category</link>
		<comments>http://blog.guido-handrick.info/2012/01/wordpress-archive-for-single-category/#comments</comments>
		<pubDate>Fri, 27 Jan 2012 12:25:50 +0000</pubDate>
		<dc:creator>Guido</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Archive]]></category>
		<category><![CDATA[Category]]></category>
		<category><![CDATA[Theme]]></category>

		<guid isPermaLink="false">http://blog.guido-handrick.info/?p=166</guid>
		<description><![CDATA[During a new WordPress project I&#8217;d the problem to generate an archive just for the &#8220;News&#8221; category and only for posts until 1998. The wordpress function wp_get_archives dosn&#8217;t support such parameters and I also wanted to use the Archive Widget &#8230; <a href="http://blog.guido-handrick.info/2012/01/wordpress-archive-for-single-category/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[
<p>During a new WordPress project I&#8217;d the problem to generate an archive just for the &#8220;News&#8221; category and only for posts until 1998. The wordpress function wp_get_archives dosn&#8217;t support such parameters and I also wanted to use the Archive Widget in the sidebar.</p>
<p>At first I added some filters in functions.php:</p>
<pre>// join term_relationships and term_taxonomy
 add_filter( 'getarchives_join', 'customarchives_join' );
 // add where condition for category
 add_filter( 'getarchives_where', 'customarchives_where' );
 // add where condition for date
 add_filter('getarchives_where','filter_until_year_archives');</pre>
<pre>function customarchives_join($join_clause) {
 global $wpdb;
 return $join_clause." INNER JOIN $wpdb-&gt;term_relationships ON ($wpdb-&gt;posts.ID =  $wpdb-&gt;term_relationships.object_id) INNER JOIN $wpdb-&gt;term_taxonomy ON ($wpdb-&gt;term_relationships.term_taxonomy_id = $wpdb-&gt;term_taxonomy.term_taxonomy_id)";
 }</pre>
<pre>function customarchives_where($where_clause) {
 global $wpdb;
 $include = get_cat_ID('news');  // category id to include
 return $where_clause." AND $wpdb-&gt;term_taxonomy.taxonomy = 'category' AND $wpdb-&gt;term_taxonomy.term_id IN ($include)";
 }</pre>
<pre>function filter_until_year_archives($where_clause) {
 $year = '1998.01.01 00:00:00';
 return $where_clause." AND post_date &gt; '".$year."'";
 }</pre>
<p>Now you can use the Archive Widget and you&#8217;ll only get an archive for the &#8220;News&#8221; category with posts older than 1998-01-01.</p>
<p>Last of all it&#8217;s necessary to edit the archive template in your theme. Because you&#8217;ll still get posts from all categories on your archive page.</p>
<p>Add this code to archive.php after get_header and before the loop:</p>
<pre>query_posts( $query_string . '&amp;cat='.get_cat_ID('news') );</pre>
<p>It&#8217;s working on this site: <a href="http://politik-digital.de/category/news/" target="_blank">politik-digital.de/category/news/</a>. I applied the <a href="http://wordpress.org/extend/plugins/flexo-archives-widget/" target="_blank">Flexo Archive Widget</a> for the archive list in the sidebar .</p>

]]></content:encoded>
			<wfw:commentRss>http://blog.guido-handrick.info/2012/01/wordpress-archive-for-single-category/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New project online: Liquid Democracy e.V.</title>
		<link>http://blog.guido-handrick.info/2012/01/new-project-online-liquid-democracy-e-v/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=new-project-online-liquid-democracy-e-v</link>
		<comments>http://blog.guido-handrick.info/2012/01/new-project-online-liquid-democracy-e-v/#comments</comments>
		<pubDate>Fri, 27 Jan 2012 11:46:09 +0000</pubDate>
		<dc:creator>Guido</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.guido-handrick.info/?p=160</guid>
		<description><![CDATA[The relaunch is done! Five different areas of a great project under one umbrella. Watch out liqd.net]]></description>
			<content:encoded><![CDATA[
<p><a href="http://blog.guido-handrick.info/wp-content/uploads/2012/01/references_liqd_ev_1.jpg" rel="lightbox[160]"><img class="alignleft size-medium wp-image-162" title="references_liqd_ev_1" src="http://blog.guido-handrick.info/wp-content/uploads/2012/01/references_liqd_ev_1-179x300.jpg" alt="" width="179" height="300" /></a>The relaunch is done! Five different areas of a great project under one umbrella. Watch out <a href="http://liqd.net/" target="_blank">liqd.net</a></p>

]]></content:encoded>
			<wfw:commentRss>http://blog.guido-handrick.info/2012/01/new-project-online-liquid-democracy-e-v/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails matching PHP</title>
		<link>http://blog.guido-handrick.info/2012/01/rails-matching-php/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=rails-matching-php</link>
		<comments>http://blog.guido-handrick.info/2012/01/rails-matching-php/#comments</comments>
		<pubDate>Sat, 21 Jan 2012 20:22:20 +0000</pubDate>
		<dc:creator>Guido</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[project]]></category>

		<guid isPermaLink="false">http://blog.guido-handrick.info/?p=156</guid>
		<description><![CDATA[At first the problem: After the VegiKochbuch relaunch as Rails project I realized that all old links to recipes are broken and this causes a lot of 404 errors. The old PHP link structure was: http://vegikochbuch.de/rezepte/rezept175.php And now in Rails &#8230; <a href="http://blog.guido-handrick.info/2012/01/rails-matching-php/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[
<p>At first the problem: After the <a href="http://vegikochbuch.de" target="_blank">VegiKochbuch</a> relaunch as Rails project I realized that all old links to recipes are broken and this causes a lot of 404 errors.</p>
<p>The old PHP link structure was: http://vegikochbuch.de/rezepte/rezept175.php<br />
And now in Rails it&#8217;s: http://vegikochbuch.de/recipes/175</p>
<p>My solution was adding</p>
<pre>match '/rezepte/rezept:id.php' =&gt; 'recipes#show'</pre>
<p>to routes.rb</p>
<p>It works and is realy simple. I don&#8217;t really know if this is the best way, but I like it!</p>
<p>&nbsp;</p>
<p style="font-size: 33.75px; line-height: 54.875px;">

]]></content:encoded>
			<wfw:commentRss>http://blog.guido-handrick.info/2012/01/rails-matching-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VegiKochbuch</title>
		<link>http://blog.guido-handrick.info/2012/01/vegikochbuch/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=vegikochbuch</link>
		<comments>http://blog.guido-handrick.info/2012/01/vegikochbuch/#comments</comments>
		<pubDate>Tue, 03 Jan 2012 18:08:36 +0000</pubDate>
		<dc:creator>Guido</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[project]]></category>

		<guid isPermaLink="false">http://blog.guido-handrick.info/?p=152</guid>
		<description><![CDATA[My own first Rails project is online! After weeks of development, reading hundreds of panels, drinking a lot of Mate bottles, today the relaunch happened. Feel free to visit VegiKochbuch and be a part of it!]]></description>
			<content:encoded><![CDATA[
<p><a href="http://blog.guido-handrick.info/wp-content/uploads/2012/01/vegikochbuch.jpg" rel="lightbox[152]"><img class="alignleft size-medium wp-image-153" title="vegikochbuch" src="http://blog.guido-handrick.info/wp-content/uploads/2012/01/vegikochbuch-300x232.jpg" alt="" width="300" height="232" /></a>My own first Rails project is online! After weeks of development, reading hundreds of panels, drinking a lot of Mate bottles, today the relaunch happened. Feel free to visit<a title="VegiKochbuch" href="http://vegikochbuch.de" target="_blank"> VegiKochbuch</a> and be a part of it!</p>

]]></content:encoded>
			<wfw:commentRss>http://blog.guido-handrick.info/2012/01/vegikochbuch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS3 badges using UTF-8 character</title>
		<link>http://blog.guido-handrick.info/2011/11/css3-badges-using-utf-8-character/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=css3-badges-using-utf-8-character</link>
		<comments>http://blog.guido-handrick.info/2011/11/css3-badges-using-utf-8-character/#comments</comments>
		<pubDate>Wed, 30 Nov 2011 15:52:10 +0000</pubDate>
		<dc:creator>Guido</dc:creator>
				<category><![CDATA[CSS3]]></category>
		<category><![CDATA[buttons]]></category>
		<category><![CDATA[UTF-8]]></category>

		<guid isPermaLink="false">http://blog.guido-handrick.info/?p=143</guid>
		<description><![CDATA[The idea was to generate badges for different types of users on the fly. Just by defining a new color. The solution is using an UTF-8 character for the corner: ◤ U+25E4 You can see the example page here: CSS3-badges &#8230; <a href="http://blog.guido-handrick.info/2011/11/css3-badges-using-utf-8-character/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://blog.guido-handrick.info/wp-content/uploads/2011/11/css3_badges.jpg" rel="lightbox[143]"><img class="alignleft size-medium wp-image-145" title="css3_badges" src="http://blog.guido-handrick.info/wp-content/uploads/2011/11/css3_badges-300x132.jpg" alt="" width="300" height="132" /></a>The idea was to generate badges for different types of users on the fly. Just by defining a new color. The solution is using an UTF-8 character for the corner: ◤ U+25E4</p>
<p>You can see the example page here:<br />
<a href="http://blog.guido-handrick.info/wp-content/uploads/2011/11/badges.html" target="_blank">CSS3-badges</a></p>
<h2>1. Step: Use UTF-8</h2>
<pre id="line1">&lt;meta charset="utf-8"&gt;</pre>
<h2>2. Step: The badge style</h2>
<pre>.badge {
  font-family: Arial,san-serif;
  font-size: 10px;
  line-height: 1em;
  padding: 0px 15px 0px 3px;
  text-transform: uppercase;
  border: 1px solid #ccc;
  color: #666666;
  position: relative;
  background: #f1f1f1;
}</pre>
<pre>.badge:before {
  content: '\25E4';
  width: 12px;
  height: 12px;
  display: block;
  background: #fff;
  position: absolute;
  right: -1px;
  bottom: -1px;
  font-size: 15px;
  line-height: 10px;
  color: #bdbdbd;
}</pre>
<pre>.badge:hover {
  color: #2D3441;
  cursor: pointer;
}</pre>
<h2>3. Step: The badge markup</h2>
<pre>&lt;span class="badge" title="Default Badge"&gt;Default Badge&lt;/span&gt;</pre>

]]></content:encoded>
			<wfw:commentRss>http://blog.guido-handrick.info/2011/11/css3-badges-using-utf-8-character/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WordPress Multisite footer navigation</title>
		<link>http://blog.guido-handrick.info/2011/11/wordpress-multiside-footer-navigation/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=wordpress-multiside-footer-navigation</link>
		<comments>http://blog.guido-handrick.info/2011/11/wordpress-multiside-footer-navigation/#comments</comments>
		<pubDate>Mon, 21 Nov 2011 16:56:48 +0000</pubDate>
		<dc:creator>Guido</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[template]]></category>

		<guid isPermaLink="false">http://blog.guido-handrick.info/?p=133</guid>
		<description><![CDATA[On a new project I wanted to have an footer navigation across a range of WordPress Multisite blogs. This is my solution: &#60;?php $current_blog = get_current_blog_id(); ?&#62; &#60;?php switch_to_blog(1); ?&#62; &#60;ul&#62; &#60;?php wp_list_pages( 'show_home=1&#38;title_li=&#60;h3&#62;'.get_bloginfo('name').'&#60;/h3&#62;&#38;depth=1' ); ?&#62; &#60;/ul&#62; &#60;?php switch_to_blog(2); ?&#62; &#8230; <a href="http://blog.guido-handrick.info/2011/11/wordpress-multiside-footer-navigation/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[
<p>On a new project I wanted to have an footer navigation across a range of WordPress Multisite blogs. This is my solution:</p>
<pre>&lt;?php $current_blog = get_current_blog_id(); ?&gt;
&lt;?php switch_to_blog(1); ?&gt;
&lt;ul&gt;
&lt;?php wp_list_pages( 'show_home=1&amp;title_li=&lt;h3&gt;'.get_bloginfo('name').'&lt;/h3&gt;&amp;depth=1' ); ?&gt;
&lt;/ul&gt;

&lt;?php switch_to_blog(2); ?&gt;
&lt;ul&gt;
&lt;?php wp_list_pages( 'show_home=1&amp;title_li=&lt;h3&gt;'.get_bloginfo('name').'&lt;/h3&gt;&amp;depth=1' ); ?&gt;
&lt;/ul&gt;

...

&lt;?php switch_to_blog($current_blog); ?&gt;</pre>
<p>If you use switch_to_blog just once you don&#8217;t need the $current_blog and you can switch back easy using restore_current_blog().</p>
<p><a href="http://codex.wordpress.org/Function_Reference/switch_to_blog" target="_blank">WordPress Function Reference / switch to blog </a></p>
<p>The project URL is coming soon.</p>

]]></content:encoded>
			<wfw:commentRss>http://blog.guido-handrick.info/2011/11/wordpress-multiside-footer-navigation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Book Apart: Part 2</title>
		<link>http://blog.guido-handrick.info/2011/11/a-book-apart-part-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=a-book-apart-part-2</link>
		<comments>http://blog.guido-handrick.info/2011/11/a-book-apart-part-2/#comments</comments>
		<pubDate>Wed, 16 Nov 2011 15:10:28 +0000</pubDate>
		<dc:creator>Guido</dc:creator>
				<category><![CDATA[Life & Work]]></category>
		<category><![CDATA[books]]></category>

		<guid isPermaLink="false">http://blog.guido-handrick.info/?p=128</guid>
		<description><![CDATA[After waiting just for 7 weeks I obtained my first order 2 days ago. Let&#8217;s start reading and learning!]]></description>
			<content:encoded><![CDATA[
<p><a href="http://blog.guido-handrick.info/wp-content/uploads/2011/11/a_book_apart_1_2_3_4.jpg" rel="lightbox[128]"><img class="alignleft size-medium wp-image-129" title="a_book_apart_1_2_3_4" src="http://blog.guido-handrick.info/wp-content/uploads/2011/11/a_book_apart_1_2_3_4-300x292.jpg" alt="" width="300" height="292" /></a>After waiting just for 7 weeks I obtained my first order 2 days ago. Let&#8217;s start reading and learning!</p>

]]></content:encoded>
			<wfw:commentRss>http://blog.guido-handrick.info/2011/11/a-book-apart-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Rails project: Static pages</title>
		<link>http://blog.guido-handrick.info/2011/11/my-rails-project-static-pages/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=my-rails-project-static-pages</link>
		<comments>http://blog.guido-handrick.info/2011/11/my-rails-project-static-pages/#comments</comments>
		<pubDate>Fri, 11 Nov 2011 11:17:36 +0000</pubDate>
		<dc:creator>Guido</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://blog.guido-handrick.info/?p=122</guid>
		<description><![CDATA[How to create static pages, for example legal notice, on a Rails project. 1. Step: The Controller ./script/rails generate controller Static The controller code: class StaticController &#60; ApplicationController   def method_missing(name)     render :template =&#62; "static/#{name}"   end end 2. &#8230; <a href="http://blog.guido-handrick.info/2011/11/my-rails-project-static-pages/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[
<p>How to create static pages, for example legal notice, on a Rails project.</p>
<h2>1. Step: The Controller</h2>
<pre>./script/rails generate controller Static</pre>
<p>The controller code:</p>
<pre>class StaticController &lt; ApplicationController
  def method_missing(name)
    render :template =&gt; "static/#{name}"
  end
end</pre>
<h2>2. Step: Routes</h2>
<p>In your config/routes.rb add one line for every static page:</p>
<pre>match 'legal_notice' =&gt; 'static#legal_notice'</pre>
<h2>3. Step: The view</h2>
<p>Create a new directory <strong>app/views/static</strong> and add your page <strong>legal_notice.html.haml</strong></p>
<p>Now go to <strong>http://your-application.com/legal_notice</strong> &#8211; that&#8217;s all.</p>

]]></content:encoded>
			<wfw:commentRss>http://blog.guido-handrick.info/2011/11/my-rails-project-static-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

