<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>...meie igapäevast IT'd anna meile igapäev...</title>
	<atom:link href="http://dukelupus.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://dukelupus.wordpress.com</link>
	<description></description>
	<lastBuildDate>Mon, 14 May 2012 09:12:06 +0000</lastBuildDate>
	<language>et</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='dukelupus.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>...meie igapäevast IT'd anna meile igapäev...</title>
		<link>http://dukelupus.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://dukelupus.wordpress.com/osd.xml" title="...meie igapäevast IT&#039;d anna meile igapäev..." />
	<atom:link rel='hub' href='http://dukelupus.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Lil&#8217; Rush</title>
		<link>http://dukelupus.wordpress.com/2012/05/07/lil-rush/</link>
		<comments>http://dukelupus.wordpress.com/2012/05/07/lil-rush/#comments</comments>
		<pubDate>Mon, 07 May 2012 16:30:30 +0000</pubDate>
		<dc:creator>Sander</dc:creator>
				<category><![CDATA[Muusika]]></category>

		<guid isPermaLink="false">http://dukelupus.wordpress.com/?p=1187</guid>
		<description><![CDATA[I cannot believe I haven&#8217;t posted this before. Reason #328 to love Rush. &#8220;I am Geddy Lee &#8211; and I will sing whatever lyrics I want!&#8221; Filed under: Muusika<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dukelupus.wordpress.com&#038;blog=627611&#038;post=1187&#038;subd=dukelupus&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<span style="text-align:center; display: block;"><a href="http://dukelupus.wordpress.com/2012/05/07/lil-rush/"><img src="http://img.youtube.com/vi/Eh_9NY56Sxw/2.jpg" alt="" /></a></span>
<p>I cannot believe I haven&#8217;t posted this before. Reason #328 to love Rush.</p>
<p>&#8220;I am Geddy Lee &#8211; and I will sing whatever lyrics I want!&#8221;</p>
<br />Filed under: <a href='http://dukelupus.wordpress.com/category/kultuur/muusika/'>Muusika</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dukelupus.wordpress.com/1187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dukelupus.wordpress.com/1187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dukelupus.wordpress.com/1187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dukelupus.wordpress.com/1187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dukelupus.wordpress.com/1187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dukelupus.wordpress.com/1187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dukelupus.wordpress.com/1187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dukelupus.wordpress.com/1187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dukelupus.wordpress.com/1187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dukelupus.wordpress.com/1187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dukelupus.wordpress.com/1187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dukelupus.wordpress.com/1187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dukelupus.wordpress.com/1187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dukelupus.wordpress.com/1187/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dukelupus.wordpress.com&#038;blog=627611&#038;post=1187&#038;subd=dukelupus&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dukelupus.wordpress.com/2012/05/07/lil-rush/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/312b17ed683479208431a90bf95dde9c?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">DukeLupus</media:title>
		</media:content>
	</item>
		<item>
		<title>The three L&#8217;s of programming</title>
		<link>http://dukelupus.wordpress.com/2012/05/04/the-three-ls-of-programming/</link>
		<comments>http://dukelupus.wordpress.com/2012/05/04/the-three-ls-of-programming/#comments</comments>
		<pubDate>Fri, 04 May 2012 15:20:28 +0000</pubDate>
		<dc:creator>Sander</dc:creator>
				<category><![CDATA[Programmeerimine]]></category>
		<category><![CDATA[Rant]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">https://dukelupus.wordpress.com/?p=1164</guid>
		<description><![CDATA[Recently I’ve done quite a lot of interviews with candidates for a position of junior programmer, reviewing their test assignments and so forth. This has led me to wonder – what exactly am I looking for? How can I tell the difference between someone who will be a good programmer, and someone to whom programming [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dukelupus.wordpress.com&#038;blog=627611&#038;post=1164&#038;subd=dukelupus&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://dukelupus.files.wordpress.com/2012/05/html-source-code.png"><img style="background-image:none;margin:0 0 15px 15px;padding-left:0;padding-right:0;display:inline;float:right;padding-top:0;border-width:0;" title="Html-source-code" src="http://dukelupus.files.wordpress.com/2012/05/html-source-code_thumb.png?w=257&h=295" alt="Html-source-code" width="257" height="295" align="right" border="0" /></a>Recently I’ve done quite a lot of interviews with candidates for a position of junior programmer, reviewing their test assignments and so forth. This has led me to wonder – what exactly am I looking for? How can I tell the difference between someone who will be a good programmer, and someone to whom programming will be just a nine-to-five job. Or, more precisely, what makes someone a good programmer?</p>
<p>I’d like to think I am a good programmer myself – or at least strive to be one. Sure, I will never be a coding guru who has <a href="http://en.wikipedia.org/wiki/The_Art_of_Computer_Programming">all of Knuth</a> memorized and can solve the <a href="http://en.wikipedia.org/wiki/Travelling_salesman_problem">travelling salesman problem</a> with 23 cities using seven different algorithms without a computer. But I’m good enough for my daily chores.</p>
<p>This post tries to formulate some of the ideas I&#8217;ve had. I won’t pretend this to be an absolute, universal and final truth, these are just my thoughts on the subject.</p>
<h1>Love</h1>
<p>You have to love the code.</p>
<p>There is no other way to put it. You have to be passionate about what you do. The happiness when you pull off something above and beyond what the framework authors intended. Or the deep satisfaction from just finishing a <em>really</em> good piece of code. Or even the frustration of hunting an ever-illusive bug – and the joy upon fixing it.</p>
<p>If you have that passion, then you’re half-way there already. Everything else will come – knowledge, experience, “code-sight” – but if you lack that love, then you’ll never be a good programmer in my book. There is simply no replacement for it.</p>
<p>Largely, this is the reason why the famed Indian programming sweatshops (which were such a rage four or five years ago) are now mostly out of the picture. You had a circle of twenty university graduates and a supervisor walking around behind them, making sure everybody are coding as fast as they can. No slacking!</p>
<p>But the result of such work was simply not worth the price of $500..1000 per developer/month. As far as I know, a lot of the major players have now stopped outsourcing the work to such places (which are not necessarily in India, you can find programming sweatshops in quite a few places around the world). It is just cheaper to pay local, higher-paid programmers to do the same work in half of the time and a tenth of the bugs.</p>
<p>If you lack that love of code, then you still may write a decent code. But it will never be a brilliant code, it will just be a code that <em>sort of</em> works. You’ll lack the spark, the similar spark that makes Shakespeare different from a copywriter.</p>
<p>But what is there to love about the code?</p>
<p>It is the same excitement that a poet gets from writing a poem, or a painter from painting. It is the act of creation, the “develop” part of the word “developer”. We write some lines of text, which abides to the certain rules, and suddenly <em>ex nihilo!</em> we have a website, a video player, a database engine or something else.</p>
<h1>Learning</h1>
<p>If you are looking at your own code from two years ago and it looks fine, it doesn’t mean you were a good programmer two years ago. Quite the opposite, it means you haven’t grown as a programmer within these two years. You haven’t learned anything.</p>
<p>Programming is all about learning. New languages, new frameworks, new ways to do things, new tricks. Like Lewis Carrol’s <a href="http://en.wikipedia.org/wiki/Red_Queen_%28Through_the_Looking-Glass%29">Red Queen</a> put it, “It takes all the running you can do, to keep in the same place.”</p>
<p>If you want to become a programmer, you will not be able to stop learning the day you left the university. In fact, you’ll realize that a lot of what your <em>Alma Mater</em> taught you is, frankly put, useless.</p>
<p>My own way to become a programmer was… convoluted, to say the least. Some day I will write a post about it – but suffice it to say that I don’t have a formal education in programming. I am completely self-taught. And, in a way, that is a good thing. Constantly learning something new is normal for me, whereas people just out of university often go “but I was taught to do it <em>this</em> way?!”</p>
<p>And so far, every time I’ve looked back at myself from two years ago, I’ve been able to go “boy, was I stupid back then. I am glad I am so much better now.” I hope this never ends.</p>
<h1>Lazy</h1>
<p>A programmer I used to know needed to generate some HTML. Cleverly, he used helper methods to do that. He needed H1, so he created a method similar to:</p>
<div id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:dec171b6-1b9d-46b3-938f-acb1232eb1b0" class="wlWriterEditableSmartContent" style="margin:0;display:inline;float:none;padding:0;">
<div style="border:#000080 1px solid;color:#000;font-family:'Courier New', Courier, Monospace;font-size:10pt;">
<div style="background:#ddd;max-height:500px;overflow:auto;">
<ol style="background:#ffffff;margin:0 0 0 2em;padding:0 0 0 5px;" start="1">
<li><span style="color:#0000ff;">public</span> <span style="color:#0000ff;">static</span> <span style="color:#0000ff;">string</span> GetH1(<span style="color:#0000ff;">string</span> content)</li>
<li style="background:#f3f3f3;">{</li>
<li>    <span style="color:#0000ff;">return</span> <span style="color:#0000ff;">string</span>.Format(<span style="color:#a31515;">&#8220;&lt;h1&gt;{</span><span style="color:#3cb371;">0}</span><span style="color:#a31515;">&lt;/h1&gt;&#8221;</span>, content);</li>
<li style="background:#f3f3f3;">}</li>
</ol>
</div>
</div>
</div>
<p>He also needed a H2. So:</p>
<div id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:23ebe681-be07-4acc-8b2b-1fe805f6b3c2" class="wlWriterEditableSmartContent" style="margin:0;display:inline;float:none;padding:0;">
<div style="border:#000080 1px solid;color:#000;font-family:'Courier New', Courier, Monospace;font-size:10pt;">
<div style="background:#ddd;max-height:300px;overflow:auto;">
<ol style="background:#ffffff;margin:0 0 0 2em;padding:0 0 0 5px;" start="1">
<li><span style="color:#0000ff;">public</span> <span style="color:#0000ff;">static</span> <span style="color:#0000ff;">string</span> GetH2(<span style="color:#0000ff;">string</span> content)</li>
<li style="background:#f3f3f3;">{</li>
<li>    <span style="color:#0000ff;">return</span> <span style="color:#0000ff;">string</span>.Format(<span style="color:#a31515;">&#8220;&lt;h2&gt;{</span><span style="color:#3cb371;">0}</span><span style="color:#a31515;">&lt;/h2&gt;&#8221;</span>, content);</li>
<li style="background:#f3f3f3;">}</li>
</ol>
</div>
</div>
</div>
<p>And then he needed H2 with an ID. Lo and behold:</p>
<div style="margin:0;display:inline;float:none;padding:0;">
<div>
<div style="background:#ddd;max-height:300px;overflow:auto;">
<ol style="margin:0 0 0 2em;background:#ffffff;padding:0 0 0 5px;">
<li><span style="color:#0000ff;">public</span> <span style="color:#0000ff;">static</span> <span style="color:#0000ff;">string</span> GetH2(<span style="color:#0000ff;">string</span> content, <span style="color:#0000ff;">string</span> id)</li>
<li style="background:#f3f3f3;">{</li>
<li>    <span style="color:#0000ff;">return</span> <span style="color:#0000ff;">string</span>.Format(<span style="color:#a31515;">&#8220;&lt;h2 id=&#8217;{</span><span style="color:#3cb371;">0}&#8217;</span><span style="color:#a31515;">&gt;{</span><span style="color:#3cb371;">1}</span><span style="color:#a31515;">&lt;/h2&gt;&#8221;</span>, id, content);</li>
<li style="background:#f3f3f3;">}</li>
</ol>
</div>
</div>
</div>
<p>And then he also needed H2 with a class. I’ll spare you from the code now, but you can guess what he did.</p>
<p>But this was <em>just for H1 and H2</em> tags. He needed various other tags as well – img, div, p and so forth. And yes, you guessed right. He had overloaded methods for each and every one of them. The helper class ended up with about 30 methods in a several hundred lines of code.</p>
<p>Me, I’m a lazy bastard. I would have written:</p>
<div style="margin:0;display:inline;float:none;padding:0;">
<div>
<div style="background:#ddd;">
<ol style="margin:0 0 0 2.5em;background:#ffffff;padding:0 0 0 5px;">
<li><span style="color:#0000ff;">public</span> <span style="color:#0000ff;">static</span> <span style="color:#0000ff;">string</span> RenderTag(<span style="color:#0000ff;">string</span> tag, <span style="color:#0000ff;">object</span> attributes = <span style="color:#0000ff;">null</span>, <span style="color:#0000ff;">string</span> content = <span style="color:#0000ff;">null</span>)</li>
<li style="background:#f3f3f3;">{</li>
<li>    tag = tag.ToLowerInvariant();</li>
<li style="background:#f3f3f3;">    <span style="color:#0000ff;">var</span> html = <span style="color:#0000ff;">new</span> <span style="color:#2b91af;">StringBuilder</span>();</li>
<li></li>
<li style="background:#f3f3f3;">    html.AppendFormat(<span style="color:#a31515;">&#8220;&lt;{</span><span style="color:#3cb371;">0}</span><span style="color:#a31515;">&#8220;</span>, tag);</li>
<li></li>
<li style="background:#f3f3f3;">    <span style="color:#0000ff;">if</span> (attributes != <span style="color:#0000ff;">null</span>)</li>
<li>        <span style="color:#0000ff;">foreach</span> (<span style="color:#0000ff;">var</span> prop <span style="color:#0000ff;">in</span> attributes.GetType().GetProperties(<span style="color:#2b91af;">BindingFlags</span>.Instance | <span style="color:#2b91af;">BindingFlags</span>.Public))</li>
<li style="background:#f3f3f3;">            html.AppendFormat(<span style="color:#a31515;">&#8221; {</span><span style="color:#3cb371;">0}</span><span style="color:#a31515;">=\&#8221;{</span><span style="color:#3cb371;">1}\</span><span style="color:#a31515;">&#8220;&#8221;</span>, prop.Name, prop.GetValue(attributes, <span style="color:#0000ff;">null</span>));</li>
<li></li>
<li style="background:#f3f3f3;">    html.Append(content == <span style="color:#0000ff;">null</span> ? <span style="color:#a31515;">&#8220;/&gt;&#8221;</span> : <span style="color:#0000ff;">string</span>.Format(<span style="color:#a31515;">&#8220;&gt;{</span><span style="color:#3cb371;">0}</span><span style="color:#a31515;">&lt;/{</span><span style="color:#3cb371;">1}</span><span style="color:#a31515;">&gt;&#8221;</span>, content, tag));</li>
<li>    <span style="color:#0000ff;">return</span> html.ToString();</li>
<li style="background:#f3f3f3;">}</li>
</ol>
</div>
</div>
</div>
<p>Less than dozen of lines of code without empty lines and braces. And that’s it for every tag you can imagine. Call it any way you like – <span style="font-family:Consolas;font-size:small;">RenderTag(“br”); RenderTag(“h1”, null, “header”);, RenderTag(“h2”, new { id=”myId”, @class=”myClass” }, “subheader”);</span> – it just works. You can even render tags inside tags with that method.</p>
<p>Sure, I wouldn’t use that method to render a full website, but for a few dozen lines of HTML that was needed, it would have been perfect. Far faster to write than hundreds of lines of repetitive code.</p>
<p>The point where I’m getting to is that you can be eager and write more code. Or you can be lazy and figure out a way to write less code. Being lazy is a <em>good</em> thing in a programmer. It forces us to find patterns and promotes code reuse. It makes us more <em>effective</em>. It makes us <em>better</em>.</p>
<p>Or, to use the words of Terry Pratchett, “Having to haul around extra poundage was far too much effort, so he saw to it that he never put it on and he kept himself in trim because doing things with decent muscles was far less effort than trying to achieve things with bags of flab.”</p>
<p>&#8212;-</p>
<p><strong>tl;dr: just read the damn thing.</strong></p>
<br />Filed under: <a href='http://dukelupus.wordpress.com/category/infotehnoloogia/programmeerimine/'>Programmeerimine</a>, <a href='http://dukelupus.wordpress.com/category/rant/'>Rant</a> Tagged: <a href='http://dukelupus.wordpress.com/tag/programming/'>programming</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dukelupus.wordpress.com/1164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dukelupus.wordpress.com/1164/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dukelupus.wordpress.com/1164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dukelupus.wordpress.com/1164/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dukelupus.wordpress.com/1164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dukelupus.wordpress.com/1164/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dukelupus.wordpress.com/1164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dukelupus.wordpress.com/1164/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dukelupus.wordpress.com/1164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dukelupus.wordpress.com/1164/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dukelupus.wordpress.com/1164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dukelupus.wordpress.com/1164/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dukelupus.wordpress.com/1164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dukelupus.wordpress.com/1164/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dukelupus.wordpress.com&#038;blog=627611&#038;post=1164&#038;subd=dukelupus&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dukelupus.wordpress.com/2012/05/04/the-three-ls-of-programming/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/312b17ed683479208431a90bf95dde9c?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">DukeLupus</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/05/html-source-code_thumb.png" medium="image">
			<media:title type="html">Html-source-code</media:title>
		</media:content>
	</item>
		<item>
		<title>XSS protection: encode all class string properties easily</title>
		<link>http://dukelupus.wordpress.com/2012/04/20/xss-protection-encode-all-of-the-class-string-properties-easily/</link>
		<comments>http://dukelupus.wordpress.com/2012/04/20/xss-protection-encode-all-of-the-class-string-properties-easily/#comments</comments>
		<pubDate>Fri, 20 Apr 2012 08:58:40 +0000</pubDate>
		<dc:creator>Sander</dc:creator>
				<category><![CDATA[ASP.NET MVC]]></category>
		<category><![CDATA[Programmeerimine]]></category>
		<category><![CDATA[cross-site scripting]]></category>
		<category><![CDATA[HTML encoding]]></category>
		<category><![CDATA[Reflection]]></category>
		<category><![CDATA[XSS]]></category>

		<guid isPermaLink="false">https://dukelupus.wordpress.com/?p=1160</guid>
		<description><![CDATA[Protecting your web applications against XSS or cross-site scripting should be a no-brainer for web programmers. The vulnerability is well-known and understood. And yet, by far the majority of website security vulnerabilities are XSS-related. Either we forget to strip the tags, or whitelist the tags, or encode the string – or in many cases, deem [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dukelupus.wordpress.com&#038;blog=627611&#038;post=1160&#038;subd=dukelupus&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img style="background-image:none;margin:0 0 10px 10px;padding-left:0;padding-right:0;display:inline;float:right;padding-top:0;border-width:0;" title="CSharpLogo" border="0" alt="CSharpLogo" align="right" src="http://dukelupus.files.wordpress.com/2012/02/csharplogo.png?w=227&amp;h=158&h=158" width="227" height="158" />
<p>Protecting your web applications against XSS or <a href="http://en.wikipedia.org/wiki/Cross-site_scripting">cross-site scripting</a> should be a no-brainer for web programmers. The vulnerability is well-known and understood.</p>
<p>And yet, by far the majority of website security vulnerabilities are XSS-related. Either we forget to strip the tags, or whitelist the tags, or encode the string – or in many cases, deem it as an unnecessary precaution. </p>
<p>Don’t do the latter. Always minimize the attack surface, even if you’re doing an intranet web application for six users. There is no such thing as an application or website that is completely secure, but that is what we should aim for, even though the goal is impossible.</p>
<p>To help with encoding, I created a helper class that will automatically help to encode/whitelist/strip the tags from all writeable string properties from a class, be it <a href="http://en.wikipedia.org/wiki/Data_transfer_object">DTO</a>, viewmodel, entity from <a href="http://en.wikipedia.org/wiki/ADO.NET_Entity_Framework">EF</a> or elsewhere. Note that this is NOT a complete solution – you need to decide which type of protection to implement, see the newValue variable. Tag whitelist or wholesale HttpUtility.HtmlEncode() are probably your best bets (I’ll try do an article about HTML tag whitelisting next week).</p>
<p>I also encourage you to extend and improve my solution, as there are great many things that could be added – such as allowing for specific XSS protection for different fields (using an attribute, for example), encoding of string in arrays/lists/dictionaries, to work with fields and private properties and so forth.</p>
<p>HtmlEncoder has just one method – EncodeHtml() – with two signatures. You can specify which properties to exclude from XSS protection, ie. say you have a DTO class of a comment – with string properties such as Content, Email, Name, Website and Signature. You want to allow limited HTML in the signature and content, so you don’t want them to be completely encoded and therefore need to exclude them.</p>
<h5>Use:</h5>
<ul>
<li><font size="2" face="Consolas">HtmlEncoder.EncodeHtml(myCommentDto);</font> if you want all of the string properties to be affected. </li>
<li><font size="2" face="Consolas">HtmlEncoder.EncodeHtml(myCommentDto, x =&gt; x.Content, x =&gt; x.Signature);</font> – exclude Content and Signature using <a href="http://en.wikipedia.org/wiki/Anonymous_function#C.23_lambda_expressions">lambda expressions</a>. This is the preferred method of excluding properties, as the compiler will catch typos or property name changes. You will not get an error, if you add a non-string property by accident.</li>
<li><font size="2" face="Consolas">HtmlEncoder.EncodeHtml(myCommentDto, &quot;Content&quot;, &quot;Signature&quot;);</font> – exclude Content and Signature specifying the property names as strings. Note that typos or property name changes mean that the property will still be encoded. You may even want to declare this method private, so other programmers will not be able to use it and introduce subtle, hard to find bugs.</li>
</ul>
<p>And here is the class. Happy encoding! </p>
<div style="margin:0;display:inline;float:none;padding:0;" id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:fc720fb7-7210-47d6-b9e6-9c4ef2919e99" class="wlWriterEditableSmartContent">
<div style="border:#000080 1px solid;color:#000;font-family:'Courier New', Courier, Monospace;font-size:10pt;">
<div style="background:#ddd;overflow:auto;">
<ol start="1" style="background:#ffffff;margin:0 0 0 2.5em;padding:0 0 0 5px;">
<li><span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;summary&gt;</span></li>
<li style="background:#f3f3f3;"><span style="color:#808080;">///</span><span style="color:#008000;"> Helper to escape HTML in all string fields of a class.</span></li>
<li><span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;/summary&gt;</span></li>
<li style="background:#f3f3f3;"><span style="color:#0000ff;">public</span> <span style="color:#0000ff;">static</span> <span style="color:#0000ff;">class</span> <span style="color:#2b91af;">HtmlEncoder</span></li>
<li>{</li>
<li style="background:#f3f3f3;">    <span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;summary&gt;</span></li>
<li>    <span style="color:#808080;">///</span><span style="color:#008000;"> Encodes the HTML in all writeable public string properties, which are not included into excludedProperties expressions</span></li>
<li style="background:#f3f3f3;">    <span style="color:#808080;">///</span><span style="color:#008000;"> Use: HtmlEncoder.EncodeHtml(comment, x =&gt; x.CommentBody, x =&gt; x.SomeOtherProperty, x =&gt; x.CreatedBy, x =&gt; x.CreatedDate);</span></li>
<li>    <span style="color:#808080;">///</span><span style="color:#008000;"> or: HtmlEncoder.EncodeHtml(comment); if you don&#039;t need to exclude any fields</span></li>
<li style="background:#f3f3f3;">    <span style="color:#808080;">///</span><span style="color:#008000;"> Non-string properties will not be affected and no error is thrown if you include them to the excluded properties</span></li>
<li>    <span style="color:#808080;">///</span><span style="color:#008000;"> All values of the excluded string properties will not be changed</span></li>
<li style="background:#f3f3f3;">    <span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;/summary&gt;</span></li>
<li>    <span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;typeparam name=&quot;TEntity&quot;&gt;</span><span style="color:#008000;">The type of the entity.</span><span style="color:#808080;">&lt;/typeparam&gt;</span></li>
<li style="background:#f3f3f3;">    <span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;param name=&quot;entity&quot;&gt;</span><span style="color:#008000;">The entity.</span><span style="color:#808080;">&lt;/param&gt;</span></li>
<li>    <span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;param name=&quot;excludedProperties&quot;&gt;</span><span style="color:#008000;">The excluded properties.</span><span style="color:#808080;">&lt;/param&gt;</span></li>
<li style="background:#f3f3f3;">    <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">static</span> <span style="color:#0000ff;">void</span> EncodeHtml&lt;TEntity&gt;(TEntity entity, <span style="color:#0000ff;">params</span> <span style="color:#2b91af;">Expression</span>&lt;<span style="color:#2b91af;">Func</span>&lt;TEntity, <span style="color:#0000ff;">object</span>&gt;&gt;[] excludedProperties) <span style="color:#0000ff;">where</span> TEntity : <span style="color:#0000ff;">class</span></li>
<li>    {</li>
<li style="background:#f3f3f3;">        EncodeHtml(entity, GetExcludedStringPropertyNames(excludedProperties).ToArray());</li>
<li>    }</li>
<li style="background:#f3f3f3;">&nbsp;</li>
<li>    <span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;summary&gt;</span></li>
<li style="background:#f3f3f3;">    <span style="color:#808080;">///</span><span style="color:#008000;"> Encodes the HTML in all writeable public string properties, which are not included into excludedProperties</span></li>
<li>    <span style="color:#808080;">///</span><span style="color:#008000;"> Use: HtmlEncoder.EncodeHtml(comment, &quot;CommentBody&quot;, &quot;SomeOtherProperty&quot;, &quot;CreatedBy&quot;)</span></li>
<li style="background:#f3f3f3;">    <span style="color:#808080;">///</span><span style="color:#008000;"> All values of the excluded string properties will not be changed</span></li>
<li>    <span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;/summary&gt;</span></li>
<li style="background:#f3f3f3;">    <span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;typeparam name=&quot;TEntity&quot;&gt;&lt;/typeparam&gt;</span></li>
<li>    <span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;param name=&quot;entity&quot;&gt;&lt;/param&gt;</span></li>
<li style="background:#f3f3f3;">    <span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;param name=&quot;excludedProperties&quot;&gt;&lt;/param&gt;</span></li>
<li>    <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">static</span> <span style="color:#0000ff;">void</span> EncodeHtml&lt;TEntity&gt;(TEntity entity, <span style="color:#0000ff;">params</span> <span style="color:#0000ff;">string</span>[] excludedProperties) <span style="color:#0000ff;">where</span> TEntity : <span style="color:#0000ff;">class</span></li>
<li style="background:#f3f3f3;">    {</li>
<li>        <span style="color:#0000ff;">var</span> stringProperties = <span style="color:#0000ff;">typeof</span>(TEntity).GetProperties(<span style="color:#2b91af;">BindingFlags</span>.Instance | <span style="color:#2b91af;">BindingFlags</span>.SetProperty | <span style="color:#2b91af;">BindingFlags</span>.Public)</li>
<li style="background:#f3f3f3;">            .Where(x =&gt; x.PropertyType == <span style="color:#0000ff;">typeof</span>(<span style="color:#0000ff;">string</span>) &amp;&amp; !excludedProperties.Contains(x.Name)).ToList();</li>
<li>&nbsp;</li>
<li style="background:#f3f3f3;">        <span style="color:#0000ff;">foreach</span> (<span style="color:#0000ff;">var</span> propertyInfo <span style="color:#0000ff;">in</span> stringProperties)</li>
<li>        {</li>
<li style="background:#f3f3f3;">            <span style="color:#0000ff;">var</span> value = (<span style="color:#0000ff;">string</span>)propertyInfo.GetValue(entity, <span style="color:#0000ff;">null</span>);</li>
<li>&nbsp;</li>
<li style="background:#f3f3f3;">            <span style="color:#0000ff;">if</span> (!<span style="color:#0000ff;">string</span>.IsNullOrWhiteSpace(value))</li>
<li>            {</li>
<li style="background:#f3f3f3;">                <span style="color:#008000;">//Apply here a suitable method of encoding &#8211; replace, wholesale HtmlEncode(), tag whitelisting or something else</span></li>
<li>&nbsp;</li>
<li style="background:#f3f3f3;">                <span style="color:#0000ff;">var</span> newValue = value.Replace(<span style="color:#a31515;">&#039;&lt;&#039;</span>, <span style="color:#a31515;">&#039; &#039;</span>).Replace(<span style="color:#a31515;">&#039;&gt;&#039;</span>, <span style="color:#a31515;">&#039; &#039;</span>);</li>
<li>                <span style="color:#008000;">//var newValue = HttpUtility.HtmlEncode(value);</span></li>
<li style="background:#f3f3f3;">&nbsp;</li>
<li>&nbsp;</li>
<li style="background:#f3f3f3;">                propertyInfo.SetValue(entity, newValue, <span style="color:#0000ff;">null</span>);</li>
<li>            }</li>
<li style="background:#f3f3f3;">        }</li>
<li>    }</li>
<li style="background:#f3f3f3;">&nbsp;</li>
<li>    <span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;summary&gt;</span></li>
<li style="background:#f3f3f3;">    <span style="color:#808080;">///</span><span style="color:#008000;"> Get from expressions only writeable string property names, so we know what to exclude.</span></li>
<li>    <span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;/summary&gt;</span></li>
<li style="background:#f3f3f3;">    <span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;typeparam name=&quot;TEntity&quot;&gt;&lt;/typeparam&gt;</span></li>
<li>    <span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;param name=&quot;expressions&quot;&gt;&lt;/param&gt;</span></li>
<li style="background:#f3f3f3;">    <span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;returns&gt;&lt;/returns&gt;</span></li>
<li>    <span style="color:#0000ff;">private</span> <span style="color:#0000ff;">static</span> <span style="color:#2b91af;">List</span>&lt;<span style="color:#0000ff;">string</span>&gt; GetExcludedStringPropertyNames&lt;TEntity&gt;(<span style="color:#0000ff;">params</span> <span style="color:#2b91af;">Expression</span>&lt;<span style="color:#2b91af;">Func</span>&lt;TEntity, <span style="color:#0000ff;">object</span>&gt;&gt;[] expressions)</li>
<li style="background:#f3f3f3;">    {</li>
<li>        <span style="color:#0000ff;">var</span> propertyNames = <span style="color:#0000ff;">new</span> <span style="color:#2b91af;">List</span>&lt;<span style="color:#0000ff;">string</span>&gt;(expressions.Length);</li>
<li style="background:#f3f3f3;">&nbsp;</li>
<li>        <span style="color:#008000;">//this can be completely LINQ, but is way easier to debug and understand as foreach</span></li>
<li style="background:#f3f3f3;">        <span style="color:#0000ff;">foreach</span> (<span style="color:#0000ff;">var</span> expression <span style="color:#0000ff;">in</span> expressions)</li>
<li>        {</li>
<li style="background:#f3f3f3;">            <span style="color:#0000ff;">if</span> (expression.Body.NodeType == <span style="color:#2b91af;">ExpressionType</span>.MemberAccess)</li>
<li>            {</li>
<li style="background:#f3f3f3;">                <span style="color:#0000ff;">var</span> memberExpression = (<span style="color:#2b91af;">MemberExpression</span>)expression.Body;</li>
<li>                <span style="color:#0000ff;">var</span> info = memberExpression.Member <span style="color:#0000ff;">as</span> <span style="color:#2b91af;">PropertyInfo</span>;</li>
<li style="background:#f3f3f3;">                <span style="color:#0000ff;">if</span> (info != <span style="color:#0000ff;">null</span> &amp;&amp; info.CanWrite &amp;&amp; info.PropertyType == <span style="color:#0000ff;">typeof</span>(<span style="color:#0000ff;">string</span>))</li>
<li>                {</li>
<li style="background:#f3f3f3;">                    propertyNames.Add(memberExpression.Member.Name);</li>
<li>                }</li>
<li style="background:#f3f3f3;">            }</li>
<li>        }</li>
<li style="background:#f3f3f3;">        <span style="color:#0000ff;">return</span> propertyNames;</li>
<li>    }</li>
</ol></div>
</p></div>
</p></div>
<br />Filed under: <a href='http://dukelupus.wordpress.com/category/infotehnoloogia/programmeerimine/asp-net-mvc/'>ASP.NET MVC</a>, <a href='http://dukelupus.wordpress.com/category/infotehnoloogia/programmeerimine/'>Programmeerimine</a> Tagged: <a href='http://dukelupus.wordpress.com/tag/cross-site-scripting/'>cross-site scripting</a>, <a href='http://dukelupus.wordpress.com/tag/html-encoding/'>HTML encoding</a>, <a href='http://dukelupus.wordpress.com/tag/reflection/'>Reflection</a>, <a href='http://dukelupus.wordpress.com/tag/xss/'>XSS</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dukelupus.wordpress.com/1160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dukelupus.wordpress.com/1160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dukelupus.wordpress.com/1160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dukelupus.wordpress.com/1160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dukelupus.wordpress.com/1160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dukelupus.wordpress.com/1160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dukelupus.wordpress.com/1160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dukelupus.wordpress.com/1160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dukelupus.wordpress.com/1160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dukelupus.wordpress.com/1160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dukelupus.wordpress.com/1160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dukelupus.wordpress.com/1160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dukelupus.wordpress.com/1160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dukelupus.wordpress.com/1160/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dukelupus.wordpress.com&#038;blog=627611&#038;post=1160&#038;subd=dukelupus&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dukelupus.wordpress.com/2012/04/20/xss-protection-encode-all-of-the-class-string-properties-easily/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/312b17ed683479208431a90bf95dde9c?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">DukeLupus</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/02/csharplogo.png?w=227&#38;h=158&#38;h=158" medium="image">
			<media:title type="html">CSharpLogo</media:title>
		</media:content>
	</item>
		<item>
		<title>Holy fuq! 146 801 daily views</title>
		<link>http://dukelupus.wordpress.com/2012/04/18/holy-fuq-146-801-daily-views/</link>
		<comments>http://dukelupus.wordpress.com/2012/04/18/holy-fuq-146-801-daily-views/#comments</comments>
		<pubDate>Wed, 18 Apr 2012 13:12:43 +0000</pubDate>
		<dc:creator>Sander</dc:creator>
				<category><![CDATA[Isiklikud]]></category>

		<guid isPermaLink="false">https://dukelupus.wordpress.com/?p=1157</guid>
		<description><![CDATA[I decided to write a small blog post about one of my pet peeves – that people say they “believe in evolution” (and nitpickers on word “believe”, please see http://en.wikipedia.org/wiki/Belief#Belief-in). Evolution is a scientific theory and as such does not require believing in it. So I wrote a small, couple of hundred words essay about [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dukelupus.wordpress.com&#038;blog=627611&#038;post=1157&#038;subd=dukelupus&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I decided to write a <a href="http://dukelupus.wordpress.com/2012/04/16/i-dont-believe-in-evolution/">small blog post</a> about one of my pet peeves – that people say they “believe in evolution” (and nitpickers on word “believe”, please see <a href="http://en.wikipedia.org/wiki/Belief#Belief-in">http://en.wikipedia.org/wiki/Belief#Belief-in</a>). Evolution is a scientific theory and as such does not require believing in it.</p>
<p>So I wrote a small, couple of hundred words essay about it – and had Mich review it for grammar and ideas, thank you! And posted it, despite being somewhat unhappy with the last sentence – originally “Evolution is a proven theory. And it does not require belief.” I edited it a bit later, to say “Evolution has been proven. And it does not require belief.”</p>
<p>I expected the post would get a couple of dozen views from my friends and acquaintances, same as always. I thought it might be interesting for others, too, so I <a href="http://www.reddit.com/r/atheism/comments/scc08/i_dont_believe_in_evolution/">posted it to /r/atheism</a> – to improve the world, one person at a time. I figured it would get about five upvotes and then be buried by dozens of downvotes, same as all my reddit submissions. You’ll need a rage comic or cat picture to get the upvotes…</p>
<p><img style="border-bottom:0;border-left:0;margin:0 0 15px 15px;display:inline;border-top:0;border-right:0;" title="UsersOnline" border="0" alt="UsersOnline" align="right" src="http://dukelupus.files.wordpress.com/2012/04/usersonline.png?w=300&h=402" width="300" height="402" />But no. It got a dozen upvotes. And then a dozen more. And then even more. Long story short, I ended up at 2nd place in /r/atheism/ – subreddit with almost 700 000 followers – and that also meant I was in frontpage of reddit!!!</p>
<p>That all was kind of freaky. My small blog has usually 2..3 people online, but now there were <a href="http://whos.amung.us/stats/pcs6t1he/">up to 5700</a> at the same time! There were hundreds of views every minute! And people started sharing the post in Facebook, Twitter and elsewhere. WordPress actually got a kind of sluggish.</p>
<p>It was amusing to see how in /r/atheism I had 90+% upvote rate, but once the submission hit the frontpage, there were more and more downvotes – currently just at lowly 58%. Also, then the first fundies started commenting in both reddit and the blog – my very first personal experience with such nutcases. It is just insane how they don’t understand even the basics of evolution and yet comment on it as experts.</p>
<p>And the number of comments! 421 in reddit, 137 for the blog post. Now I know how <a href="freethoughtblogs.com/pharyngula/">PZ Myers</a> must feel every morning.</p>
<p>And so I hit 146 801 views that day. Insane, considering I had started the day with just 244 000 views all-time, since my first blog post in 2006-12-21. As I am writing this, the blog has 468 749 all-time views – second day the evolution post had 76 670 and today it looks I might have “just” around 5000 visitors – that is a bit more that my blog gets usually in a month.</p>
<p><img style="border-bottom:0;border-left:0;margin:10px auto;display:block;float:none;border-top:0;border-right:0;" title="DailyStats" border="0" alt="DailyStats" src="http://dukelupus.files.wordpress.com/2012/04/dailystats.png?w=906&h=330" width="906" height="330" /> As you can see, my regular days with 200..300 views don’t even show up in the graph…</p>
<br />Filed under: <a href='http://dukelupus.wordpress.com/category/isiklikud/'>Isiklikud</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dukelupus.wordpress.com/1157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dukelupus.wordpress.com/1157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dukelupus.wordpress.com/1157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dukelupus.wordpress.com/1157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dukelupus.wordpress.com/1157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dukelupus.wordpress.com/1157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dukelupus.wordpress.com/1157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dukelupus.wordpress.com/1157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dukelupus.wordpress.com/1157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dukelupus.wordpress.com/1157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dukelupus.wordpress.com/1157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dukelupus.wordpress.com/1157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dukelupus.wordpress.com/1157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dukelupus.wordpress.com/1157/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dukelupus.wordpress.com&#038;blog=627611&#038;post=1157&#038;subd=dukelupus&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dukelupus.wordpress.com/2012/04/18/holy-fuq-146-801-daily-views/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/312b17ed683479208431a90bf95dde9c?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">DukeLupus</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/04/usersonline.png" medium="image">
			<media:title type="html">UsersOnline</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/04/dailystats.png" medium="image">
			<media:title type="html">DailyStats</media:title>
		</media:content>
	</item>
		<item>
		<title>I don&#8217;t believe in evolution</title>
		<link>http://dukelupus.wordpress.com/2012/04/16/i-dont-believe-in-evolution/</link>
		<comments>http://dukelupus.wordpress.com/2012/04/16/i-dont-believe-in-evolution/#comments</comments>
		<pubDate>Mon, 16 Apr 2012 13:11:02 +0000</pubDate>
		<dc:creator>Sander</dc:creator>
				<category><![CDATA[Rant]]></category>
		<category><![CDATA[Terve mõistus]]></category>
		<category><![CDATA[creationism]]></category>
		<category><![CDATA[evolution]]></category>
		<category><![CDATA[science]]></category>

		<guid isPermaLink="false">https://dukelupus.wordpress.com/?p=1150</guid>
		<description><![CDATA[I don’t believe in evolution. I can hear what you are thinking: Is he an idiot or something? Even though he has an MSc in animal ecology and an unfinished PhD in evolutionary ecology, he still doesn’t believe in evolution?! But here’s the thing: evolution is a scientific theory, same as the theory of gravity, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dukelupus.wordpress.com&#038;blog=627611&#038;post=1150&#038;subd=dukelupus&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img style="margin:0 0 15px 15px;display:inline;border:0;" title="EvolveFish" src="http://dukelupus.files.wordpress.com/2012/04/evolvefish.png?w=269&h=159" alt="EvolveFish" width="269" height="159" align="right" border="0" /> I don’t believe in evolution.</p>
<p>I can hear what you are thinking: Is he an idiot or something? Even though he has an MSc in animal ecology and an unfinished PhD in evolutionary ecology, he still doesn’t believe in evolution?!</p>
<p>But here’s the thing: evolution is a <a href="http://en.wikipedia.org/wiki/Scientific_theory">scientific theory</a>, same as the theory of gravity, germ theory, cell theory, quantum theory, theory of relativity and many others.</p>
<p>Unlike religion, science doesn’t work with beliefs – you take the facts supporting the theory and compare those with facts not supporting the theory. Then you decide if the theory is correct – or perhaps you should improve the theory, choose an alternate theory or scrap the whole thing altogether.</p>
<p>And the theory of evolution has literally hundreds of thousands (if not millions) scientifically validated observations and experiments supporting it. You have scientific articles, monographs, experiments (yes, there are loads and loads of experiments on evolution), observations and so forth.</p>
<p>And now we take the facts not supporting or invalidating the theory of evolution… oh, wait. There aren’t any.</p>
<p>There is not a single observation or experiment that invalidates evolution. No fossil rabbits in Precambrian strata. No human footprints next to dinosaur footprints. No genetic data showing the synchronized bottleneck of Noah’s ark in all of the animal species. No radioactive dating results or anything else disproving the Cambrian explosion.</p>
<p>There simply is nothing. Or, like Richard Dawkins put it, “Today the theory of evolution is about as much open to doubt as the theory that the earth goes round the sun”.</p>
<p>So, I don’t believe in evolution. But I also don’t believe in the chair I’m sitting on right now. I can prove the latter exists by an empirical observations (looking and touching it) and testing (I sit down – if didn’t fall on the floor, the chair probably exists).</p>
<p>Evolution has been proven. And it does not require belief.</p>
<br />Filed under: <a href='http://dukelupus.wordpress.com/category/rant/'>Rant</a>, <a href='http://dukelupus.wordpress.com/category/terve-moistus/'>Terve mõistus</a> Tagged: <a href='http://dukelupus.wordpress.com/tag/creationism/'>creationism</a>, <a href='http://dukelupus.wordpress.com/tag/evolution/'>evolution</a>, <a href='http://dukelupus.wordpress.com/tag/science/'>science</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dukelupus.wordpress.com/1150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dukelupus.wordpress.com/1150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dukelupus.wordpress.com/1150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dukelupus.wordpress.com/1150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dukelupus.wordpress.com/1150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dukelupus.wordpress.com/1150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dukelupus.wordpress.com/1150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dukelupus.wordpress.com/1150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dukelupus.wordpress.com/1150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dukelupus.wordpress.com/1150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dukelupus.wordpress.com/1150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dukelupus.wordpress.com/1150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dukelupus.wordpress.com/1150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dukelupus.wordpress.com/1150/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dukelupus.wordpress.com&#038;blog=627611&#038;post=1150&#038;subd=dukelupus&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dukelupus.wordpress.com/2012/04/16/i-dont-believe-in-evolution/feed/</wfw:commentRss>
		<slash:comments>204</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/312b17ed683479208431a90bf95dde9c?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">DukeLupus</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/04/evolvefish.png" medium="image">
			<media:title type="html">EvolveFish</media:title>
		</media:content>
	</item>
		<item>
		<title>Itaalia. 19. m&#228;rts: Rooma</title>
		<link>http://dukelupus.wordpress.com/2012/04/13/itaalia-19-mrts-rooma/</link>
		<comments>http://dukelupus.wordpress.com/2012/04/13/itaalia-19-mrts-rooma/#comments</comments>
		<pubDate>Fri, 13 Apr 2012 10:34:00 +0000</pubDate>
		<dc:creator>Sander</dc:creator>
				<category><![CDATA[Reisid]]></category>

		<guid isPermaLink="false">https://dukelupus.wordpress.com/?p=1147</guid>
		<description><![CDATA[Oma viimasel päeval Itaalias sattusime uuesti Trevi purskkaevude juurde. Ilusad on nood ka päeval, kuid samasugust lummavat valge marmori ja sinaka vee kooskõla, nagu öösel, ei saa siis näha. Seal veidikene jalgu puhates kuulsin selja taga eesti keelt, kuhu kõikjale meid ei satu… Trevi purskkaevu juurest jalutasime Marcus Aureliuse sambani ja sealt Panteoni juurde. Panteon [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dukelupus.wordpress.com&#038;blog=627611&#038;post=1147&#038;subd=dukelupus&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://dukelupus.files.wordpress.com/2012/04/ss197842.jpg"><img style="background-image:none;margin:0 0 15px 15px;padding-left:0;padding-right:0;display:inline;float:right;padding-top:0;border-width:0;" title="SS197842" border="0" alt="SS197842" align="right" src="http://dukelupus.files.wordpress.com/2012/04/ss197842_thumb.jpg?w=242&h=182" width="242" height="182" /></a>
<p>Oma viimasel päeval Itaalias sattusime uuesti <a href="http://en.wikipedia.org/wiki/Trevi_Fountain">Trevi purskkaevude</a> juurde. Ilusad on nood ka päeval, kuid samasugust lummavat valge marmori ja sinaka vee kooskõla, nagu öösel, ei saa siis näha. Seal veidikene jalgu puhates kuulsin selja taga eesti keelt, kuhu kõikjale meid ei satu…</p>
<p>Trevi purskkaevu juurest jalutasime <a href="http://en.wikipedia.org/wiki/Column_of_Marcus_Aurelius">Marcus Aureliuse sambani</a> ja sealt <a href="http://en.wikipedia.org/wiki/Pantheon,_Rome">Panteoni</a> juurde.</p>
<p>Panteon oli minu jaoks üks mõjuvaimaid ehitisi Roomas. Ehitatud algselt teisel sajandil templina Vana-<a href="http://dukelupus.files.wordpress.com/2012/04/ss197863.jpg"><img style="background-image:none;border-bottom:0;border-left:0;margin:15px 15px 15px 0;padding-left:0;padding-right:0;display:inline;float:left;border-top:0;border-right:0;padding-top:0;" title="SS197863" border="0" alt="SS197863" align="left" src="http://dukelupus.files.wordpress.com/2012/04/ss197863_thumb.jpg?w=242&h=182" width="242" height="182" /></a>Rooma jumalatele, sai sellest seitsmendal sajandil kristlik pühakoda. Huvitava faktina on Panteoni kuppel veel ligi kaks tuhat aastat pärast ehitamist suurim ilma tugevdusteta betoonkuppel.</p>
<p><a href="http://dukelupus.files.wordpress.com/2012/04/ss197903.jpg"><img style="background-image:none;border-bottom:0;border-left:0;margin:0 0 15px 15px;padding-left:0;padding-right:0;display:inline;float:right;border-top:0;border-right:0;padding-top:0;" title="SS197903" border="0" alt="SS197903" align="right" src="http://dukelupus.files.wordpress.com/2012/04/ss197903_thumb.jpg?w=184&h=244" width="184" height="244" /></a>Kuppel on tõesti suur – ja avaus tema tipus (<em>oculus</em>) laseb sisse piisavalt valgust, et sisemus oleks kaetud pehme, otsekui maagilise valgusega. Ja juba teab mitmendat korda pean nentima, et piltide pealt lihtsalt ei saa aru, kui suur see ehitis tegelikult on. Vaata pilti Panteoni sissekäigust paremal – kui pisikesed need inimkujud ukse kõrval on!</p>
<p>Vana-Rooma jumalate altaritest ja kujudest pole säilinud peaaegu mitte midagi tänapäevani – vaid lainelised jooned peaaltari nišis viitavad, et kunagi kummardati seal Neptunust, mitte Jahvet.</p>
<p><a href="http://dukelupus.files.wordpress.com/2012/04/ss197898.jpg"><img style="background-image:none;border-bottom:0;border-left:0;margin:15px 15px 15px 0;padding-left:0;padding-right:0;display:inline;float:left;border-top:0;border-right:0;padding-top:0;" title="SS197898" border="0" alt="SS197898" align="left" src="http://dukelupus.files.wordpress.com/2012/04/ss197898_thumb.jpg?w=182&h=242" width="182" height="242" /></a>Panteoni on maetud Itaalia kuningate <a href="http://en.wikipedia.org/wiki/Victor_Emmanuel_II_of_Italy">Vittorio Emanuele II</a> ja <a href="http://en.wikipedia.org/wiki/Umberto_I_of_Italy">Umberto I</a> kõrval ka <a href="http://en.wikipedia.org/wiki/Raphael">Raphael</a>. Just seal ongi kuulus epitaaf &#8211; &quot;<em>Ille hic est Raffael, timuit quo sospite vinci, rerum magna parens et moriente mori</em>&quot; (&quot;Siin lebab kuulus Raffael, keda Loodus ise kartis end ületavat, kuni ta elas, ja kui ta suri, kartis ennastki surevat.&quot;).</p>
<p><a href="http://dukelupus.files.wordpress.com/2012/04/ss197922.jpg"><img style="background-image:none;border-bottom:0;border-left:0;margin:0 0 15px 15px;padding-left:0;padding-right:0;display:inline;float:right;border-top:0;border-right:0;padding-top:0;" title="SS197922" border="0" alt="SS197922" align="right" src="http://dukelupus.files.wordpress.com/2012/04/ss197922_thumb.jpg?w=242&h=182" width="242" height="182" /></a>Peaaegu Panteoni kõrval asub Piazza della Minerva, kus on Bernini <a href="http://en.wikipedia.org/wiki/Elephant_and_Obelisk">elevandi-ja-obeliskiskulptuur</a>. Elevant sel kujul on tuntud kui <em>porcini</em> – seake – rahvajuttude järgi ei teadnud või osanud Bernini elevantidest inspiratsiooni leida ja modelleeris kuju sea järgi. Kahtlemata on lausa ülimalt südamliku sõjaelevandi kujul ebanormaalselt pikk lont.</p>
<p>Minerva väljaku ääres on ka <a href="http://en.wikipedia.org/wiki/Santa_Maria_sopra_Minerva">Santa Maria sopra Minerva</a>, ainus gooti stiilis kirik Roomas. Sisse pühitsetud juba 1370. aastal, ehitati see (taaskord) <a href="http://dukelupus.files.wordpress.com/2012/04/ss197927.jpg"><img style="background-image:none;margin:15px 15px 15px 0;padding-left:0;padding-right:0;display:inline;float:left;padding-top:0;border-width:0;" title="SS197927" border="0" alt="SS197927" align="left" src="http://dukelupus.files.wordpress.com/2012/04/ss197927_thumb.jpg?w=182&h=242" width="182" height="242" /></a>Vana-Rooma templi varemetele – tollal arvati, et see tempel oli pühendatud Minervale (Kreeka Athena), kuid tegelikult oli see pühendatud hoopiski Egiptuse jumalannale Isisele.</p>
<p>Samas basiilikas ütles Galileo Galilei 1633. aastal lahti oma inkvisitsiooni poolt vääraks tunnistatud ideedest. “<a href="http://en.wikipedia.org/wiki/And_yet_it_moves">Eppur si muove</a>”.</p>
<p>Kui väljast on ehitis üsna mittemidagiütlev (nagu paljud Rooma kirikud), siis seest on tegemist avara ja suursuguse hoonega.<a href="http://dukelupus.files.wordpress.com/2012/04/ss197941.jpg"><img style="background-image:none;border-bottom:0;border-left:0;margin:15px 0 15px 15px;padding-left:0;padding-right:0;display:inline;float:right;border-top:0;border-right:0;padding-top:0;" title="SS197941" border="0" alt="SS197941" align="right" src="http://dukelupus.files.wordpress.com/2012/04/ss197941_thumb.jpg?w=182&h=242" width="182" height="242" /></a> Muude kunstiväärtuse kõrval on see koduks <a href="http://en.wikipedia.org/wiki/Cristo_della_Minerva">Michelangelo Jeesusele</a> – algselt alasti kujuga, millele väärikuse andmiseks sai keegi kaheldava väärtusega ülesande genitaalid pronksiga üle plätserdada.</p>
<p>Edasi läksime väikeste kõrvalpõigetega <a href="http://en.wikipedia.org/wiki/Altare_della_Patria">Altare della Patria</a> – “kodumaa altari” – juurde. See on kahekümnenda esimesel poolel ehitatud <a href="http://dukelupus.files.wordpress.com/2012/04/ss197970.jpg"><img style="background-image:none;margin:15px 15px 15px 0;padding-left:0;padding-right:0;display:inline;float:left;padding-top:0;border-width:0;" title="SS197970" border="0" alt="SS197970" align="left" src="http://dukelupus.files.wordpress.com/2012/04/ss197970_thumb.jpg?w=242&h=182" width="242" height="182" /></a>tõsiselt jube monstrum, mis domineerib tervet Rooma kesklinna, varjates nii ära Kapitooliumi mäe kui ka vaate Colosseumile. Lisaks hävitati seda ehitades hulgaliselt antiikvaremeid.</p>
<p>Ehitist ei salli ka roomlased ise, hüüdes seda põlastavalt “pulmatordiks” ja ristides ka veel teiste, mitte nii viisakate nimedega.</p>
<p>Otse “pulmatordi” taga on Kapitooliumi mägi, üks Rooma seitsmest künkast. Selle tipus on Michelangelo kujundatud väljak koos kolme paleega.</p>
<p>Üks neist on Senaatorite palee, <a href="http://en.wikipedia.org/wiki/Capitoline_Hill#Palazzo_del_Senatore">Palazzo del Senatore</a>.<a href="http://dukelupus.files.wordpress.com/2012/04/ss198001.jpg"><img style="background-image:none;border-bottom:0;border-left:0;margin:15px auto;padding-left:0;padding-right:0;display:block;float:none;border-top:0;border-right:0;padding-top:0;" title="SS198001" border="0" alt="SS198001" src="http://dukelupus.files.wordpress.com/2012/04/ss198001_thumb.jpg?w=569&h=428" width="569" height="428" /></a>Selle pildi pealt võib näha Rooma jaoks väga tüüpilist stiili. Hoone esikülg on kaunistatud valge marmoriga, seda kaunistavad Michelangelo poolt disainitud trepid, kaunid kujud ja purskkaev.</p>
<p><a href="http://dukelupus.files.wordpress.com/2012/04/ss198028.jpg"><img style="background-image:none;border-bottom:0;border-left:0;margin:5px 15px 15px 0;padding-left:0;padding-right:0;display:inline;float:left;border-top:0;border-right:0;padding-top:0;" title="SS198028" border="0" alt="SS198028" align="left" src="http://dukelupus.files.wordpress.com/2012/04/ss198028_thumb.jpg?w=242&h=182" width="242" height="182" /></a>Hoone küljed on aga räämas tellistest, sajandite jooksul on neile sadestunud paks kiht mustust. Ilmselt kedagi ei huvitanud, kuidas nende majad nägid külje pealt välja – külalised said imetleda kaunist esikülge, kuid muud nägid vaid teenijad.</p>
<p>Selliseid ehitisi on Roomas kümneid kui mitte sadu. Imekaunis fassaad, imeline sisemus… kuid küljed on sellised, et Tallinnas kästaks majaomanikul koheselt hoone korda teha.</p>
<p>Kapitooliumi mäe taga on <a href="http://en.wikipedia.org/wiki/Roman_Forum">Forum Romanum</a> – keskajal meetrite paksuse jäätmete kihi alla mattunud Vana-Rooma kesklinn, ehk see kuulus Foorum. Võib vaid ette kujutada, kui elegantne see peente sammaste ja suurte ehitistega linnasüdamik oli.</p>
<p><a href="http://dukelupus.files.wordpress.com/2012/04/ss198057.jpg"><img style="background-image:none;border-bottom:0;border-left:0;margin:0 15px 15px 0;padding-left:0;padding-right:0;display:inline;float:left;border-top:0;border-right:0;padding-top:0;" title="SS198057" border="0" alt="SS198057" align="left" src="http://dukelupus.files.wordpress.com/2012/04/ss198057_thumb.jpg?w=242&h=182" width="242" height="182" /></a><a href="http://dukelupus.files.wordpress.com/2012/04/ss198063.jpg"><img style="background-image:none;border-bottom:0;border-left:0;margin:0 0 15px 15px;padding-left:0;padding-right:0;display:inline;float:right;border-top:0;border-right:0;padding-top:0;" title="SS198063" border="0" alt="SS198063" align="right" src="http://dukelupus.files.wordpress.com/2012/04/ss198063_thumb.jpg?w=182&h=242" width="182" height="242" /></a>Edasi läksime väikeste kõrvalpõigetega <a href="http://en.wikipedia.org/wiki/San_Pietro_in_Vincoli">San Pietro in Vincoli</a> (Peetrus ahelates) kirikusse. Väljast on see hoone üpris tähelepandamatu, seest aga suur ning ilus. Samuti oli see üks hämaramaid nähtud kirikuid, kuid peab ütlema et sellele basiilikale hämarus sobis.</p>
<p>Nime on see juba viiendast sajandist pärit kirik saanud oma väidetavate Peetruse ahelate tõttu, mida iga huviline vaadata saab.</p>
<p>Paarist ketijupist oluliselt huvitavam on aga <a href="http://en.wikipedia.org/wiki/Moses_%28Michelangelo%29">Michelangelo sarviline Mooses</a>. Sarved olid tol ajal kujudel pühaduse märgiks – ja ilmselt oli ka kunstnikul lihtsam kujutada sarvi, kui halot.</p>
<p><a href="http://dukelupus.files.wordpress.com/2012/04/ss198085.jpg"><img style="background-image:none;border-bottom:0;border-left:0;margin:0 15px 15px 0;padding-left:0;padding-right:0;display:inline;float:left;border-top:0;border-right:0;padding-top:0;" title="SS198085" border="0" alt="SS198085" align="left" src="http://dukelupus.files.wordpress.com/2012/04/ss198085_thumb.jpg?w=182&h=242" width="182" height="242" /></a>Basiilikas on ka teisi huvitavaid kunstiteoseid, näiteks ülidetailne surmaingel (vasakul).</p>
<p>&#8212;-</p>
<p>Ning see on siis selleks korraks Itaaliast kõik. Tagasiteest võib vaid mainida kauneid Alpe ülelennul ja et Amsterdami lennuväljal oodates lugesin läbi Richard Dawkinsi raamatu <a href="http://en.wikipedia.org/wiki/The_Greatest_Show_on_Earth:_The_Evidence_for_Evolution">Greatest Show on Earth</a>, mida ma kõigile soojalt soovitan.</p>
<p><em>Bongiorno!</em></p>
<br />Filed under: <a href='http://dukelupus.wordpress.com/category/isiklikud/reisid/'>Reisid</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dukelupus.wordpress.com/1147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dukelupus.wordpress.com/1147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dukelupus.wordpress.com/1147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dukelupus.wordpress.com/1147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dukelupus.wordpress.com/1147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dukelupus.wordpress.com/1147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dukelupus.wordpress.com/1147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dukelupus.wordpress.com/1147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dukelupus.wordpress.com/1147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dukelupus.wordpress.com/1147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dukelupus.wordpress.com/1147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dukelupus.wordpress.com/1147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dukelupus.wordpress.com/1147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dukelupus.wordpress.com/1147/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dukelupus.wordpress.com&#038;blog=627611&#038;post=1147&#038;subd=dukelupus&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dukelupus.wordpress.com/2012/04/13/itaalia-19-mrts-rooma/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/312b17ed683479208431a90bf95dde9c?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">DukeLupus</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/04/ss197842_thumb.jpg" medium="image">
			<media:title type="html">SS197842</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/04/ss197863_thumb.jpg" medium="image">
			<media:title type="html">SS197863</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/04/ss197903_thumb.jpg" medium="image">
			<media:title type="html">SS197903</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/04/ss197898_thumb.jpg" medium="image">
			<media:title type="html">SS197898</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/04/ss197922_thumb.jpg" medium="image">
			<media:title type="html">SS197922</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/04/ss197927_thumb.jpg" medium="image">
			<media:title type="html">SS197927</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/04/ss197941_thumb.jpg" medium="image">
			<media:title type="html">SS197941</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/04/ss197970_thumb.jpg" medium="image">
			<media:title type="html">SS197970</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/04/ss198001_thumb.jpg" medium="image">
			<media:title type="html">SS198001</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/04/ss198028_thumb.jpg" medium="image">
			<media:title type="html">SS198028</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/04/ss198057_thumb.jpg" medium="image">
			<media:title type="html">SS198057</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/04/ss198063_thumb.jpg" medium="image">
			<media:title type="html">SS198063</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/04/ss198085_thumb.jpg" medium="image">
			<media:title type="html">SS198085</media:title>
		</media:content>
	</item>
		<item>
		<title>Itaalia. 18. m&#228;rts: Bologna</title>
		<link>http://dukelupus.wordpress.com/2012/04/12/itaalia-18-mrts-bologna/</link>
		<comments>http://dukelupus.wordpress.com/2012/04/12/itaalia-18-mrts-bologna/#comments</comments>
		<pubDate>Thu, 12 Apr 2012 10:32:00 +0000</pubDate>
		<dc:creator>Sander</dc:creator>
				<category><![CDATA[Reisid]]></category>

		<guid isPermaLink="false">https://dukelupus.wordpress.com/?p=1117</guid>
		<description><![CDATA[Enne Firenzest ära sõitmist käisime Michelangelole pühendatud väljakul, kus asub ka Taaveti pronkskoopia. Sealt avaneb fantastiline vaade Firenze kesklinnale, mis öösiti olevat veelgi parem. Kahjuks oli ilm sel hommikul üsna udune, nõnda et häid pilte ei saanud. Suveniiriputkades müüdi ka selliseid lõbusaid Taaveti-teemalisi boksereid (vt paremal). Tagantjärele on täitsa kahju, et ma neid omale ei [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dukelupus.wordpress.com&#038;blog=627611&#038;post=1117&#038;subd=dukelupus&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://dukelupus.files.wordpress.com/2012/04/ss187768.jpg"><img style="background-image:none;margin:0 0 15px 15px;padding-left:0;padding-right:0;display:inline;float:right;padding-top:0;border-width:0;" title="SS187768" src="http://dukelupus.files.wordpress.com/2012/04/ss187768_thumb.jpg?w=242&h=182" alt="SS187768" width="242" height="182" align="right" border="0" /></a><a href="http://dukelupus.files.wordpress.com/2012/04/ss187755.jpg"><img style="background-image:none;margin:0 15px 15px 0;padding-left:0;padding-right:0;display:inline;float:left;padding-top:0;border-width:0;" title="SS187755" src="http://dukelupus.files.wordpress.com/2012/04/ss187755_thumb.jpg?w=242&h=182" alt="SS187755" width="242" height="182" align="left" border="0" /></a></p>
<p>Enne Firenzest ära sõitmist käisime <a href="http://en.wikipedia.org/wiki/Piazzale_Michelangelo">Michelangelole pühendatud väljakul</a>, kus asub ka Taaveti pronkskoopia. Sealt avaneb fantastiline vaade Firenze kesklinnale, mis öösiti olevat veelgi parem. Kahjuks oli ilm sel hommikul üsna udune, nõnda et häid pilte ei saanud.</p>
<p>Suveniiriputkades müüdi ka selliseid lõbusaid Taaveti-teemalisi boksereid (vt paremal). Tagantjärele on täitsa kahju, et ma neid omale ei ostnud. Lisaks olid saadaval ka samateemalised köögipõlled.</p>
<p>Ostsin sealt siiski kaks T-särki, osalt seetõttu et puhtad särgid kippusid otsa saama. Ühel särgil <a href="http://en.wikipedia.org/wiki/Vitruvian_Man">Vitruviuse mees</a> ja teisel <a href="http://en.wikipedia.org/wiki/The_Creation_of_Adam">Aadama loomine</a>. Viimasega sarnane särk mul tegelikult oli – aga sel on jumal asendatud <a href="http://upload.wikimedia.org/wikipedia/en/6/6e/Touched_by_His_Noodly_Appendage.jpg">tõeliselt jumaliku olevusega</a>.</p>
<p>Teel Bolognasse sõitsime üle Apenniinide, kus madalad pilved olid eristamatud udust.</p>
<h3>Bologna</h3>
<p><a href="http://dukelupus.files.wordpress.com/2012/04/oudekkiloone.jpg"><img style="background-image:none;margin:0 0 10px 15px;padding-left:0;padding-right:0;display:inline;float:right;padding-top:0;border-width:0;" title="OudekkiLoone" src="http://dukelupus.files.wordpress.com/2012/04/oudekkiloone_thumb.jpg?w=206&h=242" alt="OudekkiLoone" width="206" height="242" align="right" border="0" /></a>Bolognas olid usinad eestlased organiseerinud Itaalia eestlaste kokkusaamise – või noh, õigem oleks öelda, itaallastega abiellunud eestlannade kohtumise. <a href="http://minuitaalia.blogspot.it/2012/04/eestlased-kogunevad.html">Oma blogis on sellest kirjutanud</a> üks korraldajatest Sirli, teine korraldaja oli <a href="http://et.wikipedia.org/wiki/Oudekki_Loone">Oudekki Loone</a> (paremal).</p>
<p>Alguses sõime pikalt-pikalt traditsioonilist Bologna toitu, millest enamus oli tõesti hea. <a href="http://en.wikipedia.org/wiki/Polenta">Polenta</a>, mis on põhimõtteliselt maisipuder, kohalikud singid ja nii edasi.</p>
<p>Alles pärast kolme saime linnaekskursioonile – muidu poleks see probleem olnud, aga meie seltskond pidi veel samal päeval ligi nelisada kilomeetrit tagasi Rooma sõitma. Ilusa laulva itaalia aktsendiga tegi Oudekki meile väga huvitava ja detailse lühikese linnaekskursiooni, suur tänu selle eest!</p>
<p>Bologna mulle meeldis, samamoodi nagu Firenzegi. Linn oli puhtam, tänavail nänni pähe määrivaid musti oli vähe, oli isegi autojuhte kes suunatuld kasutasid. Mõnes mõttes meenutas vana ülikoolilinn Bologna samuti ülikoolilinna Tartut.</p>
<p>Loomulikult, paari tunniga saab vaid kiire ülevaate – ka Bolognas võiks palju-palju pikemalt olla ning palju-palju rohkem näha.<a href="http://dukelupus.files.wordpress.com/2012/04/ss187810.jpg"><img style="background-image:none;margin:0 15px 15px 0;padding-left:0;padding-right:0;display:inline;float:left;padding-top:0;border-width:0;" title="SS187810" src="http://dukelupus.files.wordpress.com/2012/04/ss187810_thumb.jpg?w=182&h=242" alt="SS187810" width="182" height="242" align="left" border="0" /></a></p>
<p>Bologna peaväljakul asub maailma suuruselt kuues kirik, <a href="http://en.wikipedia.org/wiki/San_Petronio_Basilica">San Petronio Basilica</a>. Gooti stiilis basiilika oli <a href="http://en.wikipedia.org/wiki/Santa_Maria_degli_Angeli_e_dei_Martiri">Santa Maria degli Angeli e dei Martiri</a> kõrval üks ilusamaid kirikuid sel matkal. Mingil põhjusel oli ses basiilikas pildistamine keelatud, mis tundus üpris arusaamatu. Salakesi sai siiski päris mitu pilti tehtud.<a href="http://dukelupus.files.wordpress.com/2012/04/ss187821.jpg"><img style="background-image:none;margin:0 0 15px 15px;padding-left:0;padding-right:0;display:inline;float:right;padding-top:0;border-width:0;" title="SS187821" src="http://dukelupus.files.wordpress.com/2012/04/ss187821_thumb.jpg?w=182&h=242" alt="SS187821" width="182" height="242" align="right" border="0" /></a></p>
<p>Tõeline Bologna patrioot Oudekki rääkis ja näitas meile paljutki, kuhu “tavalised turistid” ei satu – näiteks tänaval müüris olev auk, kust sai pilku heita (praegu tühjale) kanalile. Nagu selgus, Bolognas on palju kanaleid, neist enamik täies ulatuses maa all – veega täituvad need vaid siis, kui mägedest lumesulamisvesi alla jõuab.</p>
<p>Oluliselt masendavam oli kuulda <a href="http://en.wikipedia.org/wiki/August_1980_Bologna_bombing">1980. aasta pommist Bologna raudteejaamas</a> mis tappis 85 inimest, sealhulgas palju lapsi ja noorukeid. Ehkki terroristid saadi küll peagi kätte, siis täit selgust ses asjas ei ole – tugevad kahtlused on Itaalia salateenistuste seotuses terrorismiaktiga.</p>
<p>Mõrvatute mälestuseks on pommi lõhkemise kohas, Bologna rautejaama seinas, sellest tekkinud auk ning lohk põrandas. Ka on üks kahest tänavapoolsest kellast, mis plahvatuse ajal seisma jäi, alaliselt näitamas pommi lõhkemise aega, 10:25.<br />
<a href="http://dukelupus.files.wordpress.com/2012/04/ss187836.jpg"><img style="background-image:none;margin:25px 25px 25px 0;padding-left:0;padding-right:0;display:inline;float:left;padding-top:0;border-width:0;" title="SS187836" src="http://dukelupus.files.wordpress.com/2012/04/ss187836_thumb.jpg?w=182&h=242" alt="SS187836" width="182" height="242" align="left" border="0" /></a><br />
Sõitu tagasi Rooma alustsime alles veidi enne seitset. Koos pausidega viis tundi pimedas kestnud sõit oli väsitav, hoolimata sellest et mina roolis ei olnud.</p>
<br />Filed under: <a href='http://dukelupus.wordpress.com/category/isiklikud/reisid/'>Reisid</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dukelupus.wordpress.com/1117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dukelupus.wordpress.com/1117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dukelupus.wordpress.com/1117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dukelupus.wordpress.com/1117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dukelupus.wordpress.com/1117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dukelupus.wordpress.com/1117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dukelupus.wordpress.com/1117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dukelupus.wordpress.com/1117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dukelupus.wordpress.com/1117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dukelupus.wordpress.com/1117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dukelupus.wordpress.com/1117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dukelupus.wordpress.com/1117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dukelupus.wordpress.com/1117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dukelupus.wordpress.com/1117/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dukelupus.wordpress.com&#038;blog=627611&#038;post=1117&#038;subd=dukelupus&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dukelupus.wordpress.com/2012/04/12/itaalia-18-mrts-bologna/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/312b17ed683479208431a90bf95dde9c?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">DukeLupus</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/04/ss187768_thumb.jpg" medium="image">
			<media:title type="html">SS187768</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/04/ss187755_thumb.jpg" medium="image">
			<media:title type="html">SS187755</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/04/oudekkiloone_thumb.jpg" medium="image">
			<media:title type="html">OudekkiLoone</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/04/ss187810_thumb.jpg" medium="image">
			<media:title type="html">SS187810</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/04/ss187821_thumb.jpg" medium="image">
			<media:title type="html">SS187821</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/04/ss187836_thumb.jpg" medium="image">
			<media:title type="html">SS187836</media:title>
		</media:content>
	</item>
		<item>
		<title>Itaalia. 17. m&#228;rts: Firenze</title>
		<link>http://dukelupus.wordpress.com/2012/04/11/itaalia-17-mrts-firenze/</link>
		<comments>http://dukelupus.wordpress.com/2012/04/11/itaalia-17-mrts-firenze/#comments</comments>
		<pubDate>Wed, 11 Apr 2012 10:29:00 +0000</pubDate>
		<dc:creator>Sander</dc:creator>
				<category><![CDATA[Reisid]]></category>

		<guid isPermaLink="false">https://dukelupus.wordpress.com/?p=1102</guid>
		<description><![CDATA[Sõidul Roomast Firenzesse oli huvitav näha Itaaliat väljaspool linnasid. Kalju otsas olevatest keskaegsetest linnakestest kuni imepisikeste põllulappideni. Väga palju oli tühje, mahajäetud elumajasid – ilmselt ka Itaalias kolivad inimesed järjest rohkem linnadesse. Kindlasti kuluksid ka Eestis ära taolised kiirteed, vähemalt Tallinn-Pärnu-Riia, Tallinn-Narva ja Tallinn-Tartu suundadel. Ma oleks isegi nõus mõistlikus suurusjärgus teetolli maksma, kui selle [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dukelupus.wordpress.com&#038;blog=627611&#038;post=1102&#038;subd=dukelupus&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://dukelupus.files.wordpress.com/2012/04/ss177652.jpg"><img style="background-image:none;margin:0 10px 10px 0;padding-left:0;padding-right:0;display:inline;float:left;padding-top:0;border-width:0;" title="SS177652" border="0" alt="SS177652" align="left" src="http://dukelupus.files.wordpress.com/2012/04/ss177652_thumb.jpg?w=182&h=242" width="182" height="242" /></a><a href="http://dukelupus.files.wordpress.com/2012/04/ss177661.jpg"><img style="background-image:none;margin:10px 0 10px 10px;padding-left:0;padding-right:0;display:inline;float:right;padding-top:0;border-width:0;" title="SS177661" border="0" alt="SS177661" align="right" src="http://dukelupus.files.wordpress.com/2012/04/ss177661_thumb.jpg?w=242&h=182" width="242" height="182" /></a>
<p>Sõidul Roomast Firenzesse oli huvitav näha Itaaliat väljaspool linnasid. Kalju otsas olevatest keskaegsetest linnakestest kuni imepisikeste põllulappideni. Väga palju oli tühje, mahajäetud elumajasid – ilmselt ka Itaalias kolivad inimesed järjest rohkem linnadesse.</p>
<p>Kindlasti kuluksid ka Eestis ära taolised kiirteed, vähemalt Tallinn-Pärnu-Riia, Tallinn-Narva ja Tallinn-Tartu suundadel. Ma oleks isegi nõus mõistlikus suurusjärgus teetolli maksma, kui selle eest saan rahus sõita ühesuunalisel mitmerajalisel teel 150 km/h. Korralikust kiirrongiühendusest pole vist mõtet isegi rääkida…</p>
<p>Esimene asi, mida Firenzesse jõudes tegime, oli lõunatamine. See oli ka esimene hea (ja väga hea!) pitsa Itaalias, mida ma sain. Väidetavasti kohalikud ütlevad, et Rooma toit pole suurem asi, kui ei tea kindlaid, hea kvaliteediga söögikohti. Minu kogemuse järgi võib see tõesti nii olla, suvalise Rooma kohviku toit on nõrgem, kui suvalise Eesti kohviku toit.</p>
<p><a href="http://dukelupus.files.wordpress.com/2012/04/ss177685.jpg"><img style="background-image:none;margin:0 0 10px 10px;padding-left:0;padding-right:0;display:inline;float:right;padding-top:0;border-width:0;" title="SS177685" border="0" alt="SS177685" align="right" src="http://dukelupus.files.wordpress.com/2012/04/ss177685_thumb.jpg?w=182&h=242" width="182" height="242" /></a>Edasi liikusime <a href="http://en.wikipedia.org/wiki/Florence_Cathedral">Firenze toomkiriku</a> juurde. Alustati selle ehitamist juba 1296. aastal, kuid lõpetati alles 1436. Vasest risti ja kera paigaldamisel kupli tippu 1469. aastal osales noor õpipoiss nimega Leonardo da Vinci.</p>
<p>Gooti ja renessansi stiile segav katedraal on seest veelgi majesteetlikum, kui väljast, eriti järgmisel päeval peale Vatikani ülekaunistatud kirikuid. Puhtad ja selged jooned jätavad ruumist avarama ja avatuma mulje, puudub hingemattev detailide üleküllus. Suured sambad lisavad muljed võimsusest.</p>
<p><a href="http://dukelupus.files.wordpress.com/2012/04/ss177683.jpg"><img style="background-image:none;border-bottom:0;border-left:0;margin:0 10px 10px 0;padding-left:0;padding-right:0;display:inline;float:left;border-top:0;border-right:0;padding-top:0;" title="SS177683" border="0" alt="SS177683" align="left" src="http://dukelupus.files.wordpress.com/2012/04/ss177683_thumb.jpg?w=182&h=242" width="182" height="242" /></a>Otse toomkiriku ees on kuulus <a href="http://en.wikipedia.org/wiki/Florence_Baptistery">Firenze ristimiskirik</a> oma Ghiberti ustega (vasakul), mida Michelangelo nimetas paradiisiväravateks, ja kõrval mitte vähem kuulus <a href="http://en.wikipedia.org/wiki/Giotto%27s_Campanile">Giotto kellatorn</a> (paremal).</p>
<p>Ristimiskirik on märksa vanem, kui katedraal, olles valminud juba üheteistkümnendal sajandil. Legendi järgi olevat see ehitatud Vana-Rooma Marsile pühendatud templi jäänustele, kuid väljakaevamistel on selgunud, et enne praegust kirikut oli seal hoopiski vanem, neljandal sajandil ehitatud kirik – ja enne seda vaid linnamüür kaitsetorniga.</p>
<p>Edasi liikusime väikeste kõrvalpõigetega <a href="http://en.wikipedia.org/wiki/Palazzo_Vecchio">Palazzo Vecchio</a> ehk raekoja juurde. “Vecchio” ([ˈvɛkkjo]) tähendab lihtsalt vana, ehk siis “vana palee”. Selle juures asub teadagi Michelangelo “<a href="http://en.wikipedia.org/wiki/David_%28Michelangelo%29">Taavet</a>” – või õigemini, Taaveti koopia, mille ees seisavad sajad ja sajad turistid.</p>
<p><a href="http://dukelupus.files.wordpress.com/2012/04/ss177712.jpg"><img style="background-image:none;border-bottom:0;border-left:0;margin:0 0 10px 10px;padding-left:0;padding-right:0;display:inline;float:right;border-top:0;border-right:0;padding-top:0;" title="SS177712" border="0" alt="SS177712" align="right" src="http://dukelupus.files.wordpress.com/2012/04/ss177712_thumb.jpg?w=182&h=242" width="182" height="242" /></a>Tegelikult on kahju, et Taavet kogu tähelepanu omale saab. Kohe kõrval asub ju võimsate kaartega <a href="http://en.wikipedia.org/wiki/Loggia_dei_Lanzi">Loggia dei Lanzi</a>, mille kujugaleriis on mitte vähem mõjusaid ja kuulsaid kujusid, näiteks <a href="http://en.wikipedia.org/wiki/Benvenuto_Cellini">Benvenuto Cellini</a> Perseus Meduusa peaga, mille loomine kunstnikul ligi kümme aastat võttis.</p>
<p>Kohe raekoja kõrvalt algab <a href="http://en.wikipedia.org/wiki/Uffizi">Uffizi</a> galerii (== <em>offices</em>, kontor), Läänemaailma vanim ja tuntuim kunstimuuseum. Kahjuks seekord sinna sisse ei saanud – ajapuudus ning olin kusagil ka oma jalale vähe viga teinud. Loodetavasti kunagi saan veel Firenzesse, vaadata on ju seal veel palju-palju.</p>
<p><a href="http://dukelupus.files.wordpress.com/2012/04/ss177726.jpg"><img style="background-image:none;border-bottom:0;border-left:0;margin:0 10px 10px 0;padding-left:0;padding-right:0;display:inline;float:left;border-top:0;border-right:0;padding-top:0;" title="SS177726" border="0" alt="SS177726" align="left" src="http://dukelupus.files.wordpress.com/2012/04/ss177726_thumb.jpg?w=242&h=182" width="242" height="182" /></a>Uffizi kõrval on Arno jõgi, ja veidi eemal <a href="http://en.wikipedia.org/wiki/Ponte_Vecchio">Ponte Vecchio</a> (“vana sild”), mis ehitati praegusel kujul 1345. aastal. Tähelepanuväärne on sild selle poolest, et sillal on veel tänapäevalgi poed – nii nagu see oli kombeks keskajal mitte ainult Itaalias, vaid kogu Euroopas.</p>
<p><a href="http://dukelupus.files.wordpress.com/2012/04/ss177745.jpg"><img style="background-image:none;border-bottom:0;border-left:0;margin:10px 0 10px 10px;padding-left:0;padding-right:0;display:inline;float:right;border-top:0;border-right:0;padding-top:0;" title="SS177745" border="0" alt="SS177745" align="right" src="http://dukelupus.files.wordpress.com/2012/04/ss177745_thumb.jpg?w=119&h=242" width="119" height="242" /></a>Algselt olid sillal lihunikud ja parkalid, kuid 16. sajandil ei kannatanud linnavalitsejad enam haisu välja ja lubasid sinna vaid kullasseppade poode. Nii on seal juveeliärid ka tänapäeval.</p>
<p>Edasi läksime <a href="http://en.wikipedia.org/wiki/Basilica_of_Santa_Croce,_Florence">Santa Croce kiriku</a> juurde. Huvitav oli näha, kuidas kiriku kõrval kitsas tänavas – umbes nii laias kui meie Müürivahe, või isegi veidi kitsamas – sõidab liinibuss. Hea, et Tallinnas pole vanalinna pandud busse käima – niigi halb et seal nõnda palju autosid on.</p>
<p>Edasi läksime väikeste kõrvalepõigetega tagasi hotelli. See oli meeldejääv oma mikroskoopilise dušinurga poolest, kus veel lisaks kraani käepide ära tuli ning dušš hoidikus ei seisnud. Lisaks oli tuba otse tänava ääres, see öö eriti hästi magamine ei õnnestunud.</p>
<br />Filed under: <a href='http://dukelupus.wordpress.com/category/isiklikud/reisid/'>Reisid</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dukelupus.wordpress.com/1102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dukelupus.wordpress.com/1102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dukelupus.wordpress.com/1102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dukelupus.wordpress.com/1102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dukelupus.wordpress.com/1102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dukelupus.wordpress.com/1102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dukelupus.wordpress.com/1102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dukelupus.wordpress.com/1102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dukelupus.wordpress.com/1102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dukelupus.wordpress.com/1102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dukelupus.wordpress.com/1102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dukelupus.wordpress.com/1102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dukelupus.wordpress.com/1102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dukelupus.wordpress.com/1102/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dukelupus.wordpress.com&#038;blog=627611&#038;post=1102&#038;subd=dukelupus&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dukelupus.wordpress.com/2012/04/11/itaalia-17-mrts-firenze/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/312b17ed683479208431a90bf95dde9c?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">DukeLupus</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/04/ss177652_thumb.jpg" medium="image">
			<media:title type="html">SS177652</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/04/ss177661_thumb.jpg" medium="image">
			<media:title type="html">SS177661</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/04/ss177685_thumb.jpg" medium="image">
			<media:title type="html">SS177685</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/04/ss177683_thumb.jpg" medium="image">
			<media:title type="html">SS177683</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/04/ss177712_thumb.jpg" medium="image">
			<media:title type="html">SS177712</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/04/ss177726_thumb.jpg" medium="image">
			<media:title type="html">SS177726</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/04/ss177745_thumb.jpg" medium="image">
			<media:title type="html">SS177745</media:title>
		</media:content>
	</item>
		<item>
		<title>Itaalia. 16. m&#228;rts: Vatikan</title>
		<link>http://dukelupus.wordpress.com/2012/04/10/itaalia-16-mrts-vatikan/</link>
		<comments>http://dukelupus.wordpress.com/2012/04/10/itaalia-16-mrts-vatikan/#comments</comments>
		<pubDate>Tue, 10 Apr 2012 09:20:00 +0000</pubDate>
		<dc:creator>Sander</dc:creator>
				<category><![CDATA[Reisid]]></category>

		<guid isPermaLink="false">https://dukelupus.wordpress.com/?p=1086</guid>
		<description><![CDATA[Vatikan on teadagi “riik linna sees”. Ja nagu enam-vähem kõik turistid alustasime ka meie Peetri väljakult, mille obeliski otsas olevas pallis olevat legendi järgi Gaius Julius Caesari tuhk, ja rist sisaldavat osasid “tõelisest ristist”. Taaskord, õnneks ei olnud turismihooaeg veel pihta hakanud ja nõnda saime üsna kiirelt Peetri kirikusse. Selle jäetud mulje oli muidugi uskumatu, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dukelupus.wordpress.com&#038;blog=627611&#038;post=1086&#038;subd=dukelupus&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://dukelupus.files.wordpress.com/2012/04/ss167427.jpg"><img style="background-image:none;border-bottom:0;border-left:0;margin:0 15px 15px 0;padding-left:0;padding-right:0;display:inline;float:left;border-top:0;border-right:0;padding-top:0;" title="SS167427" border="0" alt="SS167427" align="left" src="http://dukelupus.files.wordpress.com/2012/04/ss167427_thumb.jpg?w=242&h=182" width="242" height="182" /></a></p>
<p>Vatikan on teadagi “riik linna sees”. Ja nagu enam-vähem kõik turistid alustasime ka meie <a href="http://en.wikipedia.org/wiki/Saint_Peter%27s_Square">Peetri väljakult</a>, mille obeliski otsas olevas pallis olevat legendi järgi Gaius Julius Caesari tuhk, ja rist sisaldavat osasid “tõelisest ristist”.</p>
<p><a href="http://dukelupus.files.wordpress.com/2012/04/ss167442.jpg"><img style="background-image:none;border-bottom:0;border-left:0;margin:0 0 10px 10px;padding-left:0;padding-right:0;display:inline;float:right;border-top:0;border-right:0;padding-top:0;" title="SS167442" border="0" alt="SS167442" align="right" src="http://dukelupus.files.wordpress.com/2012/04/ss167442_thumb.jpg?w=182&h=242" width="182" height="242" /></a>Taaskord, õnneks ei olnud turismihooaeg veel pihta hakanud ja nõnda saime üsna kiirelt <a href="http://en.wikipedia.org/wiki/St._Peter%27s_Basilica">Peetri kirikusse</a>. Selle jäetud mulje oli muidugi uskumatu, tegemist on ju suurima kristliku pühakojaga maailmas. Nagu ka eelmise päeva kohta märkisin, piltidest ei saa aru kui suured tegelikult need katedraalid on.</p>
<p><a href="http://dukelupus.files.wordpress.com/2012/04/ss167445.jpg"><img style="background-image:none;border-bottom:0;border-left:0;margin:0 10px 10px 0;padding-left:0;padding-right:0;display:inline;float:left;border-top:0;border-right:0;padding-top:0;" title="SS167445" border="0" alt="SS167445" align="left" src="http://dukelupus.files.wordpress.com/2012/04/ss167445_thumb.jpg?w=182&h=242" width="182" height="242" /></a>Basiilika sisemus on täis kunstiteoseid, millest kuulsaim on kahtlemata Michelangelo <a href="http://en.wikipedia.org/wiki/Piet%C3%A0_%28Michelangelo%29">Pieta</a>, ainus töö mille meister (vihahoos) signeeris – tegu, mida ta hiljem olevat kahetsenud. Võrrelge seda meie aja noorkunstnikega, kelle maalide juures signatuur on sageli kõige silmatorkavam detail. Samas, kui ei ole Leonardo või Michelangelo kunstnikuoskusi, siis ongi ehk reklaami tegemine olulisem kui kunst.</p>
<p>Kunsti ja kunstilisi detaile on Peetri kirik täis sel määral, et see muutub lihtsalt taustaks. “Ah, jah, järjekordne imepärane marmorist kuju…”. <em>Less is more, </em>tahaks öelda.</p>
<p><a href="http://dukelupus.files.wordpress.com/2012/04/ss167466.jpg"><img style="background-image:none;border-bottom:0;border-left:0;margin:0 0 10px 10px;padding-left:0;padding-right:0;display:inline;float:right;border-top:0;border-right:0;padding-top:0;" title="SS167466" border="0" alt="SS167466" align="right" src="http://dukelupus.files.wordpress.com/2012/04/ss167466_thumb.jpg?w=242&h=182" width="242" height="182" /></a>Kiriku kuppel on tõeline ime – eelkõige just seetõttu et see valmis 16. sajandil. Ilma kraanade, tõstukite ja veomasinateta. Selgelt on näha Panteoni kupli mõju kujule ja kaunistustele.</p>
<h2></h2>
<h3>Vatikani muuseumid</h3>
<p>Meeldivalt saime <a href="http://en.wikipedia.org/wiki/Vatican_Museums">Vatikani muuseumidesse</a> sisse ilma igasuguse ootamiseta. Küll on aga kahju et me pidime osa seltskonna soovil neist sisuliselt läbi jooksma. Tegemist on ju ühega maailma suurimatest muuseumitest, kus võib veeta päevi – kui mitte nädalaid, ikka leides uusi kunstiteoseid, mida imetleda.</p>
<p><a href="http://dukelupus.files.wordpress.com/2012/04/ss167563.jpg"><img style="background-image:none;border-bottom:0;border-left:0;margin:0 10px 10px 0;padding-left:0;padding-right:0;display:inline;float:left;border-top:0;border-right:0;padding-top:0;" title="SS167563" border="0" alt="SS167563" align="left" src="http://dukelupus.files.wordpress.com/2012/04/ss167563_thumb.jpg?w=184&h=244" width="184" height="244" /></a><a href="http://en.wikipedia.org/wiki/Laoco%C3%B6n_and_His_Sons">Laokoon</a>, mis oli üldse kõige esimene kuju Vatikani muuseumis, on väga muljetavaldav. Kuju sisemine pinge, eri suunadesse pööratud õlad ning puusad (mis kahtlemata koos <a href="http://en.wikipedia.org/wiki/Belvedere_Torso">Belvedere torsoga</a> oli inspiratsiooniks Michelangelole, kelle kujude enamikul on sarnane vöötmete ristumine. Huvitava faktina, välja on pakutud et tegemist on üldse <a href="http://query.nytimes.com/gst/fullpage.html?res=9D07E0D91E3EF93BA25757C0A9639C8B63&amp;pagewanted=all">Michelangelo tehtud võltsinguga</a>). Ning lihtsalt ka selle kuju detailirikkus – tegemist ei ole ju vahast vormitud ja hiljem pronksi valatud skulptuuriga – ei, see on meisli ja haamri abil marmorist välja raiutud, tõsi küll, mitmest erinevast marmoriplokist.</p>
<p><a href="http://dukelupus.files.wordpress.com/2012/04/ss167597.jpg"><img style="background-image:none;border-bottom:0;border-left:0;margin:0 0 10px 10px;padding-left:0;padding-right:0;display:inline;float:right;border-top:0;border-right:0;padding-top:0;" title="SS167597" border="0" alt="SS167597" align="right" src="http://dukelupus.files.wordpress.com/2012/04/ss167597_thumb.jpg?w=242&h=182" width="242" height="182" /></a>Muuseumist läbi tormamisel õnnestus teha väike paus kuulsates <a href="http://en.wikipedia.org/wiki/Raphael_Rooms">Rafaeli saalides</a>. Uskumatuna tundub, et selliste meistriteoste eesmärgiks oli lihtsalt paavsti vastuvõturuumide ja kabineti seinte-lagede katmine.</p>
<p>Peagi jõudsime <a href="http://en.wikipedia.org/wiki/Sistine_Chapel">Sixtuse kabelisse</a>. Peab ütlema, et pärast Peetruse basiilikat tundus kabel üsnagi väike – aga kui hakata mõtlema, et <a href="http://en.wikipedia.org/wiki/Sistine_Chapel_ceiling">selle lae</a> maalis Michelangelo üksinda, ning see võttis neli aastat… Juba üles, omaenda disainitud tellingutele ronimine iga hommik pidi võtma korralikult aega; krohvi, värvi ning töövahendite üles-alla vedamisest rääkimata.</p>
<p><a href="http://dukelupus.files.wordpress.com/2012/04/ss167609.jpg"><img style="background-image:none;border-bottom:0;border-left:0;margin:0 10px 10px 0;padding-left:0;padding-right:0;display:inline;float:left;border-top:0;border-right:0;padding-top:0;" title="SS167609" border="0" alt="SS167609" align="left" src="http://dukelupus.files.wordpress.com/2012/04/ss167609_thumb.jpg?w=242&h=182" width="242" height="182" /></a>Ning lagi ise on loomulikult võimas oma maalide ja detailsuse poolest. Kuulsaim osa laest on loomulikult <a href="http://en.wikipedia.org/wiki/The_Creation_of_Adam">Aadama loomine</a>. Palju on räägitud mille seest jumal Aadama poole küünitab – riidekalts, emakas, merikarp, neer – kuid peab ütlema, et kõige tõenäosem tundub ikkagi inimaju. Ilmselt otsustas Michelangelo visata väikese krutski ja maalida otse Vatikani südamesse, kuidas jumal on pärit inimese mõistusest, ehk teisisõnu, väljamõeldis.</p>
<p>Nii Sixtuse kabeli maalid kui ka Rafaeli saalid on hiljaaegu restaureeritud. Nüüd on võimalik näha kui eredad olid tegelikult renessansimeistrite maalid – tuhmuv ja tumenev lakk ning nõgi õlilampidest olid need väga tumedaks teinud. Ilmselt ka kolmanda renessansi suurmeistri – Leonardo da Vinci – maalid olid omal ajal palju heledamad. Hiljuti restaureeritud koopia Mona Lisast, mis maaliti umbkaudu samal ajal kui originaal, on samuti heledate erksate värvidega, mitte pastelne ja ähmane.</p>
<p><a href="http://dukelupus.files.wordpress.com/2012/04/ss167622.jpg"><img style="background-image:none;border-bottom:0;border-left:0;margin:0 0 0 10px;padding-left:0;padding-right:0;display:inline;float:right;border-top:0;border-right:0;padding-top:0;" title="SS167622" border="0" alt="SS167622" align="right" src="http://dukelupus.files.wordpress.com/2012/04/ss167622_thumb.jpg?w=182&h=242" width="182" height="242" /></a>Viimase detailina – juba väljumisel – leidsin veenva tõendi et Vladimir Putin oli, on ja jääb. Kuidas muidu seletada ilmselgelt tema kujutist Vana-Rooma skulptuuril? Tõsi küll, juukseid on kahe aastatuhande jooksul tõesti vähemaks jäänud, keskiga on kätte jõudnud.</p>
<p>Üldmulje Vatikani muuseumidest on muidugi vapustav. Sellisel tasemel selline kontsentratsioon kunsti… paneb mõtlema, et mida me oma pisikese Kumuga siin üldse kekkame.</p>
<p>Ning millised summad on olnud paavstil kulutada ehitistele ja kunstile, sellal kui suur osa Euroopast kui mitte otseselt ei nälginud, siis vähemalt elas vaesuses? Reaalseid hinnangud Vatikani koguvaradele ei ole olemas. Pole isegi teada, milliseid kunstiteoseid ja dokumente Vatikani arhiivid sisaldavad. Nagu on öeldud, tegemist on maailma rikkaima kompaniiga.</p>
<p>Kindlasti oleks tahtnud palju-palju rohkem aega Vatikani muuseumides veeta. Loodetavasti õnnestub mul sinna elu jooksul veel sattuda.</p>
<br />Filed under: <a href='http://dukelupus.wordpress.com/category/isiklikud/reisid/'>Reisid</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dukelupus.wordpress.com/1086/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dukelupus.wordpress.com/1086/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dukelupus.wordpress.com/1086/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dukelupus.wordpress.com/1086/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dukelupus.wordpress.com/1086/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dukelupus.wordpress.com/1086/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dukelupus.wordpress.com/1086/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dukelupus.wordpress.com/1086/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dukelupus.wordpress.com/1086/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dukelupus.wordpress.com/1086/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dukelupus.wordpress.com/1086/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dukelupus.wordpress.com/1086/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dukelupus.wordpress.com/1086/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dukelupus.wordpress.com/1086/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dukelupus.wordpress.com&#038;blog=627611&#038;post=1086&#038;subd=dukelupus&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dukelupus.wordpress.com/2012/04/10/itaalia-16-mrts-vatikan/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/312b17ed683479208431a90bf95dde9c?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">DukeLupus</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/04/ss167427_thumb.jpg" medium="image">
			<media:title type="html">SS167427</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/04/ss167442_thumb.jpg" medium="image">
			<media:title type="html">SS167442</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/04/ss167445_thumb.jpg" medium="image">
			<media:title type="html">SS167445</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/04/ss167466_thumb.jpg" medium="image">
			<media:title type="html">SS167466</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/04/ss167563_thumb.jpg" medium="image">
			<media:title type="html">SS167563</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/04/ss167597_thumb.jpg" medium="image">
			<media:title type="html">SS167597</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/04/ss167609_thumb.jpg" medium="image">
			<media:title type="html">SS167609</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/04/ss167622_thumb.jpg" medium="image">
			<media:title type="html">SS167622</media:title>
		</media:content>
	</item>
		<item>
		<title>Itaalia. 15. m&#228;rts: Rooma</title>
		<link>http://dukelupus.wordpress.com/2012/04/09/itaalia-15-mrts-rooma/</link>
		<comments>http://dukelupus.wordpress.com/2012/04/09/itaalia-15-mrts-rooma/#comments</comments>
		<pubDate>Mon, 09 Apr 2012 09:26:00 +0000</pubDate>
		<dc:creator>Sander</dc:creator>
				<category><![CDATA[Reisid]]></category>

		<guid isPermaLink="false">https://dukelupus.wordpress.com/?p=1068</guid>
		<description><![CDATA[Käisin hiljaaegu Itaalias, kahjuks üsna lühidalt. Panen siia eelkõige iseenda jaoks kirja muljeid nähtust. Rooma Rooma kui linn jättis mulle oluliselt kehvema mulje, kui hiljem käidud Firenze ja Bologna. Linn on uskumatult räpane – mitte ainult prügi tänavatel, vaid ka majaseinad on kaetud mustusekihiga. Isegi Vatikani müür on kaetud paksu korbaga. Konidest ja koerasitast tänavatel [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dukelupus.wordpress.com&#038;blog=627611&#038;post=1068&#038;subd=dukelupus&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://dukelupus.files.wordpress.com/2012/04/ss157233.jpg" target="_blank"><img style="background-image:none;margin:0 0 10px 10px;padding-left:0;padding-right:0;display:inline;float:right;padding-top:0;border-width:0;" title="SS157233" src="http://dukelupus.files.wordpress.com/2012/04/ss157233_thumb.jpg?w=278&h=209" alt="http://en.wikipedia.org/wiki/Piazza_della_Repubblica,_Rome" width="278" height="209" align="right" border="0" /></a>Käisin hiljaaegu Itaalias, kahjuks üsna lühidalt. Panen siia eelkõige iseenda jaoks kirja muljeid nähtust.</p>
<h4>Rooma</h4>
<p>Rooma kui linn jättis mulle oluliselt kehvema mulje, kui hiljem käidud Firenze ja Bologna. Linn on uskumatult räpane – mitte ainult prügi tänavatel, vaid ka majaseinad on kaetud mustusekihiga. Isegi Vatikani müür on kaetud paksu korbaga. Konidest ja koerasitast tänavatel ei tasu rääkidagi.</p>
<p>Puhtad on ainult vaatamisväärsused, ja need sageli ka ainult eespoolt. See on aga omaette teema, pikemalt ehk kunagi hiljem.</p>
<p>Liiklus… ma olen väga õnnelik, et mina ei pidanud roolis olema. Kõik Tallinna/Eesti liikluse üle virisejad tuleks saata tunniks Rooma sõitma.</p>
<p>Kõik liikluseeskirjad on puhtalt <em>optional</em>, seehulgas ka suunatule kasutamine ja ridade arv. Punast tuld üldjuhul austatakse, v.a. motorollerite ja mootorrataste poolt. Teed on seejuures head, korralikud, mitte nagu Tallinna aukudevõrgustik, mida hellitlevalt tänavateks hüütakse. Osaliselt on see arusaadav – puudub ju teid lõhkuv talveilm.</p>
<p>Väga palju on motorollereid ja pisiautosid. Pargitakse nii kuidas juhtub, blokeeritakse teised kinni ja täidetakse iga vaba koht sekunditega.</p>
<p>Igal pool vaatamisväärsuste juures on kümnete kaupa “mustasid”, kes müüvad kas mõttetuid mänguasju, käekotte või muud pudi-padi. Kui politsei tuleb, siis lapatakse müügilina nurkadest kokku ja tormatakse minema, ainult selleks et viie minuti pärast tagasi olla.</p>
<p>Vaatamisväärsused… selles suhtes on Rooma muidugi fantastiline. Ilmselt asja rahulikult võttes võib Roomas veeta kuid, iga päev midagi uut vaadates. Niimoodi tormates, nagu meie seda tegime, muutuvad asjad virr-varriks.</p>
<p>Tõsiselt häiriv on selgitavate siltide ja viitade puudumine. Kohad, kus meil oleks selgitavad tahvlid kolmes keeles ja viidad kilomeetrite kauguselt… Itaalias pole isegi vaatamisväärsuse nime pahatihti.</p>
<hr />
<p><a href="http://dukelupus.files.wordpress.com/2012/04/ss157246.jpg"><img style="background-image:none;margin:15px 10px 0 0;padding-left:0;padding-right:0;display:inline;float:left;padding-top:0;border-width:0;" title="SS157246" src="http://dukelupus.files.wordpress.com/2012/04/ss157246_thumb.jpg?w=242&h=182" alt="SS157246" width="242" height="182" align="left" border="0" /></a></p>
<p><a href="http://en.wikipedia.org/wiki/Santa_Maria_degli_Angeli_e_dei_Martiri">Santa Maria degli Angeli e dei Martiri</a> oli esimene katedraal ja osaliselt seetõttu jättis võimsama mulje kui mõnigi teine kirik hiljem. Teine põhjus oli külastajate vähesus, mistõttu jäi avaram ning pühalikum mulje.</p>
<p>Tegemist on algselt Rooma saunaga, mis ehitati 16. sajandil Michelangelo plaanide järgi ümber katerdaaliks, seejuures algsest ruumist vaid poolt ära kasutades. Ega ei kujutagi vaid kirjelduste järgi ette, kui suured omaaegsed Rooma saunad olid – antud algsed <a href="http://en.wikipedia.org/wiki/Baths_of_Diocletian">Diolektuse saunad</a> oli kultuurikeskus, kus oli näiteks muuhulgas ka raamatukogu.</p>
<p><a href="http://dukelupus.files.wordpress.com/2012/04/ss157249.jpg"><img style="background-image:none;margin:5px 0 10px 10px;padding-left:0;padding-right:0;display:inline;float:right;padding-top:0;border-width:0;" title="SS157249" src="http://dukelupus.files.wordpress.com/2012/04/ss157249_thumb.jpg?w=182&h=242" alt="SS157249" width="182" height="242" align="right" border="0" /></a>Mõnevõrra häirisid sissekäigu juures olevad tahvlid, kus paaniliselt üritati tõestada, et Galileo Galilei oli tõsiusklik ja armastas jumalat üle kõige. Kasutati selleks kontekstist välja rebitud tsitaate nii Galileilt endalt kui ka tema biograafidelt jne. Üldiselt jättis häbiväärse mulje, stiilis “hoolimata sellest et inkvisitsioon ta süüdi mõistis, me nüüd ütleme et tema avastused olid jumalik inspiratsioon”.</p>
<p>Omapärane oli ka 2010. aastal paigutatud Galilei pronkskuju (paremal), mis nägi välja nagu inimese ja Doctor Who <a href="http://en.wikipedia.org/wiki/Dalek">daleki</a> ristsugutis.</p>
<p>Huvitav oli kirikuseinas olev pisike auk, millest tuleva päiksekiire järgi pööripäevasid määrati. Kiriku põrandal oli selleks spetsiaalselt kujundatud 45-meetrine pronksist meridiaaniala, kuhu päikesekiir langeb.</p>
<hr />
<p><a href="http://dukelupus.files.wordpress.com/2012/04/ss157284.jpg"><img style="background-image:none;margin:0 0 10px 10px;padding-left:0;padding-right:0;display:inline;float:right;padding-top:0;border-width:0;" title="SS157284" src="http://dukelupus.files.wordpress.com/2012/04/ss157284_thumb.jpg?w=223&h=168" alt="SS157284" width="223" height="168" align="right" border="0" />Basilica di Santa Maria Maggiore</a> ehitati algselt juba viiendal sajandil. Otse loomulikult ei ole praegune basiilika selline nagu ta siis oli, vaid sinna ehitati aastatuhandete jooksul korduvalt juurde.</p>
<p>Hoolimata sellest on kirik eelkõige seespoolt säilitanud Rooma-aegse lihtsuse, mis mõjub suursugusemalt kui hilisemad tilulilusid täis ehitised.</p>
<p><a href="http://dukelupus.files.wordpress.com/2012/04/ss157287.jpg"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;float:left;padding-top:0;border-width:0;" title="SS157287" src="http://dukelupus.files.wordpress.com/2012/04/ss157287_thumb.jpg?w=260&h=200" alt="SS157287" width="260" height="200" align="left" border="0" /></a><a href="http://dukelupus.files.wordpress.com/2012/04/ss157294.jpg"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;float:left;padding-top:0;border-width:0;" title="SS157294" src="http://dukelupus.files.wordpress.com/2012/04/ss157294_thumb.jpg?w=155&h=200" alt="SS157294" width="155" height="200" align="left" border="0" /></a><a href="http://dukelupus.files.wordpress.com/2012/04/ss157298.jpg"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="SS157298" src="http://dukelupus.files.wordpress.com/2012/04/ss157298_thumb.jpg?w=154&h=199" alt="SS157298" width="154" height="199" border="0" /></a></p>
<p>Peaaltari all on väidetavat Jeesuse hälli tükikest sisaldav reliikvialaegas; sellest oluliselt huvitavam on aga samas olev igiõndsa näoga palvetava paavsti kuju.</p>
<hr />
<p><a href="http://dukelupus.files.wordpress.com/2012/04/ss157338.jpg"><img style="background-image:none;margin:0 10px 10px 0;padding-left:0;padding-right:0;display:inline;float:left;padding-top:0;border:0;" title="SS157338" src="http://dukelupus.files.wordpress.com/2012/04/ss157338_thumb.jpg?w=242&h=182" alt="SS157338" width="242" height="182" align="left" border="0" /></a><a href="http://en.wikipedia.org/wiki/Colosseum">Colosseum</a> on teadagi Rooma kuulsaim ehitis ja võiks öelda et kogu antiik-Rooma sümbol. Mida aga pildid ei suuda edasi anda on Colosseumi massiivsus ja suurus. Seda märkasin ma veel mujalgi – fotod ei suuda edasi anda, kui igisuured on näiteks Peetruse kirik või Panteon.</p>
<p><a href="http://dukelupus.files.wordpress.com/2012/04/ss157367.jpg"><img style="background-image:none;margin:0 0 10px 10px;padding-left:0;padding-right:0;display:inline;float:right;padding-top:0;border-width:0;" title="SS157367" src="http://dukelupus.files.wordpress.com/2012/04/ss157367_thumb.jpg?w=242&h=182" alt="SS157367" width="242" height="182" align="right" border="0" /></a>Kindlasti vedas meil Itaalias käimise ajaga. Märtsi keskel on ilm juba eestlase jaoks vägagi soe (päeval varjus 18..20 kraadi), kuid turismihooaeg pole veel alanud. Nii saime Colosseumisse sisse paari minuti ootamisega – kuid suvel tähendavat sissepääs rohkem kui tunnist ootamist palava päikese käes. Küll aga ei olnud avatud areeni-alused käigud – tavaliselt need olevat külastajatele avatud, kuid ainult suveperioodil. Lisaks toimuvad praegu Colosseumis suured restaureerimistööd, mitmed alad on külastajatele suletud.</p>
<p>Ehitati Colosseum esimesel sajandil ning täiendati veel korduvalt kuni viienda sajandini. Mahutas see viiskümmend tuhat pealtvaatajat. Aga kristlasi pole seal kunagi hukatud ega lõvidega võitlema pandud, see on alles 16. sajandil leiutatud legend – mis, tõsi küll, kaitses seda tollal kivimurruna kasutatud ehitist edasise lõhkumise eest.</p>
<hr />
<p><a href="http://dukelupus.files.wordpress.com/2012/04/imag0320.jpg"><img style="background-image:none;margin:0 10px 10px 0;padding-left:0;padding-right:0;display:inline;float:left;padding-top:0;border:0;" title="IMAG0320" src="http://dukelupus.files.wordpress.com/2012/04/imag0320_thumb.jpg?w=146&h=242" alt="IMAG0320" width="146" height="242" align="left" border="0" /></a>Õhtul pimedas käisime <a href="http://en.wikipedia.org/wiki/Spanish_Steps">Hispaania treppe</a> ja <a href="http://en.wikipedia.org/wiki/Trevi_Fountain">Trevi purskkaeve</a> vaatamas. Mõlemaid tasub vaadata õhtul, eriti Trevi purskkaeve, mis oma valgusega valgel marmoril ja sinise veega mõjub lausa lummavalt. Kahjuks polnud mul kaamerat kaasas, nii et peab leppima mobiilipiltidega.</p>
<p><a href="http://dukelupus.files.wordpress.com/2012/04/pano_20120315_204213.jpg"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="PANO_20120315_204213" src="http://dukelupus.files.wordpress.com/2012/04/pano_20120315_204213_thumb.jpg?w=736&h=177" alt="PANO_20120315_204213" width="736" height="177" border="0" /></a></p>
<br />Filed under: <a href='http://dukelupus.wordpress.com/category/isiklikud/reisid/'>Reisid</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dukelupus.wordpress.com/1068/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dukelupus.wordpress.com/1068/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dukelupus.wordpress.com/1068/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dukelupus.wordpress.com/1068/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dukelupus.wordpress.com/1068/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dukelupus.wordpress.com/1068/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dukelupus.wordpress.com/1068/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dukelupus.wordpress.com/1068/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dukelupus.wordpress.com/1068/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dukelupus.wordpress.com/1068/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dukelupus.wordpress.com/1068/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dukelupus.wordpress.com/1068/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dukelupus.wordpress.com/1068/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dukelupus.wordpress.com/1068/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dukelupus.wordpress.com&#038;blog=627611&#038;post=1068&#038;subd=dukelupus&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dukelupus.wordpress.com/2012/04/09/itaalia-15-mrts-rooma/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/312b17ed683479208431a90bf95dde9c?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">DukeLupus</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/04/ss157233_thumb.jpg" medium="image">
			<media:title type="html">SS157233</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/04/ss157246_thumb.jpg" medium="image">
			<media:title type="html">SS157246</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/04/ss157249_thumb.jpg" medium="image">
			<media:title type="html">SS157249</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/04/ss157284_thumb.jpg" medium="image">
			<media:title type="html">SS157284</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/04/ss157287_thumb.jpg" medium="image">
			<media:title type="html">SS157287</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/04/ss157294_thumb.jpg" medium="image">
			<media:title type="html">SS157294</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/04/ss157298_thumb.jpg" medium="image">
			<media:title type="html">SS157298</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/04/ss157338_thumb.jpg" medium="image">
			<media:title type="html">SS157338</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/04/ss157367_thumb.jpg" medium="image">
			<media:title type="html">SS157367</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/04/imag0320_thumb.jpg" medium="image">
			<media:title type="html">IMAG0320</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/04/pano_20120315_204213_thumb.jpg" medium="image">
			<media:title type="html">PANO_20120315_204213</media:title>
		</media:content>
	</item>
		<item>
		<title>Generic methods to get configuration values</title>
		<link>http://dukelupus.wordpress.com/2012/04/05/generic-methods-to-get-configuration-values/</link>
		<comments>http://dukelupus.wordpress.com/2012/04/05/generic-methods-to-get-configuration-values/#comments</comments>
		<pubDate>Thu, 05 Apr 2012 08:35:35 +0000</pubDate>
		<dc:creator>Sander</dc:creator>
				<category><![CDATA[Programmeerimine]]></category>
		<category><![CDATA[app.config]]></category>
		<category><![CDATA[web.config]]></category>

		<guid isPermaLink="false">https://dukelupus.wordpress.com/?p=1042</guid>
		<description><![CDATA[For some reason, there are things in code that I just cannot remember. One of these things is getting values from configuration – web.config or app.config. Yes, I know, it is ridiculous. I remember literally hundreds of classes and methods, but a simple, one-line “ConfigurationManager.AppSettings[key]” I have to google. So I just gave up and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dukelupus.wordpress.com&#038;blog=627611&#038;post=1042&#038;subd=dukelupus&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img style="background-image:none;margin:0 0 10px 10px;padding-left:0;padding-right:0;display:inline;float:right;padding-top:0;border-width:0;" title="CSharpLogo" border="0" alt="CSharpLogo" align="right" src="http://dukelupus.files.wordpress.com/2012/02/csharplogo.png?w=227&amp;h=158&h=158" width="227" height="158" />For some reason, there are things in code that I<em> just cannot</em> <em>remember</em>. One of these things is getting values from configuration – web.config or app.config. </p>
<p>Yes, I know, it is ridiculous. I remember literally hundreds of classes and methods, but a simple, one-line “<font face="Consolas">ConfigurationManager.AppSettings[key]</font>” I have to google. So I just gave up and wrote a wrapper – and to make it a bit more useful, I did a generic version, which can get the configuration value already in a specified type.</p>
<p>So, here is the three-method class, imaginatively named “Config”:</p>
<div style="margin:0;display:inline;float:none;padding:0;" id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:a4fa1479-b0a2-4526-b7cd-f8f5849460c2" class="wlWriterEditableSmartContent">
<div style="border:#000080 1px solid;color:#000;font-family:'Courier New', Courier, Monospace;font-size:10pt;">
<div style="background:#ddd;overflow:auto;">
<ol start="1" style="background:#ffffff;margin:0 0 0 2.5em;padding:0 0 0 5px;">
<li><span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;summary&gt;</span></li>
<li style="background:#f3f3f3;"><span style="color:#808080;">///</span><span style="color:#008000;"> Shorthand class for easy access to web.config values</span></li>
<li><span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;/summary&gt;</span></li>
<li style="background:#f3f3f3;"><span style="color:#0000ff;">public</span> <span style="color:#0000ff;">static</span> <span style="color:#0000ff;">class</span> <span style="color:#2b91af;">Config</span></li>
<li>{</li>
<li style="background:#f3f3f3;">&nbsp;</li>
<li>    <span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;summary&gt;</span></li>
<li style="background:#f3f3f3;">    <span style="color:#808080;">///</span><span style="color:#008000;"> Gets the setting as string by key.</span></li>
<li>    <span style="color:#808080;">///</span><span style="color:#008000;"> Return string.Empty if the key does not exist</span></li>
<li style="background:#f3f3f3;">    <span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;/summary&gt;</span></li>
<li>    <span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;param name=&quot;key&quot;&gt;</span><span style="color:#008000;">The key.</span><span style="color:#808080;">&lt;/param&gt;</span></li>
<li style="background:#f3f3f3;">    <span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;returns&gt;&lt;/returns&gt;</span></li>
<li>    <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">static</span> <span style="color:#0000ff;">string</span> GetSettingByKey(<span style="color:#0000ff;">string</span> key)</li>
<li style="background:#f3f3f3;">    {</li>
<li>        <span style="color:#0000ff;">return</span> <span style="color:#2b91af;">ConfigurationManager</span>.AppSettings[key] ?? <span style="color:#0000ff;">string</span>.Empty;</li>
<li style="background:#f3f3f3;">    }</li>
<li>&nbsp;</li>
<li style="background:#f3f3f3;">    <span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;summary&gt;</span></li>
<li>    <span style="color:#808080;">///</span><span style="color:#008000;"> Generic version of GetSettingByKey().</span></li>
<li style="background:#f3f3f3;">    <span style="color:#808080;">///</span><span style="color:#008000;"> Returns default(T) if the key does not exist</span></li>
<li>    <span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;/summary&gt;</span></li>
<li style="background:#f3f3f3;">    <span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;typeparam name=&quot;T&quot;&gt;&lt;/typeparam&gt;</span></li>
<li>    <span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;param name=&quot;key&quot;&gt;</span><span style="color:#008000;">The key.</span><span style="color:#808080;">&lt;/param&gt;</span></li>
<li style="background:#f3f3f3;">    <span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;returns&gt;&lt;/returns&gt;</span></li>
<li>    <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">static</span> T GetSettingByKey&lt;T&gt;(<span style="color:#0000ff;">string</span> key)</li>
<li style="background:#f3f3f3;">    {</li>
<li>        <span style="color:#0000ff;">var</span> value = <span style="color:#2b91af;">ConfigurationManager</span>.AppSettings[key];</li>
<li style="background:#f3f3f3;">&nbsp;</li>
<li>        <span style="color:#0000ff;">return</span> <span style="color:#0000ff;">string</span>.IsNullOrWhiteSpace(value) ? <span style="color:#0000ff;">default</span>(T) : (T)(<span style="color:#0000ff;">object</span>)(value);</li>
<li style="background:#f3f3f3;">    }</li>
<li>&nbsp;</li>
<li style="background:#f3f3f3;">    <span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;summary&gt;</span></li>
<li>    <span style="color:#808080;">///</span><span style="color:#008000;"> Returns defaultValue, if the key does not exist.</span></li>
<li style="background:#f3f3f3;">    <span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;/summary&gt;</span></li>
<li>    <span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;typeparam name=&quot;T&quot;&gt;&lt;/typeparam&gt;</span></li>
<li style="background:#f3f3f3;">    <span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;param name=&quot;key&quot;&gt;</span><span style="color:#008000;">The key.</span><span style="color:#808080;">&lt;/param&gt;</span></li>
<li>    <span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;param name=&quot;defaultValue&quot;&gt;</span><span style="color:#008000;">The default value.</span><span style="color:#808080;">&lt;/param&gt;</span></li>
<li style="background:#f3f3f3;">    <span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;returns&gt;&lt;/returns&gt;</span></li>
<li>    <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">static</span> T GetSettingByKey&lt;T&gt;(<span style="color:#0000ff;">string</span> key, T defaultValue)</li>
<li style="background:#f3f3f3;">    {</li>
<li>        <span style="color:#0000ff;">var</span> value = <span style="color:#2b91af;">ConfigurationManager</span>.AppSettings[key];</li>
<li style="background:#f3f3f3;">&nbsp;</li>
<li>        <span style="color:#0000ff;">return</span> <span style="color:#0000ff;">string</span>.IsNullOrWhiteSpace(value) ? defaultValue : (T)(<span style="color:#0000ff;">object</span>)(value);</li>
<li style="background:#f3f3f3;">    } </li>
<li>}</li>
</ol></div>
</p></div>
</p></div>
<p>Use it simply <font face="Lucida Console">Config.GetSettingByKey&lt;int&gt;(“RowCount”)</font> – which would return 0, if the key “RowCount” doesn’t exist. Use <font face="Lucida Console">Config.GetSettingByKey&lt;int&gt;(“RowCount”, 16)</font> to specify a different default value.</p>
<p>You could also do separate properties for more frequently used configuration values, to avoid typos in string keys:</p>
</p>
<div style="margin:0;display:inline;float:none;padding:0;" id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:9393e03d-08e7-4877-a0e5-10601360a35d" class="wlWriterEditableSmartContent">
<div style="border:#000080 1px solid;color:#000;font-family:'Courier New', Courier, Monospace;font-size:10pt;">
<div style="background:#ddd;overflow:auto;">
<ol start="1" style="background:#ffffff;margin:0 0 0 2em;padding:0 0 0 5px;">
<li><span style="color:#0000ff;">public</span> <span style="color:#0000ff;">static</span> <span style="color:#2b91af;">DateTime</span> MyDateTime</li>
<li style="background:#f3f3f3;">{</li>
<li>    <span style="color:#0000ff;">get</span> { <span style="color:#0000ff;">return</span> GetSettingByKey&lt;<span style="color:#2b91af;">DateTime</span>&gt;(<span style="color:#a31515;">&quot;MyDateTime&quot;</span>, <span style="color:#2b91af;">DateTime</span>.Now); }</li>
<li style="background:#f3f3f3;">}</li>
</ol></div>
</p></div>
</p></div>
<br />Filed under: <a href='http://dukelupus.wordpress.com/category/infotehnoloogia/programmeerimine/'>Programmeerimine</a> Tagged: <a href='http://dukelupus.wordpress.com/tag/app-config/'>app.config</a>, <a href='http://dukelupus.wordpress.com/tag/web-config/'>web.config</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dukelupus.wordpress.com/1042/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dukelupus.wordpress.com/1042/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dukelupus.wordpress.com/1042/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dukelupus.wordpress.com/1042/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dukelupus.wordpress.com/1042/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dukelupus.wordpress.com/1042/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dukelupus.wordpress.com/1042/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dukelupus.wordpress.com/1042/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dukelupus.wordpress.com/1042/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dukelupus.wordpress.com/1042/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dukelupus.wordpress.com/1042/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dukelupus.wordpress.com/1042/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dukelupus.wordpress.com/1042/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dukelupus.wordpress.com/1042/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dukelupus.wordpress.com&#038;blog=627611&#038;post=1042&#038;subd=dukelupus&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dukelupus.wordpress.com/2012/04/05/generic-methods-to-get-configuration-values/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/312b17ed683479208431a90bf95dde9c?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">DukeLupus</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/02/csharplogo.png?w=227&#38;h=158" medium="image">
			<media:title type="html">CSharpLogo</media:title>
		</media:content>
	</item>
		<item>
		<title>Most important time in your life</title>
		<link>http://dukelupus.wordpress.com/2012/03/23/most-important-time-in-your-life/</link>
		<comments>http://dukelupus.wordpress.com/2012/03/23/most-important-time-in-your-life/#comments</comments>
		<pubDate>Fri, 23 Mar 2012 14:46:50 +0000</pubDate>
		<dc:creator>Sander</dc:creator>
				<category><![CDATA[Kultuur]]></category>
		<category><![CDATA[quote]]></category>

		<guid isPermaLink="false">https://dukelupus.wordpress.com/?p=1040</guid>
		<description><![CDATA[It is not birth, marriage, or death, but gastrulation, which is truly the most important time in your life. &#8211; Lewis Wolpert Filed under: Kultuur Tagged: quote<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dukelupus.wordpress.com&#038;blog=627611&#038;post=1040&#038;subd=dukelupus&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<blockquote><p>It is not birth, marriage, or death, but gastrulation, which is truly the most important time in your life.</p>
</blockquote>
<blockquote><p>&#8211; <a href="http://en.wikipedia.org/wiki/Lewis_Wolpert">Lewis Wolpert</a></p>
</blockquote>
<br />Filed under: <a href='http://dukelupus.wordpress.com/category/kultuur/'>Kultuur</a> Tagged: <a href='http://dukelupus.wordpress.com/tag/quote/'>quote</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dukelupus.wordpress.com/1040/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dukelupus.wordpress.com/1040/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dukelupus.wordpress.com/1040/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dukelupus.wordpress.com/1040/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dukelupus.wordpress.com/1040/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dukelupus.wordpress.com/1040/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dukelupus.wordpress.com/1040/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dukelupus.wordpress.com/1040/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dukelupus.wordpress.com/1040/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dukelupus.wordpress.com/1040/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dukelupus.wordpress.com/1040/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dukelupus.wordpress.com/1040/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dukelupus.wordpress.com/1040/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dukelupus.wordpress.com/1040/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dukelupus.wordpress.com&#038;blog=627611&#038;post=1040&#038;subd=dukelupus&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dukelupus.wordpress.com/2012/03/23/most-important-time-in-your-life/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/312b17ed683479208431a90bf95dde9c?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">DukeLupus</media:title>
		</media:content>
	</item>
		<item>
		<title>Peter Medawar on education</title>
		<link>http://dukelupus.wordpress.com/2012/03/21/the-spread-of-secondary-a/</link>
		<comments>http://dukelupus.wordpress.com/2012/03/21/the-spread-of-secondary-a/#comments</comments>
		<pubDate>Wed, 21 Mar 2012 16:30:09 +0000</pubDate>
		<dc:creator>Sander</dc:creator>
				<category><![CDATA[Kultuur]]></category>
		<category><![CDATA[quote]]></category>

		<guid isPermaLink="false">http://dukelupus.wordpress.com/2012/03/21/the-spread-of-secondary-a/</guid>
		<description><![CDATA[<blockquote>The spread of secondary and latterly tertiary education has created a large population of people, often with well-developed literary and scholarly tastes, who have been educated far beyond their capacity to undertake analytical thought.

-- Peter Medawar</blockquote><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dukelupus.wordpress.com&#038;blog=627611&#038;post=1036&#038;subd=dukelupus&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<blockquote><p>The spread of secondary and latterly tertiary education has created a large population of people, often with well-developed literary and scholarly tastes, who have been educated far beyond their capacity to undertake analytical thought.</p>
<p>&#8211; <a href="http://en.wikipedia.org/wiki/Peter_Medawar">Peter Medawar</a></p></blockquote>
<br />Filed under: <a href='http://dukelupus.wordpress.com/category/kultuur/'>Kultuur</a> Tagged: <a href='http://dukelupus.wordpress.com/tag/quote/'>quote</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dukelupus.wordpress.com/1036/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dukelupus.wordpress.com/1036/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dukelupus.wordpress.com/1036/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dukelupus.wordpress.com/1036/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dukelupus.wordpress.com/1036/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dukelupus.wordpress.com/1036/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dukelupus.wordpress.com/1036/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dukelupus.wordpress.com/1036/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dukelupus.wordpress.com/1036/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dukelupus.wordpress.com/1036/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dukelupus.wordpress.com/1036/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dukelupus.wordpress.com/1036/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dukelupus.wordpress.com/1036/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dukelupus.wordpress.com/1036/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dukelupus.wordpress.com&#038;blog=627611&#038;post=1036&#038;subd=dukelupus&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dukelupus.wordpress.com/2012/03/21/the-spread-of-secondary-a/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/312b17ed683479208431a90bf95dde9c?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">DukeLupus</media:title>
		</media:content>
	</item>
		<item>
		<title>Get all constant values of a class using reflection</title>
		<link>http://dukelupus.wordpress.com/2012/03/06/get-all-constant-values-of-a-class-using-reflection/</link>
		<comments>http://dukelupus.wordpress.com/2012/03/06/get-all-constant-values-of-a-class-using-reflection/#comments</comments>
		<pubDate>Tue, 06 Mar 2012 15:38:23 +0000</pubDate>
		<dc:creator>Sander</dc:creator>
				<category><![CDATA[Programmeerimine]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Constants]]></category>
		<category><![CDATA[Reflection]]></category>

		<guid isPermaLink="false">https://dukelupus.wordpress.com/?p=1025</guid>
		<description><![CDATA[/// &#60;summary&#62; /// Return all the values of constants of the specified type /// &#60;/summary&#62; /// &#60;typeparam name=&#34;T&#34;&#62;What type of constants to return&#60;/typeparam&#62; /// &#60;param name=&#34;type&#34;&#62;Type to examine&#60;/param&#62; /// &#60;returns&#62;List of constant values&#60;/returns&#62; public static List&#60;T&#62; GetConstantValues&#60;T&#62;(Type type) {     FieldInfo[] fields = type.GetFields(BindingFlags.Public         &#124; BindingFlags.Static         &#124; BindingFlags.FlattenHierarchy); &#160;     return (fields.Where(fieldInfo =&#62; fieldInfo.IsLiteral         &#38;&#38; !fieldInfo.IsInitOnly         &#38;&#38; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dukelupus.wordpress.com&#038;blog=627611&#038;post=1025&#038;subd=dukelupus&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div style="display:inline;float:none;margin:0;padding:0;" id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:86eb88ba-cabf-488b-bb91-0b2a6d97b8c2" class="wlWriterEditableSmartContent">
<div style="border:#000080 1px solid;color:#000;font-family:'Courier New', Courier, Monospace;font-size:10pt;">
<div style="background:#ddd;overflow:auto;">
<ol start="1" style="background:#ffffff;margin:0 0 0 2.5em;padding:0 0 0 5px;">
<li><span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;summary&gt;</span></li>
<li style="background:#f3f3f3;"><span style="color:#808080;">///</span><span style="color:#008000;"> Return all the values of constants of the specified type</span></li>
<li><span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;/summary&gt;</span></li>
<li style="background:#f3f3f3;"><span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;typeparam name=&quot;T&quot;&gt;</span><span style="color:#008000;">What type of constants to return</span><span style="color:#808080;">&lt;/typeparam&gt;</span></li>
<li><span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;param name=&quot;type&quot;&gt;</span><span style="color:#008000;">Type to examine</span><span style="color:#808080;">&lt;/param&gt;</span></li>
<li style="background:#f3f3f3;"><span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;returns&gt;</span><span style="color:#008000;">List of constant values</span><span style="color:#808080;">&lt;/returns&gt;</span></li>
<li><span style="color:#0000ff;">public</span> <span style="color:#0000ff;">static</span> <span style="color:#2b91af;">List</span>&lt;T&gt; GetConstantValues&lt;T&gt;(<span style="color:#2b91af;">Type</span> type)</li>
<li style="background:#f3f3f3;">{</li>
<li>    <span style="color:#2b91af;">FieldInfo</span>[] fields = type.GetFields(<span style="color:#2b91af;">BindingFlags</span>.Public</li>
<li style="background:#f3f3f3;">        | <span style="color:#2b91af;">BindingFlags</span>.Static</li>
<li>        | <span style="color:#2b91af;">BindingFlags</span>.FlattenHierarchy);</li>
<li style="background:#f3f3f3;">&nbsp;</li>
<li>    <span style="color:#0000ff;">return</span> (fields.Where(fieldInfo =&gt; fieldInfo.IsLiteral </li>
<li style="background:#f3f3f3;">        &amp;&amp; !fieldInfo.IsInitOnly </li>
<li>        &amp;&amp; fieldInfo.FieldType == <span style="color:#0000ff;">typeof</span>(T)).Select(fi =&gt; (T)fi.GetRawConstantValue())).ToList();</li>
<li style="background:#f3f3f3;">}</li>
</ol></div>
</p></div>
</p></div>
<p>Above is a simple generic method to get all constants of a specific type of a class. I.e. to get all string constants, use:</p>
<p style="font-family:monospace;font-size:12px;">var allStringConstants = GetConstantValues&lt;string&gt;(typeof(myClass));</p>
<p>To get all int values:</p>
<p style="font-family:monospace;font-size:12px;">var allIntConstants = GetConstantValues&lt;int&gt;(typeof(myClass));</p>
<p>and so forth.</p>
<p>The inspiration for this method came from <a title="http://weblogs.asp.net/whaggard/archive/2003/02/20/2708.aspx" href="http://weblogs.asp.net/whaggard/archive/2003/02/20/2708.aspx">http://weblogs.asp.net/whaggard/archive/2003/02/20/2708.aspx</a></p>
<br />Filed under: <a href='http://dukelupus.wordpress.com/category/infotehnoloogia/programmeerimine/'>Programmeerimine</a> Tagged: <a href='http://dukelupus.wordpress.com/tag/c/'>C#</a>, <a href='http://dukelupus.wordpress.com/tag/constants/'>Constants</a>, <a href='http://dukelupus.wordpress.com/tag/reflection/'>Reflection</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dukelupus.wordpress.com/1025/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dukelupus.wordpress.com/1025/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dukelupus.wordpress.com/1025/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dukelupus.wordpress.com/1025/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dukelupus.wordpress.com/1025/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dukelupus.wordpress.com/1025/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dukelupus.wordpress.com/1025/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dukelupus.wordpress.com/1025/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dukelupus.wordpress.com/1025/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dukelupus.wordpress.com/1025/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dukelupus.wordpress.com/1025/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dukelupus.wordpress.com/1025/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dukelupus.wordpress.com/1025/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dukelupus.wordpress.com/1025/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dukelupus.wordpress.com&#038;blog=627611&#038;post=1025&#038;subd=dukelupus&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dukelupus.wordpress.com/2012/03/06/get-all-constant-values-of-a-class-using-reflection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/312b17ed683479208431a90bf95dde9c?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">DukeLupus</media:title>
		</media:content>
	</item>
		<item>
		<title>Tehnilised intervjuuküsimused C# programmeerijale</title>
		<link>http://dukelupus.wordpress.com/2012/03/02/tehnilised-intervjuukusimused-c-programmeerijale/</link>
		<comments>http://dukelupus.wordpress.com/2012/03/02/tehnilised-intervjuukusimused-c-programmeerijale/#comments</comments>
		<pubDate>Fri, 02 Mar 2012 07:00:38 +0000</pubDate>
		<dc:creator>Sander</dc:creator>
				<category><![CDATA[Programmeerimine]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[tööintervjuu]]></category>

		<guid isPermaLink="false">https://dukelupus.wordpress.com/?p=1018</guid>
		<description><![CDATA[Olen viimase poole aasta jooksul päris mitmel .NET programmeerija tööintervjuul osalenud – siis intervjueerijana, mitte intervjueeritavana. Mulle ei meeldi küsida trikk-küsimusi – kui sult kunagi tööintervjuul küsitakse “mitu muna munevad 1.5 kana 1.5 päevaga, kui…” või muud sellesarnast, siis küsi vastu – et kas selliste probleemidega siis siin firmas tegeletaksegi? Ma tulin programmeerijaks, mitte talunikuks. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dukelupus.wordpress.com&#038;blog=627611&#038;post=1018&#038;subd=dukelupus&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img style="background-image:none;padding-left:0;padding-right:0;display:inline;float:right;padding-top:0;border:0;margin:0 0 10px 10px;" title="CSharpLogo" src="http://dukelupus.files.wordpress.com/2012/02/csharplogo.png?w=227&h=158" alt="CSharpLogo" width="227" height="158" align="right" border="0" />Olen viimase poole aasta jooksul päris mitmel .NET programmeerija tööintervjuul osalenud – siis intervjueerijana, mitte intervjueeritavana.</p>
<p>Mulle ei meeldi küsida trikk-küsimusi – kui sult kunagi tööintervjuul küsitakse “mitu muna munevad 1.5 kana 1.5 päevaga, kui…” või muud sellesarnast, siis küsi vastu – et kas selliste probleemidega siis siin firmas tegeletaksegi? Ma tulin programmeerijaks, mitte talunikuks.</p>
<p>Veel vähem meeldivad mulle kohapeal programmeerimisülesannete lahendamised. Kui viimati ise intervjueeritava rollis olin, siis paluti mul tahvlil üks suhteliselt lihtne probleem lahendada. Keeldusin, põhjendades seda sellega, et ei usu et sellisest lahendamisest saaks reaalselt aru minu oskustest programmeerijana.</p>
<p>Miks nii? Nagunii on pinge sees – vaja ju paista välja hästi tark, lisaks eeldavad sellised kiirülesanded sageli mitte intelligentset probleemi lahendamist, vaid eelnevalt kindla lahenduse teadmist. See ei anna ka edasi tegelikke intervjueeritava oskuseid – ta võib ju olla superhea <em>linked listi</em> mudija või stringi tagurpidi keeraja, aga kui ta seejärel ei saa hakkama mitte millegi muuga…</p>
<p>Ah jaa, tolle tööintervjuu ma läbisin edukalt. “Tehniline intervjueerija” olevat käskinud osakonnajuhil mind kindlasti palgata.</p>
<p>Nüüdseks on mul kogunenud üks ports oma pisiküsimusi – enamik neist on C# süntaksi kohta. Ma ei eeldagi intervjueeritavalt, et ta neid kõiki silmpilkselt suudaks vastata. Pigem annab inimesest aimu see, kas ta suudab kümnestkonnast küsimusest vähemalt osale midagi vastuseks öelda – või suudab ta leida lahenduse loogikat kasutades. Või isegi, kuidas ta käitub vastust mitte teades.</p>
<p>Paljud neist küsimused on kasulikud teada igapäevaprogrammeerimisel – ning paljud küsimused seda ei ole. Mõned on hädavajalikud teada. Enamik ei ole.</p>
<p>Lisaks on vaja <em>kindlasti</em> lasta lahendada testülesanne – so, mitte just kõige lihtsam pisirakendus, mida saab kodus paari päeva jooksul programmeerida. See annab inimese oskustest kõige parema ülevaate. Kas asi on <em>spaghetti</em>, kas kood on korralikult kommenteeritud, kuidas on struktureerimisega, nõuete implementeerimisega ja nii edasi.</p>
<p>Lisaks loe ka mu eelmisi programmeerija mitte .NET-spetsiifilisi tööintervjuualaseid postitusi: <a href="http://dukelupus.wordpress.com/2007/12/22/algale-programmeerijale-nuandeid-tintervjuuks-esimene-osa/">1</a>, <a href="http://dukelupus.wordpress.com/2007/12/23/algajale-programmeerijale-nuandeid-tintervjuuks-teine-osa/">2</a>, <a href="http://dukelupus.wordpress.com/2007/12/29/algajale-programmeerijale-nuandeid-tintervjuuks-kolmas-osa/">3</a>.</p>
<p><strong>TL,DR</strong>: mul on tekkinud kolmkümmend tehnilist küsimust, mida küsida tööintervjuudel. Siin on neist kümme. Kui saan kokku viiskümmend küsimust, siis postitan järgmised kümme. Vastused võid kommentaaridesse postitada.</p>
<ol>
<li>Mis on <span style="font-family:Lucida Console;"><em>readonly</em></span> ja <span style="font-family:Lucida Console;"><em>const</em></span> vahe? Millal saab esimest kasutada ja milline on saadav kiirusevõit?</li>
<li><em>float</em>, <em>double</em>, <em>decimal</em>. Mis on nende erinevused? Mille poolest erineb <em>decimal</em> kahest teisest? Milline on neist kolmest kiireim arvutustes? Aga täpseim?</li>
<li><em>ArrayList</em> vs geneeriline <em>List&lt;&gt;</em>. Kumb on kiirem, millised on ühe või teise eelised?</li>
<li>Mis on ja kus sa kasutaksid singleton patternit? Mis juhul sa ei saa <em>static</em>’ut kasutada ja pead singletoni kasutama?</li>
<li>Kas staatilisel klassil saab olla konstruktor? Kui jah, siis millal seda välja kutsutakse? Aga destruktor?</li>
<li>Kuidas sa lahendaksid olukorra, kus sama interface’i implementeerivatel klassidel on vaja sama funktsionaalsust – näiteks on <em>3rd-party library</em>’s interface IPerson, millel on property’d Firstname, Lastname, Initial. Seda implementeerivad sinu klassid Customer, Client, Employee ja Manager, mis vajavad kõik täisnime kuvamise funktsionaalsust. Kuidas seda teha, kui interface’i ei saa muuta? (NB! Siin on vähemalt kaks võimalust)</li>
<li>Mille poolest erinevad funktsiooni parameetrites<em> Foo(params string[] list)</em> ja <em>Bar(string[] list)</em>?</li>
<li>Kas interface’st päritud klass saab olla staatiline?</li>
<li>Mida võimaldab @ stringi ees (<em>@”foo. bar.”</em>)? Aga muutuja nime ees <em>(@variable</em>)?</li>
<li>Kas enum’i numbriline väärtus saab olla suurem, kui Int32.MaxValue?</li>
</ol>
<br />Filed under: <a href='http://dukelupus.wordpress.com/category/infotehnoloogia/programmeerimine/'>Programmeerimine</a> Tagged: <a href='http://dukelupus.wordpress.com/tag/c/'>C#</a>, <a href='http://dukelupus.wordpress.com/tag/toointervjuu/'>tööintervjuu</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dukelupus.wordpress.com/1018/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dukelupus.wordpress.com/1018/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dukelupus.wordpress.com/1018/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dukelupus.wordpress.com/1018/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dukelupus.wordpress.com/1018/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dukelupus.wordpress.com/1018/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dukelupus.wordpress.com/1018/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dukelupus.wordpress.com/1018/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dukelupus.wordpress.com/1018/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dukelupus.wordpress.com/1018/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dukelupus.wordpress.com/1018/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dukelupus.wordpress.com/1018/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dukelupus.wordpress.com/1018/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dukelupus.wordpress.com/1018/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dukelupus.wordpress.com&#038;blog=627611&#038;post=1018&#038;subd=dukelupus&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dukelupus.wordpress.com/2012/03/02/tehnilised-intervjuukusimused-c-programmeerijale/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/312b17ed683479208431a90bf95dde9c?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">DukeLupus</media:title>
		</media:content>

		<media:content url="http://dukelupus.files.wordpress.com/2012/02/csharplogo.png" medium="image">
			<media:title type="html">CSharpLogo</media:title>
		</media:content>
	</item>
	</channel>
</rss>
