Any web project has basically 4 kind of places where images reside:
In the CSS;
In a font file (think at icons);
In the cloud (think at AWS S3);
In the project itself as static files.
Symfony’s Webpack Encore is great to manage the first two places as it is able to manage the images referenced in the CSSes and to manage fonts (as they are handled as CSSes are).
The third group of images, the ones in the cloud, have not to be managed by Webpack but by another bundle like
So we are left only with the fourth group: the static images.
read more How to manage static images with Symfony’s Webpack Encore 04.06.2018
The message “SSL certificate problem: unable to get local issuer certificate” shows up when trying to connect to Magento Connect or when, generally, you try to use
cURL to connect to a remote web site.
This error happens because
cURL cannot find a
cacert.pem file from which take the trusted signatures.
read more Magento 2: SSL certificate problem: unable to get local issuer certificate (cURL problem) 04.29.2016
to create thumbnails of images stored on Amazon S3 and save a cache version of them again on S3 may be really painful.
In this post I’ll try to guide you step by step in the configuration process, to have a full configured data flow to create thumbnails stored on Amazon S3 using
read more How to use LiipImagineBundle to manage thumbnails through Amazon S3 01.25.2016
Some days ago I found myself on front o f a problem: my unit tests failed because of lack of PHP memory.
This were the tedious error:
PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 16640 bytes)
As I use CodeShip.io as
continuous delivery server, I had to increase the PHP
memory_limit on their systems, but… how?
read more How to increase PHP memory_limit on CodeShip.io 01.21.2016
A brief checklist of common things you would like to configure in your Apache webserver.
read more Apache webserver configuration checklist 08.01.2015
Each Mac has a built-in Apache server that runs a built-in PHP.
To upgrade it you need less than 10 minutes once you have understood all the steps needed.
The same applies also to install the last PHP 7.1 version: you only need to change the required version of PHP (see below).
read more How to upgrade the built-in PHP of your Mac (OsX) 08.01.2015
Here there is a good configuration for your PHP environment. It is a good checklist to use, for example, when you
update MAMP. read more A useful php.ini configuration for local development 07.31.2015
Lazy loading is a mechanism that make the script able to load data only when they are required to.
So, if we have to load a big graph of data, we don’t load it entirely at the start, but only when it is required for use.
This mechanism is very useful as it maintain the application performances high (if used with cause cognition!).
read more How to lazy load objects in PHP 07.21.2015
XCode is the development environment provided by Apple and it contains a set of tools useful for development.
One of this tools is XCode Command Line Tool that
[…] gives terminal users many commonly used tools, utilities, and compilers, including make, GCC, clang, perl, svn, git, size, strip, strings, libtool, cpp, what, and many other useful commands that are usually found in default linux installations.
From OSX Daily
To install XCode Command Line Tools, you DON’T have to first install XCode.
read more How to install XCode Command Line Tools 07.17.2015
If you receive this error trying to install some new binaries using MAMP (for example,
installing Intl PHP module), then there is a chance you’ll get this error in your Terminal:
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.
This happens because you haven’t the
Autoconf binaries installed.
So, let’s install the Autoconf binaries in MAMP.
read more How to set the $PHP_AUTOCONF environment variable in MAMP (in 2 steps) 07.17.2015