8 – How do I render a form in a div through a javascript call

I’m trying to load a form into a div using a javascript call. I can get the form in the div, but nothing works (autocomplete fields, wysiwyg fields, custom submit handler).

I know I must be missing something, but I can’t figure out what it is.

What I have now to get the form:

$form = Drupal::formBuilder()->getForm('Drupalmy_moduleFormMyForm');
$renderable = (
   '#theme' => 'my_form',
   '#form' => $form,
);
$rendered = Drupal::service('renderer')->renderPlain($renderable);

$response = new AjaxResponse();
$response->setData($rendered);
return $response;

I’ve also tried renderRoot instead of renderPlain, but to no avail.

The twig file looks like this (very simple):

<div id="form-container">
    {% include 'header.html.twig' with {
        type : 'manual'
    } %}
    <div class="content">
        {{ form }}
    </div>
</div>

Any help will be greatly appreciated.

how to create a ui_form selector by triggering ajax call on previous selector selected option (create dynamic selectors in ui_form) in magento 2

I’m going to a controller through ajax and calling block file from there and in that block file i have set the template file where I’m trying making selector and setting options in it and returning a block file result to controller

xiaomi – How to avoid black screen on call?

I have an Xiaomi Mi Max which for some reason stopped the proximity sensor at 0 and this means I get black screen on every call (Whatsapp calls in particular) and I cannot do anything but restart. The phone is rooted and I wish to find a way to use my phone otherwise I have to probably throw it away as the sensor itself cannot be found in my country.

Is there any trick or application which can help me disable or otherwise set the proximity sensor to a number that it doesn’t bug me?

networking – What tells the router what to call me?

My current home server, a machine running Centos7, currently shows up as server_Jellyfin on my home router after installing Jellyfin a couple months ago. It also has a description, “A Jellyfin server.”

What is causing this name and description to be set? It isn’t the hostname, as that is still what I expected it to be.

Where can I change this? this server is running a lot more than that so the name isn’t very apt. I apologize for what honestly seems like a stupid question but I can’t seem to find what this is called.

samsung – Mobile Data blocked while getting/sending phone call and message

I have 2 sim cards in my phone Samsung J7 Pro. Whenever I used the packet data for internet using sim 2 and there’s phone call or message coming in my internet got blocked. I used packet data because it’s the only reliable internet connection I have right now. How to totally block all incoming call or messages to avoid my packet data blocked while using the internet?, Thanks in advance.

domain name system – Getting error ‘attempt to call global ‘addDOHLocal’ (a nil value) while trying to run dnsdist on arm64

I installed dnsdist and tried to run with his simple configuration

-- disable security status polling via DNS
-- setSecurityPollSuffix("")

-- fix up possibly badly truncated answers from pdns 2.9.22
-- truncateTC(true)

-- Answer to only clients from this subnet
setACL("127.0.0.1/8")

-- Define upstream DNS server (Pi-hole)
newServer({address="192.168.5.165:5335", name="Pi-hole", checkName="dc01.domain.nl.", checkInterval=60, mustResolve=true})

-- Create local DOH server listener in DNS over HTTP mode, otherwise the information coming from nginx won't be processed well
addDOHLocal("127.0.0.1:8053", nil, nil, "/dns-query", { reusePort=true })

I installed twice , second time checked the soruce: https://ubuntu.pkgs.org/20.04/ubuntu-universe-arm64/dnsdist_1.4.0-1build2_arm64.deb.html

install result

Get:1 http://ports.ubuntu.com/ubuntu-ports bionic/universe arm64 dnsdist arm64 1.2.1-1build1 (902 kB)
Fetched 902 kB in 0s (3679 kB/s)
Selecting previously unselected package dnsdist.
(Reading database ... 248869 files and directories currently installed.)
Preparing to unpack .../dnsdist_1.2.1-1build1_arm64.deb ...
Unpacking dnsdist (1.2.1-1build1) ...
Setting up dnsdist (1.2.1-1build1) ...
Job for dnsdist.service failed because the control process exited with error code.
See "systemctl status dnsdist.service" and "journalctl -xe" for details.
Processing triggers for man-db (2.8.3-2ubuntu0.1) .

please help

c# – How to call repository methods in EF core so caller can know what it returns

How to make good repository in layer so caller od repository methods knows what method returns.
If I have Student and Grades objects in database I can have one query:

GetStudentsIncludingGrades that shows that it will return Students with populated Grades list inside.
So it looks like this:

public Student GetStudentsIncludingGrades (){
    db.Students.Include(x=>x.Grades);
}

What I have some complex repository. I want to avoid to have methods like:

GetStudentsOnly 
GetStudentsIncludingGrades
GetStudentsIncludingGradesAndIncludingDetailPersonalData
GetStudentByIdWithSomethingElse
GetStudentsSomeLongNameThatDescibesEvrythingButItIsUgly.

I can make it generic so caller can give me list of navigation properties that query must include but I don’t want that my service layer knows anything about Entity Framework internals.

What is directory under selected numbers in redmi call recording settings?

What is directory button under selected numbers in redmi call recording settings?
Does it mean contacts?

Device : redmi note 7 pro
enter image description here

bluetooth – “Call from” qc 35 Bose ubuntu 18.04 even though no call

I have connected my Bose qc35 to Ubuntu 18.04 and they worked fine until an update recently. My issue is that when I watch media files I will get a “call from” the voice inside the headphones even though no calls incoming.

I have no idea why this happens. They worked fine before 16 Septembers update.

Any one have an idea why this happens?

Here are my logs with search “bluetooth”

14:51:14 bluetoothd: Unable to get io data for Phone Book Access: getpeername: Transport endpoint is not connected (107)

14:51:14 obexd: disconnected: Transport got disconnected

14:51:14 bluetoothd: Unable to get io data for Headset Voice gateway: getpeername: Transport endpoint is not connected (107)

14:50:38 kernel: Bluetooth: hci0: SCO packet for unknown connection handle 257

14:49:37 obexd: stat(/home/boggie/phonebook/): No such file or directory (2)

14:49:35 bluetoothd: connect error: Device or resource busy (16)

14:49:19 obexd: disconnected: Transport got disconnected

14:47:37 kernel: Bluetooth: hci0: SCO packet for unknown connection handle 257

14:47:32 obexd: stat(/home/boggie/phonebook/): No such file or directory (2)

14:47:31 kernel: Bluetooth: hci0: SCO packet for unknown connection handle 0

14:47:17 bluetoothd: connect error: Device or resource busy (16)

14:09:09 kernel: Bluetooth: hci0: SCO packet for unknown connection handle 0

13:41:11 bluetoothd: Unable to get io data for Phone Book Access: getpeername: Transport endpoint is not connected (107)

13:40:49 kernel: Bluetooth: hci0: SCO packet for unknown connection handle 0

13:40:39 bluetoothd: Unable to get io data for Phone Book Access: getpeername: Transport endpoint is not connected (107)

13:40:36 kernel: Bluetooth: hci0: SCO packet for unknown connection handle 0

12:23:12 bluetoothd: Unable to get io data for Phone Book Access: getpeername: Transport endpoint is not connected (107)

12:22:53 kernel: Bluetooth: hci0: SCO packet for unknown connection handle 257

Can we hear media and make call simultaneously using two bluetooth devices?

The picture says both are active.

Device : redmi note 7 pro