L'uso di questo sito
autorizza anche l'uso dei cookie
necessari al suo funzionamento.
(Altre informazioni)

Wednesday, September 28, 2011

Formazione professionale

Da bravo benpensante, ho passato un paio di giorni a scandalizzarmi dell'intervista televisiva di Terry de Nicolò (che altri chiamano l'intervista shock).

Poi ho capito che dev'essere stato un errore di programmazione. Quasi certamente doveva essere trasmessa tra i corsi di qualificazione professionale e lezioni universitarie che vanno (andavano?) normalmente in onda a tarda ora sul secondo canale.

In quel contesto, non c'è shock, ad esempio:

  • "la bellezza ha un valore" - come negarlo, nella sua professione. E dire che quasi tutti hanno capito "la bellezza è un valore";
  • "se sei racchia, se fai schifo, te ne devi stare a casa" - Un'imprecisione: puoi anche passeggiare sul marciapiede;
  • "devi essere pronto a vendere il c..." (et come, non);
  • "devi essere pronto a vendere tua madre" Un po' mi sorprende, ma se c'è domanda, la Terry lo saprà;
  • "se vuoi 20,000 euro al mese... se no stai a casa con 2,000 euro al mese" - altra sorpresa, pensavo che per chi esercita in appartamento ci fosse più business;
  • "A sinistra è peggio perché lì sono loffi e non pagano" - nozioni di marketing.

Insomma, un buon seminario di aggiornamento professionale.

Thursday, September 22, 2011

Una interessante progressione armonica.

E' detta anche "giro di Silvio":
Si-Fa-La minore

Nota: smiley obbligatorio per gli humour-impaired :-)

Tuesday, September 13, 2011

Il resto è rumore

"Music is always migrating from its point of origin to its destiny in someone’s fleeting moment of experience—last night’s concert, tomorrow’s solitary jog." Alex Ross The Rest Is Noise: Listening to the Twentieth Century

"La musica è sempre in viaggio, dal luogo della sua origine al suo destino nella passeggera esperienza di qualcuno — il concerto di ieri sera, la corsa solitaria di domattina." Alex Ross Il resto è rumore. Ascoltando il XX secolo

Monday, September 12, 2011

He who lives by the aphorism


He who lives by the aphorism ends up dying by it.

"When someone makes a statement that this in the financial markets should happen every ten thousand years, visibly they are not making a statement based on empirical evidence, or computation of the odds, but based on what? On some model, some theory. Do you ever regard how worrisome it is, when someone makes a statement like that, ``it should happen every ten thousand years'' particularly when the person is not even two thousand years old?" - Nassim Nicholas Taleb

"In the past, most were ignorant, one in a thousand were refined enough to talk to. Today, literacy is higher, but thanks to progress, the media, and finance, only one in ten thousand." - Nassim Nicholas Taleb (from his book of aphorisms, ``The Bed of Procustes'')

"Do you ever regard how worrisome it is, when someone makes a statement like that, ``one in ten thousand people are refined enough to talk to'' when the person probably has attempted to have ``refined'' conversations with not even two thousand people?" - Me


Wednesday, August 24, 2011

Happy Birthday Jorge Luis.

El universo (que otros llaman la Biblioteca) se componte de un número indefinido, y tal vez infinito, de galerías hexagonales, con vastos pozos de ventilación en el medio, cercados por barandas bajísimas. Desde cualquier hexágono se ven los pisos inferiores y superiores: interminablemente. La distribución de las galerías es invariable. Veinte anaqueles, a cinco largos anaqueles por lado, cubren todos los lados menos dos; su altura, que es la de los pisos, excede apenas la de un bibliotecario normal. Una de las caras libres da a un angosto zaguán, que desemboca en otra galería, idéntica a la primera y a todas. A izquierda y a derecha del zaguán hay dos gabinetes minúsculos. Uno permite dormir de pie; otro, satisfacer las necesidades finales. Por ahí pasa la escalera espiral, que se abisma y se eleva hacia lo remoto. En el zaguán hay un espejo, que fielmente duplica las apariencias. Los hombres suelen inferir de ese espejo que la Biblioteca no es infinita (si lo fuera realmente ¿a qué esa duplicación ilusoria?); yo prefiero soñar que las superficies bruñidas figuran y prometen el infinito... La luz procede de unas frutas esféricas que llevan el nombre de lámparas. Hay dos en cada hexágono: transversales. La luz que emiten es insuficiente, incesante.

[...]
Yo me atrevo a insinuar esta solución del antiguo problema: La biblioteca es ilimitada y periódica. Si un eterno viajero la atravesara en cualquier dirección, comprobaría al cabo de los siglos que los mismos volúmenes se repiten en el mismo desorden (que, repetido, sería un orden: el Orden). Mi soledad se alegra con esa elegante esperanza.
-- Jorge Luis Borges (Jorge Francisco Isidoro Luis Borges Acevedo) (August 24, 1899 – June 14, 1986)

Monday, July 18, 2011

Riscoprire Pitigrilli

"Poiché siamo sulla via delle confidenze, riconosco di aver assecondato il teppismo del lettore. Mi spiego: per la strada, quando scoppia un litigio o avviene un incidente della circolazione, scaturisce improvvisamente dalle viscere della terra un individuo che cerca di dare un'ombrellata a uno dei due contendenti, che generalmente è l'automobilista. Il teppista ignoto ha sfogato il suo rancore latente. Così nei libri: il lettore che non ha idee o le ha allo stato amorfo, quando trova una frase pittoresca, fosforescente o esplosiva, se ne innamora, l'adotta, la commenta con un punto esclamativo, con un 'bene!', un 'giusto!', come se egli l'avesse sempre pensata così, e quella frase fosse l'estratto quintessenziale del suo modo di pensare, del suo sistema filosofico. Egli 'prende posizione', come diceva il Duce. Io gli offro il modo di prendere posizione senza scendere nella giungla delle varie letterature." Pitigrilli, "Dizionario Antiballistico"

