plugins – Slider Revolution new update 6.5.1 hiding navigation arrows

I hope that someone can help.

We have recently updated Slider Revolution to the latest version 6.5.1 on our local test site and the navigation arrows are now not showing on the sliders. After some time spent in the developer tools, I have noticed a warning:

The resource [URL]/wp-content/plugins/revslider/public/assets/fonts/font-awesome/fonts/fontawesome-webfont.woff2 was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate 'as' value and it is preloaded intentionally.

Is this something that anyone has come across before or knows how to fix?

Many thanks in advance for your help.

With kind regards,

Mark

plugins – Hiding Tutor LMS lesson names for anonymous users

I am using Tutor LMS with Elementor. I want to partially hide the lesson names for anonymous users. For example: Topic names would be visible, first 2 or 3 lesson names would also be visible but any lessons after that would be displayed as ‘hidden’ or ‘locked’ or ‘disclosed after enrolling’, etc. Is there any plugin for this?

dnd 5e – Techniques for hiding dice rolls when an NPC/enemy has advantage/disadvantage

I recommend using a phone app to roll your secret dice. I tried “RPG Simple Dice” and it seems fine; one click to roll any die, and I didn’t see any ads. There’s probably a fancier one with better animations.

In my games, my policy is that all dice rolls (both mine and my players’) must be public. The main reason to roll dice in secret is so that you can lie about the result of the dice; you know this, I know this, and players also are very aware of this. So, whenever I notice that someone is rolling dice in secret, I start to wonder if they’re lying about the result, which leads to me having less fun in the game.

Some people feel that it’s necessary to roll dice secretly when checking if an NPC is spotted, but I use a technique like this:

Instead of:

Alice: “I walk into the room!”
Bob: (rolls a secret Stealth check to see if you notice the spider on the ceiling before it attacks)

I do:

Alice: “I walk into the room!”
Bob: “Well, there’s a spider on the ceiling of that room, and it’s trying to attack you stealthily. Give me a Perception check, DC16, to see if you notice the spider; if you fail, it gets a surprise round.”

The outcome is the same in both cases, but the players feel more powerful and have more fun when they have all the information at their disposal.

email – Microsoft Outlook hiding text after pressing enter

When typing an email, the previous line of text is hidden after pressing enter. Then, the cursor is stuck and can’t be moved.

I’ve checked if it’s deleting the text and it’s not, since when sending the email to a different email, you receive the hidden text as well. I’ve scoured the internet for solutions for this and it’s not Overtype, line breaks, or formatting issues. It does not occur on other applications, only the Outlook app. I’ve also tried repairing the application and that did not work.

I am using Outlook as part of Microsoft Office 365. It is the newest version and my computer is running Windows 10.

Google Forms is hiding responses under “Other” in the Summary tab

I am running a poll on Google Forms with many options, and over 93 responses are hidden in this “Other” category on the summary page. There is no “Other” option on the multi-select checkboxes, nor any way to leave an answer blank. Is there any way to show “Other” responses within Google Forms, since I don’t know how out how to make a graph work from responses in Google Sheets?Image showing a bar graph with "Other". There are 93 responses.

sidebar – jQuery show/ hide based on scrollTop not hiding

I have a sidebar on my website that fadeIn when the user reaches a certain place which works well.
I have set the same sidebar to fadeOut / Display none when the user reacts further down the page.

This works to an extent but keeps flashing in and out when the user reaches the bottom of the page. I’d just like the user to get to the bottom of the page and the sidebar to fadeOut

Any idea?

This is my jQuery

jQuery(document).scroll(function () {
    var y = jQuery(this).scrollTop();
    if (y > 200) {
        jQuery('.elementor-widget-sidebar').fadeIn();
    } else {
        jQuery('.elementor-widget-sidebar').fadeOut();
    }

});

    jQuery(window).scroll(function(){
        if(jQuery(window).scrollTop() + $(window).height() > $(document).height() -200) {
            jQuery('.elementor-widget-sidebar').css('display', 'none');
        }else{
            jQuery('.elementor-widget-sidebar').css('display', 'block');
        }
    });

sharepoint enterprise – Hiding features on premises using PowerShell

PowerShell script to hide a SpFeature

Credits to Brandon Atkinson:

