Amazon Simple Email Service has a mechanism to prevent sending emails to addresses that bounced or complained. Sometimes the emails are bouncing because of the short time server failures. And if the email is added to the suppression list, this address will never receive an email from you.
When you are using Docker at Mac for development, you may be noticed, that the speed of the attached volume is horrifically slow. To cut a long story short, it is due to the way a Docker virtual machine works on a Mac.
You can generate a random number in bash using this snippet:
RAND=$(shuf -i 7000-7999 -n 1)
How to purge MySQL 8 binary logs
You saw, that your mysql disk, using /var/lib/mysql is full. So, you need to know how to free some space and clean up the disk. Usually, you can safely remove the old binlogs.
Sometimes you could not create Mysql dump because one or several tables corrupted. Then obviously it should be somehow restored. The Mysql and Maria have some standard tools for restoring crashed tables.
How to check if a customer is logged in?
Let’s discuss, how to check if the customer is logged in at any class (controller, model, block, etc) or at the template.
The short answer is you should not use the ObjectManager directly at all. It is a bad practice, and lets talk why.
Magento 2 + Modernizr
Modernizr is needed to determine which of the JS, HTML and CSS capabilities the client browser can handle and which cannot. It is very useful to use its functionality in Magento.
Do you also get this annoying notification that you need to sign in to the network? It is not only annoying but also indicates that the Internet connection is actually broken. And you cannot receive any messages, you cannot use the Internet at all. You need constantly press the Use this network as is option. This is very annoying.
Images on your site are very important, it has said a lot about already. Internet users often pay attention to the illustrated sites and ignore the ones where there is only the text. This article focuses on how to correctly place the images on your site that they are guaranteed to be indexed by Google or Yandex.