<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>Wal McConnell - What! What?</title>
  <link href="http://wal.github.com/atom.xml" rel="self"/>
  <link href="http://wal.github.com/"/>
  <updated>2010-07-28T17:06:31-07:00</updated>
  <id>http://wal.github.com/</id>
  <author>
    <name>wal.github.com</name>
    <email>man@wal.github.com</email>
  </author>

  
  <entry>
    <title>Sinatra & Heroku & NewRelic</title>
    <link href="http://wal.github.com/2010/07/11/Sinatra+Heroku+NewRelic"/>
    <updated>2010-07-11T00:00:00-07:00</updated>
    <id>http://wal.github.com/2010/07/11/Sinatra Heroku NewRelic</id>
    <content type="html">&lt;p&gt;The docs for instrumenting your Sinatra app with New Relic on Heroku are either wrong or a bit sparse. Its actually very simple.&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;Add the newrelic_rpm gem to either your .gems or Gemfile&lt;/li&gt;
	&lt;li&gt;require the rpm library when in production
&lt;pre&gt;&lt;code&gt;configure :production do
	require 'newrelic_rpm'
end&lt;/pre&gt;&lt;/code&gt;                                          
	&lt;/li&gt;
	&lt;li&gt;add the heroku new_relic addon
&lt;pre&gt;&lt;code&gt;heroku addons:add newrelic:bronze&lt;/code&gt;&lt;/pre&gt;
	&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A full working example is &lt;a href=&quot;http://github.com/wal/sinatra_heroku_newrelic&quot;&gt;here!&lt;/a&gt;&lt;/p&gt;</content>
  </entry>
  
  <entry>
    <title>RDS Database Stats</title>
    <link href="http://wal.github.com/2010/07/10/RDS+Stats+via+Cloudwatch"/>
    <updated>2010-07-10T00:00:00-07:00</updated>
    <id>http://wal.github.com/2010/07/10/RDS Stats via Cloudwatch</id>
    <content type="html">&lt;p&gt;If you use Amazon RDS the following might be useful for pulling some simple Min, Max stats (FreeStorageSpace, CPU Utilisation and DB Connection Count) about your RDS instance&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;git clone http://github.com/wal/RDS-DB-Stats.git
cd RDS-DB-Stats
ruby rds_db_stats.rb AWS_ACCESS_KEY AWS_SECRET_KEY RDS_ID TIME
&lt;/code&gt;&lt;/pre&gt;
                                                                    
&lt;pre&gt;&lt;code&gt;RDS_ID - your rds instance identifier&lt;/code&gt;&lt;/pre&gt;

&lt;pre&gt;&lt;code&gt;TIME - the number of minutes you want to calculate the stats for 
(i.e 60 = last hour)&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Code is on &lt;a href=&quot;http://github.com/wal/RDS-DB-Stats&quot;&gt;Github&lt;/a&gt;&lt;/p&gt;
</content>
  </entry>
  
  <entry>
    <title>Darragh and Myself and Scotland Ruby Conf 2010</title>
    <link href="http://wal.github.com/2010/07/01/Scotland+Ruby+Conf"/>
    <updated>2010-07-01T00:00:00-07:00</updated>
    <id>http://wal.github.com/2010/07/01/Scotland Ruby Conf</id>
    <content type="html">&lt;video controls='' poster='http://video2010.scottishrubyconference.com/images/video_still.png'&gt;
 &lt;source src='http://video.scottishrubyconference.com/Day_02LT_04-mp4_500mbs.mp4' type='video/mp4'&gt;  &lt;/source&gt;

 &lt;source src='http://video.scottishrubyconference.com/Day_02LT_04-mp4_500mbs.ogv' type='video/ogg'&gt;  &lt;/source&gt;
 &lt;object data='http://video.scottishrubyconference.com/Day_02LT_04-mp4_500mbs.mp4' type='video/quicktime'&gt;
   &lt;param name='src' value='http://video.scottishrubyconference.com/Day_02LT_04-mp4_500mbs.mp4' /&gt;
   &lt;param name='showlogo' value='false' /&gt;
   &lt;param name='autoplay' value='false' /&gt;
   &lt;img alt='__Title of video__' src='/images/video_still.png' title='No video playback capabilities, please download the video below' /&gt;
 &lt;/object&gt;
&lt;/video&gt;
</content>
  </entry>
  
  <entry>
    <title>Git Submodules</title>
    <link href="http://wal.github.com/2010/06/21/Git-Submodules"/>
    <updated>2010-06-21T00:00:00-07:00</updated>
    <id>http://wal.github.com/2010/06/21/Git-Submodules</id>
    <content type="html">&lt;p&gt;Working with work-in-progress rails plugins can be a right pain. Especially if you need to upgrade them often. &lt;/p&gt;

&lt;p&gt;I've started to install plugins in my rails apps as git submodules, this allows me to upgrade them easily, and also win the power of git for manipulating them. This is especially useful for making patches, and developing plugins&lt;/p&gt;

&lt;p&gt;Adding submodules is easy. Instead of the usual &lt;pre&gt;&lt;code&gt;script/plugin install ... &lt;/code&gt;&lt;/pre&gt; stuff, use&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;
git submodule add GIT-URL-OF-PLUGIN ./vendor/plugins/PLUGIN-NAME
&lt;/code&gt;&lt;/pre&gt;
                                                                    
&lt;p&gt;e.g&lt;/p&gt; 

&lt;pre&gt;&lt;code&gt;
git submodule add git@github.com:contrast/exceptional.git ./vendor/plugins/exceptional
&lt;/code&gt;&lt;/pre&gt;

                                                                                                            
&lt;p&gt;** Warning **  Installing a plugin this way will not fire its initialization. So you might need to run the init.rb for your plugin manually&lt;/p&gt;


&lt;p&gt;Now you can cd into that plugin folder, and use all its git commands as if it was an isolated git repo&lt;/p&gt;
</content>
  </entry>
  
  <entry>
    <title>The Dreyfus model of skill acquisition</title>
    <link href="http://wal.github.com/2009/11/05/Dreyfus"/>
    <updated>2009-11-05T00:00:00-08:00</updated>
    <id>http://wal.github.com/2009/11/05/Dreyfus</id>
    <content type="html">&lt;p&gt;Inspired by a great talk I attended today by &lt;a href=&quot;http://twitter.com/Simmy&quot;&gt;Ryan Sims&lt;/a&gt; I've been swoting up on the &lt;a href=&quot;http://en.wikipedia.org/wiki/Dreyfus_model_of_skill_acquisition&quot;&gt;Dreyfus model&lt;/a&gt; which defines a model for new skill acquisition. Thinking about this model while acquiring new skills allows you to focus on what you need to do to get to the next level (eventually Expert), rather than just simply spending time with a new technology/subject which I all too often do. Its about 'learning smartly'.&lt;/p&gt;</content>
  </entry>
  
</feed>