<?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/"
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Emmanuel Oga's Weblog</title>
	<atom:link href="http://emmanueloga.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://emmanueloga.wordpress.com</link>
	<description>the way that denies by denying</description>
	<lastBuildDate>Tue, 29 Sep 2009 04:11:23 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>es</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='emmanueloga.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/9c281ce9f573c92839e7f37ec372d9c8?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Emmanuel Oga's Weblog</title>
		<link>http://emmanueloga.wordpress.com</link>
	</image>
			<item>
		<title>Pretty printing xhtml with nokogiri and xslt</title>
		<link>http://emmanueloga.wordpress.com/2009/09/29/pretty-printing-xhtml-with-nokogiri-and-xslt/</link>
		<comments>http://emmanueloga.wordpress.com/2009/09/29/pretty-printing-xhtml-with-nokogiri-and-xslt/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 04:06:30 +0000</pubDate>
		<dc:creator>emmanueloga</dc:creator>
				<category><![CDATA[ruby]]></category>
		<category><![CDATA[xhtml]]></category>
		<category><![CDATA[xml]]></category>
		<category><![CDATA[xslt]]></category>

		<guid isPermaLink="false">http://emmanueloga.wordpress.com/?p=223</guid>
		<description><![CDATA[Pretty printing (or, nice formatting, or, beautifying) xhtml source code using ruby, nokogiri and XSLT.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=emmanueloga.wordpress.com&blog=1886242&post=223&subd=emmanueloga&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Today I was looking for a way to pretty print xhtml. Good&#8217;ol REXML supports this in a very simple way:</p>
<pre class="brush: ruby;">
Document.new(&quot;&lt;some&gt;XML&lt;/some&gt;&quot;)doc.write($stdout, indent_spaces = 4)
</pre>
<p>This generates a nicely indented xml document. But REXML was not robust enough for my needs. Luckily, we now have a couple of excellent choices on ruby for parsing xml, including <a href="http://github.com/whymirror/hpricot">hpricot</a>, <a href="http://nokogiri.rubyforge.org/nokogiri/">nokogiri</a> and <a href="http://libxml.rubyforge.org/">libxml-ruby bindings</a>.</p>
<p>I did not find a way to pretty print xhtml as easy as you can do with REXML with any of these libraries, though. But I did find a way of doing it using XSLT. Nokogiri supports applying XSLT to an XML document (probably libxml bindings do too, hpricot does not). Here is how:</p>
<pre class="brush: ruby;">
    xsl = Nokogiri::XSLT(&quot;pretty_print.xsl&quot;)
   html = Nokogiri(File.read(&quot;source.html&quot;))
   File.open(&quot;output.html&quot;, &quot;w&quot;) { |f| f &lt;&lt; xsl.apply_to(html).to_s }
</pre>
<p>That&#8217;s it, simple enough. Got the idea from <a href="http://snippets.dzone.com/posts/show/4953">this dzone snippet</a>.</p>
<p>For the xslt file I used this nice one I found on this site:<a href="http://www.printk.net/~bds/indent.html"> http://www.printk.net/~bds/indent.html</a></p>
<pre class="brush: xml;">
&lt;xsl:stylesheet version=&quot;1.0&quot; xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot;&gt;
  &lt;xsl:output method=&quot;xml&quot; encoding=&quot;ISO-8859-1&quot;/&gt;
  &lt;xsl:param name=&quot;indent-increment&quot; select=&quot;'   '&quot;/&gt;

  &lt;xsl:template name=&quot;newline&quot;&gt;
    &lt;xsl:text disable-output-escaping=&quot;yes&quot;&gt;
&lt;/xsl:text&gt;
  &lt;/xsl:template&gt;

  &lt;xsl:template match=&quot;comment() | processing-instruction()&quot;&gt;
    &lt;xsl:param name=&quot;indent&quot; select=&quot;''&quot;/&gt;
    &lt;xsl:call-template name=&quot;newline&quot;/&gt;
    &lt;xsl:value-of select=&quot;$indent&quot;/&gt;
    &lt;xsl:copy /&gt;
  &lt;/xsl:template&gt;

  &lt;xsl:template match=&quot;text()&quot;&gt;
    &lt;xsl:param name=&quot;indent&quot; select=&quot;''&quot;/&gt;
    &lt;xsl:call-template name=&quot;newline&quot;/&gt;
    &lt;xsl:value-of select=&quot;$indent&quot;/&gt;
    &lt;xsl:value-of select=&quot;normalize-space(.)&quot;/&gt;
  &lt;/xsl:template&gt;

  &lt;xsl:template match=&quot;text()[normalize-space(.)='']&quot;/&gt;

  &lt;xsl:template match=&quot;*&quot;&gt;
    &lt;xsl:param name=&quot;indent&quot; select=&quot;''&quot;/&gt;
    &lt;xsl:call-template name=&quot;newline&quot;/&gt;
    &lt;xsl:value-of select=&quot;$indent&quot;/&gt;
      &lt;xsl:choose&gt;
       &lt;xsl:when test=&quot;count(child::*) &gt; 0&quot;&gt;
        &lt;xsl:copy&gt;
         &lt;xsl:copy-of select=&quot;@*&quot;/&gt;
         &lt;xsl:apply-templates select=&quot;*|text()&quot;&gt;
           &lt;xsl:with-param name=&quot;indent&quot; select=&quot;concat ($indent, $indent-increment)&quot;/&gt;
         &lt;/xsl:apply-templates&gt;
         &lt;xsl:call-template name=&quot;newline&quot;/&gt;
         &lt;xsl:value-of select=&quot;$indent&quot;/&gt;
        &lt;/xsl:copy&gt;
       &lt;/xsl:when&gt;
       &lt;xsl:otherwise&gt;
        &lt;xsl:copy-of select=&quot;.&quot;/&gt;
       &lt;/xsl:otherwise&gt;
     &lt;/xsl:choose&gt;
  &lt;/xsl:template&gt;
&lt;/xsl:stylesheet&gt;
</pre>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/emmanueloga.wordpress.com/223/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/emmanueloga.wordpress.com/223/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/emmanueloga.wordpress.com/223/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/emmanueloga.wordpress.com/223/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/emmanueloga.wordpress.com/223/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/emmanueloga.wordpress.com/223/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/emmanueloga.wordpress.com/223/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/emmanueloga.wordpress.com/223/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/emmanueloga.wordpress.com/223/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/emmanueloga.wordpress.com/223/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=emmanueloga.wordpress.com&blog=1886242&post=223&subd=emmanueloga&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://emmanueloga.wordpress.com/2009/09/29/pretty-printing-xhtml-with-nokogiri-and-xslt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/aa31b79adedc3f60547769f1a8971ba6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">emmanueloga</media:title>
		</media:content>
	</item>
		<item>
		<title>Linux: moving  around files with white spaces on the path name</title>
		<link>http://emmanueloga.wordpress.com/2009/08/11/linux-moving-around-files-with-white-spaces-on-the-path-name/</link>
		<comments>http://emmanueloga.wordpress.com/2009/08/11/linux-moving-around-files-with-white-spaces-on-the-path-name/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 15:49:45 +0000</pubDate>
		<dc:creator>emmanueloga</dc:creator>
				<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://emmanueloga.wordpress.com/?p=206</guid>
		<description><![CDATA[linux path names spaces<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=emmanueloga.wordpress.com&blog=1886242&post=206&subd=emmanueloga&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I have a couple of big hard drives on my desktop PC. Still, from time to time I need to do some maintenance to get rid of all the junk I throw at them. Lately, I&#8217;ve been moving files around a lot. And I was doing it all wrong! I set the laziness aside and thought about ways of improving my &#8220;work flow&#8221;.</p>
<p></p>
<h2>Whitespace, go away!</h2>
<p></p>
<p>The first issue I had is that bash gets confused when the filenames include white space.</p>
<p></p>
<p style="background-color:#ddd;">
<code><br />
<strong> [emmanuel@going_merry ~/files]</strong><br />
$ ll<br />
total 4<br />
-rw-r--r-- 1 emmanuel users 2818 2009-08-11 11:38 This is my afn.py
</p>
<p></code></p>
<p style="background-color:#ddd;">
<strong> [emmanuel@going_merry ~/files]</strong><br />
$ mv This is my afn.py afn.py<br />
mv: target `afn.py&#8217; is not a directory
</p>
<p></code></p>
<p style="background-color:#ddd;">
<strong>[emmanuel@going_merry ~/files]</strong><br />
$ mv This\ is\ my\ afn.py afn.py<br />
</code>
</p>
<p></p>
<p>Notice the slashes I had to add on the second mv call. This might seem pretty obvious. Bash usually puts those slashes automatically when using tab completion. But the thing is, what I really need in my case is to move a whole set of files returned by other utility, like find, to another place:</p>
<p></p>
<p style="background-color:#ddd;">
<code><br />
<strong> [emmanuel@going_merry ~/files]</strong><br />
$ ll<br />
total 8<br />
drwxr-xr-x 2 emmanuel users 4096 2009-08-11 11:41 dir1<br />
drwxr-xr-x 2 emmanuel users 4096 2009-08-11 11:41 dir2
</p>
<p></code></p>
<p style="background-color:#ddd;">
<strong> [emmanuel@going_merry ~/files]</strong><br />
$ find dir1/<br />
dir1/<br />
dir1/My afn 1.py<br />
dir1/My afn 2.py
</p>
<p></code></p>
<p style="background-color:#ddd;">
<strong> [emmanuel@going_merry ~/files]</strong><br />
$ find dir1/ | xargs -I {} mv {} dir2<br />
mv: cannot stat `dir1/My afn 1.py': No such file or directory<br />
mv: cannot stat `dir1/My afn 2.py': No such file or directory<br />
</code>
</p>
<p></p>
<p>The problem here is in the find output. The list of  path names returned by find may have unescaped spaces on path names. I needed to escape those spaces before using those path names with other utilities. I looked around for a unix utility to help me in this regard, but not easily finding anything good around, I just wrote a little ruby script for dealing with this: "escapepath".</p>
<p></p>
<p style="background-color:#ddd;">
<code><br />
<strong> [emmanuel@going_merry ~/files]</strong><br />
$ which escapepath<br />
/usr/bin/escapepath
</p>
<p></code></p>
<p style="background-color:#ddd;">
<code><br />
<strong> [emmanuel@going_merry ~/files]</strong><br />
$ cat `which escapepath`<br />
</code>
</p>
<pre class="brush: ruby;">
#!/usr/bin/ruby
require 'shellwords'

while not STDIN.eof?
  puts(STDIN.gets.chomp.shellescape)
end
</pre>
<p><a href="http://gist.github.com/165867">gist</a></p>
<p>Now I can do things like:</p>
<p></p>
<p style="background-color:#ddd;">
<code><br />
<strong> [emmanuel@going_merry ~/files]</strong><br />
$ find dir1/ -type f | escapepath | xargs -I {} mv {} dir2/<br />
</code>
</p>
<p></p>
<hr />
<p></p>
<h2>If you are typing too much, you are not aliasing enough</h2>
<p></p>
<p>An anti-pattern I was using was... typing a lot. I kept running again and again things like:</p>
<p></p>
<p style="background-color:#ddd;">
<code> <strong>[emmanuel@going_merry ~/files]</strong><br />
$ ack -a -f | grep thing_i_want_to_find -i | escapepath | xargs -I {} mv {} /some/directory<br />
</code>
</p>
<p></p>
<p>...to find several files at once using a case insensitive regular expression and move all of them to a certain directory. The solution: bash aliases:</p>
<p></p>
<p style="background-color:#ddd;">
<code><br />
<strong> [emmanuel@going_merry ~/files]</strong><br />
$ cat ~/.bashrc</code><br />
</code>
</p>
<pre class="brush: bash;">
# ...
alias xmv='escapepath | xargs -I {} mv {}'
alias ifind='ack -a -f | grep -i'
# ...
</pre>
<p>Note: <strong>ack</strong> is a cool alternative to find+grep which also has some nice file finding features. <a href="http://betterthangrep.com/">Check it out</a>.</p>
<p>Know I can do things like:</p>
<p style="background-color:#ddd;">
<code><br />
<strong>[emmanuel@going_merry ~/files]</strong><br />
$ ifind thing_i_want_to_rm | xargs rm<br />
<strong>[emmanuel@going_merry ~/files]</strong><br />
$ ifind thing_i_want_to_move | xmv /some/directory<br />
</code>
</p>
<p>Ah! much more easy on my poor fingers.... <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/emmanueloga.wordpress.com/206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/emmanueloga.wordpress.com/206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/emmanueloga.wordpress.com/206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/emmanueloga.wordpress.com/206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/emmanueloga.wordpress.com/206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/emmanueloga.wordpress.com/206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/emmanueloga.wordpress.com/206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/emmanueloga.wordpress.com/206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/emmanueloga.wordpress.com/206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/emmanueloga.wordpress.com/206/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=emmanueloga.wordpress.com&blog=1886242&post=206&subd=emmanueloga&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://emmanueloga.wordpress.com/2009/08/11/linux-moving-around-files-with-white-spaces-on-the-path-name/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/aa31b79adedc3f60547769f1a8971ba6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">emmanueloga</media:title>
		</media:content>
	</item>
		<item>
		<title>How to spec a rails plugin?</title>
		<link>http://emmanueloga.wordpress.com/2009/06/25/how-to-spec-a-rails-plugin/</link>
		<comments>http://emmanueloga.wordpress.com/2009/06/25/how-to-spec-a-rails-plugin/#comments</comments>
		<pubDate>Fri, 26 Jun 2009 01:50:00 +0000</pubDate>
		<dc:creator>emmanueloga</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[rspec]]></category>

		<guid isPermaLink="false">http://emmanueloga.wordpress.com/?p=200</guid>
		<description><![CDATA[rspec plugins rails<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=emmanueloga.wordpress.com&blog=1886242&post=200&subd=emmanueloga&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Basically, the same way you spec a rails application.<br />
The cool trick is you take advantage of the spec_helper.rb of by loading it in the spec_helper of your plugin.</p>
<pre class="brush: ruby;">
# ../vendor/plugin/YOUR_PLUGIN/spec/spec_helper.rb
begin
  # load your main app spec_helper
  require File.dirname(__FILE__) + '/../../../../spec/spec_helper'
rescue LoadError
  puts &quot;You need to install rspec in your base app&quot;
  exit
end
</pre>
<p>I took this idea from Pat Maddox&#8217;s <a href="http://github.com/pat-maddox/rspec-plugin-generator/tree">rspec-plugin-generator</a>. You can use that generator to generate the basic plugin boiler plate for you.</p>
<p>The caveats are, you need to have rspec installed on your main app and you need to actually have the plugin installed in a rails application to test it. In any case, this works for my current needs.</p>
<p>For more info see <a href="http://www.intridea.com/2008/6/25/using-rspec-and-autotest-while-writing-rails-plugins-2?blog=company">this post</a>. </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/emmanueloga.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/emmanueloga.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/emmanueloga.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/emmanueloga.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/emmanueloga.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/emmanueloga.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/emmanueloga.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/emmanueloga.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/emmanueloga.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/emmanueloga.wordpress.com/200/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=emmanueloga.wordpress.com&blog=1886242&post=200&subd=emmanueloga&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://emmanueloga.wordpress.com/2009/06/25/how-to-spec-a-rails-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/aa31b79adedc3f60547769f1a8971ba6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">emmanueloga</media:title>
		</media:content>
	</item>
		<item>
		<title>Conferencia Locos X Rails tomorrow,</title>
		<link>http://emmanueloga.wordpress.com/2009/04/02/conferencia-locos-x-rails-tomorrow/</link>
		<comments>http://emmanueloga.wordpress.com/2009/04/02/conferencia-locos-x-rails-tomorrow/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 15:53:44 +0000</pubDate>
		<dc:creator>emmanueloga</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[locosxrails]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://emmanueloga.wordpress.com/?p=195</guid>
		<description><![CDATA[Obie Fernandez and Desi McAdam in Argentina<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=emmanueloga.wordpress.com&blog=1886242&post=195&subd=emmanueloga&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Tomorrow starts Locos X Rails conference in Buenos Aires, Argentina. I&#8217;m very exited about it! Yesterday I met <a title="Desi's site" href="http://www.desimcadam.com/">Desi McAdam</a>, of <a href="http://www.devchix.com/">DevChix</a> fame, and also the keynote speaker <a title="Obie's site" href="http://obiefernandez.com/">Obie Fernandez</a>, founder of <a href="http://www.hashrocket.com/">HashRocket</a>. I&#8217;m eager to hear their talks, and hope to see you in the conf. too!</p>
<div id="attachment_196" class="wp-caption aligncenter" style="width: 330px"><img src="http://emmanueloga.files.wordpress.com/2009/04/moto_0027.jpg?w=320&#038;h=256" alt="Desi and Obie at the press meeting for the LocosXRails conf." title="Desi McAdam and Obie Fernandez in Argentina" width="320" height="256" class="size-full wp-image-196" /><p class="wp-caption-text">Desi and Obie at the press meeting for the LocosXRails conf.</p></div>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/emmanueloga.wordpress.com/195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/emmanueloga.wordpress.com/195/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/emmanueloga.wordpress.com/195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/emmanueloga.wordpress.com/195/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/emmanueloga.wordpress.com/195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/emmanueloga.wordpress.com/195/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/emmanueloga.wordpress.com/195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/emmanueloga.wordpress.com/195/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/emmanueloga.wordpress.com/195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/emmanueloga.wordpress.com/195/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=emmanueloga.wordpress.com&blog=1886242&post=195&subd=emmanueloga&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://emmanueloga.wordpress.com/2009/04/02/conferencia-locos-x-rails-tomorrow/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/aa31b79adedc3f60547769f1a8971ba6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">emmanueloga</media:title>
		</media:content>

		<media:content url="http://emmanueloga.files.wordpress.com/2009/04/moto_0027.jpg" medium="image">
			<media:title type="html">Desi McAdam and Obie Fernandez in Argentina</media:title>
		</media:content>
	</item>
		<item>
		<title>ImageMagick vs GraphicsMagick, quick showdown</title>
		<link>http://emmanueloga.wordpress.com/2009/03/13/imagemagick-vs-graphicsmagick-quick-showdown/</link>
		<comments>http://emmanueloga.wordpress.com/2009/03/13/imagemagick-vs-graphicsmagick-quick-showdown/#comments</comments>
		<pubDate>Sat, 14 Mar 2009 01:43:07 +0000</pubDate>
		<dc:creator>emmanueloga</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://emmanueloga.wordpress.com/?p=192</guid>
		<description><![CDATA[ImageMagick vs GraphicsMagick, no strings attached.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=emmanueloga.wordpress.com&blog=1886242&post=192&subd=emmanueloga&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>ImageMagick vs GraphicsMagick, no strings attached.</p>
<p><code><span style="color:#ff0000;"><strong>[emmanuel@going_merry ~/Desktop/test]<br />
$ gm -version<br />
</strong></span>GraphicsMagick <strong>1.3.5</strong> 2009-01-26 Q8 http://www.GraphicsMagick.org/<br />
Copyright (C) 2002-2009 GraphicsMagick Group.<br />
Additional copyrights and licenses apply to this software.<br />
See http://www.GraphicsMagick.org/www/Copyright.html for details.</code></p>
<p><span style="color:#ff0000;">[<strong>emmanuel@going_merry ~/Desktop/test]<br />
$ convert &#8211;version<br />
</strong> </span>Version: <strong>ImageMagick 6.4.9-2 </strong>2009-02-08 Q16 OpenMP http://www.imagemagick.org<br />
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC</p>
<p><strong><span style="color:#ff0000;">[emmanuel@going_merry ~/Desktop/test]<br />
$ du src -h</span></strong><br />
<strong>62M	src<br />
</strong></p>
<p><span style="color:#ff0000;"><strong>[emmanuel@going_merry ~/Desktop/test]<br />
$ time find src -type f | xargs -I {} gm convert -sample 25%x25% {} ./dst/{</strong>}</span></p>
<p>real	0m<span style="color:#339966;"><strong>24.593s</strong></span><br />
user	0m22.172s<br />
sys	0m1.383s</p>
<p><span style="color:#ff0000;"><strong>[emmanuel@going_merry ~/Desktop/test]<br />
$ time find src -type f | xargs -I {} convert -sample 25%x25% {} ./dst/{</strong>}</span></p>
<p>real	0m<strong><span style="color:#339966;">29.137s</span></strong><br />
user	0m24.888s<br />
sys	0m2.953s</p>
<h3><span style="color:#ff00ff;">Conclusion: GraphicsMagick 1.2X faster than ImageMagick</span></h3>
<h3>EOF</h3>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/emmanueloga.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/emmanueloga.wordpress.com/192/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/emmanueloga.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/emmanueloga.wordpress.com/192/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/emmanueloga.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/emmanueloga.wordpress.com/192/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/emmanueloga.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/emmanueloga.wordpress.com/192/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/emmanueloga.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/emmanueloga.wordpress.com/192/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=emmanueloga.wordpress.com&blog=1886242&post=192&subd=emmanueloga&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://emmanueloga.wordpress.com/2009/03/13/imagemagick-vs-graphicsmagick-quick-showdown/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/aa31b79adedc3f60547769f1a8971ba6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">emmanueloga</media:title>
		</media:content>
	</item>
		<item>
		<title>Conferencia LocosXRails: falta poco!</title>
		<link>http://emmanueloga.wordpress.com/2009/03/10/conferencia-locosxrails-falta-poco/</link>
		<comments>http://emmanueloga.wordpress.com/2009/03/10/conferencia-locosxrails-falta-poco/#comments</comments>
		<pubDate>Tue, 10 Mar 2009 15:48:42 +0000</pubDate>
		<dc:creator>emmanueloga</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[conference]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://emmanueloga.wordpress.com/?p=185</guid>
		<description><![CDATA[badges ruby and rails conference locosxrails<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=emmanueloga.wordpress.com&blog=1886242&post=185&subd=emmanueloga&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Estamos a poco mas de 20 días para el inicio de la primer conferencia de ruby y rails en Argentina. Todavía no te anotaste? Podes hacerlo mediante la web: <a href="http://www.locosxrails.com/registration">http://www.locosxrails.com/registration</a></p>
<p>Si ya te anotaste, &#8220;spread the word&#8221; mediante alguno de los siguientes badges:</p>

<a href='http://emmanueloga.wordpress.com/2009/03/10/conferencia-locosxrails-falta-poco/attachment/2/' title='I&#039;m Attending the LocosXRails Conference'><img width="128" height="96" src="http://emmanueloga.files.wordpress.com/2009/03/2.jpg?w=128&#038;h=96" class="attachment-thumbnail" alt="I&#039;m Attending the LocosXRails Conference" title="I&#039;m Attending the LocosXRails Conference" /></a>
<a href='http://emmanueloga.wordpress.com/2009/03/10/conferencia-locosxrails-falta-poco/attachment/011/' title='I&#039;m Speaking at LocosXRails Conference'><img width="128" height="96" src="http://emmanueloga.files.wordpress.com/2009/03/011.jpg?w=128&#038;h=96" class="attachment-thumbnail" alt="I&#039;m Speaking at LocosXRails Conference" title="I&#039;m Speaking at LocosXRails Conference" /></a>

<p>Saludos!</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/emmanueloga.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/emmanueloga.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/emmanueloga.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/emmanueloga.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/emmanueloga.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/emmanueloga.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/emmanueloga.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/emmanueloga.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/emmanueloga.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/emmanueloga.wordpress.com/185/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=emmanueloga.wordpress.com&blog=1886242&post=185&subd=emmanueloga&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://emmanueloga.wordpress.com/2009/03/10/conferencia-locosxrails-falta-poco/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/aa31b79adedc3f60547769f1a8971ba6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">emmanueloga</media:title>
		</media:content>
	</item>
		<item>
		<title>Locos X Rails Conference: Registration Opened!</title>
		<link>http://emmanueloga.wordpress.com/2009/03/04/locos-x-rails-conference-registration-open/</link>
		<comments>http://emmanueloga.wordpress.com/2009/03/04/locos-x-rails-conference-registration-open/#comments</comments>
		<pubDate>Wed, 04 Mar 2009 14:47:07 +0000</pubDate>
		<dc:creator>emmanueloga</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[locosxrails]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://emmanueloga.wordpress.com/?p=181</guid>
		<description><![CDATA[locosxrails registration is open<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=emmanueloga.wordpress.com&blog=1886242&post=181&subd=emmanueloga&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><img src="http://locosxrails.com/images/content/logo.jpg" alt="Locos X Rails" /></p>
<p>Ya se pueden anotar en la conf. El valor de la entrada es de 300 Argentinos. Claro, antes de anotarse van a querer saber quien va a dar las charlas:</p>
<p><a href="http://eventioz.com/events/locos-x-rails-conference/speakers">http://eventioz.com/events/locos-x-rails-conference/speakers</a></p>
<p>Nos vemos ahi!</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/emmanueloga.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/emmanueloga.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/emmanueloga.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/emmanueloga.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/emmanueloga.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/emmanueloga.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/emmanueloga.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/emmanueloga.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/emmanueloga.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/emmanueloga.wordpress.com/181/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=emmanueloga.wordpress.com&blog=1886242&post=181&subd=emmanueloga&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://emmanueloga.wordpress.com/2009/03/04/locos-x-rails-conference-registration-open/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/aa31b79adedc3f60547769f1a8971ba6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">emmanueloga</media:title>
		</media:content>

		<media:content url="http://locosxrails.com/images/content/logo.jpg" medium="image">
			<media:title type="html">Locos X Rails</media:title>
		</media:content>
	</item>
		<item>
		<title>Locos por Rails Conference in Buenos Aires, Argentina</title>
		<link>http://emmanueloga.wordpress.com/2009/01/23/locos-por-rails-conference-in-buenos-aires-argentina/</link>
		<comments>http://emmanueloga.wordpress.com/2009/01/23/locos-por-rails-conference-in-buenos-aires-argentina/#comments</comments>
		<pubDate>Fri, 23 Jan 2009 16:45:29 +0000</pubDate>
		<dc:creator>emmanueloga</dc:creator>
				<category><![CDATA[people]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://emmanueloga.wordpress.com/?p=172</guid>
		<description><![CDATA[Conferencia Locos X Rails Buenos Aires Argentina<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=emmanueloga.wordpress.com&blog=1886242&post=172&subd=emmanueloga&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://locosxrails.com"><img class="size-full wp-image-173 alignright" title="Badge Locos X Rails Conference" src="http://emmanueloga.files.wordpress.com/2009/01/locos_badge.jpg?w=243&#038;h=54" alt="Badge Locos X Rails Conference" width="243" height="54" /></a></p>
<p>Por fin!, una <a href="http://locosxrails.com/?lang=es">conferencia de ruby y rails en Argentina</a>! La misma se realizará el 3 y 4 de Abril en la Universidad de Palermo, C.A.B.A. Estan cordialmente invitados. La inscripción no ha empezado todavía, pero si pueden <a href="http://locosxrails.com/papers/?lang=es">mandar sus propuestas</a> para disertar en la misma.</p>
<p><a href="http://locosxrails.com/?lang=en">Locos Por Rails Conference 2009</a> will be held on April 3rd and 4th in Buenos Aires, Argentina. Registration is not open yet, but the <a href="http://locosxrails.com/papers/?lang=en">call for papers</a> is already open. Send yours!</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/emmanueloga.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/emmanueloga.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/emmanueloga.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/emmanueloga.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/emmanueloga.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/emmanueloga.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/emmanueloga.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/emmanueloga.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/emmanueloga.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/emmanueloga.wordpress.com/172/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=emmanueloga.wordpress.com&blog=1886242&post=172&subd=emmanueloga&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://emmanueloga.wordpress.com/2009/01/23/locos-por-rails-conference-in-buenos-aires-argentina/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/aa31b79adedc3f60547769f1a8971ba6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">emmanueloga</media:title>
		</media:content>

		<media:content url="http://emmanueloga.files.wordpress.com/2009/01/locos_badge.jpg" medium="image">
			<media:title type="html">Badge Locos X Rails Conference</media:title>
		</media:content>
	</item>
		<item>
		<title>Have you ever been told&#8230;.</title>
		<link>http://emmanueloga.wordpress.com/2008/12/28/have-you-ever-been-told/</link>
		<comments>http://emmanueloga.wordpress.com/2008/12/28/have-you-ever-been-told/#comments</comments>
		<pubDate>Sun, 28 Dec 2008 18:27:36 +0000</pubDate>
		<dc:creator>emmanueloga</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[team]]></category>

		<guid isPermaLink="false">http://emmanueloga.wordpress.com/?p=156</guid>
		<description><![CDATA[Receiving and giving code reviews<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=emmanueloga.wordpress.com&blog=1886242&post=156&subd=emmanueloga&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>&#8230;that your code sucks, that one of your ideas is horrible, totally unusable or even (alas) that you or other developers are dumb because they choose to do things in certain way? I have, once or twice&#8230;. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> .</p>
<p>Leaving aside the fact that the person proffering those kind of comments has probably not reached maturity yet and/or has not good people skills, there are some good tips to take into consideration when that happens.</p>
<p>I&#8217;ve stumbled upon <a href="http://mumak.net/stuff/your-code-sucks.html">this excellent article:  http://mumak.net/stuff/your-code-sucks.html</a>. I will simply copy-paste cites from it in <span style="color:#0000ff;">blue</span>. It talks specifically about code reviews, but we can adapt its tips if we think of a comment like <a title="David Chelimsky on mocking/stubbing" href="http://blog.davidchelimsky.net/2008/12/11/a-case-against-a-case-against-mocking-and-stubbing">&#8220;<em>mocking/stubbing is a horrible idea and it can hurt the development process&#8221;</em></a> as if it were a code review&#8230; (By the way, David show us in his article the proper way to handle these kind of statements. Excellent post!)</p>
<p>First, don&#8217;t take it personally. Very often <span style="color:#0000ff;"><em>programmers tend to confuse personal preference with objective worth</em></span>. I tend to take the &#8220;let&#8217;s do it your way&#8221; path -in cases where there is no harm in doing so- to avoid never ending discussions.</p>
<p>In the positive side of things, consider:</p>
<p><span style="color:#0000ff;">&#8230;someone has just tried to improve your product. They&#8217;ve put thought, effort and creativity into helping you, and now they have put their work up for critique: thank them.</span></p>
<p><span style="color:#0000ff;">Divmod have a policy of always saying one good thing in each code review. There is always something nice to say, even if it&#8217;s just <q>I&#8217;m glad someone is looking at this part of the code</q></span></p>
<p><span style="color:#0000ff;">&#8230;</span></p>
<p><span style="color:#0000ff;">Code reviews provide an amazing opportunity to grow as a programmer and to improve the software we make.</span> Off course! Just because the comment does not come wrapped in a polite sentence does not mean that it is wrong.</p>
<p>At the other side of the coin, If we are the ones reviewing other people work, then:</p>
<h3><span style="color:#0000ff;">Ad hominem</span></h3>
<p><span style="color:#0000ff;"> This ought to go without saying: review the code and not the coder. Comments about a person will only make it harder for that person to apply critiques about their code. </span></p>
<p><span style="color:#0000ff;"> When making negative comments, refer to <q>the patch</q> or <q>the branch</q> rather than <q>you</q>. For example, <q>You&#8217;ve introduced a bug in get_message</q> becomes <q>this patch introduces a bug in get_message</q>. </span></p>
<h3><span style="color:#0000ff;">Unclear Outcomes</span></h3>
<p><span style="color:#0000ff;"> If <em>all</em> you say is, <q>this patch introduces a bug in get_message</q>, then you have failed as a reviewer. The goal is to improve the code, not to provide a series of puzzles for the author. </span></p>
<p><span style="color:#0000ff;">The author should be able to look at a review and be able to tell how to address each point and also when they have addressed all points. Reviews with unclear outcomes turn into open-ended discussions about the patch, which sometimes become focused on making the reviewer happy, rather than improving the code. </span></p>
<h3><span style="color:#0000ff;">Confusing personal preference with objective worth</span></h3>
<p><span style="color:#0000ff;"> This is a problem in all spheres of review. Film critics, literary editors and acadamic reviewers all do it. <q>What I like</q> is not necessarily the same as <q>what&#8217;s good</q>, although part of becoming a better programmer is having your preferences align better with reality. <q>What I dislike</q> is perhaps even less likely to be the same as <q>what&#8217;s bad</q>. </span></p>
<p><span style="color:#0000ff;"> When reviewing a perfectly acceptable patch that solves a problem using imperative-style programming, <em>do not</em> criticize it simply because it isn&#8217;t in a more functional style. Doing otherwise makes reviews a game of <q>guess what the reviewer likes</q> rather than <q>write good code</q>. </span></p>
<p><span style="color:#0000ff;"> Reviewers can avoid this trap by phrasing review comments as questions, <q>Did you consider using a more functional style?</q>, <q>Why aren&#8217;t you using regular expressions to solve this problem?</q> etc.</span></p>
<p>I encourage you to read <a href="http://mumak.net/stuff/your-code-sucks.html">Jonathan Lange&#8217;s post</a>, there are a lot of excellent tips on it!</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/emmanueloga.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/emmanueloga.wordpress.com/156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/emmanueloga.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/emmanueloga.wordpress.com/156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/emmanueloga.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/emmanueloga.wordpress.com/156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/emmanueloga.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/emmanueloga.wordpress.com/156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/emmanueloga.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/emmanueloga.wordpress.com/156/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=emmanueloga.wordpress.com&blog=1886242&post=156&subd=emmanueloga&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://emmanueloga.wordpress.com/2008/12/28/have-you-ever-been-told/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/aa31b79adedc3f60547769f1a8971ba6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">emmanueloga</media:title>
		</media:content>
	</item>
		<item>
		<title>facebooker gem outdated on rubyforge</title>
		<link>http://emmanueloga.wordpress.com/2008/12/08/facebooker-gem-outdated-on-rubyforge/</link>
		<comments>http://emmanueloga.wordpress.com/2008/12/08/facebooker-gem-outdated-on-rubyforge/#comments</comments>
		<pubDate>Mon, 08 Dec 2008 17:24:02 +0000</pubDate>
		<dc:creator>emmanueloga</dc:creator>
				<category><![CDATA[ruby]]></category>
		<category><![CDATA[facebook]]></category>

		<guid isPermaLink="false">http://emmanueloga.wordpress.com/?p=149</guid>
		<description><![CDATA[getting the lastest version of facebooker<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=emmanueloga.wordpress.com&blog=1886242&post=149&subd=emmanueloga&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>If you are building a facebook applicaction using facebooker gem, beware the version of the gem in rubyforge is outdated. The easier way to deal with this is to clone the github repo of facebooker and install the gem from there.</p>
<ol>
<li>git clone git://github.com/mmangino/facebooker.git</li>
<li>cd facebooker</li>
</ol>
<p>Then:</p>
<ol>
<li>rake gem</li>
<li>cd pkg</li>
<li>sudo gem install facebooker-[insert-version-here]</li>
</ol>
<p><strong>UPDATE </strong></p>
<p>But this won&#8217;t work&#8230; the updated method is:</p>
<ol>
<li>rake gemspec</li>
<li>gem build facebooker.gemspec</li>
<li>sudo gem install facebooker-[insert-version-here]</li>
</ol>
<p>At this point, the lastest version on github is <del datetime="00">0.9.9</del> 1.0.8!!! (0.9.5 in rubyforge), and this is a version you are going to need because of <a href="http://github.com/mmangino/facebooker/commit/51fcbb01a70e678f27962f72b2173c69d2ed3a16">this commit</a>.</p>
<p><strong>UPDATE: </strong></p>
<p>Although the procedure above still works, you may find it easier to install the gem directly from github, now that <a title="facebooker commit at github" href="http://github.com/mmangino/facebooker/commit/7cad4c0feacf06f630ddec857278c7e1a852d4ef">its gemspec has been made github-compatible</a>:</p>
<ol>
<li>gem sources</li>
<li>sudo gem sources &#8211;add http://gems.github.com (if it is not already listed when you run step 1)</li>
<li>sudo gem install mmangino-facebooker</li>
</ol>
<p>&#8230;although because of github gemspec security policy, the gem there is _not always_ the lastest&#8230; </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/emmanueloga.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/emmanueloga.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/emmanueloga.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/emmanueloga.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/emmanueloga.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/emmanueloga.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/emmanueloga.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/emmanueloga.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/emmanueloga.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/emmanueloga.wordpress.com/149/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=emmanueloga.wordpress.com&blog=1886242&post=149&subd=emmanueloga&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://emmanueloga.wordpress.com/2008/12/08/facebooker-gem-outdated-on-rubyforge/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/aa31b79adedc3f60547769f1a8971ba6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">emmanueloga</media:title>
		</media:content>
	</item>
	</channel>
</rss>