<?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>Piotr Wittchen &#124; blog</title>
	<atom:link href="http://blog.wittchen.biz.pl/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.wittchen.biz.pl</link>
	<description></description>
	<lastBuildDate>Wed, 04 Apr 2012 23:33:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>jQuery File Upload &#8211; asynchronous, mass files upload</title>
		<link>http://blog.wittchen.biz.pl/en/2012/02/jquery-file-upload-asynchroniczna-masowa-wysylka-plikow/</link>
		<comments>http://blog.wittchen.biz.pl/en/2012/02/jquery-file-upload-asynchroniczna-masowa-wysylka-plikow/#comments</comments>
		<pubDate>Thu, 16 Feb 2012 04:50:12 +0000</pubDate>
		<dc:creator>Piotr Wittchen</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://blog.wittchen.biz.pl/?p=169</guid>
		<description><![CDATA[Sorry, this entry is only available in Polski.]]></description>
			<content:encoded><![CDATA[<p>Sorry, this entry is only available in <a href="http://blog.wittchen.biz.pl/feed/">Polski</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.wittchen.biz.pl/en/2012/02/jquery-file-upload-asynchroniczna-masowa-wysylka-plikow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lazy loading</title>
		<link>http://blog.wittchen.biz.pl/en/2011/12/opoznione-ladowanie/</link>
		<comments>http://blog.wittchen.biz.pl/en/2011/12/opoznione-ladowanie/#comments</comments>
		<pubDate>Thu, 29 Dec 2011 03:45:57 +0000</pubDate>
		<dc:creator>Piotr Wittchen</dc:creator>
				<category><![CDATA[Google Maps]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[Design patterns]]></category>

		<guid isPermaLink="false">http://blog.wittchen.biz.pl/?p=153</guid>
		<description><![CDATA[Sorry, this entry is only available in Polski.]]></description>
			<content:encoded><![CDATA[<p>Sorry, this entry is only available in <a href="http://blog.wittchen.biz.pl/feed/">Polski</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.wittchen.biz.pl/en/2011/12/opoznione-ladowanie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding reversed numbers</title>
		<link>http://blog.wittchen.biz.pl/en/2011/12/dodawanie-odwroconych-liczb/</link>
		<comments>http://blog.wittchen.biz.pl/en/2011/12/dodawanie-odwroconych-liczb/#comments</comments>
		<pubDate>Sun, 25 Dec 2011 19:39:33 +0000</pubDate>
		<dc:creator>Piotr Wittchen</dc:creator>
				<category><![CDATA[Algorithms]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://blog.wittchen.biz.pl/?p=139</guid>
		<description><![CDATA[Introduction In this post, I will show my proposal of adding reversed numbers algorithm. Problem is described on the website: http://www.spoj.pl/problems/ADDREV/ and appeared during the ACM Central European Programming Contest, Prague 1998. General description of the problem Input The input &#8230; <a href="http://blog.wittchen.biz.pl/en/2011/12/dodawanie-odwroconych-liczb/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h2>Introduction</h2>
<p>In this post, I will show my proposal of adding reversed numbers algorithm.</p>
<p>Problem is described on the website: <a href="http://www.spoj.pl/problems/ADDREV/">http://www.spoj.pl/problems/ADDREV/</a> and appeared during the ACM Central European Programming Contest, Prague 1998.</p>
<h2>General description of the problem</h2>
<h3>Input</h3>
<p>The input consists of N cases (equal to about 10000). The first line of the input contains only positive integer N. Then follow the cases. Each case consists of exactly one line with two positive integers separated by space. These are the reversed numbers you are to add.</p>
<h3>Output</h3>
<p>For each case, print exactly one line containing only one integer &#8211; the reversed sum of two reversed numbers. Omit any leading zeros in the output.</p>
<h3>Example</h3>
<h4>Sample input:</h4>
<p>3<br />
24 1<br />
4358 754<br />
305 794</p>
<h4>Sample output:</h4>
<p>34<br />
1998<br />
1</p>
<h4>Shortly, program should work as follows:</h4>
<ol>
<li>In the first line, we give the information, how many lines we will be processing.</li>
<li>In the next lines, we have numbers separated with space. We should reverse digits in these numbers and add them together.</li>
<li>In the next step, we should reverse digits in the generated results and display them in the consecutive lines in the output.</li>
</ol>
<h2>Proposal of the solution of the problem in the Ruby language</h2>
<pre class="brush:ruby">def addrev(n)
	b = 0
	n.split(' ').each do |a|
		b+= a.to_s.reverse.to_i
	end
	return b.to_s.reverse.to_i
end

a = true
i = j = 0
out = []

$stdin.each_line do |line|
	if(a) then
		i = line.to_i
		a = false
	else
		if(j != i)
			out.push(addrev(line.to_s))
			j += 1
		else
			break
		end
	end
end

out.each do |b|
	$stdout &lt;&lt; b &lt;&lt; "\n"
end</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.wittchen.biz.pl/en/2011/12/dodawanie-odwroconych-liczb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reverse Polish Notation</title>
		<link>http://blog.wittchen.biz.pl/en/2011/12/odwrotna-notacja-polska/</link>
		<comments>http://blog.wittchen.biz.pl/en/2011/12/odwrotna-notacja-polska/#comments</comments>
		<pubDate>Tue, 20 Dec 2011 21:05:02 +0000</pubDate>
		<dc:creator>Piotr Wittchen</dc:creator>
				<category><![CDATA[Algorithms]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://blog.wittchen.biz.pl/?p=115</guid>
		<description><![CDATA[Sorry, this entry is only available in Polski.]]></description>
			<content:encoded><![CDATA[<p>Sorry, this entry is only available in <a href="http://blog.wittchen.biz.pl/feed/">Polski</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.wittchen.biz.pl/en/2011/12/odwrotna-notacja-polska/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Beginning</title>
		<link>http://blog.wittchen.biz.pl/en/2011/11/poczatek/</link>
		<comments>http://blog.wittchen.biz.pl/en/2011/11/poczatek/#comments</comments>
		<pubDate>Wed, 09 Nov 2011 23:52:02 +0000</pubDate>
		<dc:creator>Piotr Wittchen</dc:creator>
				<category><![CDATA[No-category]]></category>

		<guid isPermaLink="false">http://blog.wittchen.biz.pl/?p=40</guid>
		<description><![CDATA[I was planning to create a blog some time ago, but I didn&#8217;t have enough time and motivation. This time, I&#8217;ve decided to finally create some kind of my e-notebook. I&#8217;m going to put here my ideas, experiments and inspirations &#8230; <a href="http://blog.wittchen.biz.pl/en/2011/11/poczatek/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.wittchen.biz.pl/wp-content/uploads/2011/11/trail_starts_here.jpg"><img class="aligncenter size-full wp-image-42" title="Trail starts here" src="http://blog.wittchen.biz.pl/wp-content/uploads/2011/11/trail_starts_here.jpg" alt="" width="600" height="200" /></a></p>
<p>I was planning to create a blog some time ago, but I didn&#8217;t have enough time and motivation. This time, I&#8217;ve decided to finally create some kind of my <em>e-notebook</em>. I&#8217;m going to put here my ideas, experiments and inspirations connected with IT. I&#8217;m not sure yet about concrete topics of the articles, but I have some ideas about that. I&#8217;ll see how it works in practice and if anybody is interested in content presented by me. I assume, that when I teach somebody, I also teach myself. That&#8217;s why I will try to present here some solutions to different problems and description of interesting stuff. Maybe some posts will touch also non-technical topics. I&#8217;ll see. Blog consists of two language versions: <a href="http://blog.wittchen.biz.pl">Polish</a> and <a href="http://blog.wittchen.biz.pl/en">English</a>. I am not English native speaker, so I apologize for all my mistakes in advance. If you find some mistakes in my posts, please notify me about that in comments or send me an <a href="mailto:piotr@wittchen.biz.pl">e-mail</a>.</p>
<p><strong><em>Technical stuff<br />
</em></strong></p>
<p>During creating this blog, I used <a href="http://en.wikipedia.org/wiki/Pareto_rule">Pareto Principle</a> and deployed free open-source software <a href="http://wordpress.org/">WordPress</a>. I&#8217;ve installed plugin for responsive web design dedicated for current template, so you can browse this blog on various devices (netbooks, mobile phones with Android OS, iOS, tablets), plugin for multi-language website, Latex and syntax highlighter. Of course, I could spend a lot of time on writing my own blog software and probably it would be faster, but achieving such a great functionality like in WordPress would take me half of a year or even longer and final user wouldn&#8217;t see the big difference. Due to the fact, that content is going to be main value of this blog, that choice is justifiable.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.wittchen.biz.pl/en/2011/11/poczatek/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

