<?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>Chriss´ Blog &#187; Ruby</title>
	<atom:link href="http://blog.chriss-baumann.de/category/ruby/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.chriss-baumann.de</link>
	<description>Über Gott und die Welt...</description>
	<lastBuildDate>Tue, 31 Aug 2010 20:45:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>10 Gründe, warum PHP immer noch besser ist als Ruby</title>
		<link>http://blog.chriss-baumann.de/2009/05/05/10-grunde-warum-php-immer-noch-besser-ist-als-ruby</link>
		<comments>http://blog.chriss-baumann.de/2009/05/05/10-grunde-warum-php-immer-noch-besser-ist-als-ruby#comments</comments>
		<pubDate>Tue, 05 May 2009 17:50:26 +0000</pubDate>
		<dc:creator>Chriss</dc:creator>
				<category><![CDATA[Fun]]></category>
		<category><![CDATA[Programmieren]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[besser]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.chriss-baumann.de/?p=1187</guid>
		<description><![CDATA[10 Gründe, warum PHP immer noch besser ist als Ruby kann man detailliert und ausführlicht begründet bei bitvetera nachlesen: 10 Reasons why PHP is Still Better than Ruby Via: http://www.rubyflow.com Ähnliche Beiträge Programmiersprachen &#8211; Eine Frage des Standpunkts? Ruby in a Nutshell Programmiersprachen (2) Vordefinierte Variablen in Ruby]]></description>
			<content:encoded><![CDATA[<p>10 Gründe, warum PHP immer noch besser ist als Ruby kann man detailliert und ausführlicht begründet bei <a href="http://www.bitcetera.com">bitvetera</a> nachlesen: <a href="http://www.bitcetera.com/en/techblog/2009/04/07/10-reasons-why-php-is-still-better-than-ruby--/">10 Reasons why PHP is Still Better than Ruby <img src='http://blog.chriss-baumann.de/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </a></p>
<p>Via: <a href="http://www.rubyflow.com/items/2024">http://www.rubyflow.com</a><br />
<h3>Ähnliche Beiträge</h3>
<ul class="related_post">
<li><a href="http://blog.chriss-baumann.de/2009/12/24/programmiersprachen-eine-frage-des-standpunkts" title="Programmiersprachen &#8211; Eine Frage des Standpunkts?">Programmiersprachen &#8211; Eine Frage des Standpunkts?</a></li>
<li><a href="http://blog.chriss-baumann.de/2009/11/22/ruby-in-a-nutshell" title="Ruby in a Nutshell">Ruby in a Nutshell</a></li>
<li><a href="http://blog.chriss-baumann.de/2009/05/01/programmiersprachen-2" title="Programmiersprachen (2)">Programmiersprachen (2)</a></li>
<li><a href="http://blog.chriss-baumann.de/2009/05/05/vordefinierte-variablen-in-ruby" title="Vordefinierte Variablen in Ruby">Vordefinierte Variablen in Ruby</a></li>
</ul>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=10+Gr%C3%BCnde%2C+warum+PHP+immer+noch+besser+ist+als+Ruby+http://tinyurl.com/3xot3at" title="Post to Twitter"><img class="nothumb" src="http://blog.chriss-baumann.de/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.chriss-baumann.de/2009/05/05/10-grunde-warum-php-immer-noch-besser-ist-als-ruby/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vordefinierte Variablen in Ruby</title>
		<link>http://blog.chriss-baumann.de/2009/05/05/vordefinierte-variablen-in-ruby</link>
		<comments>http://blog.chriss-baumann.de/2009/05/05/vordefinierte-variablen-in-ruby#comments</comments>
		<pubDate>Tue, 05 May 2009 17:33:17 +0000</pubDate>
		<dc:creator>Chriss</dc:creator>
				<category><![CDATA[Programmieren]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[$"]]></category>
		<category><![CDATA[$$]]></category>
		<category><![CDATA[$:]]></category>
		<category><![CDATA[$SAFE]]></category>
		<category><![CDATA[load path]]></category>
		<category><![CDATA[process number]]></category>
		<category><![CDATA[required libs]]></category>
		<category><![CDATA[Ruby Pocket Reference]]></category>
		<category><![CDATA[RUBY_PLATFORM]]></category>
		<category><![CDATA[RUBY_RELEASE_DATE]]></category>
		<category><![CDATA[RUBY_VERSION]]></category>
		<category><![CDATA[security level]]></category>
		<category><![CDATA[Variable]]></category>
		<category><![CDATA[vordefiniert]]></category>

		<guid isPermaLink="false">http://blog.chriss-baumann.de/?p=1185</guid>
		<description><![CDATA[puts $0 #current rb Prog puts $$ # prozess number puts $&#34; # required libs puts $SAFE # security Level puts $: # Load Path puts RUBY_PLATFORM puts RUBY_RELEASE_DATE puts RUBY_VERSION Mehr in der Ruby Pocket Reference Via: http://clemenswb.spaces.live.com Ähnliche Beiträge Programmiersprachen &#8211; Eine Frage des Standpunkts? Ruby in a Nutshell 10 Gründe, warum PHP [...]]]></description>
			<content:encoded><![CDATA[<pre class="brush: ruby;">puts $0 #current rb Prog
puts $$ # prozess number
puts $&quot; # required libs
puts $SAFE # security Level
puts $: # Load Path

puts RUBY_PLATFORM
puts RUBY_RELEASE_DATE
puts RUBY_VERSION </pre>
<p>Mehr in der <a href="http://www.amazon.de/Ruby-Pocket-Reference-OReilly/dp/0596514816/ref=sr_1_1?ie=UTF8&#038;s=books-intl-de&#038;qid=1241544681&#038;sr=8-1">Ruby Pocket Reference</a></p>
<p>Via: <a href="http://clemenswb.spaces.live.com/Blog/cns!CD82556601D501F9!236.entry">http://clemenswb.spaces.live.com</a><br />
<h3>Ähnliche Beiträge</h3>
<ul class="related_post">
<li><a href="http://blog.chriss-baumann.de/2009/12/24/programmiersprachen-eine-frage-des-standpunkts" title="Programmiersprachen &#8211; Eine Frage des Standpunkts?">Programmiersprachen &#8211; Eine Frage des Standpunkts?</a></li>
<li><a href="http://blog.chriss-baumann.de/2009/11/22/ruby-in-a-nutshell" title="Ruby in a Nutshell">Ruby in a Nutshell</a></li>
<li><a href="http://blog.chriss-baumann.de/2009/05/05/10-grunde-warum-php-immer-noch-besser-ist-als-ruby" title="10 Gründe, warum PHP immer noch besser ist als Ruby">10 Gründe, warum PHP immer noch besser ist als Ruby</a></li>
<li><a href="http://blog.chriss-baumann.de/2009/05/01/programmiersprachen-2" title="Programmiersprachen (2)">Programmiersprachen (2)</a></li>
</ul>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Vordefinierte+Variablen+in+Ruby+http://tinyurl.com/32ffgkr" title="Post to Twitter"><img class="nothumb" src="http://blog.chriss-baumann.de/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.chriss-baumann.de/2009/05/05/vordefinierte-variablen-in-ruby/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Programmiersprachen (2)</title>
		<link>http://blog.chriss-baumann.de/2009/05/01/programmiersprachen-2</link>
		<comments>http://blog.chriss-baumann.de/2009/05/01/programmiersprachen-2#comments</comments>
		<pubDate>Fri, 01 May 2009 18:44:57 +0000</pubDate>
		<dc:creator>Chriss</dc:creator>
				<category><![CDATA[Fun]]></category>
		<category><![CDATA[Programmieren]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Soup]]></category>
		<category><![CDATA[Assembly]]></category>
		<category><![CDATA[Bastelschere]]></category>
		<category><![CDATA[c++]]></category>
		<category><![CDATA[Cobra]]></category>
		<category><![CDATA[Delphi]]></category>
		<category><![CDATA[Elektromesser]]></category>
		<category><![CDATA[Gabel]]></category>
		<category><![CDATA[Haskell]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Kochlöffel]]></category>
		<category><![CDATA[Lisp]]></category>
		<category><![CDATA[Löffel]]></category>
		<category><![CDATA[MEsser]]></category>
		<category><![CDATA[Motorsäge]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Pascal]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Pilze]]></category>
		<category><![CDATA[Programmiersprachen]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Samuraischwert]]></category>
		<category><![CDATA[Schwert]]></category>
		<category><![CDATA[Taschenmesser]]></category>
		<category><![CDATA[USB]]></category>
		<category><![CDATA[Visual Basic]]></category>

		<guid isPermaLink="false">http://blog.chriss-baumann.de/?p=1162</guid>
		<description><![CDATA[Via: http://einefragevonstil.soup.io Teil 1: Programmiersprachen Ähnliche Beiträge Ruby in a Nutshell Programmiersprachen &#8211; Eine Frage des Standpunkts? Programmiersprachen 10 Gründe, warum PHP immer noch besser ist als Ruby]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.chriss-baumann.de/wp-content/uploads/2009/05/programmiersprachen.png" rel="lightbox"><img class="alignnone size-large wp-image-1163" title="programmiersprachen" src="http://blog.chriss-baumann.de/wp-content/uploads/2009/05/programmiersprachen-682x1024.png" alt="programmiersprachen" width="682" height="1024" /></a></p>
<p style="text-align: center;">
<p>Via: <a href="http://einefragevonstil.soup.io/post/18250639/Bild">http://einefragevonstil.soup.io</a><br />
Teil 1: <a href="http://blog.chriss-baumann.de/tag/programmiersprachen/">Programmiersprachen</a><br />
<h3>Ähnliche Beiträge</h3>
<ul class="related_post">
<li><a href="http://blog.chriss-baumann.de/2009/11/22/ruby-in-a-nutshell" title="Ruby in a Nutshell">Ruby in a Nutshell</a></li>
<li><a href="http://blog.chriss-baumann.de/2009/12/24/programmiersprachen-eine-frage-des-standpunkts" title="Programmiersprachen &#8211; Eine Frage des Standpunkts?">Programmiersprachen &#8211; Eine Frage des Standpunkts?</a></li>
<li><a href="http://blog.chriss-baumann.de/2009/02/22/programmiersprachen" title="Programmiersprachen">Programmiersprachen</a></li>
<li><a href="http://blog.chriss-baumann.de/2009/05/05/10-grunde-warum-php-immer-noch-besser-ist-als-ruby" title="10 Gründe, warum PHP immer noch besser ist als Ruby">10 Gründe, warum PHP immer noch besser ist als Ruby</a></li>
</ul>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Programmiersprachen+%282%29+http://tinyurl.com/3y6xvdc" title="Post to Twitter"><img class="nothumb" src="http://blog.chriss-baumann.de/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.chriss-baumann.de/2009/05/01/programmiersprachen-2/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ruby und Bruteforce</title>
		<link>http://blog.chriss-baumann.de/2009/03/04/ruby-und-bruteforce</link>
		<comments>http://blog.chriss-baumann.de/2009/03/04/ruby-und-bruteforce#comments</comments>
		<pubDate>Wed, 04 Mar 2009 13:21:42 +0000</pubDate>
		<dc:creator>Chriss</dc:creator>
				<category><![CDATA[Own Content]]></category>
		<category><![CDATA[Programmieren]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Bruteforce]]></category>
		<category><![CDATA[Hash]]></category>
		<category><![CDATA[MD5]]></category>

		<guid isPermaLink="false">http://blog.chriss-baumann.de/?p=984</guid>
		<description><![CDATA[Es ist zwar relativ sinnfrei, Bruteforce mit Ruby zu betreiben, da Ruby verdammt langsam ist, dennoch ein kleines Snippet hierzu, falls mal jemand damit ein wenig spielen mag: require 'digest/md5'&#60;/p&#62; &#60;p&#62;CHARS = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 _@#$&#38;amp;+-=%*&#34;~!?.,:;()&#60;&#62;'&#60;br /&#62; LENGTH = 8&#60;/p&#62; &#60;p&#62;File.open(&#34;bruteforce.txt&#34;, &#34;a&#34;) do &#124;f&#124;&#60;br /&#62; 1.upto((CHARS.size+1)**LENGTH-1) do &#124;i&#124;&#60;br /&#62; str, q = '', i&#60;br /&#62; until q.zero?&#60;br [...]]]></description>
			<content:encoded><![CDATA[<p>Es ist zwar relativ sinnfrei, Bruteforce mit Ruby zu betreiben, da Ruby verdammt langsam ist, dennoch ein kleines Snippet hierzu, falls mal jemand damit ein wenig spielen mag:</p>
<pre class="brush: ruby;">require 'digest/md5'&lt;/p&gt;
&lt;p&gt;CHARS  = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 _@#$&amp;amp;+-=%*&quot;~!?.,:;()&lt;&gt;'&lt;br /&gt;
LENGTH = 8&lt;/p&gt;
&lt;p&gt;File.open(&quot;bruteforce.txt&quot;, &quot;a&quot;) do |f|&lt;br /&gt;
  1.upto((CHARS.size+1)**LENGTH-1) do |i|&lt;br /&gt;
      str, q = '', i&lt;br /&gt;
      until q.zero?&lt;br /&gt;
        q, r = q.divmod(CHARS.size+1)&lt;br /&gt;
        str += CHARS[r-1,1]&lt;br /&gt;
      end&lt;br /&gt;
      md5 = Digest::MD5.hexdigest(str)&lt;br /&gt;
      f.puts str + &quot; : &quot; + md5&lt;br /&gt;
  end&lt;br /&gt;
end</pre>
</p>
<h3>Ähnliche Beiträge</h3>
<ul class="related_post">
<li><a href="http://blog.chriss-baumann.de/2009/12/24/programmiersprachen-eine-frage-des-standpunkts" title="Programmiersprachen &#8211; Eine Frage des Standpunkts?">Programmiersprachen &#8211; Eine Frage des Standpunkts?</a></li>
<li><a href="http://blog.chriss-baumann.de/2009/11/22/ruby-in-a-nutshell" title="Ruby in a Nutshell">Ruby in a Nutshell</a></li>
<li><a href="http://blog.chriss-baumann.de/2009/05/05/10-grunde-warum-php-immer-noch-besser-ist-als-ruby" title="10 Gründe, warum PHP immer noch besser ist als Ruby">10 Gründe, warum PHP immer noch besser ist als Ruby</a></li>
<li><a href="http://blog.chriss-baumann.de/2009/05/05/vordefinierte-variablen-in-ruby" title="Vordefinierte Variablen in Ruby">Vordefinierte Variablen in Ruby</a></li>
</ul>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Ruby+und+Bruteforce+http://tinyurl.com/36aq5a6" title="Post to Twitter"><img class="nothumb" src="http://blog.chriss-baumann.de/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.chriss-baumann.de/2009/03/04/ruby-und-bruteforce/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Programmiersprachen</title>
		<link>http://blog.chriss-baumann.de/2009/02/22/programmiersprachen</link>
		<comments>http://blog.chriss-baumann.de/2009/02/22/programmiersprachen#comments</comments>
		<pubDate>Sun, 22 Feb 2009 21:32:10 +0000</pubDate>
		<dc:creator>Chriss</dc:creator>
				<category><![CDATA[Fun]]></category>
		<category><![CDATA[Pics]]></category>
		<category><![CDATA[Programmieren]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[C sharp]]></category>
		<category><![CDATA[c++]]></category>
		<category><![CDATA[cpp]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Programmiersprachen]]></category>
		<category><![CDATA[programming languages]]></category>

		<guid isPermaLink="false">http://blog.chriss-baumann.de/?p=972</guid>
		<description><![CDATA[Via: http://arakis.soup.io Update: Programmiersprachen (2) Ähnliche Beiträge Programmiersprachen &#8211; Eine Frage des Standpunkts? Programmiersprachen (2) Ruby in a Nutshell Hierarchie der Programmierer]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.chriss-baumann.de/wp-content/uploads/2009/02/programmiersprachen_cpp_c_ruby_java_csharp.jpeg" rel="lightbox"><img class="aligncenter size-medium wp-image-973" title="programmiersprachen programming languages c++ cpp Java C# C sharp Ruby C" src="http://blog.chriss-baumann.de/wp-content/uploads/2009/02/programmiersprachen_cpp_c_ruby_java_csharp-244x300.jpg" alt="programmiersprachen programming languages c++ cpp Java C# C sharp Ruby C" width="244" height="300" /></a></p>
<p>Via: <a href="http://arakis.soup.io/post/13465558/Programming-Languages">http://arakis.soup.io</a></p>
<p><strong>Update:</strong> <a href="http://blog.chriss-baumann.de/2009/05/01/programmiersprachen-2/">Programmiersprachen (2)</a><br />
<h3>Ähnliche Beiträge</h3>
<ul class="related_post">
<li><a href="http://blog.chriss-baumann.de/2009/12/24/programmiersprachen-eine-frage-des-standpunkts" title="Programmiersprachen &#8211; Eine Frage des Standpunkts?">Programmiersprachen &#8211; Eine Frage des Standpunkts?</a></li>
<li><a href="http://blog.chriss-baumann.de/2009/05/01/programmiersprachen-2" title="Programmiersprachen (2)">Programmiersprachen (2)</a></li>
<li><a href="http://blog.chriss-baumann.de/2009/11/22/ruby-in-a-nutshell" title="Ruby in a Nutshell">Ruby in a Nutshell</a></li>
<li><a href="http://blog.chriss-baumann.de/2008/10/22/hierarchie-der-programmierer" title="Hierarchie der Programmierer">Hierarchie der Programmierer</a></li>
</ul>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Programmiersprachen+http://tinyurl.com/38jc56d" title="Post to Twitter"><img class="nothumb" src="http://blog.chriss-baumann.de/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.chriss-baumann.de/2009/02/22/programmiersprachen/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ruby: Dateien löschen unter Windows</title>
		<link>http://blog.chriss-baumann.de/2009/02/14/ruby-dateien-loschen-unter-windows</link>
		<comments>http://blog.chriss-baumann.de/2009/02/14/ruby-dateien-loschen-unter-windows#comments</comments>
		<pubDate>Sat, 14 Feb 2009 11:10:56 +0000</pubDate>
		<dc:creator>Chriss</dc:creator>
				<category><![CDATA[Programmieren]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Datei löschen]]></category>
		<category><![CDATA[unlink]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.chriss-baumann.de/?p=952</guid>
		<description><![CDATA[Manchmal bekommt man dem Versuch mittels Ruby unter Windows eine Datei durch File.delete zu löschen die Fehlermeldung &#8220;Permission denied&#8221;, dies kann man durch File.unlink umgehen: File.copy options[:file], @filename.path file_deleted = false while !file_deleted begin File.unlink options[:file] file_deleted = true rescue end end Das kann zwar unter Umständen eine Weile dauern, dafür ist die Datei anschließend [...]]]></description>
			<content:encoded><![CDATA[<p>Manchmal bekommt man dem Versuch mittels Ruby unter Windows eine Datei durch <a href="http://ruby-doc.org/core/classes/File.html#M002559">File.delete</a> zu löschen die Fehlermeldung &#8220;Permission denied&#8221;, dies kann man durch <a href="http://ruby-doc.org/core/classes/File.html#M002559">File.unlink</a> umgehen:</p>
<pre class="brush: ruby;">
File.copy options[:file], @filename.path
file_deleted = false

while !file_deleted
  begin
    File.unlink options[:file]
    file_deleted = true
  rescue
  end
end</pre>
<p>Das kann zwar unter Umständen eine Weile dauern, dafür ist die Datei anschließend aber auch gelöscht!</p>
<p>Via: <a href="http://alexgirard.com/2009/01/27/ruby-wundows-unlink.html">http://alexgirard.com</a><br />
<h3>Ähnliche Beiträge</h3>
<ul class="related_post">
<li><a href="http://blog.chriss-baumann.de/2010/08/31/rdp-services-component-architecture-poster-it-poster-10" title="RDP Services Component Architecture Poster &#8211; IT Poster (10)">RDP Services Component Architecture Poster &#8211; IT Poster (10)</a></li>
<li><a href="http://blog.chriss-baumann.de/2010/03/18/adam-und-der-apfel" title="Adam und der Apfel&#8230;">Adam und der Apfel&#8230;</a></li>
<li><a href="http://blog.chriss-baumann.de/2010/02/11/welche-net-version-steckt-in-welchem-windows" title="Welche .NET Version steckt in welchem Windows?">Welche .NET Version steckt in welchem Windows?</a></li>
<li><a href="http://blog.chriss-baumann.de/2009/12/24/programmiersprachen-eine-frage-des-standpunkts" title="Programmiersprachen &#8211; Eine Frage des Standpunkts?">Programmiersprachen &#8211; Eine Frage des Standpunkts?</a></li>
</ul>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Ruby%3A+Dateien+l%C3%B6schen+unter+Windows+http://tinyurl.com/35fgf57" title="Post to Twitter"><img class="nothumb" src="http://blog.chriss-baumann.de/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.chriss-baumann.de/2009/02/14/ruby-dateien-loschen-unter-windows/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ruby: String to Integer</title>
		<link>http://blog.chriss-baumann.de/2009/02/03/ruby-string-to-integer</link>
		<comments>http://blog.chriss-baumann.de/2009/02/03/ruby-string-to-integer#comments</comments>
		<pubDate>Tue, 03 Feb 2009 17:38:30 +0000</pubDate>
		<dc:creator>Chriss</dc:creator>
				<category><![CDATA[Links]]></category>
		<category><![CDATA[Programmieren]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[ArgumentError]]></category>
		<category><![CDATA[Integer]]></category>
		<category><![CDATA[Number]]></category>
		<category><![CDATA[String]]></category>
		<category><![CDATA[to_i]]></category>

		<guid isPermaLink="false">http://blog.chriss-baumann.de/?p=916</guid>
		<description><![CDATA[Normalerweise wird man in Ruby die to_i-Methode verwenden, um aus einem String einen Integer zu machen. Dummerweise liefert die Methode jedoch immer einen Integer zurück, selbst wenn der String keine Zahl enthält, z.B. &#34;foobar&#34;.to_i # =&#62; 0 Die einzig sinnvolle Möglichkeit, aus einem String einen Integer zu machen, ist Integer(str). Ist die Umwandlung in eine [...]]]></description>
			<content:encoded><![CDATA[<p>Normalerweise wird man in <a href="http://www.ruby-lang.org/de/">Ruby</a> die <a href="http://ruby-doc.org/core/classes/String.html#M000802">to_i</a>-Methode verwenden, um aus einem String einen Integer zu machen. Dummerweise liefert die Methode jedoch immer einen Integer zurück, selbst wenn der String keine Zahl enthält, z.B.
<pre class="brush: ruby;">&quot;foobar&quot;.to_i # =&gt; 0</pre>
<p>Die einzig sinnvolle Möglichkeit, aus einem String einen Integer zu machen, ist Integer(str). Ist die Umwandlung in eine Zahl nicht möglich, wird ein ArgumentError geworfen. Selbiges ist mittels Number(str) möglich für reelle Zahlen. Das Zahlenformat ist identisch mit dem des Rubyparsers.</p>
<p>Via: <a href="http://blog.antarestrader.com/?p=99">http://blog.antarestrader.com</a><br />
<h3>Ähnliche Beiträge</h3>
<ul class="related_post">
<li><a href="http://blog.chriss-baumann.de/2009/12/24/programmiersprachen-eine-frage-des-standpunkts" title="Programmiersprachen &#8211; Eine Frage des Standpunkts?">Programmiersprachen &#8211; Eine Frage des Standpunkts?</a></li>
<li><a href="http://blog.chriss-baumann.de/2009/11/22/ruby-in-a-nutshell" title="Ruby in a Nutshell">Ruby in a Nutshell</a></li>
<li><a href="http://blog.chriss-baumann.de/2009/05/05/10-grunde-warum-php-immer-noch-besser-ist-als-ruby" title="10 Gründe, warum PHP immer noch besser ist als Ruby">10 Gründe, warum PHP immer noch besser ist als Ruby</a></li>
<li><a href="http://blog.chriss-baumann.de/2009/05/05/vordefinierte-variablen-in-ruby" title="Vordefinierte Variablen in Ruby">Vordefinierte Variablen in Ruby</a></li>
</ul>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Ruby%3A+String+to+Integer+http://tinyurl.com/2u75j6t" title="Post to Twitter"><img class="nothumb" src="http://blog.chriss-baumann.de/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.chriss-baumann.de/2009/02/03/ruby-string-to-integer/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vcard Einträge separieren</title>
		<link>http://blog.chriss-baumann.de/2009/01/06/vcard-eintrage-separieren</link>
		<comments>http://blog.chriss-baumann.de/2009/01/06/vcard-eintrage-separieren#comments</comments>
		<pubDate>Tue, 06 Jan 2009 20:36:30 +0000</pubDate>
		<dc:creator>Chriss</dc:creator>
				<category><![CDATA[Programmieren]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[SonyEricsson]]></category>
		<category><![CDATA[vcard]]></category>

		<guid isPermaLink="false">http://blog.chriss-baumann.de/?p=811</guid>
		<description><![CDATA[Wenn man von SonyEricsson-Handy via Bluetooth alle Kontakte auf den PC überträgt, landet eine einzige Datei namens &#8220;Whole Phonebook.vcf&#8221; auf der Platte, in der alle Kontakte in diesem Format enthalten sind: BEGIN:VCARD VERSION:2.1 N:Operator;ADAC TEL;CELL:+4917922411 END:VCARD BEGIN:VCARD VERSION:2.1 N:Pannenhilfe;ADAC TEL;CELL:+49179222222 END:VCARD Diese Datei kann man mittels eines Ruby-Snippets in jeweils eine .vcf-Datei pro Eintrag zerlegen: [...]]]></description>
			<content:encoded><![CDATA[<p>Wenn man von SonyEricsson-Handy via Bluetooth alle Kontakte auf den PC überträgt, landet eine einzige Datei namens &#8220;Whole Phonebook.vcf&#8221; auf der Platte, in der alle Kontakte in diesem Format enthalten sind:</p>
<blockquote><p>BEGIN:VCARD<br />
VERSION:2.1<br />
N:Operator;ADAC<br />
TEL;CELL:+4917922411<br />
END:VCARD<br />
BEGIN:VCARD<br />
VERSION:2.1<br />
N:Pannenhilfe;ADAC<br />
TEL;CELL:+49179222222<br />
END:VCARD</p></blockquote>
<p>Diese Datei kann man mittels eines Ruby-Snippets in jeweils eine .vcf-Datei pro Eintrag zerlegen:</p>
<pre class="brush: ruby;"># sammelt alle Textblöcke von 'BEGIN:VCARD' bis 'END:VCARD' in einem Array
vcards = open('Phonebook.vcf') { |phonebook| phonebook.read.scan(/BEGIN:VCARD.*?END:VCARD/m) }
vcards.each do |vcard|
fname =
# sucht 'N:' am Zeilenanfang und gibt alle darauffolgenden Zeichen bis Zeilenende zurück.
vcard[/^N:(.*)/, 1].
# vertauscht durch ';' getrennte Namensteile, macht Dateinamen ansatzweise unixy, behält aber z.B. Umlaute bei.
split(';').reverse.join('_').tr(&quot; |;,!@#\$()&lt;&gt;/\\\&quot;'`~{}[]=+&amp;^\t&quot;, '_') + '.vcf'
open(fname, 'w') { |f| f.write vcard }
end&lt;code&gt;</pre>
<p>Alternativ kann man auch das gem vpim installieren und es folgendermaßen lösen:</p>
<pre class="brush: ruby;">require 'vpim'

cards = Vpim::Vcard.decode(open('phonebook.vcf'))

cards.each do |card|
  open(card.name.formatted.gsub(/\W/, '_') + '.vcf', 'w') do |f|
    f.write(card)
  end
end</pre>
<p>Gefunden habe ich die Snippets in den <a href="http://forum.ruby-portal.de/viewtopic.php?t=6217">Rubyforen</a><br />
<h3>Ähnliche Beiträge</h3>
<ul class="related_post">
<li><a href="http://blog.chriss-baumann.de/2009/12/24/programmiersprachen-eine-frage-des-standpunkts" title="Programmiersprachen &#8211; Eine Frage des Standpunkts?">Programmiersprachen &#8211; Eine Frage des Standpunkts?</a></li>
<li><a href="http://blog.chriss-baumann.de/2009/11/22/ruby-in-a-nutshell" title="Ruby in a Nutshell">Ruby in a Nutshell</a></li>
<li><a href="http://blog.chriss-baumann.de/2009/05/05/10-grunde-warum-php-immer-noch-besser-ist-als-ruby" title="10 Gründe, warum PHP immer noch besser ist als Ruby">10 Gründe, warum PHP immer noch besser ist als Ruby</a></li>
<li><a href="http://blog.chriss-baumann.de/2009/05/05/vordefinierte-variablen-in-ruby" title="Vordefinierte Variablen in Ruby">Vordefinierte Variablen in Ruby</a></li>
</ul>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Vcard+Eintr%C3%A4ge+separieren+http://tinyurl.com/2vuowgr" title="Post to Twitter"><img class="nothumb" src="http://blog.chriss-baumann.de/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.chriss-baumann.de/2009/01/06/vcard-eintrage-separieren/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Syntatic Sugar</title>
		<link>http://blog.chriss-baumann.de/2008/10/24/syntatic-sugar</link>
		<comments>http://blog.chriss-baumann.de/2008/10/24/syntatic-sugar#comments</comments>
		<pubDate>Fri, 24 Oct 2008 06:17:53 +0000</pubDate>
		<dc:creator>Chriss</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Texte]]></category>
		<category><![CDATA[Blöcke]]></category>
		<category><![CDATA[Zitat]]></category>

		<guid isPermaLink="false">http://blog.chriss-baumann.de/?p=204</guid>
		<description><![CDATA[Blöcke in Ruby sind syntaktischer Zucker, der bei Bedarf auch als Pfeffer oder Salz eingesetzt werden kann. Autor: WoNáDo Quelle: Rubyforum Ähnliche Beiträge * bash Quotes (2) ibash Quotes (1) Programmiersprachen &#8211; Eine Frage des Standpunkts? Ruby in a Nutshell]]></description>
			<content:encoded><![CDATA[<blockquote><p>Blöcke in Ruby sind syntaktischer Zucker, der bei Bedarf auch als Pfeffer oder Salz eingesetzt werden kann.</p></blockquote>
<p>Autor: WoNáDo<br />
Quelle: <a href="http://forum.ruby-portal.de/viewtopic.php?p=53978#53978">Rubyforum</a><br />
<h3>Ähnliche Beiträge</h3>
<ul class="related_post">
<li><a href="http://blog.chriss-baumann.de/2010/05/13/bash-quotes-2" title="* bash Quotes (2)">* bash Quotes (2)</a></li>
<li><a href="http://blog.chriss-baumann.de/2010/04/13/ibash-quotes-1" title="ibash Quotes (1)">ibash Quotes (1)</a></li>
<li><a href="http://blog.chriss-baumann.de/2009/12/24/programmiersprachen-eine-frage-des-standpunkts" title="Programmiersprachen &#8211; Eine Frage des Standpunkts?">Programmiersprachen &#8211; Eine Frage des Standpunkts?</a></li>
<li><a href="http://blog.chriss-baumann.de/2009/11/22/ruby-in-a-nutshell" title="Ruby in a Nutshell">Ruby in a Nutshell</a></li>
</ul>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Syntatic+Sugar+http://tinyurl.com/323gmlv" title="Post to Twitter"><img class="nothumb" src="http://blog.chriss-baumann.de/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.chriss-baumann.de/2008/10/24/syntatic-sugar/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
