<?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</title>
	<atom:link href="http://dev.elevationblog.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://dev.elevationblog.com</link>
	<description></description>
	<lastBuildDate>Wed, 03 Feb 2010 02:10:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>autospec/autotest cucumber infinite loop</title>
		<link>http://dev.elevationblog.com/2010/01/18/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>3</slash:comments>
		</item>
		<item>
		<title>all day events in event calendar</title>
		<link>http://dev.elevationblog.com/2009/12/10/all-day-events-in-event-calendar/</link>
		<comments>http://dev.elevationblog.com/2009/12/10/all-day-events-in-event-calendar/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 20:26:13 +0000</pubDate>
		<dc:creator>Jeff Schuil</dc:creator>
				<category><![CDATA[Home]]></category>
		<category><![CDATA[calendar]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://dev.elevationblog.com/?p=1597</guid>
		<description><![CDATA[Some events don&#8217;t start and stop at specific times, but instead last all day. We&#8217;ve had this option when creating events in our application(s), but until now it wasn&#8217;t visually apparent when shown in EventCalendar, a rails plugin.
Now we have a new use_all_day option!
When set to true, the plugin checks if the event is all [...]]]></description>
			<content:encoded><![CDATA[<p>Some events don&#8217;t start and stop at specific times, but instead last all day. We&#8217;ve had this option when creating events in our application(s), but until now it wasn&#8217;t visually apparent when shown in <a href="http://github.com/elevation/event_calendar/">EventCalendar</a>, a rails plugin.</p>
<p>Now we have a new <em>use_all_day</em> option!</p>
<p>When set to true, the plugin checks if the event is all day and/or multiple days. If it is, then it will display with the usual background color bar. Otherwise it just shows the event text using its color. (Similar to many popular calendar programs.)</p>
<p>For more info check out: the <a href="http://dev.elevationblog.com/wp-content/uploads/2009/12/cal-times.png">screenshot</a>, <a href="http://dev.elevationblog.com/2009/07/23/event-calendar-rails-plugin/">homepage</a>, and <a href="http://github.com/elevation/event_calendar">github</a> (<a href="http://github.com/elevation/event_calendar/commit/d3acae4586d38a235bc00d0a26f2d6f62f55252d">commit</a>).</p>
]]></content:encoded>
			<wfw:commentRss>http://dev.elevationblog.com/2009/12/10/all-day-events-in-event-calendar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Event Calendar HTML Generation Rewrite</title>
		<link>http://dev.elevationblog.com/2009/11/23/event-calendar-html-generation-rewrite/</link>
		<comments>http://dev.elevationblog.com/2009/11/23/event-calendar-html-generation-rewrite/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 02:31:23 +0000</pubDate>
		<dc:creator>Jeff Schuil</dc:creator>
				<category><![CDATA[Home]]></category>
		<category><![CDATA[calendar]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://dev.elevationblog.com/?p=1587</guid>
		<description><![CDATA[The Event Calendar rails plugin (see: post &#38; github) we created a few months back has been working great and, thanks to all the feedback, the bugs have pretty much been worked out. There was one annoying limitation, however:
The width couldn&#8217;t be set arbitrarily.
Well, no longer. I completely re-wrote the HTML and CSS styling that [...]]]></description>
			<content:encoded><![CDATA[<p>The Event Calendar rails plugin (see: <a href="http://dev.elevationblog.com/2009/07/23/event-calendar-rails-plugin/">post</a> &amp; <a href="http://github.com/elevation/event_calendar">github</a>) we created a few months back has been working great and, thanks to all the feedback, the bugs have pretty much been worked out. There was one annoying limitation, however:</p>
<p><strong>The width couldn&#8217;t be set arbitrarily</strong>.</p>
<p>Well, no longer. I completely re-wrote the HTML and CSS styling that the helper generates. Events are now table columns which span the calendar days. The calendar grid is also a table, not a background image which needed to be created whenever setting a non-default width.</p>
<p>This means you can give the calendar any width, or don&#8217;t set it at all and let it resize to it&#8217;s containing element. Awesome!</p>
<p>I also took the opportunity to remove some old code, comments, and options that were hanging around from the plugin&#8217;s previous lives. In some ways there is now more flexibility to customize, in a few ways less. One consequence is that some of the options from before the rewrite no longer exist, so update with care.</p>
<p>Overall I&#8217;m very happy with how it turned out. Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://dev.elevationblog.com/2009/11/23/event-calendar-html-generation-rewrite/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wordpress now playing plugin</title>
		<link>http://dev.elevationblog.com/2009/10/20/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>0</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/</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 image [...]]]></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>0</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/</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>2</slash:comments>
		</item>
		<item>
		<title>Event Calendar Rails Plugin</title>
		<link>http://dev.elevationblog.com/2009/07/23/event-calendar-rails-plugin/</link>
		<comments>http://dev.elevationblog.com/2009/07/23/event-calendar-rails-plugin/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 03:43:00 +0000</pubDate>
		<dc:creator>Jeff Schuil</dc:creator>
				<category><![CDATA[Home]]></category>
		<category><![CDATA[calendar]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://elevationblog.com/2009/07/23/event-calendar-rails-plugin</guid>
		<description><![CDATA[For a recent project we needed to show events on a calendar. The existing Rails plugins we tried didn’t allow us to satisfactorily show multiple, overlapping events across calendar days and rows.
I found the same complaint here and began to adapt it to our needs.
I’ve extracted the result and put it on github in the [...]]]></description>
			<content:encoded><![CDATA[<p>For a recent project we needed to show events on a calendar. The existing Rails plugins we tried didn’t allow us to satisfactorily show multiple, overlapping events <em>across</em> calendar days and rows.</p>
<p>I found the same complaint <a href="http://www.cuppadev.co.uk/webdev/making-a-real-calendar-in-rails/">here</a> and began to adapt it to our needs.</p>
<p>I’ve extracted the result and put it on github in the hopes that others might find it useful and/or add improvements.</p>
<p><a href="http://github.com/elevation/event_calendar">http://github.com/elevation/event_calendar</a></p>
<p>The above link has more details, as well as how to install and use the plugin.</p>
<p>Here’s the 1000 word screenshot:</p>
<p style="text-align: center;"><a href="http://dev.elevationblog.com/wp-content/uploads/2009/07/cal.png"><img class="aligncenter size-medium wp-image-1531" title="Event Calendar Screenshot" src="http://dev.elevationblog.com/wp-content/uploads/2009/07/cal-300x270.png" alt="Event Calendar Screenshot" width="300" height="250" /></a></p>
<p>Using the <em>use_all_day</em> option:</p>
<p style="text-align: center;"><a href="http://dev.elevationblog.com/wp-content/uploads/2009/12/cal-times.png"><img class="aligncenter size-medium wp-image-1595" title="Event Calendar using all day option" src="http://dev.elevationblog.com/wp-content/uploads/2009/12/cal-times-300x223.png" alt="Event Calendar using all day option" width="300" height="223" /></a></p>
<p><strong>PLEASE</strong>:</p>
<ul>
<li>Submit bugs or feature requests at <a href="http://github.com/elevation/event_calendar/issues">GitHub Issues</a></li>
<li>Ask questions at the <a href="http://groups.google.com/group/event-calendar-plugin">Google Group</a></li>
</ul>
<p>Thanks and enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://dev.elevationblog.com/2009/07/23/event-calendar-rails-plugin/feed/</wfw:commentRss>
		<slash:comments>79</slash:comments>
		</item>
		<item>
		<title>amend git commit</title>
		<link>http://dev.elevationblog.com/2009/02/04/amend-git-commit/</link>
		<comments>http://dev.elevationblog.com/2009/02/04/amend-git-commit/#comments</comments>
		<pubDate>Wed, 04 Feb 2009 23:03:00 +0000</pubDate>
		<dc:creator>Jeff Schuil</dc:creator>
				<category><![CDATA[Home]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://elevationblog.com/2009/02/04/amend-git-commit</guid>
		<description><![CDATA[Thanks to the beauty of local git repositories, I no longer worry about committing. So what if things aren&#8217;t pretty, its just a snapshot of my work in progress.
When I push to remote, however, its a good idea to clean up these commits. Up till now I&#8217;ve been using git rebase -i which, while very [...]]]></description>
			<content:encoded><![CDATA[<p>Thanks to the beauty of local git repositories, I no longer worry about committing. So what if things aren&#8217;t pretty, its just a snapshot of my work in progress.</p>
<p>When I push to remote, however, its a good idea to clean up these commits. Up till now I&#8217;ve been using git rebase -i which, while very handy, can be a bit of overkill for my normal workflow.</p>
<p>Instead I can use
<pre>git commit --amend</pre>
<p> to squash my new changes into the latest commit. This is what I&#8217;ve usually been doing with rebase -i anyways.</p>
<p>And making a new git alias removes the extra typing.</p>
<p>Git &#8216;R done</p>
]]></content:encoded>
			<wfw:commentRss>http://dev.elevationblog.com/2009/02/04/amend-git-commit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>validate image dimensions with paperclip</title>
		<link>http://dev.elevationblog.com/2009/01/31/validate-image-dimensions-with-paperclip/</link>
		<comments>http://dev.elevationblog.com/2009/01/31/validate-image-dimensions-with-paperclip/#comments</comments>
		<pubDate>Sat, 31 Jan 2009 02:48:00 +0000</pubDate>
		<dc:creator>Jared</dc:creator>
				<category><![CDATA[Home]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[paperclip]]></category>

		<guid isPermaLink="false">http://elevationblog.com/2009/01/31/validate-image-dimensions-with-paperclip</guid>
		<description><![CDATA[I’m liking paperclip, in a recent project I chose it specifically because it buffers writes on uploads, which should help keep memory usage down.
I needed to validate that an uploaded image was at least a certian size, and it was a little tricky, but here’s what I came up with:

 has_attached_file :image,
    [...]]]></description>
			<content:encoded><![CDATA[<p>I’m liking <a href="http://www.thoughtbot.com/projects/paperclip">paperclip</a>, in a recent project I chose it specifically because it buffers writes on uploads, which should help keep memory usage down.</p>
<p>I needed to validate that an uploaded image was at least a certian size, and it was a little tricky, but here’s what I came up with:</p>
<pre class="brush: ruby">
 has_attached_file :image,
                   :styles =&gt; { :original =&gt; ["1000x600&gt;", :jpg]},
                   :whiny_thumbnails =&gt; true

 def validate
    dimensions = Paperclip::Geometry.from_file(self.image.queued_for_write[:original])
    self.errors.add(:image, "Please upload a file at least 700 pixels wide") if dimensions.width &lt; 700
    self.errors.add(:image, "Please upload a file at least 200 pixels tall") if dimensions.height &lt; 200
  end</pre>
<p>like it? hate it? have something better?</p>
]]></content:encoded>
			<wfw:commentRss>http://dev.elevationblog.com/2009/01/31/validate-image-dimensions-with-paperclip/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>redmine and git</title>
		<link>http://dev.elevationblog.com/2009/01/15/redmine-and-git/</link>
		<comments>http://dev.elevationblog.com/2009/01/15/redmine-and-git/#comments</comments>
		<pubDate>Thu, 15 Jan 2009 20:54:00 +0000</pubDate>
		<dc:creator>Jared</dc:creator>
				<category><![CDATA[Home]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[redmine]]></category>
		<category><![CDATA[workflow]]></category>

		<guid isPermaLink="false">http://elevationblog.com/2009/01/15/redmine-and-git</guid>
		<description><![CDATA[Over the last few months, I’ve become a big fan of Redmine.  It’s just what I was looking for when I was tired of setting up a TRAC for each project but missed the source code integration when we were using Basecamp.  Redmine doesn’t look very pretty at first, but there’s some good [...]]]></description>
			<content:encoded><![CDATA[<p>Over the last few months, I’ve become a big fan of <a href="http://www.redmine.org/">Redmine</a>.  It’s just what I was looking for when I was tired of setting up a <span class="caps">TRAC</span> for each project but missed the source code integration when we were using Basecamp.  Redmine doesn’t look very pretty at first, but there’s some good themes (we use the basecamp inspired theme) that make it much better.</p>
<p>When we started using git, it brought some new issues up with our workflow and redmine, and we’re  <a href="http://www.redmine.org/boards/1/topics/show/1702#message-2178">not the only ones</a> .  Some people are just changing and making the repository on their redmine server their “central” repository, but our redmine is hosted locally, and our repositories for each project are hosted on the deployment machine.  This causes some problems because the redmine repo doesn’t receive updates.</p>
<p>There’s a <a href="http://github.com/mwilliams/redmine-git-extras-plugin">plugin</a> aimed at solving this, but it’s not functional yet. We solved it with a quick hack to run a git pull before redmine brings in new information from the repository:</p>
<pre class="brush: diff">
Index: app/models/repository/git.rb
===================================================================
--- app/models/repository/git.rb (revision 2251)
+++ app/models/repository/git.rb (working copy)
@@ -36,6 +36,7 @@
end

def fetch_changesets
+ scm.fetch
scm_info = scm.info
if scm_info
# latest revision found in database
Index: lib/redmine/scm/adapters/git_adapter.rb

===================================================================
--- lib/redmine/scm/adapters/git_adapter.rb (revision 2251)
+++ lib/redmine/scm/adapters/git_adapter.rb (working copy)
@@ -24,6 +24,11 @@

# Git executable name
GIT_BIN = "git"
+
+ def fetch
+ cmd="#{GIT_BIN} --git-dir #{target('')} --bare fetch"
+ shellout(cmd)
+ end

# Get the revision of a particuliar file
def get_rev (rev,path)</code></pre>
<p>Simple, but functional. Give us a shout if this helps you or if you have a better solution.</p>
]]></content:encoded>
			<wfw:commentRss>http://dev.elevationblog.com/2009/01/15/redmine-and-git/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.509 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2010-03-11 12:56:23 -->
