问:
AWS OpenSearch. Replica reappearing after migrating from hot to warm
I was having a problem dropping replicas when transitioning to warm nodes and I found out that the replicas need to be dropped while hot because the ultrawarm nodes have read-only S3 backed storage. So, I then added another  hot stage called "hot_no_replicas" and I was seeing that in fact the replicas were being dropped as planned, However, after the warm migration, the replicas are reappearing. You can see it clearly here in the screenshot. 000022 still has a replica and is on hot. 000021, being older, has had the replica dropped and is still on hot. But 000020 being older than 000021 and having migrated to warm, now has a replica again. I will paste the logging policy and attach screenshot. Does anyone know why this is happening?
ps, I added another , probably superfluous "number_of_replicas" : 0" to the warm state to try one more time to get them removed before the warm transition.

```<code>{
  "_id" : "shortterm_logging_policy",
  "_version" : 37,
  "_seq_no" : 1640996,
  "_primary_term" : 1,
  "policy" : {
    "policy_id" : "shortterm_logging_policy",
    "description" : "hot-warm-delete",
    "last_updated_time" : 1672416827543,
    "schema_version" : 14,
    "error_notification" : null,
    "default_state" : "hot",
    "states" : [
      {
        "name" : "hot",
        "actions" : [
          {
            "retry" : {
              "count" : 3,
              "backoff" : "exponential",
              "delay" : "1m"
            },
            "rollover" : {
              "min_size" : "1gb",
              "min_doc_count" : 6000000,
              "min_index_age" : "1d"
            }
          }
        ],
        "transitions" : [
          {
            "state_name" : "hot_no_replicas",
            "conditions" : {
              "min_index_age" : "2d"
            }
          }
        ]
      },
      {
        "name" : "hot_no_replicas",
        "actions" : [
          {
            "retry" : {
              "count" : 3,
              "backoff" : "exponential",
              "delay" : "1m"
            },
            "replica_count" : {
              "number_of_replicas" : 0
            }
          }
        ],
        "transitions" : [
          {
            "state_name" : "warm",
            "conditions" : {
              "min_index_age" : "3d"
            }
          }
        ]
      },
      {
        "name" : "warm",
        "actions" : [
          {
            "retry" : {
              "count" : 3,
              "backoff" : "exponential",
              "delay" : "1m"
            },
            "replica_count" : {
              "number_of_replicas" : 0
            }
          },
          {
            "retry" : {
              "count" : 3,
              "backoff" : "exponential",
              "delay" : "1m"
            },
            "warm_migration" : { }
          }
        ],
        "transitions" : [
          {
            "state_name" : "delete",
            "conditions" : {
              "min_index_age" : "7d"
            }
          }
        ]
      },
      {
        "name" : "delete",
        "actions" : [
          {
            "retry" : {
              "count" : 3,
              "backoff" : "exponential",
              "delay" : "1m"
            },
            "delete" : { }
          }
        ],
        "transitions" : [ ]
      }
    ],
    "ism_template" : [
      {
        "index_patterns" : [
          "filebeat-syslog-*"
        ],
        "priority" : 1,
        "last_updated_time" : 1652815954078
      },
      {
        "index_patterns" : [
          "filebeat-mapi_logs-*"
        ],
        "priority" : 2,
        "last_updated_time" : 1666124989125
      },
      {
        "index_patterns" : [
          "filebeat-proftpd-*"
        ],
        "priority" : 3,
        "last_updated_time" : 1666126038959
      }
    ]
  }
}
</code>```

Here I have run explain on 000017 which is in the same state as 000020 was.

```<code>{
  "filebeat-syslog-000017" : {
    "aliases" : {
      "all_logs" : { },
      "filebeat-syslog-write" : {
        "is_write_index" : false
      }
    },
    "mappings" : {
      "properties" : {
        "@timestamp" : {
          "type" : "date"
        },
        "@version" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "agent" : {
          "properties" : {
            "ephemeral_id" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            },
            "hostname" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            },
            "id" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            },
            "name" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            },
            "type" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            },
            "version" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            }
          }
        },
        "apenv" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "app" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "beat" : {
          "properties" : {
            "hostname" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            },
            "name" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            },
            "version" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            }
          }
        },
        "close_inactive" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "ecs" : {
          "properties" : {
            "version" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            }
          }
        },
        "host" : {
          "properties" : {
            "name" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            }
          }
        },
        "input" : {
          "properties" : {
            "type" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            }
          }
        },
        "log" : {
          "properties" : {
            "file" : {
              "properties" : {
                "path" : {
                  "type" : "text",
                  "fields" : {
                    "keyword" : {
                      "type" : "keyword",
                      "ignore_above" : 256
                    }
                  }
                }
              }
            },
            "offset" : {
              "type" : "long"
            }
          }
        },
        "log_category" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "offset" : {
          "type" : "long"
        },
        "prospector" : {
          "properties" : {
            "type" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            }
          }
        },
        "received_at" : {
          "type" : "date"
        },
        "received_from" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "site" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "source" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "syslog_hostname" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "syslog_message" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "syslog_pid" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "syslog_program" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "syslog_timestamp" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "tags" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "timezone" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        }
      }
    },
    "settings" : {
      "index" : {
        "mapping" : {
          "total_fields" : {
            "limit" : "3000"
          },
          "ignore_malformed" : "true"
        },
        "refresh_interval" : "30s",
        "translog" : {
          "flush_threshold_size" : "1024mb"
        },
        "plugins" : {
          "index_state_management" : {
            "rollover_alias" : "filebeat-syslog-write"
          }
        },
        "provided_name" : "filebeat-syslog-000017",
        "query" : {
          "default_field" : "message"
        },
        "creation_date" : "1672592177394",
        "number_of_replicas" : "1",
        "uuid" : "o6UaHr1oQaaDMQHDEe0bkA",
        "version" : {
          "created" : "135248027"
        },
        "routing" : {
          "allocation" : {
            "include" : {
              "_tier_preference" : "data_hot"
            }
          }
        },
        "number_of_shards" : "3",
        "merge" : {
          "scheduler" : {
            "max_thread_count" : "1"
          }
        }
      }
    }
  }
}
</code>```