This best way to do this is in the code for the feature. The feature
has a Hidden flag you can set. Check this post for details:
http://msdn.microsoft.com/en-us/library/ms436075.aspx

So, if you have the code, set that and re-deploy.

If you don’t have the code, check this blog post:
http://chiqnlips.blogspot.com/2012/12/recipe-to-hide-features-across.html

The relevant code lines are:

# Specify the XML file
$thisXMLfile = $myServerPath + $myXMLpath + "feature.xml"

# Load the XML file
$featureXMLfile = (xml) (get-content $thisXMLfile)

# Set the Attribute
$featureXMLfile.Feature.SetAttribute("Hidden", "TRUE")

Basically you have to modify the feature.xml file that is stored on
the server. This example uses PowerShell, but the files reside on the
server so you could modify them there as well. Let me state though
this is not a best practice, and you’ll need to keep a few things in
mind:

Manually changing the XML file can result in breaking your feature and
maybe your environment If the Farm has multiple servers you will need
to update the file on each server If the feature is re-deployed it
will overwrite your changes

magento2 – Hiding Thumbnail images from Gallery – SQL Query

A while ago I had a bad import in a store and hundreds of thousands of thumbnail images got set to show up on product page in Gallery.

Most of the time, you don’t want the gallery to show thumbnail images because they are small.

I found a query in other threads on Stackoverflow that updates the attribute for thumbnail not to show up in Gallery.

UPDATE `catalog_product_entity_media_gallery_value` 
SET `disabled` = 1 
WHERE `disabled` = 0 AND `value_id` IN 
(SELECT `value_id` FROM `catalog_product_entity_media_gallery` WHERE `value` IN 
(SELECT `value` FROM `catalog_product_entity_varchar` WHERE `attribute_id` = 89));

^^^ FYI attribute_id is specific to my store.

QUESTION: Is there a way to optimize it?

At the scale of small shop this would work, but at scale of 200,000 products this query takes way too long.

From experiments this query starts to slow down with every iteration:

MariaDB (test)> UPDATE `catalog_product_entity_media_gallery_value` SET `disabled` = 1 WHERE `disabled` = 0 AND `value_id` IN ( SELECT `value_id` FROM `catalog_product_entity_media_gallery` WHERE `value` IN ( SELECT `value` FROM `catalog_product_entity_varchar` WHERE `attribute_id` = 89)) LIMIT 100;
Query OK, 100 rows affected (3.805 sec)
Rows matched: 100  Changed: 100  Warnings: 0

MariaDB (test)> UPDATE `catalog_product_entity_media_gallery_value` SET `disabled` = 1 WHERE `disabled` = 0 AND `value_id` IN ( SELECT `value_id` FROM `catalog_product_entity_media_gallery` WHERE `value` IN ( SELECT `value` FROM `catalog_product_entity_varchar` WHERE `attribute_id` = 89)) LIMIT 500;
Query OK, 500 rows affected (12.730 sec)
Rows matched: 500  Changed: 500  Warnings: 0

MariaDB (test)> UPDATE `catalog_product_entity_media_gallery_value` SET `disabled` = 1 WHERE `disabled` = 0 AND `value_id` IN ( SELECT `value_id` FROM `catalog_product_entity_media_gallery` WHERE `value` IN ( SELECT `value` FROM `catalog_product_entity_varchar` WHERE `attribute_id` = 89)) LIMIT 1000;
Query OK, 1000 rows affected (24.233 sec)
Rows matched: 1000  Changed: 1000  Warnings: 0

MariaDB (test)> UPDATE `catalog_product_entity_media_gallery_value` SET `disabled` = 1 WHERE `disabled` = 0 AND `value_id` IN ( SELECT `value_id` FROM `catalog_product_entity_media_gallery` WHERE `value` IN ( SELECT `value` FROM `catalog_product_entity_varchar` WHERE `attribute_id` = 89)) LIMIT 1000;
Query OK, 1000 rows affected (36.559 sec)
Rows matched: 1000  Changed: 1000  Warnings: 0

I have tried rewriting it with JOINS:

UPDATE
    catalog_product_entity_media_gallery_value a
    JOIN catalog_product_entity_media_gallery b ON a.value_id = b.value_id
    JOIN catalog_product_entity_varchar c ON c.value = b.value
