<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>H3RALD: Introducing RedBook (and the new Code section)</title>
    <link>http://www.h3rald.com/blog/introducing-redbook</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Fabio Cevasco's Writings</description>
    <item>
      <title>Introducing RedBook (and the new Code section)</title>
      <description>&lt;p&gt;I&amp;#8217;m somehow pleased to announce the opening of a new section on this site. Nothing too big actually, it&amp;#8217;s just a &lt;a href="/code/"&gt;page&lt;/a&gt; with a few (one for now) brief descriptions of open source programs and scripts I made and I&amp;#8217;d like to share with my readers.&lt;/p&gt;


	&lt;p&gt;Don&amp;#8217;t expect fancy stuff: (luckily) I don&amp;#8217;t code for a living, I code for pleasure and I code small things. Lately I&amp;#8217;ve been trying to write a small Ruby program able to log my daily activities and also display them in a pleasant enough way, so I started using my lunch breaks at work more constructively and I came up with &lt;a href="/code/"&gt;RedBook&lt;/a&gt; an interactive command-line program written in Ruby.&lt;/p&gt;


	&lt;p&gt;Main features:&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;Log timestamped and &lt;em&gt;tagged&lt;/em&gt; messages to a single &lt;span class="caps"&gt;YAML&lt;/span&gt; file&lt;/li&gt;
		&lt;li&gt;Load and display messages containing a certain string, or certain tags or within a time frame.&lt;/li&gt;
		&lt;li&gt;Calculate the time elapsed between two or more tasks.&lt;/li&gt;
		&lt;li&gt;Export loaded messages to &lt;span class="caps"&gt;YAML&lt;/span&gt;, TXT or &lt;span class="caps"&gt;CSV&lt;/span&gt; format.&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;All done via command line via simple commands:&lt;/p&gt;


	&lt;p&gt;&lt;strong&gt;&amp;#58;log&lt;/strong&gt; This is a test message &lt;strong&gt;&amp;#58;tags&lt;/strong&gt; test&lt;/p&gt;


	&lt;p&gt;&lt;strong&gt;&amp;#58;load&lt;/strong&gt; &lt;strong&gt;&amp;#58;last&lt;/strong&gt; 30 &lt;strong&gt;&amp;#58;from&lt;/strong&gt; last week&lt;/p&gt;


	&lt;p&gt;&lt;strong&gt;&amp;#58;timecalc&lt;/strong&gt; 2 5&lt;/p&gt;


	&lt;p&gt;&lt;strong&gt;&amp;#58;save&lt;/strong&gt; test.txt&lt;/p&gt;


	&lt;p&gt;Thanks to the wonderful &lt;a href="http://chronic.rubyforge.org/"&gt;Chronic&lt;/a&gt; library, you can specify your time frames using natural language expressions like &amp;#8220;8 in the morning&amp;#8221;, &amp;#8220;this tuesday&amp;#8221;, &amp;#8220;last month&amp;#8221; and so on&amp;#8230;&lt;/p&gt;


	&lt;p&gt;Here&amp;#8217;s a screenshot showing RedBook in action:&lt;/p&gt;


	&lt;p&gt;&lt;img src="/files/redbook.png" alt="" /&gt;&lt;/p&gt;


	&lt;p&gt;RedBook is of course free, open source software licensed under the terms of the &lt;span class="caps"&gt;BSD&lt;/span&gt; license. It can be installed on any machine able to run Ruby and there&amp;#8217;s also an &lt;span class="caps"&gt;EXE&lt;/span&gt; version for the lazy windows folks who don&amp;#8217;t want to install Ruby, packed with &lt;a href="http://www.erikveenstra.nl/rubyscript2exe/index.html"&gt;RubyScript2Exe&lt;/a&gt;. A more in-depth article explaining how RedBook works &lt;del&gt;will hopefully be completed soon&lt;/del&gt; is available &lt;a href="http://www.h3rald.com/articles/redbook"&gt;:here&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Sat, 29 Sep 2007 02:12:00 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:1209d2e8-0593-4dd0-a501-eb3ee9ff053c</guid>
      <author>h3rald</author>
      <link>http://www.h3rald.com/blog/introducing-redbook</link>
      <category>Blog</category>
      <category>ruby</category>
      <category>productivity</category>
      <category>software</category>
      <category>tools</category>
      <category>redbook</category>
      <trackback:ping>http://www.h3rald.com/trackback/entries/122</trackback:ping>
    </item>
  </channel>
</rss>
