
Recherche avancée
Autres articles (88)
-
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...) -
Participer à sa traduction
10 avril 2011Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
Actuellement MediaSPIP n’est disponible qu’en français et (...) -
Gestion des droits de création et d’édition des objets
8 février 2011, parPar défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;
Sur d’autres sites (12525)
-
Creating a convertAll() function that converts all .filetype in working directory
5 janvier 2019, par RisviltsovI seem to not know proper bash syntax ; despite this, I’ve tried to create a tool that changes the dimensions of all files of a ffmpeg-accepted filetype in the working directory and converts it to another ffmpeg-accepted filetype. In this instance, this tool converts all .webm files over 1080x720 into 1080x-1 or -1x720 .mp4 files. If the .webm file is under 1080x720, the new .mp4 file will have the same dimensions.
However, there’s a wrench in the tool.
convertAll () {
local wantedWidth = 1080
local wantedHeight = 720
for i in *.webm; do
local newWidth = $i.width
local newHeight = $i.height
until [$newWidth <= $wantedWidth && $newHeight <= $wantedHeight]; do
if [$videoWidth > $wantedWidth]; then
newHeight = $newWidth*($wantedWidth/$newWidth)
newWidth = $newWidth*($wantedWidth/$newWidth)
fi
if [$videoHeight > $wantedHeight]; then
newWidth = $newWidth*($wantedHeight/$newHeight)
newHeight = $newHeight*($wantedHeight/$newHeight)
fi
done
ffmpeg -i "$i" -vf scale=$newWidth:$newHeight "${i%.*}.mp4";
done
echo "All files have been converted."
}What this returns is a bunch of lines that look like this :
bash: [: missing ']'
bash: [: missing ']'
bash: =: No such file or directoryMy best guess is that BASH can’t do mathematics, and that I’m declaring and editing my variables incorrectly.
I’d like some input on this --- my lack of experience is really getting me here.
-
Revision 82959 : calcul des scores : on pondère le nombre d’occurence par une fonction ...
11 juin 2014, par cedric@… — Logcalcul des scores : on pondère le nombre d’occurence par une fonction inverse a la longueur du contenu (avoir 10 occurences dans un contenu fleuve n’est pas forcément plus pertinent que 2 occurences dans un contenu court)
Cette modification n’intervient que si pas de fulltext ou si on a activé l’option _FULLTEXT_FIELD_SCORE -
Evolution #3427 (Nouveau) : Afficher le poids total en plus du nombre de documents
14 avril 2015, par b bJuste une petite proposition d’amélioration pour la page
?exec=documents
: dans leh2
avant la liste, en plus du nombre total de documents, afficher aussi le poids total des documents.Un truc dans le style :