<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0" xml:lang="en" xml:base="http://richchetwynd.com/wp-atom.php">
	<title type="text">Rich Chetwynd</title>
	<subtitle type="text">Ideas. Passion. Adventure.</subtitle>

	<updated>2010-11-25T09:40:44Z</updated>

	<link rel="alternate" type="text/html" href="http://richchetwynd.com" />
	<id>http://richchetwynd.com/feed/atom/</id>
	

	<generator uri="http://wordpress.org/" version="3.0">WordPress</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/RichChetwynd" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="richchetwynd" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry>
		<author>
			<name>rich</name>
					</author>
		<title type="html"><![CDATA[How to install MYSQL, Postgres, Memcached and RVM on OSX]]></title>
		<link rel="alternate" type="text/html" href="http://richchetwynd.com/2010/11/how-to-install-mysql-postgres-memcached-and-rvm-on-osx/" />
		<id>http://richchetwynd.com/?p=115</id>
		<updated>2010-11-25T09:40:44Z</updated>
		<published>2010-11-25T09:37:19Z</published>
		<category scheme="http://richchetwynd.com" term="Uncategorized" /><category scheme="http://richchetwynd.com" term="Homebrew" /><category scheme="http://richchetwynd.com" term="Memcached" /><category scheme="http://richchetwynd.com" term="MySql" /><category scheme="http://richchetwynd.com" term="OSX" /><category scheme="http://richchetwynd.com" term="Postgres" /><category scheme="http://richchetwynd.com" term="Rails" /><category scheme="http://richchetwynd.com" term="Ruby" />		<summary type="html"><![CDATA[Got myself a new MacBook Air as the ultimate email and travelling machine but now I&#8217;ve found myself getting interested in Ruby, MySql, Memcached, Rails etc.. I had a crack at installing Rails first up but didnt have much luck.. Too many connection resets was the general error.. Network was good. Not sure WTF was [...]]]></summary>
		<content type="html" xml:base="http://richchetwynd.com/2010/11/how-to-install-mysql-postgres-memcached-and-rvm-on-osx/"><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Frichchetwynd.com%2F2010%2F11%2Fhow-to-install-mysql-postgres-memcached-and-rvm-on-osx%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Frichchetwynd.com%2F2010%2F11%2Fhow-to-install-mysql-postgres-memcached-and-rvm-on-osx%2F&amp;source=richchetwynd&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>Got myself a new MacBook Air as the ultimate email and travelling machine but now I&#8217;ve found myself getting interested in Ruby, MySql, Memcached, Rails etc..</p>
<p>I had a crack at installing Rails first up but didnt have much luck.. Too many connection resets was the general error.. Network was good. Not sure WTF was going on so hit Twitter and <a href="http://twitter.com/BarnacleBarnes">@BarnacleBarnes</a> hooked me up with <a href="http://mxcl.github.com/homebrew/">Homebrew</a> and <a href="http://rvm.beginrescueend.com/">RVM</a>.</p>
<p>I got Homebrew intsalled pretty quick and then while searching for RVM found this gold mine..</p>
<p><a href="http://portertech.ca/homebrew-rvm-awesome">http://portertech.ca/homebrew-rvm-awesome</a></p>
<p>Anyway.. that should get you to installed point.. Now the fun begins..</p>
]]></content>
		<link rel="replies" type="text/html" href="http://richchetwynd.com/2010/11/how-to-install-mysql-postgres-memcached-and-rvm-on-osx/#comments" thr:count="1" />
		<link rel="replies" type="application/atom+xml" href="http://richchetwynd.com/2010/11/how-to-install-mysql-postgres-memcached-and-rvm-on-osx/feed/atom/" thr:count="1" />
		<thr:total>1</thr:total>
	</entry>
		<entry>
		<author>
			<name>rich</name>
					</author>
		<title type="html"><![CDATA[jQuery Anti-Patterns for Performance &amp; Compression]]></title>
		<link rel="alternate" type="text/html" href="http://richchetwynd.com/2010/09/jquery-anti-patterns-for-performance-compression/" />
		<id>http://richchetwynd.com/?p=96</id>
		<updated>2010-09-29T03:48:02Z</updated>
		<published>2010-09-29T03:46:27Z</published>
		<category scheme="http://richchetwynd.com" term="Development" />		<summary type="html"><![CDATA[This is kinda old now but I just learned a bunch from it.. Some great stuff in there.. jQuery Anti-Patterns for Performance &#38; Compression View more presentations from Paul Irish.]]></summary>
		<content type="html" xml:base="http://richchetwynd.com/2010/09/jquery-anti-patterns-for-performance-compression/"><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Frichchetwynd.com%2F2010%2F09%2Fjquery-anti-patterns-for-performance-compression%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Frichchetwynd.com%2F2010%2F09%2Fjquery-anti-patterns-for-performance-compression%2F&amp;source=richchetwynd&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>This is kinda old now but I just learned a bunch from it.. Some great stuff in there..</p>
<div style="width:425px" id="__ss_1984008"><strong style="display:block;margin:12px 0 4px"><a href="http://www.slideshare.net/paul.irish/perfcompression" title="jQuery Anti-Patterns for Performance &amp; Compression">jQuery Anti-Patterns for Performance &amp; Compression</a></strong><object id="__sse1984008" width="425" height="355"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=perfcompression-090911091939-phpapp01&#038;stripped_title=perfcompression&#038;userName=paul.irish" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed name="__sse1984008" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=perfcompression-090911091939-phpapp01&#038;stripped_title=perfcompression&#038;userName=paul.irish" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object>
<div style="padding:5px 0 12px">View more <a href="http://www.slideshare.net/">presentations</a> from <a href="http://www.slideshare.net/paul.irish">Paul Irish</a>.</div>
</div>
]]></content>
		<link rel="replies" type="text/html" href="http://richchetwynd.com/2010/09/jquery-anti-patterns-for-performance-compression/#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://richchetwynd.com/2010/09/jquery-anti-patterns-for-performance-compression/feed/atom/" thr:count="0" />
		<thr:total>0</thr:total>
	</entry>
		<entry>
		<author>
			<name>rich</name>
					</author>
		<title type="html"><![CDATA[WebSockets on Windows]]></title>
		<link rel="alternate" type="text/html" href="http://richchetwynd.com/2010/09/websockets-on-windows/" />
		<id>http://richchetwynd.com/?p=91</id>
		<updated>2010-09-20T23:15:07Z</updated>
		<published>2010-09-13T09:38:56Z</published>
		<category scheme="http://richchetwynd.com" term="Development" /><category scheme="http://richchetwynd.com" term="node.js" /><category scheme="http://richchetwynd.com" term="socket.io" /><category scheme="http://richchetwynd.com" term="websockets" />		<summary type="html"><![CDATA[Today marks the first day of my research into using WebSockets for a project that will otherwise pretty much be plagued by a poor user experience if its done as a web app that relies on long polling etc. So I feel like I&#8217;m turning to the dark side, well not quite but I am [...]]]></summary>
		<content type="html" xml:base="http://richchetwynd.com/2010/09/websockets-on-windows/"><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Frichchetwynd.com%2F2010%2F09%2Fwebsockets-on-windows%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Frichchetwynd.com%2F2010%2F09%2Fwebsockets-on-windows%2F&amp;source=richchetwynd&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>Today marks the first day of my research into using WebSockets for a project that will otherwise pretty much be plagued by a poor user experience if its done as a web app that relies on long polling etc.</p>
<p>So I feel like I&#8217;m turning to the dark side, well not quite but I am getting stuck into <a href="http://nodejs.org/">node.js</a> and <a href="http://socket.io/">socket.io</a> right now and as a Windows kid this is quite a fun experience..</p>
<p>Once I have built a few test projects I will reflect back but until then heres how I started.</p>
<ul>
<li>Download <a href="http://www.cygwin.com/">Cygwin</a></li>
<li>Install Cygwin and download Node.js from Git. <a href="http://github.com/ry/node/wiki/Building-node.js-on-Cygwin-(Windows)">Follow this guide </a><br />
<strong>Update: </strong>When installing the Cygwin modules you should also grab <strong>net -&gt; curl </strong>you will need this to install npm (which is what you use to install Socket.IO)</li>
<li>Grab <a href="http://socket.io/">Socket.IO</a> using <a href="http://github.com/isaacs/npm">npm</a></li>
</ul>
]]></content>
		<link rel="replies" type="text/html" href="http://richchetwynd.com/2010/09/websockets-on-windows/#comments" thr:count="1" />
		<link rel="replies" type="application/atom+xml" href="http://richchetwynd.com/2010/09/websockets-on-windows/feed/atom/" thr:count="1" />
		<thr:total>1</thr:total>
	</entry>
		<entry>
		<author>
			<name>rich</name>
					</author>
		<title type="html"><![CDATA[It&#8217;s all in the state of mind]]></title>
		<link rel="alternate" type="text/html" href="http://richchetwynd.com/2010/08/its-all-in-the-state-of-mind/" />
		<id>http://richchetwynd.com/?p=86</id>
		<updated>2010-08-20T03:30:15Z</updated>
		<published>2010-08-20T03:28:31Z</published>
		<category scheme="http://richchetwynd.com" term="Passion" /><category scheme="http://richchetwynd.com" term="attitude" /><category scheme="http://richchetwynd.com" term="motivation" />		<summary type="html"><![CDATA[I came across this old quote/poem thing in the bottom of a draw and thought its a great way to look at life and definitely worth sharing.. Enjoy!]]></summary>
		<content type="html" xml:base="http://richchetwynd.com/2010/08/its-all-in-the-state-of-mind/"><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Frichchetwynd.com%2F2010%2F08%2Fits-all-in-the-state-of-mind%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Frichchetwynd.com%2F2010%2F08%2Fits-all-in-the-state-of-mind%2F&amp;source=richchetwynd&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>I came across this old quote/poem thing in the bottom of a draw and thought its a great way to look at life and definitely worth sharing.. Enjoy!</p>
<p><a href="http://richchetwynd.com/wp-content/uploads/2010/08/Capture.png"><img class="aligncenter size-full wp-image-87" title="Quote" src="http://richchetwynd.com/wp-content/uploads/2010/08/Capture.png" alt="" width="653" height="668" /></a></p>
]]></content>
		<link rel="replies" type="text/html" href="http://richchetwynd.com/2010/08/its-all-in-the-state-of-mind/#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://richchetwynd.com/2010/08/its-all-in-the-state-of-mind/feed/atom/" thr:count="0" />
		<thr:total>0</thr:total>
	</entry>
		<entry>
		<author>
			<name>rich</name>
					</author>
		<title type="html"><![CDATA[Searching for a string across all procs in a MSSQL database]]></title>
		<link rel="alternate" type="text/html" href="http://richchetwynd.com/2010/08/searching-for-a-string-across-all-procs-in-a-mssql-database/" />
		<id>http://richchetwynd.com/?p=82</id>
		<updated>2010-08-16T22:01:15Z</updated>
		<published>2010-08-16T21:59:43Z</published>
		<category scheme="http://richchetwynd.com" term="Development" /><category scheme="http://richchetwynd.com" term="develeopment" /><category scheme="http://richchetwynd.com" term="sql" /><category scheme="http://richchetwynd.com" term="tips" /><category scheme="http://richchetwynd.com" term="tricks" />		<summary type="html"><![CDATA[Searching for a string across all of the stored procedures in a database is something that I always forget how to do and then have to quickly browse Google for.. I&#8217;m not sure why this isn&#8217;t built into the MSSQL management tools but it&#8217;s super easy and can save a bunch of time if you&#8217;re [...]]]></summary>
		<content type="html" xml:base="http://richchetwynd.com/2010/08/searching-for-a-string-across-all-procs-in-a-mssql-database/"><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Frichchetwynd.com%2F2010%2F08%2Fsearching-for-a-string-across-all-procs-in-a-mssql-database%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Frichchetwynd.com%2F2010%2F08%2Fsearching-for-a-string-across-all-procs-in-a-mssql-database%2F&amp;source=richchetwynd&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>Searching for a string across all of the stored procedures in a database is something that I always forget how to do and then have to quickly browse Google for..</p>
<p>I&#8217;m not sure why this isn&#8217;t built into the MSSQL management tools but it&#8217;s super easy and can save a bunch of time if you&#8217;re bug hunting.</p>
<pre><code>    SELECT ROUTINE_NAME, ROUTINE_DEFINITION
    FROM INFORMATION_SCHEMA.ROUTINES
    WHERE ROUTINE_DEFINITION LIKE '%find me please%'
    AND ROUTINE_TYPE='PROCEDURE'</code></pre>
]]></content>
		<link rel="replies" type="text/html" href="http://richchetwynd.com/2010/08/searching-for-a-string-across-all-procs-in-a-mssql-database/#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://richchetwynd.com/2010/08/searching-for-a-string-across-all-procs-in-a-mssql-database/feed/atom/" thr:count="0" />
		<thr:total>0</thr:total>
	</entry>
		<entry>
		<author>
			<name>rich</name>
					</author>
		<title type="html"><![CDATA[The power of the .Net MVC view engine]]></title>
		<link rel="alternate" type="text/html" href="http://richchetwynd.com/2010/07/the-power-of-the-net-mvc-view-engine/" />
		<id>http://richchetwynd.com/?p=80</id>
		<updated>2010-07-13T22:45:32Z</updated>
		<published>2010-07-13T22:45:32Z</published>
		<category scheme="http://richchetwynd.com" term="Development" /><category scheme="http://richchetwynd.com" term=".net" /><category scheme="http://richchetwynd.com" term="code" /><category scheme="http://richchetwynd.com" term="ipad" /><category scheme="http://richchetwynd.com" term="litmos" /><category scheme="http://richchetwynd.com" term="mvc" />		<summary type="html"><![CDATA[Recently we put together a version of Litmos that looks and feels like a native iPad app but runs via Safari on the iPad. We were able build the UI for this in less than a day and release it due to our implementation of the WebFormsViewEngine in .Net MVC. By creating our own custom view [...]]]></summary>
		<content type="html" xml:base="http://richchetwynd.com/2010/07/the-power-of-the-net-mvc-view-engine/"><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Frichchetwynd.com%2F2010%2F07%2Fthe-power-of-the-net-mvc-view-engine%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Frichchetwynd.com%2F2010%2F07%2Fthe-power-of-the-net-mvc-view-engine%2F&amp;source=richchetwynd&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>Recently we put together a version of Litmos that looks and feels like a native iPad app but runs via Safari on the iPad.</p>