Body:
I was having a problem dropping replicas when transitioning to warm nodes and I found out that the replicas need to be dropped while hot because the ultrawarm nodes have read-only S3 backed storage. So, I then added another  hot stage called "hot_no_replicas" and I was seeing that in fact the replicas were being dropped as planned, However, after the warm migration, the replicas are reappearing. You can see it clearly here in the screenshot. 000022 still has a replica and is on hot. 000021, being older, has had the replica dropped and is still on hot. But 000020 being older than 000021 and having migrated to warm, now has a replica again. I will paste the logging policy and attach screenshot. Does anyone know why this is happening?
ps, I added another , probably superfluous "number_of_replicas" : 0" to the warm state to try one more time to get them removed before the warm transition.

{
  "_id" : "shortterm_logging_policy",
  "_version" : 37,
  "_seq_no" : 1640996,
  "_primary_term" : 1,
  "policy" : {
    "policy_id" : "shortterm_logging_policy",
    "description" : "hot-warm-delete",
    "last_updated_time" : 1672416827543,
    "schema_version" : 14,
    "error_notification" : null,
    "default_state" : "hot",
    "states" : [
      {
        "name" : "hot",
        "actions" : [
          {
            "retry" : {
              "count" : 3,
              "backoff" : "exponential",
              "delay" : "1m"
            },
            "rollover" : {
              "min_size" : "1gb",
              "min_doc_count" : 6000000,
              "min_index_age" : "1d"
            }
          }
        ],
        "transitions" : [
          {
            "state_name" : "hot_no_replicas",
            "conditions" : {
              "min_index_age" : "2d"
            }
          }
        ]
      },
      {
        "name" : "hot_no_replicas",
        "actions" : [
          {
            "retry" : {
              "count" : 3,
              "backoff" : "exponential",
              "delay" : "1m"
            },
            "replica_count" : {
              "number_of_replicas" : 0
            }
          }
        ],
        "transitions" : [
          {
            "state_name" : "warm",
            "conditions" : {
              "min_index_age" : "3d"
            }
          }
        ]
      },
      {
        "name" : "warm",
        "actions" : [
          {
            "retry" : {
              "count" : 3,
              "backoff" : "exponential",
              "delay" : "1m"
            },
            "replica_count" : {
              "number_of_replicas" : 0
            }
          },
          {
            "retry" : {
              "count" : 3,
              "backoff" : "exponential",
              "delay" : "1m"
            },
            "warm_migration" : { }
          }
        ],
        "transitions" : [
          {
            "state_name" : "delete",
            "conditions" : {
              "min_index_age" : "7d"
            }
          }
        ]
      },
      {
        "name" : "delete",
        "actions" : [
          {
            "retry" : {
              "count" : 3,
              "backoff" : "exponential",
              "delay" : "1m"
            },
            "delete" : { }
          }
        ],
        "transitions" : [ ]
      }
    ],
    "ism_template" : [
      {
        "index_patterns" : [
          "filebeat-syslog-*"
        ],
        "priority" : 1,
        "last_updated_time" : 1652815954078
      },
      {
        "index_patterns" : [
          "filebeat-mapi_logs-*"
        ],
        "priority" : 2,
        "last_updated_time" : 1666124989125
      },
      {
        "index_patterns" : [
          "filebeat-proftpd-*"
        ],
        "priority" : 3,
        "last_updated_time" : 1666126038959
      }
    ]
  }
}

Here I have run explain on 000017 which is in the same state as 000020 was.

