Recherche avancée

Médias (0)

Mot : - Tags -/clipboard

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (32)

  • Monitoring de fermes de MediaSPIP (et de SPIP tant qu’à faire)

    31 mai 2013, par

    Lorsque l’on gère plusieurs (voir plusieurs dizaines) de MediaSPIP sur la même installation, il peut être très pratique d’obtenir d’un coup d’oeil certaines informations.
    Cet article a pour but de documenter les scripts de monitoring Munin développés avec l’aide d’Infini.
    Ces scripts sont installés automatiquement par le script d’installation automatique si une installation de munin est détectée.
    Description des scripts
    Trois scripts Munin ont été développés :
    1. mediaspip_medias
    Un script de (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

Sur d’autres sites (6462)

  • Remove (defined _MSC_VER) from cpp workaround

    9 décembre 2015, par Erik de Castro Lopo
    Remove (defined _MSC_VER) from cpp workaround
    

    Patch-from : lvqcl <lvqcl.mail@gmail.com>

    • [DH] include/FLAC++/decoder.h
    • [DH] include/FLAC++/encoder.h
  • Evolution #4339 (Nouveau) : Relancer les inscriptions en attente

    22 mai 2019, par b b

    Suite à #4073 et les révisions associées, les admins ont accès à la liste des auteurs dont l’inscription est en attente de validation, ce qui est très bien. Mais, on ne peut pas relancer le mail d’inscription à un auteur ou à tous ceux en attente, ce qui est moins bien.

    En cherchant comment relancer une dizaine d’auteurs en attente (à cause d’un problème passager d’envoi d’email), je me suis rendu compte que c’est une situation dont il n’est pas facile de se tirer. En effet, les auteurs en questions ne peuvent pas tenter de se réinscrire avec le même email car cela génère une erreur dans le form d’inscription (normal ça ferait doublon). Je vais revenir sur ce point plus bas.

    J’ai donc cherché une solution pour relancer tous ces auteurs en attente et je suis tombé sur r17837 qui introduit l’option force_nouveau à la fonction action_inscrire_auteur_dist(). À noter que cette option n’est utilisée nul part dans le core, ni sur les plugins de la zone, c’est donc l’occasion de s’en servir :) J’en suis arrivé à ce code très simple qui permet de relancer tous les auteurs en attente de validation, statut = nouveau donc :

    1. <span class="CodeRay">include_spip(<span class="string"><span class="delimiter">'</span><span class="content">action/inscrire_auteur</span><span class="delimiter">'</span></span>);
    2. <span class="local-variable">$nouveaux</span> = sql_allfetsel(<span class="string"><span class="delimiter">'</span><span class="content">prefs, email, nom</span><span class="delimiter">'</span></span>, <span class="string"><span class="delimiter">'</span><span class="content">spip_auteurs</span><span class="delimiter">'</span></span>, <span class="string"><span class="delimiter">"</span><span class="content">statut='nouveau'</span><span class="delimiter">"</span></span>);
    3. <span class="keyword">while</span> (<span class="local-variable">$row</span> = <span class="predefined">array_pop</span>(<span class="local-variable">$nouveaux</span>)) {
    4.     action_inscrire_auteur_dist(<span class="local-variable">$row</span>[<span class="string"><span class="delimiter">'</span><span class="content">prefs</span><span class="delimiter">'</span></span>], <span class="local-variable">$row</span>[<span class="string"><span class="delimiter">'</span><span class="content">email</span><span class="delimiter">'</span></span>], <span class="local-variable">$row</span>[<span class="string"><span class="delimiter">'</span><span class="content">nom</span><span class="delimiter">'</span></span>], <span class="predefined">array</span>(<span class="string"><span class="delimiter">'</span><span class="content">force_nouveau</span><span class="delimiter">'</span></span> => <span class="predefined-constant">true</span>));
    5. }
    6. </span>

    Télécharger

    Je pense que ça serait pas mal d’en faire une action pour relancer un auteur précis, ou tous les auteurs en attente si pas d’id_auteur passé en argument, puis d’ajouter un bouton action dans la colonne de navigation des pages ?exec=auteurs et ?exec=auteur&#38;id_auteur= si l’auteur en cours a pour statut nouveau.

    Pour en revenir au formulaire d’inscription, il serait malin (à vérifier) que celui-ci utilise l’option force_nouveau quand un auteur dont le statut est nouveau tente de s’inscrire une nouvelle fois avec le même email, plutôt que de lui envoyer une erreur parce que son mail est déjà présent en base.

    Vos avis sur la question ?

  • SOLVED - Compiling FFMPEG on Windows with Cywin and NDK r5

    19 mai 2012, par protectedmember

    This isn't a question - it's an answer for alll of you who have been facing the same problems as I have. I've been trying to compile this thing for a while now and I know of the numerous posts floating around the internet offering help. I have read and tried most of the suggestions and wanted to colate my success into this single post for others to benefit from.

    Since I don't have a blog, I thought it wouldn't hurt to post on here instead.

    I have managed to compile FFMPEG 0.10.3 (Freedom) on Windows 7 (32 bit) using NDK r5 and Cygwin. The steps :

    1 - Download/install Cygwin in the root of your C drive. I'm not going to give instructions on this, it's simple enough and there are plenty of tutorials on this.

    2 - Download NDK r5 from here and extract to the root of your C drive.

    3 - Download FFMPEG 0.10.3 from here and extract to the root of your C drive.

    4 - Open the file 'configure' in the root of the FFMPEG directory in a text editor.

    5 - Comment out lines 2073, 2074 and 2075.

    6 - Below 2075, add the following line :

    TMPDIR=c :/cygwin/tmp

    7 - Download this script (thankyou roman10) and place it inside your FFMPEG root directory. Rename the file to

    build_android.sh

    8 - Open the script in a text editor and edit line 17 to read

    c :/android-ndk-r5

    9 - Click start > run and type "bash" (without the speech marks) and press enter.

    10 - Type the following and press enter :

    cd /cygdrive/c/ffmpeg-0.10.3

    11 - Type the following and press enter :

    ./build_android.sh

    12 - Sit back and wait... libffmpeg.so will soon appear in your "c :\ffmpeg-0.10.3\android\" directory (where is defined in the bottom of the script from roman10's blog). The default architecture is armv7-a.

    The script from roman10's blog will actually compile quite a large shared object (.so) file. The compiler flags can be adjusted to suit your needs in the script from roman10's blog.

    I hope this helps,

    P.