Categories
Mastering Development System & Network

Check if job is running on another server in the same network using Ansible

On a private Network, I have two servers, let’s call them server01 and server02. They are in the same network. The second server is rebound server i-e if server01 is no longer active, the second server must make sure to take over and run certain jobs, especially with Ansible. On my server01, I have this […]

Categories
Mastering Development

MongoDB skip stages on pipeline?

I want to know if there is any way of skipping stages on the aggregation pipeline, more concretely, stop and return if one of the $lookup stages find a matach. I need a query for retrieving "inherited" data from other types and/or groups. In this case I have three different tables: devices_properties, types_properties, and group_properties, […]

Categories
CMS Mastering Development Wordpress

Infinite Scroll appending Next Product Category Term pages

I’m using Infinite Scroll and the following great code from here to generate Next Taxonomy Term Link in a term loop. I want to ajax append Next Woocommerce Product Category when you reach the end of the current category. Everything works fine except it only loads 1 term and then it says "No more Items […]

Categories
Mastering Development

SQL Database Schema [duplicate]

There is a user (users). With parameters peerId (Primary Key), permission, isBlock This user can be a student (apprentices) or a teacher (teachers) And these are separate tables. In which at least there is a parameter – argument, in which either the group string or the teacher’s last name string is written. How can I […]

Categories
Mastering Development

Reload page till element is displayed [closed]

i want to check if element exist and displayed on page, if not, reload and check again. what i did is cy.get(element, {timeout:10000}).should(‘be.visible’) but it fail if element not exist after 10sec i want that after 10sec , to reload and search for it again. any suggestion how to create a retry func that will […]

Categories
CMS Magento Mastering Development

How to check if configurable options have been chosen before showing a modal?

I have added a new button next to the add-to-cart button: <button type="button" class="action secondary personalize" data-trigger="personalise"> <span data-bind="i18n: ‘Personalize’"></span> </button> The idea being, when you click on the button you can personalise further the config’d product. At the moment it is possible to get into this personalization journey without selecting the necessary product options […]

Categories
Mastering Development System & Network

Ubuntu – iptables stops redirecting port 80 to 8080 suddenly without any pattern

I have a ubuntu VPS which I am using to host my java based application. It has tomcat installed on port 8080. I have used below iptable command to route traffic from port 80 to 8080. Honestly, I am not a expert on this. I just copied this command from some webpage and it is […]

Categories
Linux Mastering Development

ps -C behavior changed between Centos 6 and Centos 8

Our system often uses ps -C cmdName to check if a process is running and, if not, restart it. In moving from Centos 6 to Centos 8 it seems the behavior of ps -C has changed which broke much of our system. Centos 6 (32-bit) Yes, process is there: # ps aux | grep DvBuildSegmentList […]

ps -C behavior changed between Centos 6 and Centos 8

Our system often uses ps -C cmdName to check if a process is running and, if not, restart it. In moving from Centos 6 to Centos 8 it seems the behavior of ps -C has changed which broke much of our system. Centos 6 (32-bit) Yes, process is there: # ps aux | grep DvBuildSegmentList […]

What are the long term consequences of settling an isolated territory with an extremely limited gene pool?

I remember reading about a discredited theory – I’m afraid that, despite some frantic Googling, I’ve been unable to track down a link – which stated that Australia was first settled by a woman, pregnant with a son, who washed up on a beach. It struck me as surprising that such a theory was ever […]