{
  "filebeat-syslog-000017" : {
    "aliases" : {
      "all_logs" : { },
      "filebeat-syslog-write" : {
        "is_write_index" : false
      }
    },
    "mappings" : {
      "properties" : {
        "@timestamp" : {
          "type" : "date"
        },
        "@version" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "agent" : {
          "properties" : {
            "ephemeral_id" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            },
            "hostname" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            },
            "id" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            },
            "name" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            },
            "type" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            },
            "version" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            }
          }
        },
        "apenv" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "app" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "beat" : {
          "properties" : {
            "hostname" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            },
            "name" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            },
            "version" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            }
          }
        },
        "close_inactive" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "ecs" : {
          "properties" : {
            "version" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            }
          }
        },
        "host" : {
          "properties" : {
            "name" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            }
          }
        },
        "input" : {
          "properties" : {
            "type" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            }
          }
        },
        "log" : {
          "properties" : {
            "file" : {
              "properties" : {
                "path" : {
                  "type" : "text",
                  "fields" : {
                    "keyword" : {
                      "type" : "keyword",
                      "ignore_above" : 256
                    }
                  }
                }
              }
            },
            "offset" : {
              "type" : "long"
            }
          }
        },
        "log_category" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "offset" : {
          "type" : "long"
        },
        "prospector" : {
          "properties" : {
            "type" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            }
          }
        },
        "received_at" : {
          "type" : "date"
        },
        "received_from" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "site" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "source" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "syslog_hostname" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "syslog_message" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "syslog_pid" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "syslog_program" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "syslog_timestamp" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "tags" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "timezone" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        }
      }
    },
    "settings" : {
      "index" : {
        "mapping" : {
          "total_fields" : {
            "limit" : "3000"
          },
          "ignore_malformed" : "true"
        },
        "refresh_interval" : "30s",
        "translog" : {
          "flush_threshold_size" : "1024mb"
        },
        "plugins" : {
          "index_state_management" : {
            "rollover_alias" : "filebeat-syslog-write"
          }
        },
        "provided_name" : "filebeat-syslog-000017",
        "query" : {
          "default_field" : "message"
        },
        "creation_date" : "1672592177394",
        "number_of_replicas" : "1",
        "uuid" : "o6UaHr1oQaaDMQHDEe0bkA",
        "version" : {
          "created" : "135248027"
        },
        "routing" : {
          "allocation" : {
            "include" : {
              "_tier_preference" : "data_hot"
            }
          }
        },
        "number_of_shards" : "3",
        "merge" : {
          "scheduler" : {
            "max_thread_count" : "1"
          }
        }
      }
    }
  }
}


来源: stackexchange

问:
ow to fix: Could not compile build file (gradle) in Dolphin Android studio error
Good day to you. I am new to programming and have a desire to learn. I recently downloaded Dolphin Android studio and i am struggling to get the gradle to sync successfully. i have attached pictures to show my problem. I would appreciate a step by step solution. i have tried to search for solutions but unfortunately all i find is solutions not for the Android Dolphin studio.Picture 1

i tried downloading Gradle 7.6 and it could not sync and when i see the gradle library file in my Android Studio Folder its 7.4 version and i do not know how to make them the same. I copied build scripts from one stack overflow solution which is the one you see in the picture provided and when i try to sync it keeps on saying 'could not compile buld file.'

Thank you for helping me, much appreciated.

ContentLicense: CC BY-SA 4.0


问:
Files cannot be found despite existing
So I have this bot and it had no issues when I first had this code and was working on adding some functions and commands, but today it just cannot find any file in the commands folder for some reason.

Right now it says it cannot find .DS_Store, and when I change it to a folder with my javascript commands, it says it can't even find those files either, despite them absolutely being there. I tried redoing it all but I have no clue what's wrong with these few lines.

This is the code that gets all the files needed

const functions = fs.readdirSync("./src/functions").filter(file => file.endsWith(".js"));
const eventFiles = fs.readdirSync("./src/events").filter(file => file.endsWith(".js"));
const commandFolders = fs.readdirSync("./src/commands");

(async () => {
    for (file of functions) {
        require(`./functions/${file}`)(client);
    }
    client.handleEvents(eventFiles, "./src/events");
    client.handleCommands(commandFolders, "./src/commands");
    client.login(process.env.token)
})();
```
<p>And this is where the error is thrown by saying:</p>
<blockquote>
<p>Error: ENOTDIR: not a directory, scandir <code>./src/commands/.DS_Store</code></p>
</blockquote>
<pre class="lang-js prettyprint-override"><code>const commandFiles = fs.readdirSync(`${path}/${folder}`).filter(file => file.endsWith('.js'));
</code>```

Title: Files cannot be found despite existing

Body:
So I have this bot and it had no issues when I first had this code and was working on adding some functions and commands, but today it just cannot find any file in the commands folder for some reason.

Right now it says it cannot find .DS_Store, and when I change it to a folder with my javascript commands, it says it can't even find those files either, despite them absolutely being there. I tried redoing it all but I have no clue what's wrong with these few lines.

This is the code that gets all the files needed

const functions = fs.readdirSync("./src/functions").filter(file => file.endsWith(".js"));
const eventFiles = fs.readdirSync("./src/events").filter(file => file.endsWith(".js"));
const commandFolders = fs.readdirSync("./src/commands");

(async () => {
    for (file of functions) {
        require(`./functions/${file}`)(client);
    }
    client.handleEvents(eventFiles, "./src/events");
    client.handleCommands(commandFolders, "./src/commands");
    client.login(process.env.token)
})();

And this is where the error is thrown by saying:

Error: ENOTDIR: not a directory, scandir ./src/commands/.DS_Store

const commandFiles = fs.readdirSync(`${path}/${folder}`).filter(file => file.endsWith('.js'));


问:
Determine weights in multivariate weighted linear regression
I have a dataset containing insurance pricing and coverage information. The first column refers to the policy identifier, and the remaining columns refer to premium, limit, deductible, and further details as dummy variables (State and coverage).

Identifier
Price
Limit
Deductible
Peril1
Peril2
Peril3
Peril4
Peril5
Peril6
State1
State2
State3
State4

POL1
250.0
100000
500.0
1
1
1
0
0
1
1
0
0
0