Così facebook (o con internet), e i suoi stuoli di fanboys.

Rediscovering Pitigrilli

"As I am in a confidential mood, I will acknowledge I have been going along with my reader's hooliganism. Explanation: during every street side discussion, or car accident, a character appears, as if from underground, and tries to hit one of the contendents (generally the car driver) with his umbrella. This unknown hooligan does nothing else then venting his latent aggressiveness. So with books: a reader devoid of ideas (or endowed with rather amorphous ideas) reads a sentence - picturesque, striking, unusual - falls in love with it, takes it in, and comments it with an exclamation mark: 'right on!' 'my feelings exactly!'. It's as if that it had always been his thought, and that sentence the expression of his true inner feelings, his philosophy on the subject. As the Duce used to say, he 'take a position'. I offer the reader a way to 'take a position' without the inconvenience of negotiating the jungle of the various literatures." Pitigrilli, "Dizionario Antiballistico"

So it is with facebook (or the internet) and its flock of fanboys.

Tuesday, July 12, 2011

Xen hotplugging of USB devices in passthrough


Xen's management of USB devices in passthrough (especially for HVM guests, such as windows machines) sucks like a tornado. (kvm's does not shine either, for mostly the same reasons). Among other shortcomings, hotplugging does not work: unplug the device, or turn off your printer, and it disappears - for good. Plugging it in/turning it on will not bring it back into your domU.

The situation can be improved upon using udev rules and a script.

Udev file: /etc/udev/rules.d/99-zlocal:

  SUBSYSTEM=="usb", SYSFS{idVendor}=="0951", SYSFS{idProduct}=="1646", \ 
ENV{idDomU}="mosaico", ENV{idVendor}="0951", ENV{idProduct}="1646",\
RUN+="/usr/local/bin/xen-usb-hotplug mosaico 0951 1646"

(Translation:
if subsystem is usb, vendor 0951 and product 1646 - this numbers can be found with lsusb - put some stuff in the environment and insert a program in the run chain for this event)

The program goes like this::



#!/bin/bash

PROMPT="xen-usb-hotplug(ORION):"
XM=/usr/sbin/xm
logger "${PROMPT} HOTPLUGGING"
logger "${PROMPT} started with environment: $(env)"
DOMU=$1
VENDOR=$2
PRODUCT=$3
#if CLI parameters are unavailable, try to use environment

[[ x${DOMU:=$idDomU} == x ]] && { logger -p user.error "${PROMPT} DOMU is not set"; exit 0 ; }
[[ x${VENDOR:=$idVendor} == x ]] && { logger -p user.error "${PROMPT} VENDOR is not set"; exit 0 ; }
[[ x${PRODUCT:=$idProduct} == x ]] && { logger -p user.error "${PROMPT} PRODUCT is not set"; exit 0 ; }
if [[ x$ACTION != xadd ]]; then
logger "${PROMPT} ${XM} usb-del $DOMU host:${VENDOR}:${PRODUCT}"
${XM} usb-del $DOMU host:${VENDOR}:${PRODUCT}
else
logger "${PROMPT} ${XM} usb-add $DOMU host:${VENDOR}:${PRODUCT}"
${XM} usb-add $DOMU host:${VENDOR}:${PRODUCT}
fi


This sets some service variables, grabs parameters from the CLI, and - if action equals "add", uses "xm usb-add" to stuff the device in the approrpiate domU.
Note that the "remove" part is purely ornamental, because - when unplugged - the device has different information, and the rule is not triggered.
Also note that, to be complete, one would need to discriminate among devices with same vendor and prodID. This is left as an exercise to the reader.

Note: I owe part of what above (essentially the idea of using udev to run a script on usb insertion) to a - since disappeared - blog note by Lorenzo Simionato.

Thursday, June 16, 2011

Brunetta e un po' di igiene semantica

Siccome mi ostino a pensare che anche le parole abbiano un loro peso, ho messo un commento al post del ministro Renato Brunetta sull' "italia peggiore" :


"Buongiorno.


Dr. Brunetta, vorrei sapere cosa significa in concreto "Usare la rete come un manganello per agguati squadristici". Da ieri gliel'ho sentita ripetere diverse volte, ma mi pare che sia esclusivamente un espediente retorico volto a cercare di fare lo sgambetto al cosiddetto web-attivismo.


I manganelli e gli squadristi fanno morti e feriti. L'unica cosa che questo episodio ha transitoriamente ammaccato è la Sua immagine pubblica, e non avrebbe fatto nemmeno quello, se Lei avesse evitato di pronunciare la frase che, di fatto ha pronunciato. (Ci sarebbe stato un video intitolato "Brunetta non risponde etc.", e video così, ce ne sono tanti).


Tuttavia, non pronunciare frasi improvvide e gestire al meglio la propria immagine pubblica sono importanti componenti del mestiere di un politico. Così come lo sono il saper rispondere a domande scomode, anche in poco tempo e sotto pressione, e l'accettare di essere - anche duramente - contestati. O così almeno dovrebbe essere, visto che noto in tanti personaggi pubblici una crescente intolleranza alle platee critiche. Posso capire che le claque siano più gratificanti delle contestazioni, però sono anche associate a regimi che non vengono normalmente chiamati democratici.


Cordialmente,
Alessandro Forghieri
"