You are here

Enrico Zini's blog

Enrico Zini's blog
Checked: 3 years 5 months ago
Updated: 3 years 5 months ago
Update every: 2 hours

Enrico Zini: blog
Subscribe to Enrico Zini's blog

if-you-know-a-browser-developer

Enrico Zini's blog - Tue, 01/09/2015 - 3:25pm
If you happen to know a browser developer...

Do you happen to know a developer of Firefox or Chrome or some other mainstream browser?

If so, can you please talk to them about our experiments with Client Certificate authentication in Debian?

Client Certificate authentication rocks; with just a couple of little tweaks in the interface, it would be pretty close to perfect.

My semi serious stand up comedy notes

Enrico Zini's blog - Tue, 18/08/2015 - 9:48am
My semi serious stand up comedy notes

Video

Disclaimers

“Someone has said that it requires less mental effort to condemn than to think.”

(Emma Goldman, on several things including mailing list flamewars)

Fascinating Aïda's "Dogging" song.

Look for "dogging etiquette" for more examples of code of conducts. Just don't take your computer for repair immediately afterwards™.

standup-comedy-notes

Enrico Zini's blog - Tue, 18/08/2015 - 9:48am
My semi serious stand up comedy notes Disclaimers

“Someone has said that it requires less mental effort to condemn than to think.”

(Emma Goldman, on several things including mailing list flamewars)

Fascinating Aïda's "Dogging" song.

Look for "dogging etiquette" for more examples of code of conducts. Just don't take your computer for repair immediately afterwards™.

expectations-needs

Enrico Zini's blog - Fri, 14/08/2015 - 10:13am
Expectations and needs

All people ever say is: "thank you" (a celebration of life) and "please" (an opportunity to make life more wonderful). (Marshall Rosenberg)

Sometimes, when I see the word "expectation" I try to read it as "need" and see how things change.

I noticed that this tends to reframe situations in a way that makes me feel more comfortable.

Expectations and needs

Enrico Zini's blog - Fri, 14/08/2015 - 10:13am
Expectations and needs

All people ever say is: "thank you" (a celebration of life) and "please" (an opportunity to make life more wonderful). (Marshall Rosenberg)

Sometimes, when I see the word "expectation" I try to read it as "need" and see how things change.

I noticed that this tends to reframe situations in a way that makes me feel more comfortable.

quote

Enrico Zini's blog - Sun, 19/07/2015 - 4:53pm
Random quote

Be selfish when you ask, honest when you reply, and when others reply, take them seriously.

(me, late at night)

italian-fattura-elettronica

Enrico Zini's blog - Thu, 02/07/2015 - 9:48pm
Billing an Italian public administration

Here's a simple guide for how I managed to bill one of my customers as is now mandated by law in Italy.

Create a new virtualbox machine

I would never do any of this to any system I would ever want to use for anything else, so it's virtual machine time.

debtags-rewrite-python3

Enrico Zini's blog - Sun, 21/06/2015 - 4:04pm
debtags rewritten in python3

In my long quest towards closing #540218, I have uploaded a new libept to experimental. Then I tried to build debtags on a sid+experimental chroot and the result runs but has libc's free() print existential warnings about whatevers.

05

Enrico Zini's blog - Mon, 01/06/2015 - 10:29am
Internet references saved for May 2015

Instead of keeping substantial tabs open until I have read all of them, or losing them in the jungle of browser bookmarks, I have written a script that collects them into a file per month, and turns them into markdown files for my blog. This way I sort of know where to find them, and if I do not, some internet search might. And if I wish, I can even choose to share it.

love-thy-neighbor

Enrico Zini's blog - Wed, 20/05/2015 - 9:35am
Love thy neighbor as thyself

‘Love thy neighbor as thyself’, words which astoundingly occur already in the Old Testament.

One can love one’s neighbor less than one loves oneself; one is then the egoist, the racketeer, the capitalist, the bourgeois. and although one may accumulate money and power one does not of necessity have a joyful heart, and the best and most attractive pleasures of the soul are blocked.

google-ics-evil

Enrico Zini's blog - Wed, 25/03/2015 - 8:50pm
Work around Google evil .ics feeds

I've happily been using 2015/akonadi-install for my calendars, and yesterday I added an .ics feed export from Google, as a URL file source. It is a link in the form: https://www.google.com/calendar/ical/person%40gmail.com/private-12341234123412341234123412341234/basic.ics

After doing that, I noticed that the fan in my laptop was on more often than usual, and I noticed that akonadi-server and postgres were running very often, and doing quite a lot of processing.

screen-dependent-geometry

Enrico Zini's blog - Mon, 16/03/2015 - 8:29pm
Screen-dependent window geometry

I have an external monitor for my laptop in my work desk at home, and when I work I keep a few windows like IRC on my laptop screen, and everything else on the external monitor. Then maybe I transfer on the sofa to watch a movie or in the kitchen to cook, and I unplug from the external monitor to bring the laptop with me. Then maybe I go back to the external monitor to resume working.

crypttab-reuse-passwords

Enrico Zini's blog - Thu, 12/03/2015 - 9:45pm
Reuse passwords in /etc/crypttab