POL1
625.0
100000
1000.0
1
1
1
0
0
1
1
0
0
0

POL1
1650.0
500000
1000.0
1
1
1
0
0
1
1
0
0
0

POL1
2500.0
1000000
1000.0
1
1
1
0
0
1
1
0
0
0

POL1
4375.0
2000000
2000.0
1
1
1
0
0
1
1
0
0
0

POL2
25.0
50000
500.0
0
0
1
1
0
0
1
0
0
0

POL3
60.25
25000
500.0
1
1
1
1
1
1
1
0
0
0

POL3
73.25
50000
500.0
1
1
1
1
1
1
1
0
0
0

Moreover, as it can be seen from the sample dataframe, several rows can refer to the same insurance product. In the original data frame, up to 40 rows may refer to a single policy, while other policies are described in a single row.

I am trying to conduct a multivariate regression

```<code>reg <- lm(log(Premium) ~ Limit + Deductible + Peril1 + Peril2 + Peril3 + Peril4 + Peril5 + Peril6 + State1+ State2 + State3 + State4, data=df)
</code>```

By conducting  the multivariate regression, it emerges that the distribution of residual errors does not follow a normal distribution. I therefore decided to Log() the dependent variable. Moreover, in my dataframe there are several outliers and presence of heteroscedasticity.

For the reasons above I thought WLS regression could be a solution to my problem, because it can help me assigning an appropriate weight to each error term. Trying to understand the functioning and theory behind WLS I tried to conduct simple weighted regression as explained here

```<code>wt <- 1 / lm(abs(reg$residuals) ~ reg$fitted.values)$fitted.values^2
wls_model <- lm(log(Premium) ~ Limit + Deductible + Peril1 + Peril2 + Peril3 + Peril4 + Peril5 + Peril6 + State1+ State2 + State3 + State4, data=df, weight=wt)
</code>```

But when looking at the results I don’t think this is the correct approach to tackle my problem, also considering the fact that by trying to solve this issue many rows are not considered.

From my understand, as the weight parameter of lm should be a vector, I could assign a specific weight to each policy. For instance, each row pertaining POL1 is 1/5. Despite having read documentation, relevant posts, and searched for packages that could facilitate my work, it is not clear to me how to implement WLS in my case.

Body:
I have a dataset containing insurance pricing and coverage information. The first column refers to the policy identifier, and the remaining columns refer to premium, limit, deductible, and further details as dummy variables (State and coverage).

Identifier
Price
Limit
Deductible
Peril1
Peril2
Peril3
Peril4
Peril5
Peril6
State1
State2
State3
State4

POL1
250.0
100000
500.0
1
1
1
0
0
1
1
0
0
0

POL1
625.0
100000
1000.0
1
1
1
0
0
1
1
0
0
0

POL1
1650.0
500000
1000.0
1
1
1
0
0
1
1
0
0
0

POL1
2500.0
1000000
1000.0
1
1
1
0
0
1
1
0
0
0

POL1
4375.0
2000000
2000.0
1
1
1
0
0
1
1
0
0
0

POL2
25.0
50000
500.0
0
0
1
1
0
0
1
0
0
0

POL3
60.25
25000
500.0
1
1
1
1
1
1
1
0
0
0

POL3
73.25
50000
500.0
1
1
1
1
1
1
1
0
0
0

Moreover, as it can be seen from the sample dataframe, several rows can refer to the same insurance product. In the original data frame, up to 40 rows may refer to a single policy, while other policies are described in a single row.

I am trying to conduct a multivariate regression

reg <- lm(log(Premium) ~ Limit + Deductible + Peril1 + Peril2 + Peril3 + Peril4 + Peril5 + Peril6 + State1+ State2 + State3 + State4, data=df)

By conducting  the multivariate regression, it emerges that the distribution of residual errors does not follow a normal distribution. I therefore decided to Log() the dependent variable. Moreover, in my dataframe there are several outliers and presence of heteroscedasticity.

For the reasons above I thought WLS regression could be a solution to my problem, because it can help me assigning an appropriate weight to each error term. Trying to understand the functioning and theory behind WLS I tried to conduct simple weighted regression as explained here

wt <- 1 / lm(abs(reg$residuals) ~ reg$fitted.values)$fitted.values^2
wls_model <- lm(log(Premium) ~ Limit + Deductible + Peril1 + Peril2 + Peril3 + Peril4 + Peril5 + Peril6 + State1+ State2 + State3 + State4, data=df, weight=wt)

But when looking at the results I don’t think this is the correct approach to tackle my problem, also considering the fact that by trying to solve this issue many rows are not considered.

From my understand, as the weight parameter of lm should be a vector, I could assign a specific weight to each policy. For instance, each row pertaining POL1 is 1/5. Despite having read documentation, relevant posts, and searched for packages that could facilitate my work, it is not clear to me how to implement WLS in my case.


问:
Get Blocked Users with GitHub GraphQL
I stumbled on GitHub GraphQL today and at first glance, it seemed to me I could do more with it than I already do with their regular RESTful API. I created some Adapters in my existing application and managed to authenticate Users based on a Personal Access Token without much trouble.

Going further, I tried then list Followers, Followees and Blocked Users:

```<code>query GetFollowers {
  user(login: "username") {
    followers(first: 100) {
      nodes {
        login
        name
        avatarUrl
      }
    }
  }
}
</code>```

