dnd 5e – Can the area of the additional spell effect of Druid Grove extend outside the area of Druid Grove?

The spike growth effect must be within the druid grove area; it’s unclear whether it must be entirely within the area

The druid grove spell includes a few potentially helpful lines (emphasis mine):

(…) The area can be as small as a 30-foot cube or as large as a 90-foot cube. (…)

(…) The spell creates the following effects within the area. (…)

(…) A dispel magic cast on the area, if successful, removes only one of the following effects, not the entire area. (…)

(…) You can place your choice of one of the following magical effects within the warded area: (…)

From the first quote we can conclude that “the area” refers to the actual grove itself not the various effects of the spell. Thus we know that the effects (including the additional spell effects) are created within the area. We also know from the fourth quote that these effects are placed within the area. What we do not know is whether “the effect” means the point-of-origin or the entire effect. I could see a GM using either interpretation.

My own personal thoughts

If I tell you to put a book on the table and you have the book teetering off the edge, I will smile, say “really?”, and move the book to be actually on the table.

While the spike growth might be inside the druid grove it also goes outside the grove. It would be meeting a technical requirement because the spell did not include the word “entirely” but I wouldn’t allow it to be placed in such a way.

usa – Does the US ban on visitors from the Schengen area/UK also extend to Puerto Rico?

Yes, the restrictions on entry to the United States for people who have been in the Schengen Area (or Mainland China, Iran, the UK, Ireland, or Brazil; see this question) also restrict entry to Puerto Rico, because Puerto Rico is part of the “United States” for immigration purposes.

INA 101(a)(38) (8 USC 1101(a)(38)) defines “United States” for the purposes of the Immigration and Nationality Act:

The term “United States”, except as otherwise specifically herein
provided, when used in a geographical sense, means the continental
United States, Alaska, Hawaii, Puerto Rico, Guam, the Virgin Islands
of the United States, and the Commonwealth of the Northern Mariana
Islands.

Does the ban on visitors from the Schengen area/UK also extend to Puerto Rico?

The US banned people who have been in the Schengen area in the past 14 days from entering since March 12th. Does this ban also extend to Puerto Rico?

covid 19 – Extend USA B2 Tourist Visa (for My Mother) stay under COVID19 + Flight ban situation

My Mother (63 yrs) is currently visiting me from India on B2 visa.
Now her I94 is valid till Sept 15 this year (visa is 10 yrs). Due to COVID19 India has flight ban imposed, and till now we dont have dates when the flights are going to resume. So I can see there is an option for requesting stay extension by filing a I539 with documents supported and I131 as I (son) will be her sponsor for stay and all expenses. We are looking for a stay request extension for max couple of months.
Now the questions are –

  1. How long it takes to get a decision (approval or rejection) in such cases ?
  2. What is the best time to file the extension request considering we have still 60+ days till the I94 expire in Sept 15.?
  3. If I file now, and we get rejection of extension of stay (before the current I94 expires), do my mother need to leave immediately or she can stay till the current I94 date (which is Sept 15)?
  4. If we get the rejection after I94 has expired (Sept 15), how many days she will have to leave the country? Does she accrues out of status in this case? and does the B2 visa (10 yrs validity) gets void as well?
  5. Last case – we file extension, we don’t get any decision quickly, but she leaves before getting the decision (approval or rejection, say she leaves at October end). In this case is she good in status, means no out of status and visa void?

network – Do we get a seamless roaming when we extend a mesh wi-fi to city wide scale?

Stack Exchange Network


Stack Exchange network consists of 177 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

java – How can we extend a packet in the case of an overflow?

I have asked this question in stackOverflow, but I guess that maybe softwareEngineering is more appropriate. (here is the question in stackOverflow)

I have frames sized with a fixed size of 7 values (t_i, i in {1..7}). Each value is stored on 2 bytes (the max value is then = 2^(16) -1 = 65 535) and is divided by a resolution factor of 10000, which makes 6.5535ms as the maximum value (0xFFFF). Beyond those values, the 2 bytes are no longer enough and the counter overflows.

In my test cases, I often encounter overflow especially when I use quite low frequencies

eg: frequency = 400Hz and t_1 = 1ms => t_7 = 1 + 6 * 1/400 = 16 ms > 6.5535 ms

To handle this overflow, what has been done until now was that that we allowed the overflow as it was detectable during the decoding.

To detect this overflow, the time delta between 2 consecutive (t_i) has been calculated to see if the result was lower than the max value (0xFFFF equivalent to 6.5535 ms) in which case, there is an overflow (counter and growing by definition, a decay shows an anomaly ).

I am thinking about extending the frame (x2) in case of overflow. How can I proceed to do so?

