GNU Gettext in PHP (not working)

GNU Gettext is a powerful, standard, efficient way to translate a PHP project. It’s not quite modern but it’s solid and it’s a standard de-facto. Unfortunately, GNU Gettext can be very painful to configure, since no error is shown. Sometime it just does not translate anything. Moreover, it has a very aggressive cache and the official documentation does not say anything about how to clear it without restarting your whole webserver. For this and other tips

Enjoy my definitive guide with deep troubleshooting steps, also thanks to strace.
https://stackoverflow.com/a/79584284/3451846

Just enjoy the native GNU Gettext, without using slow userland replacements.

Install minimal LXDE on Debian (with/without autologin)

If you forgot to install LXDE on a Debian (for example bullseye) and you want something super-minimal, do this:

IMPORTANT: don’t read this guide if you are using Raspbian! Go to the next section instead.

sudo apt install lxde-core lxdm

Instead, do this

raspi-config

Then go to System Options > Boot / Auto-login > Desktop.

And reboot. Done!

At this point, I’ve noticed that the raspi-config option is not able to enable the auto-login option. If you need it, don’t worry. In that case, just manually change this file:

/etc/lxdm/lxdm.conf

And be sure to have this line de-commented:

[base]
autologin=pi

Source:

https://wiki.debian.org/LXDE

(P.S. I’m trying to increase the rank of the Debian wiki to finally find it in search results… lol – sorry for this unuseful post)

Installing LXDE on Raspbian

If you are on Raspbian (for example bullseye), instead, go for this to install LXDE (note that in Raspbian you have no other reasonable choice probably):

sudo apt install raspberrypi-ui-mods

Done. Eventually also run again raspi-config as mentioned above.

Source:

https://github.com/MichaIng/DietPi/issues/1558#issuecomment-691507999

One bug, on one billion devices

https://stackoverflow.com/q/75911453/3451846

Apart from this weird problem, I think a problem in StackOverflow as far as I am concerned maybe is with big communities, like the tag StackOverflow community.

That community is super-flooded with absurd questions from absurd people and comes the easy downvotes, even when a question simply from cursed results appears that however is well posed, is in-topic, has references to official documentation, has screenshots, steps to reproduce, obvious troubleshooting effort, and is not posed by a person who has critical English issues.

But yes, that question started with two downvotes, and no: no constructive comments like “clarify this / that” etc. Just downvotes.

Now, the question has 1 downvote, and only 1 comment (actually it’s an improper comment that provides an answer, but I don’t want to scold that user since that user is the only person on my side – it seems; anyway: do not put answers in the comments please – put an answer in the answer).

348 presenze alla 6ª lezione del corso GNU/Linux base @ Torino

Qualche giorno fa sono tornato a Torino a rivedere due bellissime community:

  • il gruppo di volontari linux@studenti – specializzati nell’organizzazione dei corsi gratuiti su GNU/Linux a Torino, sia base che avanzati, dall’anno 2006!
  • l’associazione studentesca WEEE Open – specializzata nella diminuzione dei rifiuti industriali del Politecnico di Torino

Grazie a loro per aver organizzato la 17esima edizione autunnale del corso base GNU/Linux. E per avermi invitato!

Tema della 6ª lezione trascorsa: l’amato e odiato systemd!

Se ve la siete persa ecco almeno due fotografie scattate da Alessandro Ugo:

Fotografia di un'aula del Politecnico di Torino con molte persone viste di schiena mentre sui loro monitor c'è GNU/Linux. In fondo all'aula il proiettore mostra due schermi con un terminale Bash e una schermata di status di systemd.
Fotografia di Alessandro Ugo, utilizzabile liberamente in licenza Creative Commons – BY-SA 4.0
Valerio Bozzolan alla cattedra di un'aula mentre presenta una schermata di status di systemd
boz. Fotografia di Alessandro Ugo, utilizzabile liberamente in licenza Creative Commons BY-SA 4.0

Ricapitolando i dati forniti da Alessandro Ugo.

Totale presenze nella sola 6ª lezione:

  • 348 persone (uniche)
  • di cui almeno 200 persone online dalla BigBlueButton del Politecnico di Torino (!)

Come tradizione ecco disponibili in licenza libera tutti gli ultimi materiali delle lezioni GNU/Linux base, libere e gratuite, comprese di registrazioni video divise in capitoli e con presentazioni scaricabili:

Non basta? Ecco tutte le 17 edizioni dei corsi gratuiti, scaricabili dall’anno 2006!

Faccio ancora i miei auguri alle 348 persone che stanno seguendo il corso GNU/Linux tenuto dalle persone volontarie di Torino!

Grazie per l’invito nel tenere questa lezione! Grazie Torino! 💕

Domande sulla community di Torino? Entra su @LinuxTorino da Telegram FLOSS.

Geek Talk con boz: il Software Libero ama la privacy (Monitora PA, Linux Day)

https://video.linux.it/videos/watch/d0d4d72a-0110-4f62-9fc3-b7c9b11f720a

Errata corrige

Al minuto 12:17 parlando di Monitora PA ho detto «abbiamo visto cosa ha fatto questa persona». In realtà ho semplificato ma chi ha mandato la mail a tutti i Linux user group italiani si chiama Giacomo Tesio, mentre chi ha spedito le 8254 PEC si chiama Fabio Pietrosanti. Comunque io non sono una scuola, quindi non posso verificarlo.

Al minuto 16:31 ho detto “adempìre”. Mi raccomando, non fatelo. Dite “adèmpiere” “adémpiere”.

Notare che Valerio continuava a dire “Bussoleno” mentre Stefano continuava a dire “Bussolengo”. Ci ha sorpreso scoprire che esistono entrambi questi comuni.