commit nocturne

This commit is contained in:
tTh 2022-10-05 06:08:23 +02:00
parent 9e8a6b3411
commit d8369bef0a
7 changed files with 47 additions and 41 deletions

24
chap/Arduino.tex Normal file
View File

@ -0,0 +1,24 @@
\chapter{Arduino}
\label{chap:arduino} \index{Arduino}
% ---------------------------------------------------------------------------
\section{Installation de l'IDE}\index{IDE}
Elle semble un peu plus \textit{tricky} que celle de son cousin Processing.
Pour commencer, allez donc chercher le logiciel dans une version adaptée
à votre système dans \texttt{http://arduino.cc/}.
% ---------------------------------------------------------------------------
\section{Hello blinky}
La première étape est évident : faire clignoter une LED\index{LED}
% ---------------------------------------------------------------------------
\section{Beep Beep}
La seconde étape ne l'est pas moins.
% ---------------------------------------------------------------------------

View File

@ -45,6 +45,10 @@ Extraire le son d'une vidéo Youtube :
\texttt{ffmpeg -i fichiervideo.flv -vn -ar 44100 -ac 2 -f wav fichierson.wav}
Extraire les images individuelles :
\texttt{ffmpeg -i foo.avi -r 1 -s WxH -f image2 foo-\%03d.jpeg}
\texttt{mplayer -vo png -ss 3:46 -frames 20 stairs.mp4}
\# Write out 20 png format frames from a video starting at 3 minutes, 46 seconds.
@ -161,7 +165,17 @@ metadata about audio or video files.
\end{quote}
% --------------------------------------------------------------------
\section{MPV} \index{MPV}
\begin{quote}
mpv is a media player based on MPlayer and mplayer2. It supports a wide
variety of video file formats, audio and video codecs, and subtitle
types. Special input URL types are available to read input from a vari
ety of sources other than disk files. Depending on platform, a variety
of different video and audio output methods are supported.
\end {quote}
% --------------------------------------------------------------------
\section{Autres trucs}

View File

@ -34,6 +34,9 @@ en erreur 403\index{403} ?\linebreak
\texttt{\# lighttpd-enable-mod dir-listing} et
\texttt{\# service lighttpd force-reload}, voilà.
Question : comment forcer le \texttt{Content-Type} pour un type particulier
de fichier ? Par exemple text/plain pour les fichiers \texttt{.POV} ?
% ==============================================================

View File

@ -7,12 +7,13 @@ outfile="$2"
texte="$3"
txtfont=" -font Utopia "
fontsize=" -pointsize 96 -kerning 4 "
color=" -fill Gray20 -stroke White "
colors=" -fill Gray20 -stroke White "
txtopts=" -antialias -alpha off $txtfont "
convert $infile \
${txtopts} \
${txtfont} ${fontsize} \
${color} \
${colors} \
-gravity South \
-annotate +0+85 "${texte}" \
$outfile

View File

@ -1,5 +0,0 @@
# Outils divers
## non ascii ?

View File

@ -1,33 +0,0 @@
/*
* nonascii.c
*
* new Mon 03 Oct 2022 05:42:42 PM CEST
*/
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
int input, linenum, count;
linenum = 1;
count = 0;
while (EOF != (input=getc(stdin))) {
if ('\n' == input) linenum++;
if ((input < 0) || (input>127)) {
fprintf(stderr, "non ascii 0x%x line %d\n",
input, linenum);
count++;
}
}
if (count) {
fprintf(stderr, "%d non-ascii chars\n", count);
exit(1);
}
return 0;
}

View File

@ -118,6 +118,7 @@ en ligne sur le site du Tetalab. Your mileage may vary\dots
\input{chap/streaming}
\input{chap/backups}
\input{chap/processing}
\input{chap/video}
\input{chap/graphisme}
\input{chap/gnuplot}
@ -127,6 +128,7 @@ en ligne sur le site du Tetalab. Your mileage may vary\dots
\input{chap/X11}
\input{chap/Fortran}
\input{chap/scripting}
\input{chap/Arduino}
% \input{chap/GMP}
\input{chap/Python}
@ -181,7 +183,7 @@ parcouru cet ouvrage, et constaté à quel point il est en friche.
Beaucoup de chapitres sont vraiment incomplets, voire cruellement
vides, ou même obsolètes à un niveau pitoyable.
Mais les choses vont évoluer, peut-être, un jour\dots
Mais les choses vont évoluer, peut-être, un jour, on sait pas quand\dots
\printindex