867 links
  • Links Lounge
  • Home
  • Login
  • RSS Feed
  • Tag cloud
  • Picture wall
  • Daily
Links per page: 20 50 100
page 1 / 1
17 results for sed
  • How to Compress PDF in Linux [GUI & Terminal]

    gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/prepress -dNOPAUSE -dQUIET -dBATCH -sOutputFile=compressed_PDF_file.pdf input_PDF_file.pdf

    Par ordre décroissant de qualité : /prepress, /ebook ou /screen

    Sat Dec 16 17:17:15 2023 - permalink -
    - - - https://itsfoss.com/compress-pdf-linux/
    CommandLine PDF
  • RapiPDF - Web Component based Swagger & OpenAPI PDF Generator
    Fri Sep 11 11:04:18 2020 - permalink -
    - - - https://mrin9.github.io/RapiPdf/api.html#localize
    API PDF Swagger
  • RapiDoc - Web Component based Swagger & OpenAPI Spec Viewer

    header

    Fri Sep 11 11:04:05 2020 - permalink -
    - - - https://mrin9.github.io/RapiDoc/api.html
    API Swagger
  • Two C++ tricks used in Verdigris implementation
    Fri Feb 16 13:57:05 2018 - permalink -
    - - - https://woboq.com/blog/verdigris-implementation-tricks.html
    C++ Qt
  • linux - Insert multiple lines into a file after specified pattern using shell script - Stack Overflow

    Insert in place with regex:

    sed -e -i '/pattern/r file.txt' input.txt
    Thu Dec 14 13:40:52 2017 - permalink -
    - - - https://stackoverflow.com/questions/22497246/insert-multiple-lines-into-a-file-after-specified-pattern-using-shell-script
    bash CommandLine Linux Qompoter sed
  • sed and Multi-Line Search and Replace – Austin Matzko's Blog
    1h;1!H;${;g;s/<h2.*</h2>/No title here/g;p;}
    Wed Oct 4 13:28:48 2017 - permalink -
    - - - http://austinmatzko.com/2008/04/26/sed-multi-line-search-and-replace/
    bash CommandLine Linux Qompoter sed
  • regular expression - How can I use sed to replace a multi-line string? - Unix & Linux Stack Exchange

    Sed sur plusieurs lignes ? Galère.

    Sat Sep 30 11:40:40 2017 - permalink -
    - - - https://unix.stackexchange.com/questions/26284/how-can-i-use-sed-to-replace-a-multi-line-string#26290
    CommandLine Linux Regex sed
  • 3 Tips for Introducing Continuous Workflows to Your Development Process | GitLab

    Adopt DevOps (https://about.gitlab.com/2017/03/06/introduce-continuous-workflows)!L'idée c'est d'améliorer la productivité et la qualité d'une équipe de développement en améliorant la communication au sein de l'équipe. Donc :

    • Continuous Integration (via GitLab, ...) pour savoir quand le code plante et en discuter (via Rocket.chat, ...). Plus on a de tests unitaires représentant la spécification, plus on est sûr que chacun à implémenter la spécification de la bonne manière.
    • Tous les développeurs peuvent pousser leur code sur la branche de dev en cours sans autorisation préalable, afin de pouvoir en discuter
    • Continuous Delivery (via GitLab, ...) et livraisons intermédiaires fréquentes (au client ou en interne) pour avoir le plus de feedback possible

    Le dernier point rejoint cet article : https://about.gitlab.com/2017/04/27/why-code-is-released-too-early

    Fri Apr 28 12:47:05 2017 - permalink -
    - - - https://about.gitlab.com/2017/03/06/introduce-continuous-workflows/
    Dev
  • IGHASHGPU - GPU Based Hash Cracking - SHA1, MD5 & MD4 - Darknet · Seb Sauvage Link
    Tue Aug 23 13:04:53 2016 - permalink -
    - - - http://www.darknet.org.uk/2016/08/ighashgpu-gpu-based-hash-cracking-sha1-md5-md4/
    Hash
  • Four Habit-Forming Tips to Faster C++ - KDAB

    Pour me rappeler, je m'essai aux résumés.

    Prefer NRVO to RVO

    * RVO = return-value optimization

    MyData myFunction() {
        return MyData(); // Create and return unnamed obj
    }
    MyData abc = myFunction();

    With RVO, the C++ standard allows the compiler to skip the creation of the temporary, treating both object instances—the one inside the function and the one assigned to the variable outside the function—as the same. This usually goes under the name of copy elision. But what is elided here is the temporary and the copy.

    • NRVO = named return-value optimization
    MyData myFunction() {
      MyData result;           // Declare return val in ONE place
      if (doing_something) {
        return result;       // Return same val everywhere
      }
      // Doing something else
      return result;           // Return same val everywhere
    } 
    MyData abc = myFunction();

    Named Return Value Optimization is similar but it allows the compiler to eliminate not just rvalues (temporaries), but lvalues (local variables), too, under certain conditions.

    But many compilers are actualy failing to apply NRVO with the following code:

     MyData myFunction() {
        if (doing_something)
            return MyData();     // RVO expected
    
        MyData result;
    
        // ...
        return result;           // NRVO expected
    } 
    MyData abc = myFunction();

    So previous example has to be preferred.

    Return parameters by value whenever possible

    Surprisingly, don’t use "out-parameters" but prefer "return-by-value", even if it implies creating a small struct in order to return multiple values. I will check that, because it seems strange to me.

    “out” parameter pointers force a modern compiler to avoid certain optimisations when calling non-inlined functions.

    Prefer:

    struct fractional_parts {
        int numerator;
        int denominator;
    };
    
    fractional_parts convertToFraction(double val) {
        int numerator = /*calculation */ ;
        int denominator = /*calculation */ ;
        return {numerator, denominator}; // C++11 braced initialisation -> RVO
    }
    auto parts = convertToFraction(val);
    use(parts.nominator);
    use(parts.denominator);

    than:

    void convertToFraction(double val, int &numerator, int &denominator) {
        numerator = /*calculation */ ;
        denominator = /*calculation */ ;
    }
    
    int numerator, denominator;
    convertToFraction(val, numerator, denominator); // or was it "denominator, nominator"?
    use(numerator);
    use(denominator);    

    Cache member-variables and reference parameters

    Prefer:

    template <class T> 
    complex<T> &complex<T>;::operator*=(const complex<T> &a) {
       T a_real = a.real, a_imag = a.imag;
       T t_real =   real, t_imag =   imag; // t == this
       real = t_real * a_real – t_imag * a_imag;
       imag = t_real * a_imag + t_imag * a_real;
       return *this;
    }

    than:

    template <class T> 
    complex<T> &complex<T>;::operator*=(const complex<T> &a) {
       real = real * a.real – imag * a.imag;
       imag = real * a.imag + imag * a.real;
       return *this;
    }

    It seems the example is too simple to really understand the benefits. I do not want to make my code more complex for such a simple case... I do not like this advice.

    Organise intelligently member variables

    Due to the CPU caches mechanisms (blocks of 64-byte), it is propose to organise member variables in a class as follow:

    • Move the most-frequently-used member-variables first
    • Move the least-frequently-used member-variables last
    • If variables are often used together, group them near each other
    • Try to reference variables in your functions in the order they’re declared

    Why not...

    Mon Aug 22 09:58:09 2016 - permalink -
    - - - https://www.kdab.com/four-habit-forming-tips-faster-c/
    C++ C++11
  • vis.js - A dynamic, browser based visualization library.

    Cette bibliothèque Javascript pour faire des graphes semble bien complète.

    Tue Apr 19 10:22:29 2016 - permalink -
    - - - http://visjs.org/index.html
    Graph Javascript Vis
  • Cutelyst - The Qt Web Framewok

    Oui, un framework Web en Qt.

    Thu Mar 24 09:09:41 2016 - permalink -
    - - - http://cutelyst.org/2016/03/23/cutelyst-0-11-0-released
    C++ Framework Qt Web
  • svn 1.7 error E200009 Could not add all targets because some targets are already versioned - Stack Overflow

    Pour éviter la fameuse erreur E200009 de la ligne de commande SVN quand je fais un "svn add" sur un dossier avec des choses déjà indexé, j'ai ajouté cet alias à mon ~/.bashrc

    '''
    alias svnadd="svn st | grep ? | tr -s ' ' | sed 's/^..//g' | sed 's/ /\ /g' | xargs svn add"
    '''

    Désormais "svnadd" va indexer tous les fichiers du dossier actuel qui ne sont pas encore indexer.

    Git me manque. Surtout "git gui"...

    Fri Aug 14 11:47:47 2015 - permalink -
    - - - http://stackoverflow.com/questions/15620547/svn-1-7-error-e200009-could-not-add-all-targets-because-some-targets-are-already
    CommandLine SVN
  • cola.js: Constraint-based Layout in the Browser

    Bibliothèques Javascript pour faire des graphes avec des contraintes au niveau du rendu (certains points fixes, d'autres non, organisation pour l'affichage d'une molécule, groupe, ...).
    Quelqu'un a testé ?

    (via je ne sais plus qui)

    Wed Jul 8 16:04:45 2015 - permalink -
    - - - http://marvl.infotech.monash.edu/webcola/
    Graph Javascript Mindmap
  • http - The definitive guide to form based website authentication - Stack Overflow

    Je n'ai pas encore Shaarlier ce super article ? Mince...
    Web-based authentication form : beaucoup, beaucoup de choses à avoir en tête avant de faire quoi que ce soit :-)

    Tue Jan 14 16:02:00 2014 - permalink -
    - - - http://stackoverflow.com/questions/549/the-definitive-guide-to-form-based-website-authentication
    Authentification Security
  • http - The definitive guide to forms based website authentication - Stack Overflow

    Ce topic est à lire en détail ! C'est un sujet qui m'intéresse et me passionne tout à la fois en ce moment. Mais le plus frustrant c'est qu'il est particulièrement difficile d'atteindre le système fiable et sûre à 99%. J'aimerai le créer au moins une fois, quit à le rendre non user-friendly, histoire de pouvoir faire correctement ma sauce dans de vrais projets.

    Fri Nov 9 09:15:31 2012 - permalink -
    - - - http://stackoverflow.com/questions/549/the-definitive-guide-to-forms-based-website-authentication
    Connection Form HTTP
  • Silex - The PHP micro-framework based on Symfony2 Components

    Silex - The PHP micro-framework based on Symfony2 Components

    Fri Jun 8 11:02:42 2012 - permalink -
    - - - http://silex.sensiolabs.org/doc/intro.html
    Framework PHP Silex Symfony
Links per page: 20 50 100
page 1 / 1
Shaarli - The personal, minimalist, super-fast, no-database delicious clone by the Shaarli community - Help/documentation