Comment augmenter la précision des rapports “Vitesse du site” dans Google Analytics

Il suffit d’une ligne pour augmenter la précision des rapports Google Analytics de web performance (timing utilisateur): ga(‘create’, ‘UA-XXXX-Y’, {‘siteSpeedSampleRate’: 100}); // Théoriquement 100% des pages vues Vous n’obtiendrez pas 100%, notamment car certains navigateurs ne sont pas compatibles avec la mesure du timing utilisateur. Néanmoins, vous devriez facilement dépasser les 25%. Source: https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#siteSpeedSampleRate

Publishing failed – WordPress – OVH – 2018

If you get the message “Publishing failed” with WordPress 5, you most probably have to stop the firewall (the mod_security in Apache). With OVH you can do it like this (link to the official OVH guide). If it’s not enough, it most probably because you have the multi-site enabled. To you have to login at […]

Node JS – Hot to solve: code: ‘ENOMEM’, errno: ‘ENOMEM’, syscall: ‘spawn’

If with node.js you get the bug ” code: ‘ENOMEM’, errno: ‘ENOMEM’, syscall: ‘spawn’ ” you can create a swap file to solve the problem. Here is how to create a swap of 2GB on ubuntu: sudo fallocate -l 2G /swapfile sudo chmod 600 /swapfile sudo mkswap /swapfile sudo swapon /swapfile #Make it persistent after reboot: echo […]