Jon Kinney Blog http://jonkinney.com/rss/ en-us 40 Web development and design, Ruby on Rails, music production and recording, and life. Intridea Blog Posts <p>I&#8217;ve been blogging lately, just not here :) If you want to see some of my lastest posts check them out at <a href="http://intridea.com/about/people/jon">http://intridea.com/about/people/jon</a>. You can see the &#8220;Published Posts&#8221; section after my bio.</p> <p>Here are direct links to what is posted to date (I&#8217;ll try to keep this updated).</p> <ul> <li><a href="http://intridea.com/posts/its-not-enough-to-bash-in-heads-youve-got-to-bash-in-minds-with-zsh">It&#8217;s not enough to bash in heads, you&#8217;ve got to bash in minds&#8230;with ZSH (May 18, 2011)</a></li> <li><a href="http://intridea.com/posts/remote-cold-boot-a-mac">Remote Cold Boot a Mac (January 14, 2011)</a></li> <li><a href="http://intridea.com/posts/using-bind-locally-on-os-x-for-easy-access-to-subdomains">Using BIND locally on OS X for easy access to subdomains (June 2, 2010)</a></li> </ul> Thu, 13 Oct 2011 01:41:39 GMT http://jonkinney.com/articles/2011/10/12/intridea-blog-posts/ http://jonkinney.com/articles/2011/10/12/intridea-blog-posts/ New job, new office, new Mac... it's all good! <p>I'm very happy to say that I started my new job as a Senior Engineer at <a target="_blank" href="http://intridea.com">Intridea</a> today! I look forward to working with some of the leading experts in the Ruby development community and hope to grow my skills as a developer along the way.</p> Tue, 18 May 2010 05:26:36 GMT http://jonkinney.com/articles/2010/05/18/new-job-new-office-new-mac-its-all-good/ http://jonkinney.com/articles/2010/05/18/new-job-new-office-new-mac-its-all-good/ Using save_and_open_page to open failed cucumber scenerios in a browser with images and CSS <p> I've been doing a lot of Cucumber testing lately and have really been liking it, but there is one thing that is hard with Cucumber... debugging errors. That is until I found out about the save_and_open_page method that webrat provides for opening a browser to the page the cuke puked on from Bodaniel Jeanes over on <a target='_blank' href="http://bjeanes.com/2010/02/10/automatically-open-the-last-page-for-failed-scenarios">his blog</a>. </p> <p> The only problem was that the page didn't look very nice. I could have left it (it was working after all) but then I ran across <a target='_blank' href="http://gist.github.com/320890">an init script for cuke</a> in a gist from Duff that allowed for the rewriting of the paths to the local image, JavaScript and CSS files so they at least could be referenced properly. While this worked, most of my images were specified as backgrounds in my actual CSS files so if I wanted to be able to see the page as it was intended I would need to find a way to change the paths in the actual CSS files as well. </p> Wed, 21 Apr 2010 05:00:00 GMT http://jonkinney.com/articles/2010/04/21/using-save_and_open_page-to-open-failed-cucumber-scenerios-in-a-browser-with-images-and-css/ http://jonkinney.com/articles/2010/04/21/using-save_and_open_page-to-open-failed-cucumber-scenerios-in-a-browser-with-images-and-css/ Easily convert a has_and_belongs_to_many to a has_many_through in Rails (for: MS SQL Server) <p>One of the things that bugged me about Rails when they made the move from only having has_and_belongs_to_many (HABTM) to also including the has_many_through (HM:T) join model option (which is now the preferred way to go), was that you needed to write your own code in the model to get the associations to work properly. With the old HABTM implementation this was handled for you.</p> Sat, 06 Mar 2010 06:00:00 GMT http://jonkinney.com/articles/2010/03/06/easily-convert-a-has_and_belongs_to_many-to-a-has_many_through-in-rails-for-ms-sql-server/ http://jonkinney.com/articles/2010/03/06/easily-convert-a-has_and_belongs_to_many-to-a-has_many_through-in-rails-for-ms-sql-server/ Bluepill init script for Monitoring Delayed Job on Linux openSUSE <p>I recently moved a long running request in my application to delayed job <a target="_blank" href="http://github.com/collectiveidea/delayed_job">(the collectiveidea fork)</a> and it went really well. However, after some time the delayed job process died and my users couldn't use an essential part of the application. I knew it was time for a process monitor. I probably should have put one in to begin with, but I was new to delayed job (really to background processing in general) and the though hadn't crossed my mind.</p> Mon, 01 Feb 2010 06:00:00 GMT http://jonkinney.com/articles/2010/02/01/bluepill-init-script-for-monitoring-delayed-job-on-linux-opensuse/ http://jonkinney.com/articles/2010/02/01/bluepill-init-script-for-monitoring-delayed-job-on-linux-opensuse/ Change locale on os x snow leopard for FreeTDS functionality <p> Recently I've been trying to get my new unibody macbook pro connecting to SQL Server 2005 with FreeTDS. I was following the <a href="http://www.metaskills.net/2009/9/5/the-ultimate-os-x-snow-leopard-stack-for-rails-development-x86_64-macports-ruby-1-8-1-9-sql-server-more">great guide</a> from the Ken Collins the author of the <a href="http://github.com/rails-sqlserver/2000-2005-adapter">rails-sqlserver</a> activerecord adapter that I use but no matter what configuration settings I edited I couldn't get my machine to connect to the SQL Server. </p> Mon, 23 Nov 2009 06:00:00 GMT http://jonkinney.com/articles/2009/11/23/change-locale-on-os-x-snow-leopard-for-freetds-functionality/ http://jonkinney.com/articles/2009/11/23/change-locale-on-os-x-snow-leopard-for-freetds-functionality/ BDD: My quest to become a professional tester <p>Now I&#8217;m not saying that I only want to be a tester of web applications. After all, creating them is what I enjoy the most. However, I believe that to be a professional coder, you need to test your applications. Now I&#8217;m not talking about that day or two at the end of a project when you run through the application in your browser and hope that nothing breaks. No, I&#8217;m talking about real testing. Testing that is done alongside the code, if not before. To me, testing is a tool that I&#8217;m integrating into my coding stack that is simply going to become part of how I write an application.</p> Wed, 05 Aug 2009 05:00:00 GMT http://jonkinney.com/articles/2009/08/05/bdd-my-quest-to-become-a-professional-tester/ http://jonkinney.com/articles/2009/08/05/bdd-my-quest-to-become-a-professional-tester/ Web Design for Developers: A Programmer's Guide to Design Tools and Techniques <p> I recently had the privilege of tech reviewing <a href="http://www.pragprog.com/titles/bhgwad/web-design-for-developers">a great book</a> about how to create standards compliant, accessible, and attractive web designs. The goal of the book is to cover web design with the programmer in mind. Brian Hogan, the book's author, does this by taking the reader on a journey to build the next great social recipe sharing website "Foodbox". To me this book helps arm application developers with the knowledge to help blur the line that some companies try to arbitrarily place between a design team and a development team. After all, just because someone is a "coder" doesn't mean he or she can't create an attractive and usable site! </p> Fri, 05 Jun 2009 05:00:00 GMT http://jonkinney.com/articles/2009/06/05/web-design-for-developers-a-programmers-guide-to-design-tools-and-techniques/ http://jonkinney.com/articles/2009/06/05/web-design-for-developers-a-programmers-guide-to-design-tools-and-techniques/ My first full studio album finished! <p> Well... when I say *my* I mean the first album that I've produced and mixed. My original album is my next studio project and should be a lot of fun. The album I just finished, however, was for <a href="http://theinnocentmen.com">The Innocent Men</a> a 7-man all male a cappella vocal band from UWEC. They rocked pretty hard on this album and I was happy to be a part of it. </p> Fri, 15 May 2009 05:00:00 GMT http://jonkinney.com/articles/2009/05/15/my-first-full-studio-album-finished/ http://jonkinney.com/articles/2009/05/15/my-first-full-studio-album-finished/ Deploying to multiple server environments with cap <p> Most anytime I develop a web application I need to deploy to multiple server environments. For me this used to mean maintaining two separate deploy.rb scripts, and I would rename one while deploying to staging, and then rename the other when I needed to deploy to production. After about three deploys I said, the hell with this! And I figured out how to allow the specification of your deployment at the command line during the cap deploy task. </p> Thu, 30 Apr 2009 05:00:00 GMT http://jonkinney.com/articles/2009/04/30/deploying-to-multiple-server-environments-with-cap/ http://jonkinney.com/articles/2009/04/30/deploying-to-multiple-server-environments-with-cap/