Monthly Shaarli

All links of one month in a single page.

May, 2019

Kodi et Netflix

Il faudra installer manuellement PyCryptodomex :

sudo apt install python-pip pthon-setuptools
python -m pip install pycryptodomex
sudo ln -s /usr/lib/python2.7/dist-packages/Crypto /usr/lib/python2.7/dist-packages/Cryptodome

Puis récupérer le fichier DRM :

wget https://hg.mozilla.org/mozilla-central/raw-file/31465a03c03d1eec31cd4dd5d6b803724dcb29cd/toolkit/content/gmp-sources/widevinecdm.json -O ~/.kodi/cdm/libwidevine.sh

Et enfin, installer l'add-on Netflix (non-officiel) : https://github.com/asciidisco/plugin.video.netflix/archive/master.zip

Note : pour faire de la place (2 Go requis pour l'installation du plugin DRM) :

rm ~/.kodi/userdata/Database/Textures*.db
rm ~/.kodi/userdata/Thumbnails
Green Tree Snakes - the missing Python AST docs — Green Tree Snakes 1.0 documentation

Un bon guide sur AST.

Why I'm not collaborating with Kenneth Reitz — njs blog

Outch !

Logging for scientific computing: debugging, performance, trust
thumbnail

You’ve run your batch process with your scientific model, and after hours and hours it spit out a result. And the result is wrong. You suspect there’s a bug in the calculation, you’re not sure what it is, and the slow feedback cycle is making debugging even harder. Wouldn’t it be great if you could debug and speed up your program without having to spend days running it just to reproduce your problem? Now, I’m not a scientist, I’m a software engineer. But I did spend a year and a half working on scientific computing, and based on that experience I’d like to offer a potential solution to this cluster of problems: logging, and in particular a logging library I and my coworkers found very helpful. But before I get to the solution, it’s worth considering where these problems come from: the specific characteristics of scientific computing.

Sean-Bradley/Design-Patterns-In-Python: Common GOF Patterns implemented in Python
thumbnail

Common GOF Patterns implemented in Python. Contribute to Sean-Bradley/Design-Patterns-In-Python development by creating an account on GitHub.

Constraint Programming with python-constraint

Introduction The first thing we have to understand while dealing with constraint programming is that the way of thinking is very different from our usual way of thinking when we sit down to write code. Constraint programming is an example of the declarative programming paradigm, as opposed to the usual