-
Git submodule are very hard to grasp.
This article
https://codewinsarguments.co/2016/05/01/git-submodules-vs-git-subtrees/
explain pros and cons of submodule and suggest when to replace them with subtree:
- Is the external repository something you own yourself and are likely to push code back to? Then use a submodule. This gives you the quickest and easiest way for you to push your changes back.
- Is the external repository third party code that you are unlikely to push anything back to? Then use a subtree. This gives the advantage of not having to give people permissions to an extra repo when you are giving them access to the code base, and also reduces the chance that someone will forget to run a
git submodule update.
-
On 2002, I was forced to build a small java class to “sync” two databases (sorry for Italian):

SmartSync used the Metadata offered by JDBC API to be able to copy data between two tables. In the last years I evolved it to be able to support a special use case called “dump to SQLite”.
Read More -
Abstract: Storicizzare i dati spesso è un attività considerata “secondaria”, ma un cattivo design porta a base dati difficili da ottimizzare e spesso poco comprensibili. In questo articolo illustriamo un semplice metodo che rispetta i dettami della teoria relazionale, è facile da capire ed è attivamente usato in produzione.
Read More -
Complice del passare degli anni, inizio a sviluppare una certa irritazione per alcune soluzioni architetturali chiaramente inutili. Scrivo quindi queste brevi righe a beneficio di qualsiasi giovane sviluppatore Java (o Python o JavaScript o….) affinché prima di “inventarsi” una nuova classe/framework/interfaccia inutile si faccia la triplice Domanda del Destino e cioé:
Read More -
Q: E come potremmo fare? L: Potremmo creare un movimento basato su influencer, tu sei un grande a parlare…. poi ci mettiamo dentro la mia società…. Q: …e cambiamo il mondo! L: Andiamoci piano. Dobbiamo essere astuti. Q: Certo, come delle faine L: Lo facciamo anti partito, diciamo che ognuno non può eleggersi più di due volte, una cosa dalla gente per l’agente Q: La democrazia diretta! L: Esatto, decidiamo noi su cosa però….ci prendiamo i soldi degli stipendi dei parlamentari, 15k di rimborsi a testa ci si fa un sacco di cose Q: Ma tutte ste regole…. L: Ma le regole le cambiamo! Appena abbiamo ottenuto uno degli obiettivi, ma cosa ci mettiamo dentro? Q: Ecologia! AntiPartito!….Anti Ilva…Anti-Tav..
Read More -
Some news site still try in 2021 to disable right click and ability to copy content. These tactis are very very poor, and only block the users not interested in copying/stealing your code.
The idea is to put something like that on body tag:
<body oncopy="return false" oncut="return false" onpaste="return false" onbeforecopy="return false" ondragstart="return false" onselectstart="return false" oncontextmenu="return false">
The code to re-enable it is easy to find out:
Read More -
La XVIII Legislatura (iniziata il 23 marzo 2018) ha visto finora i seguenti governi

-
- Giuseppe Conte (dal 1 giugno 2018 al 4 settembre 2019)
- Giuseppe Conte II (dal 5 settembre 2019 al 13 febbraio 2021)
- Mario Draghi (dal 13 febbraio 2021 - in corso)
Due anni massimo.
Read More -
-
Good insights from this article:
How to strangle a legacy codebase
The strategy is simple:Progressively delete the old code base, in favor of a new one.
Here’s the plan:
- Have the new code acts as a proxy for the old code. Users use the new system, but it just redirects to the old one.
- Re-implement each behavior to the new codebase, with no change from the end-user perspective.
- Progressively fade away the old code by making users consume the new behavior. Delete the old, unused code.
[...]
More here -
Breve biografia da Wikpedia:
Mario Draghi è nato a (Roma, nel 1947). Perde all’età di 15 anni entrambi i genitori ed è una zia a prendersi cura di lui, sua sorella e suo fratello.
Compie gli studi all’Università degli Studi di Roma “La Sapienza” dove si laurea nel 1970. Si specializza i al MIT di Boston. Già professore universitario, negli anni novanta viene richiamato in Italia dal ministro del Tesoro Guido Carli che lo vuole al suo fianco.
Read More -
Conte ha annunciato le sue dimissioni. Se Renzi fosse in House of Cards, forse sarebbe il protagonista, che si sfrega le mani mentre i suoi maneggi iniziano.
Read More -
In queste ore si sta consumando la crisi del governo Conte2. Un Renzi assurdo, che dopo aver ottenuto le modifiche su fondi di ripresa (Recovery Fund) e gestione dei servizi segreti, che aveva chiesto un mese fa, ha continuato ad alzare l’asticella del potere per poter ribaltare il tavolo.
-
TiddlyWiki is a rich, interactive tool for manipulating complex data with structure that doesn't easily fit into conventional tools like spreadsheets or wordprocessors.
Tiddlywiki born in 2004, is great if you need a fast way to make fast notes. In the past it was able to store itself using local javascript extensions, but now you need a node server or some specific setup. -
Direttamente dal futuro, grazie ad un marchingegno speciale riceviamo
Terratondisti
Cospiratori che stanno cercando di vendere paracaduti ai Terrapiattisti, evitando accuratamente che scoprano le prove della rotondità della terra, già note nel medioevo (stanno anche cercando di cancellare l’esistenza dello storico Alessandro Babero, che spiega in un video proprio questo).
Read More -
Bash support tcp connection out of the box :)
So you can write something like
#!/bin/bash webhost="gioorgi.com" exec 5<>/dev/tcp/$webhost/80 echo -e "GET / HTTP/1.1\\r\\nHost: $webhost\\r\\nContent-Length: 0\\r\\n\\r" >&5 # get reply: HTTP/1.1 301 Moved Permanently^M cat <&5