About ao2


my name is Antonio Ospite: I am a lazy Computer Scientist from Naples in Italy, not in Florida.


Capturing a screenshot of the GDM login screen

These days GDM on Debian is running using Wayland, so the classic way of taking a screenshot using the X protocol does not work:

# Sleeping before launching the command allows to switch to the login screen
# before the screen gets actually captured.
# Otherwise if the login screen is not visible, only a black image will be
# captured.
sleep 6

sudo -u Debian-gdm\
  DISPLAY=:0 \
  XAUTHORITY=/var/run/user/109/gdm/Xauthority \
  import -display :0 -win root /tmp/GDM-screenshot.png"


Launching the Windows Recovery Environment

A friend of mine had a problem with his Windows 10 installation: the system booted but it was unresponsive, so it was not possible to enter the Windows Recovery Environment from Windows.


Experimenting with Gtk+ theme variants: Adwaita red

Most Gtk+ themes offer a “light” and a “dark” variant, however I found out that these names are just conventional: a Gtk+ theme can define variants with arbitrary names, so maybe this can be used for some fun stuff.


Remove images from PDF files

Some times ago I ran into some Service Manuals with unusual background images:


Tweeper 0.6 released, Twitter to RSS, with images

On May 23rd 2016 version 0.6 of tweeper has been released.


SaveMySugar: exchange messages using only phone rings

From “The Lord of the Phone-Rings”, about SaveMySugar:

One RING after them all, one RING to end them,
One RING to get the... messages, and from Morse code decode 'em.


libam7xxx-0.1.6 released

The libam7xxx-0.1.6 release is out; it's a maintenance release with no big new features.


Automatic motion trail effect with OpenCV

You know that effect in some videos where objects moving in the scene leave a trail of their old position?