6th Week of 2022
Introduction⚑
-
New: Xprop.
You can use
xprop
to get the name and details of any running graphic application by clicking on it.
Computer Science⚑
GNULinux⚑
FFmpeg⚑
-
New: Concatenate and convert files.
ffmpeg -i "concat:1.ogg|2.ogg" out.mp3
-
New: Cropping.
ffmpeg -ss 30 -t 70 -i inputfile.mp3 outputfile.mp3
-ss
refers to the starting time.-t
is the duration after the starting time to consider.
Programming⚑
Jinja⚑
-
New: Accessing the parent Loop.
The special loop variable always points to the innermost loop. If it’s desired to have access to an outer loop it’s possible to alias it:
<table> {% for row in table %} <tr> {% set rowloop = loop %} {% for cell in row %} <td id="cell-{{ rowloop.index }}-{{ loop.index }}">{{ cell }}</td> {% endfor %} </tr> {% endfor %} </table>
NGINX⚑
-
New: Support named routes.
To support named routes (e.g.,
APP_HOST/some/route
), add the following configuration to the host configuration file:location / { try_files $uri $uri/ /index.html; }
Otherwise NGINX will return 404 when queried for a named route since the corresponding file won't exist in the root directory.