L'uso di questo sito
autorizza anche l'uso dei cookie
necessari al suo funzionamento.
(Altre informazioni)
Sunday, March 17, 2013
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
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)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.# 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'
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
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.
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?
- The Republic, Plato
- Organon, Aristotle
- Nicomachean Ethics, Aristotle
- City of God, Augustine
- Summa theologiae, Aquinas
- The Prince, Machiavelli
- Novum Organum, Francis Bacon
- Discourse on Method, Rene Descartes
- Meditations on First Philosophy, Rene Descartes
- Leviathan, Thomas Hobbes
- Ethics, Spinoza
- An Essay Concerning Human Understanding, John Locke
- Monadology, Leibniz
- Principles of Human Knowledge, Berkeley
- A Treatise of Human Nature, Hume
- Dialogues Concerning Natural Religion, Hume
- The Social Contract, Rousseau
- The Principles of Morals and Legislation, Jeremy Bentham
- Critique of Pure Reason, Immanuel Kant
- Phenomenology of Spirit, Hegel
- Utilitarianism, John Stuart Mill
- Vindication of the rights of Women, Mary Wollstonecraft
- Either/Or, Soren Kierkegaard
- Method of Ethics, Sidgwick
- Thus Spoke Zarathustra, Nietzsche
- Communist Manifesto, Karl Marx
- Principia Ethica, G. E. Moore
- Being and Time, Martin Heidegger
- Tractatus, Wittgenstein
- Philosophical Investigations, Wittgenstein
- Being and Nothingness, Jean-Paul Sartre
- 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."
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.
"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.
Subscribe to:
Comments (Atom)