open-menu closeme
Home
RetroComp icon
Retro Computing Articles Composition Notebooks 8bit
DevOps icon
Automation K8s Done Right
GenAI icon
Fatlama Newsletter Generative AI
Projects icon
Software Projects Arduino Misterio Esp8266 SQLite
Status
Links icon
GitHub LinkedIn
About
github linkedin rss
  • Git subtree vs submodule

    calendar Mar 30, 2021 · 1 min read
     flash
     ·
    Share on: twitter facebook linkedin copy

    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.
  • Smart Sync

    calendar Mar 21, 2021 · 1 min read
     en software-projects  · database oracle sqlite
     ·
    Share on: twitter facebook linkedin copy

    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
  • Semplice metodo per storicizzare i dati su database

    calendar Mar 16, 2021 · 6 min read
     it sql  · database oracle
     ·
    Share on: twitter facebook linkedin copy

    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
  • Progettare per il domani o l’altro ieri?

    calendar Mar 4, 2021 · 2 min read
     humor it  · humor java software-architect
     ·
    Share on: twitter facebook linkedin copy

    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
  • Lo smottamento del Movimento

    calendar Feb 25, 2021 · 2 min read
     it  · movimento5stelle politica
     ·
    Share on: twitter facebook linkedin copy

    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
  • How to re-enable right click

    calendar Feb 21, 2021 · 1 min read
     en featured knowledgebase
     ·
    Share on: twitter facebook linkedin copy
    How to re-enable right click

    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
  • Neppure i Draghi ci possono salvare?

    calendar Feb 18, 2021 · 2 min read
     it  · politica
     ·
    Share on: twitter facebook linkedin copy

    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)
    Questo vuol dire che il governo Draghi può al massimo durare fino al 2023, cioé un paio d'anni circa. Se facciamo una media degli ultimi 66 anni, prendendo i dati da wikipedia, risulta una durata media di circa 412 giorni circa 14 mesi scarsi (ho fatto i conti qui per i dettagli). Se però togliamo i governi della prima repubblica (Craxi, Moro, De Gasperi, Scelba, ecc) e contiamo solo i 17 governi residui la media si alza a 590 giorni, circa 20 mesi scarsi, a dimostrazione del fatto che tranne casi humoristici (Governo D'Alema uno dei più corti in assoluto) la seconda repubblica è più stabile della prima, anche se ha un track record assai più modesto.

    Due anni massimo.


    Read More
  • Legacy Management

    calendar Feb 10, 2021 · 1 min read
     knowledgebase software
     ·
    Share on: twitter facebook linkedin copy
    Legacy Management

    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
  • Mario Draghi

    calendar Feb 3, 2021 · 3 min read
     it  · politica
     ·
    Share on: twitter facebook linkedin copy

    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
  • House of Renzis…

    calendar Jan 26, 2021 · 3 min read
     it  · politica
     ·
    Share on: twitter facebook linkedin copy

    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
  • Crisi di Gennaio: la sindrome di Matteo II

    calendar Jan 20, 2021 · 3 min read
     it lettere-a-mio-figlio  · conte mattarella politica salvini
     ·
    Share on: twitter facebook linkedin copy
    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

    calendar Jan 19, 2021 · 1 min read
     knowledgebase
     ·
    Share on: twitter facebook linkedin copy
    TiddlyWiki
    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.
  • JonnyDecimal rulez!

    calendar Jan 18, 2021 · 1 min read
     knowledgebase
     ·
    Share on: twitter facebook linkedin copy
    JonnyDecimal rulez!

    https://johnnydecimal.com/

  • Fake News 2021

    calendar Jan 15, 2021 · 1 min read
     humor it  · humor
     ·
    Share on: twitter facebook linkedin copy

    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 TCP conection feature

    calendar Jan 7, 2021 · 1 min read
     featured unix-featured  · bash unix
     ·
    Share on: twitter facebook linkedin copy

    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
    

     

    • ««
    • «
    • 13
    • 14
    • 15
    • 16
    • 17
    • »
    • »»

Recent Posts

  • GXTrust+Macos vs Giorgi
  • Immich e Paperless: take control back!
  • A Year With Hugo
  • K8s Java
  • Open AI Gemini
  • Arduino Q da far crescere
  • Postgres Take it All

Categories

EN 498 IT 479 KNOWLEDGEBASE 186 SOFTWARE 182
All Categories
ADVERTISEMENT2 AUTOMATION5 BLOG-OBJECTSROOTCOM88 BOOKS3 COVID1919 DEVOPS30 EGGBOX4 EN498 ERLANG14 ESP82666 EVERGREEN4 FEATURED93 FLASH1 FREEDOM8 GENERATIVEAI5 HUMOR81 INTERVISTE2 IT479 JAVA3 JAVASCRIPT1 K8S-DONE-RIGHT3 KNOWLEDGEBASE186 LANG30 LETTERE-A-MIA-FIGLIA29 LETTERE-A-MIO-FIGLIO38 LIBRI3 NEWS3 ORG-MODE-PARSER9 PROJECTS8 PYTHON18 RACCONTI5 RECENSIONI18 RETRO-COMPUTING35 REVIEW1 REVIEWS11 SITE13 SOFTWARE182 SOFTWARE-PROJECTS14 SQL27 UNCATEGORIZED1 UNIX-FEATURED7
[A~Z][0~9]

Series

ARDUINO 25 PROGRAMMING_LANGUAGES 7 HOMELAB 5 RISPARMIO 5
All Series
ARDUINO25 FATLAMA4 FREEDOM4 HOMELAB5 POLITICA3 PROGRAMMING_LANGUAGES7 RISPARMIO5
[A~Z][0~9]

Latest comments

    Giovanni Giorgi

    Copyright 1999-  GIOVANNI GIORGI. All Rights Reserved

    to-top