<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Bits, Bytes And Burps</title>
	<atom:link href="http://www.brainyautomation.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.brainyautomation.com/blog</link>
	<description>Tech Ramblings of a Confused Mind...</description>
	<lastBuildDate>Wed, 16 Mar 2011 20:57:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Arch Linux + lighttpd + Mono == ASP.NET MVC 3</title>
		<link>http://www.brainyautomation.com/blog/2011/03/16/arch-linux-lighttpd-mono-asp-net-mvc-3/</link>
		<comments>http://www.brainyautomation.com/blog/2011/03/16/arch-linux-lighttpd-mono-asp-net-mvc-3/#comments</comments>
		<pubDate>Wed, 16 Mar 2011 20:49:35 +0000</pubDate>
		<dc:creator>steven</dc:creator>
				<category><![CDATA[asp.net mvc]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mono]]></category>
		<category><![CDATA[mvc]]></category>

		<guid isPermaLink="false">http://www.brainyautomation.com/blog/?p=130</guid>
		<description><![CDATA[I had a time getting my cheap linux box hosting configured to host my ASP.NET MVC 3 application. These notes<a href="http://www.brainyautomation.com/blog/2011/03/16/arch-linux-lighttpd-mono-asp-net-mvc-3/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>I had a time getting my <a href="http://www.lowendbox.com/blog/breathost-openvz-kansas-city/">cheap linux box hosting</a> configured to host my <a href="http://www.asp.net/mvc/mvc3">ASP.NET MVC 3</a> application. These notes are how I got it working using mono 2.6.10 on my Arch Linux 200510</p>
<p>In this example I setup a directory to host my application (I will get to what files and how later) I placed these files in the &#8216;/srv/http/mysite&#8217; folder.</p>
<p>1. Install mono, lighttpd and fcgi on the box</p>
<pre name="code" class="csharp">
pacman -Sy
pacman -S mono lighttpd fcgi
</pre>
<p>2. Setup lighttpd to use FastCGI edit the &#8216;/etc/lighttpd.conf&#8217; file and modify this line;</p>
<pre name="code" class="csharp">
server.document-root    = "/srv/http/mysite"
</pre>
<p>3. Add this line to the end of your &#8216;/etc/lighttpd.conf&#8217; file;</p>
<pre name="code" class="csharp">
include "fastcgi.conf"
</pre>
<p>4. Put this into your &#8216;/etc/lighttpd/fastcgi.conf&#8217; file;</p>
<pre name="code" class="csharp">
include "mono.conf"
server.modules += ( "mod_fastcgi" )
fastcgi.server = (
        "" => ((
                "socket" => mono_shared_dir + "fastcgi-mono-server4",
                "bin-path" => mono_fastcgi_server,
                "bin-environment" => (
                        "PATH" => "/bin:/usr/bin:" + mono_dir + "bin",
                        "LD_LIBRARY_PATH" => mono_dir + "lib:",
                        "MONO_SHARED_DIR" => mono_shared_dir,
                        "MONO_FCGI_LOGLEVELS" => "Standard",
                        "MONO_FCGI_LOGFILE" => mono_shared_dir + "fastcgi.log",
                        "MONO_FCGI_ROOT" => mono_fcgi_root,
                        "MONO_FCGI_APPLICATIONS" => mono_fcgi_applications
                ),
                "max-procs" => 1,
                "check-local" => "disable"
        ))
)
</pre>
<p>5. Put this in your &#8216;/etc/lighttpd/mono.conf&#8217; file;</p>
<pre name="code" class="csharp">
index-file.names += ( "index.aspx", "default.aspx", "Default.aspx" )
var.mono_dir = "/usr/"
var.mono_shared_dir = "/tmp/"
var.mono_fastcgi_server = mono_dir + "bin/" + "fastcgi-mono-server4"

### The root of your applications
# For apps installed under the lighttpd document root, use:
var.mono_fcgi_root = server.document-root

### Application map
# A comma separated list of virtual directory and real directory
# for all the applications we want to manage with this server. The
# virtual and real dirs. are separated by  a  colon.
var.mono_fcgi_applications = "/:."
</pre>
<p>Make sure you didn&#8217;t fat monkey up the conf files by doing this;</p>
<pre>
$ lighttpd -t -f /etc/lighttpd/lighttpd.conf
</pre>
<p>Should return a &#8220;OK&#8221;</p>
<p>Now go into your ASP.NET MVC app and setup the references to be &#8220;Copy Local&#8221; True on these assemblies (if you don&#8217;t have the assembly reference by the project add it, you might need to look in &#8220;Assemblies -> Extensions&#8221; to find some of these) ;</p>
<pre>
System.Web.Helpers.dll
System.Web.Helpers.xml
System.Web.Mvc.dll
System.Web.Mvc.xml
System.Web.Razor.dll
System.Web.Razor.xml
System.Web.WebPages.Deployment.dll
System.Web.WebPages.Deployment.xml
System.Web.WebPages.dll
System.Web.WebPages.Razor.dll
System.Web.WebPages.Razor.xml
System.Web.WebPages.xml
</pre>
<p>Make sure you <strong>DO NOT</strong> have the Microsoft.Web.Infrastructure.dll file, it doens&#8217;t work with Mono and causes errors.</p>
<p>Now just publish your project to a folder somewhere, then go into that folder and get the entire contents to the &#8216;/srv/http/mysite&#8217; folder. Sure you can setup FTP and all that fanciness but I just use <a href="http://winscp.net/eng/index.php">WinSCP</a> and copy directly from my publish folder into the &#8216;/srv/http/mysite&#8217; folder.</p>
<p>Now start lighttpd on the box and you should have the joy of ASP.NET MVC 3.</p>
<p>Enjoy!</p>
<p>References;</p>
<address>
<a href="http://www.mono-project.com/Release_Notes_Mono_2.10#ASP.NET_MVC3_Support">http://www.mono-project.com/Release_Notes_Mono_2.10#ASP.NET_MVC3_Support</a><br />
<a href="http://redmine.lighttpd.net/wiki/1/Docs:Configuration">http://redmine.lighttpd.net/wiki/1/Docs:Configuration</a><br />
<a href="https://wiki.archlinux.org/index.php/Lighttpd">https://wiki.archlinux.org/index.php/Lighttpd</a><br />
<a href="http://www.mono-project.com/FastCGI_Lighttpd">http://www.mono-project.com/FastCGI_Lighttpd</a><br />
</address>
]]></content:encoded>
			<wfw:commentRss>http://www.brainyautomation.com/blog/2011/03/16/arch-linux-lighttpd-mono-asp-net-mvc-3/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Just delete the damn folder&#8230;</title>
		<link>http://www.brainyautomation.com/blog/2011/01/28/just-delete-the-damn-folder/</link>
		<comments>http://www.brainyautomation.com/blog/2011/01/28/just-delete-the-damn-folder/#comments</comments>
		<pubDate>Fri, 28 Jan 2011 14:53:05 +0000</pubDate>
		<dc:creator>steven</dc:creator>
				<category><![CDATA[Windows7]]></category>
		<category><![CDATA[!justworks]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[windows7]]></category>

		<guid isPermaLink="false">http://www.brainyautomation.com/blog/?p=126</guid>
		<description><![CDATA[So I run into a problem where there are folders on my &#8220;Storage&#8221; drive (like drive &#8220;D:&#8221; that is way<a href="http://www.brainyautomation.com/blog/2011/01/28/just-delete-the-damn-folder/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>So I run into a problem where there are folders on my &#8220;Storage&#8221; drive (like drive &#8220;D:&#8221; that is way bigger than my boot drive) that for some unknown friggin&#8217; reason I am unable to delete, Windows 7 just gives me some run around and makes me want to take a sledgehammer to the damn thing.</p>
<p>So searching around and I found how to delete it; Change the owner the admin, change the acl&#8217;s, then use rmdir from cmd line.</p>
<p>Like so (to whack folder &#8220;D:\delete_damnit&#8221;);</p>
<ul>
<li>Right-click on folder -> Properties -> Security Tab</li>
<li>Click on Advanced button -> Owner tab</li>
<li>Edit.. button</li>
<li>Select Administrators in &#8216;Change owner to&#8217;, check &#8216;replace owner on subcontainers and objects&#8217;</li>
<li>Open cmd.exe as administrator</li>
<li>Run &#8216;cacls D:\delete_damnit /T /e /g Administrators:f&#8217;</li>
<li>Run &#8216;rmdir /S D:delete_damnit&#8217;</li>
</ul>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brainyautomation.com/blog/2011/01/28/just-delete-the-damn-folder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adventures in dlna with Blu-Ray players</title>
		<link>http://www.brainyautomation.com/blog/2010/11/21/adventures-in-dlna-with-blu-ray-players/</link>
		<comments>http://www.brainyautomation.com/blog/2010/11/21/adventures-in-dlna-with-blu-ray-players/#comments</comments>
		<pubDate>Sun, 21 Nov 2010 14:56:48 +0000</pubDate>
		<dc:creator>steven</dc:creator>
				<category><![CDATA[crazytrain]]></category>
		<category><![CDATA[dlna]]></category>
		<category><![CDATA[wonderment]]></category>

		<guid isPermaLink="false">http://www.brainyautomation.com/blog/?p=119</guid>
		<description><![CDATA[So the wife and I decided that we would get on NetFlix and be able to stream movies versus going<a href="http://www.brainyautomation.com/blog/2010/11/21/adventures-in-dlna-with-blu-ray-players/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>So the wife and I decided that we would get on NetFlix and be able to stream movies versus going out to BlockBuster. We thought we would go ahead and pick up a new Blu-Ray player that has the streaming built in, and hey while we are at it get one that will also be dlna compliant and connect to my Arch linux powered minidlna media server.</p>
<p>Well getting minidlna setup on <a href="https://wiki.archlinux.org/index.php/Official_Arch_Linux_Install_Guide">Arch</a> via <a href="https://wiki.archlinux.org/index.php/Yaourt">Yaourt</a> is super simple, just a &#8220;yauurt -S minidlna&#8221; and boom installed. Yay for just works! yay!</p>
<p>So onto getting the Blu-Ray player hooked up to stream pictures, music and video from the dlna server, should be easy enough to get a <a href="http://www.dlna.org/products">dlna certified</a> player and, ah, it just happen, right? Pffft. </p>
<p>Off to <a href="http://www.nfm.com/default.aspx">NFM</a> to pick up a Sony BDP-S470 seems they have it on sale for around $125 and from the <a href="http://www.sonystyle.com/webapp/wcs/stores/servlet/CategoryDisplay?catalogId=10551&#038;storeId=10151&#038;langId=-1&#038;categoryId=16192&#038;SR=nav:electronics:tv_hm_ent:bluray:shop_compare:ss &#038;ref=http%3A%2F%2Fwww.sony.com%2Findex.php">manufacturer site</a> it has evertyhing and then some.</p>
<p>I set it up and sure it sees the dlna server, plays the pictures and the music but does not see any movies &#8211; no avi, mkv, wmv &#8211; nothing. Grrrr. I Make sure the dlna server is working by playing movies via the Xbox 360; works fine indeed.</p>
<p>So return that player and then pick up the <a href="http://bestbuylgbd570.vn.vc/tag/dmpbd65pk/">Panasonic DMP-BD65</a>, heck its on sale for around $90 and from my cursory search on the net it is dlna certified.</p>
<p>Get it home, hook it up. Humm. Where is the dlna part? Look around the web and find out that the dlna part is only for the European market; not available in the US models. Good grief.</p>
<p>Then off to pick up the LG BD-570 its the most expensive one in my adventure, around <a href="http://www.bestbuy.com/site/LG+-+Internet+Connectable/Wi-Fi+Built-In+Blu-ray+Disc+Player/9767478.p?id=1218170030830&#038;skuId=9767478">$165</a>, but it seems to have Wifi built in and it does have the dlna sticker on the box. </p>
<p>Get it home, hook it up. Endure looks from the wife that I am losing my mind and working on becoming some sort of Blu-Ray exporter. Aha! Eureka right off the bat it sees my dlna server and, wait for it &#8230;. Yes! it plays the movies, pictures and music just fine.</p>
<p>Sure the WiFi part stutters a bit playing back some 1080p video (<a href="http://www.bigbuckbunny.org/index.php/download/">Big Buck Bunny</a> ftw!) but connected on the wired it seems to be excellent in both video and audio.</p>
<p>After some more checking the NetFlix and Vudu works as well. Woot! </p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brainyautomation.com/blog/2010/11/21/adventures-in-dlna-with-blu-ray-players/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Redirect old aspx to new MVC</title>
		<link>http://www.brainyautomation.com/blog/2010/09/23/redirect-old-aspx-to-new-mvc/</link>
		<comments>http://www.brainyautomation.com/blog/2010/09/23/redirect-old-aspx-to-new-mvc/#comments</comments>
		<pubDate>Thu, 23 Sep 2010 22:55:42 +0000</pubDate>
		<dc:creator>steven</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.brainyautomation.com/blog/?p=115</guid>
		<description><![CDATA[I upgraded Dvdcrate.com to be ASP.NET MVC and one of the problem is the old pages are indexed by search<a href="http://www.brainyautomation.com/blog/2010/09/23/redirect-old-aspx-to-new-mvc/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>I upgraded Dvdcrate.com to be ASP.NET MVC and one of the problem is the old pages are indexed by search engines and being served on search results. So I have the old *.aspx page that I need to fix up and send along to the MVC page. </p>
<p>An example of the page in the search database;<br />
www.dvdcrate.com/viewdvd.aspx?upc=5027035006161</p>
<p>And I need it to go to the new MVC controller and action like this;<br />
www.dvdcrate.com/Media/Detail/5027035006161</p>
<p>So I did it this way, I put this in the Global.aspx.cs file;</p>
<pre name="code" class="csharp">
        protected void Application_BeginRequest (object sender, EventArgs e)
        {
            var requestUrl = Request.Url.ToString().ToLower();
            if (requestUrl.Contains("/viewdvd.aspx"))
            {
                var equalPos = requestUrl.LastIndexOf("=") + 1;
                var upc= requestUrl.Substring(equalPos, requestUrl.Length - equalPos);
                Context.Response.StatusCode = 301;
                Context.Response.Redirect("/Media/Detail/" + upc);
            }
       }
</pre>
<p>Probably not the most elegant, but it does work.</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brainyautomation.com/blog/2010/09/23/redirect-old-aspx-to-new-mvc/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>jQuery UI Themeswitcher Cookie Expires</title>
		<link>http://www.brainyautomation.com/blog/2010/09/23/jquery-ui-themeswitcher-cookie-expires/</link>
		<comments>http://www.brainyautomation.com/blog/2010/09/23/jquery-ui-themeswitcher-cookie-expires/#comments</comments>
		<pubDate>Thu, 23 Sep 2010 21:39:48 +0000</pubDate>
		<dc:creator>steven</dc:creator>
				<category><![CDATA[jquery UI]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.brainyautomation.com/blog/?p=110</guid>
		<description><![CDATA[So I disagree with the current setup that is the default configuration with jQuery UI Themeswitcher, it expires the cookie<a href="http://www.brainyautomation.com/blog/2010/09/23/jquery-ui-themeswitcher-cookie-expires/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>So I disagree with the current setup that is the default configuration with jQuery UI Themeswitcher, it expires the cookie at the end of the session. I mean really if the user is going to change the cookie to some color scheme they like chances are its going to be for longer than the current session and for crying out loud the user is going to expect your site to load the theme they selected last &#8211; else it looks broken. Just a poor decision in my opinion &#8211; so here is how I fixed it to last 1 year.</p>
<p>Download the <a href="http://jqueryui.com/themeroller/themeswitchertool/">themeswitcher.js</a> and save it locally wherever you like.</p>
<p>Now add the &#8220;cookieName&#8221; below this to the options defition in the file;</p>
<pre name="code" class="javascript">
    var options = jQuery.extend({
        loadTheme: null,
        initialText: 'Switch Theme',
        width: 150,
        height: 200,
        buttonPreText: 'Theme: ',
        closeOnSelect: true,
        buttonHeight: 14,
        cookieName: 'jquery-ui-theme',
        cookieExpires: 365,
        onOpen: function () { },
        onClose: function () { },
        onSelect: function () { }
    }, settings);
</pre>
<p>Now modify where the cookie gets made to use this new &#8220;cookieExpires&#8221; option (line 49);</p>
<pre name="code" class="javascript">
        $.cookie(options.cookieName, themeName, { expires: options.cookieExpires });
</pre>
<p>Know you can either use the default set here (365) or set your own in the initializer in your calling script;</p>
<pre name="code" class="javascript">
    $('#switcher').themeswitcher({ cookieExpires: 365, path: '/', loadTheme: "Sunny"});
</pre>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brainyautomation.com/blog/2010/09/23/jquery-ui-themeswitcher-cookie-expires/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Securing ELMAH with ASP.NET MVC</title>
		<link>http://www.brainyautomation.com/blog/2010/09/10/securing-elmah-with-asp-net-mvc/</link>
		<comments>http://www.brainyautomation.com/blog/2010/09/10/securing-elmah-with-asp-net-mvc/#comments</comments>
		<pubDate>Fri, 10 Sep 2010 01:31:55 +0000</pubDate>
		<dc:creator>steven</dc:creator>
				<category><![CDATA[asp.net mvc]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://www.brainyautomation.com/blog/?p=105</guid>
		<description><![CDATA[So I like Elmah and its logging of my unhandled exceptions suer, but I don&#8217;t need every yahoo with visibility<a href="http://www.brainyautomation.com/blog/2010/09/10/securing-elmah-with-asp-net-mvc/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>So I like <a href="http://code.google.com/p/elmah/">Elmah</a> and its logging of my unhandled exceptions suer, but I don&#8217;t need every yahoo with visibility to that. This is the steps I took to only allow Elmah access to users in the &#8220;Admin&#8221; role and have it still work with ASP.NET MVC.</p>
<p>Put this into the web.config;</p>
<pre name="code" class="xml">
  <location path="admin">
    <system.web>
      <httpHandlers>
        <add path="elmah.axd" verb="POST,GET,HEAD" type="Elmah.ErrorLogPageFactory, Elmah"/>
      </httpHandlers>
      <authorization>
        <allow roles="Admin"/>
        <deny users="*"/>
      </authorization>
    </system.web>
  </location>
</pre>
<p>Now put this into your global.asax, up top (before all the other routing) is best;</p>
<pre name="code" class="csharp">
            routes.IgnoreRoute("admin/elmah.axd");
            routes.IgnoreRoute("admin/{resource}.axd/{*pathInfo}");
</pre>
<p>You don&#8217;t have have any controller action setup, the handler builds this on the fly to handle the incomding axd request. Nice and simple.</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brainyautomation.com/blog/2010/09/10/securing-elmah-with-asp-net-mvc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple merging object to object</title>
		<link>http://www.brainyautomation.com/blog/2010/08/12/91/</link>
		<comments>http://www.brainyautomation.com/blog/2010/08/12/91/#comments</comments>
		<pubDate>Thu, 12 Aug 2010 21:07:07 +0000</pubDate>
		<dc:creator>steven</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[aspnetmvc]]></category>
		<category><![CDATA[csharp]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://www.brainyautomation.com/blog/?p=91</guid>
		<description><![CDATA[I use View Models to hand to my MVC views, nice and slim with little if any methods on them<a href="http://www.brainyautomation.com/blog/2010/08/12/91/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>I use View Models to hand to my MVC views, nice and slim with little if any methods on them and I use a think ORM model that has all my business logic and is generated by my ORM (BLToolkit).</p>
<p>So the problem is I wanted to take the View Model and update the ORM model with the modified values from the post, kind of a reverse AutoMapper (or BLToolkit.Mapper).</p>
<p>So a ORM class like this;</p>
<pre name="code" class="csharp">
    public class Contact
    {
         public int Id { get; set; }
         public string Firstname { get; set; }
         public string Lastname { get; set; }
         // Loads of other properties
    }
</pre>
<p>And a View Model like this (note the type and name should be &#8220;EXACTLY&#8221; the same;</p>
<pre name="code" class="csharp">
    public class ContactModel
    {
         public int Id { get; set; }
         public string Firstname { get; set; }
         public string Lastname { get; set; }
    }
</pre>
<p>Then with this generic Extension method;</p>
<pre name="code" class="csharp">
        public static void MergeWith<T1, T2>(this T1 primary, T2 secondary)
        {
            foreach (var pi in typeof(T2).GetProperties())
            {
                var tpi = typeof(T1).GetProperties().Where(x => x.Name == pi.Name).FirstOrDefault();
                if (tpi == null)
                {
                    continue;
                }
                var priValue = tpi.GetGetMethod().Invoke(primary, null);
                var secValue = pi.GetGetMethod().Invoke(secondary, null);
                if (priValue == null || !priValue.Equals(secValue))
                {
                    tpi.GetSetMethod().Invoke(primary, new object[] { secValue });
                }
            }
        }
</pre>
<p>So you make the magic in the Controller (for example) like this;</p>
<pre name="code" class="csharp">
[Authorize]
[HttpPost]
[ValidateAntiForgeryToken]
[ValidateInput(false)]
public ActionResult EditContact(ContactModel model)
    Contact c = Repo.Get&lt;Contact,long>(model.Id);
    c.MergeWith&lt;Contact,ContactModel>(model);
    Repo.Update&lt;Contact>(c);
}
</pre>
<p>Yea its cheesy, but it works for me <img src='http://www.brainyautomation.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brainyautomation.com/blog/2010/08/12/91/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Microsoft Live Writer + WordPress</title>
		<link>http://www.brainyautomation.com/blog/2010/07/30/microsoft-live-writer-wordpress/</link>
		<comments>http://www.brainyautomation.com/blog/2010/07/30/microsoft-live-writer-wordpress/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 22:39:35 +0000</pubDate>
		<dc:creator>steven</dc:creator>
				<category><![CDATA[wonderment]]></category>
		<category><![CDATA[livewriter]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.brainyautomation.com/blog/2010/07/30/microsoft-live-writer-wordpress/</guid>
		<description><![CDATA[Wanting to use Microsoft Live Writer to be able to make blog entries I thought I would see what sort<a href="http://www.brainyautomation.com/blog/2010/07/30/microsoft-live-writer-wordpress/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>Wanting to use <a href="http://explore.live.com/windows-live-writer" target="_blank">Microsoft Live Writer</a> to be able to make blog entries I thought I would see what sort of super magic it would take.</p>
<p>To my surprise once you setup your user account to have at least the “Editor” role in WordPress&#160; and then you enable the “XML-RPC” Remote Publishing option – your done. <img src='http://www.brainyautomation.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Super nice. Got to say that so far WordPress is an extremely polished project, there aren’t many open source projects on the same finish. The plug-in architecture and operation is something other projects should envy.</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brainyautomation.com/blog/2010/07/30/microsoft-live-writer-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moved to WordPress</title>
		<link>http://www.brainyautomation.com/blog/2010/07/30/moved-to-wordpress/</link>
		<comments>http://www.brainyautomation.com/blog/2010/07/30/moved-to-wordpress/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 04:11:22 +0000</pubDate>
		<dc:creator>steven</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.brainyautomation.com/blog/?p=59</guid>
		<description><![CDATA[So I just could not take the spam from friggin&#8217; BlogEngine.net and the fact that project doesn&#8217;t have a decent<a href="http://www.brainyautomation.com/blog/2010/07/30/moved-to-wordpress/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>So I just could not take the spam from friggin&#8217; BlogEngine.net and the fact that project doesn&#8217;t have a decent CAPTCHA to help block some of the SPAM is just mindboggling.</p>
<p>I personally don&#8217;t like getting 80-100 emails a day from those damn Payday Loan losers, I guess the BlogEngine.NET folks like that sort of stuff.</p>
<p>At any rate I figured WordPress should have lots of plugins for me to mess with and getting Live Writer integrated should be rather simple.</p>
<p>If your looking for some old posts, the search engine on WordPress is pretty good; most likely the page your looking for got moved around. I need to clean up the tags and slugs and all that bloggy stuff; perhaps tomorrow &#8211; perhaps.</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brainyautomation.com/blog/2010/07/30/moved-to-wordpress/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>DotNetOpenAuth MVC Template + VS2010 + Win7 64 == crap;</title>
		<link>http://www.brainyautomation.com/blog/2010/05/17/dotnetopenauth-mvc-template-vs2010-win7-64-crap/</link>
		<comments>http://www.brainyautomation.com/blog/2010/05/17/dotnetopenauth-mvc-template-vs2010-win7-64-crap/#comments</comments>
		<pubDate>Mon, 17 May 2010 05:20:00 +0000</pubDate>
		<dc:creator>steven</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[!justworks]]></category>
		<category><![CDATA[rant]]></category>

		<guid isPermaLink="false">/blog/post/DotNetOpenAuth-MVC-Template-2b-VS2010-2b-Win7-64-3d3d-crap3b.aspx</guid>
		<description><![CDATA[Well I was playing around with trying to setup a new MVC 2.0 site to use DotNetOpenAuth and I was<a href="http://www.brainyautomation.com/blog/2010/05/17/dotnetopenauth-mvc-template-vs2010-win7-64-crap/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>Well I was playing around with trying to setup a new MVC 2.0 site to use<a href="http://www.dotnetopenauth.net/"> DotNetOpenAuth</a> and I was thrilled to see that the site has a template you can download to make an example site. <strong>Excellent</strong> I thought!</p>
<p>But of course then I tried it; Using VS210 (10.0.30319.1 RTMRel) and ASP.NET MVC 2 I get this lovely error once I get past the setup.aspx page;</p>
<pre>The view at '~/Views/Home/Index.aspx' must derive from ViewPage, ViewPage, ViewUserControl, or ViewUserControl.</pre>
<p>Humm I figure its something I am doing so I go out and get my Google fu on, I find its a <a href="http://aspnet.codeplex.com/WorkItem/View.aspx?WorkItemId=3939">common problem</a> with <a href="http://aspnet.codeplex.com/WorkItem/View.aspx?WorkItemId=3925">VS2010 + ASP.NET MVC + Win7 64 Bit</a>. Ah Joy.</p>
<p>So download the<a href="https://www.ohloh.net/p/dotnetopenauth/download?package=DotNetOpenAuth+project+templates&amp;release=3.4.3"> VS2008 template</a>, using VS2008, run through the setup.aspx and viola it works like a charm. No funky errors with the template and the redirect they are doing.</p>
<p>Thought I would share as I was kinda sad to see that a VS2010 bug with ASP.NET MVC persisted past QA. So sad.</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brainyautomation.com/blog/2010/05/17/dotnetopenauth-mvc-template-vs2010-win7-64-crap/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