SET
    a.disabled = 1
WHERE
    a.disabled = 0
    AND c.attribute_id = 89
LIMIT 1000;

But it also has abysmal performance with every iteration.

If you need to look it up here is a select statement:

SELECT * FROM catalog_product_entity_media_gallery_value a 
    JOIN catalog_product_entity_media_gallery b ON a.value_id = b.value_id  
    JOIN catalog_product_entity_varchar c ON c.value = b.value  
WHERE a.disabled = 0 AND c.attribute_id = 89
LIMIT 1000;

dnd 5e – When hiding, how close can you get to enemies before they can potentially detect you?

Creatures are assumed to automatically notice other creatures that are within the range of their sight or hearing, unless they make Stealth checks

The DMG offers a limited amount of guidance about how to determine whether or not creatures detect each other. In the exploration section of chapter 8 (“Running the game”), it states:

Noticing Other Creatures

While exploring, characters might encounter other creatures. An important question in such a situation is who notices whom.

(…)

If neither side is being stealthy, creatures automatically notice each other once they are within sight or hearing range of one another. Otherwise, compare the Dexterity (Stealth) check results of the creatures in the group that is hiding with the passive Wisdom (Perception) scores of the other group, as explained in the Player’s Handbook.

Unless a creature actually attempts to be stealthy and makes a stealth check, it is assumed to be automatically noticed by any other creature once it gets within the range of their sight or hearing. Of course, this just raises the question of what the range of vision or hearing is.

Unfortunately this is entirely up to the DM’s discretion for range of hearing, but for vision, this is quite clearly defined. The DMG in the same section also states:

When traveling outdoors, characters can see about 2 miles in any direction on a clear day, or until the point where trees, hills, or other obstructions block their view. Rain normally cuts maximum visibility down to 1 mile, and fog can cut it down to between 100 and 300 feet.

And we also have the PHB’s rules about vision and light:

In a lightly obscured area, such as dim light, patchy fog, or
moderate foliage, creatures have disadvantage on Wisdom (Perception)
checks that rely on sight.

A heavily obscured area—such as darkness, opaque fog, or dense
foliage—blocks vision entirely. A creature effectively suffers from
the blinded condition when trying to see something in that area.

The presence or absence of light in an environment creates three
categories of illumination: bright light, dim light, and darkness.

Bright light lets most creatures see normally. (…)

Dim light, also called shadows, creates a lightly obscured area. (…)

Darkness creates a heavily obscured area.

Here we see that a creature cannot see anything that is heavily obscured with respect to it, so will not automatically notice creatures that are in darkness until they are either close enough to hear or get within range of a light source or darkvision. It’s also obvious that creatures who have full cover from one another cannot see each other, but can see each other if there is less than full cover involved.

Altogether, if two creatures are close enough to meaningfully interact, they are certainly close enough to see each other and will notice each other automatically, unless there are obstructions between them sufficient to grant full cover or some other impediment to visibility which makes one or the other heavily obscured. Without such circumstances, the creature must make a stealth check if it doesn’t want to be noticed.

In the circumstances of your post – assuming that there were no special conditions of lighting or fog or other obstructions that would have made someone 20 feet further away actually impossible to see – the enemies should, by RAW, have noticed the unstealthy characters approaching as soon as they had line of sight, even if they are distracted.

Of course, it is important to note that these rules assume that stealth checks are opposed by a creature’s passive perception, and if circumstances would grant them disadvantage on a perception check – for instance, if you judge they are distracted by something – that disadvantage translates to a -5 penalty to their passive perception score. So, even characters who aren’t particularly skilled at stealth still have a good shot at sneaking up on distracted, unaware enemies.

privacy – Hiding user data from developers

We have an online store with a reasonable amount of subscribers.

We are thinking about creating development and staging environments for the new features/changes. Since these new environments will be created using a copy from the Production environment they’ll contain user data, and we don’t want that information to be available to the developers.

What is the best way to go about it?

Below are the plugins that are used by the store that may have store user information.

The data we want to obscure or delete is

  • Email address
  • User name (first name, last name, display name)
  • contact information (address, phone number, billing address, etc.)
  • Orders
  • Social media URLs
  • Uploads