Obviously, replacing username with a real GitHub username

However, I couldn't find a way to list the Blocked Users, which is something I can do with the RESTful API. Reading the (extensive) documentation, the closest I could build was:

```<code>query GetBlockedUsers {
  node(id: "node_id") {
    ... on UserBlockedEvent {
      subject {
        avatarUrl
        login
        name
      }
    }
  }
}
</code>```

This not only didn't work — or, at least, didn't yield any results — but would also require an extra step when requesting the endpoint, as I would first need to retrieve the node_id of a given username:

Yes, there are some Users blocked on my list :Þ

```<code>query GetUserID {
  user(login: "username") {
    id
  }
}
</code>```

Is it possible to list/add/remove Users to the Blocked List with their GraphQL API? Preferably, but not required, in one single query, filtering by username instead of this node_id

Thank you for your time :D

Title: Get Blocked Users with GitHub GraphQL

Body:
I stumbled on GitHub GraphQL today and at first glance, it seemed to me I could do more with it than I already do with their regular RESTful API. I created some Adapters in my existing application and managed to authenticate Users based on a Personal Access Token without much trouble.

Going further, I tried then list Followers, Followees and Blocked Users:

query GetFollowers {
  user(login: "username") {
    followers(first: 100) {
      nodes {
        login
        name
        avatarUrl
      }
    }
  }
}

Obviously, replacing username with a real GitHub username

However, I couldn't find a way to list the Blocked Users, which is something I can do with the RESTful API. Reading the (extensive) documentation, the closest I could build was:

query GetBlockedUsers {
  node(id: "node_id") {
    ... on UserBlockedEvent {
      subject {
        avatarUrl
        login
        name
      }
    }
  }
}

This not only didn't work — or, at least, didn't yield any results — but would also require an extra step when requesting the endpoint, as I would first need to retrieve the node_id of a given username:

Yes, there are some Users blocked on my list :Þ

query GetUserID {
  user(login: "username") {
    id
  }
}

Is it possible to list/add/remove Users to the Blocked List with their GraphQL API? Preferably, but not required, in one single query, filtering by username instead of this node_id

Thank you for your time :D


问:
Jquery change function ignores first option
I have a questionnaire created dynamically based upon a question pool. Each question has 3 radio button choices and a comment textbox. The questions are sorted by category and collected in accordion body groups. As each question is displayed a unique form is created. The Jquery listens for a change to any of the forms and posts the change to the database.

The issue is Jquery ignores the first question. I can't figure out why it is doing that. Can you tell me why?

This is the code:

```<code><!--The biginning of the checklist section-->
<div class="col-8">

  <?php $i=1;
   while ($row = mysqli_fetch_assoc($a)) { ?>
  <div class="accordion" id="accordionTab">
    <div class="accordion-item">
        <h2 class="accordion-header" id="<?php echo "heading".numberTowords($i);?>">
        <input type="hidden" name="<?php echo "heading".numberTowords($i);?>" id="<?php echo "heading".numberTowords($i);?>" value="<?php echo $row['form_area'];?>"/>
            <button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="<?php echo "#collapse".numberTowords($i);?>" aria-expanded="true" aria-controls="<?php echo "collapse".numberTowords($i);?>"><?php echo $row['form_area'];?>
          </button></h2>
      <div id="<?php echo "collapse".numberTowords($i);?>" class="accordion-collapse collapse" aria-labelledby="<?php echo "heading". numberTowords($i);?>" data-bs-parent="#accordionTab">
        <?php  $b = $row['GROUP_CONCAT(question)'];
                  $c = explode(',',$b);
                  $e = explode(',', $row['GROUP_CONCAT(ID)']);
                  $y = 0;
                  foreach (array_combine($c, $e) as $e => $d){
                      echo '  '.$e.'<input type="hidden" name = "question" value="<?php echo $d;?>" name="question">';
                    $y++; ?>
            <div class="accordion-body">
                 <ul class="list-group">
                    <li class='list-group-item'>
                    <?php $z = $y;?>
                    <form id="the-form<?php echo $z;?><?php echo $i;?>">

                        <div class="form-check" id="<?php echo $d;?>">
                        <input type="hidden" name ="ControlNumber" value="<?php echo $cntl;?>">
                         <input type="hidden" name ="question" value="<?php echo $d;?>">
                         <input class="form-check-input" id="rd<?php echo $z;?><?php echo $i;?>" name="value" type="radio" value="Yes">
                         <label class="form-check-label" for="exampleRadios1">Yes</label>

                        </div>
                        <div class="form-check" id="<?php echo $d;?>">
                            <input class="form-check-input" id="rd<?php echo $z;?><?php echo $i;?>" name="value" type="radio" value="No">
                              <label class="form-check-label" for="exampleRadios2">No</label>

                        </div>
                        <div class="form-check" id="<?php echo $d;?>">
                            <input class="form-check-input" id="rd<?php echo $z;?><?php echo $i;?>" name="value" type="radio" value="N/A">
                          <label class="form-check-label" for="exampleRadios3">N/A</label>

                        </div>
                        <div class="input-group input-group-sm mb-3">
                          <div class="input-group-prepend">
                            <span class="input-group-text">Comments</span>
                          </div>
                            <textarea class="form-control" aria-label="With textarea" id="rd<?php echo $z;?><?php echo $i;?>" name="comment"><?php echo $d;?></textarea>
                         </div>
<!-- this is where the jquery was -->
              </li>
              <div id="result"></div>
               </form>

</ul>
            </div>
<script>
  $(document).ready(function() {
   $("#the-form<?php echo $z;?><?php echo $i;?>").change(function() {
      $.post("cklistPost.php",
      $("#the-form<?php echo $z;?><?php echo $i;?>").serialize(),
      function( data, testStatus ){
       $("#result").html(data);
      })
    });
  });
</script>
         <?php } ?>
  </div>
 </div>
 <?php $i++; }?>
</div>
</code>```

