I decided to release this code snip, just a PHP class, for extracting data from an HTML page. The code is in https://github.com/danielecr/verygrabber and the packagist can be installed by composer install smartango/verygrabber rif. https://packagist.org/packages/smartango/verygrabber This is an old snippet to define a grabber by XPath deploying the recursive nature of DOM (Document Object Model) […]
Category: Software
My blog does not use cookies
My idea concerns was to limit the maintenance work to the minimum, still being effective. But which alternatives are available? No analytics ✅ Legal Perspective (EU / GDPR / ePrivacy) Not using tracking tools like Google Analytics can indeed help you avoid needing a cookie consent popup, if: 1. You don’t store or access any […]
On Software Architetture(s)
Every piece of software written has an architecture. Yes, even a bash script has a (embryonal) architecture: it has input, output, and satisfy some kind of feature (or features). There are a number of viable choice for implementing or adopt an architecture for the code you are going to write. Why is important to know […]
React Form, my wrong way
Today I had to face form definition in react and I was afraid to some kind of repeatitive task.I looked for in in google, I found formik, react-redux-form, but I see it too complex, or too heavy. I am using reactstrap for frontend and maybe there is a premium library for form, but I am […]
My 2 days Journey on moving services to a swarm
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 Redmine. Then it cames the gogs, and, after little time, Jenkins. A number of […]
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 […]
git-merge: the github conference (Microsoft 2019)
Remembering those nice days in Brussels, where I visit le Grand Platz, having good lamb’s meals, visiting Van Gongh – The immersive experience, Atomium (my video). But mostly I attended the conference on github, updating my skills on managing code base, contribute code, sending PR, rollback error, inspecting … The conference happened in South of […]
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 […]