Recherche avancée

Médias (1)

Mot : - Tags -/pirate bay

Autres articles (37)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (6427)

  • Python UnicodeEncodeError : 'charmap' codec can't encode when using GEOPY

    9 août 2015, par Tony Roczz

    I have been fiddling with python geopy and I tried the basic commands given in the documentation. But I am getting the UnicodeEncodeError when trying the raw command(to geolocate a query to an address and coordinates)

    print(location.raw)

    Error UnicodeEncodeError: 'charmap' codec can't encode character '\xa9' in position 83: character maps to <undefined></undefined>

    Then I tried the other way around (To find the address corresponding to a set of coordinates)

    print(location.address)    

    I am getting the same error UnicodeEncodeError: 'charmap' codec can't encode character '\u0101' in position 10: character maps to <undefined></undefined>

    I tried print((location.address).encode("utf-8")) , now am not getting any error but the output printed is like this b'NH39, Mirz\xc4\x81pur

    and when using print((location.raw).encode("utf-8")) I am getting error

    AttributeError: 'dict' object has no attribute 'encode'

    Can anyone tell me what is going on here and what I should do to get a proper output ?

    Edit :(After being marked as duplicate)

    Based on the solution given in this problem I am reporting on how it does not solve my problem

    What I wanted to know is why do I get the UnicodeEncodeError when trying out the basic sample codings given in the documentation and it did answer for that.

    If I want to use it an application how do I solve the error and I cannot have the application running on separate IDE or send the output to a external file since my application will function based on the output from geopy, I want the application to run in the terminal as my other applications do.

  • Anomalie #2698 (Fermé) : mauvais hashage du mot de passe

    10 mai 2012, par denisb -

    touche (au moins) les spip en 2.1 et 3.0 alors que "Prof_Mathématiques_Site01" est un mot de passe valide, "Prof_Mathematiques_Site01", s’il est bien enregistré (accepté sans message d’erreur) en base, n’est pas reconnu lors de la phase de login => "Erreur de mot de passe." on notera la subtile (...)

  • the ffmpeg recording does not stop after the test case is successfully executed,

    21 mai 2024, par ghufran

    I am new to selenium, I want to add screen recording in my test cases, and I am using ffmpeg. The issue i am facing is the recording successfully starts, but it does not stop after the test case is successfully executed.

    &#xA;

    Below is how my code is strcutured :

    &#xA;

    package utilities;&#xA;&#xA;import java.io.BufferedReader;&#xA;import java.io.IOException;&#xA;import java.io.InputStreamReader;&#xA;&#xA;public class ScreenRecording {&#xA;&#xA;    private Process ffmpeg;&#xA;    private String outputFilePath;&#xA;    private boolean isRecording;&#xA;&#xA;    public ScreenRecording(String outputFilePath) {&#xA;        this.isRecording = false;&#xA;        this.outputFilePath = outputFilePath;&#xA;    }&#xA;&#xA;    public void startRecording() throws IOException {&#xA;        String command = String.format(&#xA;                "ffmpeg -y -f gdigrab -framerate 30 -probesize 100M -analyzeduration 10M -i desktop -vf \"crop=1920:1080:0:0\" -c:v libx264 -preset ultrafast -qp 0 -pix_fmt yuv420p %s",&#xA;                outputFilePath&#xA;        );&#xA;        System.out.println("Executing command: " &#x2B; command); // Print command for debugging&#xA;        try {&#xA;            ProcessBuilder builder = new ProcessBuilder("cmd.exe", "/c", command);&#xA;            builder.redirectErrorStream(true); // Combine error and output streams&#xA;            ffmpeg = builder.start();&#xA;            isRecording = true;&#xA;&#xA;            // Log output and errors&#xA;            new Thread(() -> {&#xA;                try (BufferedReader reader = new BufferedReader(new InputStreamReader(ffmpeg.getInputStream()))) {&#xA;                    String line;&#xA;                    while ((line = reader.readLine()) != null) {&#xA;                        System.out.println(line);&#xA;                    }&#xA;                } catch (IOException e) {&#xA;                    e.printStackTrace();&#xA;                }&#xA;            }).start();&#xA;        } catch (IOException e) {&#xA;            e.printStackTrace(); // Print exception for debugging&#xA;            throw e; // Rethrow exception to propagate it to the caller&#xA;        }&#xA;    }&#xA;&#xA;    public void stopRecording() {&#xA;        if (ffmpeg != null) {&#xA;            ffmpeg.destroy();&#xA;            System.out.println("Recording stopped.");&#xA;            isRecording = false;&#xA;        }&#xA;    }&#xA;&#xA;    public boolean isRecording() {&#xA;        return isRecording;&#xA;    }&#xA;}&#xA;

    &#xA;

    &#xA;public class AccountFeatures extends BaseTest {&#xA;&#xA;    @Test(testName = "Register User")&#xA;    public void testRegisterUserScenario() throws InterruptedException {&#xA;        HomePage homePage = new HomePage(driver);&#xA;        LoginPage loginPage = new LoginPage(driver);&#xA;        SignUpPage signUpPage = new SignUpPage(driver);&#xA;        homePage.clickOnLogin();&#xA;        Assert.assertEquals(loginPage.getSingupText(), "New User Signup!");&#xA;        loginPage.enterUserName(randomName);&#xA;        loginPage.enterUserEmail(randomEmail);&#xA;        loginPage.clickOnSignUpButton();&#xA;        signUpPage.clickOnTitle();&#xA;        signUpPage.enterPassword(randomPassword);&#xA;        signUpPage.selectDate(birthDay);&#xA;        signUpPage.selectMonth("December");&#xA;        signUpPage.selectYear();&#xA;        signUpPage.selectFromCountryDropDown("Canada");&#xA;    }&#xA;}&#xA;

    &#xA;

    import org.testng.annotations.AfterMethod;&#xA;import org.testng.annotations.BeforeMethod;&#xA;import utilities.ScreenRecording;&#xA;import webdrivers.DriverManager;&#xA;&#xA;import java.io.IOException;&#xA;&#xA;public class BaseTest {&#xA;&#xA;    protected WebDriver driver;&#xA;    private ScreenRecording recorder;&#xA;&#xA;    @BeforeMethod&#xA;    public void setUp() throws IOException {&#xA;        // Initialize WebDriver (you can choose Chrome, Firefox, etc.)&#xA;        String outputFilePath = "D:\\Projects\\screen_recordings\\screen_recording.mp4";&#xA;        recorder = new ScreenRecording(outputFilePath);&#xA;        recorder.startRecording();&#xA;        driver = DriverManager.getDriver();&#xA;        driver.get(DataConfig.baseUrl);&#xA;        driver.manage().window().maximize();&#xA;    }&#xA;&#xA;    @AfterMethod&#xA;    public void tearDown() {&#xA;        if (driver != null) {&#xA;            driver.quit();&#xA;        }&#xA;        if (recorder != null &amp;&amp; recorder.isRecording()) {&#xA;            recorder.stopRecording();&#xA;        }&#xA;    }&#xA;}&#xA;

    &#xA;

    I tried different solutions but it does not work at all. Before that i was using @AfterTest annotations but it was giving stack overflow exception.

    &#xA;