<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Randomos Technos</title>
	<atom:link href="http://jwwishart.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://jwwishart.wordpress.com</link>
	<description>My Random Technology Notes</description>
	<lastBuildDate>Wed, 19 Oct 2011 07:19:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='jwwishart.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Randomos Technos</title>
		<link>http://jwwishart.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://jwwishart.wordpress.com/osd.xml" title="Randomos Technos" />
	<atom:link rel='hub' href='http://jwwishart.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Git Setup</title>
		<link>http://jwwishart.wordpress.com/2010/06/21/git-setup/</link>
		<comments>http://jwwishart.wordpress.com/2010/06/21/git-setup/#comments</comments>
		<pubDate>Mon, 21 Jun 2010 11:28:02 +0000</pubDate>
		<dc:creator>jwwishart</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">https://jwwishart.wordpress.com/2010/06/21/git-setup/</guid>
		<description><![CDATA[This post has been moved to here Tagged: git<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jwwishart.wordpress.com&amp;blog=7020771&amp;post=551&amp;subd=jwwishart&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This post has been moved to <a title="here" href="http://jwwishart.blogspot.com/2011/03/git-setup.html">here</a></p>
<br /> Tagged: <a href='http://jwwishart.wordpress.com/tag/git/'>git</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jwwishart.wordpress.com/551/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jwwishart.wordpress.com/551/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jwwishart.wordpress.com/551/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jwwishart.wordpress.com/551/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jwwishart.wordpress.com/551/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jwwishart.wordpress.com/551/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jwwishart.wordpress.com/551/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jwwishart.wordpress.com/551/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jwwishart.wordpress.com/551/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jwwishart.wordpress.com/551/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jwwishart.wordpress.com/551/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jwwishart.wordpress.com/551/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jwwishart.wordpress.com/551/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jwwishart.wordpress.com/551/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jwwishart.wordpress.com&amp;blog=7020771&amp;post=551&amp;subd=jwwishart&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jwwishart.wordpress.com/2010/06/21/git-setup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/558f77d275c93699af047641f735898b?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">jwwishart</media:title>
		</media:content>
	</item>
		<item>
		<title>Mongrel Rails on Windows 7</title>
		<link>http://jwwishart.wordpress.com/2010/06/21/mongrel-rails-on-windows-7/</link>
		<comments>http://jwwishart.wordpress.com/2010/06/21/mongrel-rails-on-windows-7/#comments</comments>
		<pubDate>Mon, 21 Jun 2010 11:14:34 +0000</pubDate>
		<dc:creator>jwwishart</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">https://jwwishart.wordpress.com/2010/06/21/mongrel-rails-on-windows-7/</guid>
		<description><![CDATA[I’ve been having a bit of trouble getting Webrick running properly on Ubuntu and Windows; and the resolution… ??? I don’t know, but the suggestions are to try Mongrel, which though a solution is a bit annoying as Webrick is there ready to go… Installing Mongrel on Windows 7 was rather easy though; it involved [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jwwishart.wordpress.com&amp;blog=7020771&amp;post=550&amp;subd=jwwishart&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I’ve been having a bit of trouble getting Webrick running properly on Ubuntu and Windows; and <a href="http://stackoverflow.com/questions/3035477/rails-my-stylesheet-disappears-magically">the resolution</a>… ??? I don’t know, but the suggestions are to try Mongrel, which though a solution is a bit annoying as Webrick is there ready to go…</p>
<p>Installing Mongrel on Windows 7 was rather easy though; it involved</p>
<p><font color="#0000a0" size="2" face="Courier New">gem install mongrel</font></p>
<p>Then just navigating to the directory with the rails application in it and typing:</p>
<p><font color="#0000a0" size="2" face="Courier New">mongrel_rails start</font></p>
<p>CTRL-C stops the process.</p>
<p>The instructions <a href="http://noobonrails.blogspot.com/2006/06/how-to-setup-mongrel-as-native-windows.html">here</a> for installing the win32-service didn’t work, but <a href="http://rubyforge.org/tracker/index.php?func=detail&amp;aid=27692&amp;group_id=85&amp;atid=411">this</a> did help… So i ran the following command:</p>
<p><font color="#0000a0" size="2" face="Courier New">gem install win32-service –platform x86-mswin32</font></p>
<p>… and it installed. Now we need to install mongrel_service</p>
<p><font color="#0000a0" size="2" face="Courier New">gem install mongrel_service</font></p>
<p>… which fails… and i still need to resolve this <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<br /> Tagged: <a href='http://jwwishart.wordpress.com/tag/rails/'>rails</a>, <a href='http://jwwishart.wordpress.com/tag/ruby/'>Ruby</a>, <a href='http://jwwishart.wordpress.com/tag/windows-7/'>Windows 7</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jwwishart.wordpress.com/550/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jwwishart.wordpress.com/550/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jwwishart.wordpress.com/550/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jwwishart.wordpress.com/550/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jwwishart.wordpress.com/550/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jwwishart.wordpress.com/550/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jwwishart.wordpress.com/550/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jwwishart.wordpress.com/550/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jwwishart.wordpress.com/550/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jwwishart.wordpress.com/550/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jwwishart.wordpress.com/550/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jwwishart.wordpress.com/550/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jwwishart.wordpress.com/550/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jwwishart.wordpress.com/550/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jwwishart.wordpress.com&amp;blog=7020771&amp;post=550&amp;subd=jwwishart&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jwwishart.wordpress.com/2010/06/21/mongrel-rails-on-windows-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/558f77d275c93699af047641f735898b?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">jwwishart</media:title>
		</media:content>
	</item>
		<item>
		<title>ASP.NET MVC: Constructing UrlHelper</title>
		<link>http://jwwishart.wordpress.com/2010/06/21/asp-net-mvc-constructing-urlhelper/</link>
		<comments>http://jwwishart.wordpress.com/2010/06/21/asp-net-mvc-constructing-urlhelper/#comments</comments>
		<pubDate>Mon, 21 Jun 2010 03:43:25 +0000</pubDate>
		<dc:creator>jwwishart</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[ASP.NET MVC]]></category>

		<guid isPermaLink="false">https://jwwishart.wordpress.com/2010/06/21/asp-net-mvc-constructing-urlhelper/</guid>
		<description><![CDATA[I needed to have a class external to the controller’s and views that could generate a correctly formed Url using the UrlHelper. I found this question on Stackoverflow which helped me with a solution. The solution was as follows: HttpContextWrapper httpContextWrapper = &#160;&#160;&#160; new HttpContextWrapper(HttpContext.Current); UrlHelper urlHelper = new UrlHelper( &#160;&#160;&#160; new RequestContext( &#160;&#160;&#160;&#160;&#160;&#160;&#160; httpContextWrapper,&#160; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jwwishart.wordpress.com&amp;blog=7020771&amp;post=549&amp;subd=jwwishart&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I needed to have a class external to the controller’s and views that could generate a correctly formed Url using the UrlHelper.</p>
<p>I found <a href="http://stackoverflow.com/questions/2031995/call-urlhelper-in-models-in-asp-net-mvc/2032257#2032257" target="_blank">this</a> question on Stackoverflow which helped me with a solution. The solution was as follows:</p>
<p><font color="#0000a0" size="2" face="Courier New">HttpContextWrapper httpContextWrapper =      <br />&#160;&#160;&#160; new HttpContextWrapper(HttpContext.Current);</font></p>
<p><font color="#0000a0" size="2" face="Courier New">UrlHelper urlHelper = new UrlHelper(     <br />&#160;&#160;&#160; new RequestContext(      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; httpContextWrapper,&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; new RouteData()));</font></p>
<p>I previously got confused about the RouteData object, but it seems (unless I’m mistaken) to essentially be route values, which in this case i don’t need… Not sure on that though! </p>
<p>As constructed above, the UrlHelper is able to take the RequestContext and get all the registered routes and therefore generate a correctly structured url when you call Action etc. </p>
<br /> Tagged: <a href='http://jwwishart.wordpress.com/tag/aspnet/'>ASP.NET</a>, <a href='http://jwwishart.wordpress.com/tag/asp-net-mvc/'>ASP.NET MVC</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jwwishart.wordpress.com/549/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jwwishart.wordpress.com/549/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jwwishart.wordpress.com/549/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jwwishart.wordpress.com/549/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jwwishart.wordpress.com/549/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jwwishart.wordpress.com/549/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jwwishart.wordpress.com/549/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jwwishart.wordpress.com/549/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jwwishart.wordpress.com/549/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jwwishart.wordpress.com/549/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jwwishart.wordpress.com/549/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jwwishart.wordpress.com/549/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jwwishart.wordpress.com/549/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jwwishart.wordpress.com/549/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jwwishart.wordpress.com&amp;blog=7020771&amp;post=549&amp;subd=jwwishart&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jwwishart.wordpress.com/2010/06/21/asp-net-mvc-constructing-urlhelper/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/558f77d275c93699af047641f735898b?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">jwwishart</media:title>
		</media:content>
	</item>
		<item>
		<title>JavaScript: calling a method and changing what &#8220;this&#8221; means</title>
		<link>http://jwwishart.wordpress.com/2010/06/17/javascript-calling-a-method-and-changing-what-this-means/</link>
		<comments>http://jwwishart.wordpress.com/2010/06/17/javascript-calling-a-method-and-changing-what-this-means/#comments</comments>
		<pubDate>Thu, 17 Jun 2010 05:56:01 +0000</pubDate>
		<dc:creator>jwwishart</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">https://jwwishart.wordpress.com/2010/06/17/javascript-calling-a-method-and-changing-what-this-means/</guid>
		<description><![CDATA[This post has been moved here Tagged: JavaScript<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jwwishart.wordpress.com&amp;blog=7020771&amp;post=548&amp;subd=jwwishart&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This post has been moved <a title="here" href="http://jwwishart.blogspot.com/2011/03/javascript-changing-what-this-means.html">here</a></p>
<br /> Tagged: <a href='http://jwwishart.wordpress.com/tag/javascript/'>JavaScript</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jwwishart.wordpress.com/548/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jwwishart.wordpress.com/548/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jwwishart.wordpress.com/548/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jwwishart.wordpress.com/548/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jwwishart.wordpress.com/548/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jwwishart.wordpress.com/548/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jwwishart.wordpress.com/548/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jwwishart.wordpress.com/548/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jwwishart.wordpress.com/548/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jwwishart.wordpress.com/548/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jwwishart.wordpress.com/548/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jwwishart.wordpress.com/548/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jwwishart.wordpress.com/548/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jwwishart.wordpress.com/548/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jwwishart.wordpress.com&amp;blog=7020771&amp;post=548&amp;subd=jwwishart&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jwwishart.wordpress.com/2010/06/17/javascript-calling-a-method-and-changing-what-this-means/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/558f77d275c93699af047641f735898b?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">jwwishart</media:title>
		</media:content>
	</item>
		<item>
		<title>jQuery.ui dialog: adding classe to buttons</title>
		<link>http://jwwishart.wordpress.com/2010/06/17/jquery-ui-dialog-adding-classe-to-buttons/</link>
		<comments>http://jwwishart.wordpress.com/2010/06/17/jquery-ui-dialog-adding-classe-to-buttons/#comments</comments>
		<pubDate>Wed, 16 Jun 2010 23:12:35 +0000</pubDate>
		<dc:creator>jwwishart</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[jquery.ui]]></category>

		<guid isPermaLink="false">https://jwwishart.wordpress.com/2010/06/17/jquery-ui-dialog-adding-classe-to-buttons/</guid>
		<description><![CDATA[Had this question come up at work and found a good answer on stackoverflow here. It basically involves handling the open event, finding the buttons and applying a style to them. Firstly a simple bit of html: &#60;a id=&#34;to_dialog_a&#34; href=&#34;javascript:void(0);&#34;&#62;click me&#60;/a&#62; &#60;div id=&#34;to_dialog&#34; style=&#34;border: 1px solid gold; background-color: #336699&#34;&#62;&#60;/div&#62; And here is some javascript to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jwwishart.wordpress.com&amp;blog=7020771&amp;post=546&amp;subd=jwwishart&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Had this question come up at work and found a good answer on stackoverflow <a href="http://stackoverflow.com/questions/1828010/apply-css-to-jquery-dialog-buttons" target="_blank">here</a>. It basically involves handling the open event, finding the buttons and applying a style to them.</p>
<p>Firstly a simple bit of html:</p>
<blockquote><p><font color="#0000a0" size="2" face="Courier New">&lt;a id=&quot;to_dialog_a&quot; href=&quot;javascript:void(0);&quot;&gt;click me&lt;/a&gt;        <br />&lt;div id=&quot;to_dialog&quot; style=&quot;border: 1px solid gold; background-color: #336699&quot;&gt;&lt;/div&gt;</font></p>
</blockquote>
<p>And here is some javascript to wire it up. In the example below I have done things a little differently as the application we are developing needs to be localized; so i used the button index.</p>
<p><font color="#ff0000"><strong>Note:</strong> This example doesn’t have any jquery.ui css to deal with.</font></p>
<p>A whole example html file is located <a href="http://codepaste.net/yeqibu" target="_blank">here</a></p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; <font color="#0000a0" size="2" face="Courier New">$(document).ready(function() {      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&quot;#to_dialog_a&quot;).click(function() {       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&quot;#to_dialog&quot;).dialog(&quot;open&quot;);       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&quot;#to_dialog&quot;).dialog({       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; autoOpen: false,       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; buttons : {       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ok: function() {       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; alert(&quot;you clicked me!&quot;);       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; },       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; what: function() {       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; alert(&quot;you clicked me!&quot;);       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; },       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; cancel: function() {       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; alert(&quot;you clicked me!&quot;);       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ,       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; open: function(event, ui) {       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // Get the dialog       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var dialog = $(event.target).parents(&quot;.ui-dialog.ui-widget&quot;); </font></p>
<p><font color="#0000a0" size="2" face="Courier New">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // Get the buttons      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var buttons = dialog.find(&quot;.ui-dialog-buttonpane&quot;).find(&quot;button&quot;); </font></p>
<p><font color="#0000a0" size="2" face="Courier New">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var okButton = buttons[0];      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var whatButton = buttons[1];       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var cancelButton = buttons[2]; </font></p>
<p><font color="#0000a0" size="2" face="Courier New">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // Add class to the buttons      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // Add class to the buttons       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(okButton).addClass(&quot;primary&quot;);       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(whatButton).addClass(&quot;secondary&quot;);       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(cancelButton).addClass(&quot;thirdary&quot;);       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; });</font></p>
<br /> Tagged: <a href='http://jwwishart.wordpress.com/tag/css/'>CSS</a>, <a href='http://jwwishart.wordpress.com/tag/jquery/'>JQuery</a>, <a href='http://jwwishart.wordpress.com/tag/jquery-ui/'>jquery.ui</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jwwishart.wordpress.com/546/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jwwishart.wordpress.com/546/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jwwishart.wordpress.com/546/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jwwishart.wordpress.com/546/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jwwishart.wordpress.com/546/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jwwishart.wordpress.com/546/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jwwishart.wordpress.com/546/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jwwishart.wordpress.com/546/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jwwishart.wordpress.com/546/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jwwishart.wordpress.com/546/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jwwishart.wordpress.com/546/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jwwishart.wordpress.com/546/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jwwishart.wordpress.com/546/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jwwishart.wordpress.com/546/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jwwishart.wordpress.com&amp;blog=7020771&amp;post=546&amp;subd=jwwishart&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jwwishart.wordpress.com/2010/06/17/jquery-ui-dialog-adding-classe-to-buttons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/558f77d275c93699af047641f735898b?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">jwwishart</media:title>
		</media:content>
	</item>
		<item>
		<title>Send Secure Email Via Gmail in Ruby 1.8.7</title>
		<link>http://jwwishart.wordpress.com/2010/06/05/send-secure-email-via-gmail-in-ruby-1-8-7/</link>
		<comments>http://jwwishart.wordpress.com/2010/06/05/send-secure-email-via-gmail-in-ruby-1-8-7/#comments</comments>
		<pubDate>Sat, 05 Jun 2010 13:35:15 +0000</pubDate>
		<dc:creator>jwwishart</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://jwwishart.wordpress.com/?p=538</guid>
		<description><![CDATA[This post has been moved here Tagged: Ruby<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jwwishart.wordpress.com&amp;blog=7020771&amp;post=538&amp;subd=jwwishart&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This post has been moved <a href="http://jwwishart.blogspot.com/2011/03/send-secure-email-via-gmail-in-ruby-187.html">here</a></p>
<br /> Tagged: <a href='http://jwwishart.wordpress.com/tag/ruby/'>Ruby</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jwwishart.wordpress.com/538/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jwwishart.wordpress.com/538/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jwwishart.wordpress.com/538/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jwwishart.wordpress.com/538/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jwwishart.wordpress.com/538/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jwwishart.wordpress.com/538/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jwwishart.wordpress.com/538/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jwwishart.wordpress.com/538/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jwwishart.wordpress.com/538/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jwwishart.wordpress.com/538/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jwwishart.wordpress.com/538/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jwwishart.wordpress.com/538/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jwwishart.wordpress.com/538/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jwwishart.wordpress.com/538/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jwwishart.wordpress.com&amp;blog=7020771&amp;post=538&amp;subd=jwwishart&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jwwishart.wordpress.com/2010/06/05/send-secure-email-via-gmail-in-ruby-1-8-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/558f77d275c93699af047641f735898b?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">jwwishart</media:title>
		</media:content>
	</item>
		<item>
		<title>Disabling selection of a section</title>
		<link>http://jwwishart.wordpress.com/2010/05/31/disabling-selection-of-a-section/</link>
		<comments>http://jwwishart.wordpress.com/2010/05/31/disabling-selection-of-a-section/#comments</comments>
		<pubDate>Sun, 30 May 2010 21:52:59 +0000</pubDate>
		<dc:creator>jwwishart</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">https://jwwishart.wordpress.com/2010/05/31/disabling-selection-of-a-section/</guid>
		<description><![CDATA[Found this little gem while trying to prevent selection behind the jQuery.treeview controll. onselectstart=&#34;return false;&#34; style=&#34;-moz-user-select: none;&#34; This worked for me on Chrome, IE 8, and FireFox 3.6. Found this tidbit here. Update: 2010-07-05 – Found this interesting extension to jQuery also. Note the replies also as they may be of use. Tagged: CSS, HTML, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jwwishart.wordpress.com&amp;blog=7020771&amp;post=534&amp;subd=jwwishart&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Found this little gem while trying to prevent selection behind the jQuery.treeview controll.</p>
<p><font color="#008040" size="2" face="Courier">onselectstart=&quot;return false;&quot; style=&quot;-moz-user-select: none;&quot;</font></p>
<p>This worked for me on Chrome, IE 8, and FireFox 3.6. </p>
<p>Found this tidbit <a href="http://www.forums.hscripts.com/viewtopic.php?f=4&amp;t=3293#p6989" target="_blank">here</a>.</p>
<p>Update: 2010-07-05 – Found <a href="http://aleembawany.com/2009/01/20/disable-selction-on-menu-items-with-this-jquery-extension/" target="_blank">this</a> interesting extension to jQuery also. Note the replies also as they may be of use.</p>
<br /> Tagged: <a href='http://jwwishart.wordpress.com/tag/css/'>CSS</a>, <a href='http://jwwishart.wordpress.com/tag/html/'>HTML</a>, <a href='http://jwwishart.wordpress.com/tag/javascript/'>JavaScript</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jwwishart.wordpress.com/534/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jwwishart.wordpress.com/534/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jwwishart.wordpress.com/534/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jwwishart.wordpress.com/534/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jwwishart.wordpress.com/534/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jwwishart.wordpress.com/534/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jwwishart.wordpress.com/534/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jwwishart.wordpress.com/534/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jwwishart.wordpress.com/534/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jwwishart.wordpress.com/534/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jwwishart.wordpress.com/534/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jwwishart.wordpress.com/534/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jwwishart.wordpress.com/534/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jwwishart.wordpress.com/534/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jwwishart.wordpress.com&amp;blog=7020771&amp;post=534&amp;subd=jwwishart&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jwwishart.wordpress.com/2010/05/31/disabling-selection-of-a-section/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/558f77d275c93699af047641f735898b?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">jwwishart</media:title>
		</media:content>
	</item>
		<item>
		<title>Turn TextArea Resize off on Google Chrome</title>
		<link>http://jwwishart.wordpress.com/2010/05/24/turn-textarea-resize-off-on-google-chrome/</link>
		<comments>http://jwwishart.wordpress.com/2010/05/24/turn-textarea-resize-off-on-google-chrome/#comments</comments>
		<pubDate>Mon, 24 May 2010 06:17:44 +0000</pubDate>
		<dc:creator>jwwishart</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://jwwishart.wordpress.com/2010/05/24/turn-textarea-resize-off-on-google-chrome/</guid>
		<description><![CDATA[Very simple&#8230; To turn this off just go: textarea {resize: none} Tagged: CSS<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jwwishart.wordpress.com&amp;blog=7020771&amp;post=533&amp;subd=jwwishart&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Very simple&#8230; To turn this off just go:</p>
<p>textarea {resize: none}</p>
<br /> Tagged: <a href='http://jwwishart.wordpress.com/tag/css/'>CSS</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jwwishart.wordpress.com/533/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jwwishart.wordpress.com/533/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jwwishart.wordpress.com/533/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jwwishart.wordpress.com/533/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jwwishart.wordpress.com/533/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jwwishart.wordpress.com/533/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jwwishart.wordpress.com/533/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jwwishart.wordpress.com/533/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jwwishart.wordpress.com/533/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jwwishart.wordpress.com/533/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jwwishart.wordpress.com/533/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jwwishart.wordpress.com/533/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jwwishart.wordpress.com/533/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jwwishart.wordpress.com/533/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jwwishart.wordpress.com&amp;blog=7020771&amp;post=533&amp;subd=jwwishart&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jwwishart.wordpress.com/2010/05/24/turn-textarea-resize-off-on-google-chrome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/558f77d275c93699af047641f735898b?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">jwwishart</media:title>
		</media:content>
	</item>
		<item>
		<title>Easily Edit Grub files in Ubuntu</title>
		<link>http://jwwishart.wordpress.com/2010/04/13/easily-edit-grub-files-in-ubuntu/</link>
		<comments>http://jwwishart.wordpress.com/2010/04/13/easily-edit-grub-files-in-ubuntu/#comments</comments>
		<pubDate>Tue, 13 Apr 2010 03:39:01 +0000</pubDate>
		<dc:creator>jwwishart</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://jwwishart.wordpress.com/2010/04/13/easily-edit-grub-files-in-ubuntu/</guid>
		<description><![CDATA[sudo apt-get install startupmanager System &#62; Administration &#62; StartUp-Manager gives you a GUI for editing the Grub configuration Tagged: linux<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jwwishart.wordpress.com&amp;blog=7020771&amp;post=529&amp;subd=jwwishart&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>sudo apt-get install startupmanager</p>
<p>System &gt; Administration &gt; StartUp-Manager gives you a GUI for editing the Grub configuration</p>
<br /> Tagged: <a href='http://jwwishart.wordpress.com/tag/linux/'>linux</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jwwishart.wordpress.com/529/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jwwishart.wordpress.com/529/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jwwishart.wordpress.com/529/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jwwishart.wordpress.com/529/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jwwishart.wordpress.com/529/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jwwishart.wordpress.com/529/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jwwishart.wordpress.com/529/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jwwishart.wordpress.com/529/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jwwishart.wordpress.com/529/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jwwishart.wordpress.com/529/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jwwishart.wordpress.com/529/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jwwishart.wordpress.com/529/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jwwishart.wordpress.com/529/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jwwishart.wordpress.com/529/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jwwishart.wordpress.com&amp;blog=7020771&amp;post=529&amp;subd=jwwishart&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jwwishart.wordpress.com/2010/04/13/easily-edit-grub-files-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/558f77d275c93699af047641f735898b?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">jwwishart</media:title>
		</media:content>
	</item>
		<item>
		<title>Open gedit or other program on remote computer using ssh in Ubuntu/Linux</title>
		<link>http://jwwishart.wordpress.com/2010/04/08/open-gedit-or-other-program-on-remote-computer-using-ssh-in-ubuntulinux/</link>
		<comments>http://jwwishart.wordpress.com/2010/04/08/open-gedit-or-other-program-on-remote-computer-using-ssh-in-ubuntulinux/#comments</comments>
		<pubDate>Thu, 08 Apr 2010 12:33:42 +0000</pubDate>
		<dc:creator>jwwishart</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[linux ubuntu]]></category>

		<guid isPermaLink="false">http://jwwishart.wordpress.com/2010/04/08/open-gedit-or-other-program-on-remote-computer-using-ssh-in-ubuntulinux/</guid>
		<description><![CDATA[Login to server using &#8220;ssh -X&#8221; &#8230; ( not with a made up ip address though ) ) ssh -X 196.139.12.32 Open the application on the remote computer. For example DISPLAY=:0.0 gedit junk.txt Source Tagged: linux ubuntu<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jwwishart.wordpress.com&amp;blog=7020771&amp;post=525&amp;subd=jwwishart&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Login to server using &#8220;ssh -X&#8221; &#8230; ( not with a made up ip address though <img src='http://s1.wp.com/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> ) )<br />
<span style="color:#0000ff;"> </span></p>
<pre>ssh -X 196.139.12.32</pre>
<p>Open the application on the remote computer. For example<br />
<span style="color:#0000ff;"> </span></p>
<pre>DISPLAY=:0.0 gedit junk.txt</pre>
<p><a href="http://ubuntuforums.org/showthread.php?t=271342">Source</a></p>
<br /> Tagged: <a href='http://jwwishart.wordpress.com/tag/linux-ubuntu/'>linux ubuntu</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jwwishart.wordpress.com/525/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jwwishart.wordpress.com/525/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jwwishart.wordpress.com/525/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jwwishart.wordpress.com/525/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jwwishart.wordpress.com/525/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jwwishart.wordpress.com/525/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jwwishart.wordpress.com/525/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jwwishart.wordpress.com/525/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jwwishart.wordpress.com/525/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jwwishart.wordpress.com/525/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jwwishart.wordpress.com/525/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jwwishart.wordpress.com/525/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jwwishart.wordpress.com/525/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jwwishart.wordpress.com/525/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jwwishart.wordpress.com&amp;blog=7020771&amp;post=525&amp;subd=jwwishart&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jwwishart.wordpress.com/2010/04/08/open-gedit-or-other-program-on-remote-computer-using-ssh-in-ubuntulinux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/558f77d275c93699af047641f735898b?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">jwwishart</media:title>
		</media:content>
	</item>
		<item>
		<title>Upgrade to MVC 2 causes Unable to cast object of type &#8216;System.Web.UI.Triplet&#8217; to type &#8216;System.Object[]&#8216; relating to AntiForgeryToken</title>
		<link>http://jwwishart.wordpress.com/2010/03/24/upgrade-to-mvc-2-causes-unable-to-cast-object-of-type-system-web-ui-triplet-to-type-system-object-relating-to-antiforgerytoken/</link>
		<comments>http://jwwishart.wordpress.com/2010/03/24/upgrade-to-mvc-2-causes-unable-to-cast-object-of-type-system-web-ui-triplet-to-type-system-object-relating-to-antiforgerytoken/#comments</comments>
		<pubDate>Tue, 23 Mar 2010 21:04:59 +0000</pubDate>
		<dc:creator>jwwishart</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ASP.NET MVC]]></category>

		<guid isPermaLink="false">http://jwwishart.wordpress.com/2010/03/24/upgrade-to-mvc-2-causes-unable-to-cast-object-of-type-system-web-ui-triplet-to-type-system-object-relating-to-antiforgerytoken/</guid>
		<description><![CDATA[This has something to do with the way that MVC 1 and MVC 2 generate anti forgery tokens. It seems they might do things differently. The solution is to clear your browser cookies. James Crowley has a bit of information on it (first link in resources below!) Resources http://weblogs.asp.net/james_crowley/archive/2010/03/18/beware-upgrade-to-asp-net-mvc-2-0-with-care-if-you-use-antiforgerytoken.aspx http://n2cms.codeplex.com/Thread/View.aspx?ThreadId=199385 Tagged: ASP.NET MVC<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jwwishart.wordpress.com&amp;blog=7020771&amp;post=524&amp;subd=jwwishart&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This has something to do with the way that MVC 1 and MVC 2 generate anti forgery tokens. It seems they might do things differently.</p>
<p>The solution is to clear your browser cookies.</p>
<p>James Crowley has a bit of information on it (first link in resources below!)</p>
<p><strong>Resources</strong></p>
<p><a href="http://weblogs.asp.net/james_crowley/archive/2010/03/18/beware-upgrade-to-asp-net-mvc-2-0-with-care-if-you-use-antiforgerytoken.aspx">http://weblogs.asp.net/james_crowley/archive/2010/03/18/beware-upgrade-to-asp-net-mvc-2-0-with-care-if-you-use-antiforgerytoken.aspx</a></p>
<p><a href="http://n2cms.codeplex.com/Thread/View.aspx?ThreadId=199385">http://n2cms.codeplex.com/Thread/View.aspx?ThreadId=199385</a></p>
<br /> Tagged: <a href='http://jwwishart.wordpress.com/tag/asp-net-mvc/'>ASP.NET MVC</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jwwishart.wordpress.com/524/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jwwishart.wordpress.com/524/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jwwishart.wordpress.com/524/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jwwishart.wordpress.com/524/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jwwishart.wordpress.com/524/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jwwishart.wordpress.com/524/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jwwishart.wordpress.com/524/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jwwishart.wordpress.com/524/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jwwishart.wordpress.com/524/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jwwishart.wordpress.com/524/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jwwishart.wordpress.com/524/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jwwishart.wordpress.com/524/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jwwishart.wordpress.com/524/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jwwishart.wordpress.com/524/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jwwishart.wordpress.com&amp;blog=7020771&amp;post=524&amp;subd=jwwishart&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jwwishart.wordpress.com/2010/03/24/upgrade-to-mvc-2-causes-unable-to-cast-object-of-type-system-web-ui-triplet-to-type-system-object-relating-to-antiforgerytoken/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/558f77d275c93699af047641f735898b?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">jwwishart</media:title>
		</media:content>
	</item>
		<item>
		<title>Getting the ResourceManager from a strongly typed resource file</title>
		<link>http://jwwishart.wordpress.com/2010/03/23/getting-the-resourcemanager-from-a-strongly-typed-resource-file/</link>
		<comments>http://jwwishart.wordpress.com/2010/03/23/getting-the-resourcemanager-from-a-strongly-typed-resource-file/#comments</comments>
		<pubDate>Tue, 23 Mar 2010 03:30:41 +0000</pubDate>
		<dc:creator>jwwishart</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[.NET]]></category>

		<guid isPermaLink="false">http://jwwishart.wordpress.com/2010/03/23/getting-the-resourcemanager-from-a-strongly-typed-resource-file/</guid>
		<description><![CDATA[I had a little bit of difficulty messing around getting the ResourceManager the class generated when making a resource file (resx). I wanted to get the value of something using a string and do it by accessing the ResourceManager property and calling the GetString() method myself. This is what i used to get the resource [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jwwishart.wordpress.com&amp;blog=7020771&amp;post=523&amp;subd=jwwishart&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I had a little bit of difficulty messing around getting the ResourceManager the class generated when making a resource file (resx). I wanted to get the value of something using a string and do it by accessing the ResourceManager property and calling the GetString() method myself. This is what i used to get the resource manager</p>
<p>Note you will need to make the resource file public if referencing as resource file in another assembly.</p>
<p><font color="#0000a0" size="2" face="Courier New">// Get the ResourceManager on the type     <br />var resourceManager = (ResourceManager)ResourceType.GetProperty(</font><font color="#0000a0" size="2" face="Courier New">&quot;ResourceManager&quot;,      <br />&#160;&#160;&#160; System.Reflection.BindingFlags.Public | </font><font color="#0000a0" size="2" face="Courier New">System.Reflection.BindingFlags.Static).GetValue(ResourceType, null); </font></p>
<p><font color="#0000a0" size="2" face="Courier New">// Get information on the getstring method     <br />return resourceManager.GetString(_resourceKey, CultureInfo.CurrentCulture);</font></p>
<br /> Tagged: <a href='http://jwwishart.wordpress.com/tag/net/'>.NET</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jwwishart.wordpress.com/523/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jwwishart.wordpress.com/523/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jwwishart.wordpress.com/523/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jwwishart.wordpress.com/523/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jwwishart.wordpress.com/523/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jwwishart.wordpress.com/523/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jwwishart.wordpress.com/523/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jwwishart.wordpress.com/523/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jwwishart.wordpress.com/523/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jwwishart.wordpress.com/523/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jwwishart.wordpress.com/523/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jwwishart.wordpress.com/523/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jwwishart.wordpress.com/523/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jwwishart.wordpress.com/523/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jwwishart.wordpress.com&amp;blog=7020771&amp;post=523&amp;subd=jwwishart&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jwwishart.wordpress.com/2010/03/23/getting-the-resourcemanager-from-a-strongly-typed-resource-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/558f77d275c93699af047641f735898b?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">jwwishart</media:title>
		</media:content>
	</item>
		<item>
		<title>MVC 2 Strongly Typed Helper Method</title>
		<link>http://jwwishart.wordpress.com/2010/03/23/mvc-2-strongly-typed-helper-method/</link>
		<comments>http://jwwishart.wordpress.com/2010/03/23/mvc-2-strongly-typed-helper-method/#comments</comments>
		<pubDate>Mon, 22 Mar 2010 23:38:05 +0000</pubDate>
		<dc:creator>jwwishart</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ASP.NET MVC]]></category>

		<guid isPermaLink="false">http://jwwishart.wordpress.com/2010/03/23/mvc-2-strongly-typed-helper-method/</guid>
		<description><![CDATA[Some quick information about generating a strongly types helper method in MVC 2: Covers: An Expression as a method argument Getting a valid name for the form field Getting type information about the property specified on the view. An Expression as a method argument The Below gives a basic example of a strongly types helper [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jwwishart.wordpress.com&amp;blog=7020771&amp;post=522&amp;subd=jwwishart&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Some quick information about generating a strongly types helper method in MVC 2: Covers:</p>
<ul>
<li>An Expression as a method argument</li>
<li>Getting a valid name for the form field</li>
<li>Getting type information about the property specified on the view.</li>
</ul>
<h3>An Expression as a method argument</h3>
<p>The Below gives a basic example of a strongly types helper method definition</p>
<p>public static MvcHtmlString MyHelperFor&lt;TModel, TProperty&gt;(    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; this HtmlHelper&lt;TModel&gt; htmlHelper,     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Expression&lt;Func&lt;TModel, TProperty&gt;&gt; expression) </p>
<p>{    <br />}</p>
<h3>Getting a valid name for the form field</h3>
<p>Say we put this into the view</p>
<pre>&lt;%= Html.EnumDropDownFor(Model =&gt; Model.ContactDetails.Phone.Type) %&gt;</pre>
<p>We can generate a form field name like this:</p>
<pre>var fullPropertyPath =
    htmlHelper.ViewContext.ViewData.TemplateInfo.GetFullHtmlFieldName(
        ExpressionHelper.GetExpressionText(expression)); </pre>
<p>This would result in fullPropertyPath being “ContactDetails.Phone.Type”. We can then use this as the name attribute on the form field we render.</p>
<h3>Getting type information about the property specified on the view.</h3>
<p>We can also get meta data about the type that the …Phone.Type property get’s/sets using ModelMetadata class’s FromLambdaExpression method like this:</p>
<pre>var modelMetadata = ModelMetadata.FromLambdaExpression&lt;TModel, TProperty&gt;(
    expression, htmlHelper.ViewData);

var propertyType = modelMetadata.ModelType;</pre>
<br /> Tagged: <a href='http://jwwishart.wordpress.com/tag/asp-net-mvc/'>ASP.NET MVC</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jwwishart.wordpress.com/522/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jwwishart.wordpress.com/522/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jwwishart.wordpress.com/522/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jwwishart.wordpress.com/522/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jwwishart.wordpress.com/522/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jwwishart.wordpress.com/522/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jwwishart.wordpress.com/522/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jwwishart.wordpress.com/522/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jwwishart.wordpress.com/522/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jwwishart.wordpress.com/522/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jwwishart.wordpress.com/522/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jwwishart.wordpress.com/522/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jwwishart.wordpress.com/522/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jwwishart.wordpress.com/522/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jwwishart.wordpress.com&amp;blog=7020771&amp;post=522&amp;subd=jwwishart&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jwwishart.wordpress.com/2010/03/23/mvc-2-strongly-typed-helper-method/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/558f77d275c93699af047641f735898b?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">jwwishart</media:title>
		</media:content>
	</item>
		<item>
		<title>Custom Server and Client Side Required Validator in MVC 2 using jQuery.validate</title>
		<link>http://jwwishart.wordpress.com/2010/03/22/custom-server-and-client-side-required-validator-in-mvc-2-using-jquery-validate/</link>
		<comments>http://jwwishart.wordpress.com/2010/03/22/custom-server-and-client-side-required-validator-in-mvc-2-using-jquery-validate/#comments</comments>
		<pubDate>Sun, 21 Mar 2010 22:28:23 +0000</pubDate>
		<dc:creator>jwwishart</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ASP.NET MVC]]></category>

		<guid isPermaLink="false">http://jwwishart.wordpress.com/2010/03/22/custom-server-and-client-side-required-validator-in-mvc-2-using-jquery-validate/</guid>
		<description><![CDATA[This post has been moved here. Tagged: ASP.NET MVC<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jwwishart.wordpress.com&amp;blog=7020771&amp;post=517&amp;subd=jwwishart&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This post has been moved <a href="http://jwwishart.blogspot.com/2011/03/custom-server-and-client-side-required.html">here</a>.</p>
<br /> Tagged: <a href='http://jwwishart.wordpress.com/tag/asp-net-mvc/'>ASP.NET MVC</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jwwishart.wordpress.com/517/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jwwishart.wordpress.com/517/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jwwishart.wordpress.com/517/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jwwishart.wordpress.com/517/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jwwishart.wordpress.com/517/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jwwishart.wordpress.com/517/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jwwishart.wordpress.com/517/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jwwishart.wordpress.com/517/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jwwishart.wordpress.com/517/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jwwishart.wordpress.com/517/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jwwishart.wordpress.com/517/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jwwishart.wordpress.com/517/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jwwishart.wordpress.com/517/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jwwishart.wordpress.com/517/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jwwishart.wordpress.com&amp;blog=7020771&amp;post=517&amp;subd=jwwishart&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jwwishart.wordpress.com/2010/03/22/custom-server-and-client-side-required-validator-in-mvc-2-using-jquery-validate/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/558f77d275c93699af047641f735898b?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">jwwishart</media:title>
		</media:content>
	</item>
		<item>
		<title>jQuery.validate &#8211; Setting default ignore rules</title>
		<link>http://jwwishart.wordpress.com/2010/03/10/jquery-validate-setting-default-ignore-rules/</link>
		<comments>http://jwwishart.wordpress.com/2010/03/10/jquery-validate-setting-default-ignore-rules/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 04:57:33 +0000</pubDate>
		<dc:creator>jwwishart</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[errors]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[plugins]]></category>

		<guid isPermaLink="false">http://jwwishart.wordpress.com/2010/03/10/jquery-validate-setting-default-ignore-rules/</guid>
		<description><![CDATA[This post has been moved here. Tagged: errors, JQuery, plugins<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jwwishart.wordpress.com&amp;blog=7020771&amp;post=514&amp;subd=jwwishart&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This post has been moved <a href="http://jwwishart.blogspot.com/2011/03/jqueryvalidate-setting-default-ignore.html">here</a>.</p>
<br /> Tagged: <a href='http://jwwishart.wordpress.com/tag/errors/'>errors</a>, <a href='http://jwwishart.wordpress.com/tag/jquery/'>JQuery</a>, <a href='http://jwwishart.wordpress.com/tag/plugins/'>plugins</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jwwishart.wordpress.com/514/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jwwishart.wordpress.com/514/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jwwishart.wordpress.com/514/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jwwishart.wordpress.com/514/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jwwishart.wordpress.com/514/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jwwishart.wordpress.com/514/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jwwishart.wordpress.com/514/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jwwishart.wordpress.com/514/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jwwishart.wordpress.com/514/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jwwishart.wordpress.com/514/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jwwishart.wordpress.com/514/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jwwishart.wordpress.com/514/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jwwishart.wordpress.com/514/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jwwishart.wordpress.com/514/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jwwishart.wordpress.com&amp;blog=7020771&amp;post=514&amp;subd=jwwishart&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jwwishart.wordpress.com/2010/03/10/jquery-validate-setting-default-ignore-rules/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/558f77d275c93699af047641f735898b?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">jwwishart</media:title>
		</media:content>
	</item>
		<item>
		<title>jQuery.validate Custom Methods</title>
		<link>http://jwwishart.wordpress.com/2010/03/10/jquery-validate-custom-methods/</link>
		<comments>http://jwwishart.wordpress.com/2010/03/10/jquery-validate-custom-methods/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 23:51:07 +0000</pubDate>
		<dc:creator>jwwishart</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[plugins]]></category>

		<guid isPermaLink="false">http://jwwishart.wordpress.com/2010/03/10/jquery-validate-custom-methods/</guid>
		<description><![CDATA[We’ve been looking at validating a client side Url using the jQuery.validate (doc) plugin… and our rules were: The field is required. You have to put the Url in. Url must be an absolute path Url must accept “http://localhost” style uri Url must accept ip addresses (E.g. “http://10.0.0.12”) We wanted to use a custom class [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jwwishart.wordpress.com&amp;blog=7020771&amp;post=511&amp;subd=jwwishart&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>We’ve been looking at validating a client side Url using the <a href="http://bassistance.de/jquery-plugins/jquery-plugin-validation/" target="_blank">jQuery.validate</a> (<a href="http://docs.jquery.com/Plugins/Validation" target="_blank">doc</a>) plugin… and our rules were:</p>
<ul>
<li>The field is required. You have to put the Url in.</li>
<li>Url must be an absolute path</li>
<li>Url must accept “http://localhost” style uri</li>
<li>Url must accept ip addresses (E.g. “http://10.0.0.12”)</li>
<li>We wanted to use a custom class called requiredUrl without adding custom rules to the validate method.</li>
<li>We want the code seperate from everything else, meaning we wanted to put the code in a different file, in other words, we didn’t want to polute the View (ASP.NET MVC) with rules nor alter the jquery.validate.js file directly.</li>
</ul>
<p>The validate plugin allows you to add custom methods which allows the addition of a method that can be executed to validate a fields value… The method takes 3 parameters:</p>
<ol>
<li>The name of the method; in our case it is “requiredUrl”</li>
<li>The function to do the validation… Returns true or false and takes 3 parameters: the value of the field, the element itself, and a params argument (not really sure why on this last one… haven’t looked it up as I’ve not had any need for it yet.)</li>
<li>The third parameter is the message to show if the value is invalid.</li>
</ol>
<p>Here is the requiredUrl method added to the validate plugin:</p>
<p><font color="#0000a0" size="2" face="Courier">jQuery.validator.addMethod(&quot;requiredUrl&quot;, function(value, element, param) {     <br />&#160;&#160;&#160; var expression = /^(http:\/\/|https:\/\/)?((([\w-]+\.)+[\w-]+)|localhost)(\/[\w- .\/?%&amp;=]*)?/i;      <br />&#160;&#160;&#160; return expression.test(value);      <br />}, jQuery.validator.messages.url);</font></p>
<p>Notice the following:</p>
<ul>
<li>The validation Regex requires something to be entered. Otherwise you would normally go as follows to also validate whether the field was required.</li>
</ul>
<p><font size="2" face="couri"><font color="#0000a0">&#160;&#160;&#160;&#160; <font face="Courier">return this.optional(element) || expression.test(value);</font></font></font></p>
<ul>
<li>The last parameter is using the default Url validation message (jQuery.validator.messages.url)</li>
</ul>
<p>With the following form field…</p>
<p><font color="#0000a0" size="2" face="Courier">&lt;input type=”text” class=”requiredUrl” /&gt;</font></p>
<p>…you could use the code as follows in your view:</p>
<p><font color="#0000a0" size="2" face="Courier">$(document).ready(function() {     <br />&#160;&#160;&#160; $(&quot;#ServerForm&quot;).validate({      <br /></font><font color="#0000a0"><font size="2"><font face="Courier"><strong><font color="#8000ff">&#160;&#160;&#160; rules: {             <br />&#160;&#160;&#160;&#160;&#160;&#160; webService: {              <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; requiredUrl: true              <br />&#160;&#160;&#160;&#160;&#160;&#160; }              <br />&#160;&#160;&#160; }</font>            <br /></strong>&#160;&#160;&#160; });          <br />});</font></font></font>&#160;&#160; </p>
<p>The rule being added is for the form field with the Name of “webService” and the “requiredUrl” method is activated for that field, or in other words, this is the name of the method to execute when validation occurs for this field.</p>
<p>As already stated, I didn’t want to add this to the View so I wanted to just do the validation like this…</p>
<p><font color="#0000a0" size="2" face="Courier">$(document).ready(function() {     <br />&#160;&#160;&#160; $(&quot;#ServerForm&quot;).validate(</font><font color="#0000a0" size="2" face="Courier">);     <br />});</font>&#160;&#160; </p>
<p>To do that we need to register the css class “requiredUrl” with the validate plugin and tell it to use the “requiredUrl” method we registered earlier. I figure out you could do it like this:</p>
<p><font color="#0000a0" size="2" face="Courier">jQuery.validator.classRuleSettings.requiredUrl = {requiredUrl: true};</font></p>
<p>The first “requiredUrl” refers to the css class to look for, and the second one refers to the name of the method that we added earlier.</p>
<h3>Summary:</h3>
<p>So the code would be: </p>
<p><font color="#0000a0" size="2" face="Courier">jQuery.validator.addMethod(&quot;requiredUrl&quot;, function(value, element, param) {     <br />&#160;&#160;&#160; var expression = /^(http:\/\/|https:\/\/)?((([\w-]+\.)+[\w-]+)|localhost)(\/[\w- .\/?%&amp;=]*)?/i;      <br />&#160;&#160;&#160; return expression.test(value);      <br />}, jQuery.validator.messages.url);</font></p>
<p><font color="#0000a0" size="2" face="Courier">jQuery.validator.classRuleSettings.requiredUrl = {requiredUrl: true};</font></p>
<p>Our form field would be:</p>
<p><font color="#0000a0" size="2" face="Courier">&lt;input type=”text” class=”requiredUrl” /&gt;</font></p>
<p>And our wireup to validate would be something like this:</p>
<p> <font color="#0000a0" size="2" face="Courier">$(document).ready(function() {   <br />&#160;&#160;&#160; $(&quot;#ServerForm&quot;).validate(</font><font color="#0000a0"><font size="2" face="Courier">);     <br />});</font></font></p>
<br /> Tagged: <a href='http://jwwishart.wordpress.com/tag/jquery/'>JQuery</a>, <a href='http://jwwishart.wordpress.com/tag/plugins/'>plugins</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jwwishart.wordpress.com/511/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jwwishart.wordpress.com/511/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jwwishart.wordpress.com/511/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jwwishart.wordpress.com/511/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jwwishart.wordpress.com/511/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jwwishart.wordpress.com/511/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jwwishart.wordpress.com/511/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jwwishart.wordpress.com/511/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jwwishart.wordpress.com/511/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jwwishart.wordpress.com/511/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jwwishart.wordpress.com/511/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jwwishart.wordpress.com/511/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jwwishart.wordpress.com/511/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jwwishart.wordpress.com/511/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jwwishart.wordpress.com&amp;blog=7020771&amp;post=511&amp;subd=jwwishart&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jwwishart.wordpress.com/2010/03/10/jquery-validate-custom-methods/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/558f77d275c93699af047641f735898b?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">jwwishart</media:title>
		</media:content>
	</item>
		<item>
		<title>JavaScript Errors Properties &amp; Throwing Exceptions</title>
		<link>http://jwwishart.wordpress.com/2010/02/18/javascript-errors-properties-throwing-exceptions/</link>
		<comments>http://jwwishart.wordpress.com/2010/02/18/javascript-errors-properties-throwing-exceptions/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 23:01:33 +0000</pubDate>
		<dc:creator>jwwishart</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[errors]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://jwwishart.wordpress.com/2010/02/18/javascript-errors-properties-throwing-exceptions/</guid>
		<description><![CDATA[Quick bit of information on JavaScript errors and throwing errors. (This post uses error and exception as synonyms… not sure what the correct term is in JavaScript) I was trying to figure out how to get details from an exception thrown in JavaScript and it seems the structure is like this: { message : “the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jwwishart.wordpress.com&amp;blog=7020771&amp;post=505&amp;subd=jwwishart&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Quick bit of information on JavaScript errors and throwing errors. (This post uses error and exception as synonyms… not sure what the correct term is in JavaScript)</p>
<p>I was trying to figure out how to get details from an exception thrown in JavaScript and it seems the structure is like this:</p>
<pre><font color="#008040">{
  message : “the error message”,
  fileName : “file:///c:/User/me/Desktop/Stuff.js”,
  lineNumber : 57,
  stack : “bunch of stuff here”
}</font></pre>
<p>(Used <a href="http://json.org/json2.js" target="_blank">json2.js</a> to stringify the error message as Firebug didn’t seem to be showing it… ?)</p>
<p>When you throw your own exceptions you can of course throw anything including a string like this:</p>
<pre><font color="#008040">throw “This is a string”;</font></pre>
<p>… and when you analyse what you caught it will be a simple string with that value.</p>
<pre><font color="#008040">try {
    throw &quot;This is a string&quot;;
} catch(error) {
    alert(error);
}</font></pre>
<p>The result will be an alert box with the value &quot;This is a string&quot; displayed.</p>
<p>Just found out <a href="http://developer.yahoo.com/yui/theater/video.php?v=crockonjs-2" target="_blank">here</a> that you can do this:</p>
<p><font color="#008040">throw new Error(reason);</font></p>
<br /> Tagged: <a href='http://jwwishart.wordpress.com/tag/errors/'>errors</a>, <a href='http://jwwishart.wordpress.com/tag/javascript/'>JavaScript</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jwwishart.wordpress.com/505/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jwwishart.wordpress.com/505/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jwwishart.wordpress.com/505/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jwwishart.wordpress.com/505/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jwwishart.wordpress.com/505/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jwwishart.wordpress.com/505/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jwwishart.wordpress.com/505/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jwwishart.wordpress.com/505/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jwwishart.wordpress.com/505/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jwwishart.wordpress.com/505/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jwwishart.wordpress.com/505/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jwwishart.wordpress.com/505/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jwwishart.wordpress.com/505/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jwwishart.wordpress.com/505/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jwwishart.wordpress.com&amp;blog=7020771&amp;post=505&amp;subd=jwwishart&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jwwishart.wordpress.com/2010/02/18/javascript-errors-properties-throwing-exceptions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/558f77d275c93699af047641f735898b?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">jwwishart</media:title>
		</media:content>
	</item>
		<item>
		<title>Storing the NewSequentialID() after Inserting using the Output Clause</title>
		<link>http://jwwishart.wordpress.com/2010/02/15/storing-the-newsequentialid-after-inserting-using-the-output-clause/</link>
		<comments>http://jwwishart.wordpress.com/2010/02/15/storing-the-newsequentialid-after-inserting-using-the-output-clause/#comments</comments>
		<pubDate>Sun, 14 Feb 2010 23:43:23 +0000</pubDate>
		<dc:creator>jwwishart</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Sql]]></category>
		<category><![CDATA[Sql Server]]></category>

		<guid isPermaLink="false">http://jwwishart.wordpress.com/2010/02/15/storing-the-newsequentialid-after-inserting-using-the-output-clause/</guid>
		<description><![CDATA[A little while ago i wrote this post about returning a NewSequentialID() after inserting a row… Sometimes though you want to be able to do something with that ID within the stored procedure that you are in the scope of… You can use the output clause to insert certain columns in the inserted table into [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jwwishart.wordpress.com&amp;blog=7020771&amp;post=503&amp;subd=jwwishart&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A little while ago i wrote <a href="http://jwwishart.wordpress.com/2009/08/05/returning-the-newsequentialid-after-insert-using-the-output-clause/" target="_blank">this</a> post about returning a NewSequentialID() after inserting a row… Sometimes though you want to be able to do something with that ID within the stored procedure that you are in the scope of…</p>
<p>You can use the output clause to insert certain columns in the inserted table into a temporary table. For example:</p>
<p>The table we are working with…</p>
<pre style="background-color:rgb(204,204,204);color:darkslateblue;">CREATE TABLE dbo.junk (
      id uniqueidentifier NOT NULL
        DEFAULT newsequentialid()
    , name varchar(100)
)
GO

CREATE TABLE dbo.junk_history (
      id uniqueidentifier NOT NULL
    , name varchar(100)
    , date datetime DEFAULT getutcdate()
)
GO</pre>
<p>The first table is the table we are inserting into, the second table we want to have filled with the newly inserted values including the id column…</p>
<p>The Stored procedure we have is as follows:</p>
<pre style="background-color:rgb(204,204,204);color:darkslateblue;">CREATE PROCEDURE dbo.junk_insert
    @name nvarchar(100)
AS
BEGIN
    INSERT INTO dbo.junk (name)
        OUTPUT inserted.id, inserted.name INTO dbo.junk_history (id, name)
        SELECT @name
END
GO</pre>
<p>In the insert statement I’m getting the id and name from the row inserted and inserting that into the junk_history table… You can insert the data into a temporary table variable or an actual table. </p>
<pre style="background-color:rgb(204,204,204);color:darkslateblue;">DECLARE	@return_value int

EXEC	@return_value = [dbo].[junk_insert]
		@name = N'Jimbo Jumbalock'

SELECT	'Return Value' = @return_value

GO

SELECT * FROM dbo.junk
SELECT * FROM dbo.junk_history</pre>
<p>The above script calls the sproc and shows you the contents of both tables…</p>
<p><strong>Note: </strong>that this was a very quickly put together script to get an example working, so please ignore any weirdness <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h1><strong>References:</strong></h1>
<ul>
<li><a title="http://msdn.microsoft.com/en-us/library/ms177564.aspx" href="http://msdn.microsoft.com/en-us/library/ms177564.aspx">http://msdn.microsoft.com/en-us/library/ms177564.aspx</a> </li>
</ul>
<br /> Tagged: <a href='http://jwwishart.wordpress.com/tag/sql/'>Sql</a>, <a href='http://jwwishart.wordpress.com/tag/sql-server/'>Sql Server</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jwwishart.wordpress.com/503/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jwwishart.wordpress.com/503/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jwwishart.wordpress.com/503/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jwwishart.wordpress.com/503/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jwwishart.wordpress.com/503/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jwwishart.wordpress.com/503/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jwwishart.wordpress.com/503/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jwwishart.wordpress.com/503/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jwwishart.wordpress.com/503/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jwwishart.wordpress.com/503/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jwwishart.wordpress.com/503/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jwwishart.wordpress.com/503/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jwwishart.wordpress.com/503/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jwwishart.wordpress.com/503/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jwwishart.wordpress.com&amp;blog=7020771&amp;post=503&amp;subd=jwwishart&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jwwishart.wordpress.com/2010/02/15/storing-the-newsequentialid-after-inserting-using-the-output-clause/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/558f77d275c93699af047641f735898b?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">jwwishart</media:title>
		</media:content>
	</item>
		<item>
		<title>Satellite Assemblies &#8211; Example in ASP.NET MVC</title>
		<link>http://jwwishart.wordpress.com/2010/02/11/satellite-assemblies-example-in-asp-net-mvc/</link>
		<comments>http://jwwishart.wordpress.com/2010/02/11/satellite-assemblies-example-in-asp-net-mvc/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 02:00:16 +0000</pubDate>
		<dc:creator>jwwishart</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ASP.NET MVC]]></category>

		<guid isPermaLink="false">http://jwwishart.wordpress.com/2010/02/11/satellite-assemblies-example-in-asp-net-mvc/</guid>
		<description><![CDATA[We were trying to create satellite assemblies for globalization and figured it out in an MVC application&#8230; first time using YouTube… it’s not very clear, but hopefully it helps! &#8230; hopefully when this one has finished processing it will be clearer than it is now&#8230; as i said. noob at the (you)tube! Steps are basically: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jwwishart.wordpress.com&amp;blog=7020771&amp;post=494&amp;subd=jwwishart&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>We were trying to create satellite assemblies for globalization and figured it out in an MVC application&#8230;</p>
<p><del datetime="2010-02-13T05:48:03+00:00">first time using YouTube… it’s not very clear, but hopefully it helps!</del> &#8230; hopefully when this one has finished processing it will be clearer than it is now&#8230; as i said. noob at the (you)tube!</p>
<span style="text-align:center; display: block;"><a href="http://jwwishart.wordpress.com/2010/02/11/satellite-assemblies-example-in-asp-net-mvc/"><img src="http://img.youtube.com/vi/tY3P66FnT0o/2.jpg" alt="" /></a></span>
<p>Steps are basically:</p>
<ol>
<li>Add the globalization attribute in the Web.config file</li>
<li>Add a folder for the resx files.  (we don’t want it in App_GlobalData as it won’t be compiled into the current assembly, but a seperate one!)</li>
<li>Create your resx file and contents</li>
<li>Ensure the resx is set to public.</li>
<li>Copy the resx</li>
<li>Create translation (say fr for french)</li>
<li>Create the view to show the contents</li>
<li>Test in both languages</li>
</ol>
<p>So it’s very simple: Create the resx files, ensure they are public (not 100% whether this is needed, not tested yet!) set the globalization attribute in web.config and change your browser language to test!</p>
<br /> Tagged: <a href='http://jwwishart.wordpress.com/tag/asp-net-mvc/'>ASP.NET MVC</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jwwishart.wordpress.com/494/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jwwishart.wordpress.com/494/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jwwishart.wordpress.com/494/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jwwishart.wordpress.com/494/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jwwishart.wordpress.com/494/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jwwishart.wordpress.com/494/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jwwishart.wordpress.com/494/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jwwishart.wordpress.com/494/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jwwishart.wordpress.com/494/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jwwishart.wordpress.com/494/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jwwishart.wordpress.com/494/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jwwishart.wordpress.com/494/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jwwishart.wordpress.com/494/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jwwishart.wordpress.com/494/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jwwishart.wordpress.com&amp;blog=7020771&amp;post=494&amp;subd=jwwishart&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jwwishart.wordpress.com/2010/02/11/satellite-assemblies-example-in-asp-net-mvc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/558f77d275c93699af047641f735898b?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">jwwishart</media:title>
		</media:content>
	</item>
		<item>
		<title>Creating a Custom Controller Factory</title>
		<link>http://jwwishart.wordpress.com/2010/02/10/creating-a-custom-controller-factory/</link>
		<comments>http://jwwishart.wordpress.com/2010/02/10/creating-a-custom-controller-factory/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 21:01:54 +0000</pubDate>
		<dc:creator>jwwishart</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ASP.NET MVC]]></category>

		<guid isPermaLink="false">http://jwwishart.wordpress.com/2010/02/10/creating-a-custom-controller-factory/</guid>
		<description><![CDATA[Quick notes about replacing the current controller factory in ASP.NET MVC How to Create the Custom Controller Factory Create a class that inherits from DefaultControllerFactory (see this) Set the controller factory in application start (see this) That’s should be about it Why would you implement a custom controller factory? (Thoughts for me relating specifically to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jwwishart.wordpress.com&amp;blog=7020771&amp;post=492&amp;subd=jwwishart&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Quick notes about replacing the current controller factory in ASP.NET MVC</p>
<h2>How to Create the Custom Controller Factory</h2>
<ol>
<li>Create a class that inherits from DefaultControllerFactory (see <a href="http://forums.asp.net/p/1523101/3667958.aspx#3666798" target="_blank">this</a>)</li>
<li>Set the controller factory in application start (see <a href="http://lostintangent.com/2008/07/03/aspnet-mvc-controlleractioninvoker-part-1/" target="_blank">this</a>)</li>
</ol>
<p>That’s should be about it <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h2>Why would you implement a custom controller factory? (Thoughts for me relating specifically to IoC)</h2>
<ol>
<li>You can configure which type of controller you want, so you can configure the IoC container to load a new class that is in a dll that you chuck in the bin directory.</li>
<li>You can inject the dependencies (like repositories) into the constructor automatically</li>
</ol>
<h2>Other interesting tidbits.</h2>
<ul>
<li>OdeToCode – <a href="http://odetocode.com/Blogs/scott/archive/2009/10/19/mvc-2-areas-and-containers.aspx" target="_blank">MVC 2 Areas and Containers</a></li>
</ul>
<br /> Tagged: <a href='http://jwwishart.wordpress.com/tag/asp-net-mvc/'>ASP.NET MVC</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jwwishart.wordpress.com/492/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jwwishart.wordpress.com/492/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jwwishart.wordpress.com/492/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jwwishart.wordpress.com/492/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jwwishart.wordpress.com/492/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jwwishart.wordpress.com/492/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jwwishart.wordpress.com/492/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jwwishart.wordpress.com/492/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jwwishart.wordpress.com/492/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jwwishart.wordpress.com/492/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jwwishart.wordpress.com/492/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jwwishart.wordpress.com/492/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jwwishart.wordpress.com/492/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jwwishart.wordpress.com/492/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jwwishart.wordpress.com&amp;blog=7020771&amp;post=492&amp;subd=jwwishart&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jwwishart.wordpress.com/2010/02/10/creating-a-custom-controller-factory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/558f77d275c93699af047641f735898b?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">jwwishart</media:title>
		</media:content>
	</item>
	</channel>
</rss>
