Category Archives: sci

Fixing Windows Python 2.7 unicode issue with subprocess’s Popen.

TL;DR Fixing Windows Python 2.7 unicode issue with subprocess.Popen being unable to properly send command lines to the system. Here is the python code fixing unicode issue Details What Python 2.7 is plagued by bugs that won't be fixed. One …

Read more »

trapping SIGINT, SIGQUIT in asynchronous tasks

Scattered in bash documentation lies the truth about SIGINT and SIGQUIT signals being mysteriously ignored and non-trappable in background processes. This has puzzled many, and will probably continue to do so. Traps Here's my try to unveil the terrible truth. …

Read more »

docker update, or how to incrementally build images without Dockerfile.

This handy little script covers an important missing feature in current docker's tool set. I needed to build incrementally my images: From a given image, I want full script control (un-tamed shell scripts) and access to hosts files to do …

Read more »

bash lore: how to properly parse NUL separated fields

As a lot of other part of bash, this is black magic. Lets suppose a friendly command that spits out NUL separated fields (as find -print0, shyaml get-values-0, ...). Which - may I insist - is the recommended way to …

Read more »

bash lore: NUL character and variables

Bash variables are often thought as being able to store any binary content. Please bear in mind that it can't store NUL character, and only this one. Here you are: $ ascii_table() { echo -en "$(echo '\'0{0..3}{0..7}{0..7} | tr -d …

Read more »

comparison of minimal packaging between distribute and distutils2

In a pythonic mind, we shoud keep things simple as possible. But when having to deal with distribution of your code, especially if it's ONE small python file, you'll might cringe when facing the boilerplate that is required. Even with …

Read more »

Emacs and flymake for python, javascript, php, rst

Emacs is a wonderfull editor, every sane people know this. Here's how to extend your flymake to some trendy languages. You'll find here a general overview by answering question as What's flymake ? for emacs, and How does it work …

Read more »

cleaned and released kal-shlib-* code and dd_rhelp

This is a long time since I wrote the first line of this shell script library which has followed me since then. These library were managed on subversion, so this was the opportunity to move them toward GIT. kal-shlib-core -- …

Read more »

sun flares vs earth

This 15th of April 2012, a magnificient solar flare erupted from the sun in the right angle to get perfect shots. The dailymail has many NASA footages, including videos and wide images. I was wondering how the size of earth …

Read more »

SpamAssassin, Amavis and ubuntu

If running spamassassin (SA) with amavis without usage of spamd on ubuntu 10.04 and you feel that sa-learn isn't working right, here are a few tips. I had mails that were false positive and I had to dig a little …

Read more »