<?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>tov's Blog &#187; Development</title>
	<atom:link href="http://blog.nobody-is-like.me/category/development/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.nobody-is-like.me</link>
	<description>Just another (geeky) WordPress weblog</description>
	<lastBuildDate>Tue, 16 Mar 2010 13:43:04 +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>Brainfuck</title>
		<link>http://blog.nobody-is-like.me/2010/03/brainfuck/</link>
		<comments>http://blog.nobody-is-like.me/2010/03/brainfuck/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 10:31:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Programmierung]]></category>

		<guid isPermaLink="false">http://blog.nobody-is-like.me/?p=57</guid>
		<description><![CDATA[Hmmm&#8230; Kleine Fingerübung in Perl (pre-alpha ) Ah ja: Brainfuck: http://lmgtfy.com/?q=Brainfuck #!/usr/bin/env perl use Term::ReadKey; ReadMode &#039;raw&#039;; my $debug = 0; my $code; if ($ARGV[0]){ { local $/ = undef; local *FILE; open FILE, &#34;&#60;&#34;.$ARGV[0]; $code = &#60;FILE&#62;; close FILE } } $code &#124;&#124;= &#34;&#62;+++++++++[&#60;+++++++++++++&#62;-]&#60;-.-----.+++++++ .&#62;+++[&#62;++++++++++&#60;-] &#62;++.&#60;&#60;----.+++. --------- . -------.&#62;++++[&#60;+++++&#62;-]&#60;+.&#62;++++++++++.&#34;; $code =~ s/[^\.,+-\[\]&#60;&#62;]//msg; $&#124; = [...]]]></description>
			<content:encoded><![CDATA[<p>Hmmm&#8230; Kleine Fingerübung in Perl (pre-alpha <img src='http://blog.nobody-is-like.me/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> )</p>
<p>Ah ja: Brainfuck: <a href="http://lmgtfy.com/?q=Brainfuck">http://lmgtfy.com/?q=Brainfuck</a></p>
<p><pre><pre>#!/usr/bin/env perl
use Term::ReadKey;
ReadMode &#039;raw&#039;;
my $debug = 0;

my $code;
if ($ARGV[0]){
  { local $/ = undef; local *FILE; open FILE, &quot;&lt;&quot;.$ARGV[0]; $code = &lt;FILE&gt;; close FILE }
}

$code ||=
&quot;&gt;+++++++++[&lt;+++++++++++++&gt;-]&lt;-.-----.+++++++
.&gt;+++[&gt;++++++++++&lt;-]
&gt;++.&lt;&lt;----.+++.
--------- . -------.&gt;++++[&lt;+++++&gt;-]&lt;+.&gt;++++++++++.&quot;;

$code =~ s/[^\.,+-\[\]&lt;&gt;]//msg;
$| = 1;
my @val;
@val[ 0 .. 29999 ] = (0) x 30000;
my $vpt = 0;
my @ls;
my @le;
my $lpt = 0;
my $cc  = 0;
my @c   = split( &#039;&#039;, $code );
my $nc  = @c;
while ( $cc &lt; $nc ) {
    $_ = $c[ $cc++ ];
    print &quot;vpt:$vpt \$val[\$vpt]&quot;
      . $val[$vpt]
      . &quot; loop_counter:$loop_counter loop(counter)_start:&quot;
      . $ls[$loop_counter]
      . &quot; loop(counter)_end:&quot;
      . $le[$loop_counter]
      . &quot; cc:$cc command:$_\n&quot;
      if $debug;
    /&lt;/ and do { $vpt        and $vpt--; next };
    /&gt;/ and do { $vpt &lt; @val and $vpt++; next };
    /\+/ and do { $val[$vpt] = $val[$vpt] + 1; next; };
    /\-/ and do { $val[$vpt] = $val[$vpt] - 1; next; };
    /\./ and do { print chr( $val[$vpt] ); next; };
    /\,/ and do { $val[$vpt] = ord( ReadKey 0 ); next; };
    /\[/ and do {
        if   ( $val[$vpt] ) { $ls[ $lpt++ ] = $cc - 1 }
        else                { $cc = defined $le[$lpt] ? $le[$lpt] : (index($code,&#039;]&#039;,$cc)+1) }
        next;
    };
    /\]/ and do {
        $le[ --$lpt ] = $cc;
        $cc = $ls[$lpt];
        next;
    };
}
print &quot;\n&quot;;

</pre></pre></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nobody-is-like.me/2010/03/brainfuck/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Establish a 2nd database connection in Rails</title>
		<link>http://blog.nobody-is-like.me/2009/06/establish-a-2nd-database-connection-in-rails/</link>
		<comments>http://blog.nobody-is-like.me/2009/06/establish-a-2nd-database-connection-in-rails/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 15:54:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Programmierung]]></category>
		<category><![CDATA[Ruby and Rails]]></category>
		<category><![CDATA[informix]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://blog.nobody-is-like.me/2009/06/18/establish-a-2nd-database-connection-in-rails/</guid>
		<description><![CDATA[OK, you can find some howto&#8217;s everywhere on the web but only on this site I found the complete solution: class SecondConnection &#60; ActiveRecord::Base SecondConnection.establish_connection( :adapter =&#62; &#34;informix&#34;, :host =&#62; &#34;localhost&#34;, :username =&#62; &#34;hansnase&#34;, :password =&#62; &#34;very_secret&#34;, :database =&#62; &#34;ccdb@localhost&#34; ) self.abstract_class = true end &#8220;self.abstract_class = true&#8221; makes the thing actually work. Otherwise Rails [...]]]></description>
			<content:encoded><![CDATA[<p>OK, you can find some howto&#8217;s everywhere on the web but only on <a href="http://blog.freerails.de/?p=347">this</a> site I found the complete solution:</p>
<pre class="brush: ruby;">
class SecondConnection &lt; ActiveRecord::Base

SecondConnection.establish_connection(
:adapter  =&gt; &quot;informix&quot;,
:host     =&gt; &quot;localhost&quot;,
:username =&gt; &quot;hansnase&quot;,
:password =&gt; &quot;very_secret&quot;,
:database =&gt; &quot;ccdb@localhost&quot;
)

self.abstract_class = true
end
</pre>
<p>&#8220;self.abstract_class = true&#8221; makes the thing actually work. Otherwise Rails seems to cache the database connection and does not switch back if you access any other classes but SecondConnection.</p>
<p>Yeah!</p>
<p>Later: Not so Yeah&#8230;</p>
<p>I had to establish another call to</p>
<pre class="brush: ruby;">
  ActiveRecord::Base.establish_connection
       logger.info { &quot;Establishing Base Connection&quot; }
       log_connections
</pre>
<p>I assume it&#8217;s either an Informix problem or related to the old rails version I&#8217;m driving with.<br />
Nevertheless: It works now.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nobody-is-like.me/2009/06/establish-a-2nd-database-connection-in-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails and incoming mails on a Mac Leopard workstation</title>
		<link>http://blog.nobody-is-like.me/2009/06/rails-and-incoming-mails-on-a-mac-leopard-workstation/</link>
		<comments>http://blog.nobody-is-like.me/2009/06/rails-and-incoming-mails-on-a-mac-leopard-workstation/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 16:27:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Programmierung]]></category>
		<category><![CDATA[Ruby and Rails]]></category>

		<guid isPermaLink="false">http://blog.nobody-is-like.me/2009/06/17/rails-and-incoming-mails-on-a-mac-leopard-workstation/</guid>
		<description><![CDATA[Obviously I&#8217;m in a need of such an installation, otherwise I wouldn&#8217;t have googled about this (btw.: Do you know lmgtfy.com). Here are some snippets from: ChrizDee Craig Ambrose And? What did I do: I first enabled Postfix using 1). After this I have changed /etc/aliases: echo 'rails_mailer: &#34;&#124;/usr/local/bin/mail_handler.rb&#34;' &#62;&#62; /etc/aliases chmod 755 /usr/local/bin/mail_handler.rb&#34;' &#62;&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>Obviously I&#8217;m in a need of such an installation, otherwise I wouldn&#8217;t have googled about this (btw.: Do you know <a href="http://lmgtfy.com">lmgtfy.com</a>).</p>
<p>Here are some snippets from:</p>
<ol>
<li><a href="http://www.chrizdee.de/2008/10/20/postfix-mailserver-unter-os-x-leopard-einrichten/">ChrizDee</a></li>
<li><a href="http://blog.craigambrose.com/past/2008/2/9/respond_toemail_or_how_to_handle/">Craig Ambrose</a></li>
</ol>
<p>And? What did I do:</p>
<p>I first enabled Postfix using 1). After this I have changed /etc/aliases:</p>
<pre class="brush: ruby;">

echo 'rails_mailer: &quot;|/usr/local/bin/mail_handler.rb&quot;' &gt;&gt; /etc/aliases
chmod 755 /usr/local/bin/mail_handler.rb&quot;' &gt;&gt; /etc/aliases
sudo newaliases
sudo postfix reload
</pre>
<pre class="brush: ruby;">
#!/usr/bin/ruby
require 'net/http'
require 'uri'Net::HTTP.post_form URI.parse('http://localhost:3000/emails'), { &quot;email&quot; =&gt; STDIN.read }
</pre>
<p>The script above will be triggered by every mail that will be sent to rails_mailer@localhost (resp. your hostname). It will put a post-request to localhost:3000/email including the email in the parameter &#8220;email&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nobody-is-like.me/2009/06/rails-and-incoming-mails-on-a-mac-leopard-workstation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ein paar Ruby-Schnipsel</title>
		<link>http://blog.nobody-is-like.me/2009/06/ein-paar-ruby-schnipsel/</link>
		<comments>http://blog.nobody-is-like.me/2009/06/ein-paar-ruby-schnipsel/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 14:13:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Ruby and Rails]]></category>

		<guid isPermaLink="false">http://blog.nobody-is-like.me/2009/06/10/ein-paar-ruby-schnipsel/</guid>
		<description><![CDATA[Ein paar Lebensretter für mich: Installation von Postgresql unter Mac OS Wenn Rubyforge down ist:  gem install &#8211;source http://rf.gems.mocra.com NAME_OF_THE_GEM Robby on Rails (Mac/Leopard/Rails etc.)]]></description>
			<content:encoded><![CDATA[<p>Ein paar Lebensretter für mich:</p>
<ul>
<li><a href="http://www.rolleyes.de/blog/2008/07/17/ruby-rails-und-postgresql-fur-mac-os-x-105/">Installation von Postgresql unter Mac OS</a></li>
<li>Wenn Rubyforge down ist:  gem install &#8211;source http://rf.gems.mocra.com NAME_OF_THE_GEM</li>
<li>Robby on Rails <a href="http://www.robbyonrails.com/articles/2008/01/22/installing-ruby-on-rails-and-postgresql-on-os-x-third-edition">(Mac/Leopard/Rails etc.)</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.nobody-is-like.me/2009/06/ein-paar-ruby-schnipsel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sourcecode and WordPress</title>
		<link>http://blog.nobody-is-like.me/2009/03/sourcecode-and-wordpress/</link>
		<comments>http://blog.nobody-is-like.me/2009/03/sourcecode-and-wordpress/#comments</comments>
		<pubDate>Fri, 20 Mar 2009 18:27:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[being stupid]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.nobody-is-like.me/?p=22</guid>
		<description><![CDATA[At last&#8230; I found the plugin SyntaxHilighter forWordPress (wasn&#8217;t that hard. It&#8217;s part of the WordPress FAQ) to solve my formatting problems&#8230;]]></description>
			<content:encoded><![CDATA[<p>At last&#8230;</p>
<p>I found the plugin <a href="http://wordpress.org/extend/plugins/syntaxhighlighter/">SyntaxHilighter</a> forWordPress (wasn&#8217;t that hard. It&#8217;s part of the WordPress FAQ) to solve my formatting problems&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nobody-is-like.me/2009/03/sourcecode-and-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails Snippets &#8212; Arbitrary SQL</title>
		<link>http://blog.nobody-is-like.me/2009/02/rails-snippets-arbitrary-sql/</link>
		<comments>http://blog.nobody-is-like.me/2009/02/rails-snippets-arbitrary-sql/#comments</comments>
		<pubDate>Thu, 26 Feb 2009 11:30:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Ruby and Rails]]></category>

		<guid isPermaLink="false">http://blog.nobody-is-like.me/?p=20</guid>
		<description><![CDATA[Seems I&#8217;m in a Ruby/Rails mood today Sometimes you don&#8217;t need the whole Rails stuff and just want to place a query. Try the following: [code]]czo0OTpcIkFjdGl2ZVJlY29yZDo6QmFzZS5jb25uZWN0aW9uLihzZWxlY3RfYWxsfHVwZGF0ZSlcIjt7WyYqJl19[[/code] will do the trick. Example: [code]]czo3NDpcImxpc3QgPSBBY3RpdmVSZWNvcmQ6OkJhc2UuY29ubmVjdGlvbi5zZWxlY3RfYWxsKFwic2VsZWN0IGEsYiBmcm9tIGNfdGFie1smKiZdfWxlXCIpXCI7e1smKiZdfQ==[[/code] ==&#62; [ {a =&#62; Value_for_a, b =&#62; Value_for_b}, {a =&#62; Value...}...] [code]]czoxMTc6XCIgbnVtYmVyX29mX3Jvd3MgPSBBY3RpdmVSZWNvcmQ6OkJhc2UuY29ubmVjdGlvbi51cGRhdGUoXCJ1cGRhdGUgbW9udGgge1smKiZdfXNldCBtb250aF9pZCA9IG1vbnRoX2lkICsxIHdoZXJlIG1vbnRoX2lkID0gMTFcIilcIjt7WyYqJl19[[/code] If you make use of an already created Rails Model instead [...]]]></description>
			<content:encoded><![CDATA[<p>Seems I&#8217;m in a Ruby/Rails mood today</p>
<p>Sometimes you don&#8217;t need the whole Rails stuff and just want to place a query.</p>
<p>Try the following:<br />
[code]]czo0OTpcIkFjdGl2ZVJlY29yZDo6QmFzZS5jb25uZWN0aW9uLihzZWxlY3RfYWxsfHVwZGF0ZSlcIjt7WyYqJl19[[/code]<br />
will do the trick.<br />
Example:</p>
<p>[code]]czo3NDpcImxpc3QgPSBBY3RpdmVSZWNvcmQ6OkJhc2UuY29ubmVjdGlvbi5zZWxlY3RfYWxsKFwic2VsZWN0IGEsYiBmcm9tIGNfdGFie1smKiZdfWxlXCIpXCI7e1smKiZdfQ==[[/code]</p>
<p>==&gt; [ {a =&gt; Value_for_a, b =&gt; Value_for_b}, {a =&gt; Value...}...]</p>
<p>[code]]czoxMTc6XCIgbnVtYmVyX29mX3Jvd3MgPSBBY3RpdmVSZWNvcmQ6OkJhc2UuY29ubmVjdGlvbi51cGRhdGUoXCJ1cGRhdGUgbW9udGgge1smKiZdfXNldCBtb250aF9pZCA9IG1vbnRoX2lkICsxIHdoZXJlIG1vbnRoX2lkID0gMTFcIilcIjt7WyYqJl19[[/code]</p>
<p>If you make use of an already created Rails Model instead of the base class, you will get the benefit of accessors (instead of hash-keys) for the  selected objects.</p>
<p>Example (necessary, I know <img src='http://blog.nobody-is-like.me/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  )</p>
<ul>
<li>create the model</li>
</ul>
<p>[code]]czozMDpcIiMgc2NyaXB0L2dlbmVyYXRlIG1vZGVsIENUYWJsZVwiO3tbJiomXX0=[[/code]</p>
<ul>
<li>use it in your code</li>
</ul>
<p>[code]]czo1MzpcIiBsaXN0ID0gQ1RhYmxlLmZpbmRfYnlfc3FsKFwic2VsZWN0IGEsYiBmcm9tIGNfdGFibGVcIilcIjt7WyYqJl19[[/code]</p>
<ul>
<li>access elements</li>
</ul>
<p>[code]]czoxMjpcInBwIGxpc3RbMF0uYVwiO3tbJiomXX0=[[/code]</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nobody-is-like.me/2009/02/rails-snippets-arbitrary-sql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails Snippets</title>
		<link>http://blog.nobody-is-like.me/2009/02/rails-snippets-2/</link>
		<comments>http://blog.nobody-is-like.me/2009/02/rails-snippets-2/#comments</comments>
		<pubDate>Thu, 26 Feb 2009 09:43:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Ruby and Rails]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://blog.nobody-is-like.me/?p=19</guid>
		<description><![CDATA[OK, this is more Ruby than Rails but nevertheless helpful&#8230; If you come from a Perl background you will be surprised that in Ruby an array is definitively not a list. So if you want to pass a list of elements to a method that you have stored in an array, you may want to [...]]]></description>
			<content:encoded><![CDATA[<p>OK, this is more Ruby than Rails but nevertheless helpful&#8230;</p>
<p>If you come from a Perl background you will be surprised that in Ruby an array is definitively not a list. So if you want to pass a list of elements to a method that you have stored in an array, you may want to use the following idiom:<br />
[code]]czoxMTU6XCJsaXN0ID0gW10NCmxpbmVzID0gRmlsZS5yZWFkbGluZXMoXCJGSUxFTkFNRVwiKQ0KbGluZXMuZWFjaCBkbyB8bGluZXwNCntbJiomXX1saXN0LnB1c2goUmVzdWx0Lm5ldygqbGluZS5zcGxpdChcIiBcIikpKQ0KZW5kDQpcIjt7WyYqJl19[[/code]<br />
The [code]]czoxNjpcIipsaW5lLnNwbGl0KFwiIFwiKVwiO3tbJiomXX0=[[/code] creates an element list out of the array that the split command has created.</p>
<p>I fear a real Rubyist would have done it in a different way but OK.</p>
<p>P.S. Does someone know what I'm doing wrong with the code formatting in WordPress? I'm quite sure to have included whitespaces in the code above...</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nobody-is-like.me/2009/02/rails-snippets-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jboss Seam</title>
		<link>http://blog.nobody-is-like.me/2009/02/jboss-seam/</link>
		<comments>http://blog.nobody-is-like.me/2009/02/jboss-seam/#comments</comments>
		<pubDate>Thu, 26 Feb 2009 00:06:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Mac OS X]]></category>

		<guid isPermaLink="false">http://blog.nobody-is-like.me/?p=16</guid>
		<description><![CDATA[Hobbyprojekt Ich wollte mal ausprobieren, was es mit SEAM so auf sich hat. Vor dem Erfolg (Hello World) gibt&#8217;s allerdings erst &#8216;mal ne Menge Installationsarbeit zu erledigen. Da ich masochistisch veranlagt bin (?) habe ich das ganze Geraffel unter Mac OS-X Leopard installiert und mich dabei von dieser Anleitung hier inspirieren lassen. Auf geht&#8217;s: Download [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Hobbyprojekt <img src='http://blog.nobody-is-like.me/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </strong><img src="file:///Users/tov/Pictures/VorschauSchnappschuss001.jpg" /></p>
<p>Ich wollte mal ausprobieren, was es mit SEAM so auf sich hat.</p>
<p>Vor dem Erfolg (Hello World) gibt&#8217;s allerdings erst &#8216;mal ne Menge Installationsarbeit zu erledigen. Da ich masochistisch veranlagt bin (?) habe ich das ganze Geraffel unter Mac OS-X Leopard installiert und mich dabei von dieser Anleitung <a href="http://javathreads.de/2008/09/tutorial-mit-jboss-seam-und-jee5-unter-eclipse-starten/" title="Jboss Installation">hier</a> inspirieren lassen.</p>
<p>Auf geht&#8217;s:</p>
<ol>
<li>Download bzw. Installation von <a href="http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/ganymede/SR1/eclipse-jee-ganymede-SR1-macosx-carbon.tar.gz" title="Ganymede">Eclipse Ganymede</a> (ich hab&#8217; die neueste Version genommen)</li>
<li>JBoss Application Server (AS) laden: <a href="http://www.jboss.org/jbossas/downloads/">Hier</a> (auch hier die neueste&#8230; Ich erwähn&#8217;s nicht mehr <img src='http://blog.nobody-is-like.me/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  )<br />
<strong>Achtung: Es geht nur mit Version 4.2.X für JDK 1.5<br />
</strong>Leopard ist da etwas zurück (nix mit 1.6)</li>
<li><a href="http://www.seamframework.org/Download" title="SEAM">SEAM</a></li>
<li>Mysql installieren über <a href="http://dev.mysql.com/downloads/mysql/5.0.html#macosx-dmg">diesen Link</a></li>
<li>Der Mysql-Connector: <a href="http://dev.mysql.com/downloads/connector/j/5.1.html" title="Mysql-Connector">Hier</a></li>
<li>Ordner anlegen z.B. unter /Users/tov/Documents/Development/Seam</li>
<li>Ganymede in diesen Ordner packen (Terminal; tar xzvf DATEINAME.tgz) &#8211;&gt; Ordner &#8220;eclipse&#8221;</li>
<li>Dann mkdir jboss</li>
<li>cd jboss</li>
<li>mv ~/Downloads/jboss* .</li>
<li>tar xzvf jboss&#8230; und tar xzvf jboss-seam&#8230; (Dateinamen bitte anpassen)</li>
<li>cd ..</li>
<li>eclipse/eclipse -data workspace -vmargs -Xmx512M -Xms254M -XX:MaxPermSize=254M</li>
<li>warten&#8230; (zumindestens auf meinem 2GHz/2GByte MacBook)</li>
<li>Eclipse Updates installierenHelp-&gt;Software Updates&#8230;-&gt;Available Software Tab-&gt;Add Sitehttp://download.jboss.org/jbosstools/updates/development eintragen</li>
</ol>
<p>Ich habe dann mal die MySQL etc. Anweisungen aus obigem Post befolgt und bin an der Stelle &#8220;Neuanlegen eines Projektes&#8221; gescheitert (classpath, error, mail.jar etc.)</p>
<p>Die (wahrscheinlich nicht korrekte) Lösung für das Problem war dann ein beherztes:<br />
[code]]czoxMDM6XCINCmNkIC9Vc2Vycy90b3YvRG9jdW1lbnRzL0RldmVsb3BtZW50L1NlYW0vamJvc3MvamJvc3MtNS4wLjEuR0ENCmNwIC17WyYqJl19UiBjb21tb24vbGliLyogc2VydmVyL2RlZmF1bHQvbGliL1wiO3tbJiomXX0=[[/code]</p>
<p>Danach ließ sich das Projekt anlegen!</p>
<p><strong>Nochmal Achtung</strong> Ich glaube, dass das bei dem 4.2x er JBoss nicht nötig ist!</p>
<p><a href="http://blog.nobody-is-like.me/wp-content/uploads/2009/02/vorschauschnappschuss001.jpg" title="Projekt"><img src="http://blog.nobody-is-like.me/wp-content/uploads/2009/02/vorschauschnappschuss001.jpg" alt="Projekt" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nobody-is-like.me/2009/02/jboss-seam/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails Snippets</title>
		<link>http://blog.nobody-is-like.me/2009/02/rails-snippets/</link>
		<comments>http://blog.nobody-is-like.me/2009/02/rails-snippets/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 10:27:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Programmierung]]></category>
		<category><![CDATA[Ruby and Rails]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://blog.nobody-is-like.me/?p=15</guid>
		<description><![CDATA[Some small snippets of Rails/Ruby codes that I&#8217;d like to not forget&#8230; I found an interesting site on the Web: http://matthall.wordpress.com/2006/12/06/how-to-execute-a-rails-controller-action-via-cron/  Tweaking it a bit: [code]]czoyMTQ6XCJyZXF1aXJlIFwnLi4vY29uZmlnL2Vudmlyb25tZW50XCcNCnJlcXVpcmUgXCdwcFwnDQppZCA9IEFSR1ZbMF0NCmlmIGlkLm5pe1smKiZdfWw/DQpyYWlzZSAmbHQ7PGVvZj4NClVTQUdFOiAkMCBSRVNFTExFUl9JRA0KZW9mDQplbmQNCmFwcCA9IEFjdGlvbkNvbnRyb2xsZXJ7WyYqJl19OjpJbnRlZ3JhdGlvbjo6U2Vzc2lvbi5uZXcNCmFwcC5nZXQgXCIva3VuZGVuL3N0YXR1c19tYWlsLyN7aWR9XCI8L2VvZj5cIjt7WyYqJl19[[/code] This works fine from a Rails subdirectory and calls the same action like http://RAILSSITE/kunden/status_mail/ID]]></description>
			<content:encoded><![CDATA[<p>Some small snippets of Rails/Ruby codes that I&#8217;d like to not forget&#8230;</p>
<p>I found an interesting site on the Web: <a href="http://matthall.wordpress.com/2006/12/06/how-to-execute-a-rails-controller-action-via-cron/" title="How to Execute a Rails Controller Action via. Cron">http://matthall.wordpress.com/2006/12/06/how-to-execute-a-rails-controller-action-via-cron/ </a></p>
<p>Tweaking it a bit:<br />
[code]]czoyMTQ6XCJyZXF1aXJlIFwnLi4vY29uZmlnL2Vudmlyb25tZW50XCcNCnJlcXVpcmUgXCdwcFwnDQppZCA9IEFSR1ZbMF0NCmlmIGlkLm5pe1smKiZdfWw/DQpyYWlzZSAmbHQ7PGVvZj4NClVTQUdFOiAkMCBSRVNFTExFUl9JRA0KZW9mDQplbmQNCmFwcCA9IEFjdGlvbkNvbnRyb2xsZXJ7WyYqJl19OjpJbnRlZ3JhdGlvbjo6U2Vzc2lvbi5uZXcNCmFwcC5nZXQgXCIva3VuZGVuL3N0YXR1c19tYWlsLyN7aWR9XCI8L2VvZj5cIjt7WyYqJl19[[/code]</p>
<p>This works fine from a Rails subdirectory and calls the same action like http://RAILSSITE/kunden/status_mail/ID</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nobody-is-like.me/2009/02/rails-snippets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>_Mein_ Everyday GIT</title>
		<link>http://blog.nobody-is-like.me/2009/02/_mein_-everyday-git/</link>
		<comments>http://blog.nobody-is-like.me/2009/02/_mein_-everyday-git/#comments</comments>
		<pubDate>Fri, 06 Feb 2009 17:08:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://blog.nobody-is-like.me/?p=4</guid>
		<description><![CDATA[Mal ein Versuch meinen privaten GIT-Arbeitszyklus zu dokumentieren&#8230; Dieses Post wird wohl ab und zu verändert werden &#160; &#160; Arbeitszyklus mit GIT Start Entweder neu erstellen eines Repositories oder kopieren: Erstellen mkdir Name cd Name git init Kopieren git clone username@hostname:/PFAD/Name edit/compile/fix Commit git add . (fügt alle neuen Dateien hinzu) git commit -a -m [...]]]></description>
			<content:encoded><![CDATA[<p style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal; min-height: 14px"><span style="letter-spacing: 0px"></span>Mal ein Versuch meinen privaten GIT-Arbeitszyklus zu dokumentieren&#8230;</p>
<p style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal; min-height: 14px">Dieses Post wird wohl ab und zu verändert werden <img src='http://blog.nobody-is-like.me/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal; min-height: 14px">&nbsp;</p>
<p style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal; min-height: 14px">&nbsp;</p>
<p style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 18px; line-height: normal; font-size-adjust: none; font-stretch: normal"><span style="letter-spacing: 0px"><strong>Arbeitszyklus mit GIT</strong></span></p>
<p style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal; min-height: 14px"><span style="letter-spacing: 0px"></span></p>
<p style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal"><span style="letter-spacing: 0px"><strong>Start</strong></span></p>
<ol style="list-style-type: decimal">
<li style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal"><span style="letter-spacing: 0px">Entweder neu erstellen eines Repositories oder kopieren:</span>
<ol style="list-style-type: decimal">
<li style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal"><span style="letter-spacing: 0px">Erstellen</span>
<ol style="list-style-type: decimal">
<li style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal"><span style="letter-spacing: 0px">mkdir Name</span></li>
<li style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal"><span style="letter-spacing: 0px">cd Name</span></li>
<li style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal"><span style="letter-spacing: 0px">git init</span></li>
</ol>
</li>
<li style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal"><span style="letter-spacing: 0px">Kopieren</span>
<ol style="list-style-type: decimal">
<li style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal"><span style="letter-spacing: 0px">git clone username@hostname:/PFAD/Name</span></li>
</ol>
</li>
</ol>
</li>
<li style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal"><span style="letter-spacing: 0px">edit/compile/fix</span></li>
<li style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal"><span style="letter-spacing: 0px">Commit</span>
<ol style="list-style-type: decimal">
<li style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal"><span style="letter-spacing: 0px">git add . (fügt alle neuen Dateien hinzu)</span></li>
<li style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal"><span style="letter-spacing: 0px">git commit -a -m „KOMMENTAR“ </span></li>
<li style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal"><span style="letter-spacing: 0px">git push (zurück ins Repository)</span></li>
</ol>
</li>
</ol>
<p style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal; min-height: 14px"><span style="letter-spacing: 0px"></span></p>
<p style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal; min-height: 14px"><span style="letter-spacing: 0px"></span></p>
<p style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal"><span style="letter-spacing: 0px">Wenn das Repository ein sogenanntes „non-bare“ Repository ist (also mit Working-Tree), werden die Änderungen dort _nicht_ ins Working Directory eingetragen. Wenn dort nichts verändert wurde (also kein Merge notwendig ist), kann mittels</span></p>
<p style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal; min-height: 14px"><span style="letter-spacing: 0px"></span></p>
<p style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal; color: #000099"><span>git reset &#8211;hard (<a href="http://git.or.cz/gitwiki/GitFaq#head-b96f48bc9c925074be9f95c0fce69bcece5f6e73"><span style="text-decoration: underline; letter-spacing: 0px">http://git.or.cz/gitwiki/GitFaq#head-b96f48bc9c925074be9f95c0fce69bcece5f6e73</span></a>)</span></p>
<p style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal; min-height: 14px"><span style="letter-spacing: 0px"></span></p>
<p style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal"><span style="letter-spacing: 0px">der neue Sourcecode aktiviert werden. </span></p>
<p style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal; min-height: 14px"><span style="letter-spacing: 0px"></span></p>
<p style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal; min-height: 14px"><span style="letter-spacing: 0px"></span></p>
<p style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal"><span style="letter-spacing: 0px"><strong>Alternative: Benutzen eines „post-update-hooks“</strong></span></p>
<p style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal; color: #000099"><span style="text-decoration: underline; letter-spacing: 0px"><a href="http://utsl.gen.nz/git/post-update">http://utsl.gen.nz/git/post-update</a></span></p>
<p style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal"><span style="letter-spacing: 0px">Eintragen in .git/hooks/post-update (auf dem Ziel-Repository)</span></p>
<ol style="list-style-type: lower-alpha">
<li style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal; color: #000099"><span>auch: <a href="http://www.mail-archive.com/git@vger.kernel.org/msg03458.html"><span style="text-decoration: underline; letter-spacing: 0px">http://www.mail-archive.com/git@vger.kernel.org/msg03458.html</span></a></span></li>
</ol>
<p style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal"><span style="letter-spacing: 0px">Damit reicht dann das „push“ von der Remote-Maschine, um ein Merge des Repositories zu erreichen!</span></p>
<p style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal; min-height: 14px"><span style="letter-spacing: 0px"></span></p>
<p style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal"><span style="letter-spacing: 0px">Wenn im Master Repository (also dem, in das gerade gepushed wurde) vorher kein Commit durchgeführt wurde, werden die lokalen Änderungen gestashed</span></p>
<p style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal; color: #000099"><span style="text-decoration: underline; letter-spacing: 0px"><a href="http://www.kernel.org/pub/software/scm/git/docs/git-stash.html">http://www.kernel.org/pub/software/scm/git/docs/git-stash.html</a></span></p>
<p style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal"><span style="letter-spacing: 0px">Mittels </span></p>
<p style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal; min-height: 14px"><span style="letter-spacing: 0px"></span></p>
<p style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal"><span style="letter-spacing: 0px">git stash apply</span></p>
<p style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal; min-height: 14px"><span style="letter-spacing: 0px"></span></p>
<p style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal"><span style="letter-spacing: 0px">können die ebenfalls reingemerged werden</span></p>
<p style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal">&nbsp;</p>
<p style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal">&nbsp;</p>
<p style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal; min-height: 14px"><span style="letter-spacing: 0px"></span></p>
<p style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal"><span style="letter-spacing: 0px"></span></p>
<h3>Rollback nach einem fehlgeschlagenen Merge</h3>
<p>[code]]czoxNzpcImdpdCBwdWxsIGJsYWZhc2VsXCI7e1smKiZdfQ==[[/code]<br />
hat mal wieder (OK... Das kommt nicht so häufig vor; Es ist ja schließlich nicht Subversion <img src='http://blog.nobody-is-like.me/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  ) diverse Konflikte gemeldet und nur weil vorher lokal irgendetwas vergessen wurde.<br />
Ausweg:</p>
<p>[code]]czoxNjpcImdpdCByZXNldCAtLWhhcmRcIjt7WyYqJl19[[/code]<br />
Alles ist wieder gut (wie vorher).</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nobody-is-like.me/2009/02/_mein_-everyday-git/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
