Articles Labelled with “Tips”

Ascoltare Radio Monte Carlo… con Linux

Mi piace ascoltare la radio, specialmente quando programmo. Siccome siedo davanti ad un PC e siamo nel 2008, pretendo di ascoltare la mia stazione preferita, Radio Monte Carlo, usando il mio sistema operativo, cioè Linux (Debian “Sid”, per la precisione).

Purtroppo navigando sul sito della radio faccio fatica ad interagire con il player integrato e poi, visto che uso il browser per provare il software che scrivo, trovo scomodo avere una finestra impegnata ad ascoltare musica.

Così, smanettando un po’, ho trovato la URL da cui proviene lo stream, ascoltabile con MPlayer con il semplice comando:

$ mplayer rtsp://151.1.245.2/broadcast/2

con buona pace della terribile pagina web sul sito.

Buon ascolto…

Desktop wallpapers

Vladstudio logo

My computer desktop, both under Linux and Windows, is very clean: no icons of any kind, only a couple of semi-transparent widgets like a clock and a calendar sticked on the background. Nothing else. Since I use a personal computer for many hours a day, I want to see beautiful images, not a crappy desktop full of unused icons. So I spend some time looking for wallpapers images, which I usually find in Flickr or site like GNOME-look.org or KDE-look.org.

This morning I was surfing here and there when I run into this site: vladstudio.com. It’s the site of a Russian graphic designer in which you can find plenty of desktop wallpapers. I was struck by the originality of his works and the beautiful colors.

My advice is to take a round on Vlad site and enjoy his art.

Vim syntax highlighting for GIT and Cogito

Coloured GVim

If you use GIT or Cogito like I do every day, you might find useful to have the commit messages highlighted inside Vim (of course I assume you use Vim :-)).

First of all, copy these two syntax file into your ~/.vim/syntax/ directory:

Then add these two lines in your ~/.vimrc:
au BufNewFile,BufRead /tmp/gitci* setlocal textwidth=75 fileencoding=utf-8 encoding=utf-8 filetype=cogito
au BufNewFile,BufRead COMMIT_EDITMSG setlocal textwidth=75 fileencoding=utf-8 encoding=utf-8 filetype=gitcommit

This will load the correct syntax file and set the encoding of the message to UTF-8, which is the recommended encoding for GIT commit messages.

That’s all.

Copyright © 2004–2017 by .
Creative Commons License Content on this site is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 2.5 Italy License.

RSS Feed. Valid XHTML 1.1. This blog is written in Objective Caml. Design based on the work of Rodrigo Galindez.