Posts

Showing posts from April 4, 2019

Being both nonprivileged and root inside Docker container

Image
0 I want to use pandoc inside docker. The image looks like this: FROM debian:buster-slim RUN apt-get update && apt-get install -y pandoc texlive WORKDIR /home This is build.sh inside the project: cp *.ttf /usr/local/share/fonts/ && fc-cache; pandoc -o output.pdf input.md that I want to run like this: docker run --rm -t -v $(pwd):/home pandoc_container build.sh This results in output.pdf being owned by root on my host. When doing: docker run --user $(id -u) --rm -t -v $(pwd):/home pandoc_container build.sh instead, the file will be owned by me, but the font files can not be copied to that dir, due to missing write permissions. Adding RUN chmod a+w /usr/local/share/fonts/ to the Dockerfile solves this, but then the command fc-cache fails with a lot of failed to write cache er

Why does decimation make a system time variant?

Image
3 1 On Wikipedia I read this : "The Discrete Wavelet Transform, often used in modern signal processing, is time variant because it makes use of the decimation operation." Why does decimation makes system time variant? wavelet linear-systems share | improve this question edited 2 days ago Matt L. 49.3k 1 36 84 asked 2 days ago Sweeper 154 8