As explained in some threads, Internet Explorer adds some invisible extra characters when returning a date from the JavaScript function new Intl.DateTimeformat. var day = « Thursday »; var intlDay = new Intl.DateTimeFormat(‘en-US’, {weekday: »long »}).format(new Date(2019,1,7)); console.log(day === intlDay); // return FALSE with IE intlDay = intlDay.replace(/\u200E/g, »); // replace \u200E console.log(day === intlDay); // return TRUE with […]
Auteur/autrice : Aymeric
Envoie d’email et spam (via OVH)
Si on envoie des emails depuis notre propre serveur, avec notre propre domaine, certaines mailbox (comme Gmail) pourraient vous détecter comme du spam ! Pour éviter cela, il faut prendre quelques précautions. Type « SPF » Tout d’abord, il faut ajouter une entrée SPF via le gestionnaire de domaine d’OVH. Le wizard va aider à composer la […]
Create a self-signed certificate for localhost testing with IE11 and Webpack
Sources: https://stackoverflow.com/questions/44988163/create-self-signed-certificate-for-testing-localhost-and-have-it-accepted-by-the http://woshub.com/how-to-create-self-signed-certificate-with-powershell/ https://stackoverflow.com/questions/4691699/how-to-convert-crt-to-pem/4691749#4691749 https://webpack.js.org/configuration/dev-server/#devserver-https If you develop with Webpack under Windows and you want to open your localhost server in HTTPS with IE11 you may receive a message like : « Content was blocked because it was not signed by a valid security certificate. » Below I explain the steps to make it work with IE11: […]
Sharepoint DateRangesOverlap value
(this is a copy of a post that is not available anymore) DateRangesOverlap Value Type I don’t know if any back-end developers have run into this same issue when working with the SPQuery to pull expanded recurrence date, but from here, not all DateRangesOverlap Value types work the way they should. And they’re cryptically-documented, where […]
Interclassement MySQL pour le français
Quel interclassement (dit aussi collation) choisir pour sa base MySQL afin d’y enregistrer des caractères français (entre autres) ? L’interclassement a deux fonctions : Permettre l’ordonnancement correct d’une liste de caractères (pour indiquer que le « é » vient après le « e », ou que les majuscules viennent avant les minuscules, etc) Permettre de savoir quand un caractère […]
Content Security Policy (CSP) blocks scripts from Violentmonkey / Greasemonkey
I wanted to inject some codes on Github, however I received Content Security Policy errors. It’s because Github blocks this kind of injected code. To bypass this restriction I installed the addon Content Security Policy Override (if you have Firefox you can install this Chrome addon using Chrome Store Foxified) then I applied the below […]
Remove custom properties/metadata for an Office document [javascript]
I have this document library on Sharepoint where I have one custom column called Metadata and that is a lookup to another list on my Sharepoint. When the users download an Office document from this library and then re-upload it we could have the below error message: There is at least one lookup column that […]
Contrôler la Freebox avec Google Home
J’ai tout expliqué sur ce site dédié : https://assistant.kodono.info/freebox/
Émuler Raspberry Pi sous Windows
Depuis que j’ai fait assistant-plugins, j’ai plusieurs utilisateurs qui m’ont demandé comment l’installer sur leur Raspberry. Ce système est censé être similaire à une Debian, cependant ils semblent y avoir des différences… J’ai donc cherché à émuler cet OS sous mon Windows 10. Sources : https://blogs.msdn.microsoft.com/iliast/2016/11/10/how-to-emulate-raspberry-pi/ https://enavarro.me/emuler-un-raspberry-pi-avec-qemu.html Voici les étapes : Télécharger la dernière version […]
How to delete a document locked by another user in Sharepoint using JavaScript
When you open a file from Sharepoint, it will receive a short term lock that will prevent others to change some properties on the file. This protection can be useful, but also very annoying, for example when the file is not closed properly, then the lock could stay « forever ». There are many posts on the […]