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

Sunday, March 17, 2013

I misteriosi misteri di Modena

Cara Gazzetta di Modena:

Volevo ringraziarti per la nuova, geniale rubrica umoristico-satirica
intitolata "i misteri di Modena". All'inizio avevo pensato si trattasse di una colonna seria, ed ero un po' perplesso (ad esempio perché mi pare che poche città - come dice anche mia moglie, che è di Roma - possano essere meno misteriose di Modena).

Solo nel corso della lettura mi sono reso conto della vera natura dell'articolo. E anche questo presentarsi come rubrica seria, in fondo, fa parte della geniale vis comica dell'autore.

E' solo osservando attentamente come il fondamentale disprezzo per le regole della composizione e della sintassi italiana (che a tratti coinvolge l'ortografia) diventi gradualmente assenza di logica che si possono apprezzare le vere e proprie perle umoristiche che l'autore ha disseminato in questi godibilissimi articoli.

Mi riferisco a frasi come:

(http://gazzettadimodena.gelocal.it/cronaca/2013/03/03/news/scarpa-professore-tiranno-o-scienziato-illuminato-1.6633821)
"Nato nel 1752 a Lorenzaga, paese vicino a Venezia, ha conosciuto Napoleone e divenne amico di Alessandro Volta. Culmina la sua carriera all'Università di Modena nel 1772."

dove il supremo, farsesco disprezzo della consecutio temporum si coniuga alla costruzione di "culminare" come verbo transitivo (io ti culmino, o carriera);

Oppure: "Ma qual era lo scopo del teatro anatomico voluto da Scarpa proprio a Modena? Lo scopo era quello di effettuare, davanti ai propri studenti, dissezioni sui corpi di cadaveri, per studiare gli organi umani e le funzioni vitali, tanto che diverse parti del corpo umano prendono il nome dato da Scarpa." dove una brillante tautologia (il teatro anatomico che serve a studiare gli organi umani:ohibò, chi l'avrebbe immaginato?) si uniscono buffe costruzioni (corpi di cadaveri dove chiunque scriverebbe cadaveri) ;

(http://gazzettadimodena.gelocal.it/cronaca/2013/03/10/news/villanova-nella-chiesa-dove-si-cacciano-i-demoni-1.6668450)
O anche "A fianco della normale attività religiosa al servizio della comunità di Villanova, il primo parroco, Don Goffredo Polacchini, fino al 1971 esorcista incaricato della Curia modenese, svolgeva anche le pratiche per sconfiggere le possessioni.....Ma sul perché Villanova fosse diventata il punto in cui il bene sconfiggeva il male, anche questo è avvolto dal mistero. Il freddo e la leggera foschia scendono sul campanile della Chiesa, mentre le storie di diavoli si perdono per le campagne, tra casolari e campi della pianura.", dove si sceglie di ignorare che, visto che il parroco di Villanova era anche esorcista, il mistero non c'è, e che le storie di diavoli sono davvero perse, visto che l'articolo non ne contiene alcuna. Per tacere della irresistibile parodia della retorica misterica che ispira la chiusa dell'articolo. Quasi ci si perde l'ulteriore sfregio alla grammatica (“Ma sul perché...anche questo è avvolto dal mistero”)

Il pezzo di Domenica 17/03, poi, sulla Chiesa di S. Domenico, è un vero gioiello:

"Un altro (mistero. ndr) riguarda i misteriosi tunnel sotterranei, e qui la storia si infittisce nei secoli, per tornare al 1243" (Bella la storia che si infittisce quasi fosse semolino.);

"Lo scopo era quello di mettersi al riparo da attacchi nemici al Ducato, ma anche per andare o uscire dalla città per diversi motivi come [...] commesse segrete nelle ore notturne" (Raffinato il passaggio da "scopo di" a "scopo per"; arguto il finto contrario "andare o uscire", enigmatiche le commesse segrete - forse sono le impiegate dei negozi del centro?)

Ma davvero non è possibile elencare il delirio di strafalcioni, anacoluti, antinomie e assenza di generale buon senso che, presentandosi quasi ad ogni frase, rendono questi articoli degni degli indimenticati fratelli de Rege.
Mi permetto solo un suggerimento: spostate la collocazione della rubrica in fondo al giornale in modo che anche i meno avveduti possano coglierne la funzione umoristica. Magari al posto di quella triste rubrica chiamata "Figadein", che - abbastanza inspiegabilmente - immalinconisce periodicamente la lettura del giornale. A proposito: qual è la sua funzione? E' un po' che me lo chiedo: questo sì, che è uno dei misteri di Modena.

Tuesday, March 5, 2013

On disappointment - Nassim Nicholas Taleb



I have - in the past - been greatly enthralled by an author called Nassim Nicholas Taleb and by his writings (he wrote a book called "The Black Swan", among others) and ended up having a very high opinion of him. Then, rather uncharacteristically for myself, I joined his FB page.

That was just the cure I needed to remind me about separating fact from fiction and expectations from reality when it comes to humans. While it was obvious - from his writings - that the man has vaste personality problems, I had somehow conceived the idea that shared intellectual values would overcompensate for that. Wrong.

Taleb - the internet person at least - appears to enjoy the totally acritical adulation of a crowd of fanboys that practically swoon on his every utterance (if I were him, I could hardly resist to write now and then things like "Pass the salt"  or "Basketball shoes are really comfortable" and watch the waves. That possibly explains my shortage of fanboys).

Apparently endowed of a very short fuse, he proves to be very intolerant of differing opinions and absolutely incapable of acknowledging any misstep in his thinking. And, he makes several. In one recent post he absurdly likened the Roman Empire to the Sicilian Mafia - showing extreme poor understanding of both. Confronted by the annoyed reaction of some followers, he proceeded to:

1) refuse to admit he had written a piece of nonsense
2) restate it several times without further explanation, in the apparent attempt to test the temper of his opponents, while also calling them "rude". ("This is not an argument, it's contradiction" "No it isn't" "Yes it is" ""No it isn't" - Monty Python)
3) avail himself of a lifeline thrown to him by one of his supporters in a "My point exactly" sort of way. Too bad its point had been entirely different, not to mention hard to fathom. In any event it appeared to be a - rather childish, coming fron an ethnical Greek -  attempt to establish the moral superiority of ancient Greeks on ancient Romans.
4) proceeded to unfriend the opponents and expunge their rude (i.e. disagreeing) comments from the thread. ("I had chip on my shoulder, kid, and you just knocked it down")


