Skip to content

10th February 2022

Computer Science

GNULinux

FFmpeg

  • New: Concatenate and convert files.

    ffmpeg -i "concat:1.ogg|2.ogg" out.mp3
    

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>