Antoine Beaupr : My free software activities, August 2017
Debian Long Term Support (LTS)
This is my monthly Debian LTS report. This month I worked on a few
major packages that took a long time instead of multiple smaller
issues. Affected packages were Mercurial, libdbd-mysql-perl and Ruby.
Mercurial updates
Mercurial was vulnerable to two CVEs: CVE-2017-1000116
(command injection on clients through malicious ssh URLs) and
CVE-2017-1000115 (path traversal via symlink). The former
is an issue that actually affects many other similar software like Git
(CVE-2017-1000117), Subversion (CVE-2017-9800)
and even CVS (CVE-2017-12836). The latter symlink issue is
a distinct issue that came up during an internal audit.
The fix, shipped as DLA-1072-1, involved a rather difficult
backport, especially because the Mercurial test suite takes a long
time to complete. This reminded me of the virtues of
DEB_BUILD_OPTIONS=parallel=4, which sped up the builds
considerably. I also discovered that the Wheezy build chain doesn't
support sbuild's --source-only-changes flag which I had
hardcoded in my sbuild.conf file. This seems to be simply
because sbuild passes --build=source to dpkg-buildpackage, an option that is supported only in jessie or
later.
libdbd-mysql-perl
I have worked on fixing two issues with the libdbd-mysql-perl package, CVE-2017-10788 and CVE-2017-10789, which resulted in the DLA-1079-1 upload.
Behind this mysteriously named package sits a critical piece of
infrastructure, namely the mysql commandline client which is
probably used and abused by hundreds if not thousands of home-made
scripts, but also all of Perl's MySQL support, which is probably used
by even a larger base of software.
Through the Debian bug reports (Debian bug #866818 and Debian bug #866821), I have learned that the patches existed in the upstream
tracker but were either ignored or even reverted in the
latest 4.043 upstream release. It turns out that there are talks of
forking that library because of maintainership issue. It blows my
mind that such an important part of MySQL is basically unmaintained.
I ended up backporting the upstream patches, which was also somewhat
difficult because of the long-standing issues with SSL support in
MySQL. The backport there was particularly hard to test, as you need
to run that test suite by hand, twice: once with a server configured
with a (valid!) SSL certificate and one without (!). I'm wondering how
much time it is really worth spending on trying to fix SSL in MySQL,
however. It has been badly broken forever, and while the patch is an
improvement, I would actually still never trust SSL transports in
MySQL over an untrusted network. The few people that I know use such
transports wrap their connections around a simpler stunnel
instead.
The other issue was easier to fix so I submitted a pull request
upstream to make sure that work isn't lost, although it is not
clear what the future of that patch (or project!) will be at this
point.
Rubygems
I also worked on the rubygems issues, which, thanks to the
"vendoring" practice of the Ruby community, also affects the ruby1.9 package. 4 distinct CVEs were triaged here (CVE-2017-0899, CVE-2017-0900, CVE-2017-0901
and CVE-2017-0902) and I determined the latter issue
didn't affect wheezy as rubygems doesn't do its own DNS resolution
there (later versions lookup SRV records).
This is another package where the test suite takes a long time to
run. Worse, the packages in Wheezy actually fails to build from
source: the test suites just fail in various steps, particularly
because of dh key too small errors for Rubygems, but also other
errors for Ruby. I also had trouble backporting one test which I had
to simply skip for Rubygems. I uploaded and announced test
packages and hopefully I'll be able to complete this work soon,
although I would certainly appreciate any help on this...
Triage
I took a look at the sox, libvorbis and
exiv2 issues. None had fixes available. sox and exiv2 were
basically a list of fuzzing issues, which are often minor or at least
of unknown severity. Those would have required a significant amount of
work and I figured I would prioritize other work first.
I also triaged CVE-2017-7506, which doesn't seem to affect
the spice package in wheezy, after doing a fairly thorough
audit of the code. The vulnerability is specifically bound to the
reds_on_main_agent_monitors_config function, which is simply not
present in our older version. A hostile message would fall through the
code and not provoke memory allocation or out of bounds access, so I
simply marked the wheezy version as not-affected, something which
usually happens during the original triage but can also happen during
the actual patching work, as in this case.
Other free software work
This describes the volunteer work I do on various free software
projects. This month, again, my internal reports show that I spent
about the same time on volunteer and paid time, but this is probably a
wrong estimate because I spent a lot of time at Debconf which I didn't
clock in...
Debconf
So I participated in the 17th Debian Conference in Montreal. It
was great to see (and make!) so many friends from all over the world
in person again, and I was happy to work on specific issues together
with other Debian developers. I am especially thankful to David
Bremner for fixing the syncing of the flagged tag when added to new
messages (patch series). This allows me to easily sync the one
tag (inbox) that is not statically assigned during notmuch new, by
using flagged as a synchronization tool. This allows me to use
notmuch more easily across multiple machines without having to sync
all tags with dump/restore or using muchsync which wasn't working for
me (although a new release came out which may fix my issues). The
magic incantation looks something like this:
notmuch tag -inbox tag:inbox and not tag:flagged
notmuch tag +inbox not tag:inbox and tag:flagged
However, most of my time in the first week (Debcamp) was spent trying
to complete the networking setup: configure switches, setup wiring and
so on. I also configured an apt-cacher-ng proxy to serve
packages to attendees during the conference. I configured it with
Avahi to configure clients automatically, which led me to discover
(and fix) issue Debian bug #870321) although there are more issues
with the autodiscovery mechanism... I spent extra time to document the
(somewhat simple) configuration of such a server in the Debian
wiki because it was not the first time I had research that
procedure...
I somehow thought this was a great time to upgrade my laptop to
stretch. Normally, I keep that device running stable because I don't
use it often and I don't want to have major traumatizing upgrades
every time I leave with it on a trip. But this time was special: there
were literally hundreds of Debian developers to help me out if there
was trouble. And there was, of course, trouble as it turns out! I had
problems with the fonts on my display, because, well, I had
suspended (twice) my laptop during the install. The fix was simply
to flush the fontconfig cache, and I tried to document this in the
fonts wiki page and my upgrades page.
I also gave a short training called Debian packaging 101 which
was pretty successful. Like the short presentation I made at the last
Montreal BSP, the workshop was
based on my quick debian development guide.
I'm thinking of expanding this to a larger audience with a "102"
course that would discuss more complex packaging problems. But my
secret plan (well, secret until now I guess) is to make packaging
procedures more uniform in Debian by training new Debian packagers
using that same training for the next 2 decades. But I will probably
start by just trying to do this again at the next Debconf, if I can
attend.
Debian uploads
I also sponsored two packages during Debconf: one was a "scratch an
itch" upload (elpa-ivy) which I requested (Debian bug #863216) as part of a larger effort to ship the Emacs elisp packages
as Debian packages. The other was an upload of diceware to build the documentation in a separate package and fix
other issues I have found in the package during a review.
I also uploaded a bunch of other fixes to the Debian archive:
- slop upstream update and matching maim NMU
- asked for gnome-web-photo removal (Debian bug #873015)
- charybdis 3.5.5-2 to officially switch to mbedtls (Debian bug #705369)
- gmpc: ship pending patches from git and Ubuntu
- horst: new upstream release and workaround for sparse
bug Debian bug #873508
- uploaded percol to NEW (Debian bug #754972)
Signing keys rotation
I also started the process of moving my main OpenPGP certification key
by adding a signing subkey. The subkey is stored in a cryptographic
token so I can sign things on more than one machine without storing
that critical key on all those devices physically.
Unfortunately, this meant that I need to do some shenanigans when I
want to sign content in my Debian work, because the new subkey takes
time to propagate to the Debian archive. For example, I have to
specify the primary key with a "bang" when signing packages (debsign
-k '792152527B75921E!' ...) or use inline signatures in email sent
for security announcement (since that trick doesn't work in Mutt or
Notmuch). I tried to figure out how to better coordinate this next
time by reading up documentation on keyring.debian.org, but there
is no fixed date for key changes on the rsync interface. There are
"monthly changes" so one's best bet is to look for the last change in
their git repository.
GitLab.com and LFS migration
I finally turned off my src.anarc.at git repository service by
moving the remaining repos to GitLab. Unfortunately, GitLab
removed support for git-annex recently, so I had to migrate my
repositories to Git-LFS, which was an interesting experience. LFS is
pretty easy to use, definitely simpler than git-annex. It also seems
to be a good match for the use-case at hand, which is to store large
files (videos, namely) as part of slides for presentations.
It turns out that their migration guide could have been made much
simpler. I tried to submit those changes to the documentation but
couldn't fork the GitLab EE project to make a patch, so I just
documented the issue in the original MR for now. While I was
there I filed a feature request to add a new reference shortcut
(GL-NNN) after noticing a similar token used on GitHub. This
would be a useful addition because I often have numbering conflicts
between Debian BTS bug numbers and GitLab issues in packages I
maintain there. In particular, I have problems using GitLab issue
numbers in Monkeysign, because commit logs end up in Debian changelogs
and will be detected by the Debian infrastructure even though those
are GitLab bug numbers. Using such a shortcut would avoid detection
and such a conflict.
Numpy-stats
I wrote a small tool to extract numeric statistics from a given
file. I often do ad-hoc benchmarks where I store a bunch of numbers in
a file and then try to make averages and so on. As an exercise in
learning NumPy, I figured I would write such a simple tool,
called numpy-stats, which probably sounds naive to seasoned
Python scientists.
My incentive was that I was trying to figure out what was the
distribution of password length in a given password generator
scheme. So I wrote this simple script:
for i in seq 10000 ; do
shuf -n4 /usr/share/dict/words tr -d '\n'
done > length
And then feed that data in the tool:
$ numpy-stats lengths
"max": 60,
"mean": 33.883293722913464,
"median": 34.0,
"min": 14,
"size": 143060,
"std": 5.101490225062775
I am surprised that there isn't such a tool already: hopefully I am
wrong and will just be pointed towards the better alternative in the
comments here!
Safe Eyes
I added screensaver support to the new SafeEyes project,
which I am considering as a replacement to the workrave
project I have been using for years. I really like how the
interruptions basically block the whole screen: way more effective
than only blocking the keyboard, because all potential distractions go
away.
One feature that is missing is keystrokes and mouse movement
counting and of course an official Debian package, although
the latter would be easy to fix because upstream already has an
unofficial build. I am thinking of writing my own little tool to count
keystrokes, since the overlap between SafeEyes and such a counter
isn't absolutely necessary. This is something that workrave does, but
there are "idle time" extensions in Xorg that do not need to count
keystrokes. There are already certain tools to count input events, but
none seem to do what I want (most of them are basically
keyloggers). It would be an interesting test to see if it's possible
to write something that would work both for Xorg and Wayland at the
same time. Unfortunately, preliminary research show that:
- in Xorg, the only way to implement this is to sniff all events,
ie. to implement a keylogger
- in Wayland, this is completely unsupported. it seems some
compositors could implement such a counter, but then it means
that this is compositor specific, or, in other words, unportable
So there is little hope here, which brings to my mind "painmeter" as
an appropriate name for this future programming nightmare.
Ansible
I sent my first contribution to the ansible project with a
small documentation fix. I had an eye opener recently when I
discovered a GitLab ansible prototype that would manipulate
GitLab settings. When I first discovered Ansible, I was frustrated by
the YAML/Jinja DSL: it felt silly to write all this code in YAML when
you are a Python developer. It was great to see reasonably
well-written Python code that would do things and delegate the
metadata storage (and only that!) to YAML, as opposed to using YAML as
a DSL.
So I figured I would look at the Ansible documentation on how this
works, but unfortunately, the Ansible documentation is severly lacking
in this area. There are broken links (I only fixed one page) and
missing pieces. For example, the developing plugins page doesn't
explain how to program a plugin at all.
I was told on IRC that: "documentation around developing plugins is
sparse in general. the code is the best documentation that exists
(right now)". I didn't get a reply when asking which code in
particular could provide good examples either. In comparison, Puppet
has excellent documentation on how to create custom types,
functions and facts. That is definitely a turn-off for a new
contributor, but at least my pull request was merged in and I can only
hope that seasoned Ansible contributors expand on this critical piece
of documentation eventually.
Misc
As you can see, I'm all over the place, as usual. GitHub tells me I
"Opened 13 other pull requests in 11 repositories" (emphasis mine),
which I guess means on top of the "9 commits in 5 repositories"
mentioned earlier. My profile probably tells a more detailed
story that what would be useful to mention here. I should also mention
how difficult it is to write those reports: I basically do a
combination of looking into my GitHub and GitLab profiles, the last 30
days of emails
and filesystem changes (!!). En vrac, a list of
changes which may be of interest:
- font-large (and its alias, font-small): shortcut to send
the right escape sequence to rxvt so it changes its font
- fix-acer: short script to hardcode the modeline (you remember
those?!) for my screen which has a broken EDID pin (so
autodetection fails, yay Xorg log files...)
- ikiwiki-pandoc-quickie: fake ikiwiki renderer that (ab)uses
pandoc to generate a HTML file with the right stylesheet to preview
Markdown as it may look in this blog (the basic template is
missing still)
- git-annex-transfer: a command I've often been missing in
git-annex, which is a way to transfer files between remotes
without having to copy them locally (upstream feature request)
- I linked the graphics of the Debian archive software architecture
in the Debian wiki in the hope more people notice it.
- I did some tweaks on my Taffybar to introduce a battery meter
and hoping to have temperature sensors, which mostly
failed. there's a pending pull request that may bring some
sense into this, hopefully.
- I made two small patches in Monkeysign to fix
gpg.conf handling and multiple email output, a dumb bug I cannot
believe anyone noticed or reported just yet. Thanks Valerie for the
bug report! The upload of this in Debian is pending a review from
the release team.
DEB_BUILD_OPTIONS=parallel=4, which sped up the builds
considerably. I also discovered that the Wheezy build chain doesn't
support sbuild's --source-only-changes flag which I had
hardcoded in my sbuild.conf file. This seems to be simply
because sbuild passes --build=source to dpkg-buildpackage, an option that is supported only in jessie or
later.
libdbd-mysql-perl
I have worked on fixing two issues with the libdbd-mysql-perl package, CVE-2017-10788 and CVE-2017-10789, which resulted in the DLA-1079-1 upload.
Behind this mysteriously named package sits a critical piece of
infrastructure, namely the mysql commandline client which is
probably used and abused by hundreds if not thousands of home-made
scripts, but also all of Perl's MySQL support, which is probably used
by even a larger base of software.
Through the Debian bug reports (Debian bug #866818 and Debian bug #866821), I have learned that the patches existed in the upstream
tracker but were either ignored or even reverted in the
latest 4.043 upstream release. It turns out that there are talks of
forking that library because of maintainership issue. It blows my
mind that such an important part of MySQL is basically unmaintained.
I ended up backporting the upstream patches, which was also somewhat
difficult because of the long-standing issues with SSL support in
MySQL. The backport there was particularly hard to test, as you need
to run that test suite by hand, twice: once with a server configured
with a (valid!) SSL certificate and one without (!). I'm wondering how
much time it is really worth spending on trying to fix SSL in MySQL,
however. It has been badly broken forever, and while the patch is an
improvement, I would actually still never trust SSL transports in
MySQL over an untrusted network. The few people that I know use such
transports wrap their connections around a simpler stunnel
instead.
The other issue was easier to fix so I submitted a pull request
upstream to make sure that work isn't lost, although it is not
clear what the future of that patch (or project!) will be at this
point.
Rubygems
I also worked on the rubygems issues, which, thanks to the
"vendoring" practice of the Ruby community, also affects the ruby1.9 package. 4 distinct CVEs were triaged here (CVE-2017-0899, CVE-2017-0900, CVE-2017-0901
and CVE-2017-0902) and I determined the latter issue
didn't affect wheezy as rubygems doesn't do its own DNS resolution
there (later versions lookup SRV records).
This is another package where the test suite takes a long time to
run. Worse, the packages in Wheezy actually fails to build from
source: the test suites just fail in various steps, particularly
because of dh key too small errors for Rubygems, but also other
errors for Ruby. I also had trouble backporting one test which I had
to simply skip for Rubygems. I uploaded and announced test
packages and hopefully I'll be able to complete this work soon,
although I would certainly appreciate any help on this...
Triage
I took a look at the sox, libvorbis and
exiv2 issues. None had fixes available. sox and exiv2 were
basically a list of fuzzing issues, which are often minor or at least
of unknown severity. Those would have required a significant amount of
work and I figured I would prioritize other work first.
I also triaged CVE-2017-7506, which doesn't seem to affect
the spice package in wheezy, after doing a fairly thorough
audit of the code. The vulnerability is specifically bound to the
reds_on_main_agent_monitors_config function, which is simply not
present in our older version. A hostile message would fall through the
code and not provoke memory allocation or out of bounds access, so I
simply marked the wheezy version as not-affected, something which
usually happens during the original triage but can also happen during
the actual patching work, as in this case.
Other free software work
This describes the volunteer work I do on various free software
projects. This month, again, my internal reports show that I spent
about the same time on volunteer and paid time, but this is probably a
wrong estimate because I spent a lot of time at Debconf which I didn't
clock in...
Debconf
So I participated in the 17th Debian Conference in Montreal. It
was great to see (and make!) so many friends from all over the world
in person again, and I was happy to work on specific issues together
with other Debian developers. I am especially thankful to David
Bremner for fixing the syncing of the flagged tag when added to new
messages (patch series). This allows me to easily sync the one
tag (inbox) that is not statically assigned during notmuch new, by
using flagged as a synchronization tool. This allows me to use
notmuch more easily across multiple machines without having to sync
all tags with dump/restore or using muchsync which wasn't working for
me (although a new release came out which may fix my issues). The
magic incantation looks something like this:
notmuch tag -inbox tag:inbox and not tag:flagged
notmuch tag +inbox not tag:inbox and tag:flagged
However, most of my time in the first week (Debcamp) was spent trying
to complete the networking setup: configure switches, setup wiring and
so on. I also configured an apt-cacher-ng proxy to serve
packages to attendees during the conference. I configured it with
Avahi to configure clients automatically, which led me to discover
(and fix) issue Debian bug #870321) although there are more issues
with the autodiscovery mechanism... I spent extra time to document the
(somewhat simple) configuration of such a server in the Debian
wiki because it was not the first time I had research that
procedure...
I somehow thought this was a great time to upgrade my laptop to
stretch. Normally, I keep that device running stable because I don't
use it often and I don't want to have major traumatizing upgrades
every time I leave with it on a trip. But this time was special: there
were literally hundreds of Debian developers to help me out if there
was trouble. And there was, of course, trouble as it turns out! I had
problems with the fonts on my display, because, well, I had
suspended (twice) my laptop during the install. The fix was simply
to flush the fontconfig cache, and I tried to document this in the
fonts wiki page and my upgrades page.
I also gave a short training called Debian packaging 101 which
was pretty successful. Like the short presentation I made at the last
Montreal BSP, the workshop was
based on my quick debian development guide.
I'm thinking of expanding this to a larger audience with a "102"
course that would discuss more complex packaging problems. But my
secret plan (well, secret until now I guess) is to make packaging
procedures more uniform in Debian by training new Debian packagers
using that same training for the next 2 decades. But I will probably
start by just trying to do this again at the next Debconf, if I can
attend.
Debian uploads
I also sponsored two packages during Debconf: one was a "scratch an
itch" upload (elpa-ivy) which I requested (Debian bug #863216) as part of a larger effort to ship the Emacs elisp packages
as Debian packages. The other was an upload of diceware to build the documentation in a separate package and fix
other issues I have found in the package during a review.
I also uploaded a bunch of other fixes to the Debian archive:
- slop upstream update and matching maim NMU
- asked for gnome-web-photo removal (Debian bug #873015)
- charybdis 3.5.5-2 to officially switch to mbedtls (Debian bug #705369)
- gmpc: ship pending patches from git and Ubuntu
- horst: new upstream release and workaround for sparse
bug Debian bug #873508
- uploaded percol to NEW (Debian bug #754972)
Signing keys rotation
I also started the process of moving my main OpenPGP certification key
by adding a signing subkey. The subkey is stored in a cryptographic
token so I can sign things on more than one machine without storing
that critical key on all those devices physically.
Unfortunately, this meant that I need to do some shenanigans when I
want to sign content in my Debian work, because the new subkey takes
time to propagate to the Debian archive. For example, I have to
specify the primary key with a "bang" when signing packages (debsign
-k '792152527B75921E!' ...) or use inline signatures in email sent
for security announcement (since that trick doesn't work in Mutt or
Notmuch). I tried to figure out how to better coordinate this next
time by reading up documentation on keyring.debian.org, but there
is no fixed date for key changes on the rsync interface. There are
"monthly changes" so one's best bet is to look for the last change in
their git repository.
GitLab.com and LFS migration
I finally turned off my src.anarc.at git repository service by
moving the remaining repos to GitLab. Unfortunately, GitLab
removed support for git-annex recently, so I had to migrate my
repositories to Git-LFS, which was an interesting experience. LFS is
pretty easy to use, definitely simpler than git-annex. It also seems
to be a good match for the use-case at hand, which is to store large
files (videos, namely) as part of slides for presentations.
It turns out that their migration guide could have been made much
simpler. I tried to submit those changes to the documentation but
couldn't fork the GitLab EE project to make a patch, so I just
documented the issue in the original MR for now. While I was
there I filed a feature request to add a new reference shortcut
(GL-NNN) after noticing a similar token used on GitHub. This
would be a useful addition because I often have numbering conflicts
between Debian BTS bug numbers and GitLab issues in packages I
maintain there. In particular, I have problems using GitLab issue
numbers in Monkeysign, because commit logs end up in Debian changelogs
and will be detected by the Debian infrastructure even though those
are GitLab bug numbers. Using such a shortcut would avoid detection
and such a conflict.
Numpy-stats
I wrote a small tool to extract numeric statistics from a given
file. I often do ad-hoc benchmarks where I store a bunch of numbers in
a file and then try to make averages and so on. As an exercise in
learning NumPy, I figured I would write such a simple tool,
called numpy-stats, which probably sounds naive to seasoned
Python scientists.
My incentive was that I was trying to figure out what was the
distribution of password length in a given password generator
scheme. So I wrote this simple script:
for i in seq 10000 ; do
shuf -n4 /usr/share/dict/words tr -d '\n'
done > length
And then feed that data in the tool:
$ numpy-stats lengths
"max": 60,
"mean": 33.883293722913464,
"median": 34.0,
"min": 14,
"size": 143060,
"std": 5.101490225062775
I am surprised that there isn't such a tool already: hopefully I am
wrong and will just be pointed towards the better alternative in the
comments here!
Safe Eyes
I added screensaver support to the new SafeEyes project,
which I am considering as a replacement to the workrave
project I have been using for years. I really like how the
interruptions basically block the whole screen: way more effective
than only blocking the keyboard, because all potential distractions go
away.
One feature that is missing is keystrokes and mouse movement
counting and of course an official Debian package, although
the latter would be easy to fix because upstream already has an
unofficial build. I am thinking of writing my own little tool to count
keystrokes, since the overlap between SafeEyes and such a counter
isn't absolutely necessary. This is something that workrave does, but
there are "idle time" extensions in Xorg that do not need to count
keystrokes. There are already certain tools to count input events, but
none seem to do what I want (most of them are basically
keyloggers). It would be an interesting test to see if it's possible
to write something that would work both for Xorg and Wayland at the
same time. Unfortunately, preliminary research show that:
- in Xorg, the only way to implement this is to sniff all events,
ie. to implement a keylogger
- in Wayland, this is completely unsupported. it seems some
compositors could implement such a counter, but then it means
that this is compositor specific, or, in other words, unportable
So there is little hope here, which brings to my mind "painmeter" as
an appropriate name for this future programming nightmare.
Ansible
I sent my first contribution to the ansible project with a
small documentation fix. I had an eye opener recently when I
discovered a GitLab ansible prototype that would manipulate
GitLab settings. When I first discovered Ansible, I was frustrated by
the YAML/Jinja DSL: it felt silly to write all this code in YAML when
you are a Python developer. It was great to see reasonably
well-written Python code that would do things and delegate the
metadata storage (and only that!) to YAML, as opposed to using YAML as
a DSL.
So I figured I would look at the Ansible documentation on how this
works, but unfortunately, the Ansible documentation is severly lacking
in this area. There are broken links (I only fixed one page) and
missing pieces. For example, the developing plugins page doesn't
explain how to program a plugin at all.
I was told on IRC that: "documentation around developing plugins is
sparse in general. the code is the best documentation that exists
(right now)". I didn't get a reply when asking which code in
particular could provide good examples either. In comparison, Puppet
has excellent documentation on how to create custom types,
functions and facts. That is definitely a turn-off for a new
contributor, but at least my pull request was merged in and I can only
hope that seasoned Ansible contributors expand on this critical piece
of documentation eventually.
Misc
As you can see, I'm all over the place, as usual. GitHub tells me I
"Opened 13 other pull requests in 11 repositories" (emphasis mine),
which I guess means on top of the "9 commits in 5 repositories"
mentioned earlier. My profile probably tells a more detailed
story that what would be useful to mention here. I should also mention
how difficult it is to write those reports: I basically do a
combination of looking into my GitHub and GitLab profiles, the last 30
days of emails
and filesystem changes (!!). En vrac, a list of
changes which may be of interest:
- font-large (and its alias, font-small): shortcut to send
the right escape sequence to rxvt so it changes its font
- fix-acer: short script to hardcode the modeline (you remember
those?!) for my screen which has a broken EDID pin (so
autodetection fails, yay Xorg log files...)
- ikiwiki-pandoc-quickie: fake ikiwiki renderer that (ab)uses
pandoc to generate a HTML file with the right stylesheet to preview
Markdown as it may look in this blog (the basic template is
missing still)
- git-annex-transfer: a command I've often been missing in
git-annex, which is a way to transfer files between remotes
without having to copy them locally (upstream feature request)
- I linked the graphics of the Debian archive software architecture
in the Debian wiki in the hope more people notice it.
- I did some tweaks on my Taffybar to introduce a battery meter
and hoping to have temperature sensors, which mostly
failed. there's a pending pull request that may bring some
sense into this, hopefully.
- I made two small patches in Monkeysign to fix
gpg.conf handling and multiple email output, a dumb bug I cannot
believe anyone noticed or reported just yet. Thanks Valerie for the
bug report! The upload of this in Debian is pending a review from
the release team.
dh key too small errors for Rubygems, but also other
errors for Ruby. I also had trouble backporting one test which I had
to simply skip for Rubygems. I uploaded and announced test
packages and hopefully I'll be able to complete this work soon,
although I would certainly appreciate any help on this...
Triage
I took a look at the sox, libvorbis and
exiv2 issues. None had fixes available. sox and exiv2 were
basically a list of fuzzing issues, which are often minor or at least
of unknown severity. Those would have required a significant amount of
work and I figured I would prioritize other work first.
I also triaged CVE-2017-7506, which doesn't seem to affect
the spice package in wheezy, after doing a fairly thorough
audit of the code. The vulnerability is specifically bound to the
reds_on_main_agent_monitors_config function, which is simply not
present in our older version. A hostile message would fall through the
code and not provoke memory allocation or out of bounds access, so I
simply marked the wheezy version as not-affected, something which
usually happens during the original triage but can also happen during
the actual patching work, as in this case.
Other free software work
This describes the volunteer work I do on various free software
projects. This month, again, my internal reports show that I spent
about the same time on volunteer and paid time, but this is probably a
wrong estimate because I spent a lot of time at Debconf which I didn't
clock in...
Debconf
So I participated in the 17th Debian Conference in Montreal. It
was great to see (and make!) so many friends from all over the world
in person again, and I was happy to work on specific issues together
with other Debian developers. I am especially thankful to David
Bremner for fixing the syncing of the flagged tag when added to new
messages (patch series). This allows me to easily sync the one
tag (inbox) that is not statically assigned during notmuch new, by
using flagged as a synchronization tool. This allows me to use
notmuch more easily across multiple machines without having to sync
all tags with dump/restore or using muchsync which wasn't working for
me (although a new release came out which may fix my issues). The
magic incantation looks something like this:
notmuch tag -inbox tag:inbox and not tag:flagged
notmuch tag +inbox not tag:inbox and tag:flagged
However, most of my time in the first week (Debcamp) was spent trying
to complete the networking setup: configure switches, setup wiring and
so on. I also configured an apt-cacher-ng proxy to serve
packages to attendees during the conference. I configured it with
Avahi to configure clients automatically, which led me to discover
(and fix) issue Debian bug #870321) although there are more issues
with the autodiscovery mechanism... I spent extra time to document the
(somewhat simple) configuration of such a server in the Debian
wiki because it was not the first time I had research that
procedure...
I somehow thought this was a great time to upgrade my laptop to
stretch. Normally, I keep that device running stable because I don't
use it often and I don't want to have major traumatizing upgrades
every time I leave with it on a trip. But this time was special: there
were literally hundreds of Debian developers to help me out if there
was trouble. And there was, of course, trouble as it turns out! I had
problems with the fonts on my display, because, well, I had
suspended (twice) my laptop during the install. The fix was simply
to flush the fontconfig cache, and I tried to document this in the
fonts wiki page and my upgrades page.
I also gave a short training called Debian packaging 101 which
was pretty successful. Like the short presentation I made at the last
Montreal BSP, the workshop was
based on my quick debian development guide.
I'm thinking of expanding this to a larger audience with a "102"
course that would discuss more complex packaging problems. But my
secret plan (well, secret until now I guess) is to make packaging
procedures more uniform in Debian by training new Debian packagers
using that same training for the next 2 decades. But I will probably
start by just trying to do this again at the next Debconf, if I can
attend.
Debian uploads
I also sponsored two packages during Debconf: one was a "scratch an
itch" upload (elpa-ivy) which I requested (Debian bug #863216) as part of a larger effort to ship the Emacs elisp packages
as Debian packages. The other was an upload of diceware to build the documentation in a separate package and fix
other issues I have found in the package during a review.
I also uploaded a bunch of other fixes to the Debian archive:
- slop upstream update and matching maim NMU
- asked for gnome-web-photo removal (Debian bug #873015)
- charybdis 3.5.5-2 to officially switch to mbedtls (Debian bug #705369)
- gmpc: ship pending patches from git and Ubuntu
- horst: new upstream release and workaround for sparse
bug Debian bug #873508
- uploaded percol to NEW (Debian bug #754972)
Signing keys rotation
I also started the process of moving my main OpenPGP certification key
by adding a signing subkey. The subkey is stored in a cryptographic
token so I can sign things on more than one machine without storing
that critical key on all those devices physically.
Unfortunately, this meant that I need to do some shenanigans when I
want to sign content in my Debian work, because the new subkey takes
time to propagate to the Debian archive. For example, I have to
specify the primary key with a "bang" when signing packages (debsign
-k '792152527B75921E!' ...) or use inline signatures in email sent
for security announcement (since that trick doesn't work in Mutt or
Notmuch). I tried to figure out how to better coordinate this next
time by reading up documentation on keyring.debian.org, but there
is no fixed date for key changes on the rsync interface. There are
"monthly changes" so one's best bet is to look for the last change in
their git repository.
GitLab.com and LFS migration
I finally turned off my src.anarc.at git repository service by
moving the remaining repos to GitLab. Unfortunately, GitLab
removed support for git-annex recently, so I had to migrate my
repositories to Git-LFS, which was an interesting experience. LFS is
pretty easy to use, definitely simpler than git-annex. It also seems
to be a good match for the use-case at hand, which is to store large
files (videos, namely) as part of slides for presentations.
It turns out that their migration guide could have been made much
simpler. I tried to submit those changes to the documentation but
couldn't fork the GitLab EE project to make a patch, so I just
documented the issue in the original MR for now. While I was
there I filed a feature request to add a new reference shortcut
(GL-NNN) after noticing a similar token used on GitHub. This
would be a useful addition because I often have numbering conflicts
between Debian BTS bug numbers and GitLab issues in packages I
maintain there. In particular, I have problems using GitLab issue
numbers in Monkeysign, because commit logs end up in Debian changelogs
and will be detected by the Debian infrastructure even though those
are GitLab bug numbers. Using such a shortcut would avoid detection
and such a conflict.
Numpy-stats
I wrote a small tool to extract numeric statistics from a given
file. I often do ad-hoc benchmarks where I store a bunch of numbers in
a file and then try to make averages and so on. As an exercise in
learning NumPy, I figured I would write such a simple tool,
called numpy-stats, which probably sounds naive to seasoned
Python scientists.
My incentive was that I was trying to figure out what was the
distribution of password length in a given password generator
scheme. So I wrote this simple script:
for i in seq 10000 ; do
shuf -n4 /usr/share/dict/words tr -d '\n'
done > length
And then feed that data in the tool:
$ numpy-stats lengths
"max": 60,
"mean": 33.883293722913464,
"median": 34.0,
"min": 14,
"size": 143060,
"std": 5.101490225062775
I am surprised that there isn't such a tool already: hopefully I am
wrong and will just be pointed towards the better alternative in the
comments here!
Safe Eyes
I added screensaver support to the new SafeEyes project,
which I am considering as a replacement to the workrave
project I have been using for years. I really like how the
interruptions basically block the whole screen: way more effective
than only blocking the keyboard, because all potential distractions go
away.
One feature that is missing is keystrokes and mouse movement
counting and of course an official Debian package, although
the latter would be easy to fix because upstream already has an
unofficial build. I am thinking of writing my own little tool to count
keystrokes, since the overlap between SafeEyes and such a counter
isn't absolutely necessary. This is something that workrave does, but
there are "idle time" extensions in Xorg that do not need to count
keystrokes. There are already certain tools to count input events, but
none seem to do what I want (most of them are basically
keyloggers). It would be an interesting test to see if it's possible
to write something that would work both for Xorg and Wayland at the
same time. Unfortunately, preliminary research show that:
- in Xorg, the only way to implement this is to sniff all events,
ie. to implement a keylogger
- in Wayland, this is completely unsupported. it seems some
compositors could implement such a counter, but then it means
that this is compositor specific, or, in other words, unportable
So there is little hope here, which brings to my mind "painmeter" as
an appropriate name for this future programming nightmare.
Ansible
I sent my first contribution to the ansible project with a
small documentation fix. I had an eye opener recently when I
discovered a GitLab ansible prototype that would manipulate
GitLab settings. When I first discovered Ansible, I was frustrated by
the YAML/Jinja DSL: it felt silly to write all this code in YAML when
you are a Python developer. It was great to see reasonably
well-written Python code that would do things and delegate the
metadata storage (and only that!) to YAML, as opposed to using YAML as
a DSL.
So I figured I would look at the Ansible documentation on how this
works, but unfortunately, the Ansible documentation is severly lacking
in this area. There are broken links (I only fixed one page) and
missing pieces. For example, the developing plugins page doesn't
explain how to program a plugin at all.
I was told on IRC that: "documentation around developing plugins is
sparse in general. the code is the best documentation that exists
(right now)". I didn't get a reply when asking which code in
particular could provide good examples either. In comparison, Puppet
has excellent documentation on how to create custom types,
functions and facts. That is definitely a turn-off for a new
contributor, but at least my pull request was merged in and I can only
hope that seasoned Ansible contributors expand on this critical piece
of documentation eventually.
Misc
As you can see, I'm all over the place, as usual. GitHub tells me I
"Opened 13 other pull requests in 11 repositories" (emphasis mine),
which I guess means on top of the "9 commits in 5 repositories"
mentioned earlier. My profile probably tells a more detailed
story that what would be useful to mention here. I should also mention
how difficult it is to write those reports: I basically do a
combination of looking into my GitHub and GitLab profiles, the last 30
days of emails
and filesystem changes (!!). En vrac, a list of
changes which may be of interest:
- font-large (and its alias, font-small): shortcut to send
the right escape sequence to rxvt so it changes its font
- fix-acer: short script to hardcode the modeline (you remember
those?!) for my screen which has a broken EDID pin (so
autodetection fails, yay Xorg log files...)
- ikiwiki-pandoc-quickie: fake ikiwiki renderer that (ab)uses
pandoc to generate a HTML file with the right stylesheet to preview
Markdown as it may look in this blog (the basic template is
missing still)
- git-annex-transfer: a command I've often been missing in
git-annex, which is a way to transfer files between remotes
without having to copy them locally (upstream feature request)
- I linked the graphics of the Debian archive software architecture
in the Debian wiki in the hope more people notice it.
- I did some tweaks on my Taffybar to introduce a battery meter
and hoping to have temperature sensors, which mostly
failed. there's a pending pull request that may bring some
sense into this, hopefully.
- I made two small patches in Monkeysign to fix
gpg.conf handling and multiple email output, a dumb bug I cannot
believe anyone noticed or reported just yet. Thanks Valerie for the
bug report! The upload of this in Debian is pending a review from
the release team.
Debconf
So I participated in the 17th Debian Conference in Montreal. It
was great to see (and make!) so many friends from all over the world
in person again, and I was happy to work on specific issues together
with other Debian developers. I am especially thankful to David
Bremner for fixing the syncing of the flagged tag when added to new
messages (patch series). This allows me to easily sync the one
tag (inbox) that is not statically assigned during notmuch new, by
using flagged as a synchronization tool. This allows me to use
notmuch more easily across multiple machines without having to sync
all tags with dump/restore or using muchsync which wasn't working for
me (although a new release came out which may fix my issues). The
magic incantation looks something like this:
notmuch tag -inbox tag:inbox and not tag:flagged
notmuch tag +inbox not tag:inbox and tag:flagged
However, most of my time in the first week (Debcamp) was spent trying
to complete the networking setup: configure switches, setup wiring and
so on. I also configured an apt-cacher-ng proxy to serve
packages to attendees during the conference. I configured it with
Avahi to configure clients automatically, which led me to discover
(and fix) issue Debian bug #870321) although there are more issues
with the autodiscovery mechanism... I spent extra time to document the
(somewhat simple) configuration of such a server in the Debian
wiki because it was not the first time I had research that
procedure...
I somehow thought this was a great time to upgrade my laptop to
stretch. Normally, I keep that device running stable because I don't
use it often and I don't want to have major traumatizing upgrades
every time I leave with it on a trip. But this time was special: there
were literally hundreds of Debian developers to help me out if there
was trouble. And there was, of course, trouble as it turns out! I had
problems with the fonts on my display, because, well, I had
suspended (twice) my laptop during the install. The fix was simply
to flush the fontconfig cache, and I tried to document this in the
fonts wiki page and my upgrades page.
I also gave a short training called Debian packaging 101 which
was pretty successful. Like the short presentation I made at the last
Montreal BSP, the workshop was
based on my quick debian development guide.
I'm thinking of expanding this to a larger audience with a "102"
course that would discuss more complex packaging problems. But my
secret plan (well, secret until now I guess) is to make packaging
procedures more uniform in Debian by training new Debian packagers
using that same training for the next 2 decades. But I will probably
start by just trying to do this again at the next Debconf, if I can
attend.
Debian uploads
I also sponsored two packages during Debconf: one was a "scratch an
itch" upload (elpa-ivy) which I requested (Debian bug #863216) as part of a larger effort to ship the Emacs elisp packages
as Debian packages. The other was an upload of diceware to build the documentation in a separate package and fix
other issues I have found in the package during a review.
I also uploaded a bunch of other fixes to the Debian archive:
- slop upstream update and matching maim NMU
- asked for gnome-web-photo removal (Debian bug #873015)
- charybdis 3.5.5-2 to officially switch to mbedtls (Debian bug #705369)
- gmpc: ship pending patches from git and Ubuntu
- horst: new upstream release and workaround for sparse
bug Debian bug #873508
- uploaded percol to NEW (Debian bug #754972)
Signing keys rotation
I also started the process of moving my main OpenPGP certification key
by adding a signing subkey. The subkey is stored in a cryptographic
token so I can sign things on more than one machine without storing
that critical key on all those devices physically.
Unfortunately, this meant that I need to do some shenanigans when I
want to sign content in my Debian work, because the new subkey takes
time to propagate to the Debian archive. For example, I have to
specify the primary key with a "bang" when signing packages (debsign
-k '792152527B75921E!' ...) or use inline signatures in email sent
for security announcement (since that trick doesn't work in Mutt or
Notmuch). I tried to figure out how to better coordinate this next
time by reading up documentation on keyring.debian.org, but there
is no fixed date for key changes on the rsync interface. There are
"monthly changes" so one's best bet is to look for the last change in
their git repository.
GitLab.com and LFS migration
I finally turned off my src.anarc.at git repository service by
moving the remaining repos to GitLab. Unfortunately, GitLab
removed support for git-annex recently, so I had to migrate my
repositories to Git-LFS, which was an interesting experience. LFS is
pretty easy to use, definitely simpler than git-annex. It also seems
to be a good match for the use-case at hand, which is to store large
files (videos, namely) as part of slides for presentations.
It turns out that their migration guide could have been made much
simpler. I tried to submit those changes to the documentation but
couldn't fork the GitLab EE project to make a patch, so I just
documented the issue in the original MR for now. While I was
there I filed a feature request to add a new reference shortcut
(GL-NNN) after noticing a similar token used on GitHub. This
would be a useful addition because I often have numbering conflicts
between Debian BTS bug numbers and GitLab issues in packages I
maintain there. In particular, I have problems using GitLab issue
numbers in Monkeysign, because commit logs end up in Debian changelogs
and will be detected by the Debian infrastructure even though those
are GitLab bug numbers. Using such a shortcut would avoid detection
and such a conflict.
Numpy-stats
I wrote a small tool to extract numeric statistics from a given
file. I often do ad-hoc benchmarks where I store a bunch of numbers in
a file and then try to make averages and so on. As an exercise in
learning NumPy, I figured I would write such a simple tool,
called numpy-stats, which probably sounds naive to seasoned
Python scientists.
My incentive was that I was trying to figure out what was the
distribution of password length in a given password generator
scheme. So I wrote this simple script:
for i in seq 10000 ; do
shuf -n4 /usr/share/dict/words tr -d '\n'
done > length
And then feed that data in the tool:
$ numpy-stats lengths
"max": 60,
"mean": 33.883293722913464,
"median": 34.0,
"min": 14,
"size": 143060,
"std": 5.101490225062775
I am surprised that there isn't such a tool already: hopefully I am
wrong and will just be pointed towards the better alternative in the
comments here!
Safe Eyes
I added screensaver support to the new SafeEyes project,
which I am considering as a replacement to the workrave
project I have been using for years. I really like how the
interruptions basically block the whole screen: way more effective
than only blocking the keyboard, because all potential distractions go
away.
One feature that is missing is keystrokes and mouse movement
counting and of course an official Debian package, although
the latter would be easy to fix because upstream already has an
unofficial build. I am thinking of writing my own little tool to count
keystrokes, since the overlap between SafeEyes and such a counter
isn't absolutely necessary. This is something that workrave does, but
there are "idle time" extensions in Xorg that do not need to count
keystrokes. There are already certain tools to count input events, but
none seem to do what I want (most of them are basically
keyloggers). It would be an interesting test to see if it's possible
to write something that would work both for Xorg and Wayland at the
same time. Unfortunately, preliminary research show that:
- in Xorg, the only way to implement this is to sniff all events,
ie. to implement a keylogger
- in Wayland, this is completely unsupported. it seems some
compositors could implement such a counter, but then it means
that this is compositor specific, or, in other words, unportable
So there is little hope here, which brings to my mind "painmeter" as
an appropriate name for this future programming nightmare.
Ansible
I sent my first contribution to the ansible project with a
small documentation fix. I had an eye opener recently when I
discovered a GitLab ansible prototype that would manipulate
GitLab settings. When I first discovered Ansible, I was frustrated by
the YAML/Jinja DSL: it felt silly to write all this code in YAML when
you are a Python developer. It was great to see reasonably
well-written Python code that would do things and delegate the
metadata storage (and only that!) to YAML, as opposed to using YAML as
a DSL.
So I figured I would look at the Ansible documentation on how this
works, but unfortunately, the Ansible documentation is severly lacking
in this area. There are broken links (I only fixed one page) and
missing pieces. For example, the developing plugins page doesn't
explain how to program a plugin at all.
I was told on IRC that: "documentation around developing plugins is
sparse in general. the code is the best documentation that exists
(right now)". I didn't get a reply when asking which code in
particular could provide good examples either. In comparison, Puppet
has excellent documentation on how to create custom types,
functions and facts. That is definitely a turn-off for a new
contributor, but at least my pull request was merged in and I can only
hope that seasoned Ansible contributors expand on this critical piece
of documentation eventually.
Misc
As you can see, I'm all over the place, as usual. GitHub tells me I
"Opened 13 other pull requests in 11 repositories" (emphasis mine),
which I guess means on top of the "9 commits in 5 repositories"
mentioned earlier. My profile probably tells a more detailed
story that what would be useful to mention here. I should also mention
how difficult it is to write those reports: I basically do a
combination of looking into my GitHub and GitLab profiles, the last 30
days of emails
and filesystem changes (!!). En vrac, a list of
changes which may be of interest:
- font-large (and its alias, font-small): shortcut to send
the right escape sequence to rxvt so it changes its font
- fix-acer: short script to hardcode the modeline (you remember
those?!) for my screen which has a broken EDID pin (so
autodetection fails, yay Xorg log files...)
- ikiwiki-pandoc-quickie: fake ikiwiki renderer that (ab)uses
pandoc to generate a HTML file with the right stylesheet to preview
Markdown as it may look in this blog (the basic template is
missing still)
- git-annex-transfer: a command I've often been missing in
git-annex, which is a way to transfer files between remotes
without having to copy them locally (upstream feature request)
- I linked the graphics of the Debian archive software architecture
in the Debian wiki in the hope more people notice it.
- I did some tweaks on my Taffybar to introduce a battery meter
and hoping to have temperature sensors, which mostly
failed. there's a pending pull request that may bring some
sense into this, hopefully.
- I made two small patches in Monkeysign to fix
gpg.conf handling and multiple email output, a dumb bug I cannot
believe anyone noticed or reported just yet. Thanks Valerie for the
bug report! The upload of this in Debian is pending a review from
the release team.
notmuch tag -inbox tag:inbox and not tag:flagged
notmuch tag +inbox not tag:inbox and tag:flagged
- slop upstream update and matching maim NMU
- asked for gnome-web-photo removal (Debian bug #873015)
- charybdis 3.5.5-2 to officially switch to mbedtls (Debian bug #705369)
- gmpc: ship pending patches from git and Ubuntu
- horst: new upstream release and workaround for sparse bug Debian bug #873508
- uploaded percol to NEW (Debian bug #754972)
Signing keys rotation
I also started the process of moving my main OpenPGP certification key
by adding a signing subkey. The subkey is stored in a cryptographic
token so I can sign things on more than one machine without storing
that critical key on all those devices physically.
Unfortunately, this meant that I need to do some shenanigans when I
want to sign content in my Debian work, because the new subkey takes
time to propagate to the Debian archive. For example, I have to
specify the primary key with a "bang" when signing packages (debsign
-k '792152527B75921E!' ...) or use inline signatures in email sent
for security announcement (since that trick doesn't work in Mutt or
Notmuch). I tried to figure out how to better coordinate this next
time by reading up documentation on keyring.debian.org, but there
is no fixed date for key changes on the rsync interface. There are
"monthly changes" so one's best bet is to look for the last change in
their git repository.
GitLab.com and LFS migration
I finally turned off my src.anarc.at git repository service by
moving the remaining repos to GitLab. Unfortunately, GitLab
removed support for git-annex recently, so I had to migrate my
repositories to Git-LFS, which was an interesting experience. LFS is
pretty easy to use, definitely simpler than git-annex. It also seems
to be a good match for the use-case at hand, which is to store large
files (videos, namely) as part of slides for presentations.
It turns out that their migration guide could have been made much
simpler. I tried to submit those changes to the documentation but
couldn't fork the GitLab EE project to make a patch, so I just
documented the issue in the original MR for now. While I was
there I filed a feature request to add a new reference shortcut
(GL-NNN) after noticing a similar token used on GitHub. This
would be a useful addition because I often have numbering conflicts
between Debian BTS bug numbers and GitLab issues in packages I
maintain there. In particular, I have problems using GitLab issue
numbers in Monkeysign, because commit logs end up in Debian changelogs
and will be detected by the Debian infrastructure even though those
are GitLab bug numbers. Using such a shortcut would avoid detection
and such a conflict.
Numpy-stats
I wrote a small tool to extract numeric statistics from a given
file. I often do ad-hoc benchmarks where I store a bunch of numbers in
a file and then try to make averages and so on. As an exercise in
learning NumPy, I figured I would write such a simple tool,
called numpy-stats, which probably sounds naive to seasoned
Python scientists.
My incentive was that I was trying to figure out what was the
distribution of password length in a given password generator
scheme. So I wrote this simple script:
for i in seq 10000 ; do
shuf -n4 /usr/share/dict/words tr -d '\n'
done > length
And then feed that data in the tool:
$ numpy-stats lengths
"max": 60,
"mean": 33.883293722913464,
"median": 34.0,
"min": 14,
"size": 143060,
"std": 5.101490225062775
I am surprised that there isn't such a tool already: hopefully I am
wrong and will just be pointed towards the better alternative in the
comments here!
Safe Eyes
I added screensaver support to the new SafeEyes project,
which I am considering as a replacement to the workrave
project I have been using for years. I really like how the
interruptions basically block the whole screen: way more effective
than only blocking the keyboard, because all potential distractions go
away.
One feature that is missing is keystrokes and mouse movement
counting and of course an official Debian package, although
the latter would be easy to fix because upstream already has an
unofficial build. I am thinking of writing my own little tool to count
keystrokes, since the overlap between SafeEyes and such a counter
isn't absolutely necessary. This is something that workrave does, but
there are "idle time" extensions in Xorg that do not need to count
keystrokes. There are already certain tools to count input events, but
none seem to do what I want (most of them are basically
keyloggers). It would be an interesting test to see if it's possible
to write something that would work both for Xorg and Wayland at the
same time. Unfortunately, preliminary research show that:
- in Xorg, the only way to implement this is to sniff all events,
ie. to implement a keylogger
- in Wayland, this is completely unsupported. it seems some
compositors could implement such a counter, but then it means
that this is compositor specific, or, in other words, unportable
So there is little hope here, which brings to my mind "painmeter" as
an appropriate name for this future programming nightmare.
Ansible
I sent my first contribution to the ansible project with a
small documentation fix. I had an eye opener recently when I
discovered a GitLab ansible prototype that would manipulate
GitLab settings. When I first discovered Ansible, I was frustrated by
the YAML/Jinja DSL: it felt silly to write all this code in YAML when
you are a Python developer. It was great to see reasonably
well-written Python code that would do things and delegate the
metadata storage (and only that!) to YAML, as opposed to using YAML as
a DSL.
So I figured I would look at the Ansible documentation on how this
works, but unfortunately, the Ansible documentation is severly lacking
in this area. There are broken links (I only fixed one page) and
missing pieces. For example, the developing plugins page doesn't
explain how to program a plugin at all.
I was told on IRC that: "documentation around developing plugins is
sparse in general. the code is the best documentation that exists
(right now)". I didn't get a reply when asking which code in
particular could provide good examples either. In comparison, Puppet
has excellent documentation on how to create custom types,
functions and facts. That is definitely a turn-off for a new
contributor, but at least my pull request was merged in and I can only
hope that seasoned Ansible contributors expand on this critical piece
of documentation eventually.
Misc
As you can see, I'm all over the place, as usual. GitHub tells me I
"Opened 13 other pull requests in 11 repositories" (emphasis mine),
which I guess means on top of the "9 commits in 5 repositories"
mentioned earlier. My profile probably tells a more detailed
story that what would be useful to mention here. I should also mention
how difficult it is to write those reports: I basically do a
combination of looking into my GitHub and GitLab profiles, the last 30
days of emails
and filesystem changes (!!). En vrac, a list of
changes which may be of interest:
- font-large (and its alias, font-small): shortcut to send
the right escape sequence to rxvt so it changes its font
- fix-acer: short script to hardcode the modeline (you remember
those?!) for my screen which has a broken EDID pin (so
autodetection fails, yay Xorg log files...)
- ikiwiki-pandoc-quickie: fake ikiwiki renderer that (ab)uses
pandoc to generate a HTML file with the right stylesheet to preview
Markdown as it may look in this blog (the basic template is
missing still)
- git-annex-transfer: a command I've often been missing in
git-annex, which is a way to transfer files between remotes
without having to copy them locally (upstream feature request)
- I linked the graphics of the Debian archive software architecture
in the Debian wiki in the hope more people notice it.
- I did some tweaks on my Taffybar to introduce a battery meter
and hoping to have temperature sensors, which mostly
failed. there's a pending pull request that may bring some
sense into this, hopefully.
- I made two small patches in Monkeysign to fix
gpg.conf handling and multiple email output, a dumb bug I cannot
believe anyone noticed or reported just yet. Thanks Valerie for the
bug report! The upload of this in Debian is pending a review from
the release team.
GL-NNN) after noticing a similar token used on GitHub. This
would be a useful addition because I often have numbering conflicts
between Debian BTS bug numbers and GitLab issues in packages I
maintain there. In particular, I have problems using GitLab issue
numbers in Monkeysign, because commit logs end up in Debian changelogs
and will be detected by the Debian infrastructure even though those
are GitLab bug numbers. Using such a shortcut would avoid detection
and such a conflict.
Numpy-stats
I wrote a small tool to extract numeric statistics from a given
file. I often do ad-hoc benchmarks where I store a bunch of numbers in
a file and then try to make averages and so on. As an exercise in
learning NumPy, I figured I would write such a simple tool,
called numpy-stats, which probably sounds naive to seasoned
Python scientists.
My incentive was that I was trying to figure out what was the
distribution of password length in a given password generator
scheme. So I wrote this simple script:
for i in seq 10000 ; do
shuf -n4 /usr/share/dict/words tr -d '\n'
done > length
And then feed that data in the tool:
$ numpy-stats lengths
"max": 60,
"mean": 33.883293722913464,
"median": 34.0,
"min": 14,
"size": 143060,
"std": 5.101490225062775
I am surprised that there isn't such a tool already: hopefully I am
wrong and will just be pointed towards the better alternative in the
comments here!
Safe Eyes
I added screensaver support to the new SafeEyes project,
which I am considering as a replacement to the workrave
project I have been using for years. I really like how the
interruptions basically block the whole screen: way more effective
than only blocking the keyboard, because all potential distractions go
away.
One feature that is missing is keystrokes and mouse movement
counting and of course an official Debian package, although
the latter would be easy to fix because upstream already has an
unofficial build. I am thinking of writing my own little tool to count
keystrokes, since the overlap between SafeEyes and such a counter
isn't absolutely necessary. This is something that workrave does, but
there are "idle time" extensions in Xorg that do not need to count
keystrokes. There are already certain tools to count input events, but
none seem to do what I want (most of them are basically
keyloggers). It would be an interesting test to see if it's possible
to write something that would work both for Xorg and Wayland at the
same time. Unfortunately, preliminary research show that:
- in Xorg, the only way to implement this is to sniff all events,
ie. to implement a keylogger
- in Wayland, this is completely unsupported. it seems some
compositors could implement such a counter, but then it means
that this is compositor specific, or, in other words, unportable
So there is little hope here, which brings to my mind "painmeter" as
an appropriate name for this future programming nightmare.
Ansible
I sent my first contribution to the ansible project with a
small documentation fix. I had an eye opener recently when I
discovered a GitLab ansible prototype that would manipulate
GitLab settings. When I first discovered Ansible, I was frustrated by
the YAML/Jinja DSL: it felt silly to write all this code in YAML when
you are a Python developer. It was great to see reasonably
well-written Python code that would do things and delegate the
metadata storage (and only that!) to YAML, as opposed to using YAML as
a DSL.
So I figured I would look at the Ansible documentation on how this
works, but unfortunately, the Ansible documentation is severly lacking
in this area. There are broken links (I only fixed one page) and
missing pieces. For example, the developing plugins page doesn't
explain how to program a plugin at all.
I was told on IRC that: "documentation around developing plugins is
sparse in general. the code is the best documentation that exists
(right now)". I didn't get a reply when asking which code in
particular could provide good examples either. In comparison, Puppet
has excellent documentation on how to create custom types,
functions and facts. That is definitely a turn-off for a new
contributor, but at least my pull request was merged in and I can only
hope that seasoned Ansible contributors expand on this critical piece
of documentation eventually.
Misc
As you can see, I'm all over the place, as usual. GitHub tells me I
"Opened 13 other pull requests in 11 repositories" (emphasis mine),
which I guess means on top of the "9 commits in 5 repositories"
mentioned earlier. My profile probably tells a more detailed
story that what would be useful to mention here. I should also mention
how difficult it is to write those reports: I basically do a
combination of looking into my GitHub and GitLab profiles, the last 30
days of emails
and filesystem changes (!!). En vrac, a list of
changes which may be of interest:
- font-large (and its alias, font-small): shortcut to send
the right escape sequence to rxvt so it changes its font
- fix-acer: short script to hardcode the modeline (you remember
those?!) for my screen which has a broken EDID pin (so
autodetection fails, yay Xorg log files...)
- ikiwiki-pandoc-quickie: fake ikiwiki renderer that (ab)uses
pandoc to generate a HTML file with the right stylesheet to preview
Markdown as it may look in this blog (the basic template is
missing still)
- git-annex-transfer: a command I've often been missing in
git-annex, which is a way to transfer files between remotes
without having to copy them locally (upstream feature request)
- I linked the graphics of the Debian archive software architecture
in the Debian wiki in the hope more people notice it.
- I did some tweaks on my Taffybar to introduce a battery meter
and hoping to have temperature sensors, which mostly
failed. there's a pending pull request that may bring some
sense into this, hopefully.
- I made two small patches in Monkeysign to fix
gpg.conf handling and multiple email output, a dumb bug I cannot
believe anyone noticed or reported just yet. Thanks Valerie for the
bug report! The upload of this in Debian is pending a review from
the release team.
for i in seq 10000 ; do
shuf -n4 /usr/share/dict/words tr -d '\n'
done > length
$ numpy-stats lengths
"max": 60,
"mean": 33.883293722913464,
"median": 34.0,
"min": 14,
"size": 143060,
"std": 5.101490225062775
- in Xorg, the only way to implement this is to sniff all events, ie. to implement a keylogger
- in Wayland, this is completely unsupported. it seems some compositors could implement such a counter, but then it means that this is compositor specific, or, in other words, unportable
Ansible
I sent my first contribution to the ansible project with a
small documentation fix. I had an eye opener recently when I
discovered a GitLab ansible prototype that would manipulate
GitLab settings. When I first discovered Ansible, I was frustrated by
the YAML/Jinja DSL: it felt silly to write all this code in YAML when
you are a Python developer. It was great to see reasonably
well-written Python code that would do things and delegate the
metadata storage (and only that!) to YAML, as opposed to using YAML as
a DSL.
So I figured I would look at the Ansible documentation on how this
works, but unfortunately, the Ansible documentation is severly lacking
in this area. There are broken links (I only fixed one page) and
missing pieces. For example, the developing plugins page doesn't
explain how to program a plugin at all.
I was told on IRC that: "documentation around developing plugins is
sparse in general. the code is the best documentation that exists
(right now)". I didn't get a reply when asking which code in
particular could provide good examples either. In comparison, Puppet
has excellent documentation on how to create custom types,
functions and facts. That is definitely a turn-off for a new
contributor, but at least my pull request was merged in and I can only
hope that seasoned Ansible contributors expand on this critical piece
of documentation eventually.
Misc
As you can see, I'm all over the place, as usual. GitHub tells me I
"Opened 13 other pull requests in 11 repositories" (emphasis mine),
which I guess means on top of the "9 commits in 5 repositories"
mentioned earlier. My profile probably tells a more detailed
story that what would be useful to mention here. I should also mention
how difficult it is to write those reports: I basically do a
combination of looking into my GitHub and GitLab profiles, the last 30
days of emails
and filesystem changes (!!). En vrac, a list of
changes which may be of interest:
- font-large (and its alias, font-small): shortcut to send
the right escape sequence to rxvt so it changes its font
- fix-acer: short script to hardcode the modeline (you remember
those?!) for my screen which has a broken EDID pin (so
autodetection fails, yay Xorg log files...)
- ikiwiki-pandoc-quickie: fake ikiwiki renderer that (ab)uses
pandoc to generate a HTML file with the right stylesheet to preview
Markdown as it may look in this blog (the basic template is
missing still)
- git-annex-transfer: a command I've often been missing in
git-annex, which is a way to transfer files between remotes
without having to copy them locally (upstream feature request)
- I linked the graphics of the Debian archive software architecture
in the Debian wiki in the hope more people notice it.
- I did some tweaks on my Taffybar to introduce a battery meter
and hoping to have temperature sensors, which mostly
failed. there's a pending pull request that may bring some
sense into this, hopefully.
- I made two small patches in Monkeysign to fix
gpg.conf handling and multiple email output, a dumb bug I cannot
believe anyone noticed or reported just yet. Thanks Valerie for the
bug report! The upload of this in Debian is pending a review from
the release team.
and filesystem changes (!!). En vrac, a list of
changes which may be of interest:
- font-large (and its alias, font-small): shortcut to send the right escape sequence to rxvt so it changes its font
- fix-acer: short script to hardcode the modeline (you remember those?!) for my screen which has a broken EDID pin (so autodetection fails, yay Xorg log files...)
- ikiwiki-pandoc-quickie: fake ikiwiki renderer that (ab)uses pandoc to generate a HTML file with the right stylesheet to preview Markdown as it may look in this blog (the basic template is missing still)
- git-annex-transfer: a command I've often been missing in git-annex, which is a way to transfer files between remotes without having to copy them locally (upstream feature request)
- I linked the graphics of the Debian archive software architecture in the Debian wiki in the hope more people notice it.
- I did some tweaks on my Taffybar to introduce a battery meter and hoping to have temperature sensors, which mostly failed. there's a pending pull request that may bring some sense into this, hopefully.
- I made two small patches in Monkeysign to fix gpg.conf handling and multiple email output, a dumb bug I cannot believe anyone noticed or reported just yet. Thanks Valerie for the bug report! The upload of this in Debian is pending a review from the release team.
My monthly report covers a large part of what I have been doing in the free software world. I write it for
I was recently asked to sort things out so that
One month ago the Story Mode for 






Post-Solskogen, there hasn't been all that many commits in the main Nageru
repository, but that doesn't mean the project is standing still. In
particular, I've been working with NVIDIA to shake out a crash bug in their
drivers (which in itself uncovered some interesting debugging techniques,
although in the end, the bug turned out just to be uncovered by the boring
standard technique of analyzing crash dumps and writing a minimal program
to reproduce). But I've also been looking at intraframe codecs; my sort-of
plan was to go to
On the heels of the very recent
laser-cutter sprint
So I'm overcoming my jetlag after DebConf17 by helping to make the 
And now I'm even teaching weasel how to use this thing (and he already made interesting
new mistakes) and it looks like Ganneff & formorer are next. Fun fun fun!
Oh, and the Alioth sprint also seems to be quite productive, but I'll leave reporting about this
to others.
According to
Like
Update Some youtube links are not viewable or even seen on planet.debian.org. Seems p.d.o. tries its best to remove external links, sorry for the breakage.
Beware some youtube-links would be shared in this entry, sorry couldn t find a better/easier media platform to work with. If anyone knows any other platform or wants to suggest, feel free to either mail me or let me know in comments.
I want to start today s sharing with a picture of Ganesha I saw today. It is and was public art hence sharing it without an issue.
This is starting of festivities time in India and Ganesha or Ganpati is looked up as a good omen in India.
The festival of Ganesh Chaturthi would be starting on the 25th of August and is a sight to behold. Just like Rio has its carnival, Ganesh Chaturthi is also a carnival. We also have parades where people come with Pandals (or temporary structures)
The mythology says he has a sweet tooth (hence lot of distribution of sweets, especially modak) and anything which might be troubling people, he creates solutions for them.
Here is one video of how people celebrate his immersion in India. This is from my home-town few years ago, every year the madness and the celebrations are becoming more and more. People from far off come to see how we celebrate and see how different people make their Pandals. While some are with music, others are with social messages. Usually people start going to see these structures after dusk and return home way after midnight or early morning. I hope to do this endeavour after many years. One is drunk from hearing all sorts of different kids of music, decoration, messages, a feast and a strain to all the senses.
Ganesha immersion celebrations
Anyways, the above song is what would be called a perfect Sufi song. I hope people enjoy the longing and the silence which follows this piece.
Another classic one
4.
Lyrical song
Four years ago 
The
I used to think I was a programmer who did "sysadmin-stuff". Nowadays I interact with too many real programmers to believe that.
Or rather I can code/program/develop, but I'm not often as good as I could be. These days I'm getting more consistent with writing tests, and I like it when things are thoroughly planned and developed. But too often if I'm busy, or distracted, I think to myself "Hrm .. compiles? Probably done. Oops. Bug, you say?"
I was going to write about working with