html – image map not working, could this be because of the image size?

.container {
  width: 1500px;
  height: 100%;
  margin: auto;
}

.container>div {
  margin: auto;
  width: 1200px;
  height: 100%;
}

img {
  width: 1200px;
  height: auto;
  margin: auto;
}
<div class="container">
  <div class="intro">
    <img src="https://placehold.it/1913x6360" alt="" usemap="article">
    <map name="article">
                <area shape="poly" coords="13.81, 154.51, 20.00, 154.55, 20.00, 156.51, 12.70, 156.51" href="#" alt="">
                <area shape="poly" coords="12.27, 170.0, 18.41, 170.0, 18.41, 170.0, 11.16, 170.0" href="#" alt="">
            </map>
  </div>
</div>

reactjs – Using fetch post trying to senad usestate variable to backend, not working. React.js

Two buttons with its own function excuected when clicked, one is savedays and other is submitdays. I want to combine the functions so its only one button but i get this error.

const saveDays = async () => {
        await setSelectedDays(selectedDays => "");

        if(days.Monday == true){await setSelectedDays(selectedDays => selectedDays.concat("MON,"))};
        if(days.Tuesday == true){await setSelectedDays(selectedDays => selectedDays.concat("TUE,"))};
        if(days.Wednesday == true){await setSelectedDays(selectedDays => selectedDays.concat("WED,"))};
        if(days.Thursday == true){await setSelectedDays(selectedDays => selectedDays.concat("THUR,"))};
        if(days.Friday == true){await setSelectedDays(selectedDays => selectedDays.concat("FRI,"))};
        if(days.Saturday == true){await setSelectedDays(selectedDays => selectedDays.concat("SAT,"))};
        if(days.Sunday == true){await setSelectedDays(selectedDays => selectedDays.concat("SUN,"))};
        await setSelectedDays(selectedDays => selectedDays.slice(0, -1));
        console.log(selectedDays,"updated");
    }

const submitDays = async () => {
        let postRes = await fetch(`/addSurveyDays/${selectedDays}`, {
            // let postRes = await fetch(`/addSurveyTime/${e.target.checked}`, {
            method: "POST",
            headers : { 
                'Content-Type': 'application/json',
                'Accept': 'application/json'
            }
        });
        let postResult = await postRes.json();
        if (postResult.success) {
            // fetchSurveySystemInfo();
            console.log("succes posted")
        } else setEmailError("Something went wrong, please try again")
    }

But when i combine both this functions to be executed on click with a single button. I get this error the first time i run it.

Chrome console log, “POST HTTP://localhost:3000/addSurveyDays/ 404 (Not Found)

The error is only there the first time i run it, then its fine. can someone help explain why that is?

command line – Copy and Paste options are not working in Gedit text-editor in a Linux terminal

I’m new to Ubunto and Linux. I’m using Ubunto 20.04 Virtual Machine, and I’m trying to install asterisk using the terminal.
There are some codes that I need to write in text files using gedit, but instead of rewriting the codes I want to copy them and paste them on gedit.
None of the following is working for me:
Ctrl + v
Ctrl + shift + v
Alt + Insert
Ctrl + Insert
Shift + Insert
I also noticed that when the terminal asks me to enter my password, It doesn’t show it on the terminal as I write it. I don’t know if that’s related.

Custom module sort and search filter not working

I’ve created a custom module.

The sorting and search filter not working on the grid page.

<arguments>
<argument name="id" xsi:type="string">testGrid</argument>
<argument name="dataSource" xsi:type="object">VendorNameModuleNameModelResourceModelTestCollection</argument>
<argument name="default_sort" xsi:type="string">id</argument>
<argument name="default_dir" xsi:type="string">desc</argument>
<argument name="save_parameters_in_session" xsi:type="boolean">true</argument>
<argument name="use_ajax" xsi:type="boolean">true</argument>
<argument name="grid_url" xsi:type="url" path="*/*/grid"><param name="_current">1</param></argument>
</arguments>

table sort and search filter not working

linux – Samba force create mode not working with Write bit

Hello I have a problem with force create mode on Ubuntu samba I am trying to add write permission to group and other but I can´t get it.

This is my folder samba config

[files]
comment = files
path = /var/shared/web/files
writeable = yes
browsable = yes
create mask = 0700
force create mode = 0711
force user = admin
force group= publishers
valid users = admin

If I use this config

create mask = 0700
directory mask = 0711

I can get execution permission for the group and others

-rwx--x--x  1 iisadmin publishers    0 Apr 19 17:32 'New Text Document.txt'

or this, I Can get read permission for the group and others

create mask = 0700
directory mask = 0744

It´s works

 -rwxr--r--  1 iisadmin publishers    0 Apr 19 17:32 'New Text Document.txt'

But if I try with this to get write permission nothing happend

   create mask = 0700
directory mask = 0722

The result is

-rwx------  1 iisadmin publishers    0 Apr 19 17:32 'New Text Document.txt'

Why not working when I use 0722?

8 – Ajax enabled form stopped working – Ajax callback never called

I have the weird problem that an Ajax enabled form that just worked stopped working – and I have not a clue what is causing this and when it stopped to work. The form itself has no changes for months now and I did not find any code updates which may interfere with this form.

The form is defined in its own form class which extends FormBase. The Ajax functionality is added with the following code in buildForm() method:

$form('form_container')('actions')('submit') = (
  '#type' => 'submit',
  '#value' => 'Submit',
  '#ajax' => (
    'callback' => '::ajaxResponse'
  ),
  '#attributes' => (
    'class' => ('js-show-throbber')
  ),
  '#weight' => -45,
);

In the form class the method is defined:

public function ajaxResponse(array $form, FormStateInterface $form_state)

When I set a breakpoint within this method for XDebug the script never stops, the process within this methods are not running.

There is no info in browser’s console, it is not working in any browser and in watchdog of Drupal are no entries. For me it seems that somehow the bridge between browser / JavaScript world and the form PHP class is broken. I use the exact same PHP code for many other forms without any problem.

My question: can anybody give me a hint how exactly the bridge between browser and form class is created when the form gets rendered? How can I find out if there is a problem in the PHP form class or somewhere in JavaScript?

errors – Monitor if subpage is working

One of the subpages on a WordPress installation seems to not always work. When I accessed it today, it just showed a blank page, after having loaded for about a minute. The owner of the site experienced the same thing.

After maybe 10 minutes it worked again, it loaded quickly and showed all the content. Now I want to know, if this was just a one time thing, or if there is a problem that only sometimes occurs. So my question is: Is there a way to monitor a single subpage and check if it’s working properly?