
Recherche avancée
Autres articles (95)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Automated installation script of MediaSPIP
25 avril 2011, parTo 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 (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir
Sur d’autres sites (10650)
-
Revised FATE Test Spec System
9 juin 2010, par Multimedia Mike — FATE ServerFATE involves some database tables that define the test specifications. Like everything else in FATE, the concept could use some improvement. After I prototyped an improved, multithreaded testing client, the next logical revision seemed to be the test spec system.
History
The test spec system has been handled by a single table that includes an FFmpeg command line (with a few possible modifiers thrown in), an integer ID, a human-friendly ID, a description, the expected command line return code, the expected command output, a maximum runtime, and a Boolean to indicate whether the test is to be considered active.Adjunct to this test database is a large corpus of test media named the FATE suite.
At first, the FATE testing script used a direct MySQL database protocol to query the test specs from the server before every build/test cycle. I soon realized this was ludicrously inefficient since the test specs don’t change that often. So I cached the tests in a static file to be retrieved via HTTP, first in Python’s "pickled" (serialized) format, then in an SQLite database.
Planned Upgrades
There are 2 major features I would like to build into the system going forward :- The ability to version the entire suite so that it’s possible to test old branches of FFmpeg
- Another database field to indicate which, if any, other test specs must be executed before this spec can be executed
I think I will take this opportunity to switch the test cache serialization format to JSON. I switched from Python pickling to SQLite because the latter was more portable between languages. JSON has that same benefit. Further, working with JSON data doesn’t require a round trip to disk (i.e., want to generate an SQLite database for sending via HTTP ? It needs to go onto disk first. It’s possible to create and manipulate a database entirely in memory but not fetch the bits).
Things To Research
- Pondering how version control systems operate and what they have to teach regarding how to version this data (including the question of whether I can just use an existing version control mechanism instead of creating my own system)
- Efficient caching mechanism
- Tagging test specs for alternate purposes such as longevity testing
- Learn about web form programming in the 21st century so that it’s not quite as painful to maintain the system.
Preliminary Versioning Concept
Here is one approach I am thinking of : Create test groups. Each test spec is assigned to at least one test group. I can think of at least 2 groups : functional (the base test set in existence that validates functionality) and profiling (the projected test set that will be used for ongoing performance and memory profiling). The web frontend will allow for the creation of labels that will apply to a single group. Doing so will apply that label to all active tests in the group. -
Evolution #4036 (Nouveau) : [Compresseur] Rechercher la présence événtuelle de .min.(js|css) dans ...
31 octobre 2017, par placido .Je propose un amélioration de la fonction minifier, lorqu’elle est appliquée à un fichier.
La plupart des plugins qui embarquent des bibliothèques tierces fournissent leur sources en format avec commentaires (plugin.js) et minifié (plugin.min.js).
On peut parler de convention tacite concernant l’extension ".min.js"Le traitement dérogatoire serait le suivant :
A : La source a-t-elle une extension min.(css|js) ?
Oui : on renvoie tel quel
Non : ->BB : Existe-t-il un fichier nommé source.min.(css|js) dans le même répertoire que la source ?
Oui : on renvoit le fichier trouvé
Non : Alors on lance le compresseur sur la source et on renvoieJe vois 2 avantages à cette évolution :
- Un léger gain de performance : on économise un processus de compression superflu en échange d’une recherche de fichier dans un dossier unique (même pas besoin de find_in_path)
- On se fie sur la version minifiée livrée par le tiers (supposée fiable), et ainsi on évite d’éventuels problèmes qui peuvent surgir lorsque qu’on applique le compresseur sur un fichier déjà minifié.Vos avis ?
-
Evolution #3822 : ventiler les CSS concernant les formulaires de spip.css -> form.css
14 août 2017, par tetue tetueEuh, pas certain. La feuille spip.css a vocation a centraliser les styles spécifiques associés au code généré par SPIP. Bref, des styles dont il est difficile de se passer, si on veut que les documents insérés par SPIP restent correctement alignés, que les messages des formulaires SPIP soient correctement stylés, etc.
Tandis que dans form.css chacun·e met ce qu’il veut pour les formulaires, qui Bootstrap, qui KNACSS, qui juste un reset des forms (comme actuellement proposé par SPIP)…
Les styles spip.css viennent en surcharge et c’est important qu’ils passent après d’une part, et qu’ils soient isolés pour pouvoir les conserver (ou les supprimer) facilement, sans risquer de les écraser par erreur.