Note di Matteo


Note

AI e citazioni

ChatGPT usa questa sintassi per le citazioni:

\uE200cite\uE082turn2search5\uE201

Oppure con due citazioni:

\uE200cite\uE082turn2search5\uE082turn2news1\uE201

Dove i simboli Unicode sono "caratteri" privati invisibili usati così:

  • Inizio: U+E200
  • Separatore: U+E082
  • Fine: U+E201

Scelta interessante.

Gli ID (es. turn2search5) sono presi direttamente dall'output dei tool, ad esempio:

{
  "search_results": [
    {
      "ref_id": "turn2search0",
      "title": "Eiffel Tower history",
      "url": "https://example.com/eiffel-history"
    },
    {
      "ref_id": "turn2search1",
      "title": "Britannica - Eiffel Tower",
      "url": "https://example.com/britannica-eiffel"
    },
    {
      "ref_id": "turn2search2",
      "title": "Paris tourism - Eiffel Tower",
      "url": "https://example.com/paris-tourism"
    }
  ]
}

Mistral sembra invece usare questa sintassi:

:refs[1-3,7,9]

Dove 3, 7 e 9 sono indici della lista di risultati di un tool, l'1 non so cosa sia.

Esempio di tool output:

{
  "0": {
    "url": "https://trytako.com/embed/OQENsP2y2BMZd8fnd6oa/",
    "title": "Unit Calculator: 330.0 Inchs to Meters",
    "description": "Questa scheda mostra la conversione da Pollice a Metro...",
    "snippets": [],
    "date": null,
    "rank": 0,
    "source": "tako",
    "metadata": {},
    "can_open": false,
    "content_type": "tako_widget"
  },
  "1": {
    "url": "https://www.vacanzeparigine.it/torre-eiffel/",
    "title": "Come visitare la torre Eiffel - Vacanze Parigine",
    "description": "Gli altri piani rimarranno disponibili alla visita... secondo piano: a 115,88 metri d’altezza e 669 scalini.",
    "snippets": [
      "CHIUSURA: a causa di lavori di manutenzione la cima della torre Eiffel (il terzo piano) rimarrà chiusa dal 5 gennaio al 6 febbraio 2026 (info). Gli altri piani rimarranno disponibili alla visita. INCREMENTO TARIFFARIO: il costo dei biglietti subirà un aumento a partire dalle visite dal 12 gennaio 2026 in poi. ... secondo piano: a 115,88 metri d’altezza e 669 scalini.",
      "Considerando l’antenna, la torre Eiffel raggiunge i 330 metri d’altezza..."
    ],
    "date": "2026-01-12T08:22:43",
    "rank": 0,
    "source": "brave",
    "metadata": {},
    "can_open": true,
    "content_type": "web_page"
  },
}

Claude usa invece questa sintassi più esplicita:

<cite index="2-1">Label</cite>

Dove 2 sarebbe il documento di riferimento mentre 1 la frase citata. Quindi si possono citare più frasi e anche più documenti:

<cite index="2-1:3">Label</cite>
<cite index="1-2,3-4">Label</cite>

Gli indici sono estratti dagli output dei tool, ad esempio:

<document index="2">
  <source>La Torre Eiffel, Sito UFFICIALE: biglietti, info, notizie,…</source>
  <document_content>
    <span index="2-1">Alta 330 metri, la Torre Eiffel ha una storia affascinante 
    che risale alla fine del XIX secolo. Il suo progettista, l'ingegnere Gustave 
    Eiffel, era famoso per la realizzazione di ponti, viadotti e capriate 
    metalliche, già prima di costruire ...</span>
  </document_content>
</document>
#389 /
18 marzo 2026
/
11:02
/ #ai#anthropic#mistral#openai

Un commento al post di Cloudflare su Piracy Shield, un po' off-topic ma interessante perché pessimista sul concetto di Internet aperta, che è miseramente fallito:

