Skip to content

Exemple Complet Minimal

This is a French acronym used by some mailing list members; it stands for “Exemple Complet Minimal”, or “Complete Minimal Example”. The term refers to test files that can reliably reproduce a bug with the minimal amount of code.

Seal the wiring deal

use butt connectors, ring terminals, and spade clips ad a good crimper. Before crimping, I’ll coat the wire end and the connector with a dielectric paste, avoiding silicon sealer, as it can shrink and allow moisture in. A layer of heat-shrink tubing guarantees a water tight worry free connection.

Nice example of converting wide to tall data with tidyr

Nice example.

> x <- structure(c(1961, 1961, 1961, 1961, 1, 1, 1, 1, 1, 2, 3 
+         , 4, 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) 
+     , .Dim = c(4L, 12L) 
+     , .Dimnames = list(NULL, c("year", "month", "day", "A", "B", "C" 
+         , "D", "E", "F", "G", "H", "I")) 
+     ) 
> xdf <- as.data.frame(x) 
> xdf 
  year month day A B  C  D  E  F  G  H  I 
1 1961     1   1 1 5  9 13 17 21 25 29 33 
2 1961     1   2 2 6 10 14 18 22 26 30 34 
3 1961     1   3 3 7 11 15 19 23 27 31 35 
4 1961     1   4 4 8 12 16 20 24 28 32 36 
> require(tidyr) 
> require(dplyr) 
> xdf %>% gather(station, discharge, -year, -month, -day) 
   year month day station discharge 
1  1961     1   1       A         1 
2  1961     1   2       A         2 
3  1961     1   3       A         3 
4  1961     1   4       A         4 
5  1961     1   1       B         5 
6  1961     1   2       B         6 
7  1961     1   3       B         7 
8  1961     1   4       B         8 
9  1961     1   1       C         9 
10 1961     1   2       C        10 
11 1961     1   3       C        11 
12 1961     1   4       C        12 
13 1961     1   1       D        13 
14 1961     1   2       D        14 
15 1961     1   3       D        15 
16 1961     1   4       D        16 
17 1961     1   1       E        17

Formatting your signature for news posts

If you like, read RFC 3676:

There is a long-standing convention in Usenet news
which also commonly appears in Internet mail of
using “– ” as the separator line between the body
and the signature of a message.

Via help-gnu-emacs.

Announce: PicoLisp in Hardware (PilMCU)

PilMCU is an implementation of 64-bit PicoLisp directly in hardware. A
truly minimalistic system. PicoLisp is both the machine language and the
operating system:

Via help-gnu-emacs.

R Online Anywhere

R-Fiddle lets you run ℝ anywhere with web access.

Other R Engines

One of the things that I enjoy about ℝ is that all of the efforts are focused on
one implementation… or so I thought!

See also:

Thanks goodness for free software.

Via mage.

R Markdown

R Markdown is an authoring format that enables easy creation of dynamic documents, presentations, and reports from R. It combines the core syntax of markdown (an easy-to-write plain text format) with embedded R code chunks that are run so their output can be included in the final document. R Markdown documents are fully reproducible (they can be automatically regenerated whenever underlying R code or data changes).

dplyr: A gamechanger for data manipulation in R

If you’ve never looked at dplyr, then this is a must watch lecture.

Meditation experiment personal observations 208680d2-3ed5-2a34-6dab-6a8f91899255

Insufficient sleep results in cognitive fatigue.

Insufficient hydration and sustenance results in physcial fatigue.

Insufficient physical strength and cardiovascular investment/exercise results in both.

Cognitive and physical fatigue seem to hamper the practice of meditation and generally contribute to having a “bad day”.