quick and easy calendar

Tue 08 December 2015
English: Calendar

Calendar (Photo credit: Wikipedia)

A quick post to share something I was looking for for several month: a quick way to see a calendar.

A simple tool using the command line interface is the `cal <https://en.wikipedia.org/wiki/Cal_%28Unix%29>`__ command that display a calendar in a terminal. In the archlinux distribution, this command is part of the util-linux package.

Here is a brief illustration:

$ cal -3
    November 2015         December 2015         January 2016
Mo Tu We Th Fr Sa Su  Mo Tu We Th Fr Sa Su  Mo Tu We Th Fr Sa Su
                   1      1  2  3  4  5  6               1  2  3
 2  3  4  5  6  7  8   7  8  9 10 11 12 13   4  5  6  7  8  9 10
 9 10 11 12 13 14 15  14 15 16 17 18 19 20  11 12 13 14 15 16 17
16 17 18 19 20 21 22  21 22 23 24 25 26 27  18 19 20 21 22 23 24
23 24 25 26 27 28 29  28 29 30 31           25 26 27 28 29 30 31
30

UPDATE : Moreover, one can use calendar 1 along with its own shell script(s) to periodically check upcoming events and possibly mail reminders.

(Non-)Related articles

available on debian in thebsdmainutilspackage

Category: tools Tagged: ArchLinux Command-line interface tools Unix how to useless


R mclapply cores option

Mon 11 August 2014

This morning, I found the default behavior of the mclapply() function not quite different from the one of the lapply().  After quick investigation, I found is was due to an option not correctly set: the number of core to use.

> getOption("cores")
NULL

I must then overwrite the default mc …

Category: programming Tagged: R programming useless

Read More

unfactor R factor

Thu 17 July 2014
Consider the following R code:
a <- factor(floor(rnorm(100)))        class(a)        summary(a)
Why should you have that? great question. Maybe because of memory place. I really don’t know, but I received some R dataset in the form of a factor. My problem is to revert this process …

Category: R Tagged: how to programming R useless

Read More
Page 1 of 1