Magento 2 – Get multiselect attribute

I want to get multiselect attribute values separately, my attribute is look like this: I use this code to display Default Store View values: if (($attr = $_product->getResource()->getAttribute(‘manual’)) && $attr->usesSource()) { if ($ids = explode(‘,’, $_product->getData(‘manual’))) { foreach ($ids as $id) { echo $attr->getSource()->getOptionText($id); } } } Everything is fine but I need to get…

Details

Why cant sed properly interpret this multi line pattern string

I have a really large regex pattern string that I am using to delete INFO messages from a log file. When I use this all in one line like the following it works fine: sed -r ‘/([12][[:digit:]]{3}-(0[1-9]|1[0-2])-(0[1-9]|[12][[:digit:]]|3[01]) [[:digit:]]{2}:[[:digit:]]{2}:[[:digit:]]{2},[[:digit:]]{3} INFO)/d’ >> $2 But as you see this is difficult to read so I tried putting it…

Details

How does logrotate work?

I’m really struggling to understand how logrotate works when running a command within a shell file of my own, and how it doesn’t. The command in question is: rclone -L -vv –log-file “/home/mike/tmp/qqq.log” sync “/media/mike/W10 D drive/My Documents/” remote:MyDocuments_M17A_from_Linux What I would like: I would like this qqq.log file to be checked quite often, say…

Details

Should an admin enforce HTTPS inside kubernetes network, or just for outside traffic (via ingress)?

In a microservices scenario, each web-api container should serve itself through HTTPS or is it ok to internally work through HTTP and have all ingresses configured with certificates and redirecting to port 80 of the containers? I think the easiest approach is to protect only the outside traffic, because to configure an Asp.Net Core WebAPI…

Details