<?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>Driven to Develop</title>
	<atom:link href="https://davidohara.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>https://davidohara.wordpress.com</link>
	<description></description>
	<lastBuildDate>Wed, 04 Jan 2012 00:09:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='davidohara.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>https://s0.wp.com/i/buttonw-com.png</url>
		<title>Driven to Develop</title>
		<link>https://davidohara.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="https://davidohara.wordpress.com/osd.xml" title="Driven to Develop" />
	<atom:link rel='hub' href='https://davidohara.wordpress.com/?pushpress=hub'/>
	<item>
		<title>Moving On&#8230;</title>
		<link>https://davidohara.wordpress.com/2012/01/03/moving-on/</link>
		
		<dc:creator><![CDATA[David O'Hara]]></dc:creator>
		<pubDate>Wed, 04 Jan 2012 02:00:04 +0000</pubDate>
				<category><![CDATA[Work]]></category>
		<guid isPermaLink="false">http://davidohara.wordpress.com/?p=350</guid>

					<description><![CDATA[I have moved to a new location for a fresh start. No new posts will show up here moving forward.]]></description>
										<content:encoded><![CDATA[<p>I have moved to <a href="http://driventodevelop.com/" title="Driven To Develop">a new location</a> for a fresh start. No new posts will show up here moving forward.</p>
]]></content:encoded>
					
		
		
		
		<media:content url="https://1.gravatar.com/avatar/7dd23c1795b0228d8e4058aa6012a798c0bc3ff041a2432efbf060ac404e00b4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">davidohara</media:title>
		</media:content>
	</item>
		<item>
		<title>Adding Viemu to the Toolbelt&#8230;</title>
		<link>https://davidohara.wordpress.com/2010/10/12/adding-viemu-to-the-toolbelt/</link>
					<comments>https://davidohara.wordpress.com/2010/10/12/adding-viemu-to-the-toolbelt/#comments</comments>
		
		<dc:creator><![CDATA[David O'Hara]]></dc:creator>
		<pubDate>Tue, 12 Oct 2010 19:10:55 +0000</pubDate>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Productivity]]></category>
		<category><![CDATA[vim]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<guid isPermaLink="false">http://davidohara.wordpress.com/?p=333</guid>

					<description><![CDATA[{EAV:c17259d988f193ac} Setup Since I&#8217;ve been using MacVim more and more in my personal development projects, I&#8217;ve grown to have a significant amount of muscle memory. Pretty frequently now I find a string of &#8216;jjjj&#8217; in the middle of my C# code as I&#8217;m trying to take a look at what it&#8217;s doing. So I figured [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><span style="display:none;">{EAV:c17259d988f193ac}</span></p>
<h3>Setup</h3>
<p>Since I&#8217;ve been using <a href="http://code.google.com/p/macvim/" title="macvim - Project Hosting on Google Code">MacVim</a> more and more in my personal development projects, I&#8217;ve grown to have a significant amount of muscle memory. Pretty frequently now I find a string of &#8216;jjjj&#8217; in the middle of my C# code as I&#8217;m trying to take a look at what it&#8217;s doing. So I figured it was time to explore the possibilities of getting <a href="http://www.viemu.com/" title="ViEmu: vi-vim editor emulation for Visual Studio, Word, Outlook and SQL Server">viemu</a> up and going. The biggest hurdle was my concern about losing <a href="http://www.devexpress.com/coderush" title="Coding Assistance Add-in (Code Generator) for Visual Studio - DevExpress CodeRush&#x2122;">CodeRush/Refactor Pro!</a> support. I am heavily dependent on them so they had to play nice together. Good news. This worked out of the box. After a quick install of viemu and a firing up Visual Studio, I was off and running.</p>
<h3>Small tweaks</h3>
<p>I did have to make a couple of small adjustments. First was my key re-mappings. In <a href="http://github.com/davidmohara/configs" title="GitHub - configs">my configs </a>, I snagged a couple of key mappings that I&#8217;ve found really helpful. I needed these same behaviors in viemu in order to take advantage of all my muscle memory. The key was creating the .viemurc file in my home directory since it picks that file up by default.</p>
<p>I also had an issue with colors &#8211; I prefer dark themes both in vim &amp; Visual Studio. By default, the highlight in viemu clashes so strongly with my theme that I had to disable it. I couldn&#8217;t get it to switch up the color schemes appropriately either so I&#8217;m guessing I&#8217;ll have to dig a bit more to get that working but overall I&#8217;m pretty happy. If I find a way to get this working properly, I&#8217;ll update the post.</p>
<hr />
<p><span style="text-align:center;"><img src="https://davidohara.wordpress.com/wp-content/uploads/2007/12/bullet-splat.png?w=20" title="Improving Enterprises" width="20" />David O&#8217;Hara is a Principal with <a href="http://improvingenterprises.com/">Improving Enterprises</a> in Dallas, Texas.</span></p>
]]></content:encoded>
					
					<wfw:commentRss>https://davidohara.wordpress.com/2010/10/12/adding-viemu-to-the-toolbelt/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		
		<media:content url="https://1.gravatar.com/avatar/7dd23c1795b0228d8e4058aa6012a798c0bc3ff041a2432efbf060ac404e00b4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">davidohara</media:title>
		</media:content>

		<media:content url="https://davidohara.wordpress.com/wp-content/uploads/2007/12/bullet-splat.png" medium="image">
			<media:title type="html">Improving Enterprises</media:title>
		</media:content>
	</item>
		<item>
		<title>Agile.NET Conference&#8230;</title>
		<link>https://davidohara.wordpress.com/2010/04/08/agile-net-conference/</link>
		
		<dc:creator><![CDATA[David O'Hara]]></dc:creator>
		<pubDate>Thu, 08 Apr 2010 13:27:14 +0000</pubDate>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Agile]]></category>
		<category><![CDATA[Improving Enterprises]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Presenting]]></category>
		<guid isPermaLink="false">http://davidohara.wordpress.com/?p=326</guid>

					<description><![CDATA[On April 30th, Improving Enterprises and Microsoft are hosting the Agile.NET conference at Microsoft&#8217;s Irving office. It&#8217;s a conference that will showcase agile principles and practices as well as tools in the .NET ecosystem. I&#8217;m excited to be doing a talk on git as it&#8217;s become a big point of evangelism for me personally but [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><img src="https://davidohara.wordpress.com/wp-content/uploads/2010/04/image.jpg?w=450" alt="image.jpg" border="0"/></p>
<p>On April 30th, <a href="http://improvingenterprises.com/">Improving Enterprises</a> and <a href="http://microsoft.com/">Microsoft</a> are hosting the <a href="http://agiledotnet.com/">Agile.NET</a> conference at Microsoft&#8217;s Irving office. It&#8217;s a conference that will showcase agile principles and practices as well as tools in the .NET ecosystem. I&#8217;m excited to be doing a <a href="http://agiledotnet.com/advanced/">talk on git</a> as it&#8217;s become a big point of evangelism for me personally but I&#8217;m also interested to hear some of the other tracks of great speakers.</p>
<p>Regardless of whether you&#8217;re new to agile concepts or already moving towards adoption, you will have an informative and good time. Space is limited so be sure to <a href="http://www.eventbrite.com/event/631287197">go sign up</a> while there are still spaces available.</p>
<hr />
<p><span style="text-align:center;"><img src="https://davidohara.wordpress.com/wp-content/uploads/2007/12/bullet-splat.png?w=20" title="Improving Enterprises" width="20" />David O&#8217;Hara is a Principal with <a href="http://improvingenterprises.com/">Improving Enterprises</a> in Dallas, Texas.</span></p>
]]></content:encoded>
					
		
		
		
		<media:content url="https://1.gravatar.com/avatar/7dd23c1795b0228d8e4058aa6012a798c0bc3ff041a2432efbf060ac404e00b4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">davidohara</media:title>
		</media:content>

		<media:content url="https://davidohara.wordpress.com/wp-content/uploads/2010/04/image.jpg" medium="image">
			<media:title type="html">image.jpg</media:title>
		</media:content>

		<media:content url="https://davidohara.wordpress.com/wp-content/uploads/2007/12/bullet-splat.png" medium="image">
			<media:title type="html">Improving Enterprises</media:title>
		</media:content>
	</item>
		<item>
		<title>Using Interfaces for Model in ASP.NET MVC (Impl)&#8230;</title>
		<link>https://davidohara.wordpress.com/2009/08/18/using-interfaces-for-model-in-asp-net-mvc-impl/</link>
					<comments>https://davidohara.wordpress.com/2009/08/18/using-interfaces-for-model-in-asp-net-mvc-impl/#comments</comments>
		
		<dc:creator><![CDATA[David O'Hara]]></dc:creator>
		<pubDate>Wed, 19 Aug 2009 03:08:01 +0000</pubDate>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP.NET MVC]]></category>
		<category><![CDATA[Castle]]></category>
		<guid isPermaLink="false">http://davidohara.wordpress.com/?p=319</guid>

					<description><![CDATA[I mentioned in my first post that we were using interfaces to represent our models and WHY we did it. So here&#8217;s the HOW of doing it. Binding As I mentioned, we used the model attribute to decorate our models when they are in the method signature. This attribute was based on the AbstractParameterBinderAttribute from [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>I mentioned in my <a href="https://davidohara.wordpress.com/2009/08/05/using-interfaces-for-model-in-asp-net-mvc/" title="Using Interfaces for Model in ASP.NET MVC">first post</a> that we were using interfaces to represent our models and WHY we did it. So here&#8217;s the HOW of doing it.</p>
<h3>Binding</h3>
<p>As I mentioned, we used the model attribute to decorate our models when they are in the method signature. This attribute was based on the <em>AbstractParameterBinderAttribute</em> from <a href="http://www.codeplex.com/MVCContrib" title="MVC Contrib">MvcContrib</a> (if you&#8217;re using ASP.NET MVC and NOT using MvcContrib, you&#8217;re probably re-inventing more than a few wheels) which is just a <em>CustomModelBinderAttribute</em> with a little bit of happy sprinkled in. Here&#8217;s what our binding looked like:</p>
<pre class="brush: csharp; title: ; notranslate">
public override object BindModel(ControllerContext controllerContext, ModelBindingContext bindingContext)
{
	ViewDataDictionary viewData = GetViewData(controllerContext.Controller);
	object result = null;
	if (viewData != null)
	{
		result = viewData.For(controllerContext, bindingContext);
		SetViewData(result, controllerContext, bindingContext, viewData);
	}
	return result;
}
</pre>
<p>The <em>GetViewData</em> and <em>SetViewData</em> are pretty self-explanatory but the real heavy lifting is in that extension method. Let&#8217;s take a look at it.</p>
<h3>DictionaryAdapter</h3>
<p>We know that we have a giant dictionary holding on to our data and tedious mapping using strings make me itchy, not to mention it breaking my refactoring tool, so how do we push the values without them? <a href="http://www.castleproject.org/components/dictionaryadapter/index.html" title="DictionaryAdapter Component :: Castle Project">DictionaryAdapter</a> from Castle. This little known, under utilized piece of work was shown to me by <a href="http://blogs.hibernatingrhinos.com/Craig/Default.aspx" title="Don't click this link - he NEVER actually blogs">Craig Neuwirt</a>, it&#8217;s creator, and I&#8217;m constantly amazed at it&#8217;s usefulness. Observe the following extension method for <em>ViewData</em>:</p>
<pre class="brush: csharp; title: ; notranslate">
private static readonly IDictionaryAdapterFactory
	ViewDataFactory = new DictionaryAdapterFactory();

public static object For(this ViewDataDictionary viewData, ControllerContext controllerContext, ModelBindingContext bindingContext)
{
	ViewDataAdapter data = new ViewDataAdapter(viewData);
	object adapter = ViewDataFactory.GetAdapter(bindingContext.ModelType, data);

	IDictionaryAdapter meta = adapter as IDictionaryAdapter;
	meta.FetchProperties();
	
	return adapter;
}
</pre>
<p>It&#8217;s that simple. No, really. The DictionaryAdapter will match up the properties on the interface you defined with the corresponding elements in the ViewData and push their values into an instance of the model. All of that, without you even having to buy it dinner.</p>
<h3>There&#8217;s more??</h3>
<p>This approach worked great for us and gave us most of what we needed, however, this code doesn&#8217;t handle rehydrating objects from ActiveRecord &#8211; yet. But that&#8217;s a post for another night&#8230;</p>
<p>CORRECTION: Craig informed me that he did not create it originally but re-wrote it&#8217;s initial implementation to what it is now. Sorry for the misunderstanding.</p>
<hr />
<p><span style="text-align:center;"><img src="https://davidohara.wordpress.com/wp-content/uploads/2007/12/bullet-splat.png?w=20" title="Improving Enterprises" width="20" />David O&#8217;Hara is a Principal with <a href="http://improvingenterprises.com/">Improving Enterprises</a> in Dallas, Texas.</span></p>
]]></content:encoded>
					
					<wfw:commentRss>https://davidohara.wordpress.com/2009/08/18/using-interfaces-for-model-in-asp-net-mvc-impl/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
		
		<media:content url="https://1.gravatar.com/avatar/7dd23c1795b0228d8e4058aa6012a798c0bc3ff041a2432efbf060ac404e00b4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">davidohara</media:title>
		</media:content>

		<media:content url="https://davidohara.wordpress.com/wp-content/uploads/2007/12/bullet-splat.png" medium="image">
			<media:title type="html">Improving Enterprises</media:title>
		</media:content>
	</item>
		<item>
		<title>Improving Podcasts&#8230;</title>
		<link>https://davidohara.wordpress.com/2009/08/11/improving-podcasts/</link>
		
		<dc:creator><![CDATA[David O'Hara]]></dc:creator>
		<pubDate>Wed, 12 Aug 2009 02:57:48 +0000</pubDate>
				<category><![CDATA[Improving Enterprises]]></category>
		<category><![CDATA[Improving Podcasts]]></category>
		<category><![CDATA[Presenting]]></category>
		<guid isPermaLink="false">http://davidohara.wordpress.com/?p=316</guid>

					<description><![CDATA[My first podcast (the fifth for the series) is up &#8211; we discussed technical presentations and had a great time doing so. I&#8217;m very fortunate to work with such great people and had a wonderful time. Thanks to Allen and Mike for moderating and putting the whole thing together. Check it out at: Improving Podcasts [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>My first podcast (the fifth for the series) is up &#8211; we discussed technical presentations and had a great time doing so. I&#8217;m very fortunate to work with such great people and had a wonderful time. Thanks to Allen and Mike for moderating and putting the whole thing together.</p>
<p>Check it out at: <a href="http://improvingpodcasts.com/" title="It's what we say">Improving Podcasts</a></p>
<hr />
<p><span style="text-align:center;"><img src="https://davidohara.wordpress.com/wp-content/uploads/2007/12/bullet-splat.png?w=20" title="Improving Enterprises" width="20" />David O&#8217;Hara is a Principal with <a href="http://improvingenterprises.com/">Improving Enterprises</a> in Dallas, Texas.</span></p>
]]></content:encoded>
					
		
		
		
		<media:content url="https://1.gravatar.com/avatar/7dd23c1795b0228d8e4058aa6012a798c0bc3ff041a2432efbf060ac404e00b4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">davidohara</media:title>
		</media:content>

		<media:content url="https://davidohara.wordpress.com/wp-content/uploads/2007/12/bullet-splat.png" medium="image">
			<media:title type="html">Improving Enterprises</media:title>
		</media:content>
	</item>
		<item>
		<title>Using Interfaces for Model in ASP.NET MVC&#8230;</title>
		<link>https://davidohara.wordpress.com/2009/08/05/using-interfaces-for-model-in-asp-net-mvc/</link>
					<comments>https://davidohara.wordpress.com/2009/08/05/using-interfaces-for-model-in-asp-net-mvc/#comments</comments>
		
		<dc:creator><![CDATA[David O'Hara]]></dc:creator>
		<pubDate>Wed, 05 Aug 2009 13:28:15 +0000</pubDate>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP.NET MVC]]></category>
		<category><![CDATA[Castle]]></category>
		<guid isPermaLink="false">http://davidohara.wordpress.com/?p=309</guid>

					<description><![CDATA[Brad Wilson tweeted asking about using interfaces for models in an ASP.NET MVC project and I was tempted to respond but figured this, rather than the 140 character limited avenue of Twitter, would be a better medium. The short answer is that we used binders and attributes to do our heavy lifting for us so [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a href="http://twitter.com/bradwilson/status/3120496944" title="Brad Wilson Twitter Stream">Brad Wilson tweeted</a> asking about using interfaces for models in an <a href="http://www.asp.net/mvc/" title="ASP.NET MVC : The Official Microsoft ASP.NET Site">ASP.NET MVC</a> project and I was tempted to respond but figured this, rather than the 140 character limited avenue of Twitter, would be a better medium. The short answer is that we used binders and attributes to do our heavy lifting for us so that instead of our code looking like this:</p>
<pre class="brush: csharp; title: ; notranslate">
public ActionResult Login(string username, string password, bool rememberMe)
{
  ...
}
</pre>
<p>it ended up looking like this:</p>
<pre class="brush: csharp; title: ; notranslate">
public ActionResult Login([Model]ILoginModel model)
{
  ...
}
</pre>
<p>with the declaration of the model looking like this:</p>
<pre class="brush: csharp; title: ; notranslate">
public interface ILoginModel
{
  string Username{get;set;}
  string Password{get;set;}
  bool RememberMe{get;set;}
}
</pre>
<p>Our model attribute was responsible for pulling in the values from our ViewData and then binding them using the DictionaryAdapter (probably one of the most powerful, under-documented pieces of the whole stack) from Castle.</p>
<h3>Advantages</h3>
<p>Doing this allowed us to keep our dealings with the models strongly typed (yes, this is NOT unique to using interfaces vs. classes), minimized the code needed for the model since it&#8217;s just an interface but also keeps anyone from &#8220;accidentally&#8221; pushing logic down into the model that belongs elsewhere.</p>
<p>Next up, the guts of how we used DictionaryAdapter to do this&#8230;</p>
<hr />
<p><span style="text-align:center;"><img src="https://davidohara.wordpress.com/wp-content/uploads/2007/12/bullet-splat.png?w=20" title="Improving Enterprises" width="20" />David O&#8217;Hara is a Principal with <a href="http://improvingenterprises.com/">Improving Enterprises</a> in Dallas, Texas.</span></p>
]]></content:encoded>
					
					<wfw:commentRss>https://davidohara.wordpress.com/2009/08/05/using-interfaces-for-model-in-asp-net-mvc/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		
		<media:content url="https://1.gravatar.com/avatar/7dd23c1795b0228d8e4058aa6012a798c0bc3ff041a2432efbf060ac404e00b4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">davidohara</media:title>
		</media:content>

		<media:content url="https://davidohara.wordpress.com/wp-content/uploads/2007/12/bullet-splat.png" medium="image">
			<media:title type="html">Improving Enterprises</media:title>
		</media:content>
	</item>
		<item>
		<title>Announcement: C# SIG &#8211; Double Header</title>
		<link>https://davidohara.wordpress.com/2009/06/03/announcement-c-sig-double-header/</link>
		
		<dc:creator><![CDATA[David O'Hara]]></dc:creator>
		<pubDate>Wed, 03 Jun 2009 12:51:17 +0000</pubDate>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[C# SIG]]></category>
		<category><![CDATA[Castle Windsor]]></category>
		<category><![CDATA[CodeRush]]></category>
		<category><![CDATA[Presentation]]></category>
		<guid isPermaLink="false">http://davidohara.wordpress.com/?p=304</guid>

					<description><![CDATA[Tomorrow night (Thursday), I&#8217;ll be speaking at the C# SIG. Since I&#8217;ve been watching so many TED videos, I&#8217;ve come to think that NO ONE should expound for 2 hours on any single subject &#8211; the quantity is just overwhelming. To that end, I&#8217;ll be breaking up my time and doing not 1 but *2* [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Tomorrow night (Thursday), I&#8217;ll be speaking at the C# SIG. Since I&#8217;ve been watching so many TED videos, I&#8217;ve come to think that NO ONE should expound for 2 hours on any single subject &#8211; the quantity is just overwhelming. To that end, I&#8217;ll be breaking up my time and doing not 1 but <strong>*2*</strong> presentations.</p>
<h3>Building a Castle: Introduction to Windsor</h3>
<p>Getting introduced to Castle Windsor can be a daunting thing, I know since I&#8217;ve gone thru it. But under the covers, there is a great power. This talk will introduce the concepts as well as the methods to harness and take full advantage of all that power without getting overwhelmed.</p>
<h3>CodeRush Ninja Training</h3>
<p>If your not using a productivity tool, you&#8217;re ripping off your customers and wasting your time. We will take a look at how CodeRush can help you to be more productive in code and have a great time doing it. With a little practice, you can learn to be a CodeRush ninja too.</p>
<p>Come <a href="http://www.dallas-csharp-sig.com/" title="Dallas C# SIG Home">sign up</a> and I look forward to seeing you there.</p>
<hr />
<p><span style="text-align:center;"><img src="https://davidohara.wordpress.com/wp-content/uploads/2007/12/bullet-splat.png?w=20" title="Improving Enterprises" width="20" />David O&#8217;Hara is a Principal with <a href="http://improvingenterprises.com/">Improving Enterprises</a> in Dallas, Texas.</span></p>
]]></content:encoded>
					
		
		
		
		<media:content url="https://1.gravatar.com/avatar/7dd23c1795b0228d8e4058aa6012a798c0bc3ff041a2432efbf060ac404e00b4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">davidohara</media:title>
		</media:content>

		<media:content url="https://davidohara.wordpress.com/wp-content/uploads/2007/12/bullet-splat.png" medium="image">
			<media:title type="html">Improving Enterprises</media:title>
		</media:content>
	</item>
		<item>
		<title>Speeding up MacBook Pro Sleep &#038; Resume&#8230;</title>
		<link>https://davidohara.wordpress.com/2009/05/01/speeding-up-macbook-pro-sleep-resume/</link>
					<comments>https://davidohara.wordpress.com/2009/05/01/speeding-up-macbook-pro-sleep-resume/#comments</comments>
		
		<dc:creator><![CDATA[David O'Hara]]></dc:creator>
		<pubDate>Fri, 01 May 2009 13:11:42 +0000</pubDate>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[MacBook Pro]]></category>
		<category><![CDATA[Tips]]></category>
		<guid isPermaLink="false">http://davidohara.wordpress.com/?p=300</guid>

					<description><![CDATA[One of the things I absolutely love and have shown off to more than a few people, is how quickly my Mac goes in and out of sleep mode. It means that I can open and close with abandon and not really have to worry about it affecting my productivity. It also means that when [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>One of the things I absolutely love and have shown off to more than a few people, is how quickly my Mac goes in and out of sleep mode. It means that I can open and close with abandon and not really have to worry about it affecting my productivity. It also means that when I realize I&#8217;m running late, I can drop the lid and don&#8217;t have to twiddle my thumbs very long (sans Solitaire/<a title="WebSudoku" href="http://www.websudoku.com">WebSudoku</a>) while I wait for everything to spin down. I love this &#8211; when it works. Occasionally when I attempt to wake my machine, I will get a totally black screen with no login prompt. The machine appears to be awake but the screen isn&#8217;t active. Closing the lid does not put it back to sleep so I have to power cycle the thing to get it going again. I know, I know, everyone is going to give me grief about how Mac just works and whatnot but it&#8217;s total bollocks. EVERYTHING has issues. Live with it.</p>
<h3>Tweak  It</h3>
<p>Never one to stop fiddling and exploring, I recently ran across <a title="Fixing MacBook Pro Sleep Problems" href="http://www.windley.com/archives/2007/10/fixing_macbook_pro_sleep_problems.shtml">this post</a> where a guy was complaining that they&#8217;d messed with the sleep behavior between his trusty Powerbook and the new MacBook. He detailed a tweak that made this already great (albeit occasionally flaky) feature even better along with a good explanation of the details of the change. He claims it&#8217;s more reliable but I haven&#8217;t had it long enough to say one way or the other yet but I can tell you, my MBP sleeps and wakes nearly instantly now. The only thing that this tweak takes away from you is the ability to swap out batteries while the machine is in sleep mode. Since I didn&#8217;t even imagine I could do that and I&#8217;m not really sure I would do that anyway since I don&#8217;t have any spare batteries, I didn&#8217;t feel like I was giving anything up. I&#8217;m duplicating the tweak here for reference purposes and you &#8220;lazy&#8221; folks who aren&#8217;t going to go read the original post:</p>
<p>From the terminal, you should check your current mode using:</p>
<pre class="brush: ruby; title: ; notranslate">
pmset -g | grep hibernatemode
</pre>
<p>Then set you machine to use mode 0:</p>
<pre class="brush: ruby; title: ; notranslate">
sudo pmset -a hibernatemode 0
</pre>
<p>And reboot.<br />
If you&#8217;d like to clear out the file where the memory was being written to, you can use this:</p>
<pre class="brush: ruby; title: ; notranslate">
sudo rm /var/vm/sleepimage
</pre>
<hr />
<p><span style="text-align:center;"><img title="Improving Enterprises" src="https://davidohara.wordpress.com/wp-content/uploads/2007/12/bullet-splat.png?w=20" alt="" width="20" />David O&#8217;Hara is a Principal with <a href="http://improvingenterprises.com/">Improving Enterprises</a> in Dallas, Texas.</span></p>
]]></content:encoded>
					
					<wfw:commentRss>https://davidohara.wordpress.com/2009/05/01/speeding-up-macbook-pro-sleep-resume/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
		
		<media:content url="https://1.gravatar.com/avatar/7dd23c1795b0228d8e4058aa6012a798c0bc3ff041a2432efbf060ac404e00b4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">davidohara</media:title>
		</media:content>

		<media:content url="https://davidohara.wordpress.com/wp-content/uploads/2007/12/bullet-splat.png" medium="image">
			<media:title type="html">Improving Enterprises</media:title>
		</media:content>
	</item>
		<item>
		<title>Issue with Radiant Extensions on Heroku&#8230;</title>
		<link>https://davidohara.wordpress.com/2009/04/26/issue-with-radiant-extensions-on-heroku/</link>
					<comments>https://davidohara.wordpress.com/2009/04/26/issue-with-radiant-extensions-on-heroku/#comments</comments>
		
		<dc:creator><![CDATA[David O'Hara]]></dc:creator>
		<pubDate>Mon, 27 Apr 2009 05:05:25 +0000</pubDate>
				<category><![CDATA[Heroku]]></category>
		<category><![CDATA[Radiant CMS]]></category>
		<category><![CDATA[Ruby]]></category>
		<guid isPermaLink="false">http://davidohara.wordpress.com/?p=294</guid>

					<description><![CDATA[Background Recently, I&#8217;ve decided to work with Ruby a little more and I&#8217;ve been trying to wrap my head around a number of new things. I&#8217;m working to put together a series of posts that will detail my exploration but I ran into a nasty issue and wanted to get something up to help anyone [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><img src="https://davidohara.wordpress.com/wp-content/uploads/2009/04/pit.jpg?w=140" alt="Falling" border="0" width="140" style="float:right;" /></p>
<h3>Background</h3>
<p>Recently, I&#8217;ve decided to work with Ruby a little more and I&#8217;ve been trying to wrap my head around a number of new things. I&#8217;m working to put together a series of posts that will detail my exploration but I ran into a nasty issue and wanted to get something up to help anyone else who falls into this little pit.</p>
<h3>Setup</h3>
<p>I have been using <a href="http://heroku.com" title="Umm...the best place to host your stuff - EVAR!!">Heroku</a> in my explorations and have come to truly dig their service. These guys know what the heck their doing and really make me feel like I do as well. Anyway, since I needed a CMS for the project I was working on, I grabbed <a href="http://radiantcms.org/" title="Radiant CMS">Radiant</a> and started playing. It worked quite well out of the box for me and was supported on Heroku (<a href="http://blog.heroku.com/archives/2009/3/26/radiant_cms_in_5_minutes_or_less/" title="Heroku | Radiant CMS in 5 Minutes Or Less">directions here</a>) so I installed several of the extensions that I needed and pushed it up to Heroku.</p>
<p>Uh oh. No worky.</p>
<p>I pulled down the logs from Heroku, I sent emails to everyone I could think of, I Googled, I re-pushed (yes, I know that&#8217;s <a href="http://www.brainyquote.com/quotes/quotes/a/alberteins133991.html" title="It's a Mad, Mad World">the definition of insanity</a>), I even shook my fist at the bash shell but could not get it to work.</p>
<h3>Resolution</h3>
<p>Along the way, I came to find a couple of rather important pieces of info. Heroku doesn&#8217;t support Git on the server side (like git-wiki). And Git has sub-modules. These two important details, and the fact that I was unaware of the previously, is what lead to me to grab a copy of what was on the production server (the bundle command on Heroku) and dissect it. The extension directories were completely empty. Because of the sub-modules, Git wasn&#8217;t pushing them to Heroku and so the extensions weren&#8217;t loaded. Removing the sub-modules and then adding the files from the extensions, followed by a re-push and I was back in business.<br />
Hope this help.</p>
<hr />
<p><span style="text-align:center;"><img src="https://davidohara.wordpress.com/wp-content/uploads/2007/12/bullet-splat.png?w=20" title="Improving Enterprises" width="20" />David O&#8217;Hara is a Principal with <a href="http://improvingenterprises.com/">Improving Enterprises</a> in Dallas, Texas.</span></p>
]]></content:encoded>
					
					<wfw:commentRss>https://davidohara.wordpress.com/2009/04/26/issue-with-radiant-extensions-on-heroku/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
		
		<media:content url="https://1.gravatar.com/avatar/7dd23c1795b0228d8e4058aa6012a798c0bc3ff041a2432efbf060ac404e00b4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">davidohara</media:title>
		</media:content>

		<media:content url="https://davidohara.wordpress.com/wp-content/uploads/2009/04/pit.jpg" medium="image">
			<media:title type="html">Falling</media:title>
		</media:content>

		<media:content url="https://davidohara.wordpress.com/wp-content/uploads/2007/12/bullet-splat.png" medium="image">
			<media:title type="html">Improving Enterprises</media:title>
		</media:content>
	</item>
		<item>
		<title>AgileDotNet Conference&#8230;</title>
		<link>https://davidohara.wordpress.com/2008/11/11/agiledotnet-conference/</link>
					<comments>https://davidohara.wordpress.com/2008/11/11/agiledotnet-conference/#comments</comments>
		
		<dc:creator><![CDATA[David O'Hara]]></dc:creator>
		<pubDate>Tue, 11 Nov 2008 14:30:06 +0000</pubDate>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Agile]]></category>
		<category><![CDATA[Improving Enterprises]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Presentation]]></category>
		<guid isPermaLink="false">http://davidohara.wordpress.com/?p=290</guid>

					<description><![CDATA[This Friday, Improving Enterprises and Microsoft are putting on a 1-day FREE (as in beer) conference to showcase agile methods in a .NET ecosystem. I will be giving my &#8220;Refactoring To Patterns&#8221; talk on the development track but there will also be two other tracks (Biz/PM related &#38; Requirements/QA related) and number of knowledgeable speakers. [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><img src="https://davidohara.wordpress.com/wp-content/uploads/2008/11/013373e1-c8a5-4f1b-b52f-6886ebdd0a1d.jpg?w=400" border="0" alt="AgileDotNet Conference 2008" width="400" /><br />
This Friday, <a title="Improving Enterprises" href="http://www.improvingenterprises.com/">Improving Enterprises</a> and <a title="Microsoft Corporation" href="http://www.microsoft.com/">Microsoft</a> are putting on a 1-day FREE (as in beer) conference to showcase agile methods in a .NET ecosystem. I will be giving my &#8220;Refactoring To Patterns&#8221; talk on the development track but there will also be two other tracks (Biz/PM related &amp; Requirements/QA related) and number of <a title="AgileDotNet 2008" href="http://www.agiledotnet.com/Bios.aspx">knowledgeable speakers</a>. I&#8217;m really looking forward to hanging out with folks and sharing ideas on how we can better promote and utilize the systems we work with to adopt agile practices and principles.</p>
<p>Regardless of whether you&#8217;re new to agile concepts or already moving towards adoption, you will have an informative and good time. If you&#8217;re interested, <a title="AgileDotNet 2008" href="http://www.agiledotnet.com/">go sign up</a> while there are still spaces available.</p>
<hr />
<p><span style="text-align:center;"><img title="Improving Enterprises" src="https://davidohara.wordpress.com/wp-content/uploads/2007/12/bullet-splat.png?w=20" alt="" width="20" />David O&#8217;Hara is a Principal with <a href="http://improvingenterprises.com/">Improving Enterprises</a> in Dallas, Texas.</span></p>
]]></content:encoded>
					
					<wfw:commentRss>https://davidohara.wordpress.com/2008/11/11/agiledotnet-conference/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		
		<media:content url="https://1.gravatar.com/avatar/7dd23c1795b0228d8e4058aa6012a798c0bc3ff041a2432efbf060ac404e00b4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">davidohara</media:title>
		</media:content>

		<media:content url="https://davidohara.wordpress.com/wp-content/uploads/2008/11/013373e1-c8a5-4f1b-b52f-6886ebdd0a1d.jpg" medium="image">
			<media:title type="html">AgileDotNet Conference 2008</media:title>
		</media:content>

		<media:content url="https://davidohara.wordpress.com/wp-content/uploads/2007/12/bullet-splat.png" medium="image">
			<media:title type="html">Improving Enterprises</media:title>
		</media:content>
	</item>
	</channel>
</rss>
