I know I will never write a post on this, really, not a complete post on this matter. But I am working on making service consume less memory, and for sure I will achieve that. By now this is just an idea of the result of the same request made by buffering a whole result […]
Category: Senza categoria
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 […]
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 […]
php zmq in docker and checking whether the C compiler works… no
I spent 2 hours of what it lasts of my life trying to understand what was the problem on installing php’s zmq extension in a docker running alpine as base image. I would like to share my experience here. During morning I would like to write supporting class for integrating zmq into our system and […]
News from Verona ( ReactJS Day – October, 5th, 2018)
I wrote some kind of report about ReacJS day – Verona, October, 5th. But my pc blocked (TODO: buy a new pc, once I understand which), I did not saved the document. I taked a screenshot. My experiment on React.context will focus on edit state of a page. Currently the page is made of various […]
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 […]
A matter of elegance
I need some moment to fully understand this: const compose = ( …fns ) => fns.reduce( ( f, g ) => ( …args ) => f( g( …args ) ) ); reduce method is trickly: when initialValue is not given, the first element of the array is taken as first argument of reduce’s callback parameter, […]
Lo sporco lavoro del CI/CD e DevOps
Ora racconto una storia. Beh, la faccio breve, si è fatta una certa. Da quando c’è bisogno di rilasciare il software in tempo reale sono stati scritti diversi software di supporto per fare lo sporco lavoro di: eseguire test, impacchettare, distribuire i pacchetti nei vari server di destinazioni. Uno di questi è Jenkins, scritto in […]
E le Promise ritornano (risolvono in) function?
Stasera ero qui con un test (acceptance) cercando di accrocchiarlo alla meglio. In sostanza usando jsdom e jest ho del codice legacy che utilizza jquery (versione vecchissima) e il js è nella pagina. Lo incollo in un file separato, prepare.js. E visto che devo caricarlo tramite node lo metto dentro una funzione che chiamo con […]
Observable. Prendo nota
Probabilmente in ritardo col resto del mondo, h chiarito un punto importante riguardo gli observable, e l’ho capita usando observable-redux. Prendo nota. Definendo un Epic, da uno stream di action$ si restituisce un’altro stream di action La Epic è eseguita dopo che il relativo reducer ha fatto il suo lavoro. È possibile, data una action, […]