Open Internet is a failed experiment and you need to come to terms with that. It's lead to unprecedented rise in human trafficking, harassment, substantial misinformation, cult like thinking on every topic.

On and on with harm. The great utopia of easy access facts, good faith discussion, and leap in progress is the minimum effect. It's mostly harm. But keep fighting for children to be traffic, sextortion, and anti science.

#388 /
17 marzo 2026
/
20:47
/ #internet


Pulp.info e DMARC

Davide Marra di Pulp Podcast dice che non gli hanno risposto alle email di invito:

Il dominio mittente pulp.info ha le email in hosting su Google Workspace:

❯ dig pulp.info MX +short
5 alt1.aspmx.l.google.com.
1 aspmx.l.google.com.
5 alt2.aspmx.l.google.com.
10 alt4.aspmx.l.google.com.
10 alt3.aspmx.l.google.com.

Per cui dovrebbe esserci un record SPF per autorizzare Google Workspace a inviare email da quel dominio:

❯ dig pulp.info TXT +short
"v=spf1 include:spf.webapps.net ~all"
"google-site-verification=EYlW2K4aQg6ksmXcCNCcFMUN85ebneJDbSW8NhJRXbs"

Ma in realtà il record autorizza solo spf.webapps.net, che fa capo a Register.it, dove il dominio è registrato.

Vediamo se almeno c'è una firma DKIM personalizzata, che salverebbe la situazione nell'ambito dell'allineamento DMARC. Il selettore proposto di default da Google nella admin console è google, quindi cerchiamo il relativo record DNS che dovrebbe contenere la chiave pubblica DKIM:

❯ dig google._domainkey.pulp.info TXT
; <<>> DiG 9.20.20 <<>> google._domainkey.pulp.info TXT
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 45823
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
[...]

Non c'è (NXDOMAIN). Vediamo se c'è comunque DMARC:

❯ dig _dmarc.pulp.info TXT
; <<>> DiG 9.20.20 <<>> _dmarc.pulp.info TXT
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 13037
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
[...]

Non c'è. Beh, forse l'email è finita in spam... :)

#386 /
17 marzo 2026
/
17:41
/ #email

Alexa mi manda una notifica su Amazon Echo, che dice: "c'è un articolo in offerta nel tuo carro".

(altro capolavoro di Amazon parte 3)

#384 /
15 marzo 2026
/
10:14
/ #amazon

Altro capolavoro di Amazon: «in caso di sovraccarico delle feci»

#383 /
14 marzo 2026
/
21:02
/ #amazon


L'esperimento di rilancio di Digg è stato sospeso dopo due mesi. La morte di Internet.

When the Digg beta launched, we immediately noticed posts from SEO spammers noting that Digg still carried meaningful Google link authority. Within hours, we got a taste of what we'd only heard rumors about. The internet is now populated, in meaningful part, by sophisticated AI agents and automated accounts. We knew bots were part of the landscape, but we didn't appreciate the scale, sophistication, or speed at which they'd find us. We banned tens of thousands of accounts. We deployed internal tooling and industry-standard external vendors. None of it was enough. When you can't trust that the votes, the comments, and the engagement you're seeing are real, you've lost the foundation a community platform is built on.

This isn't just a Digg problem. It's an internet problem. But it hit us harder because trust is the product.

#381 /
13 marzo 2026
/
23:07
/ #internet

Claude Code riscrive chardet ("Python character encoding detector") con prestazioni 48 volte superiori alla versione precedente. La licenza open source cambia da LGPL a MIT perché è un rewrite totale. È un lavoro indipendente oppure un lavoro derivato? La questione si ripresenterà sempre più spesso.

Last week, Dan Blanchard, the maintainer of chardet—a Python library for detecting text encodings used by roughly 130 million projects a month—released a new version. Version 7.0 is 48 times faster than its predecessor, supports multiple cores, and was redesigned from the ground up. Anthropic's Claude is listed as a contributor. The license changed from LGPL to MIT.