The last straw - as far as I am concerned - is this amazingly hypocritical piece of prose, which I append for the comfort of any purely hypothetical reader (hi, Nassim!) and as a prevention against acts of the Ministry of Truth (cue Orwell):

"Friends, I need some help correcting a distortion.
When you "call a fraud a fraud" (that is the members of that 1% that-cause-harm-without-skin-in-the-game) the strategy has been to turn your message into its exact opposite, something misanthropic ("if he hates me, an economist-journalist-fragilista-modernity advocate, it means he hates everybody"). Or "if he hates modernity, he is a haughty elitist" (the exact opposite of the true message that holds the nobility & independence of "those who make a living stanfing up or lying down".)
The corruption of the message has been largely controlled with "one of my books' title". But people are still doing it with "another of my books' title".
So I would welcome some contribution to the comments to dispel the cognitive dissonance there. Thanks!"

In which Nassim asks his followers to  provide favorable reviews on Amazon for his books, with tasteful code words ("distortion","cognitive dissonance"). His lovers followed quickly suit, stuffing the Amazon page as required - with nary a lone dissenting voice, this time. My reaction was to go to the page and write my actual opinion on the book in question - which is, that I didn't like it very much , and considered it vastly inferior to his other books (which I have favorably reviewed in several occasions). That did of course get me unfriended in a nanosecond - what a surprise. (No, it did not hurt at all, but thank you anyway)

