<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	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/"
	>

<channel>
	<title>ELEVATION Dev Blog &#187; Uncategorized</title>
	<atom:link href="http://dev.elevationblog.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://dev.elevationblog.com</link>
	<description></description>
	<lastBuildDate>Wed, 06 Oct 2010 21:07:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Filtering the Twitter Widget</title>
		<link>http://dev.elevationblog.com/2010/10/06/filtering-the-twitter-widget/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=filtering-the-twitter-widget</link>
		<comments>http://dev.elevationblog.com/2010/10/06/filtering-the-twitter-widget/#comments</comments>
		<pubDate>Wed, 06 Oct 2010 21:07:24 +0000</pubDate>
		<dc:creator>Jared</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dev.elevationblog.com/?p=1631</guid>
		<description><![CDATA[While working on a product blog of ours, I wanted to display our recent tweets in the sidebar, but found that included a lot of extraneous @ replies that I didn&#8217;t want included in the stream.  I&#8217;m not sure it&#8217;s documented anywhere, but the official twitter widget does allow you to pass a variable called [...]]]></description>
			<content:encoded><![CDATA[<p>While working on a <a href="http://blog.albumexposure.com" target="_blank">product blog</a> of ours, I wanted to display our recent tweets in the sidebar, but found that included a lot of extraneous @ replies that I didn&#8217;t want included in the stream.  I&#8217;m not sure it&#8217;s documented anywhere, but the official twitter widget does allow you to pass a variable called filters to do this.  Here&#8217;s how I implemented it:</p>
<pre class="brush: javascript">
<script src="http://widgets.twimg.com/j/2/widget.js" type="text/javascript"></script> <script type="text/javascript">// <![CDATA[
    function isReply(text){
      return text.indexOf('@') == 0
    }

    new TWTR.Widget({
      version: 2,
      type: 'profile',
      rpp: 200,
      interval: 4500,
      title: '',
      subject: '',
      width: 200,
      height: 300,
      theme: {
        shell: {
          background: '#ffffff',
          color: '#666666'
        },
        tweets: {
          background: '#ffffff',
          color: '#666666',
          links: '#235e7a'
        }
      },
      features: {
        scrollbar: false,
        loop: true,
        live: true,
        hashtags: true,
        timestamp: false,
        avatars: false,
        behavior: 'default',
        filters: {negatives: {test: isReply }}
      }
    }).render().setUser('yourtwittername').start();
// ]]&gt;</script>
</pre>
<p>On line 2 is where I added my filtering function, in this case all tweets that start with @, which are replies.  Line 34 is where I pass the filter function to the twitter widget.  Negatives indicates to the twitter script that I want it to remove all tweets that my filter function returns true for.  If you wanted to do the reverse, just change &#8216;negatives&#8217; to &#8216;positives&#8217; and in this case, it would only show the @ replies in the stream.</p>
]]></content:encoded>
			<wfw:commentRss>http://dev.elevationblog.com/2010/10/06/filtering-the-twitter-widget/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>autospec/autotest cucumber infinite loop</title>
		<link>http://dev.elevationblog.com/2010/01/18/autospecautotest-cucumber-infinite-loop/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=autospecautotest-cucumber-infinite-loop</link>
		<comments>http://dev.elevationblog.com/2010/01/18/autospecautotest-cucumber-infinite-loop/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 23:16:20 +0000</pubDate>
		<dc:creator>Jared</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dev.elevationblog.com/?p=1606</guid>
		<description><![CDATA[Had issue today with autospec never stopping, and found this article, but I did have the autotest-rails gem installed.  Thanks to Mario Aquino&#8217;s article here, I learned that you can pass -v to autospec/autotest and it will print out what triggered it to run.  My culprit was rerun.txt, and then I found buried in the [...]]]></description>
			<content:encoded><![CDATA[<p>Had issue today with autospec never stopping, and found <a href="http://www.ruby-forum.com/topic/183578">this article</a>, but I did have the autotest-rails gem installed.  Thanks to Mario Aquino&#8217;s article <a href="http://marioaquino.blogspot.com/2009/12/my-dot-autotest.html">here</a>, I learned that you can pass -v to autospec/autotest and it will print out what triggered it to run.  My culprit was rerun.txt, and then I found buried in the <a href="http://wiki.github.com/aslakhellesoy/cucumber/autotest-integration">Cucumber documentation</a>:</p>
<blockquote><p>If you find that autotest runs your features continuously, your features may be changing a file which autotest is monitoring as they run. Use a setting like this to ignore such files. You’ll likely need to set autotest to ignore “rerun.txt” as well.</p></blockquote>
<p>So, to your project&#8217;s .autotest or at ~/.autotest, add something like this:</p>
<p><code>Autotest.add_hook :initialize do |at|<br />
	%w{.svn .hg .git vendor rerun.txt}.each {|exception| at.add_exception(exception)}<br />
end</code></p>
<p>At least, that&#8217;s what my ~/.autotest has, and after adding rerun.txt in there, everything is good.</p>
<p>Hopefully this will help someone else googling for the same thing I was with no luck.</p>
]]></content:encoded>
			<wfw:commentRss>http://dev.elevationblog.com/2010/01/18/autospecautotest-cucumber-infinite-loop/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>wordpress now playing plugin</title>
		<link>http://dev.elevationblog.com/2009/10/20/wordpress-now-playing/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=wordpress-now-playing</link>
		<comments>http://dev.elevationblog.com/2009/10/20/wordpress-now-playing/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 16:00:09 +0000</pubDate>
		<dc:creator>Jared</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dev.elevationblog.com/?p=1581</guid>
		<description><![CDATA[We love music around here, which is why we&#8217;re always showing off what were listening too over on the left. Some time ago I automated the process of looking up album artwork using the Amazon API and posting it on or blog. This approach has a couple advantages over things like last.fm, like being able [...]]]></description>
			<content:encoded><![CDATA[<p>We love music around here, which is why we&#8217;re always showing off what were listening too over on the left.  Some time ago I automated the process of looking up album artwork using the Amazon API and posting it on or blog.</p>
<p>This approach has a couple advantages over things like last.fm, like being able to select exactly what you want shown, and automatic linking to amazon for affiliate commissions.</p>
<p>I&#8217;ve packaged everything up into a wordpress plugin and put it on my github page here:  <a href="http://github.com/jaredmoody/wp_now_playing" target="_blank">http://github.com/jaredmoody/wp_now_playing</a></p>
<p>It also comes with a nice applescript so you can submit what&#8217;s currently playing to your blog with a single click:</p>
<p><img class="alignnone" src="http://github.com/jaredmoody/wp_now_playing/raw/master/screenshot-2.png" alt="" width="560" height="72" /></p>
<p>I&#8217;d love some feedback on it, and patches are also more than welcome.</p>
<p>Please report any issues on the github page, thanks!</p>
]]></content:encoded>
			<wfw:commentRss>http://dev.elevationblog.com/2009/10/20/wordpress-now-playing/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>renaming files on upload with paperclip</title>
		<link>http://dev.elevationblog.com/2009/10/15/renaming-files-on-upload-with-paperclip/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=renaming-files-on-upload-with-paperclip</link>
		<comments>http://dev.elevationblog.com/2009/10/15/renaming-files-on-upload-with-paperclip/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 22:24:19 +0000</pubDate>
		<dc:creator>Jared</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[paperclip rename]]></category>

		<guid isPermaLink="false">http://dev.elevationblog.com/2009/10/15/renaming-files-on-upload-with-paperclip/</guid>
		<description><![CDATA[I hadn&#8217;t done this before and everywhere I googled suggested using a custom interpolation to replace :basename in the default :path and :url params to has_attached_file The problem with this is 1. the actual image_file_name column in the database doesn&#8217;t get replaced 2 whatever you put in your interpolation function gets run every time the [...]]]></description>
			<content:encoded><![CDATA[<p>I hadn&#8217;t done this before and everywhere I googled suggested using a custom interpolation to replace :basename in the default :path and :url params to has_attached_file</p>
<p>The problem with this is 1. the actual image_file_name column in the database doesn&#8217;t get replaced 2 whatever you put in your interpolation function gets run every time the image url gets generated.</p>
<p>The answer is just rename the image_file_name before the model gets saved.</p>
]]></content:encoded>
			<wfw:commentRss>http://dev.elevationblog.com/2009/10/15/renaming-files-on-upload-with-paperclip/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>installing id3lib-ruby on snow leopard</title>
		<link>http://dev.elevationblog.com/2009/09/21/installing-id3lib-ruby-on-snow-leopard/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=installing-id3lib-ruby-on-snow-leopard</link>
		<comments>http://dev.elevationblog.com/2009/09/21/installing-id3lib-ruby-on-snow-leopard/#comments</comments>
		<pubDate>Tue, 22 Sep 2009 05:21:29 +0000</pubDate>
		<dc:creator>Jared</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dev.elevationblog.com/?p=1548</guid>
		<description><![CDATA[I couldn&#8217;t find this anywhere, but pieced it out from the article on riding rails: sudo env ARCHFLAGS="-arch x86_64" gem install id3lib-ruby]]></description>
			<content:encoded><![CDATA[<p>I couldn&#8217;t find this anywhere, but pieced it out from the article on <a href="http://weblog.rubyonrails.org/2009/8/30/upgrading-to-snow-leopard">riding rails</a>:</p>
<pre class="brush: bash">sudo env ARCHFLAGS="-arch x86_64" gem install id3lib-ruby</pre>
]]></content:encoded>
			<wfw:commentRss>http://dev.elevationblog.com/2009/09/21/installing-id3lib-ruby-on-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

