<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7497885310889446993</id><updated>2024-09-13T07:14:28.499-07:00</updated><category term="C"/><category term="CSS"/><category term="Facebook"/><category term="Html"/><category term="MATLAB"/><title type='text'>Programmer Lifestyle</title><subtitle type='html'>A blog about programming languages. For example: matlab, java, c and etc.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://programmerslifestyle.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7497885310889446993/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://programmerslifestyle.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7497885310889446993.post-3600899482648725982</id><published>2014-02-16T05:57:00.000-08:00</published><updated>2014-02-16T05:57:13.040-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CSS"/><category scheme="http://www.blogger.com/atom/ns#" term="Html"/><title type='text'>How To Create Overlay Css</title><content type='html'>The usage of overlay css is to block the user interaction. It can be done by used 1 &amp;lt;div&amp;gt; element and Css styling.&lt;br /&gt;
&lt;br /&gt;
Below is the source code to create overlay. &lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;br /&gt;&amp;lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;title&amp;gt;Overlay&amp;lt;/title&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;style&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;#ImOverlay{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;position:absolute;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;width: 100%;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;height:100%;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;background-color:rgba(0,0,0,0.8);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;display:none;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/style&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div id=&quot;ImOverlay&quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;p&amp;gt;How overlay works ?&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;button id=&quot;btnOverlay&quot; type=&quot;button&quot; onclick=&quot;ShowOverlay();&quot;&amp;gt;Show Overlay&amp;lt;/button&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;br /&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; function ShowOverlay() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;document.getElementById(&quot;ImOverlay&quot;).style.display = &quot;block&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;lt;/script&amp;gt; &lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmerslifestyle.blogspot.com/feeds/3600899482648725982/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmerslifestyle.blogspot.com/2014/02/overlaycss.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7497885310889446993/posts/default/3600899482648725982'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7497885310889446993/posts/default/3600899482648725982'/><link rel='alternate' type='text/html' href='http://programmerslifestyle.blogspot.com/2014/02/overlaycss.html' title='How To Create Overlay Css'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7497885310889446993.post-1172540738823270674</id><published>2012-07-31T20:23:00.000-07:00</published><updated>2012-07-31T20:23:10.963-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C"/><title type='text'>Factorial Computation Using Iteration ( Programming Language C )</title><content type='html'>&lt;div style=&quot;color: red;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;This post will show the source code of factorial computation using iteration. In mathematics, the factorial of a non-negative integer &lt;i&gt;n&lt;/i&gt;, denoted &lt;i&gt;n&lt;/i&gt;!, is the product of all positive integers less than or equal to &lt;i&gt;n&lt;/i&gt;. For example:&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;b&gt;5! = 5 x 4 x 3 x 2 x 1 = 120&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;b&gt;&amp;nbsp; &lt;/b&gt;Iteration means the act of repeating a process usually with the aim of approaching a desired goal or target or result. In this case, &lt;i&gt;for &lt;/i&gt;loop is represent the Iteration.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;
&lt;div style=&quot;color: red;&quot;&gt;
Source Code&lt;/div&gt;
&lt;span style=&quot;color: red;&quot;&gt;Code::Blocks&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
#include &amp;lt;conio.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; int fact (int);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; int number,factnum;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;\nEnter a positive number: &quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; scanf(&quot;%d&quot;, &amp;amp;number);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; factnum = fact(number);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;\nFactorial number for %d\! = %d&quot;, number,factnum);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; getch();&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int fact (int number)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; int i,fact=1;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; for (i=number;i&amp;gt;1;i--)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fact=fact*i;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; return fact;&lt;br /&gt;
}</content><link rel='replies' type='application/atom+xml' href='http://programmerslifestyle.blogspot.com/feeds/1172540738823270674/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmerslifestyle.blogspot.com/2012/07/factorial-computation-using-iteration.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7497885310889446993/posts/default/1172540738823270674'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7497885310889446993/posts/default/1172540738823270674'/><link rel='alternate' type='text/html' href='http://programmerslifestyle.blogspot.com/2012/07/factorial-computation-using-iteration.html' title='Factorial Computation Using Iteration ( Programming Language C )'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7497885310889446993.post-4239056565389590447</id><published>2012-07-25T22:46:00.000-07:00</published><updated>2012-07-26T03:12:31.048-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Facebook"/><title type='text'>Facebook Social Plugins: Like Button</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&amp;nbsp; The Facebook Like Button lets users share pages from your site back to their Facebook Profile with one click. For example:&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhE7FKNUYXHYxQkxIknITHQGKrMcxfXe8lVuZqlzcZpU_Cy6i4vZl41dapYGZFBwEAP2PUcqtG0CSTokmbgDYhzmm5m5fqUHvw547U5N82L0oPMlywXbKuolZ68D5kJWJI9qxu_-yF0HMJn/s1600/5.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Facebook Like Button&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhE7FKNUYXHYxQkxIknITHQGKrMcxfXe8lVuZqlzcZpU_Cy6i4vZl41dapYGZFBwEAP2PUcqtG0CSTokmbgDYhzmm5m5fqUHvw547U5N82L0oPMlywXbKuolZ68D5kJWJI9qxu_-yF0HMJn/s1600/5.JPG&quot; title=&quot;Facebook Like Button&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Facebook Like Button&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
The Like button lets a user share your content with friends on Facebook. When the user clicks the Like Button on your site, a story appears in the user&#39;s friends&#39; News with a link back to your website. For example:&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtpLfbEiGm_itTec9mz-MQuRHo9rYV-YA49_jMLgNvDJWxGOgtlIwtHqnmK56zXgDXggye3HjbvKCI7PxQeg-M8oaQ-8BTYPUm8ebCbqnw_tcZPSO2oW48mqfhJrMLz-aj-3gyuW1aOl4-/s1600/6.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Facebook Like Button&quot; border=&quot;0&quot; height=&quot;228&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtpLfbEiGm_itTec9mz-MQuRHo9rYV-YA49_jMLgNvDJWxGOgtlIwtHqnmK56zXgDXggye3HjbvKCI7PxQeg-M8oaQ-8BTYPUm8ebCbqnw_tcZPSO2oW48mqfhJrMLz-aj-3gyuW1aOl4-/s320/6.JPG&quot; title=&quot;Facebook Like Button&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;A story appear in the Facebook when user clicks the Like Button.&lt;/td&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
Follow the steps bellow to embed Like Button to your blog.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Step 1&lt;/span&gt;:&amp;nbsp;&lt;span id=&quot;goog_2058645982&quot;&gt;&lt;/span&gt;&lt;span id=&quot;goog_2058645983&quot;&gt;&lt;/span&gt; &lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYg46thZQxiFkZjGiMOFVD623a2b1vjJuDVldeYw9f-SiQOmpFbyiDDVjdVLP_G2SbbASiYlwISXLJChuMC33NtJck-UxTk-r_JJTfYjQdZHYm4q1UFLLYs1F0N7ZteIrPaB1LGWA_3yqL/s1600/1.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Facebook Like Button &quot; border=&quot;0&quot; height=&quot;137&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYg46thZQxiFkZjGiMOFVD623a2b1vjJuDVldeYw9f-SiQOmpFbyiDDVjdVLP_G2SbbASiYlwISXLJChuMC33NtJck-UxTk-r_JJTfYjQdZHYm4q1UFLLYs1F0N7ZteIrPaB1LGWA_3yqL/s320/1.JPG&quot; title=&quot;Facebook Like Button &quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Go to Layout&lt;/td&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
Go to layout of the blog.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Step 2&lt;/span&gt;:&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8N-gDkYgtawiiWD6GQyORA_AogXIvefmuR-82pOUNb4ZPghG_vnS84FiS32fc3v_n60QPAM36IQgk50WJJ1xngYI2LP-B_pooZrBw-02OcKy8OCsZ7w8SNm_ou35-Cq6SgGOHxb2_IjIB/s1600/2.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Facebook Like Button &quot; border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8N-gDkYgtawiiWD6GQyORA_AogXIvefmuR-82pOUNb4ZPghG_vnS84FiS32fc3v_n60QPAM36IQgk50WJJ1xngYI2LP-B_pooZrBw-02OcKy8OCsZ7w8SNm_ou35-Cq6SgGOHxb2_IjIB/s320/2.JPG&quot; title=&quot;Facebook Like Button &quot; width=&quot;290&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Add Gadget&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span id=&quot;goog_2058645991&quot;&gt;&lt;/span&gt;&lt;span id=&quot;goog_2058645992&quot;&gt;&lt;/span&gt;Click &quot;Add Gadget&quot; and select &quot;HTML/ JavaScript&quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Step 3&lt;/span&gt;:&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbFtsSZ1-oXn34UxnkHAxAYdfQtIoQXzKoFCYlZVbs3HtNCHHHQ9DdydgvhuEhW-HEpvyH5DJ8sdSbvchU06iiSC-ZTYT9L4qqN2ATeAzyl2y7Txnos-OkC1xE-nTv66P4M5p_awBokkF0/s1600/3.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Facebook Like Button &quot; border=&quot;0&quot; height=&quot;296&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbFtsSZ1-oXn34UxnkHAxAYdfQtIoQXzKoFCYlZVbs3HtNCHHHQ9DdydgvhuEhW-HEpvyH5DJ8sdSbvchU06iiSC-ZTYT9L4qqN2ATeAzyl2y7Txnos-OkC1xE-nTv66P4M5p_awBokkF0/s320/3.JPG&quot; title=&quot;Facebook Like Button &quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Facebook page for the code generator of Like Button&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
Go to the following address &lt;a href=&quot;http://developers.facebook.com/docs/reference/plugins/like/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;http://developers.facebook.com/docs/reference/plugins/like/&lt;/a&gt; and enter the URL of your blog (You also can leave it empty. But it might affect the SEO of your blog.). Then click the button &quot;Get Code&quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Step 4&lt;/span&gt;:&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXTZSvG61U0MCKUmmSYNpWct-SBNmY6ucNqsM3kMMameYhBju4wrtKks4VZnUIMwGIPY-NHCUa-dqXf-uF7_6Mt1ObjR8qO6lvbx3GXWlR_opYaYrZCrv28fyZ9qdyVIxStl5HQhbftY8X/s1600/4.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Facebook Like Button&quot; border=&quot;0&quot; height=&quot;202&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXTZSvG61U0MCKUmmSYNpWct-SBNmY6ucNqsM3kMMameYhBju4wrtKks4VZnUIMwGIPY-NHCUa-dqXf-uF7_6Mt1ObjR8qO6lvbx3GXWlR_opYaYrZCrv28fyZ9qdyVIxStl5HQhbftY8X/s320/4.JPG&quot; title=&quot;Facebook Like Button&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Code generated by Facebook&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
After you click the &quot;Get Code&quot; button, Facebook will generated the code as show as above. First part is JavaScript SDK and second part is code used to the Like Button in your blog.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Step 5&lt;/span&gt;:&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiItJWw_4I1pz3dzTU_J6vocUUSPn6bIZn5U177FjyM0HMlkzx375rlAub6ylTTogyUvh9skclrPp2td0va-IxlNYPNiEN0B-XQd0uh7wfq-oumMvEMSnvN_Bq3t9LY2cSHqkW_7YJ9lTiq/s1600/7.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Facebook Like Button&quot; border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiItJWw_4I1pz3dzTU_J6vocUUSPn6bIZn5U177FjyM0HMlkzx375rlAub6ylTTogyUvh9skclrPp2td0va-IxlNYPNiEN0B-XQd0uh7wfq-oumMvEMSnvN_Bq3t9LY2cSHqkW_7YJ9lTiq/s320/7.JPG&quot; title=&quot;Facebook Like Button&quot; width=&quot;300&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Paste first part of code to Content&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
Leave the title empty. Copy the first part of the code and paste it in the &quot;Content&quot; and click &quot;Save&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Step 6&lt;/span&gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2r0msguuiDmXTErpPKxnH80BhdRZZThT-c3upUT8Bw2QA1MYKpWlD5EW97OVmLYpFV454DwNlk0tQtmsUmhTJN5XVKmD11sUJ72GpD0-cbR9f5gU-DJ3Xj1qk5GiP5_gUeWwfumafCDaS/s1600/8.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Facebook Like Button&quot; border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2r0msguuiDmXTErpPKxnH80BhdRZZThT-c3upUT8Bw2QA1MYKpWlD5EW97OVmLYpFV454DwNlk0tQtmsUmhTJN5XVKmD11sUJ72GpD0-cbR9f5gU-DJ3Xj1qk5GiP5_gUeWwfumafCDaS/s320/8.JPG&quot; title=&quot;Facebook Like Button&quot; width=&quot;300&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Add second part of code&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
Click &quot;Add Gadget&quot; from layout again and select &quot;HTML/ JavaScript&quot;. In the title textbox, enter &quot;Facebook&quot; and copy and paste second part of code to the &quot;Content&quot;. Then click &quot;Save&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Step 7&lt;/span&gt;:&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhE7FKNUYXHYxQkxIknITHQGKrMcxfXe8lVuZqlzcZpU_Cy6i4vZl41dapYGZFBwEAP2PUcqtG0CSTokmbgDYhzmm5m5fqUHvw547U5N82L0oPMlywXbKuolZ68D5kJWJI9qxu_-yF0HMJn/s1600/5.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Facebook Like Button&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhE7FKNUYXHYxQkxIknITHQGKrMcxfXe8lVuZqlzcZpU_Cy6i4vZl41dapYGZFBwEAP2PUcqtG0CSTokmbgDYhzmm5m5fqUHvw547U5N82L0oPMlywXbKuolZ68D5kJWJI9qxu_-yF0HMJn/s1600/5.JPG&quot; title=&quot;Facebook Like Button&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Like Button&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&amp;nbsp; Go back to your blog. Facebook Like Button should appear in your blog....^^</content><link rel='replies' type='application/atom+xml' href='http://programmerslifestyle.blogspot.com/feeds/4239056565389590447/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmerslifestyle.blogspot.com/2012/07/facebook-social-plugins-like-button.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7497885310889446993/posts/default/4239056565389590447'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7497885310889446993/posts/default/4239056565389590447'/><link rel='alternate' type='text/html' href='http://programmerslifestyle.blogspot.com/2012/07/facebook-social-plugins-like-button.html' title='Facebook Social Plugins: Like Button'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhE7FKNUYXHYxQkxIknITHQGKrMcxfXe8lVuZqlzcZpU_Cy6i4vZl41dapYGZFBwEAP2PUcqtG0CSTokmbgDYhzmm5m5fqUHvw547U5N82L0oPMlywXbKuolZ68D5kJWJI9qxu_-yF0HMJn/s72-c/5.JPG" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7497885310889446993.post-2415295434428298928</id><published>2012-07-25T05:18:00.000-07:00</published><updated>2012-07-26T03:12:58.073-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MATLAB"/><title type='text'>Histogram Equalization</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; Histogram Equalization is a popular technique for enhancing image contrast. Histogram Equalization can change in image brightness that is become much brighter than input image. Histogram Equalization has been a simple effective image enhancement technique but Histogram Equalization tends to change the brightness of an image significant, causing unnatural contrast enhancement. Besides that, Histogram Equalization is not commonly used on scanning electron microscope (SEM) image this method causes significant change on the input image brightness and introduce undesirable artifacts. The mean brightness Histogram Equalization image is always the middle gray level regardless of the input image mean, thus this characteristic is not desirable in application where brightness preservation is needed. As a result, Histogram Equalization is not commonly used in consumer electron because it could cause annoying distortions like excessive brightness change, noise artifacts and brightness saturation.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: red; text-align: justify;&quot;&gt;
Source Code&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;Matlab version R2011b (7.13.0.564)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;%original Image&lt;br /&gt;originalImage=imread(&#39;cameraman.tif&#39;);&lt;br /&gt;&lt;br /&gt;%define the size of image after Histogram Equalization&lt;br /&gt;HEImage=uint8(zeros(size(originalImage,1),size(originalImage,2)));&lt;br /&gt;&lt;br /&gt;%calculate total pixels of original image&lt;br /&gt;numofpixels=size(originalImage,1)*size(originalImage,2);&lt;br /&gt;&lt;br /&gt;%obtain intensity by using imhist&lt;br /&gt;[intensity grayLevels]=imhist(originalImage);&lt;br /&gt;&lt;br /&gt;%calculate the pdf of original image&lt;br /&gt;pdf=intensity/numofpixels;&lt;br /&gt;&lt;br /&gt;%calculate the cdf of original image&lt;br /&gt;cdf=cumsum(pdf);&lt;br /&gt;&lt;br /&gt;%convert to Histogram Equalization image by replace the pixels of original image &lt;br /&gt;for i=1:size(originalImage,1)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for j=1:size(originalImage,2)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HEImage(i,j)=round(cdf(originalImage(i,j)+1)*255);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;end&lt;br /&gt;&lt;br /&gt;%showing and plotting the original image and image after Histogram Equalization&lt;br /&gt;subplot (2,2,1);&lt;br /&gt;imshow(originalImage);&lt;br /&gt;title(&#39;Original Histogram&#39;);&lt;br /&gt;subplot (2,2,2);&lt;br /&gt;imhist(originalImage);&lt;br /&gt;subplot (2,2,3);&lt;br /&gt;imshow(HEImage);&lt;br /&gt;title(&#39;Histogram equalization&#39;);&lt;br /&gt;subplot (2,2,4);&lt;br /&gt;imhist(HEImage);&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Result:&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-imamM5wW3gpw2YwT5LNYPvO2JH5zzJgRfopnL1HndxLXQj74UMpdMe8_DqQpuNRR7KYzZXlaNpb9HUTJj6BwI16oU-tSq4GL_zZtX5YUxFor-PEcOAAEMOyjc5CIWywlxn2K56eurTJg/s1600/Capture.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Histogram Equalization&quot; border=&quot;0&quot; height=&quot;353&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-imamM5wW3gpw2YwT5LNYPvO2JH5zzJgRfopnL1HndxLXQj74UMpdMe8_DqQpuNRR7KYzZXlaNpb9HUTJj6BwI16oU-tSq4GL_zZtX5YUxFor-PEcOAAEMOyjc5CIWywlxn2K56eurTJg/s400/Capture.JPG&quot; title=&quot;Histogram Equalization&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Before and After Histogram Equalization&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmerslifestyle.blogspot.com/feeds/2415295434428298928/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmerslifestyle.blogspot.com/2012/07/histogram-equalization.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7497885310889446993/posts/default/2415295434428298928'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7497885310889446993/posts/default/2415295434428298928'/><link rel='alternate' type='text/html' href='http://programmerslifestyle.blogspot.com/2012/07/histogram-equalization.html' title='Histogram Equalization'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-imamM5wW3gpw2YwT5LNYPvO2JH5zzJgRfopnL1HndxLXQj74UMpdMe8_DqQpuNRR7KYzZXlaNpb9HUTJj6BwI16oU-tSq4GL_zZtX5YUxFor-PEcOAAEMOyjc5CIWywlxn2K56eurTJg/s72-c/Capture.JPG" height="72" width="72"/><thr:total>0</thr:total></entry></feed>