Can I see through my Familiar’s senses/communicate with my Familiar if they are on the other side of an Interdimensional Portal?

This question has been created to help adjudicate the question of whether a Familiar may communicate with their master inside of a Bag of Holding.

Suppose that 5′ away from a Wizard is a portal to the Feywild. On the other side of the portal, their familiar is 5′ away from the corresponding portal. The distance measured between them, using the portal, is only 10′. Does this satisfy the requirements of Find Familiar in its stipulation that its features may be used while the Familiar is within 100′ of the caster, or does the fact that they’re on separate planes of reality mean that their distance is greater than the “walking distance” through the portal?

While your familiar is within 100 feet of you, you can communicate with it telepathically. Additionally, as an action, you can see through your familiar’s eyes and hear what it hears until the start of your next turn, gaining the benefits of any special senses that the familiar has. During this time, you are deaf and blind with regard to your own senses.


Finally, when you cast a spell with a range of touch, your familiar can deliver the spell as if it had cast the spell. Your familiar must be within 100 feet of you, and it must use its reaction to deliver the spell when you cast it. If the spell requires an attack roll, you use your attack modifier for the roll.

Find Familiar, Player’s Handbook, pg. 240

Magento 2.1 Redirect through htaccess

I am unable to 301 redirect url like baseurl/blog/international%20enviroguard%20re-branding%20-%20faqs/ to baseurl/blog/international-enviroguard-re-branding-faqs through htaccess. The page is going to 404 redirect.

I am using the below line to redirect in htaccess – Redirect 301 /blog/international%20enviroguard%20re-branding%20-%20faqs/ /blog/international-enviroguard-re-branding-faqs

Please provide a solution.

Only allow calling a class through constructor

Suppose I have a class Foo:

class Foo(object):    def __init__(self):       ... 

Now I want to add various constructors for that class. But that class should’t be called directly NEVER without any constructor.

class Foo(object):    def __init__(self):       ...    @classmethod    def fromSource1(cls, source1Data, paramA, paramB):       return cls(processData(sourceData))     @classmethod    def fromSource2(cls, source2Data, paramC, paramD, paramE):       self = cls(processData2(sourceData))       self.var += paramE       return self 

Should be called this way:

foo1 = Foo.fromSource1(source1Data, paramA, paramB) foo2 = Foo.fromSource2(source2Data, paramC, paramD, paramE) 

I want to avoid any user of my code calling the Foo class this way:

foo = Foo() 

Is there anything I can do to forbid it?

script run through jenkins user gets killed

In our jenkins build configuration we have the following shell commands (Execute shell) as the last step of our build process.

echo "$  USER" echo "Script executed from: $  {PWD}" git submodule update --init --recursive if [ -f composer.json ]; then     /usr/local/bin/composer install fi sed -i 's/phpunit --bootstrap/\/usr\/local\/bin\/phpunit \-\-bootstrap/g' runtest ./runtest --config unittest/configure.conf --coverage /var/lib/jenkins/workspace/coverage/ 

Everything used to work perfectly till our hard drive gets full and jenkins stopped building. After we cleaned the hard drive and tried building through jenkins again, the last step (Execute shell) failed to build with the following error:

[project] $   /bin/sh -xe /tmp/ + echo jenkins jenkins + echo 'Script executed from: /var/lib/jenkins/workspace/project' Script executed from: /var/lib/jenkins/workspace/project + git submodule update --init --recursive error: git-submodule died of signal 9 Build step 'Execute shell' marked build as failure 

We tried running the shell commands as root and everything works as expected. However, once we run it as jenkins user, the process gets killed within few seconds.

[root@localhost project]# su -c "/bin/bash -x /tmp/" -s /bin/sh jenkins + echo jenkins jenkins + echo 'Script executed from: /var/lib/jenkins/workspace/project' Script executed from: /var/lib/jenkins/workspace/project + '[' -f composer.json ']' + /usr/local/bin/composer install Killed 

I checked the system logs /var/log/messages but didnt find any clue. What can cause the issue and how we may troubleshoot this?

Access NVIDIA GPU through Ubuntu 19 virtualvox Windows 10 host

I was wondering if there is a way to access my GPU from my VirtualBox guest if the host and guest are running separate OSes. I am trying to use the GPU to develop with and not for any gaming applications, if that makes a difference.

HOST: Windows 10

GUEST: Ubuntu 19

Method: Oracle VirtualBox 6.0


how to save the history of calculations done through the calc package in Keypirinha launcher

I frequently use the Calc package of Keypirinha launcher to do small calculations quickly, the problem is Keypirinha does not seem to store any history of those calculations, so I cannot look back at calculations I had done earlier. Is there any setting I can change in Keypirinha config file so that it saves the history of the calculations I have done.

Prevent form regeneration when a callback function is called through ajax

Here is the code for the custom form with a field(field_B) that calls an function through ajax.

The issue is that I want the function (MY_MODULE_XYZ_function()) to be executed only once, when the page loads for the first time. But the function(MY_MODULE_XYZ_function()) is being executed for each ajax call through field_B because the whole form is being regenerated.

How can I prevent whole form regeneration(so that the function won’t be called more than once) for each ajax call? Thanks in advance.

function MY_MODULE_menu(){     $  items['abcd/xyz'] = array(         'title' => 'ABCD',         'page callback' => 'drupal_get_form',         'page arguments' => array('xyz_custom_form'),         'access arguments' => array('access content'),         'type' => MENU_CALLBACK,     );     return $  items; }  function xyz_custom_form($  form, &$  form_state){      MY_MODULE_XYZ_function($  arg1, $  arg2);      $  form['field_A'] = array(  .... );      $  form['field_B'] = array(         '#type' => 'radios',         '#options' => array("a"=>"A", "b"=>"B", "c"=>"C"),         '#prefix' => "<div id='customDiv'>",         '#suffix' => "</div>",         '#ajax' => array(         'callback' => 'MY_MODULE_custom_ajax_callback',             'wrapper' => 'customDiv',             'progress' => array( 'type' => 'throbber', 'message' => NULL),             'effect' => 'fade',         ),     ); }  function MY_MODULE_XYZ_function($  arg1, $  arg2){     //Some Query Execution }  function MY_MODULE_custom_ajax_callback($  form, &$  form_state){     //Some Callback code }