And this makes it for me. Although someone might considered this pettiness a minor sin, I see it  as a capital flaw coming from someone that regularly displays an amazing high handedness on subjects such as ethics, wisdom, intellectual integrity. In fact I find it destroys just about every single non technical bit in his books, which I will find quite hard to reccommend henceforth. It also validates a great deal of what his harshest critics tell of him, but that's a different story.

Well, 'sic transit gloria mundi', I guess.

Monday, February 25, 2013

Antique Iron

An IBM 029 keypunch

This is a picture of a keypunch akin to the one I typed my first lines of codes on:













      PROGRAM SOMMA
C
C Calcola la somma di due
C numeri e stampa il 
C risultato 
C

      INTEGER A,B,SOMMA
      A=1
      B=3
      SOMMA=A+B
            PRINT(6,100),A,B,SOMMA
            STOP
 100      FORMAT(I4,1H+,I4,1H=,I4)

That' FORTRAN 66, Bay bee.

Friday, February 22, 2013

The twisted. The perverse. The developer.

Say you are running an android emulator for development reason and you want to copy some text to the (emulated) screen. That would be a CTRL+V on most platforms/applications.

But we developers have better ways, just:

# telnet localhost 5554
sms send 123123123 The text you want to copy
quit

You send an SMS to the phone, then in the emulator, open the message, copy the text, and paste wherever you want. Get it? Ain't that just beautiful?

This is the brain of developers laid bare for your wonderment. I kid  you not.

P.s: hats off to Stack Overflow for the tip
 

Thursday, January 24, 2013

Custom column names on Django ManyToMany fields.


Adapting Django  to legacy databases requires you to control table and column names.

manage.py inspectdb does a nice enough job of it (but beware of missing to_field on ForeignKey relationshiops when not linking to the primary key). 

ManyToMany fields, however, are left in the cold. Table name can be set with db_table=, but there is no (documented) hook to influence column names. Finer control can be achieved through the relatively new 'through' argument: that, however, kinda ruins many of the ORM language and of the admin application capabilities.

I googled myself blind and visited a few blind alleys. Postgres, for instance, does not have updatable views, or one could use a view to sort of rename columns - without actually doing it - thus appeasing django's engine; updatable views could be emulated with a CREATE RULE, but I decided against going there.

I dived in django code - the related.py and construction.py files - not pretty .I will heretofore direct to those files anyone extolling to me the clarity of python coding.

I eventually came across a Django Snippet that the author appears to have  retracted, but that the internet wayback machine still preserves. It did still require a modification, but I finally came up with:





from django.db import models



class CustomManyToManyField(models.ManyToManyField):

    def __init__(self, *args, **kwargs):

        source = kwargs.pop('source_db_column', None)

        reverse = kwargs.pop('reverse_db_column', None)

        if source is not None:

            self._m2m_column_cache = source

        if reverse is not None:

            self._m2m_reverse_column_cache = reverse

        super(CustomManyToManyField, self).__init__(*args, **kwargs)

# later.... class TipoCommesse(models.Model):     id          = models.IntegerField(primary_key=True)     descrizione = models.TextField() # This field type is a guess.     tipo_fasi   = CustomManyToManyField('TipoFasi',db_table='t_fasi4t_commessa',source_db_column='id_tipo_com',reverse_db_column='id_tipo_fase')     def __unicode__(self): return self.descrizione     class Meta:         managed =  False         db_table = u'tipo_commesse'         verbose_name_plural='TipiCommesse'
Note the managed = False line in the Meta inner class indicating that syncdb & Co. need not alter the database for this type. Besides being a sane precaution to set on everything when dealing with legacy DBs, it is doubly necessary here because finding out how to persuade Django to honor the column specifications when actually creating the tables proved to be beyond my ability - that's the above mentioned - and by now infamous - construction.py file. The effect is that (as can be seen with manage.py sql, with manage=True) Django would still generate columns of the form re11rel2_id even for the custom m2m field.




