877 links
  • Links Lounge
  • Home
  • Login
  • RSS Feed
  • Tag cloud
  • Picture wall
  • Daily
Links per page: 20 50 100
◄Older
page 18 / 44
Newer►
  • Calendrier perpétuel · Seb Sauvage Link
    Wed Dec 7 14:06:28 2016 - permalink -
    - - - http://trk.free.fr/calendrier/
    Calendrier
  • How do you stop qmake from trying to strip all installed files? | MythTV | Dev

    When adding some files to INSTALLS, they are stripped if they are excecutables.

    To avoid using strip, you can update "QMAKE_STRIP" variable and force stripping executables one by one using ".extra":

    target.extra = strip $${DESTDIR}/$(TARGET)
    QMAKE_STRIP = echo # Avoid striping unwanted files (which will not work)
    applibs.files = $${DESTDIR}/*.so*
    applibs.path = $$EXPORT_LIBPATH
    INSTALLS += applibs
    Thu Dec 1 15:40:55 2016 - permalink -
    - - - http://www.gossamer-threads.com/lists/mythtv/dev/141885
    C++ make qmake Qt
  • [CentOS] CentOS 7: firewalld.service operation time out - systemctl firewalld issues

    Gah ! Dire que je cherche depuis hier...

    systemctl stop firewalld ; pkill -f firewalld ; systemctl start firewalld
    Tue Nov 22 10:03:36 2016 - permalink -
    - - - https://lists.centos.org/pipermail/centos/2014-September/145809.html
    firewalld Linux
  • Native Apps are Doomed – JavaScript Scene – Medium

    Si l'avenir ne dépendait que des utilisateurs et des développeurs, je rejoindrais pleinement Eric Elliot sur ce sujet "Native Apps are Doomed". Mais il faut aussi compter sur les fournisseurs de plateformes.

    En tout cas, si en 2010 faire une Web app riche était un peu compliqué, cela semble beaucoup plus envisageable aujourd'hui. J'ai hâte d'avoir l'occasion d'essayer.

    Notamment :

    • HTTPS (let's encrypt !)
    • manifest.json validator https://manifest-validator.appspot.com/
    • manifest.json helper https://github.com/boyofgreen/manUp.js/
    Mon Nov 21 09:42:30 2016 - permalink -
    - - - https://medium.com/javascript-scene/native-apps-are-doomed-ac397148a2c0#.7kpsmkevu
    Offline Web Webapp
  • Table of Contents for Full Stack Python
    Thu Oct 27 13:45:32 2016 - permalink -
    - - - https://www.fullstackpython.com/table-of-contents.html
    Python
  • "How to use QThread in the right way (Part 1)" — 1+1=10

    Un autre post sur les QThread.

    Thu Oct 6 09:27:42 2016 - permalink -
    - - - http://blog.debao.me/2013/08/how-to-use-qthread-in-the-right-way-part-1/
    C++ Qt Thread
  • 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
Links per page: 20 50 100
◄Older
page 18 / 44
Newer►
Shaarli - The personal, minimalist, super-fast, no-database delicious clone by the Shaarli community - Help/documentation