<?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>Internet Coding</title>
	<atom:link href="http://www.internetcoding.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.internetcoding.com</link>
	<description>tech corner and more</description>
	<lastBuildDate>Sun, 02 Jan 2011 20:45:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.2</generator>
		<item>
		<title>New phpmyadmin packages fix several vulnerabilities</title>
		<link>http://www.internetcoding.com/new-phpmyadmin-packages-fix-several-vulnerabilities/</link>
		<comments>http://www.internetcoding.com/new-phpmyadmin-packages-fix-several-vulnerabilities/#comments</comments>
		<pubDate>Sun, 02 Jan 2011 20:45:11 +0000</pubDate>
		<dc:creator>ic</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[phpmyadmin]]></category>

		<guid isPermaLink="false">http://www.internetcoding.com/?p=30</guid>
		<description><![CDATA[Several vulnerabilities have been discovered in phpMyAdmin, a tool to administer MySQL over the web. The Common Vulnerabilities and Exposures project identifies the following problems: CVE-2010-4329 Cross site scripting was possible in search, that allowed a remote attacker to inject arbitrary web script or HTML. CVE-2010-4480 Cross site scripting was possible in errors, that allowed [...]]]></description>
			<content:encoded><![CDATA[<p>Several vulnerabilities have been discovered in phpMyAdmin, a tool<br />
to administer MySQL over the web. The Common Vulnerabilities and Exposures<br />
project identifies the following problems:</p>
<p>CVE-2010-4329</p>
<p>Cross site scripting was possible in search, that allowed<br />
a remote attacker to inject arbitrary web script or HTML.</p>
<p>CVE-2010-4480</p>
<p>Cross site scripting was possible in errors, that allowed<br />
a remote attacker to inject arbitrary web script or HTML.</p>
<p>CVE-2010-4481</p>
<p>Display of PHP&#8217;s phpinfo() function was available to world, but only<br />
if this functionality had been enabled (defaults to off). This may<br />
leak some information about the host system.</p>
<p>For the stable distribution (lenny), these problems have been fixed in<br />
version 2.11.8.1-5+lenny7.</p>
<p>For the testing (squeeze) and unstable distribution (sid), these problems<br />
have been fixed in version 3.3.7-3.</p>
<p>We recommend that you upgrade your phpmyadmin package.</p>
<p>Further information about Debian Security Advisories, how to apply<br />
these updates to your system and frequently asked questions can be<br />
found at: http://www.debian.org/security/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.internetcoding.com/new-phpmyadmin-packages-fix-several-vulnerabilities/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to center a div on screen</title>
		<link>http://www.internetcoding.com/how-to-center-a-div-on-screen/</link>
		<comments>http://www.internetcoding.com/how-to-center-a-div-on-screen/#comments</comments>
		<pubDate>Sat, 11 Dec 2010 10:17:42 +0000</pubDate>
		<dc:creator>ic</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[center]]></category>
		<category><![CDATA[div]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[popup]]></category>

		<guid isPermaLink="false">http://www.internetcoding.com/?p=18</guid>
		<description><![CDATA[I will not explain here step by step how to do a function which will center a &#60;div&#62; on screen. Will use jQuery, just because I love it. If you are expecting to find the full code and just copy/paste it to your window, you will not find it. Still, everything is here, by snippets. [...]]]></description>
			<content:encoded><![CDATA[<p>I will not explain here step by step how to do a function which will center a &lt;div&gt; on screen. Will use jQuery, just because I love it. If you are expecting to find the full code and just copy/paste it to your window, you will not find it. Still, everything is here, by snippets.</p>
<p>As a first, we need to ensure the content inside the div is fully loaded (e. g. images), or else we won&#8217;t determine the exact width and height of it. Unless the div is not getting changed after the page was loaded, it is enough to use the $(document).ready() function:</p>
<p><code>$(document).ready(function() {<br />
// here is our code<br />
});</code></p>
<p><strong>Detecting the screen size</strong></p>
<p>Here is where you can do the first mistake. Using <em>$(window).height()</em> may not be enough. For some browsers (such as Opera), you will not get the correct size and we need to use <em>window.innerHeight</em> instead. In this case, our code looks like this:</p>
<p><code>var winHeight = window.innerHeight ? window.innerHeight : $(window).height();<br />
var winWidth = window.innerWidth ? window.innerWidth : $(window).width();</code></p>
<p><strong>Getting the div size</strong></p>
<p>This is easy, we simply use the <em>height()</em> and <em>width()</em> functions.</p>
<p><strong>Centering the div</strong></p>
<p>Will do it by simple math. Here you can do the 2nd mistake: do not allow negative values as result; part of the window will then get hidden and that content will not be visible and you won&#8217;t be even able to scroll to it!</p>
<p><code>var myTop=parseInt((winHeight-$('#myDiv').height())/2);<br />
var myLeft=parseInt((winWidth-$('#myDiv').width())/2);<br />
if(myTop &lt; 0) myTop=0; if(myLeft &lt; 0) myLeft = 0;<br />
$('#myDiv').css({ "left" : myLeft + "px", "top" : myTop + "px"});</code></p>
<p>Now, our div is centered on the screen. Do not forget to style the div with a fixed position (<em>position: fixed;</em> on CSS part of your page/site). In many of the examples you will find, it is not fixed and this is the reason why the div will scroll once with the window. If you want it to remain centered, this is the way. Also, put a background color, maybe some borders. Without a background color, you will see both texts, the one form the newly centered div and the one the page already has. Also, the z-index property is important, you need the div to be over everything else on page. A style example follows:</p>
<p><code>#myDiv {<br />
background-color: #FFFFFF;<br />
border: 1px solid #AAAAAA;<br />
display: none;<br />
position: fixed;<br />
top: 10px;<br />
z-index: 100;<br />
}</code></p>
<p>Of course, if you are using this to have kind of popup windows, you will need to have show/hide functions and maybe even an overlay layer or functions to detect the complete load of the div due to user interaction, but I&#8217;ll cover this topic on another tutorial.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.internetcoding.com/how-to-center-a-div-on-screen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Which is better, B or STRONG?</title>
		<link>http://www.internetcoding.com/which-is-better-b-or-strong/</link>
		<comments>http://www.internetcoding.com/which-is-better-b-or-strong/#comments</comments>
		<pubDate>Thu, 09 Dec 2010 22:06:01 +0000</pubDate>
		<dc:creator>ic</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[b]]></category>
		<category><![CDATA[standards]]></category>
		<category><![CDATA[strong]]></category>
		<category><![CDATA[tags]]></category>

		<guid isPermaLink="false">http://www.internetcoding.com/?p=16</guid>
		<description><![CDATA[I hear since years this question: which one is the &#8220;good&#8221; one? B or STRONG? They both do the same, but which one should be used for search engines? I consider myself B as being deprecated. There are a lot of years behind since B should have been removed. My guess is all the engines [...]]]></description>
			<content:encoded><![CDATA[<p>I hear since years this question: which one is the &#8220;good&#8221; one? B or STRONG? They both do the same, but which one should be used for search engines?</p>
<p>I consider myself B as being deprecated. There are a lot of years behind  since B should have been removed. My guess is all the engines which will consider as being important for ranking the bold text, will be using STRONG instead of B. </p>
<p>As of what the search engines are considering now, it looks like Yahoo gives higher ranking for B than STRONG and could not see any difference on Google. I like considering Yahoo is still using old algorithms and B will soon get changed to STRONG. Even so, I would still recommend  using STRONG. If the SEO part is properly made (I am not talking here only about the local file optimization), the content will be indexed by a lot of 3rd party websites (which will probably consider STRONG rather than B) and this will improve the ranking results more to balance to standards, which defines STRONG as a replacement of B.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.internetcoding.com/which-is-better-b-or-strong/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>visa.com down</title>
		<link>http://www.internetcoding.com/visa-com-down/</link>
		<comments>http://www.internetcoding.com/visa-com-down/#comments</comments>
		<pubDate>Thu, 09 Dec 2010 21:37:59 +0000</pubDate>
		<dc:creator>ic</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[data loss]]></category>
		<category><![CDATA[mastercard]]></category>
		<category><![CDATA[visa.com]]></category>
		<category><![CDATA[wikileaks]]></category>

		<guid isPermaLink="false">http://www.internetcoding.com/?p=10</guid>
		<description><![CDATA[Visa.com is down since more than 24 hours now. There were some posts on tweeter to say this is made by WikiLeaks supporters. The website of Mastercard was also down. Rumors say it didn&#8217;t get back without data loss. The same group attacked some other websites as well, such as: Senator Joe Lieberman; PostFinance; Assange’s [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.internetcoding.com/wp-content/uploads/2010/12/screenshot-visa.png"><img class="alignright size-thumbnail wp-image-11" title="screenshot-visa" src="http://www.internetcoding.com/wp-content/uploads/2010/12/screenshot-visa-150x150.png" alt="" width="150" height="150" /></a>Visa.com is down since more than 24 hours now. There were some posts on tweeter to say this is made by WikiLeaks supporters. The website of Mastercard was also down. Rumors say it didn&#8217;t get back without data loss.</p>
<p>The same group attacked some other websites as well, such as:</p>
<ul>
<li>Senator Joe Lieberman;</li>
<li>PostFinance;</li>
<li>Assange’s Swedish prosecutor’s website;</li>
<li>the website of the lawyer representing the two women who were allegedly assaulted by  Julian Assange.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.internetcoding.com/visa-com-down/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

