Building multi arch docker image from linux host

Key concepts Container manager.There is an actor, a daemon, or something that pull and run the right image when instructucted to do that.That means, you can use docker, docker swarm mode, kubernetes, k3s, or whatever daemon to monitor or just run containerbased on image taken from some place, and that daemon need to understand what […]

Read More…

React server side rendering as a react based template engine

isomorphic javascript is a technology used to speedup rendering on browser, it can be used a pure version that is server-side-rendering (ssr) to generate template from a react app Motivation: Create a presentation template to be converted to pdf and configurable with data: produce formatted documents. Here:https://www.freecodecamp.org/news/server-side-rendering-your-react-app-in-three-simple-steps-7a82b95db82e/ This is the way the piece of server […]

Read More…

Sicurezza, password salvate e Google

youhavebeenpawned! ( https://haveibeenpwned.com/ ) Google fortunatamente non sta a guardare, ma non può agire per noi. Fare click sull’avatar (in alto a destra) per gestire l’account Dove si atterra: Notare un segnale di allarme per problemi di sicurezza (esclamativo rosso): Vai a controllo password Password salvate compromesse Cambia ogni password compromessa Signin per ogni account […]

Read More…

I stopped the data flow – on React best practices

Reading the interesting article from Dan Abramov:https://overreacted.io/writing-resilient-components/ I stopped at memoization. I did not know this technic before, but simply because nobody care so much about names before functional programming. And so I discovered how large is the cover of react hooks, useMemo() that does https://github.com/alexreardon/memoize-one In a cleaner way with the hook, in my […]

Read More…

Docker in a Docker

Running a docker container from inside a docker container, I mean. Of course one can define an image that instanciate a container as its default command, and this would lead to an infinite loop of forks … let’s see The infinite containment docker run -v /var/run/docker.sock:/var/run/docker.sock -name whocare alwaysfork Ok, that is bad and I […]

Read More…