<?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>Tadek's Blog &#187; MISC</title>
	<atom:link href="http://tadek.pietraszek.org/blog/category/misc/feed/" rel="self" type="application/rss+xml" />
	<link>http://tadek.pietraszek.org/blog</link>
	<description>Some random notes about computers, security, cool links and others.</description>
	<lastBuildDate>Mon, 02 May 2011 22:32:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Non-recursively generating permutations</title>
		<link>http://tadek.pietraszek.org/blog/2005/10/15/non-recursively-generating-permutations/</link>
		<comments>http://tadek.pietraszek.org/blog/2005/10/15/non-recursively-generating-permutations/#comments</comments>
		<pubDate>Sat, 15 Oct 2005 16:27:44 +0000</pubDate>
		<dc:creator>tadekp</dc:creator>
				<category><![CDATA[MISC]]></category>
		<category><![CDATA[Tips&Tricks]]></category>

		<guid isPermaLink="false">http://tadek.pietraszek.org/blog/2005/10/15/non-recursively-generating-permutations/</guid>
		<description><![CDATA[A cool link: http://www.dogma.net/markn/articles/Permutations/ In essence the algorithm works as follows: start looking from the end of the sequence for two consecutive values i and ii such that i &#60; ii. start looking from the end of the sequence for the value j greater that i (the worst case getting ii or earlier). swap i [...]]]></description>
			<content:encoded><![CDATA[<p>A cool link: <a href="http://www.dogma.net/markn/articles/Permutations/">http://www.dogma.net/markn/articles/Permutations/</a></p>

<p>In essence the algorithm works as follows:</p>

<ol>
<li>start looking from the end of the sequence for two consecutive values i and ii such that i &lt; ii.</li>
<li>start looking from the end of the sequence for the value j greater that i (the worst case getting ii or earlier).</li>
<li>swap i and j</li>
<li>reverse the sequence ii to last.</li>
</ol>

<p>Examples:</p>

<pre><code>123 -&gt; i  = 2, ii = 3, j = 3  -&gt; 132
132 -&gt; i=1,ii=2,j=3 -&gt; 213
213 -&gt; i=2;ii=3;j=3 -&gt; 231
231 -&gt; i=1;ii=2;j=2 -&gt; 312
312 -&gt; i=2;ii=3;j=3 -&gt; 321
321 - END
</code></pre>

<p>It also generates only unique permutations if there are some duplicates in the sequence (e.g. AAABBB) Cool!</p>
]]></content:encoded>
			<wfw:commentRss>http://tadek.pietraszek.org/blog/2005/10/15/non-recursively-generating-permutations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stages of project management</title>
		<link>http://tadek.pietraszek.org/blog/2005/09/18/stages-of-project-management/</link>
		<comments>http://tadek.pietraszek.org/blog/2005/09/18/stages-of-project-management/#comments</comments>
		<pubDate>Sun, 18 Sep 2005 11:49:34 +0000</pubDate>
		<dc:creator>tadekp</dc:creator>
				<category><![CDATA[MISC]]></category>

		<guid isPermaLink="false">http://tadek.pietraszek.org/blog/2005/09/18/stages-of-project-management/</guid>
		<description><![CDATA[Enthusiasm Disappointment Fear Panic Looking for cuplrits Punishing of cuplrits Awards for those not involved in the project]]></description>
			<content:encoded><![CDATA[<ol>
<li>Enthusiasm</li>
<li>Disappointment</li>
<li>Fear</li>
<li>Panic</li>
<li>Looking for cuplrits</li>
<li>Punishing of cuplrits</li>
<li>Awards for those not involved in the project</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://tadek.pietraszek.org/blog/2005/09/18/stages-of-project-management/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>IP_DUMMYNET</title>
		<link>http://tadek.pietraszek.org/blog/2005/09/08/ip_dummynet/</link>
		<comments>http://tadek.pietraszek.org/blog/2005/09/08/ip_dummynet/#comments</comments>
		<pubDate>Thu, 08 Sep 2005 21:32:26 +0000</pubDate>
		<dc:creator>tadekp</dc:creator>
				<category><![CDATA[MISC]]></category>
		<category><![CDATA[Progs/Tools/Libs]]></category>

		<guid isPermaLink="false">http://tadek.pietraszek.org/blog/2005/09/08/ip_dummynet/</guid>
		<description><![CDATA[IP_DUMMYNET DUMMY_NET does not seem to work on Linux, but maybe NISTnet serves a similar purpose?]]></description>
			<content:encoded><![CDATA[<p><a href="http://info.iet.unipi.it/~luigi/ip_dummynet/">IP_DUMMYNET</a>
DUMMY_NET does not seem to work on Linux, but maybe <a href="http://snad.ncsl.nist.gov/itg/nistnet/">NISTnet</a> serves a similar purpose?</p>
]]></content:encoded>
			<wfw:commentRss>http://tadek.pietraszek.org/blog/2005/09/08/ip_dummynet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mental hot-line</title>
		<link>http://tadek.pietraszek.org/blog/2005/08/22/mental-hot-line/</link>
		<comments>http://tadek.pietraszek.org/blog/2005/08/22/mental-hot-line/#comments</comments>
		<pubDate>Mon, 22 Aug 2005 16:44:53 +0000</pubDate>
		<dc:creator>tadekp</dc:creator>
				<category><![CDATA[MISC]]></category>

		<guid isPermaLink="false">http://tadek.pietraszek.org/blog/2005/08/22/mental-hot-line/</guid>
		<description><![CDATA[This is mental hot-line, if you are obsessive compulsive, press 1 repeatedly. If you are co-dependent ask someone to press 2 for you. If you have multiple personalities press 3,4, 5 and 6. If you are paranoid, we know who you are, we will call you&#8230;&#8230;&#8230; &#8220;Hello, Welcome to the Psychiatric Hotline.&#8221; If you are [...]]]></description>
			<content:encoded><![CDATA[<p>This is mental hot-line, if you are obsessive compulsive, press 1  repeatedly. If you are co-dependent ask someone to press 2 for you. If  you have multiple personalities press 3,4, 5 and 6. If you are paranoid,  we know who you are, we will call you&#8230;&#8230;&#8230;</p>

<p>&#8220;Hello, Welcome to the Psychiatric Hotline.&#8221;
 If you are obsessive-compulsive, please press 1 repeatedly.
 If you are co-dependent, please ask someone to press 2.
 If you have multiple personalities, please press 3, 4, 5 and 6.
 If you are paranoid-delusional, we know who you are and what you
 want.  Just stay on the line until we can trace the call.
 If you are schizophrenic, listen carefully and a little
 voice will tell you which number to press.
 If you are manic-depressive, it doesn&#8217;t matter which
 number you press.  No one will answer</p>
]]></content:encoded>
			<wfw:commentRss>http://tadek.pietraszek.org/blog/2005/08/22/mental-hot-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xdoclet problem</title>
		<link>http://tadek.pietraszek.org/blog/2004/11/16/xdoclet/</link>
		<comments>http://tadek.pietraszek.org/blog/2004/11/16/xdoclet/#comments</comments>
		<pubDate>Tue, 16 Nov 2004 09:26:33 +0000</pubDate>
		<dc:creator>tadekp</dc:creator>
				<category><![CDATA[MISC]]></category>
		<category><![CDATA[Tips&Tricks]]></category>

		<guid isPermaLink="false">http://tadek.pietraszek.org/blog/2004/11/16/xdoclet/</guid>
		<description><![CDATA[Xdoclet, Jasper2 combined together in an ANT file &#8211; classloader problem &#8211; classloaredref &#8211; set to the same value]]></description>
			<content:encoded><![CDATA[<p>Xdoclet, Jasper2 combined together in an ANT file &#8211; classloader problem &#8211; classloaredref &#8211; set to the same value</p>
]]></content:encoded>
			<wfw:commentRss>http://tadek.pietraszek.org/blog/2004/11/16/xdoclet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