Existing lines to bypass the counter’s overflow problem :

    if (timeCounterInMs > 2000000000) { // 2000000000 is the value to be substracted to  the counter to transform long into double
                timeCounterInMs -= 2000000000;
                isCounterOverFlow = true;
    } else {
                isCounterOverFlow = false;
            }

     currentIndexInBytes += 4;
     body(index++) = timeCounterInMs; // body of the frame
            
     for (int j = 0; j < 7; j++) { 
                long timeInTimeRatio = /*transform bytes to long*/;

                currentIndexInBytes += 2;
                body(index++) = timeInTimeRatio; 

                if (timeInTimeRatio == 0 && j != 0) {
                    // the end of the packet
                } else {
                    
                    if (timeInTimeRatio <= theLastValueInPacket && j != 0) { // If the time counter declay => overflow and start to zero

                        timeInTimeRatio = timeInTimeRatio + 65536; // 0xFFFF = 65536
                    }
}

Thank you so much

8 – Is it possible to extend an existing Drupal contributed module

There’s a new Drupal module that I’m interested in integrating in our websites, the Media Entity File Replace module. I’ve already installed it via composer and created an update hook to enable it across our different profiles, but the problem is exporting its yml configuration file.
Step 3 of the module’s Usage Instructions says you have to enable it in the Form Display settings of the media type you wish to use it on. In our case, we just want it on Documents media type.

I looked for the yml configuration under Entity Form Display and found that it updates this particular file:
core.entity_form_display.media.document.default.yml

I run a search in my local Drupal branch and found that that file only exists in the Acquia Lightning Media contributed module (docroot/modules/contrib/lightning_media/modules/lighnting_media_document/config/install/)

How would I safely utilize the Media Entity File Replace Module without breaking a contributed module?

layered navigation – Magento 2.3.5 extend MagentoCatalogModelLayer

I’m able to add layered navigation to a custom page, but if I try to extend MagentoCatalogModelLayer class i’ve got this exception:

1 exception(s):
Exception #0 (Exception): Notice: Undefined offset: -1015 in /mnt/vdb/vhosts/emlineamoto.com/subdomains/dev/vendor/magento/framework/Search/Dynamic/Algorithm.php on line 302

Here the code i use:

<?xml version="1.0" encoding="utf-8"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <virtualType name="MagentoLayeredNavigationBlockNavigationOutlet" type="MagentoLayeredNavigationBlockNavigation">
        <arguments>
            <argument name="layerResolver" xsi:type="object">BileamaraSpecialCollectionModelLayerResolver</argument>
            <argument name="filterList" xsi:type="object">searchFilterList</argument>
        </arguments>
    </virtualType>
    <type name="BileamaraSpecialCollectionModelLayerResolver">
        <arguments>
            <argument name="layersPool" xsi:type="array">
                <item name="outlet" xsi:type="string">BileamaraSpecialCollectionModelLayerOutlet</item>
            </argument>
        </arguments>
    </type>
    <virtualType name="BileamaraSpecialCollectionModelLayerContext" type="MagentoCatalogModelLayerContext">
        <arguments>
            <argument name="collectionProvider" xsi:type="object">MagentoCatalogSearchModelLayerCategoryItemCollectionProvider</argument>
            <argument name="stateKey" xsi:type="object">MagentoCatalogModelLayerCategoryStateKey</argument>
            <argument name="collectionFilter" xsi:type="object">MagentoCatalogModelLayerCategoryCollectionFilter</argument>
        </arguments>
    </virtualType>
    <type name="BileamaraSpecialCollectionModelLayerOutlet">
        <arguments>
            <argument name="context" xsi:type="object">BileamaraSpecialCollectionModelLayerContext</argument>
        </arguments>
    </type>
</config>

and class:

<?php
namespace BileamaraSpecialCollectionModelLayer;

class Outlet extends MagentoCatalogModelLayer
{   
    public function getProductCollection()
    {
        if (isset($this->_productCollections($this->getCurrentCategory()->getId()))) {
            $collection = $this->_productCollections($this->getCurrentCategory()->getId());
        } else {
            $collection = $this->collectionProvider->getCollection($this->getCurrentCategory());
            $collection->addFieldToFilter('real_stock',1);
            $this->prepareProductCollection($collection);
            $this->_productCollections($this->getCurrentCategory()->getId()) = $collection;
        }

        return $collection;
    }
}

any suggestions?

dnd 5e – Does the illusion described in the spell mental prison extend to the space above the target creature?

The spell’s description says:

… you make the area immediately around the target’s space …

Around would include all sides, including above and below, since it does not in any way limit the meaning of “around” in the spell’s description. If a creature flew up or burrowed down to escape the illusion, it would appear there too, and moving through it would incur the same penalties as moving through it horizontally.

This is also consistent with the spell’s name, mental prison, since prisons are things you aren’t supposed to be able to escape from, so it would be rather unintuitive if they could quite easily escape from said prison by simply moving vertically.

magento2.3 – Magento 2.3 extend product list collection in child template – error on search

We use the following method to extend the product list collection inside a child template.
This works fine for the product catalog list page, but gives a error (skips the load from the element) on the search page. The setProduct element does not work on search.

How can we solve this to make this also work on the search page?

Code:

<?php
namespace VendorCatalogProductBlockProduct;

class Data extends MagentoFrameworkViewElementTemplate
{
    private $product;

    public function setProduct($product)
    {
        $this->product = $product;
    }

    public function getProduct()
    {
      return $this->product;  
    }

}

Inside list.phtml;

<ul class="product-highlights-specs">
   <?php $block->getChildBlock("product-specs")->setProduct($_product);
   echo $block->getChildHtml('product-specs', false);?>
</ul>

Inside product-specs template;

<?php
$_product = $block->getProduct();
$attributeset = $_product->getAttributeSetId();

echo $_product->getName();?>
?>