February, 2009


17
Feb 09

“Keep it up and running”

Yesterday I found The Admin Zen. Recommended reading for all the systems administrators out there. I liked the fact that some of the principles are loosely based on The Zen of Python, which you can read by just typing the following in a console:

python -c 'import this'

Enjoy… and keep your stuff up and running ;-)


11
Feb 09

Vim tip: Automatic indentation style

Today I have found the perfect solution for one of the usual headaches when you are diving into code of several projects which have different coding style: indentation. Just grab the DetectIndent script, place it into ~/.vim/plugin and execute the :D etectIndent command when desired. It will just do what one would expect: adjusting Vim indentation settings to match those of the current buffer. Of course it is not perfect, because it must work by analyzing the text and it could make a bad guess, but I have experienced no problem so far :-)

There are a lot of rarely used resources for the Vim editor, and most people sticks with default configurations provided by packagers of GNU/Linux distributions, even when some of them do not use Vim themselves! It has been online for a while, but today I wanted to let you know that I am sharing my configuration file. In the last five years, it has evolved from a simple file with a dozen of lines to a beast of ~600 lines, which includes hacks from several sources, as well as my own stuff.

Enjoy! ;-)


6
Feb 09

Using blogpost.py with Docutils

I am right now trying to add support for writing files in reStructuredText format to the blogpost tool. In fact, if you can see this post nicely formatted, I would be that the thing has worked and I will be posting the patch anytime soon™…

Stay tuned ;-)

Update: grab the patch here


4
Feb 09

Reminder: ffmpeg tolerance to bitrate/fps combinations

Today I hitted a known issue of the ffmpeg program (also known as “the Swiss Army knife of media editing”): the tolerance setting, which is controlled by the -bt switch must be higher than the value of the bitrate divided by the frames per second. In short:

  tolerante > bitrate / fps

I wonder why the heck the setting is not automatically adjusted…


2
Feb 09

Insane amount of e-mails

6666 e-mails

Yes, you have seen correctly: Sup has now 6666 e-mails in its index ;-)