• Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
Les liens de StyMaar
toggle menu
Add link
Search
10200 links
122 results tagged astuce x
  • #Changing Page Orientation (Landscape or Portrait) — LibreOffice Help

    Bon à savoir, pour passer un document LibreOffice en mode portrait.

    Thu 28 Apr 2022 06:00:45 PM CEST - permalink - https://help.libreoffice.org/4.0/Writer/Changing_Page_Orientation_Landscape_or_Portrait
    astuce LibreOffice
  • #zip - Extra-bytes error when unzipping a file - Unix & Linux Stack Exchange

    Wed 13 Apr 2022 05:49:36 PM CEST - permalink - https://unix.stackexchange.com/questions/115825/extra-bytes-error-when-unzipping-a-file
    astuce linux
  • #Reliably Send an HTTP Request as a User Leaves a Page | CSS-Tricks - CSS-Tricks

    Sun 10 Apr 2022 12:08:17 AM CEST - permalink - https://css-tricks.com/send-an-http-request-on-page-exit/
    astuce informatique JavaScript
  • #Surely far from being as elaborate as the linked tool, but I use the following g... | Hacker News

    git diff --word-diff=color --word-diff-regex='\w+'

    Fri 01 Apr 2022 10:03:13 PM CEST - permalink - https://news.ycombinator.com/item?id=27772256
    astuce git réinstallation
  • #Licence Microsoft Office 2021 Professionnel Plus – Yeslicense

    Je ne sais pas ce que ça vaut, et je suis tombé dessus via un publi-communiqué sur lesnumeriques.com (de la pub donc, mais à priori issu d'un partenariat entre Yeslicence et Lesnumeriques, ça ne devrait pas être trop trop foireux).

    Ça permet d'avoir des licences Windows/office au rabais. Leur business model:

    Nous achetons des licences Microsoft dans des volumes importants à des sociétés qui n’en ont plus besoin pour des raisons d’insolvabilité, de migration vers les offres cloud ou d’interruption d’utilisation.

    Mon 28 Mar 2022 03:46:16 PM CEST - permalink - https://yeslicense.com/products/microsoft-office-2021-professionnel-plus
    astuce Microsoft
  • #43.33 Km LOS with USB WiFi stick

    Mon 14 Mar 2022 10:51:51 AM CET - permalink - https://www.qsl.net/9a4qv/WiFi_Ri.htm
    astuce DIY informatique réseau
  • #Manually deserialize struct · Serde

    J'ai un peu galéré à trouver comment ça marche, parce qu'en fait la doc est pas très bien foutue :

    Je voulais rendre déserializable un “newType” autour de Arc<Mutex<T>>, et j'ai eu du mal à trouver comment je devais faire, donc je copie-colle le code ici, pour mémoire.

    
    pub struct HashMapDirectory(Arc<Mutex<HashMap<PathBuf, HashMapFile>>>);
    
    // La sérialization est assez simple et intuitive
    impl Serialize for HashMapDirectory {
        fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
        where
            S: Serializer,
        {
            serializer.serialize_newtype_struct("HashMapDirectory", &*self.0.lock().unwrap())
        }
    }
    
    // La déserialization par contre, c'est plus chelou, avec un `Visitor` à implémenter, qui fait quelque chose que je n'ai pas bien compris.
    
    struct HashMapDirectoryVisitor {
        marker: PhantomData<fn() -> HashMapDirectory>
    }
    
    impl HashMapDirectoryVisitor {
        fn new() -> Self {
            HashMapDirectoryVisitor {
                marker: PhantomData
            }
        }
    }
    
    impl<'de> Visitor<'de> for HashMapDirectoryVisitor
    {
        // The type that our Visitor is going to produce.
        type Value = HashMapDirectory;
    
        // Format a message stating what data this Visitor expects to receive.
        fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
            formatter.write_str("a very special map")
        }
    
        fn visit_newtype_struct<D>(
            self,
            deserializer: D
        ) -> Result<Self::Value, D::Error> where
        D: Deserializer<'de> {
            Ok(HashMapDirectory(Arc::new(Mutex::new(Deserialize::deserialize(deserializer)?))))
        }
    
    }
    
    impl<'de> Deserialize<'de> for HashMapDirectory
    {
        fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
        where
            D: Deserializer<'de>,
        {
            // Instantiate our Visitor and ask the Deserializer to drive
            // it over the input data, resulting in an instance of MyMap.
            deserializer.deserialize_newtype_struct("HashMapDirectory", HashMapDirectoryVisitor::new())
        }
    }
    
    Wed 02 Mar 2022 11:32:24 AM CET - permalink - https://serde.rs/deserialize-struct.html
    astuce Rust
  • #hoodie/concatenation_benchmarks-rs: 📈 benchmarking different ways to concatenate strings in rust

    Tue 01 Mar 2022 11:23:30 PM CET - permalink - https://github.com/hoodie/concatenation_benchmarks-rs
    astuce Rust
  • #"Bootstrap Error" rust-analyzer requires glibc >= 2.28 in latest build. · Issue #11558 · rust-analyzer/rust-analyzer

    Si jamais je rencontre à nouveau le problème de Rust analyzer dans vscode (avec une version de Mint basées sur Ubuntu 18.04)

    Tue 01 Mar 2022 12:21:46 PM CET - permalink - https://github.com/rust-analyzer/rust-analyzer/issues/11558#issuecomment-1053979557
    astuce linux Rust réinstallation
  • #Bug #1813768 “hp-plugin says python-gobject not installed (but i...” : Bugs : HPLIP

    Problème de scanner avec imprimante HP sous Linux Mint:

    #Install apparmor utils
    sudo apt-get install apparmor-utils
    #Run
    sudo aa-disable /usr/share/hplip/plugin.py

    Avant d'executer hp-plugin pour installer le plugin qui faut.

    Thu 24 Feb 2022 11:16:54 PM CET - permalink - https://bugs.launchpad.net/hplip/+bug/1813768
    astuce Linux réinstallation
  • #List all authors of a particular git project Using sort

    Wed 23 Feb 2022 09:57:06 PM CET - permalink - https://www.commandlinefu.com/commands/view/4519/list-all-authors-of-a-particular-git-project
    astuce git
  • #Track down the JavaScript code responsible for polluting the global scope · mmazzarolo.com

    Wed 16 Feb 2022 03:33:35 PM CET - permalink - https://mmazzarolo.com/blog/2022-02-16-track-down-the-javascript-code-responsible-for-polluting-the-global-scope/
    astuce JavaScript
  • #Tips for Faster Rust Compile Times | Matthias Endler

    Wed 09 Feb 2022 11:45:48 PM CET - permalink - https://endler.dev/2020/rust-compile-times/
    astuce ressource Rust
  • #How about altering how the Markdown would be rendered? E.g., the previously ment... | Hacker News

    Une super bonne idée sur comment afficher les liens markdown d'une façon qui ne masque pas entièrement l'url.

    Qu'est-ce que j'aimerai que les emails aient cette fonctionalité !

    Wed 02 Feb 2022 09:38:27 PM CET - permalink - https://news.ycombinator.com/item?id=30178653
    astuce CSS email markdown
  • #Tell HN: Replace the X with a 5 in arXiv.org to display a paper in HTML | Hacker News

    Ah pratique !

    Tue 01 Feb 2022 06:05:30 PM CET - permalink - https://news.ycombinator.com/item?id=30163308
    astuce outil science
  • #Start a GUI Application on a Remote Computer using SSH

    $ ssh 192.168.0.100 'DISPLAY=:0 nohup firefox "https://stymaar.fr"'

    Tue 25 Jan 2022 10:20:52 AM CET - permalink - https://www.shellhacks.com/start-gui-application-remote-computer-ssh/
    Astuce Linux raspberry_pi
  • #I can't do this because amazon does not have my personal information. Amazon has... | Hacker News

    Mind blown !

    Tue 25 Jan 2022 10:19:01 AM CET - permalink - https://news.ycombinator.com/item?id=30069193
    Astuce
  • #Note: Promisifying setTimeout

    Le truc qui me sert tout le temps et que je passe mon temps à réinventer …

    function promisedSetTimeout(timeout) {
            return new Promise((resolve) => {
                    setTimeout(resolve, timeout);
            });
    }
    Sat 22 Jan 2022 03:57:49 PM CET - permalink - https://stymaar.fr/links/?1eVsCQ
    ** astuce JavaScript
  • #Siℓvè𝐫ε ᵐ𝑒ʳ𝐂i𝒆r sur Twitter : "Aujourd'hui je vais vous expliquer comment avoir accès parfaitement légalement à un kiosque de plusieurs centaines de journaux et de magazines (dans le Monde, le Figaro) pour une somme RIDICULE par mois. => Thread https://t.co/4kT6RbP3zi" / Twitter

    Wed 19 Jan 2022 07:11:23 AM CET - permalink - https://twitter.com/Silvae/status/1482037482858463236?cxt=HHwWiIC-2aHPoJEpAAAA
    astuce presse à_faire
  • #Unable to find fallback package folder '/usr/local/share/dotnet/sdk/NuGetFallbackFolder'. · Issue #2050 · dotnet/dotnet-docker · GitHub

    Si un projet C# a été compilé sous Windows, il y a un répertoire bin et un répertoire objà supprimer pour que l'IDE fonctionne.

    Sinon pour installer le SDK .net sous linux Mint: https://docs.microsoft.com/fr-fr/dotnet/core/install/linux-ubuntu

    Sun 16 Jan 2022 10:54:39 PM CET - permalink - https://github.com/dotnet/dotnet-docker/issues/2050
    astuce C# linux
◄Older page 1 / 7 Links per page: 20 50 100
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation