Recherche avancée

Médias (91)

Autres articles (77)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

Sur d’autres sites (7895)

  • Anomalie #4483 : Masquer le bouton Télécharger si Bigup est bien actif

    3 juin 2020

    J’ai fait un fork et une branche ici https://git.spip.net/RealET/bigup/src/branch/issue%234483

    J’ai pu fusionner cette branche avec mon fork (https://git.spip.net/RealET/bigup)
    Mais je n’ai pas accès à la demande de fusion de cette branche avec https://git.spip.net/spip/bigup

  • How do I specify the flutter-ffmpeg package in iOS Podfile ?

    26 août 2020, par Khoi Le

    Based on : this question,
I believe that they changed Podfiles such that this code (from a tutorial) :

    


    if name == 'flutter_ffmpeg'
  pod name+'/min-gpl-lts', :path => File.join(symlink, 'ios')
else
  pod name, :path => File.join(symlink, 'ios')


    


    and this code in the ffmpeg-flutter docs :
"Modify the default #Plugin Pods block as follows :"

    


    # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock&#xA;  # referring to absolute paths on developers&#x27; machines.&#xA;  system(&#x27;rm -rf .symlinks&#x27;)&#xA;  system(&#x27;mkdir -p .symlinks/plugins&#x27;)&#xA;  plugin_pods = parse_KV_file(&#x27;../.flutter-plugins&#x27;)&#xA;  plugin_pods.each do |name, path|&#xA;    symlink = File.join(&#x27;.symlinks&#x27;, &#x27;plugins&#x27;, name)&#xA;    File.symlink(path, symlink)&#xA;    if name == &#x27;flutter_ffmpeg&#x27;&#xA;        pod name&#x2B;&#x27;/<package>&#x27;, :path => File.join(symlink, &#x27;ios&#x27;)&#xA;    else&#xA;        pod name, :path => File.join(symlink, &#x27;ios&#x27;)&#xA;    end&#xA;  end&#xA;</package>

    &#xA;

    No longer work. This is what my current Podfile looks like. What do I add so that I can specify my flutter_ffmpeg as "/min-gpl-lts."

    &#xA;

    # Uncomment this line to define a global platform for your project&#xA;platform :ios, &#x27;9.3&#x27;&#xA;pod &#x27;Firebase/Auth&#x27;&#xA;pod &#x27;Firebase/Firestore&#x27;&#xA;pod &#x27;GoogleSignIn&#x27;&#xA;#pod &#x27;flutter_ffmpeg/min-gpl-lts&#x27; # when i uncomment this line, it says "multiple sources for dependency"&#xA;&#xA;# CocoaPods analytics sends network stats synchronously affecting flutter build latency.&#xA;ENV[&#x27;COCOAPODS_DISABLE_STATS&#x27;] = &#x27;true&#x27;&#xA;&#xA;project &#x27;Runner&#x27;, {&#xA;  &#x27;Debug&#x27; => :debug,&#xA;  &#x27;Profile&#x27; => :release,&#xA;  &#x27;Release&#x27; => :release,&#xA;}&#xA;&#xA;def flutter_root&#xA;  generated_xcode_build_settings_path = File.expand_path(File.join(&#x27;..&#x27;, &#x27;Flutter&#x27;, &#x27;Generated.xcconfig&#x27;), __FILE__)&#xA;  unless File.exist?(generated_xcode_build_settings_path)&#xA;    raise "#{generated_xcode_build_settings_path} must exist. If you&#x27;re running pod install manually, make sure flutter pub get is executed first"&#xA;  end&#xA;&#xA;  File.foreach(generated_xcode_build_settings_path) do |line|&#xA;    matches = line.match(/FLUTTER_ROOT\=(.*)/)&#xA;    return matches[1].strip if matches&#xA;  end&#xA;  raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"&#xA;end&#xA;&#xA;require File.expand_path(File.join(&#x27;packages&#x27;, &#x27;flutter_tools&#x27;, &#x27;bin&#x27;, &#x27;podhelper&#x27;), flutter_root)&#xA;&#xA;flutter_ios_podfile_setup&#xA;&#xA;target &#x27;Runner&#x27; do&#xA;  use_frameworks!&#xA;  use_modular_headers!&#xA;&#xA;  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))&#xA;end&#xA;&#xA;post_install do |installer|&#xA;  installer.pods_project.targets.each do |target|&#xA;    flutter_additional_ios_build_settings(target)&#xA;  end&#xA;end&#xA;

    &#xA;

    I have tried this Podfile with the suggestion of "forking" the function out :

    &#xA;

    # Uncomment this line to define a global platform for your project&#xA;platform :ios, &#x27;9.3&#x27;&#xA;pod &#x27;Firebase/Auth&#x27;&#xA;pod &#x27;Firebase/Firestore&#x27;&#xA;pod &#x27;GoogleSignIn&#x27;&#xA;&#xA;# CocoaPods analytics sends network stats synchronously affecting flutter build latency.&#xA;ENV[&#x27;COCOAPODS_DISABLE_STATS&#x27;] = &#x27;true&#x27;&#xA;&#xA;project &#x27;Runner&#x27;, {&#xA;  &#x27;Debug&#x27; => :debug,&#xA;  &#x27;Profile&#x27; => :release,&#xA;  &#x27;Release&#x27; => :release,&#xA;}&#xA;&#xA;def flutter_root&#xA;  generated_xcode_build_settings_path = File.expand_path(File.join(&#x27;..&#x27;, &#x27;Flutter&#x27;, &#x27;Generated.xcconfig&#x27;), __FILE__)&#xA;  unless File.exist?(generated_xcode_build_settings_path)&#xA;    raise "#{generated_xcode_build_settings_path} must exist. If you&#x27;re running pod install manually, make sure flutter pub get is executed first"&#xA;  end&#xA;&#xA;  File.foreach(generated_xcode_build_settings_path) do |line|&#xA;    matches = line.match(/FLUTTER_ROOT\=(.*)/)&#xA;    return matches[1].strip if matches&#xA;  end&#xA;  raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"&#xA;end&#xA;&#xA;require File.expand_path(File.join(&#x27;packages&#x27;, &#x27;flutter_tools&#x27;, &#x27;bin&#x27;, &#x27;podhelper&#x27;), flutter_root)&#xA;&#xA;flutter_ios_podfile_setup&#xA;&#xA;# Create this "fork" of flutter_install_ios_plugin_pods&#xA;def install_plugin_pods(ios_application_path = nil)&#xA;  # defined_in_file is set by CocoaPods and is a Pathname to the Podfile.&#xA;   ios_application_path ||= File.dirname(defined_in_file.realpath) if self.respond_to?(:defined_in_file)&#xA;   raise &#x27;Could not find iOS application path&#x27; unless ios_application_path&#xA; &#xA;   # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock&#xA;   # referring to absolute paths on developers&#x27; machines.&#xA; &#xA;   symlink_dir = File.expand_path(&#x27;.symlinks&#x27;, ios_application_path)&#xA;   system(&#x27;rm&#x27;, &#x27;-rf&#x27;, symlink_dir) # Avoid the complication of dependencies like FileUtils.&#xA; &#xA;   symlink_plugins_dir = File.expand_path(&#x27;plugins&#x27;, symlink_dir)&#xA;   system(&#x27;mkdir&#x27;, &#x27;-p&#x27;, symlink_plugins_dir)&#xA; &#xA;   plugins_file = File.join(ios_application_path, &#x27;..&#x27;, &#x27;.flutter-plugins&#x27;)&#xA;   plugin_pods = flutter_parse_plugins_file(plugins_file)&#xA;   plugin_pods.each do |name, path|&#xA;     symlink = File.join(symlink_plugins_dir, name)&#xA;     File.symlink(path, symlink)&#xA; &#xA;     # Changes relative to flutter_ffmpeg&#xA;     if name == &#x27;flutter_ffmpeg&#x27;&#xA;         pod name&#x2B;&#x27;/min-gpl-lts&#x27;, :path => File.join(&#x27;.symlinks&#x27;, &#x27;plugins&#x27;, name, &#x27;ios&#x27;)&#xA;     else&#xA;         pod name, :path => File.join(&#x27;.symlinks&#x27;, &#x27;plugins&#x27;, name, &#x27;ios&#x27;)&#xA;     end&#xA;   end&#xA; end&#xA;&#xA;target &#x27;Runner&#x27; do&#xA;  use_frameworks!&#xA;  use_modular_headers!&#xA;&#xA;  # flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))&#xA;  # this function ^ is specified as follows&#xA;  # def flutter_install_all_ios_pods(ios_application_path = nil)&#xA;  #   flutter_install_ios_engine_pod(ios_application_path)&#xA;  #   flutter_install_ios_plugin_pods(ios_application_path)&#xA;  # end&#xA;&#xA;  # use this subcall to do the first half of the above^ function&#xA;  flutter_install_ios_engine_pod File.dirname(File.realpath(__FILE__))&#xA;&#xA;  # use our "fork" to install the plug in pods (exactly the same as&#xA;  # the original function but with ffmpeg package specified)&#xA;  install_plugin_pods(File.realpath(__FILE__))&#xA;end&#xA;&#xA;post_install do |installer|&#xA;  installer.pods_project.targets.each do |target|&#xA;    flutter_additional_ios_build_settings(target)&#xA;  end&#xA;end&#xA;

    &#xA;

    But this gives me an error in Xcode's GeneratedPluginRegistrant.m : Module &#x27;apple_sign_in&#x27;not found. So I think the Podfile is not working.

    &#xA;

    I also tried this, where I pass File.dirname(File.realpath(__FILE__)) to the function install_plugin_pods :

    &#xA;

    # Uncomment this line to define a global platform for your project&#xA;platform :ios, &#x27;9.3&#x27;&#xA;pod &#x27;Firebase/Auth&#x27;&#xA;pod &#x27;Firebase/Firestore&#x27;&#xA;pod &#x27;GoogleSignIn&#x27;&#xA;&#xA;# CocoaPods analytics sends network stats synchronously affecting flutter build latency.&#xA;ENV[&#x27;COCOAPODS_DISABLE_STATS&#x27;] = &#x27;true&#x27;&#xA;&#xA;project &#x27;Runner&#x27;, {&#xA;  &#x27;Debug&#x27; => :debug,&#xA;  &#x27;Profile&#x27; => :release,&#xA;  &#x27;Release&#x27; => :release,&#xA;}&#xA;&#xA;def flutter_root&#xA;  generated_xcode_build_settings_path = File.expand_path(File.join(&#x27;..&#x27;, &#x27;Flutter&#x27;, &#x27;Generated.xcconfig&#x27;), __FILE__)&#xA;  unless File.exist?(generated_xcode_build_settings_path)&#xA;    raise "#{generated_xcode_build_settings_path} must exist. If you&#x27;re running pod install manually, make sure flutter pub get is executed first"&#xA;  end&#xA;&#xA;  File.foreach(generated_xcode_build_settings_path) do |line|&#xA;    matches = line.match(/FLUTTER_ROOT\=(.*)/)&#xA;    return matches[1].strip if matches&#xA;  end&#xA;  raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"&#xA;end&#xA;&#xA;require File.expand_path(File.join(&#x27;packages&#x27;, &#x27;flutter_tools&#x27;, &#x27;bin&#x27;, &#x27;podhelper&#x27;), flutter_root)&#xA;&#xA;flutter_ios_podfile_setup&#xA;&#xA;# Create this "fork" of flutter_install_ios_plugin_pods&#xA;def install_plugin_pods(ios_application_path = nil)&#xA;  # defined_in_file is set by CocoaPods and is a Pathname to the Podfile.&#xA;   ios_application_path ||= File.dirname(defined_in_file.realpath) if self.respond_to?(:defined_in_file)&#xA;   raise &#x27;Could not find iOS application path&#x27; unless ios_application_path&#xA; &#xA;   # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock&#xA;   # referring to absolute paths on developers&#x27; machines.&#xA; &#xA;   symlink_dir = File.expand_path(&#x27;.symlinks&#x27;, ios_application_path)&#xA;   system(&#x27;rm&#x27;, &#x27;-rf&#x27;, symlink_dir) # Avoid the complication of dependencies like FileUtils.&#xA; &#xA;   symlink_plugins_dir = File.expand_path(&#x27;plugins&#x27;, symlink_dir)&#xA;   system(&#x27;mkdir&#x27;, &#x27;-p&#x27;, symlink_plugins_dir)&#xA; &#xA;   plugins_file = File.join(ios_application_path, &#x27;..&#x27;, &#x27;.flutter-plugins&#x27;)&#xA;   plugin_pods = flutter_parse_plugins_file(plugins_file)&#xA;   plugin_pods.each do |name, path|&#xA;     symlink = File.join(symlink_plugins_dir, name)&#xA;     File.symlink(path, symlink)&#xA; &#xA;     # Changes relative to flutter_ffmpeg&#xA;     if name == &#x27;flutter_ffmpeg&#x27;&#xA;         pod name&#x2B;&#x27;/min-gpl-lts&#x27;, :path => File.join(&#x27;.symlinks&#x27;, &#x27;plugins&#x27;, name, &#x27;ios&#x27;)&#xA;     else&#xA;         pod name, :path => File.join(&#x27;.symlinks&#x27;, &#x27;plugins&#x27;, name, &#x27;ios&#x27;)&#xA;     end&#xA;   end&#xA; end&#xA;&#xA;target &#x27;Runner&#x27; do&#xA;  use_frameworks!&#xA;  use_modular_headers!&#xA;&#xA;  # flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))&#xA;  # this function ^ is specified as follows&#xA;  # def flutter_install_all_ios_pods(ios_application_path = nil)&#xA;  #   flutter_install_ios_engine_pod(ios_application_path)&#xA;  #   flutter_install_ios_plugin_pods(ios_application_path)&#xA;  # end&#xA;&#xA;  # use this subcall to do the first half of the above^ function&#xA;  flutter_install_ios_engine_pod File.dirname(File.realpath(__FILE__))&#xA;&#xA;  # use our "fork" to install the plug in pods (exactly the same as&#xA;  # the original function but with ffmpeg package specified)&#xA;  install_plugin_pods File.dirname(File.realpath(__FILE__))&#xA;end&#xA;&#xA;post_install do |installer|&#xA;  installer.pods_project.targets.each do |target|&#xA;    flutter_additional_ios_build_settings(target)&#xA;  end&#xA;end&#xA;

    &#xA;

    However, this gives me a Error running pod install. I run flutter clean between builds.

    &#xA;

  • Nomenclature #4846 : Commentaire de code contenant SPIP 3.3 et _LEGACY_MODE_IMAGE_DOCUMENT

    11 juillet 2021

    b b a écrit :

    Tu payes ta PR ?

    Ben justement, je peine vraiment à faire des PR sur le code de SPIP parce qu’il faut faire un fork.
    Et que j’ai toujours pas compris comment gérer plusieurs PR/fork en même temps.

    Bref, c’est une ligne de remarque, je doute que ça mérite une PR