<?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>adorr.net &#187; Web Development</title>
	<atom:link href="http://adorr.net/category/web-development/feed" rel="self" type="application/rss+xml" />
	<link>http://adorr.net</link>
	<description>where Arts resolves into Science</description>
	<lastBuildDate>Tue, 31 Aug 2010 08:30:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Format Numbers to Currency String in VB.NET</title>
		<link>http://adorr.net/2010/08/format-numbers-to-currency-string-in-vb-net.html</link>
		<comments>http://adorr.net/2010/08/format-numbers-to-currency-string-in-vb-net.html#comments</comments>
		<pubDate>Tue, 31 Aug 2010 08:30:49 +0000</pubDate>
		<dc:creator>d0rr</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://adorr.net/?p=1125</guid>
		<description><![CDATA[I thought it would be helpful to share this piece of simple code In VB.NET, it is pretty easy to convert a decimal number (say, 12345.6789) to currency format ($12,345.679) Just convert the number using the lines of code as shown below: Dim value_int As Integer = 12345.6789 ' original decimal number Dim digit As [...]]]></description>
			<content:encoded><![CDATA[<p>I thought it would be helpful to share this piece of simple code</p>
<p>In VB.NET, it is pretty easy to convert a decimal number (say, 12345.6789) to currency format ($12,345.679)</p>
<p>Just convert the number using the lines of code as shown below:</p>
<p><code>Dim value_int As Integer = 12345.6789 ' original decimal number<br />
Dim digit As Integer = 3 ' to format it to 3 decimal places<br />
Dim value_str As String = value_int.ToString("C" &amp; digit, Globalization.CultureInfo.CreateSpecificCulture("en-US"))</code></p>
<p>Also check out other cultures available <a href="http://www.i18nguy.com/unicode/language-identifiers.html" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://adorr.net/2010/08/format-numbers-to-currency-string-in-vb-net.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress &amp; Google XML Sitemaps</title>
		<link>http://adorr.net/2010/07/wordpress-google-xml-sitemaps.html</link>
		<comments>http://adorr.net/2010/07/wordpress-google-xml-sitemaps.html#comments</comments>
		<pubDate>Thu, 29 Jul 2010 05:30:10 +0000</pubDate>
		<dc:creator>d0rr</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[crawl]]></category>
		<category><![CDATA[generate]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[multisite]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[sitemap]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://adorr.net/?p=1095</guid>
		<description><![CDATA[One of the most important element in SEO (Search Engine Optimisation) is to have your site indexed properly (and regularly) by popular search engines. As of today, Google has a significantly huge market share of 84.96% (resource) and is definitely hard for website owners to ignore. I&#8217;m going to walk you through on how I [...]]]></description>
			<content:encoded><![CDATA[<p>One of the most important element in SEO (Search Engine Optimisation) is to have your site indexed properly (and regularly) by popular search engines.</p>
<p>As of today, Google has a significantly huge market share of 84.96% (<a href="http://marketshare.hitslink.com/search-engine-market-share.aspx?qprid=4" target="_blank">resource</a>) and is definitely hard for website owners to ignore.</p>
<p>I&#8217;m going to walk you through on how I generated XML Sitemaps for adorr.net (powered by WordPress) and submit the sitemap to Google for in-depth crawling.</p>
<p><span id="more-1095"></span>Before we proceed further, I would assume that your site is running on <a href="http://wordpress.org" target="_blank">WordPress</a>, as per stated in this post title.</p>
<h2>Generate Google XML Sitemap</h2>
<p>First of all, you will need to download WordPress <a href="http://wordpress.org/extend/plugins/google-sitemap-generator/" target="_blank">Google XML Sitemaps</a> plugin and install it on your WordPress site. If you haven&#8217;t know how to install WordPress plugin, <a href="http://codex.wordpress.org/Managing_Plugins#Installing_Plugins" target="_blank">check out the steps here</a>.</p>
<p><em>** Do note that if your <strong>WordPress</strong> has <span style="color: #ff0000;">Multisite</span> feature turned on, <a href="http://blog.dembowski.net/2010/06/09/google-xml-sitemaps-and-wordpress-multisite/" target="_blank">follow this instruction instead</a>!</em></p>
<p>Once you&#8217;ve got the plugin installed and activated, browse to <strong>Settings &gt; XML-Sitemaps</strong></p>
<p>Look out for a link button to &#8220;<span style="text-decoration: underline;">build the sitemap</span>&#8221; for the first time. If you get a permission error, check the file permissions of the plugin files.</p>
<p>The plugin will then automatically generate the XML Sitemap file. Mine is located at http://adorr.net/sitemap.xml (default location is on your <strong>root</strong>, unless you changed it, check the value under &#8220;Location of your sitemap file&#8221;)</p>
<p>The next time you want to rebuild the sitemap, click on the link button &#8220;<span style="text-decoration: underline;">Rebuild the sitemap</span>&#8221; on top of the plugin page.</p>
<p>This is, however, optional since by default the option &#8220;Rebuild sitemap if you change the content of your blog&#8221; is checked.</p>
<h2>XML Sitemap to Google</h2>
<p>Next, login to your <a href="http://www.google.com/webmasters/" target="_blank">Google Webmaster Tools</a> account. If you haven&#8217;t own one, free registration is just a few steps away.</p>
<p>On post-login page, click on &#8220;<strong>Add a site&#8230;</strong>&#8221; button and type in your domain name.</p>
<p><em>** Make sure you have a <span style="color: #ff0000;">consistent domain</span>, e.g. www.adorr.net or adorr.net, since they are treated differently. If you need an idea on how to make this happen, check out <a href="http://adorr.net/blog/2010/07/28/remove-www-prefix-in-your-domain-name-or-vice-versa/" target="_blank">my another post on this</a>.<br />
</em></p>
<p>There&#8217;s a simple validation process, where you are required to add in an additional metadata onto your site header, within &lt;head&gt; tag.</p>
<p>It should look similar to mine as shown below (except that with different content value, of course):</p>
<pre id="line1">&lt;meta name="google-site-verification" content="xoS99zieD3E8wqSqd-QFQmEyMKUEU9nyf36F0_m5lNw" /&gt;</pre>
<p>Once done, browse to <strong>&#8220;your site&#8221; &gt; Site Configuration &gt; Sitemaps</strong>, click on &#8220;<strong>Submit a Sitemap</strong>&#8221; button and type in your sitemap file and location (it&#8217;s <strong>sitemap.xml</strong> by default, unless you changed it in previous steps when generating sitemap)</p>
<p>It usually takes 5 &#8211; 15 seconds for Google to download your sitemap file and digest.</p>
<p>If everything goes smoothly up to this point, you shall leave the rest to Google Bot to crawl your site</p>
<h2>Last but not least</h2>
<p>There are a few other tools that you may find it useful, e.g. Crawl stats, Site performance, but I&#8217;ll leave that to you to discover.</p>
<p>Hope these simple steps will help you a little, if not much, on your site&#8217;s SEO.</p>
<p>Cheers!</p>
]]></content:encoded>
			<wfw:commentRss>http://adorr.net/2010/07/wordpress-google-xml-sitemaps.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove WWW prefix in your domain name, or vice versa</title>
		<link>http://adorr.net/2010/07/remove-www-prefix-in-your-domain-name-or-vice-versa.html</link>
		<comments>http://adorr.net/2010/07/remove-www-prefix-in-your-domain-name-or-vice-versa.html#comments</comments>
		<pubDate>Wed, 28 Jul 2010 03:26:32 +0000</pubDate>
		<dc:creator>d0rr</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[remove]]></category>
		<category><![CDATA[rewrite]]></category>
		<category><![CDATA[url rewrite]]></category>
		<category><![CDATA[www]]></category>

		<guid isPermaLink="false">http://adorr.net/?p=1098</guid>
		<description><![CDATA[I was doing some SEO for my site the other day when I came across some inconsistencies in my website URL. Some appears to be adorr.net while the rest are www.adorr.net. Do note that this only applies to Linux hosting accounts. This can be annoying for search engines listings, and even cause mismatching paths when [...]]]></description>
			<content:encoded><![CDATA[<p>I was doing some SEO for my site the other day when I came across some inconsistencies in my website URL. Some appears to be adorr.net while the rest are www.adorr.net.</p>
<p>Do note that this only applies to Linux hosting accounts.</p>
<p>This can be annoying for search engines listings, and even cause mismatching paths when using <a href="http://www.google.com/webmasters/tools/" target="_blank">Google Webmaster Tools</a> to submit sitemap.</p>
<p>This issue however can be easily fixed by modifying .htaccess, and I decided to go with shorter version of adorr.net without www</p>
<p>Below is how the first part of my .htaccess</p>
<p><strong><span style="color: #ff0000;">*</span></strong> Remember to replace <strong>adorr.net</strong> with your own domain!</p>
<p><code>RewriteEngine On<br />
RewriteBase /<br />
RewriteCond %{HTTP_HOST} ^www.adorr.net$ [NC]<br />
RewriteRule ^(.*)$ http://adorr.net/$1 [L,R=301]</code></p>
<p>Do note that the code above is to rewrite all requests of www.adorr.net to adorr.net.</p>
<p>If you want it to be the other way round, use the following .htaccess instead</p>
<p><code>RewriteEngine On<br />
RewriteBase /<br />
RewriteCond %{HTTP_HOST} ^adorr.net$ [NC]<br />
RewriteRule ^(.*)$ http://www.adorr.net/$1 [L,R=301]</code></p>
<p>Cheers!</p>
]]></content:encoded>
			<wfw:commentRss>http://adorr.net/2010/07/remove-www-prefix-in-your-domain-name-or-vice-versa.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Absolute/Sticky/Floating Header and Footer</title>
		<link>http://adorr.net/2010/03/absolutestickyfloating-header-and-footer.html</link>
		<comments>http://adorr.net/2010/03/absolutestickyfloating-header-and-footer.html#comments</comments>
		<pubDate>Tue, 16 Mar 2010 03:51:13 +0000</pubDate>
		<dc:creator>d0rr</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://adorr.net/?p=1014</guid>
		<description><![CDATA[People have been asking me about how to make a footer stick to the bottom of the screen regardless of which vertical position the browser screen is at. In other words, how to create a footer just like how Facebook does it. First of all, there are two different types of footer which I&#8217;d like [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://adorr.net/wp-content/uploads/2010/03/float.jpg"><img class="alignnone size-full wp-image-1021" title="float" src="http://adorr.net/wp-content/uploads/2010/03/float.jpg" alt="float" width="720" height="407" /></a></p>
<p>People have been asking me about how to make a footer stick to the bottom of the screen regardless of which vertical position the browser screen is at. In other words, how to create a footer just like how Facebook does it.</p>
<p>First of all, there are two different types of footer which I&#8217;d like to classify them as <strong>Floating Header Footer</strong> and <strong>Sticky Header Footer</strong>.</p>
<p><span id="more-1014"></span><br />
<h2>Sticky Header Footer</h2>
<p>There&#8217;s nothing special about sticky header, it&#8217;s just a header that appears at the top of web broswer screen and doesn&#8217;t follow (means it will disappear) when user scrolls down the screen. It sticks to the top of a webpage.</p>
<p>Sticky footer will behave in two ways. If a webpage content does not fill the height of user&#8217;s browser screen, it will fill the empty space (means footer will be pushed to the bottom of browser screen) and footer will appear as if it sticks to the bottom. If a webpage content is longer than the height of user&#8217;s browser screen, it acts the same way as the normal footer.</p>
<p><a href="http://adorr.net/wp-content/uploads/2010/03/stickyfooter.htm" target="_blank">Sticky Header Footer Example</a></p>
<h2>Floating Header Footer</h2>
<p>The best example for floating footer would be Facebook. There is this footer bar which always appear at the bottom of your screen whenever you scroll your web browser screen vertically.</p>
<p>However, it may not work as intended in Internet Explorer 6 (IE6), as expected. In the example below, an ActiveX workaround is shown. You may also want to consider disabling the floating header and footer by changing it to <em>display: none;</em> (as how Facebook did it)</p>
<p><a href="http://adorr.net/wp-content/uploads/2010/03/floatingfooter.htm" target="_blank">Floating Header Footer Example</a></p>
<p>Hope this short article accompanied with examples will help some of you out there.</p>
<p>I do not go through the code line by line as I suppose the examples are clear enough to be self-explanatory.</p>
<p>Cheers!</p>
]]></content:encoded>
			<wfw:commentRss>http://adorr.net/2010/03/absolutestickyfloating-header-and-footer.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Different CSS for iPhone and other portable devices</title>
		<link>http://adorr.net/2010/03/different-css-for-iphone-and-other-portable-devices.html</link>
		<comments>http://adorr.net/2010/03/different-css-for-iphone-and-other-portable-devices.html#comments</comments>
		<pubDate>Thu, 11 Mar 2010 04:22:32 +0000</pubDate>
		<dc:creator>d0rr</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[480px]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[ipod touch]]></category>
		<category><![CDATA[portable]]></category>

		<guid isPermaLink="false">http://adorr.net/?p=1007</guid>
		<description><![CDATA[With Apple&#8217;s iPhone and iPod Touch, Google&#8217;s Android smartphones and other portable devices gradually dominating the market, it is getting more important to optimize websites to look better in these relatively-smaller-screen portable devices. If you have been in CSS game for quite a while, you may think that defining media=handheld will do the trick @media [...]]]></description>
			<content:encoded><![CDATA[<p>With Apple&#8217;s iPhone and iPod Touch, Google&#8217;s Android smartphones and other portable devices gradually dominating the market, it is getting more important to optimize websites to look better in these relatively-smaller-screen portable devices.</p>
<p>If you have been in CSS game for quite a while, you may think that defining <strong>media=handheld</strong> will do the trick</p>
<p><code>@media handheld {<br />
&nbsp;&nbsp;.navigation {<br />
&nbsp;&nbsp;&nbsp;&nbsp;display: none;<br />
&nbsp;&nbsp;}<br />
}</code></p>
<p>Unfortunately Apple defined it in such that iPhones will look for &#8220;screen&#8221; media type instead of the limited &#8220;handheld&#8221; media which deem to be outdated.</p>
<p>The solution to this is to <strong>specify CSS rule that looks at the device screen resolution</strong>.</p>
<p>There are some sayings that Internet Explorer has issues ignoring the CSS rule, but that can be easily fixed with Internet Explorer&#8217;s &#8220;conditional comments&#8221; feature.</p>
<p>Conceptually, you can define a separate set of CSS for iPhone (or devices with width less than 480px) as follow:</p>
<p><code>&lt;!--[if !IE]&gt;--&gt;<br />
&lt;link media="only screen and (max-device-width: 480px)" rel="stylesheet" type="text/css" href="iphone.css"/&gt;<br />
&lt;!--&lt;![endif]--&gt;</code></p>
<p>And the iphone.css can be any CSS definitions that will overwrites the original CSS definitions.</p>
<p>Hopefully this basic and simple trick can help you to kick start your website revamp to cater for different sizes of portable devices.</p>
]]></content:encoded>
			<wfw:commentRss>http://adorr.net/2010/03/different-css-for-iphone-and-other-portable-devices.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