Any change made to all but the first question is posted to the database.

Body:
I have a questionnaire created dynamically based upon a question pool. Each question has 3 radio button choices and a comment textbox. The questions are sorted by category and collected in accordion body groups. As each question is displayed a unique form is created. The Jquery listens for a change to any of the forms and posts the change to the database.

The issue is Jquery ignores the first question. I can't figure out why it is doing that. Can you tell me why?

This is the code:

  <?php $i=1;
   while ($row = mysqli_fetch_assoc($a)) { ?>

        <h2 class="accordion-header" id="<?php echo "heading".numberTowords($i);?>">
        <input type="hidden" name="<?php echo "heading".numberTowords($i);?>" id="<?php echo "heading".numberTowords($i);?>" value="<?php echo $row['form_area'];?>"/>
            <button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="<?php echo "#collapse".numberTowords($i);?>" aria-expanded="true" aria-controls="<?php echo "collapse".numberTowords($i);?>"><?php echo $row['form_area'];?>
          </button>

      <div id="<?php echo "collapse".numberTowords($i);?>" class="accordion-collapse collapse" aria-labelledby="<?php echo "heading". numberTowords($i);?>" data-bs-parent="#accordionTab">
        <?php  $b = $row['GROUP_CONCAT(question)'];
                  $c = explode(',',$b);
                  $e = explode(',', $row['GROUP_CONCAT(ID)']);
                  $y = 0;
                  foreach (array_combine($c, $e) as $e => $d){
                      echo '  '.$e.'<input type="hidden" name = "question" value="<?php echo $d;?>" name="question">';
                    $y++; ?>

                    <?php $z = $y;?>
                    <form id="the-form<?php echo $z;?><?php echo $i;?>">

                        <div class="form-check" id="<?php echo $d;?>">
                        <input type="hidden" name ="ControlNumber" value="<?php echo $cntl;?>">
                         <input type="hidden" name ="question" value="<?php echo $d;?>">
                         <input class="form-check-input" id="rd<?php echo $z;?><?php echo $i;?>" name="value" type="radio" value="Yes">
                         Yes

                        <div class="form-check" id="<?php echo $d;?>">
                            <input class="form-check-input" id="rd<?php echo $z;?><?php echo $i;?>" name="value" type="radio" value="No">
                              No

                        <div class="form-check" id="<?php echo $d;?>">
                            <input class="form-check-input" id="rd<?php echo $z;?><?php echo $i;?>" name="value" type="radio" value="N/A">
                          N/A

                            Comments

                            <textarea class="form-control" aria-label="With textarea" id="rd<?php echo $z;?><?php echo $i;?>" name="comment"><?php echo $d;?></textarea>

               </form>

         <?php } ?>

 <?php $i++; }?>

Any change made to all but the first question is posted to the database.


问:
why there is Web error date string mistake?
I'm typing a date in a web billing application and it says that "  Conversion from string "30/11/2022 00:00:00" to type 'Date' is not valid. " what should I do

