<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-8980977825622425401</atom:id><lastBuildDate>Wed, 25 Apr 2012 10:54:27 +0000</lastBuildDate><category>C++</category><category>Python</category><category>Web Development</category><category>Performance</category><category>Graphics</category><category>Website</category><category>CSS</category><category>CSS3</category><category>C</category><category>Software</category><category>Project</category><category>PixRev</category><category>Design</category><category>XHTML</category><category>Pointer</category><category>Amdahl Law</category><category>Theme</category><category>Casting</category><category>Speedup</category><category>Conversion</category><category>Programming</category><category>Logo</category><category>HTML5</category><title>Alessandro Di Martino</title><description>My name is Alessandro Di Martino, I am Italian, I study computer engineering and my interests are in software development and computer graphics.</description><link>http://www.alessandrodimartino.com/</link><managingEditor>noreply@blogger.com (Alessandro Di Martino)</managingEditor><generator>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/alessandrodimartino" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="alessandrodimartino" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">alessandrodimartino</feedburner:emailServiceId><feedburner:feedburnerHostname xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://feedburner.google.com</feedburner:feedburnerHostname><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8980977825622425401.post-6564812636017908831</guid><pubDate>Sun, 08 Jan 2012 20:15:00 +0000</pubDate><atom:updated>2012-01-08T12:15:18.266-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">XHTML</category><category domain="http://www.blogger.com/atom/ns#">Project</category><category domain="http://www.blogger.com/atom/ns#">Web Development</category><category domain="http://www.blogger.com/atom/ns#">Graphics</category><category domain="http://www.blogger.com/atom/ns#">CSS</category><category domain="http://www.blogger.com/atom/ns#">Theme</category><category domain="http://www.blogger.com/atom/ns#">Logo</category><category domain="http://www.blogger.com/atom/ns#">Design</category><category domain="http://www.blogger.com/atom/ns#">Website</category><title>Sottile Impianti Website</title><description>&lt;p&gt;During one or two weeks in July 2009 I have built a website for Sottile Impianti, a little electrical systems company.&lt;br /&gt;I worked on all the graphic and commercial stuff, designing logos, business cards, sponsors... Here are some shots.&lt;/p&gt;&lt;div class="image"&gt;&lt;img src="http://3.bp.blogspot.com/-EI709mvwWFc/TsmS-aVCcpI/AAAAAAAAAFQ/H5ODzpKa9Dk/s1600/sottileimpianti_website.jpg" alt="Sottile Impianti website"/&gt;&lt;p class="caption"&gt;The website is no longer available. The image shows a page about photovoltaics and green energy.&lt;/p&gt;&lt;/div&gt;&lt;div class="image"&gt;&lt;img src="http://4.bp.blogspot.com/-h_ZMNPCvcME/TwjiYE5xOfI/AAAAAAAAAGE/6MLBVGDGkoE/s1600/sottileimpianti_w3c_valid.jpg"  alt="Website XHTML 1.1 and CSS Valid"/&gt;&lt;p class="caption"&gt;XHTML 1.1 and CSS Valid.&lt;/p&gt;&lt;/div&gt;&lt;div class="image"&gt;&lt;img src="http://2.bp.blogspot.com/-n8g5bs42j6A/TwjdZUWCKfI/AAAAAAAAAFs/7N877RJOVis/s1600/sottileimpianti_logo.jpg"  alt="Sottile Impianti Logo"/&gt;&lt;p class="caption"&gt;Main Logo.&lt;/p&gt;&lt;/div&gt;&lt;div class="image"&gt;&lt;img src="http://2.bp.blogspot.com/-vqtuR0MGTR4/TwjdZh31H9I/AAAAAAAAAF4/HEdehNPYahA/s1600/sottileimpianti_tshirt_logo.jpg"  alt="Sottile Impianti T-shirt Logo, an alternative version"/&gt;&lt;p class="caption"&gt;T-shirt Logo, an alternative version.&lt;/p&gt;&lt;/div&gt;&lt;div class="image"&gt;&lt;img src="http://2.bp.blogspot.com/-gNHrmq-SVEU/TwjYEvABKwI/AAAAAAAAAFg/sPy1NtSaXsA/s1600/sottileimpianti_van.jpg"  alt="Sottile Impianti van"/&gt;&lt;p class="caption"&gt;Side view of the vehicle graphics.&lt;/p&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8980977825622425401-6564812636017908831?l=www.alessandrodimartino.com' alt='' /&gt;&lt;/div&gt;</description><link>http://www.alessandrodimartino.com/2012/01/sottile-impianti-website.html</link><author>noreply@blogger.com (Alessandro Di Martino)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-EI709mvwWFc/TsmS-aVCcpI/AAAAAAAAAFQ/H5ODzpKa9Dk/s72-c/sottileimpianti_website.jpg" height="72" width="72" /><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8980977825622425401.post-752810931440212037</guid><pubDate>Wed, 03 Aug 2011 16:34:00 +0000</pubDate><atom:updated>2011-09-10T06:33:45.722-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">C</category><category domain="http://www.blogger.com/atom/ns#">Programming</category><category domain="http://www.blogger.com/atom/ns#">Conversion</category><category domain="http://www.blogger.com/atom/ns#">Pointer</category><category domain="http://www.blogger.com/atom/ns#">Casting</category><category domain="http://www.blogger.com/atom/ns#">C++</category><title>C, C++ Pointer Conversions</title><description>&lt;p&gt;Pointers to one type may be converted to pointers to another type. A pointer to an object may be converted to a pointer to an object whose type requires less or equally strict storage alignment and back again without change.&lt;/p&gt;&lt;p&gt;In many situations, &lt;span class="inline_code"&gt;void&lt;/span&gt; pointers are preferred; pointers  to type &lt;span class="inline_code"&gt;void&lt;/span&gt; are pointers that point to a value that has no type, this allows &lt;span class="inline_code"&gt;void&lt;/span&gt; pointers to point to any data type. However in C++ (unlike in C) conversions from pointers to any type to pointers to type &lt;span class="inline_code"&gt;void&lt;/span&gt; require an explicit conversion.&lt;/p&gt;&lt;p&gt;The code below got compiled on an Intel Core i7 with the MSVC Compiler:&lt;/p&gt;&lt;pre class="brush: cpp"&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;    const double d = 371564759.278651;&lt;br /&gt;&lt;br /&gt;    // Pointers of different type have the same size:&lt;br /&gt;    // 8 bytes on a 64-bit platform.&lt;br /&gt;    printf(&amp;quot;\n%u&amp;quot;, (unsigned int)sizeof(double*)); // 8&lt;br /&gt;    printf(&amp;quot;\n%u&amp;quot;, (unsigned int)sizeof(char*));   // 8&lt;br /&gt;    printf(&amp;quot;\n%u&amp;quot;, (unsigned int)sizeof(void*));   // 8&lt;br /&gt;&lt;br /&gt;    // Pointer conversions do not affect result&lt;br /&gt;    printf(&amp;quot;\n%f&amp;quot;, *(double*)(char*)&amp;amp;d);  // 371564759.278651&lt;br /&gt;    printf(&amp;quot;\n%f&amp;quot;, *(double*)(void*)&amp;amp;d);  // 371564759.278651&lt;br /&gt;    printf(&amp;quot;\n%f&amp;quot;, *(double*)(float*)&amp;amp;d); // 371564759.278651&lt;br /&gt;    printf(&amp;quot;\n%f&amp;quot;, *(double*)(long*)&amp;amp;d);  // 371564759.278651&lt;br /&gt;&lt;br /&gt;    return 0;&lt;br /&gt;}&lt;/pre&gt;&lt;span class="reference_title"&gt;References:&lt;/span&gt;&lt;br /&gt;&lt;span&gt;[1] &lt;/span&gt;&lt;span class="reference"&gt;Brian W. Kernighan and Dennis M. Ritchie. The C Programming Language, Second Edition.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8980977825622425401-752810931440212037?l=www.alessandrodimartino.com' alt='' /&gt;&lt;/div&gt;</description><link>http://www.alessandrodimartino.com/2011/08/c-c-pointer-conversions.html</link><author>noreply@blogger.com (Alessandro Di Martino)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8980977825622425401.post-4307052916291615154</guid><pubDate>Thu, 28 Jul 2011 16:26:00 +0000</pubDate><atom:updated>2011-09-10T07:54:43.014-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Programming</category><category domain="http://www.blogger.com/atom/ns#">Speedup</category><category domain="http://www.blogger.com/atom/ns#">Amdahl Law</category><category domain="http://www.blogger.com/atom/ns#">Performance</category><title>Amdahl’s Law</title><description>&lt;p&gt;Amdahl's Law is a model used to quantify the maximum expected performance gain that can be obtained by improving only some parts of a system. The Law states that the overall improvement of a system is limited by the time the improved part is used. In other words, as you can see in the following example, it is better to improve the most frequent case than to make enhancements to rarely used parts of a program.&lt;/p&gt;&lt;div class="image"&gt;&lt;img src="http://media.tumblr.com/tumblr_lp1podSDz61qifnom.jpg" alt="Amdahl's Law Example"/&gt;&lt;p class="caption"&gt;Consider a task consisting of two sequential parts where the purple one takes 70% of the time of the whole computation and the blue part the remaining 30%. By working hard, one may be able to make the blue part 3 times faster, but this only reduces the time for the whole computation by a 20%. In contrast, one may need to perform less work to make the purple part be twice as fast, obtaining a speedup of 35%.&lt;/p&gt;&lt;/div&gt;&lt;span class="reference_title"&gt;References:&lt;/span&gt;&lt;br /&gt;&lt;span&gt;[1] &lt;/span&gt;&lt;span class="reference"&gt;Wikipedia.org. http://en.wikipedia.org/wiki/Amdahl's_law&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8980977825622425401-4307052916291615154?l=www.alessandrodimartino.com' alt='' /&gt;&lt;/div&gt;</description><link>http://www.alessandrodimartino.com/2011/07/amdahls-law.html</link><author>noreply@blogger.com (Alessandro Di Martino)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8980977825622425401.post-3780345436653981383</guid><pubDate>Mon, 18 Jul 2011 07:23:00 +0000</pubDate><atom:updated>2011-09-10T06:35:09.631-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Programming</category><category domain="http://www.blogger.com/atom/ns#">Project</category><category domain="http://www.blogger.com/atom/ns#">Software</category><category domain="http://www.blogger.com/atom/ns#">PixRev</category><category domain="http://www.blogger.com/atom/ns#">Python</category><title>PixRev</title><description>&lt;p&gt;PixRev is one of my first projects, a simple image conversion software I wrote in Python just for fun. I released it for free in 2006 when I was 16 years old.&lt;/p&gt;&lt;p&gt;At that time my programming techniques were really primitive, so I don't consider PixRev a well designed software, but it does its work! And you can still find it on the net.&lt;/p&gt;&lt;div class="image"&gt;&lt;img src="http://media.tumblr.com/tumblr_loi4bmrFod1qifnom.jpg" alt="PixRev main window."/&gt;&lt;p class="caption"&gt;PixRev main window.&lt;/p&gt;&lt;/div&gt;&lt;div class="image"&gt;&lt;img src="http://media.tumblr.com/tumblr_lojo68hELs1qifnom.jpg" alt="The logo of PixRev website (Python Lab). It's displayed in the info window."/&gt;&lt;p class="caption"&gt;The logo of PixRev website (Python Lab).&lt;br /&gt;It is displayed in the info window.&lt;/p&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8980977825622425401-3780345436653981383?l=www.alessandrodimartino.com' alt='' /&gt;&lt;/div&gt;</description><link>http://www.alessandrodimartino.com/2011/07/pixrev.html</link><author>noreply@blogger.com (Alessandro Di Martino)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8980977825622425401.post-9134796022457812715</guid><pubDate>Sat, 16 Jul 2011 07:20:00 +0000</pubDate><atom:updated>2012-01-08T12:19:02.982-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">CSS3</category><category domain="http://www.blogger.com/atom/ns#">Web Development</category><category domain="http://www.blogger.com/atom/ns#">HTML5</category><category domain="http://www.blogger.com/atom/ns#">Graphics</category><category domain="http://www.blogger.com/atom/ns#">Theme</category><category domain="http://www.blogger.com/atom/ns#">Design</category><category domain="http://www.blogger.com/atom/ns#">Website</category><title>First Post, Testing the New Theme</title><description>&lt;p&gt;&lt;span&gt;Hello World! This is the first post, so I can test the website and the new theme I’ve written in HTML5 and CSS3, speaking of which, do you like it?!&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8980977825622425401-9134796022457812715?l=www.alessandrodimartino.com' alt='' /&gt;&lt;/div&gt;</description><link>http://www.alessandrodimartino.com/2011/07/first-post-testing-new-theme.html</link><author>noreply@blogger.com (Alessandro Di Martino)</author><thr:total>0</thr:total></item></channel></rss>

