Recherche avancée

Médias (91)

Autres articles (30)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

Sur d’autres sites (4856)

  • rename files for language_REGION according to the standard ISO_3166-1 (http://en.wikipedia.org/wiki/ISO_3166-1), for Taiwan tha language is Chinese (zh) and the region is Taiwan (TW)

    6 septembre 2012, par Coto

    m localization/messages_pt_BR.js m localization/messages_pt_PT.js m localization/messages_zh_TW.js rename files for language_REGION according to the standard ISO_3166-1 (http://en.wikipedia.org/wiki/ISO_3166-1), for Taiwan tha language is Chinese (zh) and the region is Taiwan (...)

  • Rails 3.1 asset pipeline needs restart if new file created ?

    26 août 2011, par Reed G. Law

    I have a server that's taking video clips with a webcam and placing them in #{Rails.root}/app/assets/videos. The problem is I can't see newly created video clips until the server is restarted. Is there a workaround for this ?

    Here's the code in the controller :

    @file_name = Time.now.strftime("%Y-%m-%d_%H-%M-%S-%p") + ".mp4"
    system("ffmpeg -f video4linux2 -s 320x240 -t 10 -i /dev/video0
     #{Rails.root.to_s}/app/assets/videos/#{@file_name}")

    And in the view :

    <video src="/assets/&lt;%= @file_name %>" width="320" height="240">
    Your browser does not support the video tag.
    </video>
  • Gitlab CI - Combine two docker images into a single stage

    12 mars 2024, par seal.r00t

    I have this gitlab-ci.yaml file. Using this file I execute my k6.io load test from pipeline. Now I need to execute some FFmpeg commands during the run stage, and my question is how do I make the FFmpeg tool available to the run stage. Do I need to grab the image that has FFmpeg and add it next to grafa/k6 or something else ?

    &#xA;

    default:&#xA;  tags:&#xA;    - default&#xA;&#xA;workflow:&#xA;  name: "$PIPELINE_NAME"&#xA;&#xA;stages:&#xA;  - lint&#xA;  - setup&#xA;  - run&#xA;  - teardown&#xA;&#xA;lint:js:&#xA;  stage: lint&#xA;  image:&#xA;    name: tmknom/prettier&#xA;    entrypoint:&#xA;      - ""&#xA;  rules:&#xA;    - if: &#x27;$CI_PIPELINE_SOURCE == "push"&#x27;&#xA;      when: always&#xA;    - if: &#x27;$CI_PIPELINE_SOURCE == "schedule"&#x27;&#xA;      when: always&#xA;  script:&#xA;    - prettier --check &#x27;**/*.js&#x27;&#xA;&#xA;setup:&#xA;  stage: setup&#xA;  image: alpine&#xA;  rules:&#xA;    - if: &#x27;$CI_PIPELINE_SOURCE == "web"&#x27;&#xA;      when: always&#xA;    - if: &#x27;$CI_PIPELINE_SOURCE == "schedule"&#x27;&#xA;      when: always&#xA;  script:&#xA;    - echo &#x27;set up!&#x27;&#xA;&#xA;run:&#xA;  stage: run&#xA;  environment:&#xA;    name: run&#xA;  image:&#xA;    name: grafana/k6:latest&#xA;    entrypoint: [ "" ]&#xA;  artifacts:&#xA;    when: always&#xA;    paths:&#xA;      - summaries/&#xA;  rules:&#xA;    - if: &#x27;$CI_PIPELINE_SOURCE == "web"&#x27;&#xA;      when: always  # Prevent pipeline run for push event&#xA;    - if: &#x27;$CI_PIPELINE_SOURCE == "schedule"&#x27;&#xA;      when: always&#xA;  script:&#xA;    - ./run.sh&#xA;&#xA;teardown:&#xA;  stage: teardown&#xA;  image: alpine&#xA;  rules:&#xA;    - if: &#x27;$CI_PIPELINE_SOURCE == "web"&#x27;&#xA;      when: always&#xA;    - if: &#x27;$CI_PIPELINE_SOURCE == "schedule"&#x27;&#xA;      when: always&#xA;  script:&#xA;    - echo &#x27;tear down!&#x27;&#xA;

    &#xA;

    I tried adding two name tags under the run stage for using two images but it didn't work and returned a syntax error.

    &#xA;

    run:&#xA;  stage: run&#xA;  environment:&#xA;    name: run&#xA;  image:&#xA;    name: grafana/k6:latest&#xA;    name: linuxserver/ffmpeg&#xA;

    &#xA;