samsung – Is it possible to connect the daydream controller somehow?

I have a Google Daydream headset ad controller. Unfortunately, it no longer works on my new phone, a Samsung Galaxy A52. By disabling NFC, I can get the headset to function as a Google cardboard, which works fine, but there is no way to provide input.

Is there a way to connect the daydream controller in a way that it can provide some sort of input, such as key presses, without requiring the Daydream app?

magento2.3 – Magento 2 GuzzleHttpClient and CuRl in Controller Not Working

I am working on the integration of the Point Of Sale System with Magento 2 shop whenever the user click add to cart button API will hit that API will check the stock in POS if the requested product quantity from the user is available in POS(point of sale) Stock or not.

 $http = new GuzzleHttpClient;
 $response = $http->get(''.$websiteId.'/'.$sku, (
    'headers' => (
    'Accept'  => 'application/json',

Now, this code works fine in my Magento custom APIs but I want to make an API call in magentomodule-checkoutControllerCartAdd.PHP but unfortunately, it’s not working.

magento2 – Magento 2 – Whitelist certain controller actions while Website Restrictions -> Website closed is active

I’m using Website Restrictions -> Website Closed, to display a page while the shop is temporarily closed. The page is being displayed properly.

On this page I have a newsletter sign-up form, but whenever I submit it I am redirected to the same page (the one set as Landing Page in Website Restrictions settings). I’m thinking that I need a way to whitelist newsletter/subscriber/new action to allow the form submit.

While researching I found out that such whitelist can achieved through the etc/webrestrictions.xml so I’ve tried setting it up like:

// following the example in vendor/magento/module-invitation/etc/webrestrictions.xml
<?xml version="1.0"?>
<config xmlns:xsi="" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_WebsiteRestriction:etc/webrestrictions.xsd">
    <action path="magento_newsletter_subscriber_new" type="generic" />


// following the example in vendor/magento/module-website-restriction/etc/webrestrictions.xml
<?xml version="1.0"?>
<config xmlns:xsi="" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_WebsiteRestriction:etc/webrestrictions.xsd">
    <action path="newsletter_subscriber_new" type="generic" />

but with no luck.

Is there a way to obtain such behaviour?

DNS on my domain controller not working

The DNS server on my Windows Server 2019 AD domain controller has completely crapped out, and I cannot even find anything that remotely addresses my issue. When logging into the DNS GUI, my server is marked out and almost all the right-click options are grayed out:

enter image description here

Is it possible to rebuild the DNS server? If not, is spinning up another server (or 2), replicating to the new servers, and retiring this one would be a great option; but I am not sure if that is possible with corrupted DNS (I didn’t want to try it and get stuck with a bigger issue).

cpu – What is the latest version of ThinkPad laptops that doesn’t have Intel Management Engine or similar remote controller built-in?

I work in cybersecurity and would like to find an older laptop that doesn’t have the Intel Management Engine built-in, while still able to run a Debian OS well.

I have an IBM ThinkPad t42 with 42T0273 system board laying around, which was introduced in late 2004. While it likely doesn’t have IME on it, I found that t42s came equipped with something called Embedded Security System, which sounds eerily similar.

Can you advise on whether my t42 is safe to use, or is there another, perhaps later model of thinkpads that can be used safely? (I do not want to use system76 or purism systems).

mvc – Feature branches vs controller extension

Note: Controller here refers to one from MVCs

Bear with me, I know these are seemingly unrelated. However, I’m inclined to think both are analogous to each other being that they’re means to the same end (i.e. safe product release).

Background: you want to safely push new updates without breaking existing product. Assume it was functioning properly. With feature branches, you can easily rollback to the last stable version. With extended controllers, you can revert to the one without new, shortlived feature.

How do both methods compare against each other? Which is safer? I feel extended controllers minimise impact for failure given the surface area to test is smaller than replacing the existing controllers and testing them as if they’re brand new. But that’s just me.

Does git absolve the need for extending controllers for this purpose or maintaining interchangeable parts?

Side note: I’m not quite sure what tags to use for this. Please feel free to edit and include accordingly

8 – Pass variables from controller to existing node template file

In the Drupal 8 documentation I have found a way how to pass variable from controller to custom twig template


function test_twig_theme($existing, $type, $theme, $path) {
  return (
    'my_template' => (
      'variables' => ('test_var' => NULL),


class TestTwigController extends ControllerBase {
  public function content() {

    return (
      '#theme' => 'my_template',
      '#test_var' => $this->t('Test Value'),


But is there a way to pass variables from controller to already existing node template, for example to node–custom_content_type.html.twig

code – Mageplaza Controller Sample doesn’t display Phtml message

I followed the example from below link but the message “Welcome to” doesn’t display.

It works up until controller set up , I am able to echo a welcome message from execute function in below controller action file.

But after I add layout and template my phtml message doesn’t display. Any help is appreciated.

entities – Unable to load multiple nodes in a controller

Hi all i am facing issue

$query = Drupal::entityQuery('node');
    $query->condition('status', 'all');
    $query->condition('type', 'mytype');
    $query->sort('created' , 'DESC');

    $entity_ids  = $query->execute();
    $cache_tags = ('node_list');
    $items = ();
    $nodes = !empty($entity_ids) ? Drupal::entityTypeManager()->getStorage('node')->loadMultiple($entity_ids) : ();

    foreach ($nodes as $node) {
        echo '<br>';
        print_r($node->label()); // this will return all values 
      $items('title') = $node->label();  // gives only one result
      $items('post_id') = $node->id();
          $nid=  $node->id();

        $response = new ResourceResponse($items);
       // return $response;

    return new JsonResponse( $items );

Error log shows

Warning: array_flip(): Can only flip STRING and INTEGER values! in DrupalCoreEntityEntityStorageBase->loadMultiple() (line 266 of core/lib/Drupal/Core/Entity/EntityStorageBase.php).

Anyone please help me