
Recherche avancée
Médias (1)
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (57)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...) -
Installation en mode ferme
4 février 2011, parLe 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 (10315)
-
I want the mp4 file shooting date to be the xml file name
21 novembre 2019, par re6In Windows 10 environment, I would like to change the name of both “file with extension mp4” and “file with extension xml” to the shooting date of mp4 file.
C0001.MP4
C0001M01.XML
C0002.MP4
C0002M01.XMLSpecifically, I want to change the file name as follows.
2019-10-23_13-10-32.MP4
2019-10-23_13-10-32.XML
2019-10-23_13-10-49.MP4
2019-10-23_13-10-49.XML
I tried to think that using the ext option would give me the expected result, but I didn’t get the expected result.
First time
C:\Users\user>exiftool "-FileNamehoge/C0001M01.XML
Warning: No writable tags set from C:/hoge/C0001M01.XML
Warning: [minor] Error 3 placing ::NonRealTimeMetaAudioFormatAudioRecPortTrackDst in structure or list - C:/hoge/C0002M01.XML
Warning: No writable tags set from C:/hoge/C0002M01.XML
1 directories scanned
0 image files updated
2 image files unchangedSecond time
C:\Users\user>exiftool "-FileNamehoge/C0001.MP4
Warning: [minor] Error 3 placing ::NonRealTimeMetaLtcChangeTableLtcChangeStatus in structure or list - C:/hoge/C0001M01.XML
Warning: No writable tags set from C:/hoge/C0001M01.XML
Warning: [minor] The ExtractEmbedded option may find more tags in the movie data - C:/hoge/C0002.MP4
Warning: [minor] Error 3 placing ::NonRealTimeMetaAudioFormatAudioRecPortPort in structure or list - C:/hoge/C0002M01.XML
Warning: No writable tags set from C:/hoge/C0002M01.XML
1 directories scanned
2 image files updated
2 image files unchanged -
Berlin website owners need consent for using Google Analytics
19 novembre 2019, par Joselyn Khor — Uncategorized -
Anomalie #4401 (Nouveau) : Erreur bloquante avec sql_showtable() en sqlite
20 novembre 2019, par tcharlss (*´_ゝ`)Glop,
(Constaté sur un SPIP 3.2.4)
La fonction spip_sqlite_showtable() renvoie un tableau incorrect pour `field` dans certains cas (cf. les clés `6` et `4` ci-dessous) :
var_dump(sql_showtable(’spip_billets_types’)) ;
array (size=2)
’field’ =>
array (size=18)
’id_billets_type’ => string ’INTEGER NOT NULL’ (length=16)
’id_billetterie’ => string ’bigint ( 21 ) NOT NULL DEFAULT 0’ (length=32)
’titre’ => string ’text NOT NULL DEFAULT "" COLLATE NOCASE’ (length=39)
’descriptif’ => string ’text NOT NULL DEFAULT "" COLLATE NOCASE’ (length=39)
’quota’ => string ’int ( 11 ) NOT NULL DEFAULT 0’ (length=29)
’prix’ => string ’decimal ( 20 ’ (length=13)
6 => string ’) NOT NULL DEFAULT 0’ (length=20)
’taxe’ => string ’decimal ( 4 ’ (length=12)
4 => string ’) NOT NULL DEFAULT 0’ (length=20)
’selection_min’ => string ’int ( 11 ) NOT NULL DEFAULT 0’ (length=29)
’selection_max’ => string ’int ( 11 ) NOT NULL DEFAULT 0’ (length=29)
’date_fin’ => string ’datetime NOT NULL DEFAULT "0000-00-00 00:00:00"’ (length=47)
’date_debut’ => string ’datetime NOT NULL DEFAULT "0000-00-00 00:00:00"’ (length=47)
’maj’ => string ’TIMESTAMP’ (length=9)
’composition’ => string ’varchar ( 255 ) NOT NULL DEFAULT ’’ COLLATE NOCASE’ (length=50)
’composition_lock’ => string ’tinyint ( 1 ) NOT NULL DEFAULT 0’ (length=32)
’rang’ => string ’int NOT NULL DEFAULT 0’ (length=22)
’id_profil’ => string ’bigint(21) NOT NULL DEFAULT 0’ (length=29)
’key’ =>
array (size=2)
’PRIMARY KEY’ => string ’id_billets_type’ (length=15)
’KEY id_billetterie’ => string ’CREATE INDEX `spip_billets_types_id_billetterie` ON `spip_billets_types` (
`id_billetterie`
)’ (length=94)Et voici ce qu’on devrait avoir, selon la vraie déclaration des champs :
’field’=> array( ’id_billets_type’ => ’bigint(21) NOT NULL’, ’id_billetterie’ => ’bigint(21) NOT NULL DEFAULT 0’, ’rang’ => ’int NOT NULL DEFAULT 0’, ’titre’ => ’text NOT NULL DEFAULT ""’, ’descriptif’ => ’text NOT NULL DEFAULT ""’, ’quota’ => ’int(11) NOT NULL DEFAULT 0’, ’prix’ => ’decimal(20,6) NOT NULL DEFAULT 0’, ’taxe’ => ’decimal(4,4) NOT NULL DEFAULT 0’, ’selection_min’ => ’int(11) NOT NULL DEFAULT 0’, ’selection_max’ => ’int(11) NOT NULL DEFAULT 0’, ’date_fin’ => ’datetime NOT NULL DEFAULT "0000-00-00 00:00:00"’, ’date_debut’ => ’datetime NOT NULL DEFAULT "0000-00-00 00:00:00"’, ’maj’ => ’TIMESTAMP’ ),
Donc ça se plante sur les champs
prix_ht
ettaxe
qui sont tous les 2 identiques :decimal(20,6) NOT NULL DEFAULT 0
.
On dirait qu’il y a un souci soit quand il y a une parenthèse, soit quand il y a une virgule dans la déclaration d’une colonne.Du coup sur une table en Sqlite, la requête suivante ne passe pas :
sql_alter(’TABLE spip_billets_types CHANGE prix prix_ht decimal(20,6) NOT NULL DEFAULT 0’)
Car au moment de créer la table temporaire, la requête est erronée :2019-11-20 11:49:50 127.0.0.1 (pid 12659) :Pub:ERREUR : near "6" : syntax error - CREATE TABLE IF NOT EXISTS spip_billets_types_tmp ( id_billets_type INTEGER NOT NULL, id_billetterie bigint ( 21 ) NOT NULL DEFAULT 0, titre text NOT NULL DEFAULT "" COLLATE NOCASE, descriptif text NOT NULL DEFAULT "" COLLATE NOCASE, quota int ( 11 ) NOT NULL DEFAULT 0, prix_ht decimal(20,6) NOT NULL DEFAULT 0, 6 ) NOT NULL DEFAULT 0, taxe decimal ( 4 , 4 ) NOT NULL DEFAULT 0, selection_min int ( 11 ) NOT NULL DEFAULT 0, selection_max int ( 11 ) NOT NULL DEFAULT 0, date_fin datetime NOT NULL DEFAULT "0000-00-00 00:00:00", date_debut datetime NOT NULL DEFAULT "0000-00-00 00:00:00", maj TIMESTAMP, composition varchar ( 255 ) NOT NULL DEFAULT ’’ COLLATE NOCASE, composition_lock tinyint ( 1 ) NOT NULL DEFAULT 0, rang int NOT NULL DEFAULT 0, id_profil bigint(21) NOT NULL DEFAULT 0, PRIMARY KEY (id_billets_type))
Allez, une petite une aspirine et je regarde la Regex qui décrypte la déclaration SQL :
/^[^(),]*\(((?:[^()]*\((?:[^()]*\([^()]*\))?[^()]*\)[^()]*)*[^()]*)\)[^()]*$/