<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Mindaugas Rupšys</title>
	<atom:link href="http://mindaugasrupsys.com/feed" rel="self" type="application/rss+xml" />
	<link>http://mindaugasrupsys.com</link>
	<description>homepage, blog, portfolio, stuff</description>
	<lastBuildDate>Mon, 24 Oct 2011 11:23:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>C++ fun with typedef and const</title>
		<link>http://mindaugasrupsys.com/c-fun-with-typedef-and-const</link>
		<comments>http://mindaugasrupsys.com/c-fun-with-typedef-and-const#comments</comments>
		<pubDate>Wed, 03 Mar 2010 22:48:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Dev]]></category>

		<guid isPermaLink="false">http://mindaugasrupsys.com/?p=77</guid>
		<description><![CDATA[Weird isn't it? From first glance everything looks alright and I really didn't understood why it was not working. After some googling I find out what is going on. Problem is that qualifier (const or others) applies at the very top level, in my situation once I typedef type with pointer qualifier can not be injected between type and a pointer. ]]></description>
			<content:encoded><![CDATA[<p>I stumbled on some interesting problem today:</p>

<div class="wp_syntax"><div class="code"><pre class="cpp" style="font-family:monospace;"><span style="color: #0000ff;">typedef</span> <span style="color: #0000ff;">char</span> <span style="color: #000040;">*</span>MY_KEY<span style="color: #008080;">;</span>
&nbsp;
<span style="color: #0000ff;">void</span> foo <span style="color: #008000;">&#40;</span><span style="color: #0000ff;">const</span> MY_KEY key<span style="color: #008000;">&#41;</span>
<span style="color: #008000;">&#123;</span>
<span style="color: #666666;">// ...</span>
<span style="color: #008000;">&#125;</span>
&nbsp;
<span style="color: #0000ff;">int</span> main <span style="color: #008000;">&#40;</span>...<span style="color: #008000;">&#41;</span>
<span style="color: #008000;">&#123;</span>
&nbsp;
<span style="color: #0000ff;">const</span> <span style="color: #0000ff;">char</span> <span style="color: #000040;">*</span>str <span style="color: #000080;">=</span> <span style="color: #FF0000;">&quot;some str&quot;</span><span style="color: #008080;">;</span>
foo <span style="color: #008000;">&#40;</span>str<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>  <span style="color: #666666;">// error: smth like unable to convert LPCSTR (const char*) to char*</span>
&nbsp;
<span style="color: #008000;">&#125;</span></pre></div></div>

<p>Weird isn&#8217;t it? From first glance everything looks alright and I really didn&#8217;t understood why it was not working. After some googling I find out what is going on. Problem is that qualifier (<strong>const</strong> or others) applies at the very top level, in my situation once I <strong>typedef</strong> type with pointer qualifier can not be injected between type and a pointer. Here what is happening:</p>

<div class="wp_syntax"><div class="code"><pre class="cpp" style="font-family:monospace;"><span style="color: #0000ff;">typedef</span> <span style="color: #0000ff;">char</span> <span style="color: #000040;">*</span>MY_KEY<span style="color: #008080;">;</span>
<span style="color: #0000ff;">void</span> foo <span style="color: #008000;">&#40;</span><span style="color: #0000ff;">const</span> MY_KEY key<span style="color: #008000;">&#41;</span> <span style="color: #000040;">-</span><span style="color: #000040;">&amp;</span>gt<span style="color: #008080;">;</span> equals to <span style="color: #000040;">-</span><span style="color: #000040;">&amp;</span>gt<span style="color: #008080;">;</span> <span style="color: #0000ff;">void</span> foo <span style="color: #008000;">&#40;</span><span style="color: #0000ff;">const</span> <span style="color: #008000;">&#40;</span><span style="color: #0000ff;">char</span> <span style="color: #000040;">*</span><span style="color: #008000;">&#41;</span> key<span style="color: #008000;">&#41;</span></pre></div></div>

<p>Now to avoid this situation <strong>typedef</strong> should be done without pointer, like this:</p>

<div class="wp_syntax"><div class="code"><pre class="cpp" style="font-family:monospace;"><span style="color: #0000ff;">typedef</span> <span style="color: #0000ff;">char</span> MY_KEY<span style="color: #008080;">;</span>
&nbsp;
<span style="color: #0000ff;">void</span> foo <span style="color: #008000;">&#40;</span><span style="color: #0000ff;">const</span> MY_KEY <span style="color: #000040;">*</span>key<span style="color: #008000;">&#41;</span>
<span style="color: #008000;">&#123;</span>
<span style="color: #666666;">// ...</span>
<span style="color: #008000;">&#125;</span>
&nbsp;
<span style="color: #0000ff;">int</span> main <span style="color: #008000;">&#40;</span>...<span style="color: #008000;">&#41;</span>
<span style="color: #008000;">&#123;</span>
&nbsp;
<span style="color: #0000ff;">const</span> <span style="color: #0000ff;">char</span> <span style="color: #000040;">*</span>str <span style="color: #000080;">=</span> <span style="color: #FF0000;">&quot;some str&quot;</span><span style="color: #008080;">;</span>
foo <span style="color: #008000;">&#40;</span>str<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>  <span style="color: #666666;">// and it works as it should</span>
&nbsp;
<span style="color: #008000;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://mindaugasrupsys.com/c-fun-with-typedef-and-const/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wikipedia Forever</title>
		<link>http://mindaugasrupsys.com/wikipedia-forever</link>
		<comments>http://mindaugasrupsys.com/wikipedia-forever#comments</comments>
		<pubDate>Sat, 12 Dec 2009 21:43:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://mindaugasrupsys.com/?p=66</guid>
		<description><![CDATA[Could you imagine that wikipedia, this amazing resource is still free ? Now, then everybody tries to make some money with any traffic and wikipedia 7ranked (Alexa) site in the whole world doesn't.]]></description>
			<content:encoded><![CDATA[<p>Could you imagine that wikipedia, this amazing resource is still free ? Now, when everybody tries to make some money with any traffic and wikipedia 7ranked (Alexa) site in the whole world doesn&#8217;t. Its fantastic resource where I could spend hours whenever I need some reliable information on any topic in the world or I am bored and just read whatever comes. Sometimes I even don&#8217;t google anymore I use wiki instead, even if I do I am using it something like &#8211; &lt;topic&gt; &#8220;wiki&#8221;. Its irreplaceable resource for any person who is constantly learning something new.</p>
<p>I hope it will remain free and won&#8217;t become some commercial giant, because then it won&#8217;t be a great loss, because it would lose the idea, the essence. Wikimedia Foundation needs donations now. I am encouraging any habitual wiki user to donate at least few bucks. I guess, if all users would donate at least 1$ the current target goal 14$ million would be reached quite easily. So, do it now:</p>
<p><a href="http://wikimediafoundation.org/wiki/Support_Wikipedia/en"><img src="http://wikimediafoundation.org/w/extensions/skins/Donate/images/banners/Banner_125x125_0001_B.jpg" border="0" alt="Wikipedia Affiliate Button" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://mindaugasrupsys.com/wikipedia-forever/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Color Inspiration</title>
		<link>http://mindaugasrupsys.com/color-inspiration</link>
		<comments>http://mindaugasrupsys.com/color-inspiration#comments</comments>
		<pubDate>Fri, 27 Nov 2009 22:42:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Arts]]></category>
		<category><![CDATA[art]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[inspiration]]></category>
		<category><![CDATA[Links]]></category>
		<category><![CDATA[painting]]></category>

		<guid isPermaLink="false">http://mindaugasrupsys.com/?p=43</guid>
		<description><![CDATA[I got a problem in my painting experience lately, somehow I got stuck with one color scheme and just can't get rid of it. So I decided to look up for some new inspiration on web. Basically I thought to look  for various painting galleries with some good quality (reasonable resolution)images. Of course this means I had to do some googling, some brute-force googling, because now-days you have to climb through a pile of commercial/spam sites to find something good. Well, but it was worth it, I found some good resources, they will surely give me some ideas and stir up my creativity for a while.]]></description>
			<content:encoded><![CDATA[<p>Lately, I got a problem in my painting experience, somehow I got stuck with one color scheme and just can&#8217;t get rid of it. So I decided to look up for some new inspiration on web. Basically I thought to look for various painting galleries with some good quality(reasonable resolution) images. Of course this means I had to do some googling, some brute-force googling, because now-days you have to climb through a pile of commercial/spam sites to find something good. Well, but it was worth it, I found some good resources, they will surely give me some ideas and stir up my creativity for a while. Here they are, in no particular order:</p>
<ul>
<li><a title="http://www.dailypainters.com/" href="http://www.dailypainters.com/" target="_blank">http://www.dailypainters.com/</a> &#8211; New paintings each day! Various artists/students submit they daily paintings here. Though most of them are small format, simple studies, you can still find some interesting color themes, compositions.</li>
<li><a title="http://www.vangoghgallery.com/catalog/Painting/" href="http://www.vangoghgallery.com/catalog/Painting/" target="_blank">http://www.vangoghgallery.com/catalog/Painting/</a> &#8211; Complete Catalog of Paintings by Vincent Van Gogh. Wow, a lot of them!  Still it&#8217;s not the same as looking at them in the museum (still remember the impression they made when I visited Van Gogh museum during last visit to Amsterdam almost a year ago), but the image resolution is quite good. Though, the color balance could be better, colors look dull.</li>
<li><a title="http://www.lasoff.nl/Engallery.htm" href="http://www.lasoff.nl/Engallery.htm" target="_blank">http://www.lasoff.nl/Engallery.htm</a> &#8211; Gallery of contemporary artist Michael Lasof f. I like his style, he uses acrylics medium.</li>
<li><a title="Paul Cézanne Gallery" href="http://www.ibiblio.org/wm/paint/auth/cezanne/" target="_blank">http://www.ibiblio.org/wm/paint/auth/cezanne/</a> &#8211; One more classic &#8211; Paul Cézanne. Reproductions are in good quality and resolution.</li>
<li><a title="Jane Filer Gallery" href="http://www.janefiler.com/Hometwo.html" target="_blank">http://www.janefiler.com/Hometwo.html</a> &#8211; Acrylic paintings of Jane Filer. Some bright and cheerful acrylics here.</li>
<li><a title="Leningrad School Online Gallery" href="http://www.leningradschool.com/bill_e.html" target="_blank">http://www.leningradschool.com/bill_e.html</a> &#8211; Leningrad School Online Gallery. A lot of  paintings by contemporary Russian artists. There is a lot to explore here.</li>
<li><a title="Christopher Wood Gallery" href="http://www.christopherwood.co.uk/gallery1.html" target="_blank">http://www.christopherwood.co.uk/gallery1.html</a> &#8211; <span>Gallery of contemporary artist Christopher Woods. Abstract paintings, rich colors.</span></li>
</ul>
<p>So that&#8217;s it. Plenty of inspiration for me.. And I am going to add some more later.</p>
]]></content:encoded>
			<wfw:commentRss>http://mindaugasrupsys.com/color-inspiration/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Painting in Acrylics</title>
		<link>http://mindaugasrupsys.com/painting-in-acrylics</link>
		<comments>http://mindaugasrupsys.com/painting-in-acrylics#comments</comments>
		<pubDate>Sat, 21 Nov 2009 19:24:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Arts]]></category>
		<category><![CDATA[acrylics]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[painting]]></category>

		<guid isPermaLink="false">http://mindaugasrupsys.com/?p=28</guid>
		<description><![CDATA[Added new page Paintings. Here I will add all my new creations in acrylics media. Well these creations are nothing special so far as I am just starting to learn and feel this new world. It is still a very new area to me. Most of the time, since my teenage years I was doing graphics mostly with graphite or ink. But at some point in my life I found this completely new world - the world of color. ]]></description>
			<content:encoded><![CDATA[<p>Added new page<a title="My Paintings" href="http://mindaugasrupsys.com/paintings/" target="_blank"> Paintings</a>. Here I will add all my new creations in acrylics media. Well these creations are nothing special so far as I am just starting to learn and feel this new world. It is still a very new area to me. Most of the time, since my teenage years I was doing graphics mostly with graphite or ink. But at some point in my life I found this completely new world &#8211; the world of color.  I was amazed by impressionism and for some time I was trying painting using oils, just before starting my studies in computer science. But oils for me was very demanding media &#8211; it was drying very slowly and you couldn&#8217;t paint in a living room because of the smell. Since I was living in a student dorm with some other fellow students, oils were not an option.  Later  I tried watercolors, but it was just too much for me &#8211; such an unforgivable  media. However the story with acrylics is completely different, after I found this media, I just can&#8217;t stop admiring it. And here is why:</p>
<ul>
<li>There is no bad smell, actually no smell at all or at most it is very mild one, like watercolors for example.</li>
<li>Acrylics dries fast. And you can dry them even faster, for example using your wife&#8217;s old hair dryer.</li>
<li>If you like to stop them from drying too quickly just keep them wet by using simple water atomizer.</li>
<li>You can work with acrylics as with watercolors or oils. It just takes what is best from both medias.</li>
<li>Acrylics surface is mat then dried, but if you want your work to be gloss just use any gloss varnish.</li>
</ul>
<p>And sometimes I can&#8217;t understand why people are even bothering with oils, acrylics are so much better. Well, but probably people just like what they are used to and why would anyone need to change his &#8220;tool&#8221; when he have already mastered it. But if you ever doubt what you should start with I would say &#8211; acrylics, definitely.</p>
]]></content:encoded>
			<wfw:commentRss>http://mindaugasrupsys.com/painting-in-acrylics/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hello world!</title>
		<link>http://mindaugasrupsys.com/hello-world</link>
		<comments>http://mindaugasrupsys.com/hello-world#comments</comments>
		<pubDate>Tue, 10 Nov 2009 15:53:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.sauliausfoto.lt/mindo/?p=1</guid>
		<description><![CDATA[Hello! My first post and hopefully not the last. If everything goes well going to blog here about arts, music, religion, life, inspiration, anything what comes to my head.]]></description>
			<content:encoded><![CDATA[<p>Hello! My first post and hopefully not the last. If everything goes well going to blog here about arts, music, religion, life, inspiration, anything what comes to my head.</p>
]]></content:encoded>
			<wfw:commentRss>http://mindaugasrupsys.com/hello-world/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

