(English version at the bottom)
Cette semaine, nous avons testé le jeu de rôle Dog Bear, du collectif australien Invincible Ink, où l'on joue des soldats d'élite faisant leur compte rendu de mission à leur supérieur. Le jeu est paru en 2015, le PDF en anglais coûte 5$ et il …
Almost a year ago, GitHub introduced security alerts. They are an awesome feature.
They function as notifications you receive whenever a vulnerability affecting one of your project dependencies.
But long after receiving a notification, how to list all security alerts affecting your repositories ?
I didn't found an out-of-the box solution …
Some time ago, I used the overblog platform in order to create a blog for a long trip in Ireland.
Despite being sometimes very slow, it was overall a good platform, very easy to grasp for beginners. The blog is now old and unused, but before destroying it I wanted …
Being currently on a bike tour in Europe for several week, without computer nor smartphone, I don't have the opportunity to post much on this blog.
Still, I'd like to mention a discovery I just made from an Internet café here in Budapest : the Hearts and clubs website.
Curated by …
Yesterday I've stumbled upon a very surprising bug in some Python 2 code,
related to the use of the __del__
method in a vendor library we employ at work.
Here is some minimal code that reproduces the issue I met:
class MyClass:
def __init__(self):
raise RuntimeError('Woops')
def __del__ …
When I migrated this blog to Pelican, I noted one thing that I missed from Ghost: tags autocompletion, to help reusing tags I already defined in other articles.
Because nowadays I mostly use Notepad++ or vim
to write my blog posts,
I found out an easy solution that works for …
At work we have a component not yet migrated to Python 3, and we recently had some difficulties diagnosing a problem with the MySQL connector.
Because we were catching the mysql.connector.errors.Error
and raising a custom exception,
we were loosing the underlying stacktrace and hence couldn't troubleshoot the …
flask
httpie
requests
simplejson
botocore
scrapy
docker-compose
ansible
What are those diagrams ?
They show dependencies between the internal modules of various well-known Python libraries.
They goal is to provide a global overview of a Python project architecture, as a map of modules & packages, the top-level code abstractions.
Note that all …
This week I discovered the fantastic glitch art Reddit community (for a little more context on glitch art, wikipedia has a page). These are the pieces I love the most (click on them to find the source):
This one above reminds me of The Great Wave off Kanagawa. Like many …
On my personnal server, I used to send myself alerts by email using the handy standard mail
command.
However, recently it appeared that my server became categorized as "spammer" by some online service providers,
due to the alerts frequency (a little bit more than one per day).
Hence, I got …
Daniel Linssen, aka managore, is a fantastic indie game developer. I already mentioned one of his games, HopSlide, in a previous blog post (FR).
Now that it's clear that I am totally unbiased about this incredible game maker, lets talk about his latest games !
WalkieTalkie
This first one simply amazes …
In the last years, cmder became my default console when I needed a cmd.exe
-compatible Windows console.
Very often, I have a cmder
window with a set of tabs under my standard Windows user, and another that I launch as admi, to switch on/off some services, e.g …
This post may just look like a good excuse to show some holiday pictures (and really it is), sorry about that :)
I was in London last week, and I had the chance to make a tour of some great street art spots around Liverpool Street station, thanks to Fabrizio Gallozzi …
I ended up not using this code, but it may be useful to others:
mock_setup_provider.py
:
import sys
from unittest.mock import Mock
class MockSetupProvider(Mock):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.captured_setup_requires = set()
def setup(self, *args, **kwargs):
self.captured_setup_requires.update(kwargs.get('setup_requires'))
setup_extractor …
Hello all.
This is an open request : does anyone know about equitable non-smart phones or laptops, ideally long lasting and for the laptops: easily repairable with open-source componants ?
I know about Fairphone, but I couldn't find anything similar for simpler "feature phones".
By the way, I stumbled upon their cost …
Since Spring 4.1, it is really easy to enable JSONP on an API controller:
@RestController
@RequestMapping(value = "/")
public class MyController {
@ControllerAdvice
static class JsonpAdvice extends AbstractJsonpResponseBodyAdvice {
public JsonpAdvice() {
super("callback"); // name of the query parameter to use
}
}
@RequestMapping(value = "/", method = RequestMethod.GET)
public MyAPIResult getStuff(...) {
...
}
}
There is no RFC …
What do you think of the following innocuous Python code ?
from gevent import monkey
monkey.patch_all(thread=False, select=False)
import requests
requests.get('http://i-do-not-exist.com')
print('THIS WILL NEVER BE PRINTED !!!')
Guess what ? The string message will never get printed :(
Simply remove the monkey.patch_all
line and you'll …
Last week, my father asked me if I could find make a backup of an old lovely voicemail message he had.
I wrote a short Python script to accomplis this:
twiml_url = 'https://handler.twilio.com/twiml/EH9515e9e0d2fb81f27d75a493225ae703'
client = Client(os.environ['TWILIO_ACCOUNT_SID'], os.environ['TWILIO_AUTH_TOKEN'])
client.calls.create(to='+33241XXXXXX …
In this blog post, I'm going to demonstrate how to reuse WiseMapping HTML+JS rendering engine to easily visualize...
text-based mindmaps like this one have many benefits they are readable as-it-is they don't require any tool to be edited they follow the UNIX tenets
For the impatient ones, here is …
This week I wrote a small Python script, that can generate a mindmap from a simple indented text input like this:
Winter december january february Spring march april may Summer june july august Autumn september october november
The command: ./graphviz_mindmap.py seasons.txt
.
The results, with various layout
parameters:
Another …