Today's scenario was a laptop with an SSD and a spinning disk, and the goal was to deploy a Debian system on it so that as many things as possible are encrypted.

My preferred option for it is to setup one big LUKS partition in each disk, and put a LVM2 Physical Volume inside each partition. At boot, the two LUKS partition are opened, their contents are assembled into a Volume Group, and I can have everything I want inside.

This has advantages:

free-as-in-facebook

Enrico Zini's blog - Mon, 09/03/2015 - 9:58am
Free as in Facebook

Yesterday we were in an airport. We tried to connect to the airport "free" wifi. It had a captive portal that asked for a lot of personal information before one could maybe get on the internet, and we gave up. Bologna Airport, no matter what they do to pretend that they like you, it's always clear that they don't.

I looked at the captive portal screen and I said: «ah yes, "free" wifi. Free as in Facebook».

We figured that we had an expression that will want to be reused.

python-api-stability

Enrico Zini's blog - Fri, 27/02/2015 - 11:02am
Another day in the life of a poor developer
try:
    # After Python 3.3
    from collections.abc import Iterable
except ImportError:
    # This has changed in Python 3.3 (why, oh why?), reinforcing the idea that
    # the best Python version ever is still 2.7, simply because upstream has
    # promised that they won't touch it (and break it) for at least 5 more
    # years.
    from collections import Iterable

import shlex
if hasattr(shlex, "quote"):
    # New in version 3.3.
    shell_quote = shlex.quote
else:
    # Available since python 1.6 but deprecated since version 2.7

akonadi-client-example

Enrico Zini's blog - Mon, 23/02/2015 - 2:44pm
Akonadi client example

After many failed attemps I have managed to build a C++ akonadi client. It has felt like one of the most frustrating programming experiences of my whole life, so I'm sharing the results hoping to spare others from all the suffering.

First thing first, akonadi client libraries are not in libakonadi-dev but in kdepimlibs5-dev, even if kdepimlibs5-dev does not show in apt-cache search akonadi.

akonadi-build-hth

Enrico Zini's blog - Mon, 23/02/2015 - 10:36am
The wonders of missing documentation

I'm new here, I want to make a simple C++ GUI app that pops up a QCalendarWidget which my local Akonadi has appointments.

I open qtcreator, create a new app, hack away for a while, then of course I get undefined references for all Akonadi symbols, since I didn't tell the build system that I'm building with akonadi. Ok.

akonadi-install

Enrico Zini's blog - Tue, 17/02/2015 - 2:34pm
Setting up Akonadi

Now that I have a CalDAV server that syncs with my phone I would like to use it from my desktop.

It looks like akonadi is able to sync with CalDAV servers, so I'm giving it a try.

systemd-default-rescue

Enrico Zini's blog - Tue, 10/02/2015 - 5:06pm
seat-inspect

Four months ago I wrote this somewhere:

Seeing a DD saying "this new dbus stuff scares me" would make most debian users scared. Seeing a DD who has an idea of what is going on, and who can explain it, would be an interesting and exciting experience.

So, let's be exemplary, competent and patient. Or at least, competent. Some may like or not like the changes, but do we all understand what is going on? Will we all be able to support our friends and customers running jessie?

mozilla-facepalm

Enrico Zini's blog - Fri, 23/01/2015 - 2:13pm
Mozilla marketplace facepalm

This made me sad.

My view, which didn't seem to be considered in that discussion, is that people concerned about software freedom and security are likely to stay the hell away from such an app market and its feedback forms.

Also, that thread made me so sad about the state of that developer community that I seriously do not feel like investing energy into going through the hoops of getting an account in their bugtracker to point this out.

Sigh.

miniscreen

Enrico Zini's blog - Wed, 21/01/2015 - 10:13am
Playing with python, terminfo and command output

I am experimenting with showing progress on the terminal for a subcommand that is being run, showing what is happening without scrolling away the output of the main program, and I came out with this little toy. It shows the last X lines of a subcommand output, then gets rid of everything after the command has ended.

Usability-wise, it feels like a tease to me: it looks like I'm being shown all sorts of information then they are taken away from me before I managed to make sense of them. However, I find it cute enough to share:

non-importa-che-mi-dai-del-voi

Enrico Zini's blog - Fri, 19/12/2014 - 2:55pm
Non importa che mi dai del voi

Dai, non importa che mi dai del voi

In che senso?

Eh, mi dici sempre "voi informatici", "voi tecnici", "voi..."

upgrade-encrypted-cyanogenmod

Enrico Zini's blog - Fri, 19/12/2014 - 9:21am
Upgrade Cyanogenmod with an encrypted phone

Cyanogenmod found an update, it downloaded it, then it rebooted to install it and nothing happened. It turns out that the update procedure cannot work if the zip file to install is in encrypted media, so a workaround is to move the zip into unencrypted external storage.

As far as I know, my Nexus 4 has no unencrypted external storage.

This is how I managed to upgrade it, I write it here so I can find it next time:

html5-sse

Enrico Zini's blog - Sun, 14/12/2014 - 3:32pm
HTML5 Server-sent events

I have a Django view that runs a slow script server-side, and streams the script output to Javascript. This is the bit of code that runs the script and turns the output into a stream of events:

Pages

Subscribe to Enrico Zini's blog