Iustin Pop: Solarized colour theme
Solarized
A while back I was looking for some information on the web, and
happened upon a blog post about the subject. I don't remember what I
was looking for, but on the same blog, there was a screen shot of what
I then learned was the
Solarized theme. This caught
my eye that I decided to try it myself ASAP.
Up until last year, I've been using for many years the 'black on
light yellow' xterm scheme. This is good during the day, but too strong
during night, so on some machines I switched to 'white on black', but
this was not entirely satisfying.
The solarized theme promises to have consistent colours over both
light and dark background, which would help to make my setups finally
consistent, and extends to a number of programs. Amongst these, there
are themes for mutt on both light and dark backgrounds using only 16
colours. This was good, as my current hand-built theme is based on 256
colours, and this doesn't work well in the Linux console.
So I tried changing my terminal to the custom colours, played with it
for about 10 minutes, then decided that its contrast is too low,
bordering on unreadable. I switch to another desktop where I still had
open an xterm using white-on-black, and this being at night my eyes
immediately go 'no no no too high contrast'. In about ten minutes I
got so used to it that the old theme was really really
uncomfortable. There was no turning back now
Interestingly, the light theme was not that much better than
black-on-light-yellow, as that theme is already pretty well
behaved. But I still migrated for consistency.
Programs/configs
Starting from the home page
and the internet, I found resources for:
- Vim and Emacs
(for which I use the debian package
elpa-solarized-theme). - Midnight Commander, for which I currently use peel's theme, although I'm not happy with it; interestingly, the default theme almost works on 16-custom-colours light terminal scheme, but not quite on the dark one.
- Mutt, which is both in the main combined repository but also on the separate one. I'm not really happy with mutt's theme either, but that seems mostly because I was using a quite different theme before. I'll try to improve what I feel is missing over time.
- dircolors; I found
this to be an absolute requirement for good readability of
ls --color, as the defaults are too bad - I also took the opportunity to unify my
git diffandcolordifftheme, but this was not really something that I found and took 'as-is' from some repository; I basically built my own theme.
- by changing the Xresources/terminal 16 basic colours to custom RGB values, or:
- by using approximations from the fixed 256 colours available in the xterm-256color terminfo
- using customised 16-colour means that all terminal programs get the new colours scheme, even if they were designed (colour-wise) based on the standard values; this makes some things pretty unreadable (hence the need to fix dircolors), but at least somewhat consistent.
- using 256-colour palette, unchanged programs stay the same, but now they look very different than the programs that were updated to solarized; note thought I haven't tested this, but that's how I understand things would be.
Recently
When choosing a disk image format for your virtual machine one of the factors to take into considerations is its I/O performance. In this post I ll talk a bit about the internals of qcow2 and about one of the aspects that can affect its performance under QEMU: its consistency checks.
As you probably know, qcow2 is QEMU s native file format. The first thing that I d like to highlight is that this format is perfectly fine in most cases and its I/O performance is comparable to that of a raw file. When it isn t, chances are that this is due to an insufficiently large L2 cache. In one of my previous blog posts I wrote about 

I was an happy user of
On Friday night I attended a talk by Sherry Turkle called Reclaiming
Conversation: The Power of Talk in a Digital Age . Here are my notes.
Last week, while working on
My WordPress blog got hacked two days ago and now twice today. This morning I
purged MySQL and restored a good backup from three days ago, changed all DB and
WordPress passwords (both the old and new ones were long and autogenerated
ones), but not even an hour after the redeploy the hack was back. (It can still
be seen on
... but that doesn't mean the work is over.
One big job that needs to happen after the conference is to review and
release the video recordings that were made. With several hundreds of
videos to be checked and only a handful of people with the ability to do
so, review was a massive job that for the past three editions took
several months; e.g., in 2016 the last video work was done in July, when
the preparation of the 2017 edition had already started.
Obviously this is suboptimal, and therefore another solution was
required. After working on it for quite a while (in my spare time), I
came up with
A pure maintenance release of the