all repos — h3rald @ b26e779a67ddb0e4187d0c75a391b8d5b046f044

The sources of https://h3rald.com

content/articles/introducing-redbook.textile

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
----- 
permalink: introducing-redbook
filters_pre: 
- redcloth
title: Introducing RedBook (and the new Code section)
comments: []

date: 2007-09-29 02:12:00 +02:00
tags: 
- ruby
- productivity
- software
- tools
- redbook
type: article
toc: true
-----
I'm somehow pleased to announce the opening of a new section on this site. Nothing too big actually, it's just a "page":/code/ with a few (one for now) brief descriptions of open source programs and scripts I made and I'd like to share with my readers.

Don't expect fancy stuff: (luckily) I don't code for a living, I code for pleasure and I code small things. Lately I'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 "RedBook":/code/ an interactive command-line program written in Ruby.

Main features:

* Log timestamped and _tagged_ messages to a single YAML file
* Load and display messages containing a certain string, or certain tags or within a time frame.
* Calculate the time elapsed between two or more tasks.
* Export loaded messages to YAML, TXT or CSV format.

All done via command line via simple commands:

*:log* This is a test message *:tags* test

*:load* *:last* 30 *:from* last week

*:timecalc* 2 5

*:save* test.txt

Thanks to the wonderful "Chronic":http://chronic.rubyforge.org/ library, you can specify your time frames using natural language expressions like "8 in the morning", "this tuesday", "last month" and so on...

Here's a screenshot showing RedBook in action:

!/files/redbook.png!

RedBook is of course free, open source software licensed under the terms of the BSD license. It can be installed on any machine able to run Ruby and there's also an EXE version for the lazy windows folks who don't want to install Ruby, packed with "RubyScript2Exe":http://www.erikveenstra.nl/rubyscript2exe/index.html. A more in-depth article explaining how RedBook works -will hopefully be completed soon- is available ":here":http://www.h3rald.com/articles/redbook