<h2 class="wp-block-heading">Key concepts</h2> <p class="wp-block-paragraph"><em><strong>Container manager</strong></em>.There is an actor, a daemon, or something that pull and run the right image when instructucted to do that.<br />That means, you can use docker, docker swarm mode, kubernetes, k3s, or whatever daemon to monitor or just run container<br />based on image taken from some place, and that daemon […]
Category: Software
React server side rendering as a react based template engine
<p class="wp-block-paragraph"><em>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</em></p> <p class="wp-block-paragraph"><strong>Motivation</strong>: Create a presentation template to be converted to pdf and configurable with data: produce formatted documents.</p> <p class="wp-block-paragraph">Here:<br /><a href="https://www.freecodecamp.org/news/server-side-rendering-your-react-app-in-three-simple-steps-7a82b95db82e/">https://www.freecodecamp.org/news/server-side-rendering-your-react-app-in-three-simple-steps-7a82b95db82e/</a></p> <p class="wp-block-paragraph">This is […]
React Form, my wrong way
<p class="wp-block-paragraph">Today I had to face form definition in react and I was afraid to some kind of repeatitive task.<br />I looked for in in google, I found <a rel="noreferrer noopener" href="https://jaredpalmer.com/formik" target="_blank">formik</a>, <a rel="noreferrer noopener" href="https://redux-form.com/8.3.0/" target="_blank">react-redux-form</a>, but I see it too complex, or too heavy.</p> <p class="wp-block-paragraph">I am using <a href="https://reactstrap.github.io/" target="_blank" rel="noreferrer […]
My 2 days Journey on moving services to a swarm
<p class="wp-block-paragraph">I work for starsellersworld.com, I wanted my company start to use tool for tracking project development in a centralized way, Jira was expensive as resource, and I can not ask such a step, so I asked a machine were to run <strong>Redmine</strong>. Then it cames the <strong>gogs</strong>, and, after little time, <strong>Jenkins</strong>.</p> <p class="wp-block-paragraph">A […]
I stopped the data flow – on React best practices
<p class="wp-block-paragraph">Reading the interesting article from Dan Abramov:<br /><a href="https://overreacted.io/writing-resilient-components/" target="_blank" rel="noreferrer noopener" aria-label="https://overreacted.io/writing-resilient-components/ (opens in a new tab)">https://overreacted.io/writing-resilient-components/</a></p> <p class="wp-block-paragraph">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, […]
git-merge: the github conference (Microsoft 2019)
<p class="wp-block-paragraph">Remembering those nice days in Brussels, where I visit le Grand Platz, having good lamb’s meals, visiting <a href="https://vangoghexpo.com/" data-type="link" data-id="https://vangoghexpo.com/" target="_blank" rel="noreferrer noopener">Van Gongh – The immersive experience</a>, <a href="https://g.co/kgs/RL2pGkj" data-type="link" data-id="https://g.co/kgs/RL2pGkj">Atomium</a> (<a href="https://youtu.be/w3X94d9wVlw" data-type="link" data-id="https://youtu.be/w3X94d9wVlw" target="_blank" rel="noreferrer noopener">my video</a>). But mostly I attended the conference on github, updating my skills on managing […]
How to compile zmq-beta for php docker image: does the C compiler works?
<p class="wp-block-paragraph">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.</p> <p class="wp-block-paragraph">During morning I would like to write supporting class for integrating zmq into our […]
News from Verona ( ReactJS Day – October, 5th, 2018)
<p class="wp-block-paragraph">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 toke a screenshot.</p> <p class="wp-block-paragraph"><span style="font-size: 13.008px;">My experiment on React.context will focus on edit state of a page. Currently the page […]
How to launch docker container from a Docker container
<p class="wp-block-paragraph">Running a docker container from inside a docker container, I mean.</p> <p class="wp-block-paragraph">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</p> <h2 class="wp-block-heading">The infinite containment</h2> <p class="wp-block-paragraph">docker run -v /var/run/docker.sock:/var/run/docker.sock -name whocare alwaysfork</p> <p class="wp-block-paragraph">Ok, […]
How to define Higher Order Function with elegance
<p class="wp-block-paragraph">I need some moment to fully understand this:</p> <pre class="wp-block-preformatted">const compose = ( …fns ) => fns.reduce( ( f, g ) => ( …args ) => f( g( …args ) ) ); </pre> <p class="wp-block-paragraph">reduce method is trickly: when initialValue is not given, the first element of the array is taken as first argument […]