image (https://i.stack.imgur.com/8McR3.png)

I'm trying to get month wise sale


问:
How to Create TestCase dom onclick in Angular using Jasmine
I am facing below error
Error: onclick() method does not exist

There is a button if clicked it will reset the dropdown, sample source code .ts

```<code>document.getElementById('doBack').onclick = function() {
            (<HTMLInputElement>document.getElementById(`myDropDown${event.id}`)).value='';
        };
</code>```

Sample source code spec.ts

```<code> spyOn(document.getElementById("doBack"),'onclick');
        expect(document.getElementById("doBack").onclick).toBeDefined();
</code>```

Please suggest jasmine code for document.getElementById()onclick=function.

i try using spyOn(), jasmine.createSpy, spyOnEvent but return error

Body:
I am facing below error
Error: onclick() method does not exist

There is a button if clicked it will reset the dropdown, sample source code .ts

document.getElementById('doBack').onclick = function() {
            (<HTMLInputElement>document.getElementById(`myDropDown${event.id}`)).value='';
        };

Sample source code spec.ts

 spyOn(document.getElementById("doBack"),'onclick');
        expect(document.getElementById("doBack").onclick).toBeDefined();

Please suggest jasmine code for document.getElementById()onclick=function.

i try using spyOn(), jasmine.createSpy, spyOnEvent but return error


问:
How to set socket attribute globally using socket.io in nodejs from within a socket event handler?
Currently working on a portfolio project, and running into a problem where I am trying to set an attribute for the socket variable globally from within a local socket event handler so that it can be accessed when handling other socket events.

These are the events I'm handling: a login event and a disconnect event.

```<code>io.on("connect", socket => {
    console.log(`User joined: `, socket.id)

    socket.on("login", (data) => handleUserLogin(socket, data))

    socket.on("disconnect", () => handleDisconnect(socket))
})
</code>```

When the user logs on, I emit a login event from the client and the login event handler takes in data of a JSON object with user details, and a company ID, both sent from the client. I'm trying to save this companyId gloablly. This companyId attribute is supposed to help determine which list to append/collect etc.

```<code>const handleUserLogin = async (socket, data) => {
    const { companyId, user } = data;
    socket.join([`${socket.id}`, `${companyId}`]);
    socket.companyId = companyId;

    try {
        const newOnlineUser = await redisClient.hset(`${companyId}:users:online`, `${socket.id}`, JSON.stringify(user))
        if (newOnlineUser) {
            const onlineUsers = await redisClient.hgetall(`${companyId}:users:online`)
            socket.to(companyId).emit("user_status_change", { onlineUsers })
        }
    } catch (error) {
        socket.to(`${socket.id}`).emit("error", { error })
    }
};
</code>```

When the socket disconnects, I want to remove the user from my redis list, which means I'll need this companyId attribute. But a value of null appears when I try to access: socket.companyId.

```<code>const handleDisconnect = async (socket) => {
    console.log(`Disconnect: ${socket.companyId}`)
    if (socket?.companyId) {
        console.log('Disconnect event for user', socket.id, 'of company', socket.companyId, 'occurred.' )
        try {
                const offlineUser = await redisClient.hdel(`${socket.companyId}:users:online`, `${socket.id}`)
                if (offlineUser) {
                    const onlineUsers = await redisClient.hgetall(`${companyId}:users:online`)
                    socket.to(companyId).emit("user_status_change", { onlineUsers })
                }
            } catch (error) {
                console.log(error)
            }
    }
}

</code>```

Would love to know how to deal with this, or at least find a way to set an attribute to the socket instance from within event handling, for which can be accessed also when handling other events.

Body:
Currently working on a portfolio project, and running into a problem where I am trying to set an attribute for the socket variable globally from within a local socket event handler so that it can be accessed when handling other socket events.

These are the events I'm handling: a login event and a disconnect event.

io.on("connect", socket => {
    console.log(`User joined: `, socket.id)

    socket.on("login", (data) => handleUserLogin(socket, data))

    socket.on("disconnect", () => handleDisconnect(socket))
})

When the user logs on, I emit a login event from the client and the login event handler takes in data of a JSON object with user details, and a company ID, both sent from the client. I'm trying to save this companyId gloablly. This companyId attribute is supposed to help determine which list to append/collect etc.

const handleUserLogin = async (socket, data) => {
    const { companyId, user } = data;
    socket.join([`${socket.id}`, `${companyId}`]);
    socket.companyId = companyId;

    try {
        const newOnlineUser = await redisClient.hset(`${companyId}:users:online`, `${socket.id}`, JSON.stringify(user))
        if (newOnlineUser) {
            const onlineUsers = await redisClient.hgetall(`${companyId}:users:online`)
            socket.to(companyId).emit("user_status_change", { onlineUsers })
        }
    } catch (error) {
        socket.to(`${socket.id}`).emit("error", { error })
    }
};

When the socket disconnects, I want to remove the user from my redis list, which means I'll need this companyId attribute. But a value of null appears when I try to access: socket.companyId.

const handleDisconnect = async (socket) => {
    console.log(`Disconnect: ${socket.companyId}`)
    if (socket?.companyId) {
        console.log('Disconnect event for user', socket.id, 'of company', socket.companyId, 'occurred.' )
        try {
                const offlineUser = await redisClient.hdel(`${socket.companyId}:users:online`, `${socket.id}`)
                if (offlineUser) {
                    const onlineUsers = await redisClient.hgetall(`${companyId}:users:online`)
                    socket.to(companyId).emit("user_status_change", { onlineUsers })
                }
            } catch (error) {
                console.log(error)
            }
    }
}

Would love to know how to deal with this, or at least find a way to set an attribute to the socket instance from within event handling, for which can be accessed also when handling other events.


问:
Seperating Jhipster admin and angular project into to frontend with mvn clean install
I have an Jhipster Monolithic application, where when I use mvn clean install I build my frontend into the target folder and then can simulteanously start my backend and frontend reaching them with localhost:8080. But There is also the admin ui of jhipster which I had to comment out so in order for my frontend to be build.

Is there any possible way to build both frontnend angular projects into the target folder without them overwriting each other? For example I want to let my own angular project be buil and reached through localhost:8080 and the admin ui through localhost:8081 after build but right now the admin ui is overwriting my own angular ui.

This is how my pom looks:
My own angular project:

```<code>            <!--Building frontend -->

            <plugin>
                <groupId>com.github.eirslett</groupId>
                <artifactId>frontend-maven-plugin</artifactId>
                <configuration>
                    <workingDirectory>ui</workingDirectory>
                </configuration>
                <executions>
                    <execution>
                        <id>install-node-and-npm</id>
                        <goals>
                            <goal>install-node-and-npm</goal>
                        </goals>
                        <configuration>
                            <nodeVersion>${node.version}</nodeVersion>
                            <npmVersion>${npm.version}</npmVersion>
                        </configuration>
                    </execution>

                    <execution>
                        <id>npm install</id>
                        <goals>
                            <goal>npm</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>webapp build dev</id>
                        <goals>
                            <goal>npm</goal>
                        </goals>
                        <phase>generate-resources</phase>
                        <configuration>
                            <arguments>run build --verbose</arguments>
                            <environmentVariables>
                                <APP_VERSION>${project.version}</APP_VERSION>
                            </environmentVariables>
                            <npmInheritsProxyConfigFromMaven>false</npmInheritsProxyConfigFromMaven>
                        </configuration>
                    </execution>

                </executions>
            </plugin>

            <!--Building frontend ends-->

            <plugin>
                <artifactId>maven-resources-plugin</artifactId>
                <executions>
                    <execution>
                        <id>copy-resources</id>
                        <phase>process-resources</phase>
                        <goals>
                            <goal>copy-resources</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>src/main/resources/static</outputDirectory>
                            <resources>
                                <resource>
                                    <directory>ui/dist/apps/nosi</directory>
                                </resource>
                            </resources>
                        </configuration>
                    </execution>
                    <!--Copy files ends-->
</code>```

And the admin ui which is generated by jhipster:

```<code>           <plugin>
                <groupId>com.github.eirslett</groupId>
                <artifactId>frontend-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <id>install-node-and-npm</id>
                        <goals>
                            <goal>install-node-and-npm</goal>
                        </goals>
                        <configuration>
                            <nodeVersion>${node.version}</nodeVersion>
                            <npmVersion>${npm.version}</npmVersion>
                        </configuration>
                    </execution>
                    <execution>
                        <id>npm install</id>
                        <goals>
                            <goal>npm</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>webapp build dev</id>
                        <goals>
                            <goal>npm</goal>
                        </goals>
                        <phase>generate-resources</phase>
                        <configuration>
                            <arguments>run webapp:build</arguments>
                            <environmentVariables>
                                <APP_VERSION>${project.version}</APP_VERSION>
                            </environmentVariables>
                            <npmInheritsProxyConfigFromMaven>false</npmInheritsProxyConfigFromMaven>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
</code>```

It is executed directly after my own build thats probably the reason why its overwritten but how can I make them build alongside each other and make them work together

Body:
I have an Jhipster Monolithic application, where when I use mvn clean install I build my frontend into the target folder and then can simulteanously start my backend and frontend reaching them with localhost:8080. But There is also the admin ui of jhipster which I had to comment out so in order for my frontend to be build.

Is there any possible way to build both frontnend angular projects into the target folder without them overwriting each other? For example I want to let my own angular project be buil and reached through localhost:8080 and the admin ui through localhost:8081 after build but right now the admin ui is overwriting my own angular ui.

This is how my pom looks:
My own angular project:

            <plugin>
                <groupId>com.github.eirslett</groupId>
                <artifactId>frontend-maven-plugin</artifactId>
                <configuration>
                    <workingDirectory>ui</workingDirectory>
                </configuration>
                <executions>
                    <execution>
                        <id>install-node-and-npm</id>
                        <goals>
                            <goal>install-node-and-npm</goal>
                        </goals>
                        <configuration>
                            <nodeVersion>${node.version}</nodeVersion>
                            <npmVersion>${npm.version}</npmVersion>
                        </configuration>
                    </execution>

                    <execution>
                        <id>npm install</id>
                        <goals>
                            <goal>npm</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>webapp build dev</id>
                        <goals>
                            <goal>npm</goal>
                        </goals>
                        <phase>generate-resources</phase>
                        <configuration>
                            <arguments>run build --verbose</arguments>
                            <environmentVariables>
                                <APP_VERSION>${project.version}</APP_VERSION>
                            </environmentVariables>
                            <npmInheritsProxyConfigFromMaven>false</npmInheritsProxyConfigFromMaven>
                        </configuration>
                    </execution>

                </executions>
            </plugin>

            <plugin>
                <artifactId>maven-resources-plugin</artifactId>
                <executions>
                    <execution>
                        <id>copy-resources</id>
                        <phase>process-resources</phase>
                        <goals>
                            <goal>copy-resources</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>src/main/resources/static</outputDirectory>
                            <resources>
                                <resource>
                                    <directory>ui/dist/apps/nosi</directory>
                                </resource>
                            </resources>
                        </configuration>
                    </execution>

And the admin ui which is generated by jhipster:

           <plugin>
                <groupId>com.github.eirslett</groupId>
                <artifactId>frontend-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <id>install-node-and-npm</id>
                        <goals>
                            <goal>install-node-and-npm</goal>
                        </goals>
                        <configuration>
                            <nodeVersion>${node.version}</nodeVersion>
                            <npmVersion>${npm.version}</npmVersion>
                        </configuration>
                    </execution>
                    <execution>
                        <id>npm install</id>
                        <goals>
                            <goal>npm</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>webapp build dev</id>
                        <goals>
                            <goal>npm</goal>
                        </goals>
                        <phase>generate-resources</phase>
                        <configuration>
                            <arguments>run webapp:build</arguments>
                            <environmentVariables>
                                <APP_VERSION>${project.version}</APP_VERSION>
                            </environmentVariables>
                            <npmInheritsProxyConfigFromMaven>false</npmInheritsProxyConfigFromMaven>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

It is executed directly after my own build thats probably the reason why its overwritten but how can I make them build alongside each other and make them work together