Monday, March 30, 2009

Ctrl-S in a shell

When you enter Ctrl-S in a shell, it pauses the program.
To resume use Ctrl-Q

Saturday, March 21, 2009

emacs+etags

from http://tulrich.com/geekstuff/emacs.html:

from your base dir:

$ etags [your cpp hpp files]
(creates a TAGS file)

Then, from within emacs, go over your function:
M-.       goes to the symbol definition
M-0 M-.   goes to the next matching definition
M-*       return to your starting point

Sunday, March 15, 2009

emacs readonly

The command `view-file' will open a file read-only; you could bind it to some convenient key in your .emacs.

C-x C-r open a file in read-only mode
C-x C-q toggle-read-only

Saturday, March 14, 2009

automounting with HAL

Following the instructions at this page:
http://en.gentoo-wiki.com/wiki/HAL


> rc-update show
> rc-update add hald default
> lshal


Note that because I previously tried "ivman", I had to remove it,


> emerge -a --depclean ivman


otherwise it would conflict with HAL, and I couldn't right-click and "safely remove".

Gesu' lava piu' bianco

Bruno Ballardini -- "Gesu' lava piu' bianco"

Questo libro e' un saggio in cui l'autore sostiene la tesi per cui la Chiesa e' stata un precursore(ice) delle piu' moderne strategie di marketing. Le prove a sostegno di questa tesi sono portate non secondo un ordine cronologico che segua lo sviluppo dell'organizzazione clericale (e dei fedeli che partecipano alla vita religiosa della Chiesa), ma piuttosto evolvendo dai piu' semplici concetti di marketing verso le strategie piu' avanzate. In questo modo anche una persona che non sappia nulla di marketing, come me, viene gradualmente a conoscenza dei termini e dei concetti usati in questo campo, e li vede applicati in casi specifici. I libro e' suddiviso in 6 capitoli: [1] La Genesi (del marketing) [2] La politica di prezzo come un fattore strategico [3] Merchandising e fidelizzazione del cliente [4] P come propaganda [5] Benchmarking e tecniche avanzate [6] Lo zen e l'arte del riposizionamento.
Riporto qua alcuni dei passaggi che mi hanno colpito di piu'.

Il mercato della colpa. E per conseguire il successo, [...], occorre innanzitutto preparare accuratamente il terreno. Ad esempio, creando disagio psicologico nel target. Per ottenere questo [...] non c'e' niente di meglio del senso di debito e del senso di colpa ad esso correlato. [...] esso e' infatti strettamente funzionale alla coesione sociale attorno all'autorita'. (pg.15)

In questo senso anche i miracoli, ovvero i ``fatti'' addotti come prova d'efficacia, potrebbero essere visti come una sorta di allucinazione testuale, un'ubriacatura da eccesso di parola. E' come se venisse esaudita l'aspettativa dei fedeli che fondano le loro rappresentazioni soltanto su quanto hanno esperito attraverso il testo scritto. Un meccanismo che origine in una fase precedente alla religione, quella della magia. Hubert e Mauss erano arrivati a comprendere che ``la maggior parte della magia e' costituita dai desideri.'' [...] Ecco il punto: il ricordo diviene scrittura, e quindi realta'. E' questo il vero miracolo. (pg.51)

Ecco una grande intuizione della Chiesa che il marketing moderno non ha mai attuato: e' piu' efficace istituire sul punto vendita una forma di animazione stabile che si ripeta regolarmente secondo gli stessi dettami, rispetto alla variazione continua. (pg.75)

Il punto di vendita piu' importante della catena deve avere sontuosita' e spettacolarita' tali da suscitare sensazioni forti. [...] D'altra parte, come potrebbero trasmettere i valori del bello coloro che hanno rinunciato alla vita mondana in favore della ragione aziendale? (pg.91)

[Referendum fecondazione eterologa] il Vaticano consiglio' l'astensione dal voto. E' qui la sottigliezza. Non votare ad un referendum abrogativo produce alla fine lo stesso risultato del votare ``no'' ma in piu' c'e' il vantaggio di evitare ai fedeli il problema di dover risolvere da soli una complicata questione etica che normalmente e' gestita dalla Chiesa. (pg. 178)

Allo stesso modo, occorre comprendere che i valori che le grandi multinazionali tentano di venderci ci appartengono gia'. Ci appartengono le cose della nostra vita, come pure i valori e le parole che li descrivono. Non esiste un amore cristiano, esiste l'amore. Si puo' avere un grande rigore morale anche senza essere religiosi. La fede non puo' essere condivisa e quindi divenire oggetto di massificazione da parte del marketing, ne' essere esportata, diventare merce di scambio, motivo di persuasione degli altri. Deve restare una questione rigorosamente privata e personale. Solo cosi' aumentera' l'autocoscienza e diminuiranno i conflitti. (pg. 200)

The letters of Vincent van Gogh

Vincent van Gogh -- "The letters of Vincent van Gogh"

I read this book, with much pleasure I must say, over the past few months. This is the collection of letters that Vincent van Gogh (1853-1890) exchanged from 1872 until his death. Those letters were mostly addressed to his brother Theo, with whom Vincent had a very close connection. I won't copy and paste here the details of van Gogh's life, but one thing that I want to keep in mind is the fact that his path started as a failed pastor, with delusions here and there, and mostly, with a long and intense training of himself (by himself for the most of it) as an artist. I jot down here few of the passages that I liked the most.

When I compare the state of the weather to our state of mind and our circumstances, subject to change and fluctuations like the weather, then I still have some hope that things may get better (pg.64)

And I don't think it ever occurs to her that God may only appear once we say the words, those words with which Multatuli ends his prayer of an unbeliever:`Oh God, there is no God.' [...] but you see, I love, and how could I feel love if I were notalive myself or if others were not alive, and if we were alive there is something wondrous about it. Now call that God or human nature or whatever you like, but there is a certain something I cannot define systematically, although it is very much alive and real, and you see, for me that something is God or as good as God. (pg.124)

What is drawing? How does one come to it? It is working through an invisible iron wall that seems to stand between what one feels and what one can do. How is one toget through that wall--since pounding at it is of no use? In my opinion one has to undermine that wall, filing through it steadily and patiently. (pg. 206)

I tell you, if one wants to be active, one must not be afraid of making mistakes now and then. Many people think that they will become good just by doing no harm--but that's a lie, and you yourself used to call it that. That way lies stagnation, mediocrity. (pg.281)

[About one of his paintings] So the last thing I would want is for people to admire or approve of it without knowing why. (pg. 291)

Enjoy yourself too much rather than tool little, and don't take art or love too seriously--there is very little one can do about it, it is chiefly a question of temperament. [...] For me, for instance, it's a relief to do a painting, and without that I should be unhappier that I am. (pg. 338)

And if, deprived of the physical power, one tries to create thoughts instead of children, one is still very much part of humanity. And in my pictures I want to say something consoling as music does. I want to paint men and women with a touch of eternal, whose symbol was once the halo, which we try to convey by the very radiance and vibrancy of our colouring. (pg.394)

The day will come, however, when people will see they are worth more that the price of the paint and my living expenses, very magre on the whole, which we put into them. [about his paintings] (pg. 419)

Even though some of the letters are not particularly interesting, I still enjoyed the book very much. The life of Vincent van Gogh has been a real adventure: the struggles, doubts, and reflections of this painter are very intense, and very much close to what human beings in general experience, making it a source of comfort and inspiration. We feel less lonely in our little life, if we that know that other people, at some point, posed the same question which righ now seems to be so hard to ourself.