Spring Boot PropertiesLauncher and external JARs

A sample application with some run-scripts at github shows you different approaches.

Advertisements

Dockerisierte Latex-Vorlagen

Nützliche Latex-Vorlagen für einen Lebenslauf sowie ein Bewerbungsanschreiben gibt es jetzt unter https://github.com/markiewb/dockerisierterLatexLebenslauf

Das Schöne daran ist die Nutzung von Docker. Auf diese Weise nutzt man Latex in einem isolierten Container und verunreinigt sich sein System nicht mit einer Latex-Installation. Meinen vorheriger Artikel dazu: Running Latex using Docker

How to Stream a DVD from Mac to Android using VLC 3.0.0

Here is my configuration to stream a DVD from VLC on Mac High Sierra to a VLC client app on Android (f.e. 2017 Kindle HD10).

2018-02-13_00-40-222018-02-13_00-40-44

  • HTTP
  • MPEG PS <- this is important if you want to get subtitles

Once you started streaming you can connect the VLC client app to the stream using the hosts IP address. For example http://192.168.178.35:1234.

Now even subtitles and the audio lanes can be chosen in the streaming client app. Note that changing the subtitles takes several seconds to take effect.

Tested using version 3.0.0 on server and client side.

Running Latex using Docker

A simple way to compile your latex files without installing a latex-distribution is the usage of a docker-container. Thanks to https://github.com/blang/latex-docker it is easier than ever.

Within your directory with your article.tex invoke:

docker run --rm -i --user="$(id -u):$(id -g)" --net=none -v "$PWD":/data blang/latex xelatex article.tex

The current directory is mounted into the container and thus the latex executable within the container can access the source files (xelatex article.tex) and the results are placed in the current directory too.

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

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}