Blanchard's account is that he never looked at the existing source code directly. He fed only the API and the test suite to Claude and asked it to reimplement the library from scratch. The resulting code shares less than 1.3% similarity with any prior version, as measured by JPlag. His conclusion: this is an independent new work, and he is under no obligation to carry forward the LGPL.

#379 /
13 marzo 2026
/
09:38
/ #ai#open-source

Ecco con grande ritardo la timeline del "bando" per l'assegnazione delle nuove gTLD. L'ultima volta era successo nel 2012.

  • Dal 30 aprile al 12 agosto si potranno presentare le candidature, la relativa documentazione e il pagamento di 227mila dollari per la TLD proposta.
  • La lista sarà resa pubblica probabilmente prima di ICANN 87 (17 ottobre).
  • Per 14 giorni dal Reveal Day le candidature potranno essere modificate sostituendo TLD con TLD di riserva pre-comunicate nel caso in cui si voglia evitare di competere con altre candidature.
  • Intorno a febbraio 2027 terminerà poi il periodo per le obiezioni.

Da lì in poi non ho capito bene ma ci sono altri passaggi per risolvere le contese, che possono durare anche molti anni. Tutt'ora alcune gTLD del 2012 non sono state formalmente assegnate.

#376 /
11 marzo 2026
/
14:47
/ #domini

❯ dig ospedaleniguarda.it NS +short
blasco.ospedaleniguarda.it.
vasco.ospedaleniguarda.it.
dns2.fastweb.it.

LOL. Blasco e Vasco.

#375 /
11 marzo 2026
/
11:26
/ #dns

Un mio commento sul Post in risposta all'articolo Per le intelligenze artificiali i PDF sono un problema, che si basa sul nulla:

L'articolo solleva il problema sbagliato. L'OCR serve solo se il contenuto è stato rasterizzato o è frutto di scansione, che non è la normalità (fuori dalla PA italiana almeno).

Il formato PDF resta però comunque problematico perché non contiene concetti come "paragrafo di testo", "pié di pagina" o "tabella" ed è quindi molto difficile associare le singole parole/righe di testo (solitamente leggibili senza OCR) al flusso della pagina. In casi complessi come pagine a più colonne servono una miriade di euristiche per provare a ricostruire il testo correttamente, perché non c'è legame tra gli elementi.

Non è un problema risolvibile al 100% ma è comunque in gran parte superato e negli ultimi 3 anni è spuntata diversa ricerca e molti nuovi strumenti anche open source per attaccare il problema.

Detto questo, del presunto "obiettivo di lungo termine" di sostituire il formato PDF sinceramente non trovo traccia e non ne ho mai sentito parlare pur avendo realizzato sistemi AI che ingeriscono PDF. A prova della tesi l'articolo menziona solo questa startup israeliana completamente sconosciuta nel settore, il cui sito sembra indicare che sia semplicemente una piattaforma cloud (a cui non ci si può nemmeno iscrivere), più che un formato di file. Di cosa stiamo parlando?

#374 /
10 marzo 2026
/
23:13
/ #ai#informazione

C'è un bug in Claude Desktop legato agli scheduled task (nuova feature appena lanciata) che manda il codice in loop infinito:

Users with scheduled tasks in Claude Cowork or Claude Code who are in a timezone that observed daylight saving time last night were affected by an infinite loop. When the app tried to locate tasks scheduled during the “skipped” hour, it couldn’t resolve them and got stuck.

Ho l'istinto di dire che è proprio un bug da vibe coding, ma in realtà lavorare con le date e i fusi orari è fonte di numerosi bug da quando la programmazione esiste.

#372 /
8 marzo 2026
/
23:37
/ #ai#claude

The third era of AI software development

Un grafico di Cursor sull'uso degli agenti AI in confronto alla funzione Tab (che mi viene da chiamare "vecchia", eppure esiste da meno di 4 anni) nello sviluppo di software:

