<p class="wp-block-paragraph">I decided to release this code snip, just a PHP class, for extracting data from an HTML page.</p> <p class="wp-block-paragraph">The code is in <a href="https://github.com/danielecr/verygrabber">https://github.com/danielecr/verygrabber</a> and the packagist can be installed by</p> <blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"> <p class="wp-block-paragraph">composer install smartango/verygrabber</p> </blockquote> <p class="wp-block-paragraph">rif. <a href="https://packagist.org/packages/smartango/verygrabber">https://packagist.org/packages/smartango/verygrabber</a></p> <p class="wp-block-paragraph">This is an old snippet to define a […]
Tag: php
What if my blog does not use cookies?
<p class="wp-block-paragraph">My idea concerns was to limit the maintenance work to the minimum, still being effective. But which alternatives are available?</p> <h2 class="wp-block-heading">No analytics</h2> <h3 class="wp-block-heading"><strong>✅ Legal Perspective (EU / GDPR / ePrivacy)</strong></h3> <p class="wp-block-paragraph"><strong>Not using tracking tools like Google Analytics</strong> can indeed <strong>help you avoid needing a cookie consent popup</strong>, <em>if</em>:</p> <p class="wp-block-paragraph">1. You […]
Dive into (useless?) uncovered case of multistage dockerfile
<p class="wp-block-paragraph">Looking at the upstream documentation of <a href="https://docs.docker.com/build/building/multi-stage/">Multi-stage builds</a> there are some examples but this is missing:</p> <p class="wp-block-paragraph">Ok, I mean, the example by itself is useless, but “it works”. Try:</p> <p class="wp-block-paragraph"><code>docker build -f Dockerfile -t copiedfrom-rust:v0.1 .</code></p> <p class="wp-block-paragraph">Then:</p> <p class="wp-block-paragraph"><code>docker run -it copiedfrom-rust:v0.1 sh</code></p> <h2 class="wp-block-heading">Real use case scenario</h2> <p class="wp-block-paragraph">Lets […]
Parallelize PHP script … or at least sort of it with curl parallel
PHP is not a parallel capable programming language (someone would argue it is hard to state that PHP is a [anything]-capable programming language at all), but there are area where this could be parallelized some way. And these are the active waiting routine. The ideal scenario for a trival pseudo parallelization is a bundle of […]