Also note that this trick is fragile: it depends on django actually using the 'column' and 'reverse_column' names when currying the attribute accessor (don't ask). This has already been broken once in the past.


Finally, a big 'Thank You' to Quentin Tarantino for making Django searches a more interesting experience with his "Django Unchained" release ;-)

Monday, October 22, 2012

Isole Venete

Il burino di Burano,
Su un muretto qui a Murano
mentre pensa alla Morena
e, col viso un po' murino,
mangia mesto una murena.

Se ne andrà forse a Mirano,
il burino di Burano,
ben lontano da Murano,
per dimenticar Morena.

--Ettore Sacrestia.

Tuesday, October 9, 2012

Libertà di

Ha ragione Mario Pirani quando chiama repellenti le tirate dei siti neonazisti contro Shlomo Venezia.

Però trovo molto pertinenti le osservazioni di questo articolo di Slate ("Hate Speech Hypocrites"): come si fa a dire ai musulmani che non possiamo impedire blasfemie contro Maometto mentre - ad esempio - non ci facciamo grossi problemi nella regolamentazione del discorso sull'Olocausto?

Io - con tutti i problemi che comporta - credo che la posizione di Slate sia l'unica compatibile con un'idea coerente di libertà d'espressione.

Monday, October 8, 2012

Dormire, forse?

Pare che bisognerebbe aver letto un numero considerevole dei seguenti libri. Armarsi di laboriosità, o procombere?
  1. The Republic, Plato
  2. Organon, Aristotle
  3. Nicomachean Ethics, Aristotle
  4. City of God, Augustine
  5. Summa theologiae, Aquinas
  6. The Prince, Machiavelli
  7. Novum Organum, Francis Bacon
  8. Discourse on Method, Rene Descartes
  9. Meditations on First Philosophy, Rene Descartes
  10. Leviathan, Thomas Hobbes
  11. Ethics, Spinoza
  12. An Essay Concerning Human Understanding, John Locke
  13. Monadology, Leibniz
  14. Principles of Human Knowledge, Berkeley
  15. A Treatise of Human Nature, Hume
  16. Dialogues Concerning Natural Religion, Hume
  17. The Social Contract, Rousseau
  18. The Principles of Morals and Legislation, Jeremy Bentham
  19. Critique of Pure Reason, Immanuel Kant
  20. Phenomenology of Spirit, Hegel
  21. Utilitarianism, John Stuart Mill
  22. Vindication of the rights of Women, Mary Wollstonecraft
  23. Either/Or, Soren Kierkegaard
  24. Method of Ethics, Sidgwick
  25. Thus Spoke Zarathustra, Nietzsche
  26. Communist Manifesto, Karl Marx
  27. Principia Ethica, G. E. Moore
  28. Being and Time, Martin Heidegger
  29. Tractatus, Wittgenstein
  30. Philosophical Investigations, Wittgenstein
  31. Being and Nothingness, Jean-Paul Sartre
  32. The Second Sex, de Beauvoir

Thursday, September 27, 2012

Disavventura artica allitterativa

Una squadra di ricercatori, inviata al circolo polare artico da una gelateria biologica per sperimentare nuovi gusti, era intenta a raccogliere materie prime. Ad un tratto, un branco di cani selvatici li sorprese, rubando loro i preziosi prototipi di gelato. La disavventura fu raccontata così:
 
"Eravamo lì chini
a raccoglier licheni,
quando alcuni cani
han rubato quei coni."

Wednesday, September 5, 2012

Quelli che leggono le loro tesi su Radio 3

Oggi, verso la una, c'era una ragazza (ragazzina?) che diceva cose del tipo  

"Non c'è quasi bisogno di presentarla, questa 'SolidaritatLied'. Molti di voi ricorderanno che è inserita alla fine di un film del 1932 con sceneggiature di Bertolt Brecht...."

Insomma, faceva tenerezza. Invece quelli che ce l'hanno messa, a leggere la sua (esoterica, per i più) tesi in un giorno di fine estate, per tappare un buco di palinsesto, mi fanno abbastanza rabbia.