<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Kevin Colyar » Blog</title>
	
	<link>http://kevin.colyar.net</link>
	<description>Computer Scientist &amp; Software Craftstman</description>
	<lastBuildDate>Wed, 03 Aug 2011 19:10:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
   <image>
    <title>Kevin Colyar</title>
    <url>http://www.gravatar.com/avatar/1ef0603cbb4cee2961dd9dc2076d8c25?s=</url>
    <link>http://kevin.colyar.net</link>
   </image>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/kevincolyar" /><feedburner:info uri="kevincolyar" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Keymando Finally Released!</title>
		<link>http://feedproxy.google.com/~r/kevincolyar/~3/bY1M2jygKzQ/</link>
		<comments>http://kevin.colyar.net/2011/08/keymando-finally-released/#comments</comments>
		<pubDate>Wed, 03 Aug 2011 19:10:45 +0000</pubDate>
		<dc:creator>Kevin Colyar</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Keymando]]></category>
		<category><![CDATA[Mac App Store]]></category>
		<category><![CDATA[MacRuby]]></category>
		<category><![CDATA[Mouse-less Computing]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[Productivity]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://kevin.colyar.net/?p=588</guid>
		<description><![CDATA[Well it finally happened. Monday, August 1st,  I released my application, Keymando.  A little over two years in the making, after many long nights, it&#8217;s finally for sale in the Mac App store.
Keymando began as a simple global hotkey mapping utility that allow users to use vi-like hjkl navigation instead of arrow keys. [...]]]></description>
			<content:encoded><![CDATA[<p>Well it finally happened. Monday, August 1st,  I released my application, Keymando.  A little over two years in the making, after many long nights, it&#8217;s finally for sale in the Mac App store.<br />
Keymando began as a simple global hotkey mapping utility that allow users to use vi-like hjkl navigation instead of arrow keys.  Initially called &#8220;ViKing&#8221; because of its vi user focus, it grew into an entire key mapping and automation tool poised to completely change the way you get things done on the Mac.</p>
<p><span id="more-588"></span></p>
<p>As development progressed with the addition of the ability to completly configure and script key mapping and automation using ruby, the decision was made to change to the name to Keymando to reflect that it was no longer just a tool for vi users.</p>
<h2>So Just What is Keymando?</h2>
<p>Keymando is a full-featured input mapping and automation tool for OSX.  It is easier to see how Keymando can be used than to try to explain what it does.</p>
<p><iframe src="http://player.vimeo.com/video/26841548" width="800" height="455" frameborder="0"></iframe></p>
<h2>Keymando Uses </h2>
<p>Keymando is for productivity junkies, programmers, and any else who wants to start using their Mac more efficiently.  Here are just a few uses:</p>
<ul>
<li>Map familiar shortcuts and hotkeys from one application to another.</li>
<li>Use mnemonics to trigger automated tasks.</li>
<li>Text Abbreviations.</li>
<li>Vi-style hjkl navigation throughout OSX.</li>
<li>Automate Skype logins and phone calls.</li>
<li>Quickly insert dates, times, and other data.</li>
<li>Disable application hotkeys and shortcuts.</li>
<li>Pretty much anything you want using Ruby to write your own commands!</li>
</ul>
<h2>Features</h2>
<ul>
<li>Map Keys – Allows for the mapping of key presses to other keys or other arbitrary commands.</li>
<li>Filtering – Create a set of key mappings for a single application or group of applications.</li>
<li>Dialogs – Set a global hotkey that prompts for user input then act on it.</li>
<li>Ruby – Use the easy-to-use programming language, Ruby, to configure Keymando.</li>
<li>Plugins – Write your own plugins to command your Mac to do what you want.</li>
</ul>
<h2>Plays Well with Others</h2>
<p>Easily integrates with applications like Quicksilver, Divvy, and any other application on OSX.</p>
<ul>
<li>Quicksilver</li>
<li>Divvy</li>
<li>Any application in OSX!</li>
</ul>
<h2>History</h2>
<p>Keymando was originally named ViKing due the ability the application had to mimic the vi editor&#8217;s navigation style in OSX, a navigation style that kept users&#8217; hands on the home row instead of the arrow keys.  Over the last few months ViKing underwent a re-branding effort into its new name, Keymando.  This was done because the application has matured into a very useful product that is not only useful to vi(m) users but to everyone.  </p>
<h2>Future</h2>
<p>Version 2 of Keymando is under active development with exicting new features that include:</p>
<ul>
<li>Recording and playback user interaction.</li>
<li>Complete framework to access UI controls.</li>
</ul>
<img src="http://feeds.feedburner.com/~r/kevincolyar/~4/bY1M2jygKzQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://kevin.colyar.net/2011/08/keymando-finally-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://kevin.colyar.net/2011/08/keymando-finally-released/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=keymando-finally-released</feedburner:origLink></item>
		<item>
		<title>Controlling a Sprinkler System with an iPhone, Arduino, and Sinatra</title>
		<link>http://feedproxy.google.com/~r/kevincolyar/~3/mqXiqfy2l8Y/</link>
		<comments>http://kevin.colyar.net/2011/07/controlling-a-sprinkler-system-with-an-iphone-arduino-sinatra/#comments</comments>
		<pubDate>Mon, 25 Jul 2011 17:00:24 +0000</pubDate>
		<dc:creator>Kevin Colyar</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Sinatra]]></category>
		<category><![CDATA[rvm]]></category>

		<guid isPermaLink="false">http://kevin.colyar.net/?p=544</guid>
		<description><![CDATA[
Sasha felt the need to make a cameo.

Source Code
https://github.com/kevincolyar/sprinklers
Summary
The following is a project that I&#8217;ve been wanting to do for a while.  My sprinkler system control box is located in my basement workshop and I wanted to be able to turn my sprinkler system stations off and on without having to run inside and downstairs [...]]]></description>
			<content:encoded><![CDATA[<p><iframe width="425" height="349" src="http://www.youtube.com/embed/9P-7WL-5qb0?hl=en&#038;fs=1" frameborder="0" allowfullscreen></iframe></p>
<h5><span style="font-weight: normal;"><span style="color: #888888;">Sasha felt the need to make a cameo.</span></span></h5>
<p><span id="more-544"></span></p>
<h3>Source Code</h3>
<p><a href="https://github.com/kevincolyar/sprinklers">https://github.com/kevincolyar/sprinklers</a></p>
<h2>Summary</h2>
<p>The following is a project that I&#8217;ve been wanting to do for a while.  My sprinkler system control box is located in my basement workshop and I wanted to be able to turn my sprinkler system stations off and on without having to run inside and downstairs constantly.  This is annoying when I&#8217;m adjusting, fixing, and blowing out sprinklers.</p>
<p>The first Saturday afternoon of this project was spent (stupidly) trying use a transistor to turn on the sprinkler station solenoids.  That was the day I learned you can&#8217;t use transistors with AC current. Doh.  This brought progress came to a halt and <a href="http://www.parallax.com/StoreSearchResults/tabid/768/List/0/SortField/4/ProductID/657/Default.aspx?txtSearch=solid+state+relay">solid state relays</a> were ordered.  Three days later 10 relays arrived and it only took burning up two of them to finally figure out that I should&#8217;ve just started with the Arduino 5V 50mA output pins instead of the higher current, direct USB 5V power.  Finally a single solenoid prototype was complete.</p>
<p><a href="http://kevin.colyar.net/wp-content/uploads/2011/07/prototype1.jpg"><img class="alignnone size-medium wp-image-557" title="prototype" src="http://kevin.colyar.net/wp-content/uploads/2011/07/prototype1-300x246.jpg" alt="" width="300" height="246" /></a></p>
<h5><span style="font-style: normal; font-weight: normal;"><span style="color: #808080;">Prototype able to turn on a solenoid through a solid state relay triggered by the Arduino.</span></span></h5>
<p>After the prototype was complete, it was time to write software.  The Arduino unit is controlled by a very simple &#8217;sketch&#8217; that listens on the usb serial port for a station number to turn on or off.  That&#8217;s it.  The other piece of software is the web server that displays a list of toggle buttons that correlate to the eight sprinkler stations.  The web server is a ruby 1.8.7 Sinatra application with basically two actions: on and off, with a station number parameter.  It connects to the Arduino via usb serial and sends the command to turn on or off a station to the Arduino when a button is toggled.</p>
<p>Once the software was complete, I turned my attention to finishing the hardware by adding the rest of the relays to the breadboard and wiring the whole thing up.  Eight 5V 50mA output pins from the Arduino were wired to 20mA &#8211; 50mA positive leads on the relay that control the on/off of the relay.  LED were also placed inline as indicators of when the relay was activated.  These LEDs were left over from my <a href="http://kevin.colyar.net/2010/10/conways-game-of-life-on-a-pumpkin/">Game of Life pumpkin project</a>.</p>
<p><a href="http://kevin.colyar.net/wp-content/uploads/2011/07/arduino.jpg"><img class="alignnone size-medium wp-image-555" title="arduino" src="http://kevin.colyar.net/wp-content/uploads/2011/07/arduino-224x300.jpg" alt="" width="224" height="300" /></a></p>
<h5><span style="font-weight: normal;"><span style="color: #888888;">The finished hardware.</span></span></h5>
<p>The final piece of the puzzle was to tie in the wire coming from the Arduino relays back two the existing sprinkler control box and eventually to the station valve solenoids.</p>
<p><a href="http://kevin.colyar.net/wp-content/uploads/2011/07/control_board.jpg"><img class="alignnone size-medium wp-image-551" title="control_board" src="http://kevin.colyar.net/wp-content/uploads/2011/07/control_board-300x224.jpg" alt="" width="300" height="224" /></a></p>
<h5><span style="color: #888888;">The original sprinkler system control board.</span></h5>
<p>Once all the wiring was complete, this first stage of the project was done.  I was able to go outside, open the website on my iPhone and turn on and off any the sprinkler stations (I hope to post a video of the system in action soon).</p>
<h2>More Photos</h2>
<p><a href="http://kevin.colyar.net/wp-content/uploads/2011/07/workbench.jpg"><img title="workbench" src="http://kevin.colyar.net/wp-content/uploads/2011/07/workbench-224x300.jpg" alt="" width="224" height="300" /></a></p>
<h5><span style="font-weight: normal;"><span style="color: #888888;">Making a mess.</span></span></h5>
<p><a href="http://kevin.colyar.net/wp-content/uploads/2011/07/laptop.jpg"><img class="alignnone size-medium wp-image-552" title="laptop" src="http://kevin.colyar.net/wp-content/uploads/2011/07/laptop-224x300.jpg" alt="" width="224" height="300" /></a></p>
<h5><span style="font-weight: normal;"><span style="color: #888888;">The laptop with Ubuntu 10.10 running a ruby 1.8.7 Sinatra app.</span></span></h5>
<p><a href="http://kevin.colyar.net/wp-content/uploads/2011/07/console.jpg"><img class="alignnone size-medium wp-image-554" title="console" src="http://kevin.colyar.net/wp-content/uploads/2011/07/console-224x300.jpg" alt="" width="224" height="300" /></a></p>
<h5><span style="font-weight: normal;"><span style="color: #888888;">Close-up of the Sinatra server log.</span></span></h5>
<p><a href="http://kevin.colyar.net/wp-content/uploads/2011/07/iphone.jpg"><img class="alignnone size-medium wp-image-553" title="iphone" src="http://kevin.colyar.net/wp-content/uploads/2011/07/iphone-200x300.jpg" alt="" width="200" height="300" /></a></p>
<h5><span style="font-weight: normal;"><span style="color: #888888;">The quick and dirty (UGLY) web interface.</span></span></h5>
<h2>What&#8217;s Next?</h2>
<ul>
<li>Implement a scheduling framework</li>
<li>Implement native iPhone App</li>
<li>Pull down weather (temp., humidity, rain fall) info from the web to forecast watering schedule</li>
<li>Implement machine learning to determine optimal watering schedules</li>
</ul>
<img src="http://feeds.feedburner.com/~r/kevincolyar/~4/mqXiqfy2l8Y" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://kevin.colyar.net/2011/07/controlling-a-sprinkler-system-with-an-iphone-arduino-sinatra/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		<feedburner:origLink>http://kevin.colyar.net/2011/07/controlling-a-sprinkler-system-with-an-iphone-arduino-sinatra/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=controlling-a-sprinkler-system-with-an-iphone-arduino-sinatra</feedburner:origLink></item>
		<item>
		<title>Using dbext.vim with SQL Server on OSX</title>
		<link>http://feedproxy.google.com/~r/kevincolyar/~3/vy6MWRc0ZUU/</link>
		<comments>http://kevin.colyar.net/2011/06/using-dbext-vim-with-sql-server-on-osx/#comments</comments>
		<pubDate>Thu, 16 Jun 2011 23:49:25 +0000</pubDate>
		<dc:creator>Kevin Colyar</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Vim]]></category>

		<guid isPermaLink="false">http://kevin.colyar.net/?p=535</guid>
		<description><![CDATA[dbext.vim is a great vim plugin for accessing just about every kind of database through your vim editor.  The description from its website:
&#8220;This plugin contains functions/mappings/commands to enable Vim to access several databases. Current databases supported are: Mysql, PostgreSQL, Ingres, Oracle, Oracle Rdb (VMS), Sybase Adaptive Server Anywhere, Sybase Adaptive Server Enterprise, Microsoft SQL Server, [...]]]></description>
			<content:encoded><![CDATA[<p>dbext.vim is a great vim plugin for accessing just about every kind of database through your vim editor.  The description from its website:</p>
<p>&#8220;This plugin contains functions/mappings/commands to enable Vim to access several databases. Current databases supported are: Mysql, PostgreSQL, Ingres, Oracle, Oracle Rdb (VMS), Sybase Adaptive Server Anywhere, Sybase Adaptive Server Enterprise, Microsoft SQL Server, DB2, Interbase and SQLite and ODBC are supported.  New to version 5.x of dbext introduces the support for Perl&#8217;s DBI layer.  If the database you are using is not *natively* supported by dbext, but has a DBI interface, dbext&#8217;s standard feature set is available.  For those already using dbext, the DBI interface should provide a performance boost when running statements against your database.  DBI also provides an ODBC bridge, therefore any ODBC compliant database is also accessible.&#8221;</p>
<p>I had a little trouble getting it connected to SQL Server from OSX so here are the steps I took to get it work.  Hopefully it helps someone else.<br />
<span id="more-535"></span></p>
<p>Get the dbext.vim plugin here</p>
<p><a href="http://www.vim.org/scripts/script.php?script_id=356">http://www.vim.org/scripts/script.php?script_id=356</a></p>
<p><code>Install the perl odbc libs</code></p>
<p><code>$ sudo perl -MCPAN -e shell</code></p>
<p><code> cpan[1]&gt; install DBI<br />
cpan[2]&gt; install DBD::ODBC</code></p>
<p>*Note: Make sure you <em><strong>sudo</strong></em> when doing this.  I made the mistake of doing <strong><em>sudo -i</em> </strong>which was trying to install the libs to my system perl installation.  This didn&#8217;t work because I was using mac ports and vim couldn&#8217;t see where the cpan modules were being installed to.</p>
<p>Add your connection string to your .vimrc</p>
<p><code> let g:dbext_default_profile_myconnection='type=ODBC:user=chucknorris:passwd=roundhouse:dsnname=mydsn:dbname=mydatabase'</code></p>
<p>Here you specify the dsn you want to connect to.  See my other <a href="http://kevin.colyar.net/2011/05/using-microsoft-sql-server-with-rails-on-osx-or-linux/">post</a> for setting your database dsn using FreeTDS and UnixODBC.</p>
<img src="http://feeds.feedburner.com/~r/kevincolyar/~4/vy6MWRc0ZUU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://kevin.colyar.net/2011/06/using-dbext-vim-with-sql-server-on-osx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://kevin.colyar.net/2011/06/using-dbext-vim-with-sql-server-on-osx/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=using-dbext-vim-with-sql-server-on-osx</feedburner:origLink></item>
		<item>
		<title>Using Microsoft SQL Server with Rails on OSX or Linux</title>
		<link>http://feedproxy.google.com/~r/kevincolyar/~3/OQQWWOHSyaI/</link>
		<comments>http://kevin.colyar.net/2011/05/using-microsoft-sql-server-with-rails-on-osx-or-linux/#comments</comments>
		<pubDate>Tue, 17 May 2011 21:19:01 +0000</pubDate>
		<dc:creator>Kevin Colyar</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[rvm]]></category>

		<guid isPermaLink="false">http://kevin.colyar.net/?p=515</guid>
		<description><![CDATA[Background
I used Mac Ports for this setup so your milage may vary if you&#8217;re using something else like Homebrew.  Mac Ports installs its files to /opt/local so you&#8217;ll have do some translation if you&#8217;re using something else.
My project is on Rails 2.3.x and I haven&#8217;t tried any of this with Rails 3.x so use [...]]]></description>
			<content:encoded><![CDATA[<h2>Background</h2>
<p>I used Mac Ports for this setup so your milage may vary if you&#8217;re using something else like Homebrew.  Mac Ports installs its files to <code>/opt/local</code> so you&#8217;ll have do some translation if you&#8217;re using something else.</p>
<p>My project is on Rails 2.3.x and I haven&#8217;t tried any of this with Rails 3.x so use at your own risk.  Please leave feedback if you know how to getting it working on Rails 3.x setups.  Thanks.</p>
<p><span id="more-515"></span></p>
<hr />
<h2>Install and Configure FreeTDS</h2>
<p><strong>Mac Ports</strong></p>
<p>[shell]<br />
sudo port install freetds +odbc<br />
[/shell]</p>
<p><strong>Debian/Ubuntu</strong></p>
<p>[shell]<br />
sudo apt-get install freetds<br />
[/shell]</p>
<p><strong>Required /opt/local/etc/freetds/freetds.conf entries:</strong></p>
<p>[shell]<br />
[MySqlServerHost]<br />
  host = 10.10.1.100<br />
  port = 1433<br />
  tds version = 8.0<br />
[/shell]</p>
<p>*Note: SQL Server Clusters use port 3008</p>
<hr />
<h2>Install and Configure UnixODBC</h2>
<p><strong>Mac Ports</strong></p>
<p>[shell]<br />
sudo port install unixODBC<br />
[/shell]</p>
<p><strong>Debian/Ubuntu</strong></p>
<p>[shell]<br />
sudo apt-get install unixODBC<br />
[/shell]</p>
<p><strong>Required /opt/local/etc/odbc.ini entries:</strong></p>
<p>[shell]<br />
[MyAppDSN]<br />
  Driver          = FreeTDS<br />
  Description     = ODBC connection via FreeTDS<br />
  Servername      = MySqlServerHost<br />
  Database        = MyAppDatabase<br />
[/shell]</p>
<hr />
<h2>Setup RVM if Needed</h2>
<p>If you&#8217;re using <a href="https://rvm.beginrescueend.com/">RVM</a>, and you should be, add this <a href="https://gist.github.com/977295">rake file</a> to your project and run:</p>
<p>[shell]<br />
rake rvm:install:all<br />
[/shell]</p>
<p>*See http://www.metaskills.net/2010/7/30/the-rvm-ruby-api for more info.</p>
<hr />
<h2>Configure Rails</h2>
<p><strong>config/environment.rb:</strong></p>
<p>[ruby]<br />
config.gem &#8216;activerecord-sqlserver-adapter&#8217;, :version =&gt; &#8216;2.2.22&#8242;, :lib =&gt; false<br />
config.gem &quot;dbd-odbc&quot;, :version =&gt; &#8216;0.2.4&#8242;,  :lib =&gt; false<br />
[/ruby]</p>
<p><strong>config/database.yml:</strong></p>
<p>[ruby]<br />
development:<br />
  adapter: sqlserver<br />
  mode: odbc<br />
  dsn: MyAppDSN<br />
  username: chuck<br />
  password: norris1<br />
  encoding: utf8<br />
[/ruby]</p>
<img src="http://feeds.feedburner.com/~r/kevincolyar/~4/OQQWWOHSyaI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://kevin.colyar.net/2011/05/using-microsoft-sql-server-with-rails-on-osx-or-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://kevin.colyar.net/2011/05/using-microsoft-sql-server-with-rails-on-osx-or-linux/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=using-microsoft-sql-server-with-rails-on-osx-or-linux</feedburner:origLink></item>
		<item>
		<title>Fixing Vim Auto-Complete Slowness in Large Projects</title>
		<link>http://feedproxy.google.com/~r/kevincolyar/~3/fGEJtGC1mSE/</link>
		<comments>http://kevin.colyar.net/2011/05/fixing-vim-auto-complete-slowness-in-large-projects/#comments</comments>
		<pubDate>Fri, 13 May 2011 18:37:42 +0000</pubDate>
		<dc:creator>Kevin Colyar</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Vim]]></category>

		<guid isPermaLink="false">http://kevin.colyar.net/?p=511</guid>
		<description><![CDATA[If you&#8217;re vim auto-completion is incredibly slow when you&#8217;re in a directory with a lot of files or large files, the fold method could be the cause of your problems.
Try
:set foldmethod=manual
and see if that speeds up auto-completion.
The following site has a script to put in your .vimrc that will allow you to keep your foldmethod [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re vim auto-completion is incredibly slow when you&#8217;re in a directory with a lot of files or large files, the fold method could be the cause of your problems.</p>
<p>Try</p>
<p><code>:set foldmethod=manual</code></p>
<p>and see if that speeds up auto-completion.</p>
<p>The following site has a script to put in your .vimrc that will allow you to keep your foldmethod setting and only adjust it to manual when insert text, which is what is causing the slowness.</p>
<p><a href="http://vim.wikia.com/wiki/Keep_folds_closed_while_inserting_text">http://vim.wikia.com/wiki/Keep_folds_closed_while_inserting_text</a></p>
<img src="http://feeds.feedburner.com/~r/kevincolyar/~4/fGEJtGC1mSE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://kevin.colyar.net/2011/05/fixing-vim-auto-complete-slowness-in-large-projects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://kevin.colyar.net/2011/05/fixing-vim-auto-complete-slowness-in-large-projects/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=fixing-vim-auto-complete-slowness-in-large-projects</feedburner:origLink></item>
		<item>
		<title>Submitting a MacRuby app to the Mac App Store</title>
		<link>http://feedproxy.google.com/~r/kevincolyar/~3/xgt3mCEL11w/</link>
		<comments>http://kevin.colyar.net/2011/02/submitting-a-macruby-app-to-the-mac-app-store/#comments</comments>
		<pubDate>Wed, 09 Feb 2011 22:09:34 +0000</pubDate>
		<dc:creator>Kevin Colyar</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Mac App Store]]></category>
		<category><![CDATA[MacRuby]]></category>
		<category><![CDATA[OSX]]></category>

		<guid isPermaLink="false">http://kevin.colyar.net/?p=485</guid>
		<description><![CDATA[If you&#8217;re trying to upload your MacRuby application to the Mac App Store and get the following error:
 Package &#8220;com.your.app.id&#8221;: Bundle at &#8220;YourApp.app/Contents/Frameworks/MacRuby.framework&#8221; in Payload not declared in Package info


you can fix it by removing the Current symbolic link and renaming the 0.8 MacRuby folder to Current (see shell script below).  Apparently the Application Loader [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re trying to upload your MacRuby application to the Mac App Store and get the following error:</p>
<p><strong> Package &#8220;com.your.app.id&#8221;: Bundle at &#8220;YourApp.app/Contents/Frameworks/MacRuby.framework&#8221; in Payload not declared in Package info</strong><br />
<span id="more-485"></span><br />
<a href="http://kevin.colyar.net/wp-content/uploads/2011/02/application_loader_error1.png"><img class="alignnone size-full wp-image-499" title="application_loader_error" src="http://kevin.colyar.net/wp-content/uploads/2011/02/application_loader_error1.png" alt="" width="704" height="232" /></a></p>
<p>you can fix it by removing the <strong>Current</strong> symbolic link and renaming the <strong>0.8</strong> MacRuby folder to Current (see shell script below).  Apparently the Application Loader is trying to load MacRuby&#8217;s bundle Info.plist file twice, once for Current and another time for 0.8, which are actually the same directory.</p>
<p>Here is the shell script I currently use to sign and package my app:</p>


<div class="wp-geshi-highlight-wrap5"><div class="wp-geshi-highlight-wrap4"><div class="wp-geshi-highlight-wrap3"><div class="wp-geshi-highlight-wrap2"><div class="wp-geshi-highlight-wrap"><div class="wp-geshi-highlight"><div class="bash"><pre class="de1"><span class="co0">#!/bin/sh</span>
<span class="re2">APP</span>=<span class="st0">&quot;MyApp&quot;</span>
<span class="re2">BUSINESS</span>=<span class="st0">&quot;My Bidniz&quot;</span>
<span class="re2">TARGET</span>=<span class="st0">&quot;<span class="es2">$APP</span>.app/Contents/Frameworks/MacRuby.framework/Versions/Current&quot;</span>
<span class="re2">SOURCE</span>=<span class="st0">&quot;<span class="es2">$APP</span>.app/Contents/Frameworks/MacRuby.framework/Versions/0.8&quot;</span>
&nbsp;
<span class="kw3">cd</span> build<span class="sy0">/</span>Release
&nbsp;
<span class="co0"># Remove symbolic link &quot;Current&quot; and replace it with actual directory.  For some reason the</span>
<span class="co0"># Application Loader gets confused and tries to read the MacRuby Info.plist twice, once for each</span>
<span class="co0"># directory, Current and 0.8, even though Current is a sym link to 0.8</span>
<span class="kw1">if</span> <span class="br0">&#91;</span> <span class="re5">-h</span> <span class="st0">&quot;<span class="es2">$TARGET</span>&quot;</span> <span class="br0">&#93;</span>; <span class="kw1">then</span>
  <span class="kw3">echo</span> <span class="st0">&quot;Removing:&quot;</span>
  <span class="kw2">rm</span> <span class="re5">-v</span> <span class="st0">&quot;<span class="es2">$TARGET</span>&quot;</span>
  <span class="kw3">echo</span> <span class="st0">&quot;Moving:&quot;</span>
  <span class="kw2">mv</span> <span class="re5">-v</span> <span class="st0">&quot;<span class="es2">$SOURCE</span>&quot;</span> <span class="st0">&quot;<span class="es2">$TARGET</span>&quot;</span>
<span class="kw1">fi</span>
&nbsp;
codesign <span class="re5">-f</span> <span class="re5">-s</span> <span class="st0">&quot;3rd Party Mac Developer Application: <span class="es2">$BUSINESS</span>&quot;</span> <span class="st0">&quot;<span class="es2">$APP</span>.app&quot;</span>
productbuild <span class="re5">--component</span> <span class="st0">&quot;<span class="es2">$APP</span>.app&quot;</span> <span class="sy0">/</span>Applications <span class="re5">--sign</span> <span class="st0">&quot;3rd Party Mac Developer Installer: <span class="es2">$BUSINESS</span>&quot;</span> <span class="st0">&quot;<span class="es2">$APP</span>.pkg&quot;</span>
&nbsp;
<span class="kw3">cd</span> ..<span class="sy0">/</span>..<span class="sy0">/</span></pre></div></div></div></div></div></div></div>


<img src="http://feeds.feedburner.com/~r/kevincolyar/~4/xgt3mCEL11w" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://kevin.colyar.net/2011/02/submitting-a-macruby-app-to-the-mac-app-store/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://kevin.colyar.net/2011/02/submitting-a-macruby-app-to-the-mac-app-store/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=submitting-a-macruby-app-to-the-mac-app-store</feedburner:origLink></item>
		<item>
		<title>Opening Existing Tabs in Chrome</title>
		<link>http://feedproxy.google.com/~r/kevincolyar/~3/8Yriw0zRVWE/</link>
		<comments>http://kevin.colyar.net/2011/01/opening-existing-tabs-in-chrome/#comments</comments>
		<pubDate>Fri, 28 Jan 2011 17:25:08 +0000</pubDate>
		<dc:creator>Kevin Colyar</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Chrome]]></category>
		<category><![CDATA[Mouse-less Computing]]></category>
		<category><![CDATA[OSX]]></category>

		<guid isPermaLink="false">http://kevin.colyar.net/?p=480</guid>
		<description><![CDATA[I recently decided to get rid of my Fluid instances of websites like Gmail and Remember the Milk.  The primary reason I used them like stand alone apps was because I could quickly switch between them using my app launcher of choice, Quicksilver.  However, now that I&#8217;m using Chrome for these sites there [...]]]></description>
			<content:encoded><![CDATA[<p>I recently decided to get rid of my <a href="http://fluidapp.com/">Fluid</a> instances of websites like <a href="https://www.google.com/accounts/ServiceLogin?service=mail&amp;passive=true&amp;rm=false&amp;continue=http://mail.google.com/mail/%3Fui%3Dhtml%26zy%3Dl&amp;bsv=llya694le36z&amp;scc=1&amp;ltmpl=default&amp;ltmplcache=2">Gmail</a> and <a href="https://www.rememberthemilk.com/">Remember the Milk</a>.  The primary reason I used them like stand alone apps was because I could quickly switch between them using my app launcher of choice, <a href="http://www.blacktree.com/">Quicksilver</a>.  However, now that I&#8217;m using Chrome for these sites there was no way to quickly access them without cycling through a bunch of tabs.</p>
<p>Enter the <a href="https://github.com/kevincolyar/chrome-duplicate-tab-detector">Chrome Duplicate Tab Detector extension</a>.  This extension will open the tab of the site you&#8217;re trying to access if it is already present.  There was one hitch with the current functionality which was that the url of the existing tab and the one you were opening had to match exactly.  This wouldn&#8217;t work for sites like Gmail that append parameters to the url when changing folders or composing mail.</p>
<p>So I forked the code, made the small change to fix this, and made it available here:</p>
<p><a href="https://github.com/downloads/kevincolyar/chrome-duplicate-tab-detector/chrome-duplicate-tab-detector.crx">https://github.com/downloads/kevincolyar/chrome-duplicate-tab-detector/chrome-duplicate-tab-detector.crx</a></p>
<p>Thanks to <a href="https://github.com/mbhutton">mbhutton</a> for creating the original chrome extension.</p>
<p><strong>UPDATE</strong>: Now ignores # style parameters like http://www.google.com/reader/view/#stream/feed%2Fhttp%3A%2F%2Ffeedproxy.google.com%2Ffailblog</p>
<p><a class="FlattrButton" style="display:none;" href="http://kevin.colyar.net/2011/01/opening-existing-tabs-in-chrome/"></a></p>
<img src="http://feeds.feedburner.com/~r/kevincolyar/~4/8Yriw0zRVWE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://kevin.colyar.net/2011/01/opening-existing-tabs-in-chrome/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://kevin.colyar.net/2011/01/opening-existing-tabs-in-chrome/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=opening-existing-tabs-in-chrome</feedburner:origLink></item>
		<item>
		<title>Zlib Error on Ubuntu 10.10 with RVM</title>
		<link>http://feedproxy.google.com/~r/kevincolyar/~3/x4UaEO_yUb4/</link>
		<comments>http://kevin.colyar.net/2011/01/zlib-error-on-ubuntu-10-10-with-rvm/#comments</comments>
		<pubDate>Sun, 16 Jan 2011 05:14:37 +0000</pubDate>
		<dc:creator>Kevin Colyar</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[rvm]]></category>

		<guid isPermaLink="false">http://kevin.colyar.net/?p=477</guid>
		<description><![CDATA[If you&#8217;re getting a &#8220;no such file to load &#8212; zlib&#8221; when trying to install gems, make sure you

sudo apt-get install zlib1g-dev


before you install your rvm ruby version.  If you already installed it, you&#8217;ll have to reinstall via

rvm remove 1.8.7
rvm install 1.8.7

if you&#8217;re using 1.8.7.
]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re getting a &#8220;no such file to load &#8212; zlib&#8221; when trying to install gems, make sure you<br />
<code><br />
sudo apt-get install zlib1g-dev<br />
</code><br />
<span id="more-477"></span><br />
before you install your rvm ruby version.  If you already installed it, you&#8217;ll have to reinstall via<br />
<code><br />
rvm remove 1.8.7<br />
rvm install 1.8.7<br />
</code></p>
<p>if you&#8217;re using 1.8.7.</p>
<img src="http://feeds.feedburner.com/~r/kevincolyar/~4/x4UaEO_yUb4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://kevin.colyar.net/2011/01/zlib-error-on-ubuntu-10-10-with-rvm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://kevin.colyar.net/2011/01/zlib-error-on-ubuntu-10-10-with-rvm/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=zlib-error-on-ubuntu-10-10-with-rvm</feedburner:origLink></item>
		<item>
		<title>Pretty Vim Color Schemes in iTerm2</title>
		<link>http://feedproxy.google.com/~r/kevincolyar/~3/pWwqfv3-ES8/</link>
		<comments>http://kevin.colyar.net/2011/01/pretty-vim-color-schemes-in-iterm2/#comments</comments>
		<pubDate>Mon, 03 Jan 2011 21:58:06 +0000</pubDate>
		<dc:creator>Kevin Colyar</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[Vim]]></category>

		<guid isPermaLink="false">http://kevin.colyar.net/?p=469</guid>
		<description><![CDATA[If you&#8217;re using vim in iTerm2 on your Mac, make sure you select &#8216;xterm-256color&#8217; in the Report Terminal Type under Terminal Emulation.  This will let vim know that you&#8217;re using a terminal capable of 256 colors.


All you need to do now is make sure your .vimrc is set for 256 color schemes:

set t_Co=256
colorscheme grb4
Now you&#8217;ll [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re using vim in iTerm2 on your Mac, make sure you select &#8216;xterm-256color&#8217; in the Report Terminal Type under <strong>Terminal Emulation</strong>.  This will let vim know that you&#8217;re using a terminal capable of 256 colors.</p>
<p><a href="http://kevin.colyar.net/wp-content/uploads/2011/01/Preferences.jpg"><img class="alignnone size-medium wp-image-470" title="Preferences" src="http://kevin.colyar.net/wp-content/uploads/2011/01/Preferences-300x188.jpg" alt="" width="300" height="188" /></a><br />
<span id="more-469"></span><br />
All you need to do now is make sure your .vimrc is set for 256 color schemes:<br />
<code><br />
set t_Co=256<br />
colorscheme grb4</code></p>
<p>Now you&#8217;ll have pretty vim color schemes in iTerm2.</p>
<p><a href="http://kevin.colyar.net/wp-content/uploads/2011/01/1.-kevinc@Kevin-Colyars-MacBook-Pro_-vim-app_models_email.rb-Vim.jpg"><img class="alignnone size-medium wp-image-471" title="1. kevinc@Kevin-Colyars-MacBook-Pro_ vim app_models_email.rb (Vim)" src="http://kevin.colyar.net/wp-content/uploads/2011/01/1.-kevinc@Kevin-Colyars-MacBook-Pro_-vim-app_models_email.rb-Vim-300x159.jpg" alt="" width="300" height="159" /></a></p>
<p>* grb4 is Gary Bernhardt&#8217;s color scheme found here: <a href="https://github.com/garybernhardt/dotfiles">https://github.com/garybernhardt/dotfiles</a></p>
<img src="http://feeds.feedburner.com/~r/kevincolyar/~4/pWwqfv3-ES8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://kevin.colyar.net/2011/01/pretty-vim-color-schemes-in-iterm2/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		<feedburner:origLink>http://kevin.colyar.net/2011/01/pretty-vim-color-schemes-in-iterm2/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=pretty-vim-color-schemes-in-iterm2</feedburner:origLink></item>
		<item>
		<title>Conway’s Game of Life on a Pumpkin</title>
		<link>http://feedproxy.google.com/~r/kevincolyar/~3/Od319KokhlU/</link>
		<comments>http://kevin.colyar.net/2010/10/conways-game-of-life-on-a-pumpkin/#comments</comments>
		<pubDate>Mon, 25 Oct 2010 16:13:48 +0000</pubDate>
		<dc:creator>Kevin Colyar</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://kevin.colyar.net/?p=414</guid>
		<description><![CDATA[<iframe src="http://player.vimeo.com/video/16185185" width="400" height="225" frameborder="0"></iframe>]]></description>
			<content:encoded><![CDATA[<h3>The Final Product</h3>
<p><iframe src="http://player.vimeo.com/video/16185185" width="400" height="225" frameborder="0"></iframe><br />
<span id="more-414"></span></p>
<h3>The Build Process</h3>
<p><a href="http://kevin.colyar.net/wp-content/uploads/2010/10/IMG_0282.jpg"><img class="alignleft size-medium wp-image-425" title="IMG_0282" src="http://kevin.colyar.net/wp-content/uploads/2010/10/IMG_0282-e1288023162151-224x300.jpg" alt="" width="224" height="300" /></a></p>
<ul>Ingredients</p>
<li>Pumpkin</li>
<li>Drill</li>
<li><a href=" http://amzn.to/9bthtA">Arduino</a></li>
<li><a href="http://mayhewlabs.com/arduino-mux-shield">Arduino Mux Shield</a> &#8211; Give the Arduino 48 inputs/ouputs</li>
<li><a href="http://www.amazon.com/gp/product/B003KWYLTQ/ref=oss_product">LEDs </a>- These were bigger that I anticipated but still worked</li>
<li>Resistors &#8211; Ended up not needing any</li>
<li>Wiring &#8211; I just used what I could find, some patch cat5 cable mostly</li>
<li>Drink Straws</li>
</ul>
<hr width=90% style="background-color: #EEE; color: #EEE; margin-bottom: 30px">
<p><a href="http://kevin.colyar.net/wp-content/uploads/2010/10/IMG_0294-e1288022713778.jpg"><img class="size-medium wp-image-423 alignnone" title="IMG_0294" src="http://kevin.colyar.net/wp-content/uploads/2010/10/IMG_0294-e1288022713778-224x300.jpg" alt="" width="224" height="300" /></a></p>
<p>Pumpkin after 48 holes drilled and pieces of straws places inside for the leds and wires.</p>
<hr width=90% style="background-color: #EEE; color: #EEE; margin-bottom: 30px">
<p><a href="http://kevin.colyar.net/wp-content/uploads/2010/10/IMG_0296-e1288022660211.jpg"><img class="alignnone size-medium wp-image-422" title="IMG_0296" src="http://kevin.colyar.net/wp-content/uploads/2010/10/IMG_0296-e1288022660211-224x300.jpg" alt="" width="224" height="300" /></a></p>
<p>Wires &#8211; 5 sections of 3&#8242; patch cable that I scrounged from my wiring supply.  I also recommended that you have a puppy around to help you solder.</p>
<hr width=90% style="background-color: #EEE; color: #EEE; margin-bottom: 30px">
<p><a href="http://kevin.colyar.net/wp-content/uploads/2010/10/IMG_0298-e1288022561499.jpg"><img class="alignnone size-medium wp-image-420" title="IMG_0298" src="http://kevin.colyar.net/wp-content/uploads/2010/10/IMG_0298-e1288022561499-224x300.jpg" alt="" width="224" height="300" /></a></p>
<p> Leads &#8211; Each 3&#8242; section of patch cable had 8 wires that I used for the positive lead that I ran from the arduino to the positive of the led.  Each section of 8 leads is one row of the led matrix, which made it easy to program.  If I would&#8217;ve had more patch cable I could have used each stranded pair as the positive and negative lead, however, I ended up using what I had which was just some small gauge, solid core wiring.</p>
<hr width=90% style="background-color: #EEE; color: #EEE; margin-bottom: 30px">
<p>Unfortunately, those are all the pictures I managed to take during the build.  All that remains was to run the negative leads, solder all the LEDs, plugin all the leads to the mux shield, and program the Arduino.  Getting the mux shield to output up to all 48 pins at the same time was by far the most difficult part of this whole endeavor, but once I figured out the right calls to make, it all came together.</p>
<p>
I&#8217;d love to hear your feedback.  Leave a comment below or <a href="http://kevin.colyar.net/contact/">contact me</a>.</p>
<img src="http://feeds.feedburner.com/~r/kevincolyar/~4/Od319KokhlU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://kevin.colyar.net/2010/10/conways-game-of-life-on-a-pumpkin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://kevin.colyar.net/2010/10/conways-game-of-life-on-a-pumpkin/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=conways-game-of-life-on-a-pumpkin</feedburner:origLink></item>
	</channel>
</rss>

