<?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>My name is Joel &#187; Web Development</title>
	<atom:link href="http://joeloliveira.com/category/web-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://joeloliveira.com</link>
	<description>I work on the web making stuff I like. I live in Boston(-ish) with my wife and our English Bulldog.</description>
	<lastBuildDate>Sun, 09 Oct 2011 19:47:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>The ampersand &amp; a killer Sass feature</title>
		<link>http://joeloliveira.com/2011/06/28/the-ampersand-a-killer-sass-feature/</link>
		<comments>http://joeloliveira.com/2011/06/28/the-ampersand-a-killer-sass-feature/#comments</comments>
		<pubDate>Wed, 29 Jun 2011 03:55:47 +0000</pubDate>
		<dc:creator>Joel</dc:creator>
				<category><![CDATA[Sass]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://joeloliveira.com/?p=892</guid>
		<description><![CDATA[Earlier tonight Adam Stacoviak posted something on his blog about the killer feature that is the ampersand in the Sass CSS meta-language. Go read it immediately. Go. I&#8217;ll wait here. So &#8211; to boil this down &#8230; the &#8220;&#038;&#8221; tells sass to pull the entire parent selector into where you place this beautiful little ampersand. [...]]]></description>
			<content:encoded><![CDATA[<p>Earlier tonight <a href="http://twitter.com/adamstac">Adam Stacoviak</a> posted <a href="http://adamstacoviak.com/posts/referencing-parent-selectors/" >something on his blog</a> about the killer feature that is the ampersand in the Sass CSS meta-language.  Go read it immediately.  Go.  I&#8217;ll wait here.</p>
<p>So &#8211; to boil this down &#8230; the <em>&#8220;&#038;&#8221;</em> tells sass to pull the entire parent selector into where you place this beautiful little ampersand.  The perfect use case that allowed me to dip my toes into this was with something like psuedo selectors for anchor tags.  Example: </p>
<script src="https://gist.github.com/1052807.js?file=ampersand-to-start.css"></script><p>Simple enough, right?  Pretty awesome.  As Adam noted in his blog post though, the <em>&#038;</em> doesn&#8217;t belong solely at the beginning of your nested selector &#8211; you can tack it on at the end of that nested selector for further customization.  Let&#8217;s say the example I have above needs a special edge-case for a particular page, or page state &#8212; like what if I&#8217;m logged in as an admin?  Maybe our page(s) have a new &#8220;admin&#8221; class added to our body tag? We could go the route of adding something after our scss block specifying this edge case.</p>
<script src="https://gist.github.com/1052807.js?file=ampersand-can-go-wherever-pt1.css"></script><p>But why?  Why bump this down below as almost an afterthought?  Shouldn&#8217;t we have that grouped inside within the context of the anchor tag?  We can do that with the magical ampersand:</p>
<script src="https://gist.github.com/1052807.js?file=ampersand-can-go-anywhere-pt2.css"></script><p>Pay attention to where that ampersand is.  &#8220;Pre-pend this <em>body.admin</em> right before <strong>all</strong> of the parent selectors in this nested group&#8221;.</p>
<p>Now. Here&#8217;s where I hope to stress just how money this is.  Because it is.</p>
<p>Have you used <a href="http://www.modernizr.com/">Modernizr</a>?  What about the <a href="http://code.google.com/apis/webfonts/docs/webfont_loader.html">google web-font loader</a>?  At the very least you&#8217;ve used <a href="http://paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/">the trick from HTML5 Boilerplate to target versions of IE with some well-placed conditional comments</a>?   What do all of these have in common?  They all dynamically, in one form or another, add classes to the root html class.  In Modernizr&#8217;s case it tells you what features you can hook into within your CSS.  In Google&#8217;s web-font loader it will update some classes in <html> to tell us if and when our typefaces <em>are loading</em> or <em>have loaded</em>.    This is where that ampersand has made things easier for me.</p>
<p>A perfect real world example to consider is when I was working on starting to integrate <a href="http://www.fontsquirrel.com/fonts/Quicksand">Quicksand</a>, a free font from FontSquirrel, with Google&#8217;s Web-font loader, into the very much in-progress <a href="http://www.designsponge.com/">Design*Sponge</a> redesign. I fell into a trap where I ended up tacking selectors onto a tragically long list for two states of the font &#8211; NOT loaded, and loaded.  Not familiar? Let me explain.  </p>
<p>The element that needed styling to use Quicksand was always set to <em>visibility: hidden</em>.  Once the font(s) finished loading the html would end up with the .wf-active class, allowing us to then show the font(s) with  <em>visibility: visible</em>.  This is all to combat <a href="http://paulirish.com/2009/fighting-the-font-face-fout/">FOUT (&#8220;flash of unstyled text&#8221;)</a>.  The tragedy was how I chose to tackle this at first &#8211; I had that previously mentioned LONG list of selectors, comma separated, that kept getting new elements whenever a new piece of text needed &#8220;QuicksandLight&#8221;.  Poor decision.  That CSS got unruly and terribly difficult to manage.  I had sass partials containing beautifully compartmentalized and scoped selectors &#8230;</p>
<p><img alt="no, it&#039;s not okay" src="http://s3.amazonaws.com/kym-assets/entries/icons/original/000/005/627/untitled.JPG" title="not ok"  width="205" height="179" class="alignright" style="clear: left" /> </p>
<p>&#8230; and then this giant blob of garbage saying &#8220;these are hidden&#8221; &#8230; &#8220;until they get .wf-active&#8221; in the html tag.   </p>
<p>Not ok.  This needed to be dealt with.  These edge-cases needed to show up right after the &#8220;normal&#8221; base selectors, not in a disparate location somewhere else in the CSS.  I determined that the best solution would be to wrap these fonts and the associated states in mixins that could be used across our scss files.  Here&#8217;s what I came up with: </p>
<script src="https://gist.github.com/1052807.js?file=quicksand-mixin.css"></script><p>At first glance it doesn&#8217;t look like such a big deal, but when you consider there are hundreds of elements on the site getting this font-face applied to it, it ends up turning into a chore mostly consisting of a <strong>lot</strong> of copy and paste.  Really study that gist &#8211; when that clicked, it was magic. </p>
<p>As a bonus, consider this &#8211; originally I didn&#8217;t realize I needed to target IE as I did in the final resulting mixin.  The site launched without <em>.msie.wf-loading</em> and <em>.msie.wf-inactive</em> in there.  Without that treatment the fonts were not showing up in IE7 and IE8.  Terrible.  After a little research I ended up adding those two into the mixin and all was good in the world.  No global search.  No copy and paste needed.   Run into that problem without using something like Sass, just plain vanilla css, and tell me you&#8217;re not annoyed.  I promise you &#8211; you&#8217;re annoyed.</p>
<p>That&#8217;s but one example using the Google font-loader.  Using this in conjunction with the conditionally set IE-related classes, or a CSS3 feature like &#8220;borderimage&#8221; (which I used the hell out of for Design*Sponge), has been a god-send.  Keeping everything tidy inside the scope of our nested selectors keeps things manageable and easy to find.  There&#8217;s no need to go searching for similar selectors across your CSS file &#8211; because it&#8217;s right <em>there</em>,  <em>right next</em> to your normal, base selector.</p>
]]></content:encoded>
			<wfw:commentRss>http://joeloliveira.com/2011/06/28/the-ampersand-a-killer-sass-feature/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Slides available from Railsconf 2011</title>
		<link>http://joeloliveira.com/2011/05/17/slides-available-from-railsconf-2011/</link>
		<comments>http://joeloliveira.com/2011/05/17/slides-available-from-railsconf-2011/#comments</comments>
		<pubDate>Tue, 17 May 2011 23:27:38 +0000</pubDate>
		<dc:creator>Joel</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://joeloliveira.com/?p=882</guid>
		<description><![CDATA[Get a look fast &#8211; I have a feeling some of these might not exist at these URL&#8217;s for all that long (especially the PDF&#8217;s) Zach Holman &#8211; Double-Shipping Software for Profit Jeff Casimir &#8211; Fat Models Aren’t Enough Matt Parker &#8211; Readme Driven Development John Nunemaker &#8211; Why You Should Never Use an ORM [...]]]></description>
			<content:encoded><![CDATA[<p>Get a look fast &#8211; I have a feeling some of these might not exist at these URL&#8217;s for all that long (especially the PDF&#8217;s)</p>
<ul>
<li><a href="http://zachholman.com/talk/2011/railsconf">Zach Holman &#8211; Double-Shipping Software for Profit</a></li>
<li><a href="http://dl.dropbox.com/u/69001/Fat%20Models%20Aren%27t%20Enough%20-%20RailsConf.pdf">Jeff Casimir &#8211; Fat Models Aren’t Enough</a></li>
<li><a href="http://www.slideshare.net/moonmaster9000/readme-driven-development">Matt Parker &#8211; Readme Driven Development</a></li>
<li><a href="http://speakerdeck.com/u/jnunemaker/p/why-you-should-never-use-an-orm">John Nunemaker &#8211; Why You Should Never Use an ORM</a></li>
<li><a href="http://assets.en.oreilly.com/1/event/59/Building%20Bulletproof%20Views%20Presentation.pdf">John Athayde and Bruce Williams  &#8211; Building Bulletproof Views</a></li>
<li><a href="http://assets.en.oreilly.com/1/event/59/Cloud%20Foundry%20%E2%80%93%20The%20Rails%20Developer%E2%80%99s%20Perspective%20Presentation.pdf">Derek Collison &#8211; Cloud Foundry – The Rails Developer’s Perspective</a></li>
<li><a href="http://knowsql.heroku.com/">Nick Gauthier &#8211; KnowSQL: Database Tricks To Make Your Life Easier</a></li>
<li><a href="http://assets.en.oreilly.com/1/event/59/Upgrading%20Legacy%20Rails%20Applications%20to%20Rails%203%20Presentation.pdf">Clinton R. Nixon &#8211; Upgrading Legacy Rails Applications to Rails 3</a></li>
<li><a href="http://www.slideshare.net/raasdnil/keeping-rails-on-the-tracks">Mikel Lindsaar &#8211; Keeping Rails on the Tracks</a></li>
<li><a href="http://speakerdeck.com/u/therealadam/p/mixing-a-persistence-cocktail-1">Adam Keys &#8211; Mixing a Persistence Cocktail</a></li>
<li><a href="http://dl.dropbox.com/u/1788208/ProductivityTips.pdf">Hiro Asari &#8211; 20 Productivity Tips (pdf)</a> <a href="http://bit.ly/mqlGxi">(and keynote)</a></li>
<li><a href="http://smartic.us/doodads/presentations/railsconf2011/#1">Bryan Liles &#8211; Active Support</a></li>
<li><a href="https://github.com/coderoshi/holy-grail-dbs">Eric Redmond &#8211; The Holy Grail of Databases</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://joeloliveira.com/2011/05/17/slides-available-from-railsconf-2011/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Visualizing the difference between references_many and embeds_many in mongoid.</title>
		<link>http://joeloliveira.com/2010/10/23/visualizing-the-difference-between-references_many-and-embeds_many-in-mongoid/</link>
		<comments>http://joeloliveira.com/2010/10/23/visualizing-the-difference-between-references_many-and-embeds_many-in-mongoid/#comments</comments>
		<pubDate>Sat, 23 Oct 2010 15:17:57 +0000</pubDate>
		<dc:creator>Joel</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://joeloliveira.com/?p=873</guid>
		<description><![CDATA[This one gave me fits for a little bit not too long ago, and crept up on the mongoid list the other day. One of the greatest things about mongo in what it does is the idea of embedding documents into other documents &#8211; at times removing the need for relations where it makes sense. [...]]]></description>
			<content:encoded><![CDATA[<p><em>This one gave me fits for a little bit not too long ago, <a  href="http://groups.google.com/group/mongoid/browse_thread/thread/6e21edf44293f12">and crept up on the mongoid list the other day</a>.</em></p>
<p>One of the greatest things about mongo in what it does is the idea of embedding documents into other documents &#8211; at times removing the need for relations where it makes sense.  The classic example being Blog posts and comments within that post.  Why not just shove the comments directly inside of the blog posts&#8217; documents?  It&#8217;s faster and makes sense &#8211; these are just documents right?  So let&#8217;s treat them as such.</p>
<p>But on occasion the need for relations remains.  On a toy app I&#8217;ve begun rewriting to use Rails3 and Mongo (Mongoid, specifically) I ran into a conceptual road-block that I&#8217;ve seen creep up on occasion between the other (relative) newbies like myself &#8211; how the relations are stored between Mongoid objects.   I needed a relational association instead of just embedding (why? the size limit for collections probably would have bitten me in the ass in the future).   But after following the conventions in the documentation and inspecting how things ended up in the database I realized I had a few things twisted. </p>
<p>I think part of it, at least for me, is the <strong>idea</strong> of embedding gets in the way of how you perceive this getting stored within the mongo document(s).   Take <a href="http://mongoid.org/docs/associations/">the example at the mongoid documentation</a> under &#8220;Relational Associations&#8221; </p>
<p><code><br />
class Person<br />
  include Mongoid::Document<br />
  references_many :prescriptions<br />
end</p>
<p>class Prescription<br />
  include Mongoid::Document<br />
  referenced_in :person<br />
end<br />
</code></p>
<p>When I look at that &#8211; I think that the <em>Person</em> would collect the references to <em>Prescription</em>, perhaps in a :prescriptions array.  Such is not the case. Instead the Prescription objects contain a single reference to its &#8220;parent&#8221; object &#8211; Person.  Below is a comparison of what you might think, versus how it&#8217;s actually stored in the database</p>
<p><code><br />
john = Person.create<br />
prescription = Prescription.create<br />
john.prescriptions << prescription<br />
john.save<br />
</code></p>
<p>How you might perceive this is being stored<br />
<code><br />
# john =><br />
# {<br />
# 	"_id" : ObjectId("4cc2f0bac0b37e9c17000001"),<br />
# 	"_type" : "Person",<br />
#	"prescriptions" : [ ObjectId("4cc2f0bac0b37e9c17000002") ]<br />
# 	"created_at" : "Sat Oct 23 2010 10:27:06 GMT-0400 (EDT)"<br />
# }</p>
<p># prescription =><br />
# {<br />
# 	"_id" : ObjectId("4cc2f0bac0b37e9c17000002"),<br />
# 	"_type" : "Prescription",<br />
# 	"created_at" : "Sat Oct 23 2010 10:27:06 GMT-0400 (EDT)"<br />
# }<br />
</code></p>
<p>Versus what this is actually doing<br />
<code><br />
# john =><br />
# {<br />
# 	"_id" : ObjectId("4cc2f0bac0b37e9c17000001"),<br />
# 	"_type" : "Person",<br />
# 	"created_at" : "Sat Oct 23 2010 10:27:06 GMT-0400 (EDT)"<br />
# }<br />
#<br />
# prescription =><br />
# {<br />
# 	"_id" : ObjectId("4cc2f0bac0b37e9c17000002"),<br />
# 	"_type" : "Prescription",<br />
# 	"created_at" : "Sat Oct 23 2010 10:27:06 GMT-0400 (EDT)",<br />
# 	"person_id" : ObjectId("4cc2f0bac0b37e9c17000001")<br />
# }<br />
</code></p>
<p>I realize this follows the same old ActiveRecord conventions of the parent ID being stored in the children objects, but when you develop that big ole&#8217; crush on, and get married to, the idea of mongo&#8217;s embedded documents &#8211; it&#8217;s difficult to switch gears!</p>
<p><em>If any information is misrepresented or factually incorrect please leave a comment and let me know!</em></p>
]]></content:encoded>
			<wfw:commentRss>http://joeloliveira.com/2010/10/23/visualizing-the-difference-between-references_many-and-embeds_many-in-mongoid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rack::Tidy and Devise in the Rack Middleware Stack</title>
		<link>http://joeloliveira.com/2010/09/25/racktidy-and-devise-in-the-rack-middleware-stack/</link>
		<comments>http://joeloliveira.com/2010/09/25/racktidy-and-devise-in-the-rack-middleware-stack/#comments</comments>
		<pubDate>Sat, 25 Sep 2010 15:28:22 +0000</pubDate>
		<dc:creator>Joel</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://joeloliveira.com/?p=866</guid>
		<description><![CDATA[After quite a bit of digging around, and a little help from mr. Jose Valim at Plataformatec, I realized that the combination of the Devise authentication gem, along with Rack-Tidy, aren&#8217;t quite so friendly with each other. The main culprit here, I would say is the Tidy gem. Why? Because the essence of its existence [...]]]></description>
			<content:encoded><![CDATA[<p>After quite a bit of digging around, and a little help from mr. <a href="http://github.com/josevalim">Jose Valim</a> at <a href="http://plataformatec.com.br/">Plataformatec</a>, I realized that the combination of the <a href="http://github.com/plataformatec/devise">Devise</a> authentication gem, along with <a href="http://github.com/webficient/rack-tidy">Rack-Tidy</a>, aren&#8217;t quite so friendly with each other.  The main culprit here, I would say is the Tidy gem.  Why?  Because the essence of its existence is to re-arrange the markup handed back from the app-server.  So some things get lost in the shuffle during all that house-cleaning (please, correct me if I&#8217;m wrong).</p>
<p>I had a hunch that with a little musical chairs in the middleware stack, we could find a solution that would allow all pieces to live harmoniously.  Luckily, I was right.  The trick is to make sure Tidy is inserted into the stack before ActionDispatch::Flash (<em>because Rack::Tidy was killing the flash messages returned from Devise/Warden</em>) and before Warden::Manager (<em>the rack authentication layer beneath Devise</em>).  The resulting stack, for me, looks like so (important bits in bold):</p>
<p><code>use ActionDispatch::Static<br />
use Rack::Lock<br />
use ActiveSupport::Cache::Strategy::LocalCache<br />
use Rack::Runtime<br />
use Rails::Rack::Logger<br />
use ActionDispatch::ShowExceptions<br />
use ActionDispatch::RemoteIp<br />
use Rack::Sendfile<br />
use ActionDispatch::Callbacks<br />
use ActionDispatch::Cookies<br />
use ActionDispatch::Session::CookieStore<br />
use ActionDispatch::ParamsParser<br />
use Rack::MethodOverride<br />
use ActionDispatch::Head<br />
use ActionDispatch::BestStandardsSupport<br />
<strong>use Rack::Tidy<br />
use ActionDispatch::Flash<br />
use Warden::Manager</strong><br />
use Sass::Plugin::Rack<br />
run MyApp::Application.routes</code></p>
<p>And is accomplished with this code instead the app initialization process (application.rb):</p>
<p><code>config.middleware.delete ActionDispatch::Flash   # remove from current position<br />
config.middleware.insert_before Warden::Manager, ActionDispatch::Flash # add it right back in before Warden<br />
config.middleware.insert_before ActionDispatch::Flash, Rack::Tidy, 'indent-spaces' => 2 # finally, add in Rack:Tidy before ActionDispatch::Flash.</code></p>
<p>The resulting stack looks like it&#8217;s working quite well for now.</p>
]]></content:encoded>
			<wfw:commentRss>http://joeloliveira.com/2010/09/25/racktidy-and-devise-in-the-rack-middleware-stack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debugging in Cucumber</title>
		<link>http://joeloliveira.com/2010/07/17/debugging-in-cucumber/</link>
		<comments>http://joeloliveira.com/2010/07/17/debugging-in-cucumber/#comments</comments>
		<pubDate>Sat, 17 Jul 2010 22:49:47 +0000</pubDate>
		<dc:creator>Joel</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.joeloliveira.com/?p=830</guid>
		<description><![CDATA[As a relative newb&#8217; to cucumber I realize there&#8217;s a lot to get caught up on. The one thing I do know is that there&#8217;s a lot that I don&#8217;t know. Having said that, when I run into a barrier or an issue and I want to dig into the source to figure things out, [...]]]></description>
			<content:encoded><![CDATA[<p>As a relative newb&#8217; to <a href="http://cukes.info">cucumber</a> I realize there&#8217;s a lot to get caught up on.  The one thing I <strong>do</strong> know is that there&#8217;s a lot that I don&#8217;t know.   Having said that, when I run into a barrier or an issue and I want to dig into the source to figure things out, what do you do?</p>
<p>You break out <em>ruby-debug</em>, of course.</p>
<p>Add <em>require &#8216;ruby-debug&#8217;</em> to features/support/env.rb and throw a breakpoint into your step definitions.</p>
<p>That&#8217;s all well and good, and it works just fine.  But what do you look for while you&#8217;re in there?   I spent the better part of an evening looking for how I could sniff around the html source cucumber was testing against and couldn&#8217;t find it.  Lots of searching for how to pear into @response and @request &#8211; which end up being nil as far as I can see.  </p>
<p>I had no idea.</p>
<p>Until I read <a href="http://theled.co.uk/blog/archive/2010/07/17/how-we-added-automated-html-validation-to-our-web-development-process/" target="_blank">this post from the LoED</a> on how to test your source&#8217;s validity.  In there was the answer:</p>
<p><em>page.body</em></p>
<p>Eureka!</p>
<p>Baby steps.  I&#8217;ll figure this all out yet.</p>
]]></content:encoded>
			<wfw:commentRss>http://joeloliveira.com/2010/07/17/debugging-in-cucumber/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>rvm, ree, nginx and phusion passenger</title>
		<link>http://joeloliveira.com/2010/03/12/rvm-ree-nginx-and-phusion-passenger/</link>
		<comments>http://joeloliveira.com/2010/03/12/rvm-ree-nginx-and-phusion-passenger/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 18:08:13 +0000</pubDate>
		<dc:creator>Joel</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.joeloliveira.com/?p=816</guid>
		<description><![CDATA[A production web / application server that I maintain has been around for mostly wordpress and static sites we host for some of our clients. Soon, however, the need for some Rails-based client sites will be popping up for us over there. Traditionally the set-up for those apps have been in clients&#8217; own hosting environments, [...]]]></description>
			<content:encoded><![CDATA[<p>A production web / application server that I maintain has been around for mostly wordpress and static sites we host for some of our clients.  Soon, however, the need for some Rails-based client sites will be popping up for us over there.  Traditionally the set-up for those apps have been in clients&#8217; own hosting environments, or were apps I hosted in a dedicated app-server slice of my own.   So, the need crept up, and now I&#8217;m left planning for now, and the future.  And what is that future, you might ask (ok, probably not)?  Rails 3, of course.    </p>
<p>The baseline reference implementation  for Rails 3, as I know it, is 1.8.7, but has been tested to work with Ruby 1.9, and also functions properly with Phusion&#8217;s Ruby Enterprise Edition (henceforth known as REE).   To say that Ruby is in a transition phase is an understatement.   The community has been hard at work trying to get gems, frameworks, their associated plugins, etc, to work with all of the new shiny ruby-based toys.   In order to accurately test, the RVM project has stepped up as the solution for testing and developing across multiple Ruby interpreters.    </p>
<p>New server setup, quickly moving innovation, growth and change &#8230; all of these point me in one direction &#8211; drinking the RVM kool-aid and getting right into it.  But not without a few hiccups.   Here are my steps in getting things rolling with rvm, nginx, ree and passenger.</p>
<p><strong>Note:</strong> Don&#8217;t install nginx at first thinking that passenger will end up being installed as a plugin, or module.  I wasted some time in doing that.  When you go through the process of installing passenger it&#8217;ll ask to compile and re-install nginx.  So we&#8217;ll get to that eventually.</p>
<p>To get everything compiling as I wanted I had to install a handful of obvious, and not-so-obvious, packages and libraries.  To wit: </p>
<blockquote><p>sudo apt-get install ruby-full build-essential curl libpcre3 libpcre3-dev libpcrecpp0 libssl-dev zlib1g-dev libgcrypt11 libgcrypt11-dev bison libreadline5-dev</p></blockquote>
<p><small>Your mileage may vary.</small></p>
<p>Also, the irony doesn&#8217;t escape me that we needed to install ruby, &#8220;ruby-full&#8221;, in order to install a bunch of other rubies.  But hey, whatever.</p>
<p><strong>Install rvm</strong>.  It&#8217;s as easy as <a href="http://rvm.beginrescueend.com/rvm/install/">following the instructions at the RVM site</a>.  I chose to go the gem route.  Follow the instructions as are given and things will be fine.  The only hiccups I had involved some libraries that are taken care of in the above package installs.</p>
<p><strong>Install the versions of ruby you&#8217;d like</strong>.  <em>rvm install 1.8.6,1.8.7-head,ree,1.9.1</em></p>
<p>According to fellow boston.rb&#8217;ist @<a href="http://twitter.com/techiferous">techiferous</a> we use 1.8.7-head, because</p>
<blockquote><p><a href="http://twitter.com/techiferous/status/8751925362">#</a> Rails 3 needs Ruby 1.8.7. Use rvm to manage Ruby versions. Do &#8220;rvm ruby-1.8.7-head&#8221; NOT ruby-1.8.7-p249 (broken gems).</p></blockquote>
<p>After some time compiling and wrangling everything together you should have a handful of different rubies at your disposal.  Please visit the rvm site for examples, use cases and general information.  It&#8217;s worth your time.  </p>
<p>At this point I switched to ruby-ree in preparation of the passenger and nginx install.  <em>rvm ree</em>.  A quick <em>ruby &#8211;version</em> now tells us that we&#8217;re running <em>ruby 1.8.7 (2009-12-24 patchlevel 248) [x86_64-linux], MBARI 0&#215;6770, Ruby Enterprise Edition 2010.01</em>. </p>
<p><strong>Install Passenger and Nginx</strong>.  <em>gem install passenger &#038;&#038; rvmsudo passenger-install-nginx-module</em> will get you started.  Here&#8217;s where the install of Nginx goes down, as noted in the text after you run the command: </p>
<blockquote><p>Nginx doesn&#8217;t support loadable modules such as some other web servers do,<br />
so in order to install Nginx with Passenger support, it must be recompiled.</p></blockquote>
<p>I chose to customize my own install and selected the second option.   Do whatever you&#8217;re most comfortable with.  I prefer to have my compiled source in /opt/local, but again, it&#8217;s all a matter of preference.   After some more compiling, we were all done and have a newly compiled install of Nginx, with Passenger, Utilizing the REE ruby interpreter.</p>
<p>Last but not least, go thank <a href="http://twitter.com/wayneeseguin">Wayne Seguin</a> for the work on RVM.  Amazing work!</p>
]]></content:encoded>
			<wfw:commentRss>http://joeloliveira.com/2010/03/12/rvm-ree-nginx-and-phusion-passenger/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>From the Ruby Noob Dept: Issue(s) with accepts_nested_attributes_for</title>
		<link>http://joeloliveira.com/2010/02/27/from-the-ruby-noob-dept-accepts_nested_attributes_for-issues/</link>
		<comments>http://joeloliveira.com/2010/02/27/from-the-ruby-noob-dept-accepts_nested_attributes_for-issues/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 23:03:25 +0000</pubDate>
		<dc:creator>Joel</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.joeloliveira.com/?p=810</guid>
		<description><![CDATA[Finally took some time to jump in and refactor some nested forms at Thredded using Rails 2.3&#8242;s accepts_nested_attributes_for. Thanks to Ryan Bates&#8217; screencasts on the topic it was fairly easy. A little code cleanup and everything worked as it should &#8230; other than one thing. Can&#8217;t mass-assign these protected attributes Noticed that error in my [...]]]></description>
			<content:encoded><![CDATA[<p>Finally took some time to jump in and refactor some nested forms at <a href="http://thredded.com">Thredded</a> using Rails 2.3&#8242;s accepts_nested_attributes_for.  Thanks to <a href="http://railscasts.com/episodes?search=nested+forms">Ryan Bates&#8217; screencasts</a> on the topic it was fairly easy.  A little code cleanup and everything worked as it should &#8230; other than <em>one thing</em>.</p>
<p><strong>Can&#8217;t mass-assign these protected attributes</strong></p>
<p>Noticed that error in my development logfiles after a particular form wasn&#8217;t being saved.   A User class had some protected, and some not, attributes and until I added the Profile attributes to it, the nested form submitting a User and it&#8217;s associated Profile record would not save.</p>
<pre class="prettyprint lang-ruby">
class User < ActiveRecord::Base
  has_one  :profile
  accepts_nested_attributes_for :profile
  attr_accessible :login, :email, :password, :password_confirmation
  # ...
end</pre><p>Needed just the Profile attributes set as accessible and ready for mass assignment</p>
<pre class="prettyprint lang-ruby">
class User < ActiveRecord::Base
  has_one  :profile
  accepts_nested_attributes_for :profile
  attr_accessible :login, :email, :password, :password_confirmation, :profile_attributes
  # ...
end</pre><p>Another case where you need to know at all times where and if properties of your classes are locked down or not.</p>
]]></content:encoded>
			<wfw:commentRss>http://joeloliveira.com/2010/02/27/from-the-ruby-noob-dept-accepts_nested_attributes_for-issues/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sassy-pants</title>
		<link>http://joeloliveira.com/2010/02/25/sassy-pants/</link>
		<comments>http://joeloliveira.com/2010/02/25/sassy-pants/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 16:57:15 +0000</pubDate>
		<dc:creator>Joel</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.joeloliveira.com/?p=789</guid>
		<description><![CDATA[I&#8217;m pretty set in my ways professionally these days, so it&#8217;s hard sometimes to make a shift from what I&#8217;m comfortable with to a methodology that&#8217;s contrary to something that still works. Like CSS &#8211; what the what needs to change in my work-flow regarding CSS at this point? I&#8217;m more than comfortable with box-models, [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.joeloliveira.com/wp-content/uploads/2010/02/sassy.jpg" alt="" title="sassy" width="590" class="aligncenter size-full wp-image-807" /></p>
<p>I&#8217;m pretty set in my ways professionally these days, so it&#8217;s hard sometimes to make a shift from what I&#8217;m comfortable with to a methodology that&#8217;s contrary to something that still works.</p>
<p>Like <a href="http://www.w3.org/Style/CSS/">CSS</a> &#8211; what the <em>what</em> needs to change in my work-flow regarding CSS at this point?  I&#8217;m more than comfortable with box-models, browser hacks, sprites, peek-a-boo and double-float margin bugs.   Waking up one day and thinking &#8211; &#8220;I could be better&#8221; was the kick in the pants to try something new.   Enter <a href="http://sass-lang.com/">Sass</a>.</p>
<blockquote><p>Sass is a meta-language on top of CSS that’s used to describe the style of a document cleanly and structurally, with more power than flat CSS allows. Sass both provides a simpler, more elegant syntax for CSS and implements various features that are useful for creating manageable stylesheets.</p></blockquote>
<p>I won&#8217;t go into the syntactic sugar that makes Sass so much fun &#8211; <a href="http://wiseheartdesign.com/articles/2010/01/18/the-demise-of-css-why-sass-and-languages-like-it-will-triumph/">John Long</a> [<a href="http://wiseheartdesign.com/articles/2010/01/21/better-debugging-with-sass-and-line-comments/">1</a>] [<a href="http://wiseheartdesign.com/articles/2010/01/22/structuring-a-sass-project/">2</a>] and <a href="http://www.darowski.com/tracesofinspiration/2010/01/11/this-newbies-first-impressions-of-haml-and-sass/">Adam Darowski</a> have already done excellent jobs rounding up the high, and lower, level concepts and tricks.  I highly recommend visiting and bookmarking those links for future reference.</p>
<p>A few things I&#8217;ve bumped into, however, that bear mentioning here involve a few tools and code snippets that I went looking for as I went down that sassy path.   The first being <a href="http://github.com/adamstac/ruby-sass-tmbundle">a Textmate bundle for sass</a> I found to help out during rapid and uninterrupted development.  The syntax highlights are, of course, fantastic, but the killer feature is easily the quick CSS generation keyboard shortcut.  Command-R will parse and generate your CSS file right there from inside Textmate.  If there are any issues a tool-tip will pop up with the error.  If you switch over and reload your browser too fast to see the tool-tip you&#8217;ll see an unstyled page &#8211; a big honking notice that you were doin&#8217; it wrong. </p>
<p>The few bits of code, of many, that I needed to find, or create, quickly before getting down to business &#8211; Eric Meyer&#8217;s reset stylesheet, and maybe a mixin or two that I&#8217;m quick to use in a pinch &#8211; like <em>.clearfix</em>.</p>
<pre class="prettyprint lang-css">// Reset

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td
  :margin 0
  :padding 0
  :border 0
  :outline 0
  :font-size 100%
  :vertical-align baseline
  :background transparent

body
  :line-height 1

ol, ul
  :list-style none

blockquote, q
  :quotes none

// remember to define focus styles!
\:focus 
  :outline 0

ins
  :text-decoration none 
// remember to highlight inserts somehow!

del
  :text-decoration line-through

table
  :border-collapse collapse
  :border-spacing 0

// ----------- Clearfix --------------- 

.clearfix
  *display:                 inline-block
  &#038;:after
    content:                " "
    display:                block
    height:                 0
    clear:                  both
    visibility:             hidden
 
// ----------- Clearfix as mixin --------------- 

=clearfix
  *display:                 inline-block
  &#038;:after
    content:                " "
    display:                block
    height:                 0
    clear:                  both
    visibility:             hidden</pre><p>Those are two solid examples of how easy it is to just jump right in.  So give it a shot &#8211; `sudo gem install haml` to install what you need, and get to <del datetime="2010-02-25T16:52:03+00:00">work</del> playing.</p>
]]></content:encoded>
			<wfw:commentRss>http://joeloliveira.com/2010/02/25/sassy-pants/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Tips for developing HTML emails</title>
		<link>http://joeloliveira.com/2010/01/15/tips-for-developing-html-emails/</link>
		<comments>http://joeloliveira.com/2010/01/15/tips-for-developing-html-emails/#comments</comments>
		<pubDate>Fri, 15 Jan 2010 22:20:03 +0000</pubDate>
		<dc:creator>Joel</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.joeloliveira.com/?p=771</guid>
		<description><![CDATA[Option 1 &#8211; Don&#8217;t do it. And if that&#8217;s not on the table (haha &#8211; get it?), I present to you &#8230; Option 2 &#8211; With a few things in mind when you approach the assignment you&#8217;ll get through it. It might not be the most fun, but it&#8217;s all doable. My first suggestion would [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-774" title="nested tables" src="http://www.joeloliveira.com/wp-content/uploads/2010/01/140341-main_Full-e1263592316562.jpg" alt="Nested tables FTL" width="250" height="272" /><br />
<strong>Option 1 &#8211; Don&#8217;t do it.</strong></p>
<p>And if that&#8217;s not on the table (haha &#8211; get it?),  I present to you &#8230;</p>
<p><strong>Option 2 &#8211; With a few things in mind when you approach the assignment you&#8217;ll get through it.   It might not be the most fun, but it&#8217;s all doable.</strong></p>
<p>My first suggestion would be to take whatever time you estimated, and double it.  Maybe triple it.  If you&#8217;re reading this post in its entirety then I&#8217;m guessing it&#8217;s safe to assume these HTML emails aren&#8217;t a daily routine for you.  If such is the case, the time it&#8217;ll take between your first &lt;table&gt; tag, and the moment the email is <span style="text-decoration: line-through;">spammed</span> sent out will not be insignificant &#8211; 2-3 times the markup, 2-3 times the complexity in testing esoteric email clients.  Your mileage may vary, depending on what the targeted visual design is.  It&#8217;s always up to your discretion &#8211; but the one thing I didn&#8217;t anticipate, that I know is a rule, not an exception, is the time you spend on the testing process.</p>
<p>Before starting &#8211; these are the things you should have up front to make your life semi-easier.</p>
<ol>
<li><strong>Create test accounts at gmail, hotmail, yahoo mail, and AOL.</strong> Except you can probably ignore AOL out of principle.  I felt <em>dirty</em> just typing that.  As with most things related to this practice &#8211; having to maintain test accounts at these email services is usually more trouble than it&#8217;s worth, but save yourself time and pain by using some sort of password database, such as <a href="http://agilewebsolutions.com/products/1Password">1password</a>.  Remembering passwords isn&#8217;t the hassle here &#8211; it&#8217;s the random usernames you&#8217;re going have to pull out of thin air, which you&#8217;ll end up using <strong>very</strong> infrequently.  Trust me.</li>
<li><strong>An account at an email campaign website like <a href="http://www.campaignmonitor.com">CampaignMonitor</a> or <a href="http://mailchimp.com">MailChimp</a>.</strong> I&#8217;m a big fan of, and more prone to recommend, MailChimp not only for their pricing and offerings but the user experience throughout.  It&#8217;s on my short list of sites that are actually fun to use &#8211; as silly as that may sound.  Why Mailchimp?  You can set up a sample campaign, point to your code on your webhost of choice, and send emails using the code hosted out there in the wild.</li>
<li><strong>A virtual machine with Windows, and the latest version of Office.</strong> This one&#8217;s a given as most emails sent for B2B purposes will end up in MS Outlook.  As of right now the latest is Office 2007, whose changes to how html emails are rendered are the single reason to pack up and go home if you can.  Want more info? <a href="http://www.google.com/search?q=html+emails+outlook+2007&amp;ie=utf-8&amp;oe=utf-8&amp;aq=t">Here you go</a>.  Office costs money, obviously, but if you don&#8217;t plan on doing too many of these html emails, <a href="http://us20.trymicrosoftoffice.com/default.aspx?culture=en-US">there&#8217;s a free download at Microsoft&#8217;s</a> that you can use as a trial for 90 days or so.  Otherwise, purchase your copy legit &#8230; or find somewhere that will assist you in a &#8230; *cough* &#8230; longer &#8220;<em>trial period</em>&#8220;.</li>
<li><strong>If it&#8217;s in the budget &#8211; sign up for a screenshot generator.</strong> If you&#8217;re tasked with testing your table-bloated masterpiece in more obscure email clients &#8211; Lotus, or Lotus Notes &#8211; whatever it&#8217;s called.  Outlook 2003.  The aforementioned AOL.  You might want to invest in an account at one of the screenshot generator testing sites like <a href="http://browsercam.com">BrowserCam</a>, <a href="http://litmusapp.com/">Litmus</a> or <a href="http://www.campaignmonitor.com/features/make-and-send-great-looking-emails/">CampaignMonitor</a>.  Of those three I only plunked money down to try CampaignMonitor &#8211; which worked, but the screenshots were of varying quality.  Some were half-generated.  One looked like someone hit &#8220;ctrl-A&#8221; before the screenshot was taken.  Very odd, but it did the trick to somewhat guess how things were looking.  If I were to try any of those others instead I would probably go with Litmus.  Again &#8211; <a href="http://en.wiktionary.org/wiki/your_mileage_may_vary">ymmv</a>.</li>
</ol>
<p>The following are the gotchas and tips I&#8217;ve become familiar with recently through the course of developing a handful of these emails.  These somewhat defy the logic you might be used to when developing for the regular web &#8211; a medium that&#8217;s already tricky and nuanced. Coding for email clients is downright dumb in comparison.</p>
<ol>
<li><strong>Plan and internally conceptualize your tables.</strong> Lots and lots of tables, obviously.  Look at the PSD handed off to you and, in your head, plan ahead of time how you&#8217;re going to tackle the layout.   Don&#8217;t try and get cute with an overabundance of col and rowspans.  It will only make things more difficult over time.   I found myself starting with a main outer table shell consisting of a few rows and cells to get the content justified.</li>
<li><strong>Table cells that consist of just an image &#8211; make sure those images are all aligned left</strong> (or right, if you are so inclined).  Some current generation browsers will leave a gap after the bottom of the image for some reason, regardless of white-space in your markup.  Sure, &lt;td&gt;&lt;img /&gt;&lt;/td&gt; might look great, but it will still jack up your already delicate table layout.  So remember, aligning the image will fix this.</li>
<li><strong>Background images.  Completely forget about them.</strong> They are dead to you.  If you want this email to look flawless in Outlook 2007, there are no such thing as background images &#8211; either via inline CSS or the background property for TD&#8217;s.   I hope you enjoy the slicing tool in Photoshop because you&#8217;re going to end up rather proficient in it by the time you&#8217;re done.   Because of this I suggest you become friendly with whoever is designing the comp you&#8217;ll be developing.  Possibly send them flowers or take them out to a nice lunch.   Otherwise the possibility is quite real that you&#8217;ll receive a comp with copy floating all over and on top of arbitrary visual elements.</li>
<li>On a similar note &#8211; <strong>familiarize yourself with what is supported in the various email clients</strong>.  Campaign Monitor has put together <a href="http://www.campaignmonitor.com/css/">a rather handy matrix of email clients versus the CSS that is and is not supported</a>.  Read through this as a primer and have it tucked away for future use &#8211; you&#8217;ll probably need it.   Also at Campaign Monitor &#8211; <a href="http://www.campaignmonitor.com/templates/">a collection of free email templates you may download</a> as reference, or possibly (if you bribe them), a basis for your designer to use as &#8220;inspiration&#8221;.</li>
<li><strong>Don&#8217;t expect an inline style at the outermost TD declaring the font information to cascade into your inner table soup.</strong> Somewhere in your code I suggest wrapping some comments around a collection of what you anticipate being a common set of inline style attributes.  This will allow quick access to copy and paste into your &lt;td&gt;&#8217;s, &lt;p&gt;&#8217;s, &lt;span&gt;&#8217;s, etc.</li>
<li><strong>And finally &#8211; Comments.</strong> Be kind with your use of comments for the express purpose of landmarking where things are in your markup.  Front-end development in 2010 is a beautiful thing and we forget how miserable it used to be 6+ years ago.  Over 25k in html alone is a hard thing to imagine these days, but when you get up to that you&#8217;ll thank yourself if you&#8217;ve placed gigantic honkin&#8217; comments telling yourself where the left and right content starts and ends.</li>
</ol>
<p>Final thoughts &#8211; You will no longer take for granted the wonder and beauty that is good, clean, lovely, semantic markup.  It absolutely boggles the mind that corporate IT managers will fall over themselves getting new versions of Office rolled out to their IT infrastructure, but OMG A POX ON NEW VERSIONS OF INTERNET EXPLORER (OH THE HORROR!).</p>
<p>Last but not least &#8211; know where the closest liquor/booze/package store is.  You&#8217;ll need a drink or two by the time this is over.</p>
<p><small>(hat tip to <a href="http://twitter.com/bmenoza">@bmenoza</a> for the nudge in getting this post up)</small></p>
]]></content:encoded>
			<wfw:commentRss>http://joeloliveira.com/2010/01/15/tips-for-developing-html-emails/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Using Google Apps Email as Your App&#8217;s SMTP Server</title>
		<link>http://joeloliveira.com/2009/04/27/using-google-apps-email-as-your-apps-smtp-server/</link>
		<comments>http://joeloliveira.com/2009/04/27/using-google-apps-email-as-your-apps-smtp-server/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 20:57:13 +0000</pubDate>
		<dc:creator>Joel</dc:creator>
				<category><![CDATA[Site Work]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[smtp]]></category>

		<guid isPermaLink="false">http://www.joeloliveira.com/2009/04/27/using-google-apps-email-as-your-apps-smtp-server/</guid>
		<description><![CDATA[Something I&#8217;ve held out on for a while now has been to switch over the settings for ActionMailer in my application(s) to point to my hosted Google apps account.   I figured it was probably time to do so as piping email notifications through my comcast email account is generally, probably, a bad idea (courtesy of [...]]]></description>
			<content:encoded><![CDATA[<p>Something I&#8217;ve held out on for a while now has been to switch over the settings for ActionMailer in my application(s) to point to my hosted Google apps account.   I figured it was probably time to do so as piping email notifications through my comcast email account is generally, probably, a bad idea (courtesy of the &#8220;No Duh&#8221; department).</p>
<p>Seems like it should be rather easy, no?  Just change action mailer to resemble:</p>
<p><code><br />
ActionMailer::Base.smtp_settings = {<br />
:address =&gt; "smtp.gmail.com",<br />
:port =&gt; 587,<br />
:domain =&gt; "hosteddomain.com",<br />
:authentication =&gt; :plain,<br />
:user_name =&gt; "account@hosteddomain.com",<br />
:password =&gt; "omgsup3rsecret"<br />
}</code></p>
<p>Meh. Looks easy enough, right?  Except for the fact Google&#8217;s got some magic TLS authentication thing going on &#8211; you&#8217;ll run into an error in your mailers resembling <em>Must issue a STARTTLS command first.</em>.  Enough to make you work a little harder to get the magic working.</p>
<p>For those of you/us that are running Ruby 1.8.7 and Rails 2.3.x the answer is rather simple &#8211; add <em>:enable_starttls_auto =&gt; true</em> to your smtp settings, which will result in :</p>
<p><code><br />
ActionMailer::Base.smtp_settings = {<br />
:enable_starttls_auto =&gt; true,<br />
:address =&gt; "smtp.gmail.com",<br />
:port =&gt; 587,<br />
:domain =&gt; "hosteddomain.com",<br />
:authentication =&gt; :plain,<br />
:user_name =&gt; "account@hosteddomain.com",<br />
:password =&gt; "omgsup3rsecret"<br />
}</code></p>
<p>And for the rest of you/us (that would be me) that are still sticking with Ruby 1.8.6, there is an answer in the form of <a href="http://github.com/openrain/action_mailer_tls/tree/master">the action_mailer_tls gem</a>.  Following the readme will get you to right where you want to be &#8211; shoveling all the mail you would like into the ether that is the interwebs.</p>
]]></content:encoded>
			<wfw:commentRss>http://joeloliveira.com/2009/04/27/using-google-apps-email-as-your-apps-smtp-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