<p>We were able build the UI for this in less than a day and release it due to our implementation of the WebFormsViewEngine in .Net MVC. By creating our own custom view engine which has some sneaky browser detection build in we can offer up a custom UI for desktop browsers, iPhones or iPads etc.</p>
<p>I will post some code at some stage soon but for an example of what can be done in very little time at all check out this video..</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="385" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/cJGfl3y1ox4&amp;hl=en_US&amp;fs=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="480" height="385" src="http://www.youtube.com/v/cJGfl3y1ox4&amp;hl=en_US&amp;fs=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
]]></content>
		<link rel="replies" type="text/html" href="http://richchetwynd.com/2010/07/the-power-of-the-net-mvc-view-engine/#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://richchetwynd.com/2010/07/the-power-of-the-net-mvc-view-engine/feed/atom/" thr:count="0" />
		<thr:total>0</thr:total>
	</entry>
		<entry>
		<author>
			<name>rich</name>
					</author>
		<title type="html"><![CDATA[How to calculate the distance between 2 GPS coordinates]]></title>
		<link rel="alternate" type="text/html" href="http://richchetwynd.com/2010/07/how-to-calculate-the-distance-between-2-gps-coordinates/" />
		<id>http://richchetwynd.com/?p=66</id>
		<updated>2010-07-13T22:37:47Z</updated>
		<published>2010-07-13T22:20:54Z</published>
		<category scheme="http://richchetwynd.com" term="Development" /><category scheme="http://richchetwynd.com" term="Uncategorized" /><category scheme="http://richchetwynd.com" term="code" /><category scheme="http://richchetwynd.com" term="gps" /><category scheme="http://richchetwynd.com" term="haversine" /><category scheme="http://richchetwynd.com" term="location" />		<summary type="html"><![CDATA[Recently I had to calculate the distance between 2 GPS coordinates. Theres a fair bit of help online about how to do this but I though I would share my implementation of the Haversine method. public double GetDistance(double latitude1, double longitude1,  double latitude2, double longitude2) { double earthRadiusMiles = 3963; double distance = 0; // [...]]]></summary>
		<content type="html" xml:base="http://richchetwynd.com/2010/07/how-to-calculate-the-distance-between-2-gps-coordinates/"><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Frichchetwynd.com%2F2010%2F07%2Fhow-to-calculate-the-distance-between-2-gps-coordinates%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Frichchetwynd.com%2F2010%2F07%2Fhow-to-calculate-the-distance-between-2-gps-coordinates%2F&amp;source=richchetwynd&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>Recently I had to calculate the distance between 2 GPS coordinates. Theres a fair bit of help online about how to do this but I though I would share my implementation of the <a href="http://en.wikipedia.org/wiki/Haversine_formula">Haversine </a>method.</p>
<pre><code>public double GetDistance(double latitude1, double longitude1, 
                                    double latitude2, double longitude2)
{
    double earthRadiusMiles = 3963;
    double distance = 0;

    // convert degrees to radians
    latitude1 = latitude1 * Math.PI / 180;
    longitude1 = longitude1 * Math.PI / 180;

    latitude2 = latitude2 * Math.PI / 180;
    longitude2 = longitude2 * Math.PI / 180;

    // check the points are not the same
    if (latitude1 != latitude2 &amp;&amp; longitude1 != longitude2)
    {
        distance = Math.Sin(latitude1) * Math.Sin(latitude2)
                 + Math.Cos(latitude1) * Math.Cos(latitude2)
                 * Math.Cos(longitude2 - longitude1);

        distance = earthRadiusMiles
                    * (-1 * Math.Atan(distance / Math.Sqrt(1 - distance * distance))
                    + Math.PI / 2);
    }

    return distance;
}</code></pre>
]]></content>
		<link rel="replies" type="text/html" href="http://richchetwynd.com/2010/07/how-to-calculate-the-distance-between-2-gps-coordinates/#comments" thr:count="2" />
		<link rel="replies" type="application/atom+xml" href="http://richchetwynd.com/2010/07/how-to-calculate-the-distance-between-2-gps-coordinates/feed/atom/" thr:count="2" />
		<thr:total>2</thr:total>
	</entry>
		<entry>
		<author>
			<name>rich</name>
					</author>
		<title type="html"><![CDATA[Litmos LMS Mobile beta]]></title>
		<link rel="alternate" type="text/html" href="http://richchetwynd.com/2010/05/litmos-lms-mobile-beta/" />
		<id>http://richchetwynd.com/?p=64</id>
		<updated>2010-05-25T01:11:05Z</updated>
		<published>2010-05-25T01:11:05Z</published>
		<category scheme="http://richchetwynd.com" term="Development" /><category scheme="http://richchetwynd.com" term="android" /><category scheme="http://richchetwynd.com" term="litmos" /><category scheme="http://richchetwynd.com" term="mobile" /><category scheme="http://richchetwynd.com" term="nexusone" /><category scheme="http://richchetwynd.com" term="scorm" />		<summary type="html"><![CDATA[This is a quick preview of the new mobile version of the Litmos LMS running some Articulate Flash content on the Google Nexus One phone.]]></summary>
		<content type="html" xml:base="http://richchetwynd.com/2010/05/litmos-lms-mobile-beta/"><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Frichchetwynd.com%2F2010%2F05%2Flitmos-lms-mobile-beta%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Frichchetwynd.com%2F2010%2F05%2Flitmos-lms-mobile-beta%2F&amp;source=richchetwynd&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>This is a quick preview of the new mobile version of the Litmos LMS running some Articulate Flash content on the Google Nexus One phone.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="385" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/XE3ibnJBPQ0&amp;hl=en_US&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="640" height="385" src="http://www.youtube.com/v/XE3ibnJBPQ0&amp;hl=en_US&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
]]></content>
		<link rel="replies" type="text/html" href="http://richchetwynd.com/2010/05/litmos-lms-mobile-beta/#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://richchetwynd.com/2010/05/litmos-lms-mobile-beta/feed/atom/" thr:count="0" />
		<thr:total>0</thr:total>
	</entry>
		<entry>
		<author>
			<name>rich</name>
					</author>
		<title type="html"><![CDATA[Javascript debugging on Android browser]]></title>
		<link rel="alternate" type="text/html" href="http://richchetwynd.com/2010/05/javascript-debugging-on-android-browser/" />
		<id>http://richchetwynd.com/?p=62</id>
		<updated>2010-05-23T03:49:14Z</updated>
		<published>2010-05-23T03:49:14Z</published>
		<category scheme="http://richchetwynd.com" term="Development" /><category scheme="http://richchetwynd.com" term="android" /><category scheme="http://richchetwynd.com" term="debugging" /><category scheme="http://richchetwynd.com" term="javascript" />		<summary type="html"><![CDATA[You can log javascript errors and console messages from your Android device or emulator. To do this you first need to install the Android SDK and USB drivers and enable USB debugging on the actual device. To check if the device is connected correctly you can run the following cmd from your Android SDK tools [...]]]></summary>
		<content type="html" xml:base="http://richchetwynd.com/2010/05/javascript-debugging-on-android-browser/"><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Frichchetwynd.com%2F2010%2F05%2Fjavascript-debugging-on-android-browser%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Frichchetwynd.com%2F2010%2F05%2Fjavascript-debugging-on-android-browser%2F&amp;source=richchetwynd&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>You can log javascript errors and console messages from your Android device or emulator. To do this you first need to install the <a href="http://developer.android.com/sdk/index.html">Android SDK</a> and <a href="http://developer.android.com/sdk/win-usb.html">USB drivers</a> and enable USB debugging on the actual device.</p>
