<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>The Space Between Article RSS Feed</title>
    <link>http://lukewendling.com/rss/</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>The main blog feed for The Space Between.</description>


        <item>
          <title>patch rails sql server odbc driver</title>
          <description>&lt;h3&gt;patch ODBCColumn with alias_method_chain&lt;/h3&gt;


	&lt;p&gt;Here&amp;#8217;s a quick-fix if you&amp;#8217;re using the &lt;a href=&quot;http://odbc-rails.rubyforge.org/RailsAdapterWebHOWTOAdapter.html&quot;&gt;&lt;span class=&quot;caps&quot;&gt;ODBC&lt;/span&gt; Adapter for Active Record&lt;/a&gt; gem/plugin and are getting errors with &lt;code&gt;rake db:migrate&lt;/code&gt; when your schema includes a sql server &lt;code&gt;sql_variant&lt;/code&gt;.&lt;/p&gt;</description>
          <pubDate>Fri, 28 Mar 2008 15:06:11 GMT</pubDate>
          <guid>http://lukewendling.com/articles/2008/03/28/patch-rails-sql-server-odbc-driver/</guid>
          <link>http://lukewendling.com/articles/2008/03/28/patch-rails-sql-server-odbc-driver/</link>
        </item>

        <item>
          <title>rails-mssql-tools update(rev. 10)</title>
          <description>&lt;h2&gt;maintenance update&lt;/h2&gt;


	&lt;p&gt;rev. 10 committed with:&lt;/p&gt;


&lt;code&gt;

svn ci -m &quot;check for missing routines path;
catch AR::StatementInvalid errors and send original error to STDOUT&quot; 

&lt;/code&gt;</description>
          <pubDate>Fri, 28 Mar 2008 14:49:59 GMT</pubDate>
          <guid>http://lukewendling.com/articles/2008/03/28/rails-mssql-tools-update-rev-10/</guid>
          <link>http://lukewendling.com/articles/2008/03/28/rails-mssql-tools-update-rev-10/</link>
        </item>

        <item>
          <title>intermingle RJS partial rendering and raw javascript</title>
          <description>&lt;h3&gt;wrap partial rendering in javascript&lt;/h3&gt;

&lt;p&gt;
What I need is the ability to seamlessly send the contents of a partial to the client using the convenience of RJS, but wrapped inside a hand-written javascript condition (if some element exists, then update an element with this partial).
&lt;/p&gt;