A conferma della recente percezione che tra l'autunno e l'inverno 2025/2026 c'è stato un (incredibile) cambio di passo nello sviluppo software con l'AI.

#371 /
8 marzo 2026
/
23:24
/ #ai

FFmpeg at Meta: Media Processing at Scale. Meta spiega come usa FFmpeg per l'elaborazione di più di un 1 miliardo di video al giorno, e di come hanno smesso di usare un fork interno dopo aver integrato l'encoding parallelo e la generazione di metriche real-time (in-loop decoder) nella versione open source. Meta mantiene comunque delle patch per il supporto agli encoder hardware ASIC proprietari, ma restando in sync con ffmpeg open source.

#368 /
6 marzo 2026
/
21:20
/ #meta#video

Questa mi ha fatto ridere: prompt injection tramite un issue GitHub preso in carico da un workflow GitHub Actions che esegue Claude senza limiti di permessi:

Cline’s (now removed) issue triage workflow ran on the issues event and configured the claude-code action with allowed_non_write_users: "*", meaning anyone with a GitHub account can trigger it simply by opening an issue. Combined with --allowedTools "Bash,Read,Write,Edit,Glob,Grep,WebFetch,WebSearch", this gave Claude arbitrary code execution within default-branch workflow.

#367 /
6 marzo 2026
/
09:30
/ #ai#claude

Accenture acquisisce Ookla e quindi Speedtest.net e Downdetector 🧐. Per 1,2 miliardi di dollari.

#366 /
5 marzo 2026
/
13:30

Wow, un datacenter AWS negli Emirati Arabi Uniti è stato colpito da un "oggetto" (missile/drone) e ha preso fuoco.

Mar 01 9:41 AM PST We want to provide some additional information on the power issue in a single Availability Zone in the ME-CENTRAL-1 Region. At around 4:30 AM PST, one of our Availability Zones (mec1-az2) was impacted by objects that struck the data center, creating sparks and fire. The fire department shut off power to the facility and generators as they worked to put out the fire. We are still awaiting permission to turn the power back on, and once we have, we will ensure we restore power and connectivity safely. It will take several hours to restore connectivity to the impacted AZ. The other AZs in the region are functioning normally. Customers who were running their applications redundantly across the AZs are not impacted by this event. EC2 Instance launches will continue to be impaired in the impacted AZ. We recommend that customers continue to retry any failed API requests. If immediate recovery of an affected resource (EC2 Instance, EBS Volume, RDS DB Instance, etc.) is required, we recommend restoring from your most recent backup, by launching replacement resources in one of the unaffected zones, or an alternate AWS Region. We will provide an update by 12:30 PM PST, or sooner if we have additional information to share.

#363 /
1 marzo 2026
/
23:34
/ #aws#cloud

Pavel Durov ha dato di matto definitivamente:

Unfortunately, I had to leave Dubai for Europe a week ago — so I’m not only missing the free fireworks from Iran, but also exposing myself to greater risk. Given Europe’s crime rates, Dubai is statistically safer even with missiles flying. Can’t wait to be back.

#362 /
1 marzo 2026
/
22:19
/ #telegram#mondo

Benchmark super interessante che misura le scelte di stack tecnico dei modelli Anthropic (via Claude Code):

The big finding: Claude Code builds, not buys. Custom/DIY is the most common single label extracted, appearing in 12 of 20 categories (though it spans categories while individual tools are category-specific). When asked “add feature flags,” it builds a config system with env vars and percentage-based rollout instead of recommending LaunchDarkly. When asked “add auth” in Python, it writes JWT + bcrypt from scratch. When it does pick a tool, it picks decisively: GitHub Actions 94%, Stripe 91%, shadcn/ui 90%.

Tutti i dettagli nel report completo.

#359 /
27 febbraio 2026
/
14:12
/ #ai#anthropic#claude