
Recherche avancée
Autres articles (55)
-
La sauvegarde automatique de canaux SPIP
1er avril 2010, parDans 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, parAfin 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, 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 (...)
Sur d’autres sites (8972)
-
how to concentrate two audios in android in my way ?
14 mai 2020, par tohid noorihello guys i have selectActivity that u can select the audios after that u can merge them using ffmpeg library but i get error that said "no such file or directory" i thick the paths that use have problem 
this is my code below u can check it out .Then if u know how to get all music that exist in my storage ,tell me. I use this function below to get all music.



private void getMusic(){
 ContentResolver resolver = getContentResolver();
 Uri uri = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI;
 Cursor cursor = resolver.query(uri,null,null,null,null);
 if(cursor != null && cursor.moveToFirst()){
 int songTitle = cursor.getColumnIndex(MediaStore.Audio.Media.TITLE);
 int data = cursor.getColumnIndex(MediaStore.Audio.Media.DATA);
 int artist =cursor.getColumnIndex(MediaStore.Audio.Media.ARTIST);
 int size =cursor.getColumnIndex(MediaStore.Audio.Media.SIZE);
 int duration =cursor.getColumnIndex(MediaStore.Audio.Media.DURATION);

 do {
 Music music = new Music();
 music.setSongName(cursor.getString(songTitle));
 music.setSongArtist(cursor.getString(artist));
 music.setSongDuration(cursor.getString(duration));
 music.setSongSize(cursor.getString(size));
 music.setSongPath(cursor.getString(data));
 music.setSongBitmap(getAlbumImage(cursor.getString(data)));
 musicArrayList.add(music);
 }while (cursor.moveToNext());
 }
}




Then at the function below i merge the selected audios.



public void OMG(final Context context,List<musicselecteddatabase> musicDbs) {
 String s = "";
 String s_index = "";
 String fileSize = "concat=n="+musicDbs.size()+":v=0:a=1[out] -map [out] "+ dir4.getPath();

 for (int i = 0; i < musicDbs.size(); i++) {

 s = s + " -i " + musicDbs.get(i).getSongPath();
 s_index = s_index + "[" + i + ":0]";

 }
 s = s.replaceFirst(" ","");
 String str_cmd = s + " -filter_complex " + s_index + fileSize ;
 String[] cmd = str_cmd.split(" ");
 FFmpeg ffmpeg = FFmpeg.getInstance(context);
 try {
 ffmpeg.loadBinary(new LoadBinaryResponseHandler() {
 @Override
 public void onStart() {
 }

 @Override
 public void onFailure() {
 }

 @Override
 public void onSuccess() {
 }

 @Override
 public void onFinish() {
 }
 });
 } catch (Exception e) {
 Toast.makeText(context, e.getMessage(), Toast.LENGTH_SHORT).show();
 }

 try {
 ffmpeg.execute(cmd, new ExecuteBinaryResponseHandler() {
 @Override
 public void onStart() {
 }

 @Override
 public void onProgress(String message) {
 Toast.makeText(context, message, Toast.LENGTH_SHORT).show();
 }

 @Override
 public void onFailure(String message) {
 Toast.makeText(context, message, Toast.LENGTH_SHORT).show();
 }

 @Override
 public void onSuccess(String message) {
 Toast.makeText(context, "Build has been successful", Toast.LENGTH_SHORT).show();
 }

 @Override
 public void onFinish() {

 }
 });
 } catch (Exception e) {
 Toast.makeText(context, e.getMessage(), Toast.LENGTH_SHORT).show();
 } finally {
 if (ffmpeg.isFFmpegCommandRunning()) {
 ffmpeg.killRunningProcesses();
 }
 }
}
</musicselecteddatabase>



at the end i tell u how to get all music path exist in my mobile whit the function getmusic() i get a path something like this :



/storage/72AD-2013/Music/music_name.mp3



but i need something like this "i mean the real path of file that music is exist :



/storage/emulated/0/music/music_name.mp3


-
Anomalie #2458 (Fermé) : Forum dans le privé
15 décembre 2011, par cam.lafit -Ciao Si on active les forums coté espace privé : configuration > forum > Forums de l’espace privé > Un forum sous chaque article, brève, site référencé, etc. : Alors on obtient un erreur sur les boucle _decompte et _forums de ../extensions/forum/prive/objets/liste/participer_forum_thread.html Erreur (...)
-
Anomalie #3234 : Upload gros fichiers : detecter dans le verifier() du formulaire upload
11 juin 2015, par Eric CamusPour le point 2 : http://php.net/manual/fr/language.types.string.php#language.types.string.conversion
Une chaine dans une opération arithmétique est forcément converti en nombre.
C’est d’ailleurs un truc et astuce que j’utilise pour extraire seulement un nombre d’une input : $x=0+$_REQUEST[’in’] ; donnera toujours un chiffre (entier ou float !).
Donc pas besoin d’extraire la lettre, à la rigueur changer le return $val ; en return (0+$val) ; en cas de lettre non comprise.