&lt;div class=&quot;CodeRay&quot;&gt;
  &lt;div class=&quot;code&quot;&gt;&lt;pre class=&quot;fitted&quot; onmouseout=&quot;this.className='fitted'&quot; onmouseover=&quot;this.className='expanded'&quot;&gt;
  &lt;span class=&quot;c&quot;&gt;# RJS template&lt;/span&gt;
  page &amp;lt;&amp;lt; &lt;span class=&quot;s&quot;&gt;&lt;span class=&quot;dl&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;if ('some_element_exists') {// page.replace_html using a partial}&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;

&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;


</description>
          <pubDate>Sun, 16 Mar 2008 20:19:14 GMT</pubDate>
          <guid>http://lukewendling.com/articles/2008/03/16/intermingle-rjs-partial-rendering-and-raw-javascript/</guid>
          <link>http://lukewendling.com/articles/2008/03/16/intermingle-rjs-partial-rendering-and-raw-javascript/</link>
        </item>

        <item>
          <title>mapperly</title>
          <description>&lt;h3&gt;&amp;#8220;Google maps, geocoding, and search-by-zip made easy&amp;#8221;&lt;/h3&gt;


	&lt;p&gt;Have a look at &lt;a href=&quot;http://www.mapperly.com&quot;&gt;mapperly&lt;/a&gt;, my latest RoR project which mixes together several Rails plugins I&amp;#8217;ve been wanting to try out.&lt;/p&gt;</description>
          <pubDate>Fri, 04 Jan 2008 16:34:13 GMT</pubDate>
          <guid>http://lukewendling.com/articles/2008/01/04/mapperly/</guid>
          <link>http://lukewendling.com/articles/2008/01/04/mapperly/</link>
        </item>

        <item>
          <title>mssql 2005 sqlcmd with rails migrations</title>
          <description>&lt;h3&gt;&amp;#8220;Connection is busy with results for another command&amp;#8221; bugger&lt;/h3&gt;


	&lt;p&gt;The constant struggle with db scripts in Rails migrations is side-stepping the &amp;#8220;Connection is busy with results for another command&amp;#8221; error when attempting to run a typical script. Here&amp;#8217;s how I&amp;#8217;m dealing with it using mssql 2005 and sqlcmd.&lt;/p&gt;


	&lt;p&gt;First, create config/mssql_migrate.yml as shown:&lt;/p&gt;


&lt;div class=&quot;CodeRay&quot;&gt;
  &lt;div class=&quot;code&quot;&gt;&lt;pre class=&quot;fitted&quot; onmouseout=&quot;this.className='fitted'&quot; onmouseover=&quot;this.className='expanded'&quot;&gt;

  server: myserver\sqlexpress
  database: customers

&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;</description>
          <pubDate>Thu, 03 Jan 2008 15:37:42 GMT</pubDate>
          <guid>http://lukewendling.com/articles/2008/01/03/mssql-2005-sqlcmd-with-rails-migrations/</guid>
          <link>http://lukewendling.com/articles/2008/01/03/mssql-2005-sqlcmd-with-rails-migrations/</link>
        </item>

        <item>
          <title>rails-mssql-tools update</title>
          <description>&lt;h3&gt;release 2&lt;/h3&gt;

&lt;p&gt;ActiveRecord::Base#find conditions option has been aliased to allow for Rails naming conventions against camel-cased schemas.
&lt;/p&gt;
&lt;div class=&quot;CodeRay&quot;&gt;
  &lt;div class=&quot;code&quot;&gt;&lt;pre class=&quot;fitted&quot; onmouseout=&quot;this.className='fitted'&quot; onmouseover=&quot;this.className='expanded'&quot;&gt;

== CHANGELOG
2007-12-19 - 0.0.2
  - :conditions hash in ActiveRecord::Base#find is conventionalized
    Ex. find(:all, :conditions =&amp;gt; {:user_name =&amp;gt; 'Sam', :last_name =&amp;gt; 'Bo'}) 
      now becomes &amp;quot;UserName = 'Sam' AND...&amp;quot;

&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;
</description>
          <pubDate>Wed, 02 Jan 2008 12:37:47 GMT</pubDate>
          <guid>http://lukewendling.com/articles/2008/01/02/rails-mssql-tools-update/</guid>
          <link>http://lukewendling.com/articles/2008/01/02/rails-mssql-tools-update/</link>
        </item>

        <item>
          <title>rails-mssql-tools released</title>
          <description>&lt;h3&gt;migrations with mssql 2005&lt;/h3&gt;


	&lt;p&gt;My latest plugin, &lt;a href=&quot;http://code.google.com/p/rails-mssql-tools/&quot;&gt;rails-mssql-tools&lt;/a&gt;, is now on Google Code. The &lt;span class=&quot;caps&quot;&gt;README&lt;/span&gt; file is a good start. The plugin is a very simple solution to the 2 biggest challenges my team faces when using mssql with Rails:&lt;/p&gt;


	&lt;ol&gt;
	&lt;li&gt;migrating procs, views, and triggers and&lt;/li&gt;
		&lt;li&gt;conventionalizing model object attribute names for legacy db&amp;#8217;s, with typical Microsoft development camel-casing for column names.&lt;/li&gt;
	&lt;/ol&gt;


	&lt;p&gt;The plugin resolves both in a highly simplistic fashion, with the former relying on minimal code and maximum directory structure convention, while the latter overrides method_missing on ActiveRecord&amp;#8217;s Base class to employ ActiveSupport&amp;#8217;s string extensions.&lt;/p&gt;</description>
          <pubDate>Tue, 09 Oct 2007 11:37:21 GMT</pubDate>
          <guid>http://lukewendling.com/articles/2007/10/09/rails-mssql-tools-released/</guid>
          <link>http://lukewendling.com/articles/2007/10/09/rails-mssql-tools-released/</link>
        </item>

        <item>
          <title>sql server 2005 and odbc-rails</title>
          <description>&lt;p&gt;Here&amp;#8217;s how I {finally} got mssql 2005 to play nicely with my rails app:&lt;/p&gt;


	&lt;p&gt;~side-stepping the win32ole db error &lt;em&gt;cannot create new connection because in manual or distributed transaction mode&lt;/em&gt; ~&lt;/p&gt;


	&lt;ol&gt;
	&lt;li&gt;install &lt;a href=&quot;http://odbc-rails.rubyforge.org/RailsAdapterWebHOWTOAdapter.html&quot;&gt;odbc-rails&lt;/a&gt; using the &lt;strong&gt;Manual&lt;/strong&gt; method. the gem and plugin methods didn&amp;#8217;t work out for me.&lt;/li&gt;
		&lt;li&gt;i copied &lt;a href=&quot;http://www.ch-werner.de/rubyodbc/&quot;&gt;Christian Werner&amp;#8217;s odbc binding&lt;/a&gt; to \lib\ruby\site_ruby\1.8\i386-msvcrt but i believe the Manual method install script adds them (odbc_utf8.so, odbc.so) if they don&amp;#8217;t already exist. check for them after running install_odbc.rb. also, Ruby v186 one-click installer includes the odbc.so binary, and i&amp;#8217;m using that one instead of Werner&amp;#8217;s: so far, so good.&lt;/li&gt;
		&lt;li&gt;create a system dsn. in Windows, go to Start | Admin Tools | Data Sources. i created separate dsn&amp;#8217;s for test and dev environments.&lt;/li&gt;
		&lt;li&gt;database.config looks something like:&lt;/li&gt;
	&lt;/ol&gt;</description>
          <pubDate>Wed, 05 Sep 2007 14:02:44 GMT</pubDate>
          <guid>http://lukewendling.com/articles/2007/09/05/cannot-create-new-connection-because-in-manual-or-distributed-transaction-mode/</guid>
          <link>http://lukewendling.com/articles/2007/09/05/cannot-create-new-connection-because-in-manual-or-distributed-transaction-mode/</link>
        </item>

        <item>
          <title>remote checkbox helper</title>
          <description>&lt;h4&gt;using check_box_tag with remote_function&lt;/h4&gt;
&lt;p&gt;
...here's a Rails helper example of sending a checkbox click with Ajax.
&lt;/p&gt;
&lt;div class=&quot;CodeRay&quot;&gt;
  &lt;div class=&quot;code&quot;&gt;&lt;pre class=&quot;fitted&quot; onmouseout=&quot;this.className='fitted'&quot; onmouseover=&quot;this.className='expanded'&quot;&gt;
  &lt;span class=&quot;c&quot;&gt;# call remote function by change event.&lt;/span&gt;
  &lt;span class=&quot;c&quot;&gt;# uses unobtrusive js instead of inline.&lt;/span&gt;
  &lt;span class=&quot;c&quot;&gt;# parameters:&lt;/span&gt;
  &lt;span class=&quot;c&quot;&gt;#   &amp;lt;tt&amp;gt;dom_id&amp;lt;/tt&amp;gt; is element id for checkbox&lt;/span&gt;
  &lt;span class=&quot;c&quot;&gt;#   &amp;lt;tt&amp;gt;remote_options&amp;lt;/tt&amp;gt; are options to remote_function&lt;/span&gt;
  &lt;span class=&quot;c&quot;&gt;#   &amp;lt;tt&amp;gt;value&amp;lt;/tt&amp;gt; is same as core check_box helper&lt;/span&gt;
  &lt;span class=&quot;c&quot;&gt;#   &amp;lt;tt&amp;gt;checked&amp;lt;/tt&amp;gt; is same as core check_box helper&lt;/span&gt;
  &lt;span class=&quot;c&quot;&gt;#   &amp;lt;tt&amp;gt;options&amp;lt;/tt&amp;gt; is same as core check_box helper&lt;/span&gt;
  &lt;span class=&quot;r&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;fu&quot;&gt;check_box_tag_remote&lt;/span&gt;(dom_id, remote_options, value = &lt;span class=&quot;s&quot;&gt;&lt;span class=&quot;dl&quot;&gt;'&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;'&lt;/span&gt;&lt;/span&gt;, checked = &lt;span class=&quot;pc&quot;&gt;false&lt;/span&gt;, options = {})
    html = &lt;span class=&quot;s&quot;&gt;&lt;span class=&quot;dl&quot;&gt;'&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;'&lt;/span&gt;&lt;/span&gt;

    options.merge!({&lt;span class=&quot;sy&quot;&gt;:id&lt;/span&gt; =&amp;gt; dom_id})
    html &amp;lt;&amp;lt; check_box_tag(dom_id, value, checked, options)

    remote_options.merge!({&lt;span class=&quot;sy&quot;&gt;:with&lt;/span&gt; =&amp;gt; &lt;span class=&quot;s&quot;&gt;&lt;span class=&quot;dl&quot;&gt;%(&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;&amp;quot;value=&lt;/span&gt;&lt;span class=&quot;il&quot;&gt;&lt;span class=&quot;idl&quot;&gt;#{&lt;/span&gt;value&lt;span class=&quot;idl&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;)&lt;/span&gt;&lt;/span&gt;})
    remote_js = remote_function(remote_options)

    html &amp;lt;&amp;lt; javascript_tag(&lt;span class=&quot;s&quot;&gt;&lt;span class=&quot;dl&quot;&gt;%Q{&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;
      Event.observe('&lt;/span&gt;&lt;span class=&quot;il&quot;&gt;&lt;span class=&quot;idl&quot;&gt;#{&lt;/span&gt;dom_id&lt;span class=&quot;idl&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;', 'change', function(evt) &lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;il&quot;&gt;&lt;span class=&quot;idl&quot;&gt;#{&lt;/span&gt;remote_js&lt;span class=&quot;idl&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;
      );
    &lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;}&lt;/span&gt;&lt;/span&gt;)
  &lt;span class=&quot;r&quot;&gt;end&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;
</description>
          <pubDate>Mon, 06 Aug 2007 15:37:48 GMT</pubDate>
          <guid>http://lukewendling.com/articles/2007/08/06/remote-checkbox-helper/</guid>
          <link>http://lukewendling.com/articles/2007/08/06/remote-checkbox-helper/</link>
        </item>

        <item>
          <title>how far down does this thing go?</title>
          <description>&lt;h4&gt;more Ruby goodness&lt;/h4&gt;
&lt;p&gt;
I continue to be impressed by how deep you can dig into every single Ruby object, class, module and &quot;you name it&quot;. There seems to be nothing unreachable in a Ruby program, and just when I think I've found the bottom, another worm hole comes into view. Here's an example based on reading in &lt;a href=&quot;http://www.amazon.com/gp/product/0974514055?ie=UTF8&amp;tag=thespabet-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=0974514055&quot;&gt;Programming Ruby, 2nd Edition&lt;/a&gt;&lt;img src=&quot;http://www.assoc-amazon.com/e/ir?t=thespabet-20&amp;l=as2&amp;o=1&amp;a=0974514055&quot; width=&quot;1&quot; height=&quot;1&quot; border=&quot;0&quot; alt=&quot;&quot; style=&quot;border:none !important; margin:0px !important;&quot; /&gt; (the pick axe book) :
&lt;/p&gt;
&lt;div class=&quot;CodeRay&quot;&gt;
  &lt;div class=&quot;code&quot;&gt;&lt;pre class=&quot;fitted&quot; onmouseout=&quot;this.className='fitted'&quot; onmouseover=&quot;this.className='expanded'&quot;&gt;

    &lt;span class=&quot;c&quot;&gt;# create the class&lt;/span&gt;
    irb(main):&lt;span class=&quot;i&quot;&gt;01&lt;/span&gt;&lt;span class=&quot;i&quot;&gt;8&lt;/span&gt;:&lt;span class=&quot;i&quot;&gt;0&lt;/span&gt;&amp;gt; &lt;span class=&quot;r&quot;&gt;class&lt;/span&gt; &lt;span class=&quot;cl&quot;&gt;Shovel&lt;/span&gt;
    irb(main):&lt;span class=&quot;i&quot;&gt;01&lt;/span&gt;&lt;span class=&quot;i&quot;&gt;9&lt;/span&gt;:&lt;span class=&quot;i&quot;&gt;1&lt;/span&gt;&amp;gt; public
    irb(main):&lt;span class=&quot;i&quot;&gt;020&lt;/span&gt;:&lt;span class=&quot;i&quot;&gt;1&lt;/span&gt;&amp;gt; &lt;span class=&quot;r&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;fu&quot;&gt;dig_deep&lt;/span&gt;
    irb(main):&lt;span class=&quot;i&quot;&gt;021&lt;/span&gt;:&lt;span class=&quot;i&quot;&gt;2&lt;/span&gt;&amp;gt; never = &lt;span class=&quot;i&quot;&gt;4&lt;/span&gt;
    irb(main):&lt;span class=&quot;i&quot;&gt;022&lt;/span&gt;:&lt;span class=&quot;i&quot;&gt;2&lt;/span&gt;&amp;gt; ends = &lt;span class=&quot;i&quot;&gt;2&lt;/span&gt;
    irb(main):&lt;span class=&quot;i&quot;&gt;023&lt;/span&gt;:&lt;span class=&quot;i&quot;&gt;2&lt;/span&gt;&amp;gt; local_variables
    irb(main):&lt;span class=&quot;i&quot;&gt;024&lt;/span&gt;:&lt;span class=&quot;i&quot;&gt;2&lt;/span&gt;&amp;gt; &lt;span class=&quot;r&quot;&gt;end&lt;/span&gt;
    irb(main):&lt;span class=&quot;i&quot;&gt;025&lt;/span&gt;:&lt;span class=&quot;i&quot;&gt;1&lt;/span&gt;&amp;gt; &lt;span class=&quot;r&quot;&gt;end&lt;/span&gt;

    &lt;span class=&quot;c&quot;&gt;# call instance method&lt;/span&gt;
    irb(main):&lt;span class=&quot;i&quot;&gt;026&lt;/span&gt;:&lt;span class=&quot;i&quot;&gt;0&lt;/span&gt;&amp;gt; shovel = &lt;span class=&quot;co&quot;&gt;Shovel&lt;/span&gt;.new
    =&amp;gt; &lt;span class=&quot;c&quot;&gt;#&amp;lt;Shovel:0x2dd04d0&amp;gt;&lt;/span&gt;
    irb(main):&lt;span class=&quot;i&quot;&gt;027&lt;/span&gt;:&lt;span class=&quot;i&quot;&gt;0&lt;/span&gt;&amp;gt; shovel.dig_deep
    =&amp;gt; [&lt;span class=&quot;s&quot;&gt;&lt;span class=&quot;dl&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;never&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;, &lt;span class=&quot;s&quot;&gt;&lt;span class=&quot;dl&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;ends&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;]

&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;
The output of &lt;code&gt;local_variables&lt;/code&gt; unto itself isn't what surprises me. But the way Ruby lets you see anything, at any time... that it was built to allow seemingly unlimited introspection... that's what makes Ruby so much fun.
&lt;/p&gt;</description>
          <pubDate>Fri, 27 Jul 2007 10:45:47 GMT</pubDate>
          <guid>http://lukewendling.com/articles/2007/07/27/how-far-down-does-this-thing-go/</guid>
          <link>http://lukewendling.com/articles/2007/07/27/how-far-down-does-this-thing-go/</link>
        </item>


  </channel>
</rss>

