<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Article RSS Feed</title>
    <link>http://your-web-site.com/rss/</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>The main blog feed for my Web site.</description>
    
    
        <item>
          <title>chef .8 down and dirty in screen</title>
          <description>&lt;p&gt;Simple post, just to detail if you want .8 and don&amp;#8217;t want to use bootstrap or runit or init and you just want it working.&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Get the base system up&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code&gt;sed -i 's/universe/multiverse universe/' /etc/apt/sources.list&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;apt-get update&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;env DEBIAN_FRONTEND=noninteractive apt-get upgrade -y&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;echo 'sun-java6-jdk shared/accepted-sun-dlj-v1-1 boolean true' | sudo debconf-set-selections&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;apt-get install -y ruby ruby1.8-dev libopenssl-ruby1.8 rdoc ri irb build-essential zlib1g-dev libxml2-dev wget ssl-cert git-core couchdb sun-java6-jdk sun-java6-jre&lt;/code&gt;&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Setup gem to not annoy me&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code&gt;echo &quot;gem: --no-rdoc --no-ri&quot; &amp;gt;&amp;gt; ~/.gemrc&lt;/code&gt;&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Now install rubygems,&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code&gt;cd /tmp&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;wget http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;tar zxf rubygems-1.3.5.tgz&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;cd rubygems-1.3.5&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;sudo ruby setup.rb --no-ri --no-rdoc&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;sudo ln -sfv /usr/bin/gem1.8 /usr/bin/gem&lt;/code&gt;&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Install RabbitMQ&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code&gt;wget http://www.rabbitmq.com/releases/rabbitmq-server/v1.7.0/rabbitmq-server_1.7.0-1_all.deb&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;dpkg -i rabbitmq-server_1.7.0-1_all.deb&lt;/code&gt;&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;&lt;del&gt;Install Nanite&lt;/del&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;del&gt;gem install nanite&lt;/del&gt;&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Make sure you have rake/etc installed&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code&gt;gem install rake cucumber rspec libxml-ruby jeweler thin unicorn merb-core merb-slices&lt;/code&gt;&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;now setup RabbitMQ so that chef can talk to it (no more nanite)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code&gt;rabbitmqctl add_vhost /chef&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;rabbitmqctl add_user chef testing&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;rabbitmqctl set_permissions -p /chef chef &quot;.*&quot; &quot;.*&quot; &quot;.*&quot;&lt;/code&gt;&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Grab Chef .8 from master and start work&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code&gt;mkdir git;git clone git://github.com/opscode/chef.git&lt;/code&gt;&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Install chef from master&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code&gt;rake install&lt;/code&gt;&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;You may catch a few missing dependencies, gem install them if I missed it (but I think this is right)&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
	&lt;li&gt;Now you need to install the chef-solr bins (the gemspec isn&amp;#8217;t fixed to do this yet)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code&gt;cd git/chef/chef-solr/bin;cp * /usr/bin&lt;/code&gt;&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Grab mixlib-authentication from git&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code&gt;git clone git://github.com/opscode/mixlib-authentication.git&lt;/code&gt;&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Install mixlib-authentication&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code&gt;cd mixlib-authentication &amp;amp;&amp;amp; rake install&lt;/code&gt;&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Grab mixlib-log from git&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code&gt;git clone git://github.com/opscode/mixlib-log&lt;/code&gt;&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Install that also&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code&gt;cd mixlib-log &amp;amp;&amp;amp; rake install&lt;/code&gt;&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Now fire up screen and start it up&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
	&lt;li&gt;In not the perfect order, but.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;1. &lt;del&gt;Start nanite&amp;#8230;&lt;/del&gt;&lt;/p&gt;
&lt;p&gt;&lt;del&gt;nanite-mapper&lt;/del&gt;&lt;/p&gt;
&lt;p&gt;2. Start chef-solr&lt;/p&gt;
&lt;p&gt;&lt;code&gt;chef-solr&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;3. Start chef-solr-indexer&lt;/p&gt;
&lt;p&gt;&lt;code&gt;chef-solr-indexer&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;4. Grab some configs that should work,&lt;/p&gt;
&lt;p&gt;&lt;code&gt;mkdir -p /etc/chef&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;cd /etc/chef;wget http://likens.us/server.rb&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;cd /etc/chef;wget http://likens.us/client.rb&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;4. Start chef-server&lt;/p&gt;
&lt;p&gt;&lt;code&gt;chef-server&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;5. Now configure knife to work with the webui key and you should be solid.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;knife configure&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;6. Run chef-client over localhost and it should register and work hopefully&lt;/p&gt;
&lt;p&gt;7. Enjoy&lt;/p&gt;
&lt;p&gt;8. Thanks to Bryan Helmkamp for updates to this post.&lt;/p&gt;</description>
          <pubDate>Mon, 14 Dec 2009 11:36:37 GMT</pubDate>
          <guid>http://your-web-site.com/articles/2009/12/14/chef-8-down-and-dirty-in-screen/</guid>
          <link>http://your-web-site.com/articles/2009/12/14/chef-8-down-and-dirty-in-screen/</link>
        </item>
    
        <item>
          <title>down the pipe we go</title>
          <description>&lt;h4&gt;Well I took the plunge and decided to upgrade my development chef-server to .8 alpha, and as I will honestly say it was a bit bumpy getting setup; but after a little work I got everything working.&lt;/h4&gt;
&lt;p&gt;Some oddity&amp;#8217;s i&amp;#8217;m sure will get cleaned up during the process, but I figured I would outline what I did to get it up and running so others can hack on it and make chef .8 a better place!&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;I&amp;#8217;m running Ubuntu Karmic release, keep that in mind&amp;#8230;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Step 1, install the gems you need&amp;#8230;&lt;/p&gt;</description>
          <pubDate>Thu, 05 Nov 2009 14:50:44 GMT</pubDate>
          <guid>http://your-web-site.com/articles/2009/11/05/down-the-pipe-we-go/</guid>
          <link>http://your-web-site.com/articles/2009/11/05/down-the-pipe-we-go/</link>
        </item>
    
        <item>
          <title>Why you should never do major changes to an API/Major flow in a minor release.</title>
          <description>&lt;p&gt;You&amp;#8217;ll have to pardon my &lt;em&gt;rant&lt;/em&gt;, as it is a &lt;em&gt;rant&lt;/em&gt;, however it is one that annoys me strongly when it happens&amp;#8230;  Something changes in minor release of something.  &lt;/p&gt;

&lt;p&gt;In this case, my pain is Chef; as 0.7.0 came out we were rocking with Metadata.rb, as I wasn&amp;#8217;t paying attention and reading release documentation properly suddenly that doesn&amp;#8217;t do squat, and everything is in Metadata.json.  I&amp;#8217;m sure there was something in one of the release notes that I omitted, however it brings up a valid point that Opscode has broken many times (I am only mentioning these 2) in the .7 release cycle&lt;/p&gt;

&lt;p&gt;They have repeatedly broken the basic idea of not making major changes in a minor release, such as this, or when they re-wrote the bootstrap system; and then neutered the old system so you had to use the old bootstrap tarball (which is the only reason I am not up in arms).  &lt;/p&gt;

&lt;p&gt;&amp;#8230; However, if you want to do things like this, you should release a new major version and allow people to get used to the major changes.  There are always growing pains with anything new, different, &amp;#8230; however the past has taught us that you should not make stupid major changes to a structure without a major release.&lt;/p&gt;

&lt;p&gt;&lt;del&gt;Here&amp;#8217;s to hoping that they don&amp;#8217;t continue this fatal folly in the .8 series (when it&amp;#8217;s out)&lt;/del&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;update&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Adam Jacob has mentioned that .8 will be a smoother release and not have the backwards compatibility issues that plagued .7&lt;/p&gt;</description>
          <pubDate>Mon, 02 Nov 2009 21:36:37 GMT</pubDate>
          <guid>http://your-web-site.com/articles/2009/11/02/why-you-should-never-do-major-changes-to-an-apimajor-flow-in-a-minor-release-/</guid>
          <link>http://your-web-site.com/articles/2009/11/02/why-you-should-never-do-major-changes-to-an-apimajor-flow-in-a-minor-release-/</link>
        </item>
    
        <item>
          <title>... a simple yet elegant and quick way to move your data from MySQL to MogoDB for playing with...</title>
          <description>&lt;p&gt;After enjoying some time with MongoDB earlier I decided to instead of manually adding data, just take an existing database in MySQL and move it over to MongoDB; and from there you can truly decide for yourself right?&lt;/p&gt;
&lt;p&gt;29 lines later, I have my data and can index it and start using it immediately.&lt;/p&gt;
&lt;h3&gt;Requirements:&lt;/h3&gt;
&lt;ul&gt;
	&lt;li&gt;Ruby&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
	&lt;li&gt;Sequel&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
	&lt;li&gt;MongoDB&lt;/li&gt;
&lt;/ul&gt;
1. Provided you have mongod running, and the ruby &lt;strong&gt;mysql&lt;/strong&gt; gem installed as well as the &lt;strong&gt;mongo&lt;/strong&gt; gem, you can copy and paste this rather simple script and adapt it to your needs.
&lt;blockquote&gt;
&lt;p&gt;#!/usr/bin/ruby&lt;br /&gt;
require &amp;#8216;rubygems&amp;#8217;&lt;br /&gt;
require &amp;#8216;sequel&amp;#8217;&lt;br /&gt;
require &amp;#8216;mongo&amp;#8217;&lt;br /&gt;
require &amp;#8216;pp&amp;#8217;&lt;br /&gt;
include Mongo&lt;br /&gt;
v = []&lt;br /&gt;
@db2 = Mongo::Connection.new(&amp;#8220;localhost&amp;#8221;).db(&amp;#8216;database&amp;#8217;)&lt;br /&gt;
coll = @db2.collection(&amp;#8216;collection&amp;#8217;)&lt;br /&gt;
coll.clear&lt;br /&gt;
@db = Sequel.mysql(&lt;br /&gt;
  &amp;#8216;database&amp;#8217;&lt;br /&gt;
  :user =&amp;gt; &amp;#8220;user&amp;#8221;&lt;br /&gt;
  :password =&amp;gt; &amp;#8220;password&amp;#8221;,&lt;br /&gt;
  :host =&amp;gt; &amp;#8220;localhost&amp;#8221;&lt;br /&gt;
)&lt;br /&gt;
@db [&lt;br /&gt;
   &amp;#8220;select id, column1, column2, column3 from table&amp;#8221;&lt;br /&gt;
   ].all do |query|&lt;br /&gt;
    b = {&lt;br /&gt;
  :id =&amp;gt; query[:id],&lt;br /&gt;
  :column1 =&amp;gt; query[:column1],&lt;br /&gt;
  :column2 =&amp;gt; query[:column2],&lt;br /&gt;
  :column3 =&amp;gt; query[:column3],&lt;br /&gt;
    }&lt;br /&gt;
    v.push(b)&lt;br /&gt;
  end&lt;br /&gt;
  coll.insert(v)&lt;/p&gt;
&lt;/blockquote&gt;
2. sit back and now enjoy.</description>
          <pubDate>Mon, 19 Oct 2009 20:56:55 GMT</pubDate>
          <guid>http://your-web-site.com/articles/2009/10/19/goodbye_mysql_hello_mongodb/</guid>
          <link>http://your-web-site.com/articles/2009/10/19/goodbye_mysql_hello_mongodb/</link>
        </item>
    
        <item>
          <title>... welcome to my site</title>
          <description>&lt;p&gt;Welcome to the re-launch of my site using &lt;a href=&quot;http://radiantcms.org&quot;&gt;Radiant &lt;span class=&quot;caps&quot;&gt;CMS&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You won&amp;#8217;t find much here at first, however you will find more tid bits about what I have done with chef and other various things at &lt;a href=&quot;http://github.com/damm&quot;&gt;Github&lt;/a&gt;&lt;/p&gt;</description>
          <pubDate>Fri, 09 Jun 2006 00:00:00 GMT</pubDate>
          <guid>http://your-web-site.com/articles/2006/06/09/-welcome-to-my-site/</guid>
          <link>http://your-web-site.com/articles/2006/06/09/-welcome-to-my-site/</link>
        </item>
    
    
  </channel>
</rss>

