891 links
  • Links Lounge
  • Home
  • Login
  • RSS Feed
  • Tag cloud
  • Picture wall
  • Daily
Links per page: 20 50 100
◄Older
page 19 / 45
Newer►
  • GitHub - Fylhan/qompoter: Dependency manager for Qt / C++.

    Hier, j'ai releasé la v0.2.6 de Qompoter, a C++/Qt dependency manager. Outre les améliorations apportées au truc (recherche récursive des paquets, numéros de versions flous du genre v1.*, recherche des paquets dans Inqlude), cela m'a aussi permis de découvrir les scripts d'auto-complémetion Bash ! Et je surkiffe taper qompoter tab tab et voir la liste des actions possibles apparaître "install export inqlude jsong". C'est beau Linux.

    Qompoter a atteint un niveau de maturité suffisant pour les petits projets, alors n'hésitez pas ! Vos retours sont les bienvenues.

    Wed Oct 5 09:35:22 2016 - permalink -
    - - - https://github.com/Fylhan/qompoter
    C++ Qompoter Qt
  • Note:

    curl -H 'PUT /api/charge/authentication HTTP/1.1' -H 'Host: localhost:15107' -H 'Accept: application/vnd.PCCom-v2.0+json' -H 'Content-Type: application/vnd.PCCom-v2.0+json' -X PUT -d '{"state":"AUTHENTICATION_NOT_REQUIRED"}' localhost:15107/api/charge/authentication

    Thu Sep 29 16:23:17 2016 - permalink -
    - - - https://links.la-bnbox.fr/?bucxbw
  • thumbnail
    xkcd: Earth Temperature Timeline

    A partager.

    Tue Sep 13 08:38:22 2016 - permalink -
    - - - http://xkcd.com/1732/
    XKCD
  • « pallier quelque chose » « pallier à quelque chose » ? | Tests et exercices d’orthographe avec le Projet Voltaire
    • Palier (nom) : entre deux étages
    • Pallier (verbe) : on pallie quelque chose (et non "à quelque chose"), et cela inclut une notion de provisoire (cf. palliatif)
    Mon Sep 12 14:44:59 2016 - permalink -
    - - - http://www.projet-voltaire.fr/blog/regle-orthographe/%C2%AB-pallier-quelque-chose-%C2%BB-%C2%AB-pallier-a-quelque-chose-%C2%BB
    Français
  • Oh, shit, git! - via Seb Sauvage

    Something wrong

    git reflog
    # you will see a list of every thing you've done in git, across all branches!
    # each one has an index HEAD@{index}
    # find the one before you broke everything
    git reset HEAD@{index}
    # magic time machine

    I accidentally committed to the wrong branch!

    # undo the last commit, but leave the changes available
    git reset HEAD~ --soft
    git stash
    # move to the correct branch
    git checkout name-of-the-correct-branch
    git stash pop
    git add . # or add individual files
    git commit -m "your message here"
    # now your changes are on the correct branch

    Oui, quelqu'un paie un nom de domaine chaque année pour ça. Merci quand même :-)

    Mon Sep 12 13:45:17 2016 - permalink -
    - - - http://ohshitgit.com/
    CommandLine Git
  • Comparateur de mobiles Kimovil.com
    Mon Sep 12 09:19:04 2016 - permalink -
    - - - http://www.kimovil.com/fr/comparatif-smartphone/f_max_d+eurPrice.100
    Mobile Smartphone Téléphone
  • QMake-top-level-srcdir-and-builddir - Qt Wiki

    Très pratique le fichier .qmake.conf.

    Tue Aug 30 10:35:55 2016 - permalink -
    - - - https://wiki.qt.io/QMake-top-level-srcdir-and-builddir
    C++ qmake Qt
  • 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
  • Note: Màj Wordpress 4.6

    Dans le descriptif des nouveautés :

    Le Tableau de bord de WordPress profite désormais de polices dont vous disposez déjà sur votre ordinateur, le rendant plus rapide et vous permettant de vous y retrouver plus naturellement, quel que soit le support.

    Hein ? En gros ils fournissent une liste de polices dans le CSS jusqu'à en trouver une présente sur l'ordinateur, en utilisant que des polices classiques afin de ne pas avoir besoin de la télécharger... Comme depuis les premiers jours du couple HTML/CSS ! Je ne pensais pas que WordPress était à ce point dans le marketing...

    Wed Aug 17 10:11:20 2016 - permalink -
    - - - https://links.la-bnbox.fr/?DgZsSQ
    What? Wordpress
  • Terminal (Bash) arguments tricks - Jordi Boggiano

    Gah !

    # !$ references the last argument of the previous command.
    mate _posts/2011/2011-04-12-terminal-strings.mdown
    git add !$
    tumblr !$
    
    # Now more complex, let's copy the second argument
    # !! references the last command, and :2 the second arg. 
    echo foo bar baz
    echo !!:2 # outputs "bar"
    
    # Batshit crazy
    # !?baz? references the last command containing baz, :0-1 grabs the two first args
    echo !?baz?:0-1 # should output "echo foo"
    Tue Aug 9 09:22:22 2016 - permalink -
    - - - https://seld.be/notes/terminal-arguments-tricks
    CommandLine Linux Shell
  • Autovisual - Voiture occasion · Orangina Rouge Links
    Thu Jun 16 09:15:50 2016 - permalink -
    - - - https://www.autovisual.com/fr
    Occasion Véhicule
  • Introducing HyperDev - Joel on Software

    Un nouveau service de Fog Creek : HyperDev. Ils sont fous fous, et ils savent bien rendre utiles une idée balbutiante.

    Wed Jun 1 08:16:33 2016 - permalink -
    - - - http://www.joelonsoftware.com/items/2016/05/30.html
    Deployement IDE Web
  • GitHub - CouscousPHP/Couscous: Couscous is good.

    Générateur (PHP) de site statique orienté documentation.

    Le This is couscous. Couscous is good. me fait marrer.

    Wed May 25 08:18:10 2016 - permalink -
    - - - https://github.com/CouscousPHP/Couscous
    Markdown OnMyServer PHP
  • Guide d'utilisation du Shell pour débutant

    cd : revenir dans le répertoire personnel
    cd - : revenir dans le répertoire précédent (uniquement si vous avez exécuter un cd)

    Ctrl+l : effacer l'écran
    Ctrl+c : arrêt d'une commande
    Ctrl+z : suspendre(mettre en pause) une commande
    CTRL+t : corréction d'une erreur de frappe en inversant 2 lettres
    Ctrl+a : aller au début de ligne
    Ctrl+e : aller à la fin de ligne
    Ctrl+s : interruption de la sortie de terminal (masquer la saisie)
    Ctrl+q : annuler l'interruption de la sortie (afficher la saisie)
    Ctrl+u : efface tout à gauche du curseur
    Ctrl+w : efface le mot à gauche du curseur
    Ctrl+k : efface le mot à droite du curseur
    Ctrl+y : coller la saisie précédente
    Ctrl+d : efface le caractère courant, si la ligne est vide deconnexion

    Alt+b : se déplacer en avant, mot par mot dans la ligne de commande
    Alt+f : se déplacer en arrière mot par mot dans la ligne de commande
    Alt+d : efface le mot suivant
    Alt+t : échange le mot courant avec le mot précédent
    Alt+c : met en majuscule la lettre courante, tout le reste dut mot courant en minuscules, puis se deplace au mot suivant
    Alt+l : met en majuscules à partir de la lettre courante jusqu'à la fin de mot, puis se deplace au mot suivant
    Alt+u : met en minuscules à partir de la lettre courante jusqu'à la fin de mot, puis se deplace au mot suivant

    Alt+Backspace : effacer le mot précédent (équivalent Ctrl+w)

    Fri May 20 10:26:19 2016 - permalink -
    - - - http://www.commentcamarche.net/faq/4801-guide-d-utilisation-du-shell-pour-debutant
    CommandLine Linux Shell
  • ssh forwarding

    Tunnel SSH pour rediriger des ports, tout en passant par un proxy ><

    Tue May 17 10:49:25 2016 - permalink -
    - - - http://aplawrence.com/Security/ssh_forwarding.html
    CommandLine Linux SSH
  • Defensive BASH programming - Say what?

    De bons conseils pour les scripts bash.

    Wed May 11 16:04:15 2016 - permalink -
    - - - http://www.kfirlavi.com/blog/2012/11/14/defensive-bash-programming/
    Bash Linux Shell
  • JavaPoly.js — Java(script) in the Browser · Seb Sauvage Link

    Le talk "The birth and Death of Javascript" de Gary Bernhardt est très open-minded à ce sujet : https://www.destroyallsoftware.com/talks/the-birth-and-death-of-javascript

    Mon May 9 14:03:19 2016 - permalink -
    - - - https://www.javapoly.com/
    Java Javascript
  • Héberger ses dépôts Git sur son serveur - Jean-Luc Petit
    Wed May 4 15:44:21 2016 - permalink -
    - - - https://webpetit.com/heberger-git-serveur/
    Git Linux OnMyServer SSH
  • umount: device is busy. Why?

    Rah, ça m'arrive tout le temps ce problème !!!

    Fri Apr 29 17:49:09 2016 - permalink -
    - - - http://oletange.blogspot.fr/2012/04/umount-device-is-busy-why.html
    Linux NTFS Umount
Links per page: 20 50 100
◄Older
page 19 / 45
Newer►
Shaarli - The personal, minimalist, super-fast, no-database delicious clone by the Shaarli community - Help/documentation