<?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>Stereonaut! &#187; github</title>
	<atom:link href="http://stereonaut.net/tag/github/feed/" rel="self" type="application/rss+xml" />
	<link>http://stereonaut.net</link>
	<description>A weblog by David Moreno.</description>
	<lastBuildDate>Mon, 23 Aug 2010 00:45:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Feedbag 0.6</title>
		<link>http://stereonaut.net/feedbag-06/</link>
		<comments>http://stereonaut.net/feedbag-06/#comments</comments>
		<pubDate>Sat, 06 Mar 2010 01:36:59 +0000</pubDate>
		<dc:creator>David Moreno</dc:creator>
				<category><![CDATA[planeta linux]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[feedbag]]></category>
		<category><![CDATA[gemcutter]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[rubygems]]></category>

		<guid isPermaLink="false">http://stereonaut.net/?p=1158</guid>
		<description><![CDATA[I just uploaded Feedbag 0.6 to Gemcutter and GitHub. Just a couple of small nice additions to this version: The undocumented args[:narrow] option has been disabled until further notice. A nice little commit from one of Feedbag&#039;s forks, by Patrick Reagan. Added an executable to find feed URLs directly: Sometimes you need to find the [...]]]></description>
			<content:encoded><![CDATA[<p>I just uploaded <a href="http://axiombox.com/feedbag">Feedbag</a> 0.6 to <a href="http://rubygems.org/gems/feedbag/versions/0.6">Gemcutter</a> and <a href="http://github.com/damog/feedbag">GitHub</a>.</p>
<p>Just a couple of small nice additions to this version:</p>
<ul>
<li>The undocumented <tt>args[:narrow]</tt> option has been disabled until further notice.</li>
<li>A nice little commit from <a href="http://github.com/damog/feedbag/commit/ad7fdaf671b039cac5550b89d20de511b9a2bb14">one</a> of Feedbag&#039;s forks, by Patrick Reagan.</li>
<li>Added an executable to find feed URLs directly:</li>
</ul>
<p>Sometimes you need to find the feed for a URL quickly, not from a script. What I do, and what someone else showed me too, is this:</p>
<pre class="brush: bash">
~ $ irb
-- require &quot;rubygems&quot;
= true
-- require &quot;feedbag&quot;
= true
-- Feedbag.find &quot;http://stereonaut.net&quot;
= [&quot;http://stereonaut.net/feed&quot;, &quot;http://stereonaut.net/tag/feed/&quot;, &quot;http://stereonaut.net/comments/feed/&quot;]
--
</pre>
<p>But now you can simply do:</p>
<pre class="brush: bash">
~ $ feedbag cnn.com http://twitter.com/compupaisa
== cnn.com:
 - http://rss.cnn.com/rss/cnn_topstories.rss
 - http://rss.cnn.com/rss/cnn_latest.rss
== http://twitter.com/compupaisa:
 - http://twitter.com/statuses/user_timeline/119479806.rss
 - http://twitter.com/favorites/119479806.rss
~ $
</pre>
<p>Enjoy the <tt>feedbag</tt> executable on your <tt>$PATH</tt> now!</p>
]]></content:encoded>
			<wfw:commentRss>http://stereonaut.net/feedbag-06/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Perl Seminar NY: 2009-10 Season Begins Tuesday Oct 20</title>
		<link>http://stereonaut.net/perl-seminar-ny-2009-10-season-begins-tuesday-oct-20/</link>
		<comments>http://stereonaut.net/perl-seminar-ny-2009-10-season-begins-tuesday-oct-20/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 17:22:41 +0000</pubDate>
		<dc:creator>David Moreno</dc:creator>
				<category><![CDATA[git]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[nyc]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[planeta linux]]></category>

		<guid isPermaLink="false">http://log.damog.net/?p=967</guid>
		<description><![CDATA[This next Tuesday October 20th, the Perl Seminar returns to New York City! This is a great effort by Jim Keenan, always trying to push the meetings and encouraging people on attending and sharing. There&#039;s usually one meeting per month and it&#039;s very well located, in midtown Manhattan, on a suite in the Ramada New [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/elliott-back/59991546/"><img class="alignright size-medium wp-image-968" title="59991546_b9fc0327b4" src="http://log.damog.net/wp-content/uploads/2009/10/59991546_b9fc0327b4-300x225.jpg" alt="59991546_b9fc0327b4" width="232" height="174" /></a>This next Tuesday October 20th, the <strong>Perl Seminar</strong> returns to New York City! This is a great effort by <a href="http://search.cpan.org/~jkeenan/">Jim Keenan</a>, always trying to push the meetings and encouraging people on attending and sharing. There&#039;s usually one meeting per month and it&#039;s very well <a href="http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;q=481+8th+Ave,+New+York,+10001&amp;sll=37.0625,-95.677068&amp;sspn=45.467317,93.076172&amp;ie=UTF8&amp;cd=1&amp;geocode=FUjWbQIdYvKW-w&amp;split=0&amp;hq=&amp;hnear=481+8th+Ave,+New+York,+10001&amp;z=16">located</a>, in midtown Manhattan, on a suite in the Ramada New Yorker hotel building facilitated by the <a href="http://www.nypc.org/">NYPC User Group</a>.</p>
<p>The first meeting will be about <a href="http://git-scm.com">Git</a>, <a href="http://github.com/">GitHub</a> and how you can use it on your Perl code and projects. It&#039;ll be very interesting for newcomers! More details on the <a href="http://tech.groups.yahoo.com/group/perlsemny/message/927">original post</a>, and make sure to subscribe to the <a href="http://tech.groups.yahoo.com/group/perlsemny/">discussion group</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://stereonaut.net/perl-seminar-ny-2009-10-season-begins-tuesday-oct-20/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GitHub&#039;s Octocat stickers!</title>
		<link>http://stereonaut.net/githubs-octocat-stickers/</link>
		<comments>http://stereonaut.net/githubs-octocat-stickers/#comments</comments>
		<pubDate>Wed, 06 May 2009 17:53:56 +0000</pubDate>
		<dc:creator>David Moreno</dc:creator>
				<category><![CDATA[github]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[planeta linux]]></category>
		<category><![CDATA[stickers]]></category>

		<guid isPermaLink="false">http://log.damog.net/?p=861</guid>
		<description><![CDATA[They arrived today! Also, I must say, they flew away immediately with work buddies, so from the 8 stickers the guys kindly sent, I only kept two, but that&#039;s cool. I guess Thanks GitHub!]]></description>
			<content:encoded><![CDATA[<p><a href="http://github.com/blog/369-get-your-github-stickers">They</a> arrived today!</p>
<p><a href="http://www.flickr.com/photos/raquelydavid/3508311774/"><img class="aligncenter" src="http://farm4.static.flickr.com/3664/3508311774_23324a98be.jpg" alt="" width="500" height="375" /></a></p>
<p>Also, I must say, they flew away immediately with work buddies, so from the 8 stickers the guys kindly sent, I only kept two, but that&#039;s cool. I guess <img src='http://stereonaut.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Thanks <a href="http://github.com">GitHub</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://stereonaut.net/githubs-octocat-stickers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick feed aggregation with Vitacilina</title>
		<link>http://stereonaut.net/quick-feed-aggregation-with-vitacilina/</link>
		<comments>http://stereonaut.net/quick-feed-aggregation-with-vitacilina/#comments</comments>
		<pubDate>Fri, 30 Jan 2009 02:36:06 +0000</pubDate>
		<dc:creator>David Moreno</dc:creator>
				<category><![CDATA[feed]]></category>
		<category><![CDATA[in-english]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[planeta linux]]></category>
		<category><![CDATA[cpan]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[rfeed]]></category>
		<category><![CDATA[vitacilina]]></category>
		<category><![CDATA[yaml]]></category>

		<guid isPermaLink="false">http://log.damog.net/?p=812</guid>
		<description><![CDATA[Vitacilina, ¡ah, qué buena medicina! A few months ago. Maybe more than a year, I started hacking on Vitacilina, which was meant to be the replacement for Planet on all countries Planeta Linux supports. I was doing well, I even hosted the code back then in Google Code. Later, I forgot about it, but I&#039;d [...]]]></description>
			<content:encoded><![CDATA[<p><em>Vitacilina, ¡ah, qué buena medicina!</em></p>
<p>A few months ago. Maybe more than a year, I started hacking on Vitacilina, which was meant to be the replacement for <a href="http://planetplanet.org">Planet</a> on all countries <a href="http://planetalinux.org">Planeta Linux</a> supports. I was doing well, I even hosted the code back then in <a href="http://code.google.com/p/vitacilina">Google Code</a>. Later, I forgot about it, but I&#039;d always been wanting to replace Planet with some homebrew solution for the Planeta Linux community. Anyway, that hasn&#039;t happened yet. However, I did start using Vitacilina for my own needs on a local sandbox for my employer and it used to work pretty well. I&#039;ve been hacking it to fit very specific requirements, though.</p>
<p>Anyway, I thought it was a good moment to release it publicly, just because it was all hidden there. So, I didn&#039;t implement the changes I did for my employer (because they were very specific for our products) but I did clean it up and wrote some documentation.</p>
<p>Now, what exactly is <em>Vitacilina</em>? Well, it&#039;s a feed aggregator. It&#039;s written in Perl (it&#039;s a Perl module) and it uses <a href="http://www.yaml.org/">YAML</a> to get its list of feeds and names and <a href="http://template-toolkit.org/">Template Toolkit</a> to format and dump the output, it was efficient for me because it was very easy for me to create dumps:</p>
<pre><code>use Vitacilina;

my $v = Vitacilina-&gt;new(
  config =&gt; "config.yml",
  template =&gt; "template.tt",
  output =&gt; "output.html",
);
$v-&gt;render;
</code></pre>
<p>And that&#039;s it. I used to create YAML files on the fly to create new <em>Vitacilina</em> objects and render them according to some data.</p>
<p>The  config file would look something like this:</p>
<pre><code>http://myserver.com/myfeed:
  name: Some Cool Feed

http://feeds.feedburner.com/InfinitePigTheorem:

  name: David Moreno
</code></pre>
<p>And the template file:</p>
<pre><code> [% FOREACH p IN data %]
  &lt;a href="[% p.permalink %]"&gt;[% p.title %]&lt;/a&gt;
   by &lt;a href="[% p.channelUrl %]"&gt;[% p.author %]&lt;/a&gt;

 [% END %]
</code></pre>
<p>In that way, it&#039;s very simple, quick and easy to do aggregations. I just love TT, why wouldn&#039;t I? <img src='http://stereonaut.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>So go grab <a href="http://search.cpan.org/~damog/Vitacilina-0.1/">Vitacilina at CPAN</a>. Also, the Git repo is at <a href="http://github.com/damog/vitacilina">github.com/damog/vitacilina</a>.</p>
<p>However&#8230; I started to hack on a similar more ambitious project called <a href="http://github.com/damog/rfeed">rFeed</a>, that it&#039;s more of a framework than a simple library, which is why I stopped further Vitacilina development. I&#039;ll talk about rFeed later when the time comes.</p>
]]></content:encoded>
			<wfw:commentRss>http://stereonaut.net/quick-feed-aggregation-with-vitacilina/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ruby goodies: Modules and methods for my everyday Ruby</title>
		<link>http://stereonaut.net/ruby-goodies-modules-and-methods-for-my-everyday-ruby/</link>
		<comments>http://stereonaut.net/ruby-goodies-modules-and-methods-for-my-everyday-ruby/#comments</comments>
		<pubDate>Sun, 04 Jan 2009 04:27:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[goodies]]></category>
		<category><![CDATA[in-english]]></category>
		<category><![CDATA[planet-debian]]></category>
		<category><![CDATA[planeta linux]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[github]]></category>

		<guid isPermaLink="false">http://log.damog.net/?p=770</guid>
		<description><![CDATA[I make a lot of Web script processing, whether scraping, webservices, systems administration, etc. Because I sometimes happen to repeat small and useful chunks of code for different projects, I thought that, given making new modules and methods is usually hassleless in Ruby, I should make my own set of methods and goodies I constantly [...]]]></description>
			<content:encoded><![CDATA[<p>I make a lot of Web script processing, whether scraping, webservices, systems administration, etc. Because I sometimes happen to repeat small and useful chunks of code for different projects, I thought that, given making new modules and methods is usually hassleless in Ruby, I should make my own set of methods and goodies I constantly use. Example 1, I sometimes miss Perl&#039;s LWP::Simple simplicity where I just pass a URL to a subroutine and get the content on a variable, quick, one-liner. Example 2, extract all links on a given URL on an array that I can then iterate and maybe fetch given the first example. Getting all A links is very easy to do, say with regex or with Hpricot (which should the best way to parse HTML), but most of the time I (and people, I&#039;d bet) need absolute URLs which is fairly more complex (relative, absolute URLs, BASE href declarations, etc, the same case as in <a href="http://axiombox.com/feedbag">Feedbag</a>).</p>
<p>Well, for different cases like that one, I&#039;ve started my own set of Ruby goodies. If you don&#039;t find them useful, I understand, they are mostly for my <strongown</strong> needs, I just want to make it public, because maybe, some other people might indeed find them useful.</p>
<p>Simple installation:</p>
<pre><code>sudo gem install damog-goodies -s http://gems.github.com/</code></pre>
<p>As time and needs pass, I will be adding stuff into it. For the time being, here&#039;s both above examples in action:</p>
<pre><code>
>> require "goodies"
requiring /var/lib/gems/1.8/gems/damog-goodies-0.1/lib/goodies/array.rb
requiring /var/lib/gems/1.8/gems/damog-goodies-0.1/lib/goodies/lwr.rb
requiring /var/lib/gems/1.8/gems/damog-goodies-0.1/lib/goodies/html.rb
=> true
>> pp HTML::Links.find "damog.net"
["mailto:david-YOUKNOWTHEDEAL-axiombox.com",
 "http://log.damog.net/",
 "http://historiasdenuevayork.com",
 "http://axiombox.com/",
 "http://flickr.com/photos/raquelydavid",
 "http://last.fm/user/damog",
 "http://maggit.com.mx",
 "http://twitter.com/damog",
 "http://www.facebook.com/profile.php?id=670490388",
 "http://www.chess.com?ref_id=1380378",
 "http://www.chess.com",
 "http://www.chess.com/members/view/damog?ref_id=1380378",
 "http://www.chess.com/echess/create_game.html?uid=1380378&#038;ref_id=1380378",
 "http://www.chess.com/home/game_archive.html?member=damog&#038;ref_id=1380378"]
=> nil
>> pp HTML::Links.find("http://google.com").first(10)
["http://images.google.com/imghp?hl=en&#038;tab=wi",
 "http://maps.google.com/maps?hl=en&#038;tab=wl",
 "http://news.google.com/nwshp?hl=en&#038;tab=wn",
 "http://www.google.com/prdhp?hl=en&#038;tab=wf",
 "http://mail.google.com/mail/?hl=en&#038;tab=wm",
 "http://www.google.com/intl/en/options/",
 "http://video.google.com/?hl=en&#038;tab=wv",
 "http://groups.google.com/grphp?hl=en&#038;tab=wg",
 "http://books.google.com/bkshp?hl=en&#038;tab=wp",
 "http://scholar.google.com/schhp?hl=en&#038;tab=ws"]
=> nil
>> get "debian.org"
[snip]
>> get("planeta.debian.net")[0, 100]
=> "&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"
>>
</code></pre>
<p>Repository is, as usual, kindly hosted at <a href="http://github.com">GitHub</a> on <a href="http://github.com/damog/goodies">damog/goodies</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://stereonaut.net/ruby-goodies-modules-and-methods-for-my-everyday-ruby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
