Running TiddlyWiki using Docker

Thanks to https://github.com/djmaze/tiddlywiki-docker it is easy to launch a TiddlyWiki as nodejs-server from a docker image. Here is my setup, which simplifies the workflow by some bash-aliases.

Setup

In ~/.bash_profile define

# /Users/MyUserName/wikipath defines the mounted wiki directory
alias starttiddly="docker run -d --name tiddlycontainer -p 127.0.0.1:10000:8080 -v /Users/MyUserName/wikipath:/var/lib/tiddlywiki mazzolino/tiddlywiki"
alias stoptiddly="docker container stop tiddlycontainer && docker container rm tiddlycontainer"

Usage

  1. Start a bash-terminal and invoke starttiddly to start the server
  2. Open your browser at http://localhost:10000 and work with tiddlywiki (the default login is user/wiki)
  3. After usage shutdown the container by invoking stoptiddly
Advertisements

Latex: Alignment of a fixed-width column in the tabular-environment

Based on the post even fixed-width columns can be aligned.

\documentclass{article}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[german]{babel}
\usepackage{array}
\begin{document}
% Centered fixed-width column
\newcolumntype{C}[1]{>{\centering\arraybackslash}m{#1}}
% Right-aligned fixed-width column
\newcolumntype{R}[1]{>{\rtab\arraybackslash}m{#1}}

\begin{tabular}{C{2cm}R{2cm}}
\hline
Ein etwas langer Text, der sicherlich umbrochen wird & a\\
\hline
oder kurz & b\\
\hline
\end{tabular}
\end{document}