<p>To check if the device is connected correctly you can run the following cmd from your Android SDK tools directory and you should see a device in the list</p>
<p>c:\android sdk..\tools\<strong>adb devices</strong></p>
<p>You can then use the <a href="http://developer.android.com/guide/developing/tools/adb.html">Android Debug Bridge</a> to filter debug messages so that you only see browser related messages by running the following cmd.</p>
<p>c:\android sdk..\tools\<strong>adb logcat browser:V *:S</strong></p>
<p>By default the log is written to stdout so you will see any Javascript errors or console.log messages etc written to the cmd window.</p>
]]></content>
		<link rel="replies" type="text/html" href="http://richchetwynd.com/2010/05/javascript-debugging-on-android-browser/#comments" thr:count="1" />
		<link rel="replies" type="application/atom+xml" href="http://richchetwynd.com/2010/05/javascript-debugging-on-android-browser/feed/atom/" thr:count="1" />
		<thr:total>1</thr:total>
	</entry>
		<entry>
		<author>
			<name>rich</name>
					</author>
		<title type="html"><![CDATA[Setting the Content-Type in MVC pages&#8230;]]></title>
		<link rel="alternate" type="text/html" href="http://richchetwynd.com/2010/05/setting-the-content-type-in-mvc-pages/" />
		<id>http://richchetwynd.com/?p=59</id>
		<updated>2010-05-18T23:03:42Z</updated>
		<published>2010-05-18T23:02:58Z</published>
		<category scheme="http://richchetwynd.com" term="Development" /><category scheme="http://richchetwynd.com" term="html" /><category scheme="http://richchetwynd.com" term="javascript" /><category scheme="http://richchetwynd.com" term="mobile" />		<summary type="html"><![CDATA[We&#8217;ve been working on a mobile version of Litmos using jQtouch which works super nice for iPhone but we have had a few issues getting it cranking on Android browsers. One of the issue was due to MVC rendering views by default as application/xhtml which resulted in errors in the JQuery and jQTouch libs so [...]]]></summary>
		<content type="html" xml:base="http://richchetwynd.com/2010/05/setting-the-content-type-in-mvc-pages/"><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Frichchetwynd.com%2F2010%2F05%2Fsetting-the-content-type-in-mvc-pages%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Frichchetwynd.com%2F2010%2F05%2Fsetting-the-content-type-in-mvc-pages%2F&amp;source=richchetwynd&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>We&#8217;ve been working on a mobile version of Litmos using<a href="http://jqtouch.com/"> jQtouch</a> which works super nice for iPhone but we have had a few issues getting it cranking on Android browsers.</p>
<p>One of the issue was due to MVC rendering views by default as <strong>application/xhtml </strong>which resulted in errors in the JQuery and jQTouch libs so we wanted to change the content type output to <strong>text/html.</strong></p>
<p>After a wee bit of hunting around we found that you can set the output content type on a per view basis by changing the view page directive to include a <strong>ContentType </strong>declaration.</p>
<p>eg.</p>
<p><strong>&lt;%@ Page Title=&#8221;" Language=&#8221;C#&#8221; ContentType=&#8221;text/html&#8221;&#8230;..</strong></p>
<td></td>
<td></td>
]]></content>
		<link rel="replies" type="text/html" href="http://richchetwynd.com/2010/05/setting-the-content-type-in-mvc-pages/#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://richchetwynd.com/2010/05/setting-the-content-type-in-mvc-pages/feed/atom/" thr:count="0" />
		<thr:total>0</thr:total>
	</entry>
	</feed>

