<?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: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/" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" version="2.0">

<channel>
	<title>Prolific Notion</title>
	
	<link>http://www.prolificnotion.co.uk</link>
	<description>Welcome to the miscellaneous mutterings of Simon Dingley, Certified Umbraco Developer</description>
	<lastBuildDate>Tue, 15 May 2012 07:38:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/ProlificNotion" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="prolificnotion" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><geo:lat>50.420283</geo:lat><geo:long>-4.030637</geo:long><feedburner:emailServiceId xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">ProlificNotion</feedburner:emailServiceId><feedburner:feedburnerHostname xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://feedburner.google.com</feedburner:feedburnerHostname><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://add.my.yahoo.com/rss?url=http%3A%2F%2Ffeeds.feedburner.com%2FProlificNotion" src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2FProlificNotion" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://feeds.my.aol.com/add.jsp?url=http%3A%2F%2Ffeeds.feedburner.com%2FProlificNotion" src="http://o.aolcdn.com/favorites.my.aol.com/webmaster/ffclient/webroot/locale/en-US/images/myAOLButtonSmall.gif">Subscribe with My AOL</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://www.bloglines.com/sub/http://feeds.feedburner.com/ProlificNotion" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Ffeeds.feedburner.com%2FProlificNotion" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2FProlificNotion" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2FProlificNotion" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://www.plusmo.com/add?url=http%3A%2F%2Ffeeds.feedburner.com%2FProlificNotion" src="http://plusmo.com/res/graphics/fbplusmo.gif">Subscribe with Plusmo</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://www.thefreedictionary.com/_/hp/AddRSS.aspx?http%3A%2F%2Ffeeds.feedburner.com%2FProlificNotion" src="http://img.tfd.com/hp/addToTheFreeDictionary.gif">Subscribe with The Free Dictionary</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://www.bitty.com/manual/?contenttype=rssfeed&amp;contentvalue=http%3A%2F%2Ffeeds.feedburner.com%2FProlificNotion" src="http://www.bitty.com/img/bittychicklet_91x17.gif">Subscribe with Bitty Browser</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://www.newsalloy.com/?rss=http%3A%2F%2Ffeeds.feedburner.com%2FProlificNotion" src="http://www.newsalloy.com/subrss3.gif">Subscribe with NewsAlloy</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://www.live.com/?add=http%3A%2F%2Ffeeds.feedburner.com%2FProlificNotion" src="http://tkfiles.storage.msn.com/x1piYkpqHC_35nIp1gLE68-wvzLZO8iXl_JMledmJQXP-XTBOLfmQv4zhj4MhcWEJh_GtoBIiAl1Mjh-ndp9k47If7hTaFno0mxW9_i3p_5qQw">Subscribe with Live.com</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://mix.excite.eu/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2FProlificNotion" src="http://image.excite.co.uk/mix/addtomix.gif">Subscribe with Excite MIX</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://download.attensa.com/app/get_attensa.html?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2FProlificNotion" src="http://www.attensa.com/blogs/attensa/WindowsLiveWriter/BadgeredintoBadges_10C02/attensa_feed_button5.gif">Subscribe with Attensa for Outlook</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://www.webwag.com/wwgthis.php?url=http%3A%2F%2Ffeeds.feedburner.com%2FProlificNotion" src="http://www.webwag.com/images/wwgthis.gif">Subscribe with Webwag</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://www.podcastready.com/oneclick_bookmark.php?url=http%3A%2F%2Ffeeds.feedburner.com%2FProlificNotion" src="http://www.podcastready.com/images/podcastready_button.gif">Subscribe with Podcast Ready</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://www.flurry.com/pushRssFeed.do?r=fb&amp;url=http%3A%2F%2Ffeeds.feedburner.com%2FProlificNotion" src="http://www.flurry.com/images/flurry_rss_logo2.gif">Subscribe with Flurry</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://www.wikio.com/subscribe?url=http%3A%2F%2Ffeeds.feedburner.com%2FProlificNotion" src="http://www.wikio.com/shared/img/add2wikio.gif">Subscribe with Wikio</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://www.dailyrotation.com/index.php?feed=http%3A%2F%2Ffeeds.feedburner.com%2FProlificNotion" src="http://www.dailyrotation.com/rss-dr2.gif">Subscribe with Daily Rotation</feedburner:feedFlare><item>
		<title>ASP.NET Duplicate Title Tags</title>
		<link>http://www.prolificnotion.co.uk/asp-net-duplicate-title-tags/</link>
		<comments>http://www.prolificnotion.co.uk/asp-net-duplicate-title-tags/#comments</comments>
		<pubDate>Tue, 15 May 2012 07:36:17 +0000</pubDate>
		<dc:creator>Simon Dingley</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Umbraco]]></category>

		<guid isPermaLink="false">http://www.prolificnotion.co.uk/?p=746</guid>
		<description><![CDATA[How to resolve issues with duplicate title tags in ASP.Net pages when using the runat="server" attribute in the header.
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.prolificnotion.co.uk%2Fasp-net-duplicate-title-tags%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.prolificnotion.co.uk%2Fasp-net-duplicate-title-tags%2F&amp;style=normal&amp;service=bit.ly&amp;service_api=R_e35365ff035ed93fc3e67e6f868b7be3&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>A client recently highlighted a bug in an Umbraco site I had developed that was causing duplicate title tags to be inserted and resulted in Accessibility validation failure for the client. It seems that there is a bug(?) in .Net when using a &lt;head&gt; tag with the runat=&#8221;server&#8221; attribute, if it does not encounter a HtmlTitle control in the child controls collection it will insert one for you which in this case has undesirable results. On the site in question there is a macro in the master template header that generates title tags for pages so I had to find a way around it.</p>
<p>The solution it turns out is extremely simple, a bit of hack nonetheless but it works.</p>
<pre class="brush: xml; title: ; notranslate">&lt;title visible=&quot;false&quot; runat=&quot;server&quot; /&gt;</pre>
<p>All we need to do is to trick the framework by adding a title tag with the runat=&#8221;server&#8221; attribute and set it&#8217;s visibilty to &#8220;false&#8221; so that it doesn&#8217;t get rendered &#8211; job done!</p>
<p>Of course some of you will be sitting there thinking,<em> &#8220;Why don&#8217;t you just remove the runat=&#8221;server&#8221; attribute from the header&#8221;</em> &#8211; well, in this instance that is not an option since I have other stuff going on in the header that requires it but it is another viable solution &#8211; if you don&#8217;t need it, simply remove it from the header tag and this should also resolve your problem.</p>
<p>If you want to read further on this topic try reading <a title="There are a couple of peculiarities worth understanding when dealing with title tags and master pages within Web Forms and ASP.NET MVC" href="http://haacked.com/archive/2009/04/03/tipjar-title-tags-and-master-pages.aspx" target="_blank">&#8216;Title Tags and Master Pages&#8217; by Phil Haack</a>.</p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>
<p><a href="http://feedads.g.doubleclick.net/~a/XrldewF11fkFbdjyLkRG0rYuCX8/0/da"><img src="http://feedads.g.doubleclick.net/~a/XrldewF11fkFbdjyLkRG0rYuCX8/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/XrldewF11fkFbdjyLkRG0rYuCX8/1/da"><img src="http://feedads.g.doubleclick.net/~a/XrldewF11fkFbdjyLkRG0rYuCX8/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.prolificnotion.co.uk/asp-net-duplicate-title-tags/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Customising your mercurial.ini configuration file to get the most out your experience</title>
		<link>http://www.prolificnotion.co.uk/customising-your-mercurial-ini-configuration-file/</link>
		<comments>http://www.prolificnotion.co.uk/customising-your-mercurial-ini-configuration-file/#comments</comments>
		<pubDate>Fri, 13 Apr 2012 07:34:15 +0000</pubDate>
		<dc:creator>Simon Dingley</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Source Control]]></category>
		<category><![CDATA[Configuration]]></category>
		<category><![CDATA[Mercurial]]></category>

		<guid isPermaLink="false">http://www.prolificnotion.co.uk/?p=724</guid>
		<description><![CDATA[Learn how to customise your Mercurial.ini file to save time and get more out of your Mercurial experience.
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.prolificnotion.co.uk%2Fcustomising-your-mercurial-ini-configuration-file%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.prolificnotion.co.uk%2Fcustomising-your-mercurial-ini-configuration-file%2F&amp;style=normal&amp;service=bit.ly&amp;service_api=R_e35365ff035ed93fc3e67e6f868b7be3&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I am doing an increasing amount of collaborative work at the moment. During the course of these collaborations I have been giving access to some of my Mercurial repositories on BitBucket  to other developers and noticed that simple things like a consistent username have not been configured in their environments. This is resulting in each commit to my repositories often having a different username and meaning I have to keep mapping alias after alias to the BitBucket user accounts so my repo&#8217;s look nice and tidy with peoples avatars all displaying correctly (because I&#8217;m anal like that!).</p>
<p>Having spoken to one of the other developers about updating his mercurial.ini file with a static username and email address I found he was blissfully unaware of the feature as I expect are many others and hence my blog post.</p>
<p>You should find your Mercurial configuration file in <em><strong>%USERPROFILE%\mercurial.ini</strong></em>. If your&#8217;s is not there you can either create it or refer to the <a title="Mercurial reads configuration data from several files, if they exist..." href="http://www.selenic.com/mercurial/hgrc.5.html#files" target="_blank">Configuration files for Mercurial documentation</a>.</p>
<p>See below for an extract of my mercurial.ini configuration file with a breakdown below of the purpose for each configuration setting:</p>
<pre class="brush: plain; title: ; notranslate">[ui]
username = Simon Dingley &lt;simon@prolificnotion.co.uk&gt;
verbose = True
editor = &quot;C:\Program Files (x86)\Notepad++\notepad++.exe&quot; -multiInst -nosession
merge = tortoisemerge
ssh = &quot;TortoisePlink.exe&quot; -ssh -2 -batch -C

[paths]
ucpp = ssh://hg@bitbucket.org/ProNotion/ucommerce-payment-providers
umbraco = https://hg.codeplex.com/umbraco

[extensions]
color =
progress =
convert =
fetch =

[tortoisehg]
vdiff = tortoisemerge</pre>
<h2>[ui]</h2>
<h3><em>username</em></h3>
<p>Identifies the user committing the changeset. Typically a person&#8217;s name and email address, e.g. Simon Dingley &lt;simon@example.com&gt;. Default is often username@hostname and one of the reasons for this blog post.</p>
<h3><em>verbose</em></h3>
<p>Display more detailed output. Default is False. I find this useful to know what is going on in the background.</p>
<h3><em>editor</em></h3>
<p>This is the application to use for editing comments relating to your commits. As you can see, my preferred choice is <a title="A free source code editor and Notepad replacement that supports several languages" href="http://notepad-plus-plus.org/" target="_blank">Notepad++</a> but could really be any text editor of your choice.</p>
<h3><em>merge</em></h3>
<p>This is your tool of choice for resolving merge conflicts, my personal preference is still with <a title="A diff / merge software tool for windows with a tight integration for TortoiseSVN" href="http://tortoisesvn.tigris.org/TortoiseMerge.html" target="_blank">tortoisemerge</a> which I am familiar with from my Subversion days. I&#8217;ve tried a few alternatives but this is the one that works for me so I&#8217;ve stuck with it.</p>
<h3><em>ssh</em></h3>
<p>This is a relatively new addition to my configuration file and provides mercurial with the command to execute for any SSH connections. Depending on interest in this I may at a later date do another post on setting up SSH with mercurial to save the hassle of entering repository login details all of the time.</p>
<h2>[paths]</h2>
<p>This section of the configuration file allows you to supply shorter friendly names for your repositories so you don&#8217;t need to enter the full repository address each time you want to interact with it by means of pushing or pulling changesets. So taking my example below I can very quickly pull from the Umbraco repository by typing the following into my chosen command prompt:</p>
<pre class="brush: plain; title: ; notranslate">hg pull umbraco</pre>
<h2>[extensions]</h2>
<p>This section defines any extensions you wish to use to add additional features to your mercurial experience. Some <a title="These extensions are maintained by the Mercurial project and are distributed together with Mercurial." href="http://mercurial.selenic.com/wiki/UsingExtensions#Extensions_bundled_with_Mercurial" target="_blank">Mercurial extensions</a> are available right out of the box. TO enable an extension that already comes with Mercurial you simply need to add the name of the extension followed by the = sign in order to load the extension with Mercurial it&#8217;s really that easy. If you want to load any other extensions you simply supply the path after the = sign.</p>
<p>Here is a quick overview of the extensions I currently have enabled&#8230;</p>
<h3>color</h3>
<p>This basically provides colouring of the output if you do a diff in your command window (which I don&#8217;t often as I find it far too hard to read and instead use the tortoisehg GUI. Read more about the <a title="This extension modifies the status command to add color to its output to reflect file status" href="http://mercurial.selenic.com/wiki/ColorExtension" target="_blank">Mercurial Color extension</a>.</p>
<h3>progress</h3>
<p>This is one of the first extensions I enabled to get some visual feedback on the progress of push/pull commands which otherwise would cause the process to look like it is doing nothing &#8211; again this is just visual fluff! Read more about the <a title="Uses the progress information logged by hg commands to draw progress bars that are as informative as possible" href="http://mercurial.selenic.com/wiki/ProgressExtension" target="_blank">Mercurial Progress extension</a>.</p>
<h3>convert</h3>
<p>This is one I used mostly in my early days of moving from SubVersion to Mercurial and allows you to convert repositories from other source control repositories to Mercurial. I still use this on occassion. Read more about the <a title="The convert extension converts repositories from other SCMs (or even Mercurial itself) into Mercurial repositories, with options for filtering and renaming" href="http://mercurial.selenic.com/wiki/ConvertExtension" target="_blank">Mercurial Convert extension</a>.</p>
<h3>fetch</h3>
<p>I don&#8217;t use this as often as I should but it&#8217;s basically a productivity enhancement and saves writing a couple of commands by combining pull, merge and update into a single command. Read more about the <a title="This extension is a convenience wrapper." href="http://mercurial.selenic.com/wiki/FetchExtension" target="_blank">Mercurial Fetch extension</a>.</p>
<h3>Other bundled extensions</h3>
<p>For a full list of bundled extensions you can <a title="These extensions are maintained by the Mercurial project and are distributed together with Mercurial." href="http://mercurial.selenic.com/wiki/UsingExtensions#Extensions_bundled_with_Mercurial" target="_blank">Extensions bundled with Mercurial</a> entry on the Mercurial wiki.</p>
<h2>[tortoisehg]</h2>
<h3>vdiff</h3>
<p>This is a configuration section added by the tortoisehg GUI and simply defines my preferred visual diff editor. I&#8217;m actually not sure why it is redefined instead of using the tool already defined in my [ui] section.</p>
<p>So that&#8217;s a wrap on this post however in a related note you may wish to read my other post &#8216;<a title="Console2 – My new and improved command prompt for Windows" href="http://www.prolificnotion.co.uk/console2-my-new-and-improved-command-prompt-for-windows/" target="_blank">Console2 – My new and improved command prompt for Windows</a>&#8216; which I use for entering all of my Mercurial commands.</p>
<p>Any feedback or requests for additions to this post would be useful and I will look to keep it up to date as I build up my configuration file further in the future.</p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>
<p><a href="http://feedads.g.doubleclick.net/~a/eGTpP4F2fTB9jWB2f0sUSdvuocY/0/da"><img src="http://feedads.g.doubleclick.net/~a/eGTpP4F2fTB9jWB2f0sUSdvuocY/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/eGTpP4F2fTB9jWB2f0sUSdvuocY/1/da"><img src="http://feedads.g.doubleclick.net/~a/eGTpP4F2fTB9jWB2f0sUSdvuocY/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.prolificnotion.co.uk/customising-your-mercurial-ini-configuration-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Console2 – My new and improved command prompt for Windows</title>
		<link>http://www.prolificnotion.co.uk/console2-my-new-and-improved-command-prompt-for-windows/</link>
		<comments>http://www.prolificnotion.co.uk/console2-my-new-and-improved-command-prompt-for-windows/#comments</comments>
		<pubDate>Sun, 15 Jan 2012 08:04:01 +0000</pubDate>
		<dc:creator>Simon Dingley</dc:creator>
				<category><![CDATA[Feature]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://www.prolificnotion.co.uk/?p=708</guid>
		<description><![CDATA[
			
				
			
		
I am a sucker for a good looking GUI so when an opportunity presents itself to try and improve my workspace to make it more easy on the eye I will generally take it up. Recently I read a post by Scott Hanselman &#8216;Console2 &#8211; A Better Windows Command Prompt&#8216; and I immediately got myself over to [...]
Related posts:<ol>
<li><a href='http://www.prolificnotion.co.uk/problems-with-windows-server-hosted-in-the-cloud-maintaining-correct-time/' rel='bookmark' title='Problems with Windows Server Hosted in the Cloud Maintaining Correct Time'>Problems with Windows Server Hosted in the Cloud Maintaining Correct Time</a> <small> I currently maintain two windows based servers in the...</small></li>
<li><a href='http://www.prolificnotion.co.uk/register-asp-net-on-iis-in-windows-7/' rel='bookmark' title='Register ASP.Net on IIS in Windows 7'>Register ASP.Net on IIS in Windows 7</a> <small> In IIS on Windows 7 it appears that the...</small></li>
<li><a href='http://www.prolificnotion.co.uk/stop-filezilla-server-interface-from-loading-on-startup/' rel='bookmark' title='Stop FileZilla Server Interface from loading on startup'>Stop FileZilla Server Interface from loading on startup</a> <small> I manage a server for a client that has...</small></li>
</ol>

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.prolificnotion.co.uk%2Fconsole2-my-new-and-improved-command-prompt-for-windows%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.prolificnotion.co.uk%2Fconsole2-my-new-and-improved-command-prompt-for-windows%2F&amp;style=normal&amp;service=bit.ly&amp;service_api=R_e35365ff035ed93fc3e67e6f868b7be3&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I am a sucker for a good looking GUI so when an opportunity presents itself to try and improve my workspace to make it more easy on the eye I will generally take it up. Recently I read a post by Scott Hanselman &#8216;<a title="Console2 - A Better Windows Command Prompt" href="http://www.hanselman.com/blog/Console2ABetterWindowsCommandPrompt.aspx" target="_blank">Console2 &#8211; A Better Windows Command Prompt</a>&#8216; and I immediately got myself over to SourceForge to <a title="Console is a Windows console window enhancement" href="http://sourceforge.net/projects/console/" target="_blank">download a copy of Console2</a> for myself. The project describes itself as &#8220;<em>a Windows console window enhancement. Console features include: multiple tabs, text editor-like text selection, different background types, alpha and color-key transparency, configurable font, different window styles</em>&#8220;.</p>
<p>I&#8217;m not going to cover how to configure your instance of the Console because Scott&#8217;s post already does a very good job of this, however, what I do want to share with you is my own configuration and how I have made it a bit more useful for me.</p>
<p>First of all I have installed Console2 into my Dropbox Tools folder so I essentially have access to it wherever I need it and with the configuration I am now used to. This is easy enough to do since Console2 has no installer you just extract the files to a location of your choice so no further detail needed here. My <a href="http://www.prolificnotion.co.uk/wp-content/uploads/2012/01/console.xml">Console 2 Settings File</a> is attached to this post for anyone that is interested or wants to use it as a basis for configuring your own.</p>
<p>The next thing I did was create a new right-click menu option in Windows to &#8220;Open Console here&#8221; which basically allows me to open a prompt at any folder location in my file system and saves a bit of time since you no longer have to navigate your folder hierarchy to get the prompt to where you want. To do this you need to create a couple of entries in your registry, simply copy and paste the below into a text file, tweak accordingly and save as a .reg file. Once saved you can double click the .reg file to insert the keys into your registry. Alternatively you can just create the keys manually through regedit. It goes without saying that if you are going to fiddle with your registry please be wise and make a backup first!</p>
<pre class="brush: plain; title: ; notranslate">Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\OpenConsole2Here]
@=&quot;&amp;Open Console 2 Here...&quot;

[HKEY_CLASSES_ROOT\Directory\shell\OpenConsole2Here\command]
@=&quot;D:\\Dropbox\\Tools\\Console2\\Console.exe -d \&quot;%L\&quot;&quot;</pre>
<p>It should be noted that these keys relate to my Windows 7 Professional installation and are untested on other versions of Windows!</p>
<p>Credit to <a href="http://www.hanselman.com/blog/AwesomeVisualStudioCommandPromptAndPowerShellIconsWithOverlays.aspx" target="_blank">Scott Hanselman</a> for the icons and the image used in this post <img src='http://www.prolificnotion.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Related posts:<ol>
<li><a href='http://www.prolificnotion.co.uk/problems-with-windows-server-hosted-in-the-cloud-maintaining-correct-time/' rel='bookmark' title='Problems with Windows Server Hosted in the Cloud Maintaining Correct Time'>Problems with Windows Server Hosted in the Cloud Maintaining Correct Time</a> <small> I currently maintain two windows based servers in the...</small></li>
<li><a href='http://www.prolificnotion.co.uk/register-asp-net-on-iis-in-windows-7/' rel='bookmark' title='Register ASP.Net on IIS in Windows 7'>Register ASP.Net on IIS in Windows 7</a> <small> In IIS on Windows 7 it appears that the...</small></li>
<li><a href='http://www.prolificnotion.co.uk/stop-filezilla-server-interface-from-loading-on-startup/' rel='bookmark' title='Stop FileZilla Server Interface from loading on startup'>Stop FileZilla Server Interface from loading on startup</a> <small> I manage a server for a client that has...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>
<p><a href="http://feedads.g.doubleclick.net/~a/2wqH5vvjKajse4QXldOfcJNwv10/0/da"><img src="http://feedads.g.doubleclick.net/~a/2wqH5vvjKajse4QXldOfcJNwv10/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/2wqH5vvjKajse4QXldOfcJNwv10/1/da"><img src="http://feedads.g.doubleclick.net/~a/2wqH5vvjKajse4QXldOfcJNwv10/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.prolificnotion.co.uk/console2-my-new-and-improved-command-prompt-for-windows/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>DataType Support in uSiteBuilder for Umbraco</title>
		<link>http://www.prolificnotion.co.uk/datatype-support-in-usitebuilder-for-umbraco/</link>
		<comments>http://www.prolificnotion.co.uk/datatype-support-in-usitebuilder-for-umbraco/#comments</comments>
		<pubDate>Thu, 22 Dec 2011 15:41:16 +0000</pubDate>
		<dc:creator>Simon Dingley</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Feature]]></category>
		<category><![CDATA[Umbraco]]></category>

		<guid isPermaLink="false">http://www.prolificnotion.co.uk/?p=695</guid>
		<description><![CDATA[Adding DataType Support in uSiteBuilder for Umbraco. My initial contribution to the project and how to add my custom build to your own projects.
Related posts:<ol>
<li><a href='http://www.prolificnotion.co.uk/umbraco-locate-nearest-node-with-specific-property/' rel='bookmark' title='Umbraco : Locate nearest node with specific property'>Umbraco : Locate nearest node with specific property</a> <small>In an ongoing project I am working on I needed...</small></li>
</ol>

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.prolificnotion.co.uk%2Fdatatype-support-in-usitebuilder-for-umbraco%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.prolificnotion.co.uk%2Fdatatype-support-in-usitebuilder-for-umbraco%2F&amp;style=normal&amp;service=bit.ly&amp;service_api=R_e35365ff035ed93fc3e67e6f868b7be3&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>When I first discovered <a title="uSiteBuilder for Umbraco" href="http://our.umbraco.org/projects/developer-tools/usitebuilder" target="_blank"><strong>uSiteBuilder</strong> for <strong>Umbraco</strong></a> I knew right away that it was a game changer in the world of <strong><a title="Umbraco - The open source ASP.NET CMS " href="http://umbraco.com/" target="_blank">Umbraco</a></strong> development (for me at least!). I always felt a little uncomfortable about having to leave the relative safety of my IDE (Visual Studio 2010) and source control (Mercurial) to work in the browser when creating document types, wiring up templates and datatypes. uSiteBuilder is great because it allows you to take a code-first approach to your development allowing you to develop all of your document types, document type properties and templates with strongly typed code and take advantage of the benefits of any source/version control system you work within.</p>
<p>I guess I have been working with <strong>uSiteBuilder</strong> since earlier this year, shortly after it was released and it is the first dependency I now add to any new <strong><a title="Umbraco - The open source ASP.NET CMS " href="http://umbraco.com/" target="_blank">Umbraco</a> </strong>project. The only show stopper I&#8217;ve encountered rears it&#8217;s ugly head when working on a project with multiple developers and occurs when <strong>uSiteBuilder</strong> runs its synchronisation process and then throws an exception when it encounters a datatype on one of your document types that doesn&#8217;t exist in the target environment. The only real way around this is to <a href="http://our.umbraco.org/projects/developer-tools/usitebuilder/usitebuilder-support/26058-Multi-Developer-problem#comment96970" target="_blank">comment out</a> the offending document type property as recommended by <a title="Barry Fogarty - Umbraco Profile" href="http://our.umbraco.org/member/9909" target="_blank">Barry Fogarty</a>, rebuild and deploy your solution, create the missing datatype and then uncomment, rebuild and deploy again which is a pain and slows down development.</p>
<p>Those kind people over at <a title="Vega IT Sourcing is a software development outsourcing company from Novi Sad, Serbia" href="http://www.vegaitsourcing.rs/" target="_blank">Vega IT Sourcing</a> have released the <a title="uSiteBuilder is a framework made for .NET developers to simplify, speedup and take Umbraco development to next level" href="http://usitebuilder.codeplex.com/" target="_blank">source code for uSiteBuilder</a> which is great for people like me who like to have a go at plugging the gaps myself. So I pulled down the source code and made a custom build in an attempt to support at least the default datatypes for <strong>Umbraco</strong>. I have tried to follow the same logic as the rest of the project so you don&#8217;t really need to think too much about it and can quickly familiarise yourself with  the process for creating your datatypes in code. Here is an example of a custom datatype based on the TinyMCE Richtexteditor datatype in Umbraco:</p>
<pre class="brush: csharp; title: ; notranslate">
// --------------------------------------------------------------------------------------------------------------------
// &lt;copyright file=&quot;StandardContentEditor.cs&quot; company=&quot;Prolific Notion&quot;&gt;
//   (c) Copyright 2011 Prolific Notion, http://prolificnotion.co.uk
// &lt;/copyright&gt;
// &lt;summary&gt;
//   Defines the StandardContentEditor type.
// &lt;/summary&gt;
// --------------------------------------------------------------------------------------------------------------------

namespace MyUmbracoProject.Web.DataTypes
{
    using umbraco.cms.businesslogic.datatype;

    using Vega.USiteBuilder;

    /// &lt;summary&gt;
    /// Defines the Standard Content Editor Datatype
    /// &lt;/summary&gt;
    [DataType(
        UniqueId = &quot;{8AB81EFB-35F5-4EF0-9300-04A3AC8A2D21}&quot;,
        Name = &quot;Standard Content Editor&quot;,
        DatabaseDataType = DBTypes.Ntext,
        RenderControlGuid = &quot;5e9b75ae-face-41c8-b47e-5f4b0fd82f83&quot;)]
    public class StandardContentEditor : DataTypeBase
    {
    }
}
}</pre>
<p>Most of the attributes used here should be self explanatory however&#8230;</p>
<ol>
<li>UniqueId &#8211; A <em>unique</em> Guid for your datatype</li>
<li>Name &#8211; The name of your datatype. This is displayed in the Umbraco UI.</li>
<li>DatabaseDataType &#8211; This maps to the umbraco.cms.businesslogic.datatype.DBTypes Enum and defines the type of field to store data in the database.</li>
<li>RenderControlGuid &#8211; Defines the Guid of the control you would like to render for this datatype. In the example above &#8217;5e9b75ae-face-41c8-b47e-5f4b0fd82f83&#8242; is the Guid for the TinyMCE control.</li>
</ol>
<p>There is one other attribute not in the example above called &#8216;<em>RenderControlName</em>&#8216; which I am in two minds whether to keep or not. Essentially its purpose would be to try and find the control by name and therefore grab it&#8217;s Guid if the Guid attribute was not provided, any thoughts or comments on this appreciated however I think it may be subject to clashes or getting the wrong control because names do not have to be unique.</p>
<p>The only other thing you need to remember is to inherit from DataTypeBase.</p>
<p>I am very happy to have been accepted as a contributor on the uSiteBuilder project this week and hope that I can contribute some of my work into the next release. For now, if you are interested in trying out the build for my initial proof of concept you can <a href="http://usitebuilder.codeplex.com/SourceControl/list/changesets" target="_blank">grab it on CodePlex</a>, changset 84163. I welcome any feedback and comments.</p>
<h2>Where do we go from here?</h2>
<p>At this stage it&#8217;s really just a means of overcoming the exceptions I was previously encountering however I would ideally like to extend this to allow you to also configure your datatype settings in code so watch this space&#8230;!</p>
<p>Related posts:<ol>
<li><a href='http://www.prolificnotion.co.uk/umbraco-locate-nearest-node-with-specific-property/' rel='bookmark' title='Umbraco : Locate nearest node with specific property'>Umbraco : Locate nearest node with specific property</a> <small>In an ongoing project I am working on I needed...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>
<p><a href="http://feedads.g.doubleclick.net/~a/_UmDmyN93GbLHuIeLCP06LXsg0A/0/da"><img src="http://feedads.g.doubleclick.net/~a/_UmDmyN93GbLHuIeLCP06LXsg0A/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/_UmDmyN93GbLHuIeLCP06LXsg0A/1/da"><img src="http://feedads.g.doubleclick.net/~a/_UmDmyN93GbLHuIeLCP06LXsg0A/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.prolificnotion.co.uk/datatype-support-in-usitebuilder-for-umbraco/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>UCommerce for Umbraco Extension Method – ISO 3166 Numeric Country Codes</title>
		<link>http://www.prolificnotion.co.uk/ucommerce-for-umbraco-extension-method-iso-3166-numeric-country-codes/</link>
		<comments>http://www.prolificnotion.co.uk/ucommerce-for-umbraco-extension-method-iso-3166-numeric-country-codes/#comments</comments>
		<pubDate>Wed, 28 Sep 2011 09:54:59 +0000</pubDate>
		<dc:creator>Simon Dingley</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Feature]]></category>
		<category><![CDATA[UCommerce]]></category>
		<category><![CDATA[Umbraco]]></category>

		<guid isPermaLink="false">http://www.prolificnotion.co.uk/?p=680</guid>
		<description><![CDATA[
			
				
			
		
Once again my recent work has brought me back around to messing around with Globalisation issues again. This time it is with regards to writing a customer payment provider for UCommerce implementing the HSBC XML API. Certain fraud rules were being flagged on all transactions during testing due to an incorrect or missing country code, [...]
Related posts:<ol>
<li><a href='http://www.prolificnotion.co.uk/c-utility-method-to-populate-list-controls-with-all-countries-as-given-in-iso-3166-1/' rel='bookmark' title='C# Utility method to populate list controls with all countries as given in ISO 3166-1'>C# Utility method to populate list controls with all countries as given in ISO 3166-1</a> <small> Most projects I work on need a list of...</small></li>
<li><a href='http://www.prolificnotion.co.uk/c-utility-method-to-populate-list-controls-with-world-currencies/' rel='bookmark' title='C# Utility method to populate list controls with world currencies'>C# Utility method to populate list controls with world currencies</a> <small>A requirement that came up recently required a drop down...</small></li>
</ol>

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.prolificnotion.co.uk%2Fucommerce-for-umbraco-extension-method-iso-3166-numeric-country-codes%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.prolificnotion.co.uk%2Fucommerce-for-umbraco-extension-method-iso-3166-numeric-country-codes%2F&amp;style=normal&amp;service=bit.ly&amp;service_api=R_e35365ff035ed93fc3e67e6f868b7be3&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Once again my recent work has brought me back around to messing around with Globalisation issues again. This time it is with regards to writing a customer payment provider for UCommerce implementing the HSBC XML API. Certain fraud rules were being flagged on all transactions during testing due to an incorrect or missing country code, checking the documentation again it reads &#8220;The 3 digit ISO country code for the customer’s country&#8221;, this is in fact not the alpha but numeric country representation as defined by <a title="ISO 3166 Maintenance agency  (ISO 3166/MA) ISO's focal point for country codes" href="http://www.iso.org/iso/country_codes.htm" target="_blank">ISO 3166 Country Codes</a>. Unfortunately this cannot be obtained through the .Net Framework alone as I have done with similar issues previously so I needed to write an extension method as advised by <a href="http://our.umbraco.org/member/4948" target="_blank">Søren Spelling Lund</a> in this <a title="ISO 3166-1 numeric codes forum post on our.umbraco" href="http://our.umbraco.org/projects/website-utilities/ucommerce/ucommerce-support/24358-ISO-3166-1-numeric-codes#comment90548" target="_blank">forum post</a>.</p>
<p>In case this is of use to anyone else I am posting up my extension method as this will also have uses outside of <a title="E-commerce platform available for Umbraco" href="http://www.ucommerce.dk/" target="_blank">UCommerce</a> for <a title="The open source ASP.NET CMS " href="http://umbraco.com/" target="_blank">Umbraco</a>.</p>
<pre class="brush: csharp; title: ; notranslate">        /// &lt;summary&gt;
        /// Gets the ISO3166 Numeric Country Code
        /// &lt;/summary&gt;
        /// &lt;param name=&quot;country&quot;&gt;The country.&lt;/param&gt;
        /// &lt;returns&gt;The ISO3166 NUmeric Country Code&lt;/returns&gt;
        public static int GetIsoNumericCode(this EntitiesV2.Country country)
        {
            var countryCodesInEu = new Dictionary&lt;string, int&gt;
                                       {
                                           { &quot;AND&quot;, 20 },
                                           { &quot;ARE&quot;, 784 },
                                           { &quot;AFG&quot;, 4 },
                                           { &quot;ATG&quot;, 28 },
                                           { &quot;AIA&quot;, 660 },
                                           { &quot;ALB&quot;, 8 },
                                           { &quot;ARM&quot;, 51 },
                                           { &quot;ANT&quot;, 530 },
                                           { &quot;AGO&quot;, 24 },
                                           { &quot;ATA&quot;, 10 },
                                           { &quot;ARG&quot;, 32 },
                                           { &quot;ASM&quot;, 16 },
                                           { &quot;AUT&quot;, 40 },
                                           { &quot;AUS&quot;, 36 },
                                           { &quot;ABW&quot;, 533 },
                                           { &quot;ALA&quot;, 248 },
                                           { &quot;AZE&quot;, 31 },
                                           { &quot;BIH&quot;, 70 },
                                           { &quot;BRB&quot;, 52 },
                                           { &quot;BGD&quot;, 50 },
                                           { &quot;BEL&quot;, 56 },
                                           { &quot;BFA&quot;, 854 },
                                           { &quot;BGR&quot;, 100 },
                                           { &quot;BHR&quot;, 48 },
                                           { &quot;BDI&quot;, 108 },
                                           { &quot;BEN&quot;, 204 },
                                           { &quot;BMU&quot;, 60 },
                                           { &quot;BRN&quot;, 96 },
                                           { &quot;BOL&quot;, 68 },
                                           { &quot;BRA&quot;, 76 },
                                           { &quot;BHS&quot;, 44 },
                                           { &quot;BTN&quot;, 64 },
                                           { &quot;BVT&quot;, 74 },
                                           { &quot;BWA&quot;, 72 },
                                           { &quot;BLR&quot;, 112 },
                                           { &quot;BLZ&quot;, 84 },
                                           { &quot;CAN&quot;, 124 },
                                           { &quot;CCK&quot;, 166 },
                                           { &quot;COD&quot;, 180 },
                                           { &quot;CAF&quot;, 140 },
                                           { &quot;COG&quot;, 178 },
                                           { &quot;CHE&quot;, 756 },
                                           { &quot;CIV&quot;, 384 },
                                           { &quot;COK&quot;, 184 },
                                           { &quot;CHL&quot;, 152 },
                                           { &quot;CMR&quot;, 120 },
                                           { &quot;CHN&quot;, 156 },
                                           { &quot;COL&quot;, 170 },
                                           { &quot;CRI&quot;, 188 },
                                           { &quot;SCG&quot;, 891 },
                                           { &quot;CUB&quot;, 192 },
                                           { &quot;CPV&quot;, 132 },
                                           { &quot;CXR&quot;, 162 },
                                           { &quot;CYP&quot;, 196 },
                                           { &quot;CZE&quot;, 203 },
                                           { &quot;DEU&quot;, 276 },
                                           { &quot;DJI&quot;, 262 },
                                           { &quot;DNK&quot;, 208 },
                                           { &quot;DMA&quot;, 212 },
                                           { &quot;DOM&quot;, 214 },
                                           { &quot;DZA&quot;, 12 },
                                           { &quot;ECU&quot;, 218 },
                                           { &quot;EST&quot;, 233 },
                                           { &quot;EGY&quot;, 818 },
                                           { &quot;ESH&quot;, 732 },
                                           { &quot;ERI&quot;, 232 },
                                           { &quot;ESP&quot;, 724 },
                                           { &quot;ETH&quot;, 231 },
                                           { &quot;FIN&quot;, 246 },
                                           { &quot;FJI&quot;, 242 },
                                           { &quot;FLK&quot;, 238 },
                                           { &quot;FSM&quot;, 583 },
                                           { &quot;FRO&quot;, 234 },
                                           { &quot;FRA&quot;, 250 },
                                           { &quot;GAB&quot;, 266 },
                                           { &quot;GBR&quot;, 826 },
                                           { &quot;GRD&quot;, 308 },
                                           { &quot;GEO&quot;, 268 },
                                           { &quot;GUF&quot;, 254 },
                                           { &quot;GHA&quot;, 288 },
                                           { &quot;GIB&quot;, 292 },
                                           { &quot;GRL&quot;, 304 },
                                           { &quot;GMB&quot;, 270 },
                                           { &quot;GIN&quot;, 324 },
                                           { &quot;GLP&quot;, 312 },
                                           { &quot;GNQ&quot;, 226 },
                                           { &quot;GRC&quot;, 300 },
                                           { &quot;SGS&quot;, 239 },
                                           { &quot;GTM&quot;, 320 },
                                           { &quot;GUM&quot;, 316 },
                                           { &quot;GNB&quot;, 624 },
                                           { &quot;GUY&quot;, 328 },
                                           { &quot;HKG&quot;, 344 },
                                           { &quot;HMD&quot;, 334 },
                                           { &quot;HND&quot;, 340 },
                                           { &quot;HRV&quot;, 191 },
                                           { &quot;HTI&quot;, 332 },
                                           { &quot;HUN&quot;, 348 },
                                           { &quot;IDN&quot;, 360 },
                                           { &quot;IRL&quot;, 372 },
                                           { &quot;ISR&quot;, 376 },
                                           { &quot;IND&quot;, 356 },
                                           { &quot;IOT&quot;, 86 },
                                           { &quot;IRQ&quot;, 368 },
                                           { &quot;IRN&quot;, 364 },
                                           { &quot;ISL&quot;, 352 },
                                           { &quot;ITA&quot;, 380 },
                                           { &quot;JAM&quot;, 388 },
                                           { &quot;JOR&quot;, 400 },
                                           { &quot;JPN&quot;, 392 },
                                           { &quot;KEN&quot;, 404 },
                                           { &quot;KGZ&quot;, 417 },
                                           { &quot;KHM&quot;, 116 },
                                           { &quot;KIR&quot;, 296 },
                                           { &quot;COM&quot;, 174 },
                                           { &quot;KNA&quot;, 659 },
                                           { &quot;PRK&quot;, 408 },
                                           { &quot;KOR&quot;, 410 },
                                           { &quot;KWT&quot;, 414 },
                                           { &quot;CYM&quot;, 136 },
                                           { &quot;KAZ&quot;, 398 },
                                           { &quot;LAO&quot;, 418 },
                                           { &quot;LBN&quot;, 422 },
                                           { &quot;LCA&quot;, 662 },
                                           { &quot;LIE&quot;, 438 },
                                           { &quot;LKA&quot;, 144 },
                                           { &quot;LBR&quot;, 430 },
                                           { &quot;LSO&quot;, 426 },
                                           { &quot;LTU&quot;, 440 },
                                           { &quot;LUX&quot;, 442 },
                                           { &quot;LVA&quot;, 428 },
                                           { &quot;LBY&quot;, 434 },
                                           { &quot;MAR&quot;, 504 },
                                           { &quot;MCO&quot;, 492 },
                                           { &quot;MDA&quot;, 498 },
                                           { &quot;MDG&quot;, 450 },
                                           { &quot;MHL&quot;, 584 },
                                           { &quot;MKD&quot;, 807 },
                                           { &quot;MLI&quot;, 466 },
                                           { &quot;MMR&quot;, 104 },
                                           { &quot;MNG&quot;, 496 },
                                           { &quot;MAC&quot;, 446 },
                                           { &quot;MNP&quot;, 580 },
                                           { &quot;MTQ&quot;, 474 },
                                           { &quot;MRT&quot;, 478 },
                                           { &quot;MSR&quot;, 500 },
                                           { &quot;MLT&quot;, 470 },
                                           { &quot;MUS&quot;, 480 },
                                           { &quot;MDV&quot;, 462 },
                                           { &quot;MWI&quot;, 454 },
                                           { &quot;MEX&quot;, 484 },
                                           { &quot;MYS&quot;, 458 },
                                           { &quot;MOZ&quot;, 508 },
                                           { &quot;NAM&quot;, 516 },
                                           { &quot;NCL&quot;, 540 },
                                           { &quot;NER&quot;, 562 },
                                           { &quot;NFK&quot;, 574 },
                                           { &quot;NGA&quot;, 566 },
                                           { &quot;NIC&quot;, 558 },
                                           { &quot;NLD&quot;, 528 },
                                           { &quot;NOR&quot;, 578 },
                                           { &quot;NPL&quot;, 524 },
                                           { &quot;NRU&quot;, 520 },
                                           { &quot;NIU&quot;, 570 },
                                           { &quot;NZL&quot;, 554 },
                                           { &quot;OMN&quot;, 512 },
                                           { &quot;PAN&quot;, 591 },
                                           { &quot;PER&quot;, 604 },
                                           { &quot;PYF&quot;, 258 },
                                           { &quot;PNG&quot;, 598 },
                                           { &quot;PHL&quot;, 608 },
                                           { &quot;PAK&quot;, 586 },
                                           { &quot;POL&quot;, 616 },
                                           { &quot;SPM&quot;, 666 },
                                           { &quot;PCN&quot;, 612 },
                                           { &quot;PRI&quot;, 630 },
                                           { &quot;PSE&quot;, 275 },
                                           { &quot;PRT&quot;, 620 },
                                           { &quot;PLW&quot;, 585 },
                                           { &quot;PRY&quot;, 600 },
                                           { &quot;QAT&quot;, 634 },
                                           { &quot;REU&quot;, 638 },
                                           { &quot;ROU&quot;, 642 },
                                           { &quot;RUS&quot;, 643 },
                                           { &quot;RWA&quot;, 646 },
                                           { &quot;SAU&quot;, 682 },
                                           { &quot;SLB&quot;, 90 },
                                           { &quot;SYC&quot;, 690 },
                                           { &quot;SDN&quot;, 736 },
                                           { &quot;SWE&quot;, 752 },
                                           { &quot;SGP&quot;, 702 },
                                           { &quot;SHN&quot;, 654 },
                                           { &quot;SVN&quot;, 705 },
                                           { &quot;SJM&quot;, 744 },
                                           { &quot;SVK&quot;, 703 },
                                           { &quot;SLE&quot;, 694 },
                                           { &quot;SMR&quot;, 674 },
                                           { &quot;SEN&quot;, 686 },
                                           { &quot;SOM&quot;, 706 },
                                           { &quot;SUR&quot;, 740 },
                                           { &quot;STP&quot;, 678 },
                                           { &quot;SLV&quot;, 222 },
                                           { &quot;SYR&quot;, 760 },
                                           { &quot;SWZ&quot;, 748 },
                                           { &quot;TCA&quot;, 796 },
                                           { &quot;TCD&quot;, 148 },
                                           { &quot;ATF&quot;, 260 },
                                           { &quot;TGO&quot;, 768 },
                                           { &quot;THA&quot;, 764 },
                                           { &quot;TJK&quot;, 762 },
                                           { &quot;TKL&quot;, 772 },
                                           { &quot;TLS&quot;, 626 },
                                           { &quot;TKM&quot;, 795 },
                                           { &quot;TUN&quot;, 788 },
                                           { &quot;TON&quot;, 776 },
                                           { &quot;TUR&quot;, 792 },
                                           { &quot;TTO&quot;, 780 },
                                           { &quot;TUV&quot;, 798 },
                                           { &quot;TWN&quot;, 158 },
                                           { &quot;TZA&quot;, 834 },
                                           { &quot;UKR&quot;, 804 },
                                           { &quot;UGA&quot;, 800 },
                                           { &quot;UMI&quot;, 581 },
                                           { &quot;USA&quot;, 840 },
                                           { &quot;URY&quot;, 858 },
                                           { &quot;UZB&quot;, 860 },
                                           { &quot;VAT&quot;, 336 },
                                           { &quot;VCT&quot;, 670 },
                                           { &quot;VEN&quot;, 862 },
                                           { &quot;VGB&quot;, 92 },
                                           { &quot;VIR&quot;, 850 },
                                           { &quot;VNM&quot;, 704 },
                                           { &quot;VUT&quot;, 548 },
                                           { &quot;WLF&quot;, 876 },
                                           { &quot;WSM&quot;, 882 },
                                           { &quot;YEM&quot;, 887 },
                                           { &quot;MYT&quot;, 175 },
                                           { &quot;ZAF&quot;, 710 },
                                           { &quot;ZMB&quot;, 894 },
                                           { &quot;ZWE&quot;, 716 },
                                       };

            var regionInfo = new RegionInfo(country.Culture);

            if (countryCodesInEu.Keys.Contains(regionInfo.ThreeLetterISORegionName))
                return countryCodesInEu[country.Name];

            return -1;
        }</pre>
<p>Related posts:<ol>
<li><a href='http://www.prolificnotion.co.uk/c-utility-method-to-populate-list-controls-with-all-countries-as-given-in-iso-3166-1/' rel='bookmark' title='C# Utility method to populate list controls with all countries as given in ISO 3166-1'>C# Utility method to populate list controls with all countries as given in ISO 3166-1</a> <small> Most projects I work on need a list of...</small></li>
<li><a href='http://www.prolificnotion.co.uk/c-utility-method-to-populate-list-controls-with-world-currencies/' rel='bookmark' title='C# Utility method to populate list controls with world currencies'>C# Utility method to populate list controls with world currencies</a> <small>A requirement that came up recently required a drop down...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>
<p><a href="http://feedads.g.doubleclick.net/~a/-mk7_UDxcwa2MSw-fEy7dikvybk/0/da"><img src="http://feedads.g.doubleclick.net/~a/-mk7_UDxcwa2MSw-fEy7dikvybk/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/-mk7_UDxcwa2MSw-fEy7dikvybk/1/da"><img src="http://feedads.g.doubleclick.net/~a/-mk7_UDxcwa2MSw-fEy7dikvybk/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.prolificnotion.co.uk/ucommerce-for-umbraco-extension-method-iso-3166-numeric-country-codes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The create dialog for “Media” does not match anything defined in the “~/umbraco/config/create/UI.xml”.</title>
		<link>http://www.prolificnotion.co.uk/the-create-dialog-for-media-does-not-match-anything-defined-in-the-umbracoconfigcreateui-xml/</link>
		<comments>http://www.prolificnotion.co.uk/the-create-dialog-for-media-does-not-match-anything-defined-in-the-umbracoconfigcreateui-xml/#comments</comments>
		<pubDate>Mon, 22 Aug 2011 19:51:59 +0000</pubDate>
		<dc:creator>Simon Dingley</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Umbraco]]></category>

		<guid isPermaLink="false">http://www.prolificnotion.co.uk/?p=667</guid>
		<description><![CDATA[How to fix the exception 'The create dialog for "Media" does not match anything defined in the "~/umbraco/config/create/UI.xml". This could mean an incorrectly installed package or a corrupt UI file' when upgrading Umbraco sites from earlier versions to v4.7.0.
Related posts:<ol>
<li><a href='http://www.prolificnotion.co.uk/error-creating-control-for-nodetype-media/' rel='bookmark' title='ERROR CREATING CONTROL FOR NODETYPE: Media'>ERROR CREATING CONTROL FOR NODETYPE: Media</a> <small>I have just finished another upgrade from umbraco 3.06 to...</small></li>
<li><a href='http://www.prolificnotion.co.uk/media-sorter-for-umbraco/' rel='bookmark' title='Media Sorter for Umbraco'>Media Sorter for Umbraco</a> <small>The package essentially adds a new context menu item to...</small></li>
<li><a href='http://www.prolificnotion.co.uk/use-appcmd-to-migrate-web-config-from-iis6-to-iis7/' rel='bookmark' title='Use AppCmd to Migrate web.config from IIS6 to IIS7'>Use AppCmd to Migrate web.config from IIS6 to IIS7</a> <small>If your site uses any httpHandlers or httpModules you will...</small></li>
</ol>

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.prolificnotion.co.uk%2Fthe-create-dialog-for-media-does-not-match-anything-defined-in-the-umbracoconfigcreateui-xml%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.prolificnotion.co.uk%2Fthe-create-dialog-for-media-does-not-match-anything-defined-in-the-umbracoconfigcreateui-xml%2F&amp;style=normal&amp;service=bit.ly&amp;service_api=R_e35365ff035ed93fc3e67e6f868b7be3&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>When upgrading sites from an earlier version of Umbraco prior to v4.7.0 you may encounter the following exception when trying to create new media items:</p>
<p><em>The create dialog for &#8220;Media&#8221; does not match anything defined in the &#8220;~/umbraco/config/create/UI.xml&#8221;. This could mean an incorrectly installed package or a corrupt UI file</em></p>
<p><em></em>There is an easy fix for this and sadly is due simply to the incorrect casing of the &#8216;Media&#8217; nodeType defined in the <em>UI.xml</em> configuration file. To fix simply open the <em>~/umbraco/config/create/UI.xml </em>file in your preferred text editor and locate the following line:</p>
<pre class="brush: xml; title: ; notranslate">&lt;nodeType alias=&quot;media&quot;&gt;</pre>
<p>Simply change the word media to have an uppercase &#8216;<em>m&#8217;</em> and save the file and your problems will go away!</p>
<pre class="brush: xml; title: ; notranslate">&lt;nodeType alias=&quot;Media&quot;&gt;</pre>
<p><em><strong>Update: As per the comment by Petr Snobelt, for future compatibility it is possibly best to change the case in the database rather than the UI.xml file</strong></em></p>
<p>Related posts:<ol>
<li><a href='http://www.prolificnotion.co.uk/error-creating-control-for-nodetype-media/' rel='bookmark' title='ERROR CREATING CONTROL FOR NODETYPE: Media'>ERROR CREATING CONTROL FOR NODETYPE: Media</a> <small>I have just finished another upgrade from umbraco 3.06 to...</small></li>
<li><a href='http://www.prolificnotion.co.uk/media-sorter-for-umbraco/' rel='bookmark' title='Media Sorter for Umbraco'>Media Sorter for Umbraco</a> <small>The package essentially adds a new context menu item to...</small></li>
<li><a href='http://www.prolificnotion.co.uk/use-appcmd-to-migrate-web-config-from-iis6-to-iis7/' rel='bookmark' title='Use AppCmd to Migrate web.config from IIS6 to IIS7'>Use AppCmd to Migrate web.config from IIS6 to IIS7</a> <small>If your site uses any httpHandlers or httpModules you will...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>
<p><a href="http://feedads.g.doubleclick.net/~a/5WITmNxjHiJsbsXVNmPKrwe5ef8/0/da"><img src="http://feedads.g.doubleclick.net/~a/5WITmNxjHiJsbsXVNmPKrwe5ef8/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/5WITmNxjHiJsbsXVNmPKrwe5ef8/1/da"><img src="http://feedads.g.doubleclick.net/~a/5WITmNxjHiJsbsXVNmPKrwe5ef8/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.prolificnotion.co.uk/the-create-dialog-for-media-does-not-match-anything-defined-in-the-umbracoconfigcreateui-xml/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Loopback Connection Problem with Router</title>
		<link>http://www.prolificnotion.co.uk/loopback-connection-problem-with-router/</link>
		<comments>http://www.prolificnotion.co.uk/loopback-connection-problem-with-router/#comments</comments>
		<pubDate>Wed, 02 Mar 2011 06:53:46 +0000</pubDate>
		<dc:creator>Simon Dingley</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Miscellaneous]]></category>

		<guid isPermaLink="false">http://www.prolificnotion.co.uk/?p=633</guid>
		<description><![CDATA[
			
				
			
		
My router recently died on me and so I had to revert to using a crappy little router supplied to me by Virgin Media my internet provider. I do a fair amount of integration work with the SagePay payment service provider and so I need to configure my router to forward ports to my local [...]
Related posts:<ol>
<li><a href='http://www.prolificnotion.co.uk/page-user-is-null-on-iis7-in-integrated-mode-with-urlrewriting-net/' rel='bookmark' title='Page.User is null on IIS7 in Integrated Mode with UrlRewriting.Net'>Page.User is null on IIS7 in Integrated Mode with UrlRewriting.Net</a> <small> I am in the process of migrating a large...</small></li>
</ol>

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.prolificnotion.co.uk%2Floopback-connection-problem-with-router%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.prolificnotion.co.uk%2Floopback-connection-problem-with-router%2F&amp;style=normal&amp;service=bit.ly&amp;service_api=R_e35365ff035ed93fc3e67e6f868b7be3&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>My router recently died on me and so I had to revert to using a crappy little router supplied to me by Virgin Media my internet provider. I do a fair amount of integration work with the <a title="Visit my partner page on SagePay" href="https://support.sagepay.com/apply/default.aspx?PartnerID={9888A918-576E-4950-85B2-0B6C467336DD}" target="_blank">SagePay payment service provider</a> and so I need to configure my router to forward ports to my local instance of IIS in order to accept callbacks from the service. I&#8217;ve never had a problem with this before except now with this router I was getting the router admin page even though it was configured not to allow administration from outside of the network, I tried using my DynDns hostname and eventually got it hitting my local instance of IIS but the page would just never complete loading and hang indefinitely.</p>
<p>The solution it seems was actually quite straight forward and requires an entry in your host file which you can find in one of the following locations:</p>
<ul>
<li>Windows 9x - <code>(x):\Windows\Hosts</code></li>
<li>Windows 2000 - <code>(x):\WinNT\System32\Drivers\etc\Hosts</code></li>
<li><code>Windows XP, Vista and 7 - </code><code>(x):\Windows\System32\drivers\etc\Hosts</code>
</li>
</ul>
<p>The entry to be added is your local IP address and the hostname to be used to connect to your local web server e.g.</p>
<pre class="brush: plain; title: ; notranslate">127.0.0.1    www.example.com</pre>
<p>For further help and information see <a title="Free help setting up your router or firewall" href="http://portforward.com/" target="_blank">Port Forward</a> and <a title="Loopback Connections" href="http://www.dyndns.com/support/kb/loopback_connections.html" target="_blank">Loopback Connections</a>.</p>
<p>&nbsp;</p>
<p>Related posts:<ol>
<li><a href='http://www.prolificnotion.co.uk/page-user-is-null-on-iis7-in-integrated-mode-with-urlrewriting-net/' rel='bookmark' title='Page.User is null on IIS7 in Integrated Mode with UrlRewriting.Net'>Page.User is null on IIS7 in Integrated Mode with UrlRewriting.Net</a> <small> I am in the process of migrating a large...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>
<p><a href="http://feedads.g.doubleclick.net/~a/yeSU-Bx-v9dBr1_OB_Pk62wkDG4/0/da"><img src="http://feedads.g.doubleclick.net/~a/yeSU-Bx-v9dBr1_OB_Pk62wkDG4/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/yeSU-Bx-v9dBr1_OB_Pk62wkDG4/1/da"><img src="http://feedads.g.doubleclick.net/~a/yeSU-Bx-v9dBr1_OB_Pk62wkDG4/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.prolificnotion.co.uk/loopback-connection-problem-with-router/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Umbraco and Razor Syntax to add attributes to body tag for CSS targetting</title>
		<link>http://www.prolificnotion.co.uk/using-umbraco-and-razor-syntax-to-add-attributes-to-body-tag-for-css-targetting/</link>
		<comments>http://www.prolificnotion.co.uk/using-umbraco-and-razor-syntax-to-add-attributes-to-body-tag-for-css-targetting/#comments</comments>
		<pubDate>Tue, 22 Feb 2011 17:33:35 +0000</pubDate>
		<dc:creator>Simon Dingley</dc:creator>
				<category><![CDATA[Umbraco]]></category>

		<guid isPermaLink="false">http://www.prolificnotion.co.uk/?p=608</guid>
		<description><![CDATA[
			
				
			
		
I never found a solution that I was happy with for adding unique id&#8217;s to a page body tag that didn&#8217;t feel like a hack. I often need to do it for very specific CSS targeting so I introduce to you my current solution using the new Razor syntax inside of a master template in [...]
Related posts:<ol>
<li><a href='http://www.prolificnotion.co.uk/remember-to-use-validationgroup-in-umbraco-dashboard-user-controls/' rel='bookmark' title='Remember to use ValidationGroup in Umbraco Dashboard User Controls'>Remember to use ValidationGroup in Umbraco Dashboard User Controls</a> <small>Based on a recent experience and a lot of wasted...</small></li>
<li><a href='http://www.prolificnotion.co.uk/level-2-certified-umbraco-developer-status/' rel='bookmark' title='Level 2 Certified Umbraco Developer Status'>Level 2 Certified Umbraco Developer Status</a> <small> I am proud to announce that I gained Level...</small></li>
</ol>

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.prolificnotion.co.uk%2Fusing-umbraco-and-razor-syntax-to-add-attributes-to-body-tag-for-css-targetting%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.prolificnotion.co.uk%2Fusing-umbraco-and-razor-syntax-to-add-attributes-to-body-tag-for-css-targetting%2F&amp;style=normal&amp;service=bit.ly&amp;service_api=R_e35365ff035ed93fc3e67e6f868b7be3&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I never found a solution that I was happy with for adding unique id&#8217;s to a page body tag that didn&#8217;t feel like a hack. I often need to do it for very specific CSS targeting so I introduce to you my current solution using the new Razor syntax inside of a master template in Umbraco.</p>
<pre class="brush: csharp; title: ; notranslate">&lt;umbraco:macro runat=&quot;server&quot; language=&quot;razor&quot;&gt;

&lt;body id=&quot;@Model.Id&quot;&gt;

&lt;/umbraco:macro&gt;</pre>
<p><strong> UPDATED</strong>: The example above has now been updated to simplify it and require just a single piece of code inside of the inline-macro &#8220;<span style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace; font-size: 12px; line-height: 18px; white-space: pre;">@Model.Id&#8221; to output the current page id.</span></p>
<p>Essentially all this is doing is appending the current node id to a string (in my case just the letter &#8216;p&#8217;) and adding it to the id attribute of the html body tag.</p>
<p>I tend to also need to take this one step further and include the id of a parent page in case styling is applied to a section of the content tree, I do this by adding a class to the body tag which contains the section id. The solution for this that I have used successfully on a current project is as follows:</p>
<pre class="brush: csharp; title: ; notranslate">&lt;umbraco:macro runat=&quot;server&quot; language=&quot;razor&quot;&gt;

@{
	var node = Model;
	var sid = &quot;s&quot; + Model.Id;
	var level = 2;

	while(node.Level &gt; 1)
	{
		if (node.Level == level)
		{
		  // Add any logic in here then create your class
		  sid = &quot;s&quot; + node.Id;
		}
		node = node.Parent;
	}
}

&lt;body id=&quot;@Model.Id&quot; class=&quot;@sid&quot;&gt;

&lt;/umbraco:macro&gt;</pre>
<p>As in the previous example I am appending the current page id to a string and adding it to the id attribute of the body tag. I am also using a while loop to walk up the content tree to a specific level in the content tree, which in this case is level 2 and I am getting the id of the page at the specified level and appending it to a string(which in this case is &#8216;s&#8217;) and adding it to the class attribute of the body tag.</p>
<p>So what have I gained by doing this? I can now apply specifically targeted CSS styling to individual pages or to an entire section of the content tree.</p>
<p>I would welcome any comments from those more familiar with Razor in Umbraco on the performance overhead of doing this on each page load since I am including this in my master page.</p>
<p>* Credit goes to <a title="Jonas Eriksson Twitter page" href="http://twitter.com/#!/joeriks">Jonas Eriksson</a> for his tip on the Razor syntax for accessing parent nodes and to <a title="Aaron Powell Twitter page" href="http://twitter.com/#!/slace">Aaron Powell</a> for his introduction to &#8220;<a title="Using Razor in Umbraco 4" href="http://www.aaron-powell.com/umbraco-4-and-razor">Using Razor in Umbraco 4</a>&#8221; blog post.</p>
<p>Related posts:<ol>
<li><a href='http://www.prolificnotion.co.uk/remember-to-use-validationgroup-in-umbraco-dashboard-user-controls/' rel='bookmark' title='Remember to use ValidationGroup in Umbraco Dashboard User Controls'>Remember to use ValidationGroup in Umbraco Dashboard User Controls</a> <small>Based on a recent experience and a lot of wasted...</small></li>
<li><a href='http://www.prolificnotion.co.uk/level-2-certified-umbraco-developer-status/' rel='bookmark' title='Level 2 Certified Umbraco Developer Status'>Level 2 Certified Umbraco Developer Status</a> <small> I am proud to announce that I gained Level...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>
<p><a href="http://feedads.g.doubleclick.net/~a/cwMiwFrQ0TivrR1e8VXfnul1JpY/0/da"><img src="http://feedads.g.doubleclick.net/~a/cwMiwFrQ0TivrR1e8VXfnul1JpY/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/cwMiwFrQ0TivrR1e8VXfnul1JpY/1/da"><img src="http://feedads.g.doubleclick.net/~a/cwMiwFrQ0TivrR1e8VXfnul1JpY/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.prolificnotion.co.uk/using-umbraco-and-razor-syntax-to-add-attributes-to-body-tag-for-css-targetting/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Check jQuery Plugin is loaded before use</title>
		<link>http://www.prolificnotion.co.uk/check-jquery-plugin-is-loaded-before-use/</link>
		<comments>http://www.prolificnotion.co.uk/check-jquery-plugin-is-loaded-before-use/#comments</comments>
		<pubDate>Mon, 24 Jan 2011 12:08:33 +0000</pubDate>
		<dc:creator>Simon Dingley</dc:creator>
				<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.prolificnotion.co.uk/?p=601</guid>
		<description><![CDATA[
			
				
			
		
It is good practice to check that a plugin is loaded before trying to use it, thankfully this is very simple as plug-ins are basically namespaces inside of jQuey so you can do the following:
No related posts.
Related posts brought to you by Yet Another Related Posts Plugin.
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.prolificnotion.co.uk%2Fcheck-jquery-plugin-is-loaded-before-use%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.prolificnotion.co.uk%2Fcheck-jquery-plugin-is-loaded-before-use%2F&amp;style=normal&amp;service=bit.ly&amp;service_api=R_e35365ff035ed93fc3e67e6f868b7be3&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>It is good practice to check that a plugin is loaded before trying to use it, thankfully this is very simple as plug-ins are basically namespaces inside of jQuey so you can do the following:</p>
<pre class="brush: jscript; title: ; notranslate">if($().pluginName) {
     // Add any plugin specific code here
 }</pre>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>
<p><a href="http://feedads.g.doubleclick.net/~a/r7C9AtTwAyuFjZkno9o6G7oXvsc/0/da"><img src="http://feedads.g.doubleclick.net/~a/r7C9AtTwAyuFjZkno9o6G7oXvsc/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/r7C9AtTwAyuFjZkno9o6G7oXvsc/1/da"><img src="http://feedads.g.doubleclick.net/~a/r7C9AtTwAyuFjZkno9o6G7oXvsc/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.prolificnotion.co.uk/check-jquery-plugin-is-loaded-before-use/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Level 2 Certified Umbraco Developer Status</title>
		<link>http://www.prolificnotion.co.uk/level-2-certified-umbraco-developer-status/</link>
		<comments>http://www.prolificnotion.co.uk/level-2-certified-umbraco-developer-status/#comments</comments>
		<pubDate>Mon, 06 Dec 2010 21:27:53 +0000</pubDate>
		<dc:creator>Simon Dingley</dc:creator>
				<category><![CDATA[Umbraco]]></category>

		<guid isPermaLink="false">http://www.prolificnotion.co.uk/?p=572</guid>
		<description><![CDATA[
			
				
			
		
I am proud to announce that I gained Level 2 Certified Umbraco Developer Status at the start of the month!
After investing the last 4 years or so into developing solutions with the Umbraco Content Management System I was given the opportunity to take level 2 certification in London at the start of December. I decided [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.prolificnotion.co.uk%2Flevel-2-certified-umbraco-developer-status%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.prolificnotion.co.uk%2Flevel-2-certified-umbraco-developer-status%2F&amp;style=normal&amp;service=bit.ly&amp;service_api=R_e35365ff035ed93fc3e67e6f868b7be3&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I am proud to announce that I gained Level 2 <strong>Certified Umbraco Developer</strong> Status at the start of the month!</p>
<p>After investing the last 4 years or so into developing solutions with the Umbraco Content Management System I was given the opportunity to take level 2 certification in London at the start of December. I decided that the time was right to now get certified in order to qualify the skills I have learnt throughout my journey and to hopefully attract more Umbraco related work my way.</p>
<p>Umbraco has grown dramatically over the last few years both in terms of it&#8217;s popularity but at the same time it has matured into a very user-friendly and flexible content management solution that is now being adopted by some very large companies including Microsoft who are now really getting behind Umbraco and even think highly enough of it to use it on sites of their own such as <a href="http://www.asp.net/">ASP.Net</a>. Umbraco has the most helpful and friendly community I have experienced on-line in my 13 or so years of web development and also running communities of my own.</p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>
<p><a href="http://feedads.g.doubleclick.net/~a/z5lUdCr-JvxA6OVo4B3Wi_Bx-jE/0/da"><img src="http://feedads.g.doubleclick.net/~a/z5lUdCr-JvxA6OVo4B3Wi_Bx-jE/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/z5lUdCr-JvxA6OVo4B3Wi_Bx-jE/1/da"><img src="http://feedads.g.doubleclick.net/~a/z5lUdCr-JvxA6OVo4B3Wi_Bx-jE/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.prolificnotion.co.uk/level-2-certified-umbraco-developer-status/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

