<?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>Royal Tutorials</title>
	<atom:link href="http://royaltutorials.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://royaltutorials.com</link>
	<description>Helpful tutorials on how to solve technical problems</description>
	<lastBuildDate>Tue, 08 May 2012 08:32:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>EPiServer get all page types</title>
		<link>http://royaltutorials.com/episerver-get-all-page-types/</link>
		<comments>http://royaltutorials.com/episerver-get-all-page-types/#comments</comments>
		<pubDate>Tue, 08 May 2012 08:32:04 +0000</pubDate>
		<dc:creator>Björn Ali Göransson</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://royaltutorials.com/?p=711</guid>
		<description><![CDATA[To get all page types in EPiServer, use the following code: var pageTypes = EPiServer.DataAbstraction.PageType.List();]]></description>
			<content:encoded><![CDATA[<p>To get all page types in EPiServer, use the following code:</p>
<pre>
var pageTypes = EPiServer.DataAbstraction.PageType.List();
</pre>
]]></content:encoded>
			<wfw:commentRss>http://royaltutorials.com/episerver-get-all-page-types/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Could not load type System.Web.Mvc.ViewPage</title>
		<link>http://royaltutorials.com/could-not-load-type-system-web-mvc-viewpage/</link>
		<comments>http://royaltutorials.com/could-not-load-type-system-web-mvc-viewpage/#comments</comments>
		<pubDate>Mon, 07 May 2012 07:32:50 +0000</pubDate>
		<dc:creator>Björn Ali Göransson</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://royaltutorials.com/?p=708</guid>
		<description><![CDATA[This error happens when Mvc is included, but not told to intercept requests in the correct way. It can be fixed by adding the following attributes to your pages section in Web.config: &#60;pages pageParserFilterType="System.Web.Mvc.ViewTypeParserFilter, System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" pageBaseType="System.Web.Mvc.ViewPage, System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" userControlBaseType="System.Web.Mvc.ViewUserControl, System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" &#62;]]></description>
			<content:encoded><![CDATA[<p>This error happens when Mvc is included, but not told to intercept requests in the correct way. It can be fixed by adding the following attributes to your pages section in Web.config:</p>
<pre>
&lt;pages<strong>
  pageParserFilterType="System.Web.Mvc.ViewTypeParserFilter, System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
  pageBaseType="System.Web.Mvc.ViewPage, System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
  userControlBaseType="System.Web.Mvc.ViewUserControl, System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
</strong>&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://royaltutorials.com/could-not-load-type-system-web-mvc-viewpage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>System.Web.Mvc.HtmlHelper does not contain a definition for RenderPartial</title>
		<link>http://royaltutorials.com/system-web-mvc-htmlhelper-does-not-contain-a-definition-for-renderpartial/</link>
		<comments>http://royaltutorials.com/system-web-mvc-htmlhelper-does-not-contain-a-definition-for-renderpartial/#comments</comments>
		<pubDate>Mon, 07 May 2012 07:29:41 +0000</pubDate>
		<dc:creator>Björn Ali Göransson</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://royaltutorials.com/?p=705</guid>
		<description><![CDATA[This error happens because while Mvc is loaded, the Html extensions are not. This can be fixed by adding a namespace entry under the pages section in your Web.config: &#60;pages &#8230;&#62; &#8230; &#60;namespaces&#62; &#8230; &#60;add namespace="System.Web.Mvc.Html" /&#62; &#60;/namespaces&#62; &#8230; &#60;/pages&#62;]]></description>
			<content:encoded><![CDATA[<p>This error happens because while Mvc is loaded, the Html extensions are not. This can be fixed by adding a <code>namespace</code> entry under the pages section in your Web.config:</p>
<pre>
&lt;pages &hellip;&gt;
  &hellip;
  &lt;namespaces&gt;
    &hellip;
    <strong>&lt;add namespace="System.Web.Mvc.Html" /&gt;</strong>
  &lt;/namespaces&gt;
  &hellip;
&lt;/pages&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://royaltutorials.com/system-web-mvc-htmlhelper-does-not-contain-a-definition-for-renderpartial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>EPiServer create first user SqlServerMembershipProvider</title>
		<link>http://royaltutorials.com/episerver-create-first-user-sqlservermembershipprovider/</link>
		<comments>http://royaltutorials.com/episerver-create-first-user-sqlservermembershipprovider/#comments</comments>
		<pubDate>Thu, 12 Apr 2012 09:07:21 +0000</pubDate>
		<dc:creator>Björn Ali Göransson</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://royaltutorials.com/?p=695</guid>
		<description><![CDATA[In order to switch from SqlServerMembershipProvider/SqlServerRoleProvider and even WindowsMembershipProvider/MultiplexingMembershipProvider, you need to have an SQL user login, you need to have a user registered in the ASP.NET Membership system (preferrably being on of Administrators!). To accomplish this, use the following code: var username = "Foo"; var password = "Bar"; var email = "foo@bar.com"; Membership.CreateUser(username, password, [...]]]></description>
			<content:encoded><![CDATA[<p>In order to switch from SqlServerMembershipProvider/SqlServerRoleProvider and even WindowsMembershipProvider/MultiplexingMembershipProvider, you need to have an SQL user login, you need to have a user registered in the ASP.NET Membership system (preferrably being on of Administrators!).</p>
<p>To accomplish this, use the following code:</p>
<pre>
var username = "Foo";
var password = "Bar";
var email = "foo@bar.com";

Membership.CreateUser(username, password, email);
Roles.CreateRole("Administrators");
Roles.AddUserToRole(username, "Administrators");
</pre>
<p>This code can be added in a new, blank WebForm.aspx in the Page_Load event, or even temporarily pasted as <code>&lt;% %&gt;</code> inline code in an existent .aspx page.</p>
<p>Note that you already need to have switched over to SqlServerRoleProvider/SqlServerMembershipProvider in Web.config to use this code. Then, try to log in with the specified username and password.</p>
]]></content:encoded>
			<wfw:commentRss>http://royaltutorials.com/episerver-create-first-user-sqlservermembershipprovider/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IIS pickup directory</title>
		<link>http://royaltutorials.com/iis-pickup-directory/</link>
		<comments>http://royaltutorials.com/iis-pickup-directory/#comments</comments>
		<pubDate>Wed, 04 Apr 2012 09:50:15 +0000</pubDate>
		<dc:creator>Björn Ali Göransson</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://royaltutorials.com/?p=691</guid>
		<description><![CDATA[To specify the pickup directory when sending emails using settings in Web.config, use the following code for your mailSettings section in Web.config: &#60;smtp from="foo@bar.com" deliveryMethod="SpecifiedPickupDirectory"&#62; &#60;specifiedPickupDirectory pickupDirectoryLocation="c:\temp\maildrop\"/&#62; &#60;/smtp&#62; Also, remember to use System.Net.Mail, not System.Web.Mail &#8211; it doesn&#8217;t use settings specified in Web.config.]]></description>
			<content:encoded><![CDATA[<p>To specify the pickup directory when sending emails using settings in Web.config, use the following code for your <code>mailSettings</code> section in Web.config:</p>
<pre>&lt;smtp from="foo@bar.com" deliveryMethod="SpecifiedPickupDirectory"&gt;
  &lt;specifiedPickupDirectory pickupDirectoryLocation="c:\temp\maildrop\"/&gt;
&lt;/smtp&gt;</pre>
<p>Also, remember to use <code>System.Net.Mail</code>, not <code>System.Web.Mail</code> &#8211; it doesn&#8217;t use settings specified in Web.config.</p>
]]></content:encoded>
			<wfw:commentRss>http://royaltutorials.com/iis-pickup-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASP.NET User Control controls are null</title>
		<link>http://royaltutorials.com/asp-net-user-control-controls-are-null/</link>
		<comments>http://royaltutorials.com/asp-net-user-control-controls-are-null/#comments</comments>
		<pubDate>Fri, 16 Mar 2012 09:34:28 +0000</pubDate>
		<dc:creator>Björn Ali Göransson</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://royaltutorials.com/?p=686</guid>
		<description><![CDATA[When including a Web User Control in ASP.NET, sometimes your child controls may all be null when Page_Load and OnLoad are executed. This occurs when the control class is referred directly through import directives, and not the .ascx. (Thought you saved time by including the entire namespace? Wrong!) The .ascx extends its CodeBehind class, which [...]]]></description>
			<content:encoded><![CDATA[<p>When including a Web User Control in ASP.NET, sometimes your child controls may all be <code>null</code> when <code>Page_Load</code> and <code>OnLoad</code> are executed.</p>
<p>This occurs when the control class is referred directly through import directives, and not the .ascx.</p>
<p><em>(Thought you saved time by including the entire namespace? Wrong!)</em></p>
<p>The .ascx extends its CodeBehind class, which is mixed with its designer class, and these 3 combined results in the User Control which you have made in design time.</p>
<p>So the .ascx knows of its CodeBehind (it&#8217;s referenced at the <code>&lt;%@ Control %&gt;</code> directive), but there is no reference from the CodeBehind to the .ascx. In other words, if you fail to invoke the .ascx, and just the CodeBehind class, no initialization logic (resulting from your .ascx markup) will be executed. As such, you will get loads of &#8220;Object reference not set to an instance of an object&#8221; exceptions.</p>
<p>To fix this, remove the <code>&lt;%@ Register Assembly="" %&gt;</code> directive importing your class (in the including file &#8211; not the offending User Control), and replace it with a directive that includes the .ascx:</p>
<pre>&lt;%@ Register TagPrefix="Foo" TagName="Bar" Src="~/Templates/QDCMS/Units/Static/Bar.ascx" %&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://royaltutorials.com/asp-net-user-control-controls-are-null/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C# DateTime compare dates</title>
		<link>http://royaltutorials.com/c-datetime-compare-dates/</link>
		<comments>http://royaltutorials.com/c-datetime-compare-dates/#comments</comments>
		<pubDate>Fri, 09 Mar 2012 09:44:27 +0000</pubDate>
		<dc:creator>Björn Ali Göransson</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://royaltutorials.com/?p=676</guid>
		<description><![CDATA[To just compare the dates (not the times) of two DateTime objects, use the following code: public static bool IsSameDayAs(DateTime a, DateTime b) { return a.Year == b.Year &#38;&#38; a.Month == b.Month &#38;&#38; a.Day == b.Day; } This can easily be made into an extension method: public static bool IsSameDayAs(this DateTime a, DateTime b) { [...]]]></description>
			<content:encoded><![CDATA[<p>To just compare the dates (not the times) of two <code>DateTime</code> objects, use the following code:</p>
<pre>
public static bool IsSameDayAs(DateTime a, DateTime b)
{
  return a.Year == b.Year &amp;&amp; a.Month == b.Month &amp;&amp; a.Day == b.Day;
}
</pre>
<p>This can easily be made into an extension method:</p>
<pre>
public static bool IsSameDayAs(<strong>this</strong> DateTime a, DateTime b)
{
  return a.Year == b.Year &amp;&amp; a.Month == b.Month &amp;&amp; a.Day == b.Day;
}
</pre>
<p>Now, you can use the method as in the following example:</p>
<pre>
DateTime foo == &hellip;

if(foo.IsSameDayAs(DateTime.Now)){
  // foo date is today!
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://royaltutorials.com/c-datetime-compare-dates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Possible multiple enumeration</title>
		<link>http://royaltutorials.com/possible-multiple-enumeration/</link>
		<comments>http://royaltutorials.com/possible-multiple-enumeration/#comments</comments>
		<pubDate>Thu, 08 Mar 2012 14:40:00 +0000</pubDate>
		<dc:creator>Björn Ali Göransson</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://royaltutorials.com/?p=673</guid>
		<description><![CDATA[This error occurs when using Enumerations (often in combination with LINQ) in .NET, when using ReSharper. Enumerations preserve position state (they remember their current position in the enumeration) , and thus one Enumeration can impossibly be accessed  by several code blocks simultaneously. To solve this, make a list of the collection: &#60;pre&#62; var myList = myEnumeration.ToList(); [...]]]></description>
			<content:encoded><![CDATA[<p>This error occurs when using Enumerations (often in combination with LINQ) in .NET, when using ReSharper.</p>
<p>Enumerations preserve position state (they remember their current position in the enumeration) , and thus one Enumeration can impossibly be accessed  by several code blocks simultaneously.</p>
<p>To solve this, make a list of the collection:</p>
<p>&lt;pre&gt;</p>
<p>var myList = myEnumeration.ToList(); // Note: This will enumerate the collection</p>
<p>&lt;/pre&gt;</p>
<p>This way, when enumerating the list, new Enumerators will be created when needed.</p>
]]></content:encoded>
			<wfw:commentRss>http://royaltutorials.com/possible-multiple-enumeration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress change language</title>
		<link>http://royaltutorials.com/wordpress-change-language/</link>
		<comments>http://royaltutorials.com/wordpress-change-language/#comments</comments>
		<pubDate>Tue, 06 Mar 2012 18:04:00 +0000</pubDate>
		<dc:creator>Björn Ali Göransson</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://royaltutorials.com/?p=667</guid>
		<description><![CDATA[To change the language of the admin/members area of a WordPress installation after installing, you must do the following steps: Download a language .mo file Enable the language file in wp-config Step 1: Download a language .mo file Go to the WordPress in your language page, and find the language in which you want the [...]]]></description>
			<content:encoded><![CDATA[<p>To change the language of the admin/members area of a WordPress installation <em>after installing</em>, you must do the following steps:</p>
<ol>
<li>Download a language <code>.mo</code> file</li>
<li>Enable the language file in <code>wp-config</code></li>
</ol>
<h2>Step 1: Download a language <code>.mo</code> file</h2>
<p>Go to the <a href="http://codex.wordpress.org/WordPress_in_Your_Language#Afrikaans_.28af.29">WordPress in your language</a> page, and find the language in which you want the admin area to appear.</p>
<p>If WordPress is available in your language, you will have to follow the correct link from that section on the page, and from there find a language file that end with <code>.mo</code>. This is usually the hardest part, so I&#8217;ve made a small list of the <code>.mo</code> files I could find.</p>
<p>I think the plan is to integrate all language branches into the official <a href="http://svn.automattic.com/wordpress-i18n/">WordPress internationalization repository</a>. But, as of now, not much can be found there.</p>
<ul>
<li><a href="http://azerblog.com/wordpress/dil/azb01/wp-content/languages/azb_AZB.mo">Azeri</a> - arabic letters</li>
<li><a href="http://azerblog.com/wordpress/dil/azr01/wp-content/languages/azr_AZR.mo">Azeri</a> - roman letters</li>
<li><a href="http://www.shadhinbangla.com/wp-content/uploads/2011/10/bn_BD.zip">Bangla</a> (file is zipped)</li>
<li><a href="http://svn.automattic.com/wordpress-i18n/bg_BG/tags/3.2/messages/bg_BG.mo">Bulgarian</a></li>
<li><a href="http://svn.automattic.com/wordpress-i18n/eo/trunk/messages/eo.mo">Esperanto</a></li>
<li><a href="http://svn.automattic.com/wordpress-i18n/et/trunk/messages/et.mo">Estonian</a></li>
<li><a href="http://svn.automattic.com/wordpress-i18n/fo/trunk/messages/fo.mo">Faroese</a></li>
<li><a href="http://wordpress-malagasy.googlecode.com/svn/wp/pot/mg_MG.mo">Magalasy</a></li>
</ul>
<p>Most of the time, the <code>.mo</code> files can be found only in the WordPress installation zip. I have compiled a list of those languages, too.</p>
<ul>
<li><a href="http://sq.wordpress.org/wordpress-3.3.1-sq.zip">Albanian</a></li>
<li><a href="http://ar.wordpress.org/wordpress-3.3.1-ar.zip">Arabic</a></li>
<li><a href="http://eu.wordpress.org/wordpress-3.0.4-eu.zip">Basque</a></li>
<li><a href="http://bs.wordpress.org/wordpress-3.3.1-bs_BA.zip">Bosnian</a></li>
<li><a href="http://ca.wordpress.org/wordpress-3.3.1-ca.zip">Catalán</a></li>
<li><a href="http://cl.wordpress.org/wordpress-3.2.1-es_CL.zip">Chilean</a></li>
<li><a href="http://cn.wordpress.org/wordpress-3.3.1-zh_CN.zip">Chinese</a></li>
<li><a href="http://svn.automattic.com/wordpress-i18n/zh_HK/trunk/messages/zh_HK.mo">Chinese</a> - Hong Kong</li>
<li><a href="http://tw.wordpress.org/wordpress-3.3.1-zh_TW.zip">Chinese</a> &#8211; Taiwan</li>
<li><a href="http://hr.wordpress.org/wordpress-3.3.1-hr.zip">Croatian</a></li>
<li><a href="http://cs.wordpress.org/wordpress-3.3.1-cs_CZ.zip">Czech</a></li>
<li><a href="http://da.wordpress.org/wordpress-3.3.1-da_DK.zip">Danish</a></li>
<li><a href="http://nl.wordpress.org/wordpress-3.3.1-nl_NL.zip">Dutch</a></li>
<li><a href="http://fi.wordpress.org/wordpress-3.3.1-fi.zip">Finnish</a></li>
<li><a href="http://fr.wordpress.org/wordpress-3.3.1-fr_FR.zip">French</a></li>
<li><a href="http://gl.wordpress.org/wordpress-3.2.1-gl_ES.zip">Galician</a></li>
<li><a href="http://de.wordpress.org/wordpress-3.3.1-de_DE.zip">German</a></li>
<li><a href="http://he.wordpress.org/wordpress-3.3.1-he_IL.zip">Hebrew</a></li>
<li><a href="http://hu.wordpress.org/wordpress-3.3.1-hu_HU.zip">Hungarian</a></li>
<li><a href="http://id.wordpress.org/wordpress-3.3.1-id_ID.zip">Indonesian</a></li>
<li><a href="http://it.wordpress.org/wordpress-3.3.1-it_IT.zip">Italian</a></li>
<li><a href="http://ja.wordpress.org/wordpress-3.3.1-ja.zip">Japanese</a></li>
<li><a href="http://ko.wordpress.org/wordpress-3.2.1-ko_KR.zip">Korean</a></li>
<li><a href="http://ku.wordpress.org/wordpress-3.3.1-ckb.zip">Kurdish</a> &#8211; Sorani</li>
<li><a href="http://lv.wordpress.org/wordpress-3.2.1-lv.zip">Latvian</a></li>
<li><a href="http://blogr.lt/wp-content/languages/WP-3.3.zip">Lithuanian</a></li>
<li><a href="http://mya.wordpress.org/wordpress-3.2.1-my_MM.zip">Myanmar</a></li>
<li><a href="http://nb.wordpress.org/wordpress-3.3.1-nb_NO.zip">Norwegian</a> - Bokmål</li>
<li><a href="http://nn.wordpress.org/wordpress-3.3.1-nn_NO.zip">Norwegian</a> - Nynorsk</li>
<li><a href="http://fa.wordpress.org/wordpress-3.3.1-fa_IR.zip">Farsi</a></li>
<li><a href="http://pl.wordpress.org/wordpress-3.3.1-pl_PL.zip">Polish</a></li>
<li><a href="http://pt.wordpress.org/wordpress-3.3.1-pt_PT.zip">Portuguese</a></li>
<li><a href="http://ro.wordpress.org/wordpress-3.2.1-ro_RO.zip">Romanian</a></li>
<li><a href="http://ru.wordpress.org/wordpress-3.3.1-ru_RU.zip">Russian</a></li>
<li><a href="http://sr.wordpress.org/wordpress-3.3.1-sr_RS.zip">Serbian</a></li>
<li><a href="http://si.wordpress.org/wordpress-2.8.5-si_LK.zip">Sinhala</a></li>
<li><a href="http://sk.wordpress.org/wordpress-3.3.1-sk_SK.zip">Slovak</a></li>
<li><a href="http://sl.wordpress.org/wordpress-3.3.1-sl_SI.zip">Slovenian</a></li>
<li><a href="http://es.wordpress.org/wordpress-3.3.1-es_ES.zip">Spanish</a></li>
<li><a href="http://su.wordpress.org/wordpress-3.1.3-su_ID.zip">Sundanese</a></li>
<li><a href="http://sv.wordpress.org/wordpress-3.3.1-sv_SE.zip">Swedish</a></li>
<li><a href="http://ta-lk.wordpress.org/wordpress-3.3.1-ta_LK.zip">Tamil</a></li>
<li><a href="http://th.wordpress.org/wordpress-3.3.1-th.zip">Thai</a></li>
<li><a href="http://tr.wordpress.org/wordpress-3.3.1-tr_TR.zip">Turkish</a></li>
<li><a href="http://uk.wordpress.org/wordpress-3.3.1-uk.zip">Ukranian</a></li>
<li><a href="http://ug.wordpress.org/wordpress-3.3.1-ug_CN.zip">Uighur</a></li>
<li><a href="http://uz.wordpress.org/wordpress-3.0.1-uz_UZ.zip">Uzbek</a></li>
<li><a href="http://vi.wordpress.org/wordpress-3.3-aortic-dissectio-vi.zip">Vietnamese</a></li>
</ul>
<div>When downloading these packages, copy the whole <code>languages/</code> folder from <code>wp-content/</code> into the <code>wp-content/</code> folder of your site.</div>
<h2>Step 2: Enable the language file in <code>wp-config</code></h2>
<p>Now navigate to the site root of your WordPress installation, and open the file wp-config.php. Every site has one.</p>
<p>Here, at around line 72, there will be a line similar to this one:</p>
<pre>define ('WPLANG', '');</pre>
<p>Now go to your <code>languages/</code> folder inside <code>wp-content/</code> and look for the <code>xx_XX.mo</code> file that you just added. For example, in swedish, it will be called <code>sv_SE.mo</code>.</p>
<p>This <code>xx_XX</code> name is what you&#8217;re supposed to write (without the <code>.mo</code>) inside the quotation marks in <code>wp-config.php</code>.</p>
<p>For Swedish, the code will now look like this:</p>
<pre>define ('WPLANG', 'sv_SE');</pre>
<p>Now go to your admin/member area of you WordPress site, and reload the page. It should now be in the language of your choosing!</p>
]]></content:encoded>
			<wfw:commentRss>http://royaltutorials.com/wordpress-change-language/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What&#8217;s blocking port 80?</title>
		<link>http://royaltutorials.com/whats-blocking-port-80/</link>
		<comments>http://royaltutorials.com/whats-blocking-port-80/#comments</comments>
		<pubDate>Tue, 06 Mar 2012 15:08:17 +0000</pubDate>
		<dc:creator>Björn Ali Göransson</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://royaltutorials.com/?p=662</guid>
		<description><![CDATA[To find out what&#8217;s blocking port 80 on a Windows machine, start a windows command prompt (cmd.exe) &#8211; this probably needs Administrator privilegies &#8211; and type the following command: netstat -ab And look for the line saying 0.0.0.0:80. The following line should have the .exe file named in brackets. This should be the result when [...]]]></description>
			<content:encoded><![CDATA[<p>To find out what&#8217;s blocking port 80 on a Windows machine, start a windows command prompt (<code>cmd.exe</code>) &#8211; this probably needs Administrator privilegies &#8211; and type the following command:</p>
<pre>
netstat -ab
</pre>
<p>And look for the line saying <code>0.0.0.0:80</code>. The following line should have the <code>.exe</code> file named in brackets.</p>
<p>This should be the result when the Apache HTTPD server is blocking:</p>
<pre>
&hellip; (lots of lines) &hellip;
  TCP    0.0.0.0:80             Foo:0               LISTENING
 [httpd.exe]
&hellip; (lots of lines) &hellip;
</pre>
<p>If you cannot find it (there may be a lot of lines to scan through), this little command should be helpful (also in command +3prompt, with Administrator privilegies):</p>
<pre>
FOR /f "tokens=5" %G IN ('netstat -ano ^| findstr "0.0.0.0:80"') DO tasklist /v | findstr %G
</pre>
<p>This should be the result when the Apache HTTPD server is blocking:</p>
<pre>
httpd.exe                    21764 Console                    2     18 112 K
Running         Ali-PC\Ali                                              0:00:00 Z:\
.sys\apache2\bin\httpd.exe
</pre>
<p>(Note: Actual numbers and paths may vary)</p>
]]></content:encoded>
			<wfw:commentRss>http://royaltutorials.com/whats-blocking-port-80/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

