Recherche avancée

Médias (0)

Mot : - Tags -/upload

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

Autres articles (31)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

Sur d’autres sites (6016)

  • Revision 193 : Fixed a bug causing invalid YAML output or even an flvmeta crash in the case of

    11 mai 2010, par marc.noirot

    Changed Paths :
     Modify /trunk/src/dump_yaml.c



    Fixed a bug causing invalid YAML output or even an flvmeta crash in the case of
    an invalid UTF-8 string in the metadata.

  • Typesetting

    9 juin 2010, par Mikko Koppanen — Imagick, PHP stuff

    Ever had the situation where you have a piece of string which you need to overlay on an image ? Maybe a situation where the area reserved for the string is known in pixels but you need to know the font size to fill most of the area ? Think no more !

    Here is a small example of how to fit a certain piece of a string on to an area of which you know the width and the height or only the width. The magic happens through the ImageMagick CAPTION : format. You can see from the example images how the parameters actually affect the image.

    1. < ?php
    2.  
    3. /* How wide is our image */
    4. $image_width = 200 ;
    5.  
    6. /* Give zero for autocalculating the height */
    7. $image_height = 200 ;
    8.  
    9. /* Specify the text */
    10. $text = "Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
    11.     Mauris lectus mi, mattis non, euismod vel, sagittis nec, ipsum." ;
    12.  
    13. /* Instanciate imagick */
    14. $im = new Imagick() ;
    15.  
    16. /* Create new image using caption : pseudo format */
    17. $im->newPseudoImage( $image_width, $image_height, "caption :" . $text ) ;
    18.  
    19. /* Put 1px border around the image */
    20. $im->borderImage( ’black’, 1, 1 ) ;
    21.  
    22. /* PNG format */
    23. $im->setImageFormat( "png")  ;
    24.  
    25. /* Output */
    26. header( "Content-Type : image/png" ) ;
    27. echo $im ;
    28.  
    29.  ?>

    Here is image with width 100 and height 0 :

    width_100_height_0.png

    Width 100 Height 50 :

    width_100_height_50.png

    Width 200 Height 200 (as you can see the font size is now larger) :

    width_200_height_200.png

  • FFmpeg compile for Android (configure, make)

    11 août 2013, par manutd

    I want to compile ffmpeg for Android ver.
    But everytime I try, I can't compile the source of ffmpeg.
    I think my configuration option may be invalid.

    I used this script for configure.

    #!/bin/sh
    NDK_PATH=$HOME/android-ndk-r8
    PREBUILT=$NDK_PATH/toolchains/arm-linux-androideabi-4.4.3/prebuilt/darwin-x86

    LDFLAGS="-Wl,-T,$PREBUILT/armelf_linux_eabi.x -Wl,-rpath-link=$NDK_PATH/platforms/android-8/arch-arm/usr/lib \
        -L$NDK_PATH/platforms/android-8/arch-arm/usr/lib -nostdlib $PREBUILT/lib/gcc/arm-linux-androideabi/4.4.3/crtbegin.o \
        $PREBUILT/lib/gcc/arm-linux-androideabi/4.4.3/crtend.o -lc -lm -ldl"
    COMMON_CONFIG="\
             ./configure --target-os=linux \
             --arch=arm \
             --enable-cross-compile \
             --cc=$PREBUILT/bin/arm-linux-androideabi-gcc \
             --as=$PREBUILT/bin/arm-linux-androideabi-gcc \
             --cross-prefix=$PREBUILT/bin/arm-linux-androideabi- \
             --sysinclude=$NDK_PATH/platforms/android-8/arch-arm/usr/include \
             --nm=$PREBUILT/bin/arm-linux-androideabi-nm \
             --extra-ldflags=\"$LDFLAGS\" \
             --extra-cflags=-I$NDK_PATH/platforms/android-8/arch-arm/usr/include \

    eval "$COMMON_CONFIG"
    if [ $? -ne 0 ]; then
     exit 1
    fi

    I have to give compiler a new header file path (by —extra-cflags) because when I typed 'make', compiler didn't know where are header files (like math.h, ctime.h)

    After configure using this scripts and type 'make', I got these error.

    CC  libavdevice/alldevices.o
    In file included from /Users/gyeongmingim/android-ndk-r8/platforms/android-8/arch-arm/usr/include/stdlib.h:42,
                from ./libavutil/common.h:35,
                from ./libavutil/avutil.h:126,
                from libavdevice/avdevice.h:22,
                from libavdevice/alldevices.c:22:
    /Users/gyeongmingim/android-ndk-r8/platforms/android-8/arch-arm/usr/include/strings.h:49: warning: redundant redeclaration of &#39;index&#39;
    /Users/gyeongmingim/android-ndk-r8/platforms/android-8/arch-arm/usr/include/string.h:47: note: previous declaration of &#39;index&#39; was here
    /Users/gyeongmingim/android-ndk-r8/platforms/android-8/arch-arm/usr/include/strings.h:50: warning: redundant redeclaration of &#39;strcasecmp&#39;
    /Users/gyeongmingim/android-ndk-r8/platforms/android-8/arch-arm/usr/include/string.h:57: note: previous declaration of &#39;strcasecmp&#39; was here
    /Users/gyeongmingim/android-ndk-r8/platforms/android-8/arch-arm/usr/include/strings.h:51: warning: redundant redeclaration of &#39;strncasecmp&#39;
    /Users/gyeongmingim/android-ndk-r8/platforms/android-8/arch-arm/usr/include/string.h:58: note: previous declaration of &#39;strncasecmp&#39; was here
    In file included from ./libavutil/internal.h:178,
                from ./libavutil/common.h:342,
                from ./libavutil/avutil.h:126,
                from libavdevice/avdevice.h:22,
                from libavdevice/alldevices.c:22:
    ./libavutil/libm.h:62: error: static declaration of &#39;lrint&#39; follows non-static declaration
    ./libavutil/libm.h:69: error: static declaration of &#39;lrintf&#39; follows non-static declaration
    ./libavutil/libm.h:76: error: static declaration of &#39;round&#39; follows non-static declaration
    ./libavutil/libm.h:90: error: static declaration of &#39;trunc&#39; follows non-static declaration
    make: *** [libavdevice/alldevices.o] Error 1

    What is the wrong ?
    Does my configuration have wrong info ? or any missing flag ?

    OS : Mac Lion
    Android-ndk ver : android-ndk-r8