<?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>Slopjongs weblog &#187; Programming</title>
	<atom:link href="http://slopjong.de/category/technology/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://slopjong.de</link>
	<description>Speedskating, tech stuff &#38; lots more</description>
	<lastBuildDate>Wed, 08 Sep 2010 22:35: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>ID3 batch editing</title>
		<link>http://slopjong.de/2010/08/30/id3-batch-editing/</link>
		<comments>http://slopjong.de/2010/08/30/id3-batch-editing/#comments</comments>
		<pubDate>Mon, 30 Aug 2010 15:16:22 +0000</pubDate>
		<dc:creator>slopjong</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[Batch scripting]]></category>
		<category><![CDATA[ID3]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://slopjong.de/?p=4145</guid>
		<description><![CDATA[Some of my music had no interpreter and title tags set thus I wrote a little shell script to batch edit these ID3 tags. The filenames of the songs looked like &#8220;01 Interpret &#8211; Song Title.mp3&#8243;. In a few moments I wrote the following php script1 which split the filename into the interpreter and the [...]]]></description>
			<content:encoded><![CDATA[<p>Some of my music had no interpreter and title tags set thus I wrote a little shell script to batch edit these ID3 tags. The filenames of the songs looked like &#8220;01 Interpret &#8211; Song Title.mp3&#8243;. In a few moments I wrote the following php script<sup class='footnote'><a href='#fn-4145-1' id='fnref-4145-1'>1</a></sup> which split the filename into the interpreter and the title.</p>
<p>All the python scripts listed here are using the library <a href="http://www.liquidx.net/pytagger/" targetr="_blank">pytagger</a>.</p>
<pre>
<code>&lt;?php
if ($handle = opendir('.'))
{
   while (false !== ($file = readdir($handle)))
   {
	   if ($file != "." &amp;&amp; $file != "..")
	   {
		$file_name = $file;
		$file = explode("-", $file);

		if(count($file) &lt; 2)
		  continue;

		$interpret = trim($file[0]);
		$title = trim(str_replace(".mp3","",$file[1]));

		echo "interpret: $interpret , tite: $title \n";
		// execute the python script id3.py to set the tags
		exec("./id3.py '$file_name' '$title' '$interpret' ");
	   }
	}
}

closedir($handle);
?&gt;</code>
</pre>
<p>Unfortunately I forgot to strip the digits so all the interpreters had two leading digits afterwards.</p>
<p>I had to iterate over the files again. As id3.py creates new tag frames I had to write another script (fix_interpreters.py) that reads the old frames to get the old values.</p>
<pre>
<code>#!/usr/bin/env python

from tagger import *
import sys, os, fnmatch, pickle, re

filename = sys.argv[1]

print "Processing '", filename, "'"

try:
  id3 = ID3v2(filename)

  if id3.tag_exists():
    interpret_frame = None
    for frame in id3.frames:
      interpretfid = 'TPE1'
      if id3.version == 2.2:
        interpretfid = 'TP1'

      if frame.fid == interpretfid:
        interpret_frame = frame
        break

    interpret = interpret_frame.strings[0]
    repaired = re.sub('^\d\d\s', '', interpret)

    print "Repairing "", interpret, "" =&gt; "",repaired,"""
    interpret_frame.set_text(repaired)

    # replace interpret frame
    id3.frames = [frame for frame in id3.frames if frame.fid != interpretfid]
    id3.frames.append(interpret_frame)
    id3.commit(pretend=0)

except ID3Exception, e:
  print("ID3 exception: %s" % str(e))</code>
</pre>
<p>I didn&#8217;t want to rewrite the php script above because I thought that typing a loop in the shell would be easier (or at least faster). </p>
<pre>
<code>for file in `ls -1 *.mp3`; do ./fix_interpreters.py $file; done</code>
</pre>
<p>I tried it with this loop but <em>ls -1 *.mp3</em> doesn&#8217;t list each mp3 file one per line as expected. Instead it splits the filenames after each whitespace. Thankfully to Greg Miller&#8217;s post about <a href="http://unixjunkie.blogspot.com/2007/01/handling-filenames-with-spaces_15.html" target="_blank">Handling Filenames With Spaces</a> this wasn&#8217;t no problem anymore. I changed the loop into</p>
<pre>
<code>find ./ -name '* *' | while read filename; do ls -ld "$filename"; ./fix_interpreters.py "$filename"; done</code>
</pre>
<p>and ta-da, it worked.
<div class='footnotes'>
<div class='footnotedivider'></div>
<ol>
<li id='fn-4145-1'>PHP scripts can be executed in a shell. Use <em>php -f script.php</em> to execute a file or use -r instead of -f to run inline code. <span class='footnotereverse'><a href='#fnref-4145-1'>&#8617;</a></span></li>
</ol>
</div>
<p><a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F08%2F30%2Fid3-batch-editing%2F&amp;linkname=ID3%20batch%20editing" title="Delicious" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F08%2F30%2Fid3-batch-editing%2F&amp;linkname=ID3%20batch%20editing" title="Digg" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/technorati_favorites?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F08%2F30%2Fid3-batch-editing%2F&amp;linkname=ID3%20batch%20editing" title="Technorati Favorites" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/technorati.png" width="16" height="16" alt="Technorati Favorites"/></a> <a href="http://www.addtoany.com/add_to/reddit?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F08%2F30%2Fid3-batch-editing%2F&amp;linkname=ID3%20batch%20editing" title="Reddit" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/reddit.png" width="16" height="16" alt="Reddit"/></a> <a href="http://www.addtoany.com/add_to/linkedin?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F08%2F30%2Fid3-batch-editing%2F&amp;linkname=ID3%20batch%20editing" title="LinkedIn" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/linkedin.png" width="16" height="16" alt="LinkedIn"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F08%2F30%2Fid3-batch-editing%2F&amp;linkname=ID3%20batch%20editing" title="Facebook" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/spurl?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F08%2F30%2Fid3-batch-editing%2F&amp;linkname=ID3%20batch%20editing" title="Spurl" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/spurl.png" width="16" height="16" alt="Spurl"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F08%2F30%2Fid3-batch-editing%2F&amp;linkname=ID3%20batch%20editing" title="Twitter" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/webnews?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F08%2F30%2Fid3-batch-editing%2F&amp;linkname=ID3%20batch%20editing" title="Webnews" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/webnews.png" width="16" height="16" alt="Webnews"/></a> <a href="http://www.addtoany.com/add_to/yigg?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F08%2F30%2Fid3-batch-editing%2F&amp;linkname=ID3%20batch%20editing" title="YiGG" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/yigg.png" width="16" height="16" alt="YiGG"/></a> <a href="http://www.addtoany.com/add_to/myspace?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F08%2F30%2Fid3-batch-editing%2F&amp;linkname=ID3%20batch%20editing" title="MySpace" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/myspace.png" width="16" height="16" alt="MySpace"/></a> <a href="http://www.addtoany.com/add_to/yahoo_bookmarks?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F08%2F30%2Fid3-batch-editing%2F&amp;linkname=ID3%20batch%20editing" title="Yahoo Bookmarks" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/yahoo.png" width="16" height="16" alt="Yahoo Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/friendfeed?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F08%2F30%2Fid3-batch-editing%2F&amp;linkname=ID3%20batch%20editing" title="FriendFeed" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/friendfeed.png" width="16" height="16" alt="FriendFeed"/></a> <a href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F08%2F30%2Fid3-batch-editing%2F&amp;linkname=ID3%20batch%20editing" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/livejournal?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F08%2F30%2Fid3-batch-editing%2F&amp;linkname=ID3%20batch%20editing" title="LiveJournal" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/livejournal.png" width="16" height="16" alt="LiveJournal"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://slopjong.de/wp-content/plugins/add-to-any/favicon.png" width="16" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://slopjong.de/2010/08/30/id3-batch-editing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery: eq() vs. get()</title>
		<link>http://slopjong.de/2010/07/15/jquery-eq-vs-get/</link>
		<comments>http://slopjong.de/2010/07/15/jquery-eq-vs-get/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 17:07:32 +0000</pubDate>
		<dc:creator>slopjong</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[DOM]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://slopjong.de/?p=4054</guid>
		<description><![CDATA[There are several ways to access queried DOM elements. You get either a DOM element using get() or a jQuery object using eq(). This can be confusing while you try to call jQuery API functions on DOM elements.
The example shows how to get the first array element on three different ways.
&#60;ul&#62;
  &#60;li&#62;&#60;/li&#62;
  &#60;li&#62;&#60;/li&#62;
 [...]]]></description>
			<content:encoded><![CDATA[<p>There are several ways to access queried DOM elements. You get either a DOM element using <strong>get()</strong> or a jQuery object using <strong>eq()</strong>. This can be confusing while you try to call jQuery API functions on DOM elements.</p>
<p>The example shows how to get the first array element on three different ways.</p>
<pre><code>&lt;ul&gt;
  &lt;li&gt;&lt;/li&gt;
  &lt;li&gt;&lt;/li&gt;
  &lt;li&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;script type="text/javascript"&gt;
    $(document).ready(function(){
        var elems, elem;
        elems = $("li"); // get an array of all the list items

        // This is a jQuery object that you can call jQuery related methods on.
        elem = elems.eq(0); 

        // This is the DOM element itself that lets you access the native
        // javascript attributes and methods.
        elem = elems.get(0); 

        // This is the DOM element too.
        elem = elems[0];
    });
&lt;/script&gt;
</code>
</pre>
<p>Instead of using the filter method eq() you can combine the filter with the selector like this</p>
<pre>
<code>var elem = $("li:eq(0)");</code>
</pre>
<p>or</p>
<pre>
<code>var elem = $("li:first");</code>
</pre>
<p>To turn a DOM element into a jQuery object you can wrap it with <strong>jQuery(</strong>element<strong>)</strong> or <strong>$(</strong>element<strong>)</strong> if you&#8217;re not in conflict mode. But keep in mind that this creates a new object which <del datetime="2010-07-15T16:44:15+00:00">wastes</del> consumes memory so pay attention if you do this in a loop.</p>
<p><a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F07%2F15%2Fjquery-eq-vs-get%2F&amp;linkname=jQuery%3A%20eq%28%29%20vs.%20get%28%29" title="Delicious" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F07%2F15%2Fjquery-eq-vs-get%2F&amp;linkname=jQuery%3A%20eq%28%29%20vs.%20get%28%29" title="Digg" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/technorati_favorites?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F07%2F15%2Fjquery-eq-vs-get%2F&amp;linkname=jQuery%3A%20eq%28%29%20vs.%20get%28%29" title="Technorati Favorites" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/technorati.png" width="16" height="16" alt="Technorati Favorites"/></a> <a href="http://www.addtoany.com/add_to/reddit?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F07%2F15%2Fjquery-eq-vs-get%2F&amp;linkname=jQuery%3A%20eq%28%29%20vs.%20get%28%29" title="Reddit" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/reddit.png" width="16" height="16" alt="Reddit"/></a> <a href="http://www.addtoany.com/add_to/linkedin?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F07%2F15%2Fjquery-eq-vs-get%2F&amp;linkname=jQuery%3A%20eq%28%29%20vs.%20get%28%29" title="LinkedIn" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/linkedin.png" width="16" height="16" alt="LinkedIn"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F07%2F15%2Fjquery-eq-vs-get%2F&amp;linkname=jQuery%3A%20eq%28%29%20vs.%20get%28%29" title="Facebook" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/spurl?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F07%2F15%2Fjquery-eq-vs-get%2F&amp;linkname=jQuery%3A%20eq%28%29%20vs.%20get%28%29" title="Spurl" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/spurl.png" width="16" height="16" alt="Spurl"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F07%2F15%2Fjquery-eq-vs-get%2F&amp;linkname=jQuery%3A%20eq%28%29%20vs.%20get%28%29" title="Twitter" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/webnews?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F07%2F15%2Fjquery-eq-vs-get%2F&amp;linkname=jQuery%3A%20eq%28%29%20vs.%20get%28%29" title="Webnews" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/webnews.png" width="16" height="16" alt="Webnews"/></a> <a href="http://www.addtoany.com/add_to/yigg?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F07%2F15%2Fjquery-eq-vs-get%2F&amp;linkname=jQuery%3A%20eq%28%29%20vs.%20get%28%29" title="YiGG" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/yigg.png" width="16" height="16" alt="YiGG"/></a> <a href="http://www.addtoany.com/add_to/myspace?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F07%2F15%2Fjquery-eq-vs-get%2F&amp;linkname=jQuery%3A%20eq%28%29%20vs.%20get%28%29" title="MySpace" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/myspace.png" width="16" height="16" alt="MySpace"/></a> <a href="http://www.addtoany.com/add_to/yahoo_bookmarks?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F07%2F15%2Fjquery-eq-vs-get%2F&amp;linkname=jQuery%3A%20eq%28%29%20vs.%20get%28%29" title="Yahoo Bookmarks" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/yahoo.png" width="16" height="16" alt="Yahoo Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/friendfeed?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F07%2F15%2Fjquery-eq-vs-get%2F&amp;linkname=jQuery%3A%20eq%28%29%20vs.%20get%28%29" title="FriendFeed" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/friendfeed.png" width="16" height="16" alt="FriendFeed"/></a> <a href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F07%2F15%2Fjquery-eq-vs-get%2F&amp;linkname=jQuery%3A%20eq%28%29%20vs.%20get%28%29" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/livejournal?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F07%2F15%2Fjquery-eq-vs-get%2F&amp;linkname=jQuery%3A%20eq%28%29%20vs.%20get%28%29" title="LiveJournal" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/livejournal.png" width="16" height="16" alt="LiveJournal"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://slopjong.de/wp-content/plugins/add-to-any/favicon.png" width="16" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://slopjong.de/2010/07/15/jquery-eq-vs-get/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java kills people</title>
		<link>http://slopjong.de/2010/07/08/java-kills-man/</link>
		<comments>http://slopjong.de/2010/07/08/java-kills-man/#comments</comments>
		<pubDate>Thu, 08 Jul 2010 14:48:42 +0000</pubDate>
		<dc:creator>slopjong</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://slopjong.de/?p=4046</guid>
		<description><![CDATA[





www.youtube.com/watch?v=A-Rp6wMZ1-s
]]></description>
			<content:encoded><![CDATA[<p><span class="youtube">
<object width="425" height="344">
<param name="movie" value="http://www.youtube-nocookie.com/v/A-Rp6wMZ1-s&amp;color1=3a3a3a&amp;color2=999999&amp;border=0&amp;fs=1&amp;hl=en&amp;autoplay=0&amp;showsearch=0?rel=0" />
<param name="allowFullScreen" value="true" />
<embed wmode="transparent" src="http://www.youtube-nocookie.com/v/A-Rp6wMZ1-s&amp;color1=3a3a3a&amp;color2=999999&amp;border=0&amp;fs=1&amp;hl=en&amp;autoplay=0&amp;showsearch=0?rel=0" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed>
<param name="wmode" value="transparent" />
</object>
</span><p><a href="http://www.youtube.com/watch?v=A-Rp6wMZ1-s"><img src="http://img.youtube.com/vi/A-Rp6wMZ1-s/default.jpg" width="130" height="97" border=0></a></p><p><a href="http://www.youtube.com/watch?v=A-Rp6wMZ1-s">www.youtube.com/watch?v=A-Rp6wMZ1-s</a></p></p>
<p><a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F07%2F08%2Fjava-kills-man%2F&amp;linkname=Java%20kills%20people" title="Delicious" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F07%2F08%2Fjava-kills-man%2F&amp;linkname=Java%20kills%20people" title="Digg" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/technorati_favorites?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F07%2F08%2Fjava-kills-man%2F&amp;linkname=Java%20kills%20people" title="Technorati Favorites" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/technorati.png" width="16" height="16" alt="Technorati Favorites"/></a> <a href="http://www.addtoany.com/add_to/reddit?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F07%2F08%2Fjava-kills-man%2F&amp;linkname=Java%20kills%20people" title="Reddit" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/reddit.png" width="16" height="16" alt="Reddit"/></a> <a href="http://www.addtoany.com/add_to/linkedin?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F07%2F08%2Fjava-kills-man%2F&amp;linkname=Java%20kills%20people" title="LinkedIn" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/linkedin.png" width="16" height="16" alt="LinkedIn"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F07%2F08%2Fjava-kills-man%2F&amp;linkname=Java%20kills%20people" title="Facebook" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/spurl?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F07%2F08%2Fjava-kills-man%2F&amp;linkname=Java%20kills%20people" title="Spurl" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/spurl.png" width="16" height="16" alt="Spurl"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F07%2F08%2Fjava-kills-man%2F&amp;linkname=Java%20kills%20people" title="Twitter" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/webnews?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F07%2F08%2Fjava-kills-man%2F&amp;linkname=Java%20kills%20people" title="Webnews" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/webnews.png" width="16" height="16" alt="Webnews"/></a> <a href="http://www.addtoany.com/add_to/yigg?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F07%2F08%2Fjava-kills-man%2F&amp;linkname=Java%20kills%20people" title="YiGG" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/yigg.png" width="16" height="16" alt="YiGG"/></a> <a href="http://www.addtoany.com/add_to/myspace?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F07%2F08%2Fjava-kills-man%2F&amp;linkname=Java%20kills%20people" title="MySpace" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/myspace.png" width="16" height="16" alt="MySpace"/></a> <a href="http://www.addtoany.com/add_to/yahoo_bookmarks?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F07%2F08%2Fjava-kills-man%2F&amp;linkname=Java%20kills%20people" title="Yahoo Bookmarks" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/yahoo.png" width="16" height="16" alt="Yahoo Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/friendfeed?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F07%2F08%2Fjava-kills-man%2F&amp;linkname=Java%20kills%20people" title="FriendFeed" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/friendfeed.png" width="16" height="16" alt="FriendFeed"/></a> <a href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F07%2F08%2Fjava-kills-man%2F&amp;linkname=Java%20kills%20people" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/livejournal?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F07%2F08%2Fjava-kills-man%2F&amp;linkname=Java%20kills%20people" title="LiveJournal" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/livejournal.png" width="16" height="16" alt="LiveJournal"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://slopjong.de/wp-content/plugins/add-to-any/favicon.png" width="16" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://slopjong.de/2010/07/08/java-kills-man/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Matlab commands for feedback controls</title>
		<link>http://slopjong.de/2010/06/14/matlab-commands-for-feedback-controls/</link>
		<comments>http://slopjong.de/2010/06/14/matlab-commands-for-feedback-controls/#comments</comments>
		<pubDate>Mon, 14 Jun 2010 14:32:59 +0000</pubDate>
		<dc:creator>slopjong</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Regelungstechnik]]></category>
		<category><![CDATA[feedback]]></category>
		<category><![CDATA[matlab]]></category>

		<guid isPermaLink="false">http://slopjong.de/?p=4005</guid>
		<description><![CDATA[Here is a small matlab reference for feedback calculations or simulations: 

roots: Find polynomial roots
poly: Convert roots to polynomial
conv: Convolution and polynomial multiplication
polyval: Evaluate polynomial
tf: Creation of transfer functions or conversion to transfer function
pzmap: Pole-zero map of LTI models
pole: Compute the poles of LTI models
zero: Computes the transmission zeros of LTI models
series: Series interconnection of [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a small matlab reference for feedback calculations or simulations: </p>
<ul>
<li>roots: Find polynomial roots</li>
<li>poly: Convert roots to polynomial</li>
<li>conv: Convolution and polynomial multiplication</li>
<li>polyval: Evaluate polynomial</li>
<li>tf: Creation of transfer functions or conversion to transfer function</li>
<li>pzmap: Pole-zero map of LTI models</li>
<li>pole: Compute the poles of LTI models</li>
<li>zero: Computes the transmission zeros of LTI models</li>
<li>series: Series interconnection of the two LTI models</li>
<li>parallel: Parallel interconnection of two LTI models</li>
<li>feedback: Feedback connection of two LTI models</li>
<li>minreal: Minimal realization and pole-zero cancellation</li>
<li>step: Step response of LTI models</li>
</ul>
<p><a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F06%2F14%2Fmatlab-commands-for-feedback-controls%2F&amp;linkname=Matlab%20commands%20for%20feedback%20controls" title="Delicious" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F06%2F14%2Fmatlab-commands-for-feedback-controls%2F&amp;linkname=Matlab%20commands%20for%20feedback%20controls" title="Digg" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/technorati_favorites?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F06%2F14%2Fmatlab-commands-for-feedback-controls%2F&amp;linkname=Matlab%20commands%20for%20feedback%20controls" title="Technorati Favorites" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/technorati.png" width="16" height="16" alt="Technorati Favorites"/></a> <a href="http://www.addtoany.com/add_to/reddit?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F06%2F14%2Fmatlab-commands-for-feedback-controls%2F&amp;linkname=Matlab%20commands%20for%20feedback%20controls" title="Reddit" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/reddit.png" width="16" height="16" alt="Reddit"/></a> <a href="http://www.addtoany.com/add_to/linkedin?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F06%2F14%2Fmatlab-commands-for-feedback-controls%2F&amp;linkname=Matlab%20commands%20for%20feedback%20controls" title="LinkedIn" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/linkedin.png" width="16" height="16" alt="LinkedIn"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F06%2F14%2Fmatlab-commands-for-feedback-controls%2F&amp;linkname=Matlab%20commands%20for%20feedback%20controls" title="Facebook" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/spurl?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F06%2F14%2Fmatlab-commands-for-feedback-controls%2F&amp;linkname=Matlab%20commands%20for%20feedback%20controls" title="Spurl" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/spurl.png" width="16" height="16" alt="Spurl"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F06%2F14%2Fmatlab-commands-for-feedback-controls%2F&amp;linkname=Matlab%20commands%20for%20feedback%20controls" title="Twitter" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/webnews?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F06%2F14%2Fmatlab-commands-for-feedback-controls%2F&amp;linkname=Matlab%20commands%20for%20feedback%20controls" title="Webnews" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/webnews.png" width="16" height="16" alt="Webnews"/></a> <a href="http://www.addtoany.com/add_to/yigg?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F06%2F14%2Fmatlab-commands-for-feedback-controls%2F&amp;linkname=Matlab%20commands%20for%20feedback%20controls" title="YiGG" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/yigg.png" width="16" height="16" alt="YiGG"/></a> <a href="http://www.addtoany.com/add_to/myspace?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F06%2F14%2Fmatlab-commands-for-feedback-controls%2F&amp;linkname=Matlab%20commands%20for%20feedback%20controls" title="MySpace" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/myspace.png" width="16" height="16" alt="MySpace"/></a> <a href="http://www.addtoany.com/add_to/yahoo_bookmarks?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F06%2F14%2Fmatlab-commands-for-feedback-controls%2F&amp;linkname=Matlab%20commands%20for%20feedback%20controls" title="Yahoo Bookmarks" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/yahoo.png" width="16" height="16" alt="Yahoo Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/friendfeed?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F06%2F14%2Fmatlab-commands-for-feedback-controls%2F&amp;linkname=Matlab%20commands%20for%20feedback%20controls" title="FriendFeed" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/friendfeed.png" width="16" height="16" alt="FriendFeed"/></a> <a href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F06%2F14%2Fmatlab-commands-for-feedback-controls%2F&amp;linkname=Matlab%20commands%20for%20feedback%20controls" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/livejournal?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F06%2F14%2Fmatlab-commands-for-feedback-controls%2F&amp;linkname=Matlab%20commands%20for%20feedback%20controls" title="LiveJournal" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/livejournal.png" width="16" height="16" alt="LiveJournal"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://slopjong.de/wp-content/plugins/add-to-any/favicon.png" width="16" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://slopjong.de/2010/06/14/matlab-commands-for-feedback-controls/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Accessing the right method in Java</title>
		<link>http://slopjong.de/2010/04/20/accessing-the-right-method-in-java/</link>
		<comments>http://slopjong.de/2010/04/20/accessing-the-right-method-in-java/#comments</comments>
		<pubDate>Tue, 20 Apr 2010 14:13:16 +0000</pubDate>
		<dc:creator>slopjong</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://slopjong.de/?p=3819</guid>
		<description><![CDATA[A inner class can call methods of an outer class.

public class Dummy1
{
	private class Dummy2
	{
		public Dummy2()
		{
			method();
		}
	}

	private void method() { }
}

So far so good but if the inner class has the same method this will be called instead. To avoid this ambiguity one can call the method in a more specific way. To be able to call [...]]]></description>
			<content:encoded><![CDATA[<p>A inner class can call methods of an outer class.</p>
<pre>
<code>public class Dummy1
{
	private class Dummy2
	{
		public Dummy2()
		{
			method();
		}
	}

	private void method() { }
}</code>
</pre>
<p>So far so good but if the inner class has the same method this will be called instead. To avoid this ambiguity one can call the method in a more specific way. To be able to call the method of the outer class the prefix <em>Dummy1.this</em> can be added.</p>
<pre>
<code>public class Dummy1
{
	private class Dummy2
	{
		public Dummy2()
		{
			Dummy1.this.method();
		}

		private void method() { }
	}

	private void method() { }
}</code>
</pre>
<p><a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F04%2F20%2Faccessing-the-right-method-in-java%2F&amp;linkname=Accessing%20the%20right%20method%20in%20Java" title="Delicious" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F04%2F20%2Faccessing-the-right-method-in-java%2F&amp;linkname=Accessing%20the%20right%20method%20in%20Java" title="Digg" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/technorati_favorites?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F04%2F20%2Faccessing-the-right-method-in-java%2F&amp;linkname=Accessing%20the%20right%20method%20in%20Java" title="Technorati Favorites" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/technorati.png" width="16" height="16" alt="Technorati Favorites"/></a> <a href="http://www.addtoany.com/add_to/reddit?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F04%2F20%2Faccessing-the-right-method-in-java%2F&amp;linkname=Accessing%20the%20right%20method%20in%20Java" title="Reddit" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/reddit.png" width="16" height="16" alt="Reddit"/></a> <a href="http://www.addtoany.com/add_to/linkedin?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F04%2F20%2Faccessing-the-right-method-in-java%2F&amp;linkname=Accessing%20the%20right%20method%20in%20Java" title="LinkedIn" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/linkedin.png" width="16" height="16" alt="LinkedIn"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F04%2F20%2Faccessing-the-right-method-in-java%2F&amp;linkname=Accessing%20the%20right%20method%20in%20Java" title="Facebook" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/spurl?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F04%2F20%2Faccessing-the-right-method-in-java%2F&amp;linkname=Accessing%20the%20right%20method%20in%20Java" title="Spurl" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/spurl.png" width="16" height="16" alt="Spurl"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F04%2F20%2Faccessing-the-right-method-in-java%2F&amp;linkname=Accessing%20the%20right%20method%20in%20Java" title="Twitter" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/webnews?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F04%2F20%2Faccessing-the-right-method-in-java%2F&amp;linkname=Accessing%20the%20right%20method%20in%20Java" title="Webnews" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/webnews.png" width="16" height="16" alt="Webnews"/></a> <a href="http://www.addtoany.com/add_to/yigg?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F04%2F20%2Faccessing-the-right-method-in-java%2F&amp;linkname=Accessing%20the%20right%20method%20in%20Java" title="YiGG" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/yigg.png" width="16" height="16" alt="YiGG"/></a> <a href="http://www.addtoany.com/add_to/myspace?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F04%2F20%2Faccessing-the-right-method-in-java%2F&amp;linkname=Accessing%20the%20right%20method%20in%20Java" title="MySpace" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/myspace.png" width="16" height="16" alt="MySpace"/></a> <a href="http://www.addtoany.com/add_to/yahoo_bookmarks?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F04%2F20%2Faccessing-the-right-method-in-java%2F&amp;linkname=Accessing%20the%20right%20method%20in%20Java" title="Yahoo Bookmarks" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/yahoo.png" width="16" height="16" alt="Yahoo Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/friendfeed?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F04%2F20%2Faccessing-the-right-method-in-java%2F&amp;linkname=Accessing%20the%20right%20method%20in%20Java" title="FriendFeed" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/friendfeed.png" width="16" height="16" alt="FriendFeed"/></a> <a href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F04%2F20%2Faccessing-the-right-method-in-java%2F&amp;linkname=Accessing%20the%20right%20method%20in%20Java" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/livejournal?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F04%2F20%2Faccessing-the-right-method-in-java%2F&amp;linkname=Accessing%20the%20right%20method%20in%20Java" title="LiveJournal" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/livejournal.png" width="16" height="16" alt="LiveJournal"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://slopjong.de/wp-content/plugins/add-to-any/favicon.png" width="16" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://slopjong.de/2010/04/20/accessing-the-right-method-in-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Urinal manual</title>
		<link>http://slopjong.de/2010/04/10/urinal-manual/</link>
		<comments>http://slopjong.de/2010/04/10/urinal-manual/#comments</comments>
		<pubDate>Sat, 10 Apr 2010 14:01:28 +0000</pubDate>
		<dc:creator>slopjong</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[flowchart]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[manual]]></category>
		<category><![CDATA[tikz]]></category>
		<category><![CDATA[urinal]]></category>

		<guid isPermaLink="false">http://slopjong.de/?p=3753</guid>
		<description><![CDATA[Based on the tikz flowchart example I created my first flowchart in Latex. Creating such a flowchart with Latex is not as easy as it looks like. Sometimes you don&#8217;t get an error message even if there is an error (especially missing semicolons) in the code. In my case pdftex just hang up. One thing [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://slopjong.de/wp-content/2010/04/test1.png" alt="" title="Urinal Manual - Flowchart" width="461" height="729" class="aligncenter size-full wp-image-3779" /></p>
<p>Based on the <a href="http://www.texample.net/tikz/examples/simple-flow-chart/" target="_blank">tikz flowchart example</a> I created my first flowchart in Latex. Creating such a flowchart with Latex is not as easy as it looks like. Sometimes you don&#8217;t get an error message even if there is an error (especially missing semicolons) in the code. In my case pdftex just hang up. One thing was a bit tricky but first have a look at my code: </p>
<pre>
<code>\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shapes,arrows}

\begin{document}

\pagestyle{empty}

% Define block styles
\tikzstyle{decision} = [diamond, draw, fill=blue!20,
text width=4.5em, text badly centered, node distance=3cm, inner sep=0pt]

\tikzstyle{block} = [rectangle, draw, fill=blue!20,
text width=4cm, text centered, rounded corners, minimum height=4em, minimum width=4.5cm]

\tikzstyle{line} = [draw, -latex']

\tikzstyle{cloud} = [draw, ellipse,fill=red!20, node distance=3cm,
minimum height=2em]

\begin{tikzpicture}[node distance = 3cm, auto]
% The nodes
\node[cloud] (business) {Business};
\node[block, below of=business] (person) {i:=person};
\node[decision, below of=person] (sex) { i.sex = male ?};
\node[decision, below of=sex, node distance=4cm] (sex2) { i.sex = pre-op transsexuel female ?};    

\node[block, right of=sex2, node distance=6cm] (execution_block_1) {i.enter(toilet)\\
i.open(trousers)\\
i.target(eyes, center)\\
i.target(hands, center)
};

\node[block, below of=execution_block_1] (open_bladder) { i.open(bladder) };
\node [decision, below of=open_bladder, text width=2cm] (bladder_empty) {i.bladder = empty?};

\node[block, below of=bladder_empty] (execution_block_2) { i.close(bladder)\\
 i.close(trousers)\\
 i.flush(urinal)
 };

\node [block, below of=execution_block_2] (exit) { i.exit() };

% The connections
\path [line] (business) -- (person);
\path [line] (person) -- (sex);
\path [line] (execution_block_1) -- (open_bladder);
\path [line] (execution_block_2) -- (exit);

\path [line] (sex) -- node [near start] {no} (sex2);
\path [line] (sex) -| node [near start] {yes} (execution_block_1);
\path [line] (sex2) -- node [near start] {no} (execution_block_1);
\path [line] (sex2) |- node [near start] {yes} (exit);
\path [line] (open_bladder) -- (bladder_empty);
\path [line] (bladder_empty) -- node [near start] {yes} (execution_block_2);
\path [line] (bladder_empty) -- +(4,0) -- +(4,3) -- node [near start] {no} (open_bladder);
\end{tikzpicture}

\end{document}</code>
</pre>
<p>The decision block with the bladder emptiness check has more than one curve. -| or |- didn&#8217;t work so the trick here is that you have to add coordinates (x,y) to the connection line where it should curve.</p>
<p><a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F04%2F10%2Furinal-manual%2F&amp;linkname=Urinal%20manual" title="Delicious" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F04%2F10%2Furinal-manual%2F&amp;linkname=Urinal%20manual" title="Digg" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/technorati_favorites?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F04%2F10%2Furinal-manual%2F&amp;linkname=Urinal%20manual" title="Technorati Favorites" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/technorati.png" width="16" height="16" alt="Technorati Favorites"/></a> <a href="http://www.addtoany.com/add_to/reddit?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F04%2F10%2Furinal-manual%2F&amp;linkname=Urinal%20manual" title="Reddit" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/reddit.png" width="16" height="16" alt="Reddit"/></a> <a href="http://www.addtoany.com/add_to/linkedin?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F04%2F10%2Furinal-manual%2F&amp;linkname=Urinal%20manual" title="LinkedIn" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/linkedin.png" width="16" height="16" alt="LinkedIn"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F04%2F10%2Furinal-manual%2F&amp;linkname=Urinal%20manual" title="Facebook" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/spurl?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F04%2F10%2Furinal-manual%2F&amp;linkname=Urinal%20manual" title="Spurl" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/spurl.png" width="16" height="16" alt="Spurl"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F04%2F10%2Furinal-manual%2F&amp;linkname=Urinal%20manual" title="Twitter" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/webnews?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F04%2F10%2Furinal-manual%2F&amp;linkname=Urinal%20manual" title="Webnews" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/webnews.png" width="16" height="16" alt="Webnews"/></a> <a href="http://www.addtoany.com/add_to/yigg?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F04%2F10%2Furinal-manual%2F&amp;linkname=Urinal%20manual" title="YiGG" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/yigg.png" width="16" height="16" alt="YiGG"/></a> <a href="http://www.addtoany.com/add_to/myspace?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F04%2F10%2Furinal-manual%2F&amp;linkname=Urinal%20manual" title="MySpace" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/myspace.png" width="16" height="16" alt="MySpace"/></a> <a href="http://www.addtoany.com/add_to/yahoo_bookmarks?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F04%2F10%2Furinal-manual%2F&amp;linkname=Urinal%20manual" title="Yahoo Bookmarks" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/yahoo.png" width="16" height="16" alt="Yahoo Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/friendfeed?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F04%2F10%2Furinal-manual%2F&amp;linkname=Urinal%20manual" title="FriendFeed" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/friendfeed.png" width="16" height="16" alt="FriendFeed"/></a> <a href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F04%2F10%2Furinal-manual%2F&amp;linkname=Urinal%20manual" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/livejournal?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F04%2F10%2Furinal-manual%2F&amp;linkname=Urinal%20manual" title="LiveJournal" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/livejournal.png" width="16" height="16" alt="LiveJournal"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://slopjong.de/wp-content/plugins/add-to-any/favicon.png" width="16" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://slopjong.de/2010/04/10/urinal-manual/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery injection using Firebug?</title>
		<link>http://slopjong.de/2010/03/27/jquery-injection-using-firebug/</link>
		<comments>http://slopjong.de/2010/03/27/jquery-injection-using-firebug/#comments</comments>
		<pubDate>Sat, 27 Mar 2010 11:47:34 +0000</pubDate>
		<dc:creator>slopjong</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Add-on]]></category>
		<category><![CDATA[Firebug]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[jQuerify]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Same Origin Policy]]></category>
		<category><![CDATA[SOP]]></category>
		<category><![CDATA[XMLHttpRequest]]></category>

		<guid isPermaLink="false">http://slopjong.de/?p=3601</guid>
		<description><![CDATA[A new day, a new question.
I was trying to load a json object while using Firebug and jQuerify to inject jQuery code into the website of the currently active tab. If you don&#8217;t know what I&#8217;m talking about, these are firefox add-ons. Firebug is a great debugging tool whereas jQuerify adds the jQuery library to [...]]]></description>
			<content:encoded><![CDATA[<p>A new day, a new question.</p>
<p>I was trying to load a json object while using Firebug and jQuerify to inject jQuery code into the website of the currently active tab. If you don&#8217;t know what I&#8217;m talking about, these are firefox add-ons. Firebug is a great debugging tool whereas jQuerify adds the jQuery library to any website if it&#8217;s not yet loaded.</p>
<p>Now some details to my recent problem. If I enter the URL into the browsers location field I get a proper json object back. If I send an XMLHttpRequest to the same URL the server responses with the status code <strong>301 Moved Permanently</strong>. Has this issue to do with the Same Origin Policy (SOP) ?</p>
<p>If so I need a workaround because this URL will be the new API URL for some web apps.</p>
<p>Any suggestions what this could be?</p>
<p><strong>Edit:</strong><br />
It wasn&#8217;t a SOP problem but I also had to face with such a problem later. The above described behaviour came from a missing / at the end of the URL. Entering such a URL into the location field the browser automatically add the tailing slash if it&#8217;s missing. After I found that out I wasn&#8217;t able to fetch the json from another domain. It&#8217;s been months that I&#8217;ve been coding jQuery a lot so I forgot one little but important information. The server has to send an additional header to allow other domains. More about this later in a seperate post.</p>
<p><a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F03%2F27%2Fjquery-injection-using-firebug%2F&amp;linkname=jQuery%20injection%20using%20Firebug%3F" title="Delicious" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F03%2F27%2Fjquery-injection-using-firebug%2F&amp;linkname=jQuery%20injection%20using%20Firebug%3F" title="Digg" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/technorati_favorites?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F03%2F27%2Fjquery-injection-using-firebug%2F&amp;linkname=jQuery%20injection%20using%20Firebug%3F" title="Technorati Favorites" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/technorati.png" width="16" height="16" alt="Technorati Favorites"/></a> <a href="http://www.addtoany.com/add_to/reddit?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F03%2F27%2Fjquery-injection-using-firebug%2F&amp;linkname=jQuery%20injection%20using%20Firebug%3F" title="Reddit" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/reddit.png" width="16" height="16" alt="Reddit"/></a> <a href="http://www.addtoany.com/add_to/linkedin?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F03%2F27%2Fjquery-injection-using-firebug%2F&amp;linkname=jQuery%20injection%20using%20Firebug%3F" title="LinkedIn" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/linkedin.png" width="16" height="16" alt="LinkedIn"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F03%2F27%2Fjquery-injection-using-firebug%2F&amp;linkname=jQuery%20injection%20using%20Firebug%3F" title="Facebook" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/spurl?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F03%2F27%2Fjquery-injection-using-firebug%2F&amp;linkname=jQuery%20injection%20using%20Firebug%3F" title="Spurl" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/spurl.png" width="16" height="16" alt="Spurl"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F03%2F27%2Fjquery-injection-using-firebug%2F&amp;linkname=jQuery%20injection%20using%20Firebug%3F" title="Twitter" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/webnews?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F03%2F27%2Fjquery-injection-using-firebug%2F&amp;linkname=jQuery%20injection%20using%20Firebug%3F" title="Webnews" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/webnews.png" width="16" height="16" alt="Webnews"/></a> <a href="http://www.addtoany.com/add_to/yigg?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F03%2F27%2Fjquery-injection-using-firebug%2F&amp;linkname=jQuery%20injection%20using%20Firebug%3F" title="YiGG" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/yigg.png" width="16" height="16" alt="YiGG"/></a> <a href="http://www.addtoany.com/add_to/myspace?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F03%2F27%2Fjquery-injection-using-firebug%2F&amp;linkname=jQuery%20injection%20using%20Firebug%3F" title="MySpace" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/myspace.png" width="16" height="16" alt="MySpace"/></a> <a href="http://www.addtoany.com/add_to/yahoo_bookmarks?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F03%2F27%2Fjquery-injection-using-firebug%2F&amp;linkname=jQuery%20injection%20using%20Firebug%3F" title="Yahoo Bookmarks" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/yahoo.png" width="16" height="16" alt="Yahoo Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/friendfeed?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F03%2F27%2Fjquery-injection-using-firebug%2F&amp;linkname=jQuery%20injection%20using%20Firebug%3F" title="FriendFeed" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/friendfeed.png" width="16" height="16" alt="FriendFeed"/></a> <a href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F03%2F27%2Fjquery-injection-using-firebug%2F&amp;linkname=jQuery%20injection%20using%20Firebug%3F" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/livejournal?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F03%2F27%2Fjquery-injection-using-firebug%2F&amp;linkname=jQuery%20injection%20using%20Firebug%3F" title="LiveJournal" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/livejournal.png" width="16" height="16" alt="LiveJournal"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://slopjong.de/wp-content/plugins/add-to-any/favicon.png" width="16" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://slopjong.de/2010/03/27/jquery-injection-using-firebug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>svn2web</title>
		<link>http://slopjong.de/2010/03/02/svn2web/</link>
		<comments>http://slopjong.de/2010/03/02/svn2web/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 11:20:42 +0000</pubDate>
		<dc:creator>slopjong</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Subversion]]></category>
		<category><![CDATA[SVN]]></category>
		<category><![CDATA[svn2web]]></category>
		<category><![CDATA[Tool]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://slopjong.de/?p=3436</guid>
		<description><![CDATA[svn2web is a subversion hook script that uploads the committed files to a server by the ftp or sftp protocol. With this script it&#8217;s very easy to keep your local development branch of your web project synchronized with your server as long as you don&#8217;t make server-side changes.
Be aware that you complete the PATH variable [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://svn2web.sourceforge.net" target="_blank">svn2web</a> is a subversion hook script that uploads the committed files to a server by the ftp or sftp protocol. With this script it&#8217;s very easy to keep your local development branch of your web project synchronized with your server as long as you don&#8217;t make server-side changes.</p>
<p>Be aware that you complete the PATH variable as the script isn&#8217;t executed in an interactive shell. This means no .bashrc or .profile are read. So you have to set PATH by yourself. You also have to pay attention to the order of the binary locations. I had some trouble with the <em>Leopard</em><sup class='footnote'><a href='#fn-3436-1' id='fnref-3436-1'>1</a></sup> svn installation and the macports installation. The former was an older version which couldn&#8217;t work with repository created by the latter.</p>
<p>If you get one of these error messages </p>
<pre><code>svnlook expected fs format '2'; found format '4'</code></pre>
<p>or</p>
<pre><code>Invalid change kind in rev file</code></pre>
<p>take a look at the PATH before you start <em>debugging</em> svn2web <img src='http://slopjong.de/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>For those who want to set ftp/sftp options you can do this by setting the svn property <em>svn2web-options</em>. Unfortunately this is nowhere documented so if it&#8217;s not working properly you should contact the dev team or fix it by yourself. Don&#8217;t forget to spread the bugfix with the world.
<div class='footnotes'>
<div class='footnotedivider'></div>
<ol>
<li id='fn-3436-1'>The cat I got from the Apple zoo <span class='footnotereverse'><a href='#fnref-3436-1'>&#8617;</a></span></li>
</ol>
</div>
<p><a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F03%2F02%2Fsvn2web%2F&amp;linkname=svn2web" title="Delicious" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F03%2F02%2Fsvn2web%2F&amp;linkname=svn2web" title="Digg" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/technorati_favorites?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F03%2F02%2Fsvn2web%2F&amp;linkname=svn2web" title="Technorati Favorites" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/technorati.png" width="16" height="16" alt="Technorati Favorites"/></a> <a href="http://www.addtoany.com/add_to/reddit?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F03%2F02%2Fsvn2web%2F&amp;linkname=svn2web" title="Reddit" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/reddit.png" width="16" height="16" alt="Reddit"/></a> <a href="http://www.addtoany.com/add_to/linkedin?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F03%2F02%2Fsvn2web%2F&amp;linkname=svn2web" title="LinkedIn" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/linkedin.png" width="16" height="16" alt="LinkedIn"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F03%2F02%2Fsvn2web%2F&amp;linkname=svn2web" title="Facebook" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/spurl?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F03%2F02%2Fsvn2web%2F&amp;linkname=svn2web" title="Spurl" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/spurl.png" width="16" height="16" alt="Spurl"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F03%2F02%2Fsvn2web%2F&amp;linkname=svn2web" title="Twitter" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/webnews?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F03%2F02%2Fsvn2web%2F&amp;linkname=svn2web" title="Webnews" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/webnews.png" width="16" height="16" alt="Webnews"/></a> <a href="http://www.addtoany.com/add_to/yigg?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F03%2F02%2Fsvn2web%2F&amp;linkname=svn2web" title="YiGG" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/yigg.png" width="16" height="16" alt="YiGG"/></a> <a href="http://www.addtoany.com/add_to/myspace?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F03%2F02%2Fsvn2web%2F&amp;linkname=svn2web" title="MySpace" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/myspace.png" width="16" height="16" alt="MySpace"/></a> <a href="http://www.addtoany.com/add_to/yahoo_bookmarks?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F03%2F02%2Fsvn2web%2F&amp;linkname=svn2web" title="Yahoo Bookmarks" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/yahoo.png" width="16" height="16" alt="Yahoo Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/friendfeed?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F03%2F02%2Fsvn2web%2F&amp;linkname=svn2web" title="FriendFeed" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/friendfeed.png" width="16" height="16" alt="FriendFeed"/></a> <a href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F03%2F02%2Fsvn2web%2F&amp;linkname=svn2web" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/livejournal?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F03%2F02%2Fsvn2web%2F&amp;linkname=svn2web" title="LiveJournal" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/livejournal.png" width="16" height="16" alt="LiveJournal"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://slopjong.de/wp-content/plugins/add-to-any/favicon.png" width="16" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://slopjong.de/2010/03/02/svn2web/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to use BackPress?</title>
		<link>http://slopjong.de/2010/02/21/how-to-use-backpress/</link>
		<comments>http://slopjong.de/2010/02/21/how-to-use-backpress/#comments</comments>
		<pubDate>Sun, 21 Feb 2010 17:56:58 +0000</pubDate>
		<dc:creator>slopjong</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://slopjong.de/?p=3414</guid>
		<description><![CDATA[For my recent project I want to use some WordPress core functions but it&#8217;s too disproportionate to install the full system. Then I found BackPress which is exactly what I need. It&#8217;s a collection of WordPress, bbPress and GlotPress libraries.
The usage of this library collection requires some work. In fact you only need to include [...]]]></description>
			<content:encoded><![CDATA[<p>For my recent project I want to use some WordPress core functions but it&#8217;s too disproportionate to install the full system. Then I found <a href="http://backpress.org" target="_blank">BackPress</a> which is exactly what I need. It&#8217;s a collection of WordPress, bbPress and GlotPress libraries.</p>
<p>The usage of this library collection requires some work. In fact you only need to include <em>functions.core.php</em> and the libraries you need. But to find out what files you exactly need can be hard because some functions have a lot of dependencies so my proposal is to include everything as you needn&#8217;t to care about any dependencies later on.</p>
<p>Furthermore some files have to be included exclusive-or what means that either the one has to be included or the other one. Download <strong><a href='http://slopjong.de/wp-content/2010/02/backpress.php_.zip'>backpress.php</a></strong> and include the extracted file in your web project.</p>
<pre>
<code>&lt;?php
// this constant is needed for class.bpdb-multi.php
// leave the value empty
define('BACKPRESS_PATH','');

// the core functions
include_once('backpress/includes/functions.core.php');

include_once('backpress/includes/class.bp-log.php');
include_once('backpress/includes/class.bp-roles.php');
include_once('backpress/includes/class.bp-sql-schema-parser.php');
include_once('backpress/includes/class.bp-user.php');
include_once('backpress/includes/class.bpdb-multi.php');
include_once('backpress/includes/class.bpdb.php');
include_once('backpress/includes/class.ixr.php');
include_once('backpress/includes/class.mailer-smtp.php');
include_once('backpress/includes/class.mailer.php');
include_once('backpress/includes/class.passwordhash.php');
include_once('backpress/includes/class.wp-ajax-response.php');
include_once('backpress/includes/class.wp-auth.php');
include_once('backpress/includes/class.wp-dependencies.php');
include_once('backpress/includes/class.wp-error.php');
include_once('backpress/includes/class.wp-http.php');
include_once('backpress/includes/class.wp-pass.php');
include_once('backpress/includes/class.wp-scripts.php');
include_once('backpress/includes/class.wp-styles.php');
include_once('backpress/includes/class.wp-taxonomy.php');
include_once('backpress/includes/class.wp-users.php');
include_once('backpress/includes/functions.bp-options.php');
include_once('backpress/includes/functions.compat.php');
include_once('backpress/includes/functions.formatting.php');
include_once('backpress/includes/functions.kses.php');
include_once('backpress/includes/functions.plugin-api.php');
include_once('backpress/includes/functions.shortcodes.php');
include_once('backpress/includes/functions.wp-cron.php');
include_once('backpress/includes/functions.wp-object-cache.php');
include_once('backpress/includes/functions.wp-scripts.php');
include_once('backpress/includes/functions.wp-styles.php');
include_once('backpress/includes/functions.wp-taxonomy.php');
include_once('backpress/includes/interface.bp-options.php');

// Only include one of these two
include_once('backpress/includes/loader.wp-object-cache-memcached.php');
//include_once('backpress/includes/loader.wp-object-cache.php');
?&gt;</code>
</pre>
<p><a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F02%2F21%2Fhow-to-use-backpress%2F&amp;linkname=How%20to%20use%20BackPress%3F" title="Delicious" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F02%2F21%2Fhow-to-use-backpress%2F&amp;linkname=How%20to%20use%20BackPress%3F" title="Digg" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/technorati_favorites?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F02%2F21%2Fhow-to-use-backpress%2F&amp;linkname=How%20to%20use%20BackPress%3F" title="Technorati Favorites" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/technorati.png" width="16" height="16" alt="Technorati Favorites"/></a> <a href="http://www.addtoany.com/add_to/reddit?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F02%2F21%2Fhow-to-use-backpress%2F&amp;linkname=How%20to%20use%20BackPress%3F" title="Reddit" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/reddit.png" width="16" height="16" alt="Reddit"/></a> <a href="http://www.addtoany.com/add_to/linkedin?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F02%2F21%2Fhow-to-use-backpress%2F&amp;linkname=How%20to%20use%20BackPress%3F" title="LinkedIn" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/linkedin.png" width="16" height="16" alt="LinkedIn"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F02%2F21%2Fhow-to-use-backpress%2F&amp;linkname=How%20to%20use%20BackPress%3F" title="Facebook" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/spurl?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F02%2F21%2Fhow-to-use-backpress%2F&amp;linkname=How%20to%20use%20BackPress%3F" title="Spurl" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/spurl.png" width="16" height="16" alt="Spurl"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F02%2F21%2Fhow-to-use-backpress%2F&amp;linkname=How%20to%20use%20BackPress%3F" title="Twitter" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/webnews?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F02%2F21%2Fhow-to-use-backpress%2F&amp;linkname=How%20to%20use%20BackPress%3F" title="Webnews" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/webnews.png" width="16" height="16" alt="Webnews"/></a> <a href="http://www.addtoany.com/add_to/yigg?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F02%2F21%2Fhow-to-use-backpress%2F&amp;linkname=How%20to%20use%20BackPress%3F" title="YiGG" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/yigg.png" width="16" height="16" alt="YiGG"/></a> <a href="http://www.addtoany.com/add_to/myspace?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F02%2F21%2Fhow-to-use-backpress%2F&amp;linkname=How%20to%20use%20BackPress%3F" title="MySpace" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/myspace.png" width="16" height="16" alt="MySpace"/></a> <a href="http://www.addtoany.com/add_to/yahoo_bookmarks?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F02%2F21%2Fhow-to-use-backpress%2F&amp;linkname=How%20to%20use%20BackPress%3F" title="Yahoo Bookmarks" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/yahoo.png" width="16" height="16" alt="Yahoo Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/friendfeed?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F02%2F21%2Fhow-to-use-backpress%2F&amp;linkname=How%20to%20use%20BackPress%3F" title="FriendFeed" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/friendfeed.png" width="16" height="16" alt="FriendFeed"/></a> <a href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F02%2F21%2Fhow-to-use-backpress%2F&amp;linkname=How%20to%20use%20BackPress%3F" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/livejournal?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F02%2F21%2Fhow-to-use-backpress%2F&amp;linkname=How%20to%20use%20BackPress%3F" title="LiveJournal" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/livejournal.png" width="16" height="16" alt="LiveJournal"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://slopjong.de/wp-content/plugins/add-to-any/favicon.png" width="16" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://slopjong.de/2010/02/21/how-to-use-backpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facebook Lite</title>
		<link>http://slopjong.de/2010/02/13/facebook-lite/</link>
		<comments>http://slopjong.de/2010/02/13/facebook-lite/#comments</comments>
		<pubDate>Sat, 13 Feb 2010 18:54:06 +0000</pubDate>
		<dc:creator>slopjong</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://slopjong.de/?p=3408</guid>
		<description><![CDATA[I wrote a script for minimizing the facebook theme. For this you need the Greasemonkey firefox add-on.
To install the script click on this link Facebook Lite
]]></description>
			<content:encoded><![CDATA[<p>I wrote a script for minimizing the facebook theme. For this you need the <a href="https://addons.mozilla.org/firefox/748/" target="_blank">Greasemonkey</a> firefox add-on.</p>
<p>To install the script click on this link <a href='http://slopjong.de/wp-content/2010/02/facebook_lite.user.js'>Facebook Lite</a></p>
<p><a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F02%2F13%2Ffacebook-lite%2F&amp;linkname=Facebook%20Lite" title="Delicious" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F02%2F13%2Ffacebook-lite%2F&amp;linkname=Facebook%20Lite" title="Digg" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/technorati_favorites?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F02%2F13%2Ffacebook-lite%2F&amp;linkname=Facebook%20Lite" title="Technorati Favorites" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/technorati.png" width="16" height="16" alt="Technorati Favorites"/></a> <a href="http://www.addtoany.com/add_to/reddit?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F02%2F13%2Ffacebook-lite%2F&amp;linkname=Facebook%20Lite" title="Reddit" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/reddit.png" width="16" height="16" alt="Reddit"/></a> <a href="http://www.addtoany.com/add_to/linkedin?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F02%2F13%2Ffacebook-lite%2F&amp;linkname=Facebook%20Lite" title="LinkedIn" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/linkedin.png" width="16" height="16" alt="LinkedIn"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F02%2F13%2Ffacebook-lite%2F&amp;linkname=Facebook%20Lite" title="Facebook" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/spurl?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F02%2F13%2Ffacebook-lite%2F&amp;linkname=Facebook%20Lite" title="Spurl" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/spurl.png" width="16" height="16" alt="Spurl"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F02%2F13%2Ffacebook-lite%2F&amp;linkname=Facebook%20Lite" title="Twitter" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/webnews?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F02%2F13%2Ffacebook-lite%2F&amp;linkname=Facebook%20Lite" title="Webnews" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/webnews.png" width="16" height="16" alt="Webnews"/></a> <a href="http://www.addtoany.com/add_to/yigg?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F02%2F13%2Ffacebook-lite%2F&amp;linkname=Facebook%20Lite" title="YiGG" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/yigg.png" width="16" height="16" alt="YiGG"/></a> <a href="http://www.addtoany.com/add_to/myspace?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F02%2F13%2Ffacebook-lite%2F&amp;linkname=Facebook%20Lite" title="MySpace" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/myspace.png" width="16" height="16" alt="MySpace"/></a> <a href="http://www.addtoany.com/add_to/yahoo_bookmarks?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F02%2F13%2Ffacebook-lite%2F&amp;linkname=Facebook%20Lite" title="Yahoo Bookmarks" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/yahoo.png" width="16" height="16" alt="Yahoo Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/friendfeed?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F02%2F13%2Ffacebook-lite%2F&amp;linkname=Facebook%20Lite" title="FriendFeed" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/friendfeed.png" width="16" height="16" alt="FriendFeed"/></a> <a href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F02%2F13%2Ffacebook-lite%2F&amp;linkname=Facebook%20Lite" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/livejournal?linkurl=http%3A%2F%2Fslopjong.de%2F2010%2F02%2F13%2Ffacebook-lite%2F&amp;linkname=Facebook%20Lite" title="LiveJournal" rel="nofollow" target="_blank"><img src="http://slopjong.de/wp-content/plugins/add-to-any/icons/livejournal.png" width="16" height="16" alt="LiveJournal"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://slopjong.de/wp-content/plugins/add-to-any/favicon.png" width="16" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://slopjong.de/2010/02/13/facebook-lite/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
