28.4.21

Mes applications Ubuntu

 sudo apt-get install make gcc clementine audacity kdenlive ubuntu-restricted-addons ubuntu-restricted-extras pulseaudio unetbootin mediathekview asunder playonlinux teams

Git

//télécharger git pour windows
https://git-scm.com/download/win
https://desktop.github.com/

//tester si ok
git --version

//dans un terminal aller dans le répertoire souhaité
//récupérer le projet en local
git clone https://github.com/USERNAME/REPOSITORY

//mettre un nouveau fichier et l'uploader
git add newFile.txt
git commit -m "Un message obligatoire pour pouvoir commiter un fichier"
git push

26.4.21

Appel d'une procédure stockée (Stored Procedure) SQL SERVER

DROP PROCEDURE dbo.sp_xxx;
create procedure dbo.sp_xxx @DossierId INT
AS
DELETE FROM Winning WHERE dossierId = @DossierId
DELETE FROM Dossier WHERE Id = @DossierId

EXEC dbo.sp_xxx@DossierId = 536244;

//appel d'une procédure stockée
            Entities ep1 = Entities.GetEntities();
            DbCommand cmd = ep1.Database.Connection.CreateCommand();
            var parameter = cmd.CreateParameter();
            parameter.ParameterName = "@DossierId";
            parameter.Value = 536244;
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "dbo.sp_xxx";
            {
                cmd.Connection.Open();
                Console.WriteLine($"resultat : {cmd.ExecuteNonQuery()}");
            } catch (Exception e)
            {
                Console.WriteLine(e);
            } finally
            {
                if (cmd.Connection.State == ConnectionState.Open)
                    cmd.Connection.Close();
            }

6.4.21

extract mp3 ubuntu

sudo apt-get install lame rhythmbox gstreamer1.0-plugins-bad

dans rhythmbox, burger, préférences, musique, format préféré : MPEG Layer 3 Audio

menu ... --> extraire