问:
Application failed to start the method does not exist com.azure.spring.cloud.autoconfigure.aad.AadWebSecurityConfigurerAdapter.configure
I have newly created a spring boot project and added spring cloud and azure active directory and lots of dependency, now while I am trying to run my application I am getting below error.

Error:

```<code>APPLICATION FAILED TO START
***************************

Description:

An attempt was made to call a method that does not exist. The attempt was made from the following location:

    com.azure.spring.cloud.autoconfigure.aad.AadWebSecurityConfigurerAdapter.configure(AadWebSecurityConfigurerAdapter.java:83)

The following method did not exist:

   org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2LoginConfigurer$AuthorizationEndpointConfig.authorizationRequestResolver(Lorg/springframework/security/oauth2/client/web/OAuth2AuthorizationRequestResolver;)Lorg/springframework/security/config/annotation/web/configurers/oauth2/client/OAuth2LoginConfigurer$AuthorizationEndpointConfig;

The calling method's class, com.azure.spring.cloud.autoconfigure.aad.AadWebSecurityConfigurerAdapter, was loaded from the following location:

    jar:file:/C:/Users/ARIMO/.m2/repository/com/azure/spring/spring-cloud-azure-autoconfigure/4.5.0/spring-cloud-azure-autoconfigure-4.5.0.jar!/com/azure/spring/cloud/autoconfigure/aad/AadWebSecurityConfigurerAdapter.class

The called method's class, org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2LoginConfigurer$AuthorizationEndpointConfig, is available from the following locations:

    jar:file:/C:/Users/ARIMO/.m2/repository/org/springframework/security/spring-security-config/5.0.0.RELEASE/spring-security-config-5.0.0.RELEASE.jar!/org/springframework/security/config/annotation/web/configurers/oauth2/client/OAuth2LoginConfigurer$AuthorizationEndpointConfig.class

The called method's class hierarchy was loaded from the following locations:

org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2LoginConfigurer.AuthorizationEndpointConfig: file:/C:/Users/ARIMO/.m2/repository/org/springframework/security/spring-security-config/5.0.0.RELEASE/spring-security-config-5.0.0.RELEASE.jar

Action:

Correct the classpath of your application so that it contains compatible versions of the classes com.azure.spring.cloud.autoconfigure.aad.AadWebSecurityConfigurerAdapter and org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2LoginConfigurer$AuthorizationEndpointConfig

Process finished with exit code 1
</code>```

POM.xml: Below is the pom file for integrate one of the functionalities of authenticate using active directory as well as other functionality.

```<code>project xmlns=http://maven.apache.org/POM/4.0.0
       xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance
       xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd>
   <modelVersion>4.0.0</modelVersion>

   <groupId>com.demo.test</groupId>
   <artifactId>test</artifactId>
   <version>0.0.1-SNAPSHOT</version>

   <name>demo</name>
   <description>Spring boot project for test</description>

   <parent>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-parent</artifactId>
      <version>2.7.1</version>
      <relativePath />
   </parent>

   <properties>
      <java.version>1.8</java.version>
      <cxf.version>3.1.5</cxf.version>
      <olingo.version>2.0.11</olingo.version>
      <commons.version>0.0.1-SNAPSHOT</commons.version>
      <log4j2.version>2.17.0</log4j2.version>
      <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
      <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
      <spring-cloud-azure.version>4.5.0</spring-cloud-azure.version>
   </properties>

   <dependencies>
      <dependency>
         <groupId>ch.qos.logback</groupId>
         <artifactId>logback-classic</artifactId>
         <version>1.2.3</version>
      </dependency>

      <!-- https://mvnrepository.com/artifact/org.springframework.security/spring-security-core -->
      <dependency>
         <groupId>org.springframework.security</groupId>
         <artifactId>spring-security-web</artifactId>
         <version>5.0.0.RELEASE</version>
      </dependency>
      <dependency>
         <groupId>org.springframework.security</groupId>
         <artifactId>spring-security-core</artifactId>
         <version>5.0.0.RELEASE</version>
      </dependency>
      <dependency>
         <groupId>org.springframework.security</groupId>
         <artifactId>spring-security-config</artifactId>
         <version>5.0.0.RELEASE</version>
      </dependency>
      <dependency>
         <groupId>com.microsoft.sqlserver</groupId>
         <artifactId>mssql-jdbc</artifactId>
         <scope>runtime</scope>
      </dependency>
      <dependency>
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-starter-web</artifactId>
      </dependency>
      <dependency>
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-starter-data-jpa</artifactId>
         <exclusions>
            <exclusion>
               <groupId>org.apache.tomcat</groupId>
               <artifactId>tomcat-jdbc</artifactId>
            </exclusion>
         </exclusions>
      </dependency>
      <dependency>
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-starter-actuator</artifactId>
      </dependency>
      <!-- Cloud dependencies -->
      <dependency>
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-starter-cloud-connectors</artifactId>
         <version>2.1.4.RELEASE</version>
      </dependency>
      <!-- Cloud dependencies -->
      <dependency>
         <groupId>org.springframework.cloud</groupId>
         <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
         <version>2.2.10.RELEASE</version>
         <exclusions>
            <exclusion>
               <groupId>javax.ws.rs</groupId>
               <artifactId>jsr311-api</artifactId>
            </exclusion>
         </exclusions>
      </dependency>
      <dependency>
         <groupId>org.springframework.cloud</groupId>
         <artifactId>spring-cloud-starter-openfeign</artifactId>
      </dependency>

      <!-- Apache Olingo dependencies -->
      <dependency>
         <groupId>org.apache.olingo</groupId>
         <artifactId>olingo-odata2-jpa-processor-api</artifactId>
         <version>${olingo.version}</version>
         <exclusions>
            <exclusion>
               <groupId>org.eclipse.persistence</groupId>
               <artifactId>javax.persistence</artifactId>
            </exclusion>
         </exclusions>
      </dependency>
      <dependency>
         <groupId>org.apache.olingo</groupId>
         <artifactId>olingo-odata2-jpa-processor-core</artifactId>
         <version>${olingo.version}</version>
         <exclusions>
            <exclusion>
               <groupId>org.eclipse.persistence</groupId>
               <artifactId>javax.persistence</artifactId>
            </exclusion>
         </exclusions>
      </dependency>
      <dependency>
         <groupId>org.apache.cxf</groupId>
         <artifactId>cxf-rt-frontend-jaxrs</artifactId>
         <version>${cxf.version}</version>
      </dependency>
      <dependency>
         <groupId>org.apache.olingo</groupId>
         <artifactId>olingo-odata2-api</artifactId>
         <version>${olingo.version}</version>
      </dependency>
      <dependency>
         <groupId>org.apache.olingo</groupId>
         <artifactId>olingo-odata2-core</artifactId>
         <version>${olingo.version}</version>
      </dependency>
      <dependency>
         <groupId>org.apache.olingo</groupId>
         <artifactId>olingo-odata2-api-annotation</artifactId>
         <version>${olingo.version}</version>
      </dependency>

      <!-- Utilities -->
      <dependency>
         <groupId>org.flywaydb</groupId>
         <artifactId>flyway-sqlserver</artifactId>
      </dependency>

      <!-- Test tools -->
      <dependency>
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-starter-test</artifactId>
         <scope>test</scope>
      </dependency>
      <dependency>
         <groupId>org.mockito</groupId>
         <artifactId>mockito-core</artifactId>
         <scope>test</scope>
      </dependency>
      <dependency>
         <groupId>com.h2database</groupId>
         <artifactId>h2</artifactId>
         <scope>test</scope>
      </dependency>
      <dependency>
         <groupId>org.projectlombok</groupId>
         <artifactId>lombok</artifactId>
         <version>1.18.10</version>
         <scope>provided</scope>
      </dependency>
      <dependency>
         <groupId>io.projectreactor</groupId>
         <artifactId>reactor-core</artifactId>
         <version>3.4.10</version>
      </dependency>
      <dependency>
         <groupId>com.microsoft.azure</groupId>
         <artifactId>azure-core</artifactId>
         <version>0.9.8</version>
         <exclusions>

            <exclusion>
               <groupId>com.fasterxml.jackson.core</groupId>
               <artifactId>jackson-core</artifactId>
            </exclusion>
            <exclusion>
               <groupId>com.fasterxml.jackson.core</groupId>
               <artifactId>jackson-annotations</artifactId>
            </exclusion>
            <exclusion>
               <groupId>com.fasterxml.jackson.core</groupId>
               <artifactId>jackson-databind</artifactId>
            </exclusion>
            <exclusion>
               <groupId>com.fasterxml.jackson.dataformat</groupId>
               <artifactId>jackson-dataformat-xml</artifactId>
            </exclusion>
            <exclusion>
               <groupId>com.fasterxml.jackson.datatype</groupId>
               <artifactId>jackson-datatype-jsr310</artifactId>
            </exclusion>
         </exclusions>
      </dependency>
      <dependency>
         <groupId>org.cloudfoundry.identity</groupId>
         <artifactId>cloudfoundry-identity-client-lib</artifactId>
         <version>4.10.0</version>
         <exclusions>
            <exclusion>
               <groupId>org.slf4j</groupId>
               <artifactId>slf4j-log4j12</artifactId>
            </exclusion>
         </exclusions>
      </dependency>
      <!-- https://mvnrepository.com/artifact/org.json/json -->
      <dependency>
         <groupId>org.json</groupId>
         <artifactId>json</artifactId>
         <version>20080701</version>
      </dependency>

      <!-- Utilities -->
      <dependency>
         <groupId>com.fasterxml.jackson.core</groupId>
         <artifactId>jackson-core</artifactId>
         <version>2.13.2</version>
      </dependency>
      <dependency>
         <groupId>com.fasterxml.jackson.core</groupId>
         <artifactId>jackson-annotations</artifactId>
         <version>2.13.2</version>

      </dependency>
      <dependency>
         <groupId>com.fasterxml.jackson.core</groupId>
         <artifactId>jackson-databind</artifactId>
         <version>2.13.2</version>

      </dependency>
      <dependency>
         <groupId>com.fasterxml.jackson.dataformat</groupId>
         <artifactId>jackson-dataformat-xml</artifactId>
         <version>2.13.2</version>
      </dependency>
      <dependency>
         <groupId>com.fasterxml.jackson.datatype</groupId>
         <artifactId>jackson-datatype-jsr310</artifactId>
         <version>2.13.2</version>

      </dependency>

      <dependency>
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-starter-oauth2-client</artifactId>
      </dependency>

      <dependency>
         <groupId>com.azure.spring</groupId>
         <artifactId>spring-cloud-azure-starter-active-directory</artifactId>
      </dependency>
   </dependencies>

   <dependencyManagement>
      <dependencies>
         <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-dependencies</artifactId>
            <version>2021.0.3</version>
            <type>pom</type>
            <scope>import</scope>
         </dependency>
         <dependency>
            <groupId>com.azure.spring</groupId>
            <artifactId>spring-cloud-azure-dependencies</artifactId>
            <version>${spring-cloud-azure.version}</version>
            <type>pom</type>
            <scope>import</scope>
         </dependency>
      </dependencies>
   </dependencyManagement>

   <build>
      <plugins>
         <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
            <version>2.1.4.RELEASE</version>
         </plugin>
         <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <version>2.12.4</version><!--$NO-MVN-MAN-VER$-->
         </plugin>
      </plugins>
   </build>
</project>
</code>```

Tried multiple times

Body:
I have newly created a spring boot project and added spring cloud and azure active directory and lots of dependency, now while I am trying to run my application I am getting below error.

Error:

APPLICATION FAILED TO START
***************************

Description:

An attempt was made to call a method that does not exist. The attempt was made from the following location:

    com.azure.spring.cloud.autoconfigure.aad.AadWebSecurityConfigurerAdapter.configure(AadWebSecurityConfigurerAdapter.java:83)

The following method did not exist:

   org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2LoginConfigurer$AuthorizationEndpointConfig.authorizationRequestResolver(Lorg/springframework/security/oauth2/client/web/OAuth2AuthorizationRequestResolver;)Lorg/springframework/security/config/annotation/web/configurers/oauth2/client/OAuth2LoginConfigurer$AuthorizationEndpointConfig;

The calling method's class, com.azure.spring.cloud.autoconfigure.aad.AadWebSecurityConfigurerAdapter, was loaded from the following location:

    jar:file:/C:/Users/ARIMO/.m2/repository/com/azure/spring/spring-cloud-azure-autoconfigure/4.5.0/spring-cloud-azure-autoconfigure-4.5.0.jar!/com/azure/spring/cloud/autoconfigure/aad/AadWebSecurityConfigurerAdapter.class

The called method's class, org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2LoginConfigurer$AuthorizationEndpointConfig, is available from the following locations:

    jar:file:/C:/Users/ARIMO/.m2/repository/org/springframework/security/spring-security-config/5.0.0.RELEASE/spring-security-config-5.0.0.RELEASE.jar!/org/springframework/security/config/annotation/web/configurers/oauth2/client/OAuth2LoginConfigurer$AuthorizationEndpointConfig.class

The called method's class hierarchy was loaded from the following locations:

org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2LoginConfigurer.AuthorizationEndpointConfig: file:/C:/Users/ARIMO/.m2/repository/org/springframework/security/spring-security-config/5.0.0.RELEASE/spring-security-config-5.0.0.RELEASE.jar

Action:

Correct the classpath of your application so that it contains compatible versions of the classes com.azure.spring.cloud.autoconfigure.aad.AadWebSecurityConfigurerAdapter and org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2LoginConfigurer$AuthorizationEndpointConfig

Process finished with exit code 1

POM.xml: Below is the pom file for integrate one of the functionalities of authenticate using active directory as well as other functionality.

project xmlns=http://maven.apache.org/POM/4.0.0
       xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance
       xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd>
   <modelVersion>4.0.0</modelVersion>

   <groupId>com.demo.test</groupId>
   <artifactId>test</artifactId>
   <version>0.0.1-SNAPSHOT</version>

   <name>demo</name>
   <description>Spring boot project for test</description>

   <parent>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-parent</artifactId>
      <version>2.7.1</version>
      <relativePath />
   </parent>

   <properties>
      <java.version>1.8</java.version>
      <cxf.version>3.1.5</cxf.version>
      <olingo.version>2.0.11</olingo.version>
      <commons.version>0.0.1-SNAPSHOT</commons.version>
      <log4j2.version>2.17.0</log4j2.version>
      <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
      <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
      <spring-cloud-azure.version>4.5.0</spring-cloud-azure.version>
   </properties>

   <dependencies>
      <dependency>
         <groupId>ch.qos.logback</groupId>
         <artifactId>logback-classic</artifactId>
         <version>1.2.3</version>
      </dependency>

      <dependency>
         <groupId>org.springframework.security</groupId>
         <artifactId>spring-security-web</artifactId>
         <version>5.0.0.RELEASE</version>
      </dependency>
      <dependency>
         <groupId>org.springframework.security</groupId>
         <artifactId>spring-security-core</artifactId>
         <version>5.0.0.RELEASE</version>
      </dependency>
      <dependency>
         <groupId>org.springframework.security</groupId>
         <artifactId>spring-security-config</artifactId>
         <version>5.0.0.RELEASE</version>
      </dependency>
      <dependency>
         <groupId>com.microsoft.sqlserver</groupId>
         <artifactId>mssql-jdbc</artifactId>
         <scope>runtime</scope>
      </dependency>
      <dependency>
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-starter-web</artifactId>
      </dependency>
      <dependency>
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-starter-data-jpa</artifactId>
         <exclusions>
            <exclusion>
               <groupId>org.apache.tomcat</groupId>
               <artifactId>tomcat-jdbc</artifactId>
            </exclusion>
         </exclusions>
      </dependency>
      <dependency>
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-starter-actuator</artifactId>
      </dependency>

      <dependency>
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-starter-cloud-connectors</artifactId>
         <version>2.1.4.RELEASE</version>
      </dependency>

      <dependency>
         <groupId>org.springframework.cloud</groupId>
         <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
         <version>2.2.10.RELEASE</version>
         <exclusions>
            <exclusion>
               <groupId>javax.ws.rs</groupId>
               <artifactId>jsr311-api</artifactId>
            </exclusion>
         </exclusions>
      </dependency>
      <dependency>
         <groupId>org.springframework.cloud</groupId>
         <artifactId>spring-cloud-starter-openfeign</artifactId>
      </dependency>

      <dependency>
         <groupId>org.apache.olingo</groupId>
         <artifactId>olingo-odata2-jpa-processor-api</artifactId>
         <version>${olingo.version}</version>
         <exclusions>
            <exclusion>
               <groupId>org.eclipse.persistence</groupId>
               <artifactId>javax.persistence</artifactId>
            </exclusion>
         </exclusions>
      </dependency>
      <dependency>
         <groupId>org.apache.olingo</groupId>
         <artifactId>olingo-odata2-jpa-processor-core</artifactId>
         <version>${olingo.version}</version>
         <exclusions>
            <exclusion>
               <groupId>org.eclipse.persistence</groupId>
               <artifactId>javax.persistence</artifactId>
            </exclusion>
         </exclusions>
      </dependency>
      <dependency>
         <groupId>org.apache.cxf</groupId>
         <artifactId>cxf-rt-frontend-jaxrs</artifactId>
         <version>${cxf.version}</version>
      </dependency>
      <dependency>
         <groupId>org.apache.olingo</groupId>
         <artifactId>olingo-odata2-api</artifactId>
         <version>${olingo.version}</version>
      </dependency>
      <dependency>
         <groupId>org.apache.olingo</groupId>
         <artifactId>olingo-odata2-core</artifactId>
         <version>${olingo.version}</version>
      </dependency>
      <dependency>
         <groupId>org.apache.olingo</groupId>
         <artifactId>olingo-odata2-api-annotation</artifactId>
         <version>${olingo.version}</version>
      </dependency>

      <dependency>
         <groupId>org.flywaydb</groupId>
         <artifactId>flyway-sqlserver</artifactId>
      </dependency>

      <dependency>
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-starter-test</artifactId>
         <scope>test</scope>
      </dependency>
      <dependency>
         <groupId>org.mockito</groupId>
         <artifactId>mockito-core</artifactId>
         <scope>test</scope>
      </dependency>
      <dependency>
         <groupId>com.h2database</groupId>
         <artifactId>h2</artifactId>
         <scope>test</scope>
      </dependency>
      <dependency>
         <groupId>org.projectlombok</groupId>
         <artifactId>lombok</artifactId>
         <version>1.18.10</version>
         <scope>provided</scope>
      </dependency>
      <dependency>
         <groupId>io.projectreactor</groupId>
         <artifactId>reactor-core</artifactId>
         <version>3.4.10</version>
      </dependency>
      <dependency>
         <groupId>com.microsoft.azure</groupId>
         <artifactId>azure-core</artifactId>
         <version>0.9.8</version>
         <exclusions>

            <exclusion>
               <groupId>com.fasterxml.jackson.core</groupId>
               <artifactId>jackson-core</artifactId>
            </exclusion>
            <exclusion>
               <groupId>com.fasterxml.jackson.core</groupId>
               <artifactId>jackson-annotations</artifactId>
            </exclusion>
            <exclusion>
               <groupId>com.fasterxml.jackson.core</groupId>
               <artifactId>jackson-databind</artifactId>
            </exclusion>
            <exclusion>
               <groupId>com.fasterxml.jackson.dataformat</groupId>
               <artifactId>jackson-dataformat-xml</artifactId>
            </exclusion>
            <exclusion>
               <groupId>com.fasterxml.jackson.datatype</groupId>
               <artifactId>jackson-datatype-jsr310</artifactId>
            </exclusion>
         </exclusions>
      </dependency>
      <dependency>
         <groupId>org.cloudfoundry.identity</groupId>
         <artifactId>cloudfoundry-identity-client-lib</artifactId>
         <version>4.10.0</version>
         <exclusions>
            <exclusion>
               <groupId>org.slf4j</groupId>
               <artifactId>slf4j-log4j12</artifactId>
            </exclusion>
         </exclusions>
      </dependency>

      <dependency>
         <groupId>org.json</groupId>
         <artifactId>json</artifactId>
         <version>20080701</version>
      </dependency>

      <dependency>
         <groupId>com.fasterxml.jackson.core</groupId>
         <artifactId>jackson-core</artifactId>
         <version>2.13.2</version>
      </dependency>
      <dependency>
         <groupId>com.fasterxml.jackson.core</groupId>
         <artifactId>jackson-annotations</artifactId>
         <version>2.13.2</version>

      </dependency>
      <dependency>
         <groupId>com.fasterxml.jackson.core</groupId>
         <artifactId>jackson-databind</artifactId>
         <version>2.13.2</version>

      </dependency>
      <dependency>
         <groupId>com.fasterxml.jackson.dataformat</groupId>
         <artifactId>jackson-dataformat-xml</artifactId>
         <version>2.13.2</version>
      </dependency>
      <dependency>
         <groupId>com.fasterxml.jackson.datatype</groupId>
         <artifactId>jackson-datatype-jsr310</artifactId>
         <version>2.13.2</version>

      </dependency>

      <dependency>
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-starter-oauth2-client</artifactId>
      </dependency>

      <dependency>
         <groupId>com.azure.spring</groupId>
         <artifactId>spring-cloud-azure-starter-active-directory</artifactId>
      </dependency>
   </dependencies>

   <dependencyManagement>
      <dependencies>
         <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-dependencies</artifactId>
            <version>2021.0.3</version>
            <type>pom</type>
            <scope>import</scope>
         </dependency>
         <dependency>
            <groupId>com.azure.spring</groupId>
            <artifactId>spring-cloud-azure-dependencies</artifactId>
            <version>${spring-cloud-azure.version}</version>
            <type>pom</type>
            <scope>import</scope>
         </dependency>
      </dependencies>
   </dependencyManagement>

   <build>
      <plugins>
         <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
            <version>2.1.4.RELEASE</version>
         </plugin>
         <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <version>2.12.4</version>
         </plugin>
      </plugins>
   </build>
</project>

Tried multiple times


来源: stackexchange

问:
Fslex, binary file lexing
Is there any ability to lexemize binary file formats (e.g. jpeg images) with Fslex (with no readability lacks) or i should write my own lexer/use something like fparsec?</p>

ContentLicense: CC BY-SA 3.0

Title: Fslex, binary file lexing


问:
Mailinator gets pauseStream state unexpected
I am using Mailinator.com to automate registration flow in my app. It is great for this purpose, but sometimes I get this weird problem: when the tests open a public mailbox, the mailinator is kind of in a pauseStream state, like this button is red, and it doesn't load email

When it is like that, whatever workarounds I tried, reload the page, re-enter the mailbox, it is still in this state. But if I open mailinator manually at the same time, the email is there.

Does anyone have the same issue and know how to solve this.

ContentLicense: CC BY-SA 4.0


问:
(Build failed 'Xcodes output') The getter 'onChanged00' isn't defined for the class 'OTPTextField
I haven't worked on my app for 2 days and all of a sudden, when running the app, I get this error:
debug console

I haven't touched the code and it was working fine 2 days ago.

The links in the error...

otp_field file
otp_field file

...point to the otp_field.dart file(which I never opened), with the error being The getter 'onChanged00' isn't defined for the class 'OTPTextField'.

I'm not sure how this happened and can't seem to solve this. I updated the otp_field entry in the pubspec.yaml file, but this did not work either.
pubspec.yaml file

(This also happens when I run using the android emulator)

What am I missing here? Would be great if you could point me in the right direction. Thanks in advance.


问:
Cannot pass DateTime parameter to Stored Procedure
I am struggling here with a very simple issue, but I have spent hours without progress.

I have this stored procedure:

```<code>PROCEDURE [Calculation_Upsert]
    @Id INT = NULL,
    @BillWho VARCHAR(50) = NULL,
    @ClearingBroker VARCHAR(255) = NULL,
    @Customer VARCHAR(255) = NULL,
    @EffectiveDate DATETIME = NULL,
    @ExecutingAccount VARCHAR(20) = NULL,
    @ExecutingBroker VARCHAR(103) = NULL,
    @Trader VARCHAR(255) = NULL,
    @User VARCHAR(50)
AS...
</code>```

Trying to execute it via EF6 dbContext, but I am getting strange errors. Most of the time the exception message is " ", sometimes "cannot convert 'nvarchar' to Datetime", and others the parameter @EffectiveDate is missing. I even tried to pass null, or DBNull.Value, or as string "2023-01-13T10:00:00" or "2023-01-13 10:00:00" and does not work.

```<code>var sqlparams = new object[]
{
    new SqlParameter("@Id", Id),
    new SqlParameter("@BillWho", BillWho),
    new SqlParameter("@ClearingBroker",cb),
    new SqlParameter("@Customer", cus),
    new SqlParameter("@EffectiveDate", DBNull.Value), //tried also null, DateTime.UTCNow, "2023-01-13T10:00:00", "2023-01-13 10:00:00"
    new SqlParameter("@ExecutingAccount", ea),
    new SqlParameter("@ExecutingBroker", eb),
    new SqlParameter("@Trader", trader),
    new SqlParameter("@User",user)
};

try
{
</code>```

//Method 1

```<code>    return await _dbContext.Database.SqlQuery<int>("[Calculation_Upsert] @Id, @BillWho, @ClearingBroker, @Customer, @EffectiveDate, @ExecutingAccount, @ExecutingBroker, @Trader, @UserNbk",
        sqlparams).ToListAsync();
</code>```

This one returns "System.Data.SqlClient.SqlError:  " and the exception message is " " when I am using DBNull.Value, or "Error convert nvarchar to DateTime" if I use DateTime.UTCNow or any string equivalent.

//Method 2

```<code>    _dbContext.Calculation_Upsert(Id, BillWho, cb, cus, DateTime.UtcNow, ea, eb, trader, user);
    return new List<int>() { 1 };
</code>```

This returns "System.Data.Entity.Core.EntityCommandExecutionException: 'An error occurred while executing the command definition. See the inner exception for details.'" but the InnerException message is " ".

//Method 3

```<code>    await _dbContext.Database.ExecuteSqlCommandAsync(
        $"EXECUTE [Calculation_Upsert] @Id={Id}, @BillWho='{BillWho}', @ClearingBroker='{cb}', " +
            $"@Customer='{cus}', @EffectiveDate='2023-01-13T14:08:00', @ExecutingAccount='{ea}', @ExecutingBroker='{eb}', @Trader='{trader}', @UserNbk='{user}'"
        );
    return new List<int>() { 1 };
}
</code>```

This one returns "System.Data.SqlClient.SqlError:  " and the exception message is " ".

I also tried to update the DB schema in my Edmx diagram, issue still persists.

This code, works fine into SQL Managment Tool:

```<code>DECLARE @return_value int

EXEC    @return_value = [Calculation_Upsert]
        @Id = 123,
        @BillWho = 'Customer',
        @ClearingBroker = 'Broker',
        @Customer = 'My Customer',
        @EffectiveDate = null, --'2023-01-13T14:08:00', **both values work**
        @ExecutingAccount = '12345',
        @ExecutingBroker = 'Eb',
        @Trader = 'My Trader',
        @User = 'username'

SELECT  'Return Value' = @return_value

GO
</code>```

I am sure I am missing something small here, but cannot find what...

Body:
I am struggling here with a very simple issue, but I have spent hours without progress.

I have this stored procedure:

PROCEDURE [Calculation_Upsert]
    @Id INT = NULL,
    @BillWho VARCHAR(50) = NULL,
    @ClearingBroker VARCHAR(255) = NULL,
    @Customer VARCHAR(255) = NULL,
    @EffectiveDate DATETIME = NULL,
    @ExecutingAccount VARCHAR(20) = NULL,
    @ExecutingBroker VARCHAR(103) = NULL,
    @Trader VARCHAR(255) = NULL,
    @User VARCHAR(50)
AS...

Trying to execute it via EF6 dbContext, but I am getting strange errors. Most of the time the exception message is " ", sometimes "cannot convert 'nvarchar' to Datetime", and others the parameter @EffectiveDate is missing. I even tried to pass null, or DBNull.Value, or as string "2023-01-13T10:00:00" or "2023-01-13 10:00:00" and does not work.

var sqlparams = new object[]
{
    new SqlParameter("@Id", Id),
    new SqlParameter("@BillWho", BillWho),
    new SqlParameter("@ClearingBroker",cb),
    new SqlParameter("@Customer", cus),
    new SqlParameter("@EffectiveDate", DBNull.Value), //tried also null, DateTime.UTCNow, "2023-01-13T10:00:00", "2023-01-13 10:00:00"
    new SqlParameter("@ExecutingAccount", ea),
    new SqlParameter("@ExecutingBroker", eb),
    new SqlParameter("@Trader", trader),
    new SqlParameter("@User",user)
};

try
{

//Method 1

    return await _dbContext.Database.SqlQuery<int>("[Calculation_Upsert] @Id, @BillWho, @ClearingBroker, @Customer, @EffectiveDate, @ExecutingAccount, @ExecutingBroker, @Trader, @UserNbk",
        sqlparams).ToListAsync();

This one returns "System.Data.SqlClient.SqlError:  " and the exception message is " " when I am using DBNull.Value, or "Error convert nvarchar to DateTime" if I use DateTime.UTCNow or any string equivalent.

//Method 2

    _dbContext.Calculation_Upsert(Id, BillWho, cb, cus, DateTime.UtcNow, ea, eb, trader, user);
    return new List<int>() { 1 };

This returns "System.Data.Entity.Core.EntityCommandExecutionException: 'An error occurred while executing the command definition. See the inner exception for details.'" but the InnerException message is " ".

//Method 3

    await _dbContext.Database.ExecuteSqlCommandAsync(
        $"EXECUTE [Calculation_Upsert] @Id={Id}, @BillWho='{BillWho}', @ClearingBroker='{cb}', " +
            $"@Customer='{cus}', @EffectiveDate='2023-01-13T14:08:00', @ExecutingAccount='{ea}', @ExecutingBroker='{eb}', @Trader='{trader}', @UserNbk='{user}'"
        );
    return new List<int>() { 1 };
}

This one returns "System.Data.SqlClient.SqlError:  " and the exception message is " ".

I also tried to update the DB schema in my Edmx diagram, issue still persists.

This code, works fine into SQL Managment Tool:

DECLARE @return_value int

EXEC    @return_value = [Calculation_Upsert]
        @Id = 123,
        @BillWho = 'Customer',
        @ClearingBroker = 'Broker',
        @Customer = 'My Customer',
        @EffectiveDate = null, --'2023-01-13T14:08:00', **both values work**
        @ExecutingAccount = '12345',
        @ExecutingBroker = 'Eb',
        @Trader = 'My Trader',
        @User = 'username'

SELECT  'Return Value' = @return_value

GO

I am sure I am missing something small here, but cannot find what...


问:
How to decode multiple request parameters in Spring MVC
I am trying to decode request parameters in a Spring MVC controller. The client has encoded these parameters and I want to bind them to an object. I expect that the parameters will automatically be decoded by Spring MVC when they are bound to the object.

I am trying to decode multiple request parameters in my code using Spring MVC. The client sends a request with multiple parameters, such as page, size, and search. I am using the @GetMapping annotation to handle the request and the @Valid annotation to validate the UserListRequest object. However, when the request is received, the search attribute is not being decoded properly and it is still in its encoded form.

```<code>@GetMapping
public List<User> getUsers(@PathVariable @NotNull String tenantKey,
                           @Valid UserListRequest request) {
// some code
}
</code>```

The class UserListRequest

```<code>public class UserListRequest {

    private Set<UserRole> role;
    private String search;
    // other attributes
}
</code>```

The clients sends a request like this

```<code>GET http://localhost:8080/api/user?page=0&size=20&search=some_text%2B
</code>```

Spring puts all the parameters to the object UserListRequest, but the attribute search is not decoded. It has some_text%2B and not some_text+.

I have tried using the @ModelAttribute annotation but it did not work as expected. The search attribute is still in its encoded form.

I would like to know how I can properly decode the search attribute and bind it to the UserListRequest object in my Spring MVC controller.

Body:
I am trying to decode request parameters in a Spring MVC controller. The client has encoded these parameters and I want to bind them to an object. I expect that the parameters will automatically be decoded by Spring MVC when they are bound to the object.

I am trying to decode multiple request parameters in my code using Spring MVC. The client sends a request with multiple parameters, such as page, size, and search. I am using the @GetMapping annotation to handle the request and the @Valid annotation to validate the UserListRequest object. However, when the request is received, the search attribute is not being decoded properly and it is still in its encoded form.

@GetMapping
public List<User> getUsers(@PathVariable @NotNull String tenantKey,
                           @Valid UserListRequest request) {
// some code
}

The class UserListRequest

public class UserListRequest {

    private Set<UserRole> role;
    private String search;
    // other attributes
}

The clients sends a request like this

GET http://localhost:8080/api/user?page=0&size=20&search=some_text%2B

Spring puts all the parameters to the object UserListRequest, but the attribute search is not decoded. It has some_text%2B and not some_text+.

I have tried using the @ModelAttribute annotation but it did not work as expected. The search attribute is still in its encoded form.

I would like to know how I can properly decode the search attribute and bind it to the UserListRequest object in my Spring MVC controller.


问:
Attribute application@label value=(tst) from (unknown) in flutter
getting this error Attribute application@label value=(tst) from (unknown) in flutter</p>
```<code>Attribute application@label value=(tst) from (unknown)
is also present at [com.wuhenzhizao:titlebar:1.2.0] AndroidManifest.xml:13:9-41 value=
(@string/app_name).
Suggestion: add 'tools:replace="android:label"' to <application> element at
 AndroidManifest.xml:9:5-41:19 to override.
</code>```

Body:
getting this error Attribute application@label value=(tst) from (unknown) in flutter

Attribute application@label value=(tst) from (unknown)
is also present at [com.wuhenzhizao:titlebar:1.2.0] AndroidManifest.xml:13:9-41 value=
(@string/app_name).
Suggestion: add 'tools:replace="android:label"' to <application> element at
 AndroidManifest.xml:9:5-41:19 to override.


问:
Python NameError: name 'unicode' is not defined
```<code>  File "C:\Users\Admin\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1039, in _bootstrap_inner
    self.run()
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 976, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python311\pyfile\pyfilecode\code.py", line 213, in output_thread
    message = unicode(message, errors='ignore')
              ^^^^^^^
NameError: name 'unicode' is not defined
</code>```

first i have error unicode is not defined,,after follow some suggestion on stackoverflow ,, im changing unicode to str ,but again it have error "TypeError: decoding str is not supported"

so how to fix this error
thanks you

NameError: name 'unicode' is not defined

Body:
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1039, in _bootstrap_inner
    self.run()
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 976, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python311\pyfile\pyfilecode\code.py", line 213, in output_thread
    message = unicode(message, errors='ignore')
              ^^^^^^^
NameError: name 'unicode' is not defined

first i have error unicode is not defined,,after follow some suggestion on stackoverflow ,, im changing unicode to str ,but again it have error "TypeError: decoding str is not supported"

so how to fix this error
thanks you

NameError: name 'unicode' is not defined


问:
Importing loguru in Python 3.11 ModuleNotFound
I already installed loguru and everything looks fine.

However, everytime I try to import it, I get the message ModuleNotfound. I have Python 3.11, and this is only happening with this package.

Does anyone knows what is the problem and how can i solve it?

Thanks


问:
How to suppress exact message in log4j2?
How to suppress exact message in log4j2 ?

11:03:28.500 [main] DEBUG o.s.jdbc.datasource.init.ScriptUtils - SQLWarning ignored: SQL state '23000', error code '1062', message [Duplicate entry '888' for key 'PRIMARY']

Can I exclude based on strings included in message (like "Duplicate entry" or "error code '1062'")?

I've tried to find it in documentation of log4j2 configuration but failed.
I know that I could rewrite sql script.


问:
Prevent android deep link from redirecting to playstore if app doesn't exist
I am working on a website for a product which also has an android application. I want to redirect the user from mobile web browser to the android application when a particular task is performed. I use a deep link of the format as below -

intent://#Intent;package=<PACKAGE_NAME>;action=android.intent.action.VIEW;category=android.intent.category.BROWSABLE;scheme=https;end

The issue is that this link is redirecting user to playstore if app is not installed. I wanted user to stay on the web browser if app is not installed. How can we achieve that?

As of now, i tried replacing the intent with https to produce link of the format as below -

https://#Intent;package=<PACKAGE_NAME>;action=android.intent.action.VIEW;category=android.intent.category.BROWSABLE;scheme=https;end

But it only works if I add the supported links from the app info, which has to be done manually. I am not sure if the fix for this is to be done in android on is there a way to handle this from the website?


问:
Opensips - How can run script route only one time when use event routing in same Dialog?
Dears,

I use Opensips 3.2

Here is my script:

```<code>store_dlg_value("is_sended_inv","0");
notify_on_event("E_UL_CONTACT_INSERT", $avp(filter), "LATE_FORKING", 45);
notify_on_event("E_UL_CONTACT_UPDATE", $avp(filter), "LATE_FORKING", 45);
...

## Handle late forking route
route[LATE_FORKING] {
    # handle incoming calls for mobile devices woken up by push notifications
    $var(is_sended_inv) = $dlg_val(is_sended_inv);
    xlog("L_INFO", "[LATE_FORKING] [var(is_sended_inv)=$var(is_sended_inv)] New contact [$avp(uri)] registered for user [$avp(aor)], inserting new branch to ongoing call\n");
    # take the contact described by the E_UL_CONTACT_INSERT
    # event and inject it as a new branch into the original
    # transaction
    if(!$var(is_sended_inv)) {
        t_inject_branches("event", "last");
        xlog("L_INFO", "[LATE_FORKING] t_inject_branches event\n");
        store_dlg_value("is_sended_inv","1");
    }
}
</code>```

When Register sent many times, t_inject_branches got called back many times, resulted in a lot of Invite sending (same CSeq number).

How can call t_inject_branches only one time when use event routing in same Dialog?

Thank you for your help.

I tried store_dlg_value

Body:
Dears,

I use Opensips 3.2

Here is my script:

store_dlg_value("is_sended_inv","0");
notify_on_event("E_UL_CONTACT_INSERT", $avp(filter), "LATE_FORKING", 45);
notify_on_event("E_UL_CONTACT_UPDATE", $avp(filter), "LATE_FORKING", 45);
...

## Handle late forking route
route[LATE_FORKING] {
    # handle incoming calls for mobile devices woken up by push notifications
    $var(is_sended_inv) = $dlg_val(is_sended_inv);
    xlog("L_INFO", "[LATE_FORKING] [var(is_sended_inv)=$var(is_sended_inv)] New contact [$avp(uri)] registered for user [$avp(aor)], inserting new branch to ongoing call\n");
    # take the contact described by the E_UL_CONTACT_INSERT
    # event and inject it as a new branch into the original
    # transaction
    if(!$var(is_sended_inv)) {
        t_inject_branches("event", "last");
        xlog("L_INFO", "[LATE_FORKING] t_inject_branches event\n");
        store_dlg_value("is_sended_inv","1");
    }
}

When Register sent many times, t_inject_branches got called back many times, resulted in a lot of Invite sending (same CSeq number).

How can call t_inject_branches only one time when use event routing in same Dialog?

Thank you for your help.

I tried store_dlg_value


问:
SheetJs reading date data incorrectly
I am trying to read excel with SheetJs XLSX library.

```<code>let dataJson = XLSX.utils.sheet_to_json(
        workbook.Sheets[workbook.SheetNames[0]],
        {
          header: 1,
          dateNF:'D.M.YYYY',
        }
      );
</code>```

But it reading dates incorrectly like this.

enter image description here

enter image description here

I want to read date like 13.01.2023, but it reads 44939.
How can I fix?

Title: SheetJs reading date data incorrectly

Body:
I am trying to read excel with SheetJs XLSX library.

let dataJson = XLSX.utils.sheet_to_json(
        workbook.Sheets[workbook.SheetNames[0]],
        {
          header: 1,
          dateNF:'D.M.YYYY',
        }
      );

But it reading dates incorrectly like this.

enter image description here

enter image description here

I want to read date like 13.01.2023, but it reads 44939.
How can I fix?


问:
Apple script are not working in macos 13(Ventura) for automatically navigate users to system preferences privacy
Apple script are not working in macos 13(Ventura) for automatically navigate users to system preferences privacy

```<code>tell application "System Settings"
    --get a reference to the Security & Privacy preferences pane
    set securityPane to pane id "com.apple.preference.security"

    --tell that pane to navigate to its "Accessibility" section under its Privacy tab
    --(the anchor name is arbitrary and does not imply a meaningful hierarchy.)
    tell securityPane to reveal anchor "Privacy_Accessibility"

    --open the preferences window and make it frontmost
    activate
end tell
</code>```

it's working on old mac os version

i try this following apple script.

```<code>tell application "System Settings"
    tell pane id "com.apple.preference.security?Privacy_Accessibility" to anchor
    activate
end tell

--------------------------------------------------------------------------------------

tell application "System Settings"
    --get a reference to the Security & Privacy preferences pane
    set securityPane to pane id "com.apple.preference.security"

    --tell that pane to navigate to its "Accessibility" section under its Privacy tab
    --(the anchor name is arbitrary and does not imply a meaningful hierarchy.)
    tell securityPane to reveal anchor "Privacy_Accessibility"

    --open the preferences window and make it frontmost
    activate
end tell```
```

Body:
Apple script are not working in macos 13(Ventura) for automatically navigate users to system preferences privacy

tell application "System Settings"
    --get a reference to the Security & Privacy preferences pane
    set securityPane to pane id "com.apple.preference.security"

    --tell that pane to navigate to its "Accessibility" section under its Privacy tab
    --(the anchor name is arbitrary and does not imply a meaningful hierarchy.)
    tell securityPane to reveal anchor "Privacy_Accessibility"

    --open the preferences window and make it frontmost
    activate
end tell

it's working on old mac os version

i try this following apple script.

tell application "System Settings"
    tell pane id "com.apple.preference.security?Privacy_Accessibility" to anchor
    activate
end tell

--------------------------------------------------------------------------------------

tell application "System Settings"
    --get a reference to the Security & Privacy preferences pane
    set securityPane to pane id "com.apple.preference.security"

    --tell that pane to navigate to its "Accessibility" section under its Privacy tab
    --(the anchor name is arbitrary and does not imply a meaningful hierarchy.)
    tell securityPane to reveal anchor "Privacy_Accessibility"

    --open the preferences window and make it frontmost
    activate
end tell```


问:
How to stop tasks scheduled with supercronic?
I'm using supercronic to run some tasks on a remote server (fly.io).

I've shelled into the remote server and tried to edit/delete the crontab files, yet the tasks keep running.

I also tried installing procps  and running ps but the only things running are

```<code>ps
  PID TTY          TIME CMD
 1601 pts/0    00:00:00 sh
 1962 pts/0    00:00:00 bash
 1994 pts/0    00:00:00 ps
</code>```

(can't see any mention to cron or supercronic)

How do I stop the tasks scheduled by supercronic?

Body:
I'm using supercronic to run some tasks on a remote server (fly.io).

I've shelled into the remote server and tried to edit/delete the crontab files, yet the tasks keep running.

I also tried installing procps  and running ps but the only things running are

ps
  PID TTY          TIME CMD
 1601 pts/0    00:00:00 sh
 1962 pts/0    00:00:00 bash
 1994 pts/0    00:00:00 ps

(can't see any mention to cron or supercronic)

How do I stop the tasks scheduled by supercronic?


问:
why the implementation of dice is the addition of k.sum of y_true and k.sum of y_pred instead of k.sum(y_true + y_pred)?
why the common code for dice is below here?

```<code>def dice_coef(y_true, y_pred, smooth=1):
    intersection = K.sum(y_true * y_pred, axis=[1,2,3])
    union = K.sum(y_true, axis=[1,2,3]) + K.sum(y_pred, axis=[1,2,3])
    return K.mean( (2. * intersection + smooth) / (union + smooth), axis=0)
</code>```

instead of the code below here?

```<code>def dice_coef(y_true, y_pred, smooth=1):
    intersection = K.sum(y_true * y_pred, axis=[1,2,3])
    union = K.sum(y_true + y_pred, axis=[1,2,3])
    return K.mean( (2. * intersection + smooth) / (union + smooth), axis=0)
</code>```

Body:
why the common code for dice is below here?

def dice_coef(y_true, y_pred, smooth=1):
    intersection = K.sum(y_true * y_pred, axis=[1,2,3])
    union = K.sum(y_true, axis=[1,2,3]) + K.sum(y_pred, axis=[1,2,3])
    return K.mean( (2. * intersection + smooth) / (union + smooth), axis=0)

instead of the code below here?

def dice_coef(y_true, y_pred, smooth=1):
    intersection = K.sum(y_true * y_pred, axis=[1,2,3])
    union = K.sum(y_true + y_pred, axis=[1,2,3])
    return K.mean( (2. * intersection + smooth) / (union + smooth), axis=0)


问:
Trying to change the node version but getting a "command not found error"
I am trying to upgrade my node version to a specific one so I can install a particular package but for some reason I am getting the error described in the title.

This is the cmd I am running:

sudo n 14.20.0

This is the error I am getting:

```<code>❯ sudo n 14.20.0
sudo: n: command not found
</code>```

Some questions in SO suggest that might be related to the wrong path when we run:

echo $PATH

My path is showing a bunch of stuff, totally different from the reccomended that contains /usr/local/sbin:

Any ideas?

Body:
I am trying to upgrade my node version to a specific one so I can install a particular package but for some reason I am getting the error described in the title.

This is the cmd I am running:

sudo n 14.20.0

This is the error I am getting:

❯ sudo n 14.20.0
sudo: n: command not found

Some questions in SO suggest that might be related to the wrong path when we run:

echo $PATH

My path is showing a bunch of stuff, totally different from the reccomended that contains /usr/local/sbin:

Any ideas?


问:
JS generated image, direct link to that image
Just give me a tip where should I dig to find solution.

On many forum I can use bbcode tag [img] where I put direct link to image.

Is it possible to generate image (with parameters from url) on my webserver just using html and js?
So when I request https://test.com/image/param1/param2/param3 server response with clean image? Or with html that will be treaten by browser as image? (for [img] tag purpose).

Or is it possible only using other technology?

Thank you for any tips!

I was trying via converting canvas toDataURL, but it doesnt work properly.


问:
Kendo-grid group-grid pagination for td
` In kendo group grid , the pagination is applying for group heading. I want apply pagination for grouped data with heading. Does not want hierarchy grid which has pagination for child grid.

```<code><kendo-grid
      [data]="gridView"
      [groupable]="true" [group]="groups (groupChange)="groupChange($event)"
      [height]="380" [pageSize]="pageSize"[skip]="skip" [pageable]="true"
      (pageChange)="pageChange($event)">
</code>```

I am looking for pagination for grouped data pagination, Not for kendo-grid group heading pagination.

'https://www.telerik.com/kendo-angular-ui/components/grid/grouping/manual-grouping/' In this supplier ID td is taking pagination , not inner data grid. I am looking for pagination for inner data after grouped``

Title: Kendo-grid group-grid pagination for td

Body:
` In kendo group grid , the pagination is applying for group heading. I want apply pagination for grouped data with heading. Does not want hierarchy grid which has pagination for child grid.

<kendo-grid
      [data]="gridView"
      [groupable]="true" [group]="groups (groupChange)="groupChange($event)"
      [height]="380" [pageSize]="pageSize"[skip]="skip" [pageable]="true"
      (pageChange)="pageChange($event)">

I am looking for pagination for grouped data pagination, Not for kendo-grid group heading pagination.

'https://www.telerik.com/kendo-angular-ui/components/grid/grouping/manual-grouping/' In this supplier ID td is taking pagination , not inner data grid. I am looking for pagination for inner data after grouped``


问:
Building wheel for opencv-python (pyproject. toml) did not run successfully
i am trying to install a python library on my raspberry pi 3 b device  and i get this error after waiting a number of hours:

```<code>File Edit Tabs Help
Note: class cv::detail: :GraphcutSeamFinder has more than 1 base class (not supported by Python C extensions)
Bases: cv::detail::GraphCutSeamFinderBase, cv::detail::Seanfinder
Only the first base class will be used
98%] Built target gen_opencv_python_source
98x] Building cxx object modules/python3/CMakeFiles/opencv_ python3.dir/_/src2/cv2.cpp.o
c++: fatal error: killed signal terminated program cclplus
compilation terminated.
gmake[2]: "" [ modu les/ python3/CMakeFi les/opencv _ python3.dir/build.make:76: modules/python3/CMakeFi les/opencv _python:
dir/ _ /src2/cv2.cpp.o] Error 1
gmake[1]: """ [CHakeFiles/Nakefile2:2216: modules/ python3/CHakeFi les/opencv_python3.dir/all] Error 2
gmake: """ [Makefile:166: all] Error 2
Traceback (most recent call last):
File "/tmp/pip-build-env-afnllk7p/over lay/ lib/python3.9/ site-packages/skbuild/setuptools_ wrap.py", line 640, in set
cmkr.make(make _args, install_target=cmake_installtarget, env-env)
File "/tmp/pip-build-env-afnllk7p/overlay/ lib/python3.9/site-packages/skbuild/cmaker.py". line 684, in make
self . make _impl(clargs=clargs, config=config, source_ dir=source _dir, installtarget=installtarget, env-env)
File "/tmp/pip-build-env-afnl lk?p/overlay/lib/python3.9/site-packages/skbuild/cmaker.py". line 715. in make_impl
raise SKBuildError(
An error occurred while building with CMake.
Command:
cmake --build . --target install --config Release --
Install target:
install
Source directory:
/tmp/pip-install-3rgbddoa/opencv-python _a5579075d46e4d1a9494966edbd90a64
working directory:
/tmp/pip-install- 3rgbddoa/opencv-python a5579075d4 6e1d1a9494966edbd90a64/ skbui ld/linux-armv7 l-3.9/cmake-bui ld
Please check the install target is valid and see CMake's output for more information.
error: subprocess-exited-with-error
Building wheel for opencv-python (pyproject. toml) did not run successfully.
exit code:
See above for output
note: This error originates from a subprocess, and is likely not a problem with pip
</code>```

This is the library i am trying to install: https://pypi.org/project/pithermalcam/

After executing pip3 install pithermalcam i get the above error after a number of hours of waiting for it to complete.

Body:
i am trying to install a python library on my raspberry pi 3 b device  and i get this error after waiting a number of hours:

File Edit Tabs Help
Note: class cv::detail: :GraphcutSeamFinder has more than 1 base class (not supported by Python C extensions)
Bases: cv::detail::GraphCutSeamFinderBase, cv::detail::Seanfinder
Only the first base class will be used
98%] Built target gen_opencv_python_source
98x] Building cxx object modules/python3/CMakeFiles/opencv_ python3.dir/_/src2/cv2.cpp.o
c++: fatal error: killed signal terminated program cclplus
compilation terminated.
gmake[2]: "" [ modu les/ python3/CMakeFi les/opencv _ python3.dir/build.make:76: modules/python3/CMakeFi les/opencv _python:
dir/ _ /src2/cv2.cpp.o] Error 1
gmake[1]: """ [CHakeFiles/Nakefile2:2216: modules/ python3/CHakeFi les/opencv_python3.dir/all] Error 2
gmake: """ [Makefile:166: all] Error 2
Traceback (most recent call last):
File "/tmp/pip-build-env-afnllk7p/over lay/ lib/python3.9/ site-packages/skbuild/setuptools_ wrap.py", line 640, in set
cmkr.make(make _args, install_target=cmake_installtarget, env-env)
File "/tmp/pip-build-env-afnllk7p/overlay/ lib/python3.9/site-packages/skbuild/cmaker.py". line 684, in make
self . make _impl(clargs=clargs, config=config, source_ dir=source _dir, installtarget=installtarget, env-env)
File "/tmp/pip-build-env-afnl lk?p/overlay/lib/python3.9/site-packages/skbuild/cmaker.py". line 715. in make_impl
raise SKBuildError(
An error occurred while building with CMake.
Command:
cmake --build . --target install --config Release --
Install target:
install
Source directory:
/tmp/pip-install-3rgbddoa/opencv-python _a5579075d46e4d1a9494966edbd90a64
working directory:
/tmp/pip-install- 3rgbddoa/opencv-python a5579075d4 6e1d1a9494966edbd90a64/ skbui ld/linux-armv7 l-3.9/cmake-bui ld
Please check the install target is valid and see CMake's output for more information.
error: subprocess-exited-with-error
Building wheel for opencv-python (pyproject. toml) did not run successfully.
exit code:
See above for output
note: This error originates from a subprocess, and is likely not a problem with pip

This is the library i am trying to install: https://pypi.org/project/pithermalcam/

After executing pip3 install pithermalcam i get the above error after a number of hours of waiting for it to complete.


问:
Emacs requiring a package in another loaded package
I have an my-widget.el file in the folder "~/.emacs.d/site-lisp"

the site-lisp folder is added to the path-list in the file init.el

```<code>(add-to-list 'load-path "~/.emacs.d/site-lisp")
</code>```

in my-widget.el I require the package widget

```<code>(require 'widget)
</code>```

when I load my-widget.el file

```<code>(load "my-widget.el")
</code>```

I get this error :

```<code>Don't know how to REQUIRE WIDGET.
   [Condition of type SB-INT:EXTENSION-FAILURE]
</code>```

how can I make emacs look for the widget package?

that the content of my init.el file:

```<code>(require 'package)
(setq package-enable-at-startup nil)
(setq package-archives '())

(add-to-list 'package-archives '("gnu"   . "https://elpa.gnu.org/packages/") t)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)

(add-to-list 'load-path "~/.emacs.d/site-lisp")
(progn (cd "~/.emacs.d/site-lisp")
       (normal-top-level-add-subdirs-to-load-path))
(load "my-widget.el")
;;(require 'my-widget)

(package-initialize)
(package-refresh-contents)

;; Ensure `use-package` is installed - install if not
(unless (package-installed-p 'use-package)
  (package-refresh-contents)
  (package-install 'use-package))
</code>```

Body:
I have an my-widget.el file in the folder "~/.emacs.d/site-lisp"

the site-lisp folder is added to the path-list in the file init.el

(add-to-list 'load-path "~/.emacs.d/site-lisp")

in my-widget.el I require the package widget

(require 'widget)

when I load my-widget.el file

(load "my-widget.el")

I get this error :

Don't know how to REQUIRE WIDGET.
   [Condition of type SB-INT:EXTENSION-FAILURE]

how can I make emacs look for the widget package?

that the content of my init.el file:

(require 'package)
(setq package-enable-at-startup nil)
(setq package-archives '())

(add-to-list 'package-archives '("gnu"   . "https://elpa.gnu.org/packages/") t)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)

(add-to-list 'load-path "~/.emacs.d/site-lisp")
(progn (cd "~/.emacs.d/site-lisp")
       (normal-top-level-add-subdirs-to-load-path))
(load "my-widget.el")
;;(require 'my-widget)

(package-initialize)
(package-refresh-contents)

;; Ensure `use-package` is installed - install if not
(unless (package-installed-p 'use-package)
  (package-refresh-contents)
  (package-install 'use-package))


问:
fastAPI send data to list of user
I am trying to create an endpoint where admin has created orders and team leader(tl) has list of employees, whichever employees the tl selects a set of 60 orders has to be send to that employees

schema for order cluster

```<code>class Orders(BaseModel):
name: str
car_number: str
contact_number: str
address: str
cod_amount: str
pin_code: str
emp_id: str
tl_id: str

user_collection = db[config["USERS"]]
order_collection = db[config["ORDERS"]]
order_options_by_admin_collections=db[config["INITIAL_ORDER_OPTIONS_BY_ADMIN"]]
</code>```

ps : this is my first time creating an api, by far i have written this

```<code>@app.get('/send-order-to-emps-from-tls')
def Send_orders_to_emps(id:List[str]=Query(None, alias="Id"),userid=Depends(auth_handler.auth_wrapper)):
        emp_id=userid
        emp_data=user_collection.find_one({"_id": ObjectId(emp_id)})
        if(emp_data["tl_id"]==""):
            all_order=[]
            order_created_by_admin=order_options_by_admin_collections.find()
            for order in order_created_by_admin:
                order.parse_json(order)
                all_order.append(order)
</code>```

Title: fastAPI send data to list of user

Body:
I am trying to create an endpoint where admin has created orders and team leader(tl) has list of employees, whichever employees the tl selects a set of 60 orders has to be send to that employees

schema for order cluster

class Orders(BaseModel):
name: str
car_number: str
contact_number: str
address: str
cod_amount: str
pin_code: str
emp_id: str
tl_id: str

user_collection = db[config["USERS"]]
order_collection = db[config["ORDERS"]]
order_options_by_admin_collections=db[config["INITIAL_ORDER_OPTIONS_BY_ADMIN"]]

ps : this is my first time creating an api, by far i have written this

@app.get('/send-order-to-emps-from-tls')
def Send_orders_to_emps(id:List[str]=Query(None, alias="Id"),userid=Depends(auth_handler.auth_wrapper)):
        emp_id=userid
        emp_data=user_collection.find_one({"_id": ObjectId(emp_id)})
        if(emp_data["tl_id"]==""):
            all_order=[]
            order_created_by_admin=order_options_by_admin_collections.find()
            for order in order_created_by_admin:
                order.parse_json(order)
                all_order.append(order)


问:
Collectiongroup query returns nothing in Firestore
I'm making a to-do app in firebase.
I want to return all the projects that my currently signed in user is particpiating in.
However, I don't get nothing back when looping over the returned query.

I suspect there is no document that matches my criteria but there are documents that should match. The problem can only be in the code..

My database is setup like this:

Projects

ProjectDocument

Deadline Date

Description

Users

UserDocument

uid

email

name

A couple of weeks ago, the given query worked but now...
Anyone that can help me out?

My code:

```<code>  const myUID = sessionStorage.getItem('user');
  const queryProjects = query(collectionGroup(db, "users"), where('uid', '==', `${myUID}`));
  const myProjects = await getDocs(queryProjects);
  const test = myProjects.forEach((doc) => {
    console.log(doc);
    // Nothing appears in my console
  });
</code>```

Screenshots of my database:

Body:
I'm making a to-do app in firebase.
I want to return all the projects that my currently signed in user is particpiating in.
However, I don't get nothing back when looping over the returned query.

I suspect there is no document that matches my criteria but there are documents that should match. The problem can only be in the code..

My database is setup like this:

Projects

ProjectDocument

Deadline Date

Description

Users

UserDocument

uid

email

name

A couple of weeks ago, the given query worked but now...
Anyone that can help me out?

My code:

  const myUID = sessionStorage.getItem('user');
  const queryProjects = query(collectionGroup(db, "users"), where('uid', '==', `${myUID}`));
  const myProjects = await getDocs(queryProjects);
  const test = myProjects.forEach((doc) => {
    console.log(doc);
    // Nothing appears in my console
  });

Screenshots of my database:


问:
Automapper C# many to many relationship
I have one question. I have many to many relationship with Author and Books entities. I want to list all authors for books. My problem is when I include relationship in controller I got one more extra array of books. I suppose problem is property in Book entity for author. How can I exclude that and map my object to DTO without that in Automapper, or to be precise how can I ignore this property and configure that in Automapper?

Author entity

```<code>public class Author
{
    public int Id { get; set; }
    public string Name { get; set; }
    public ICollection<Book> Books { get; set; }

}
</code>```

Book entity

```<code>public class Book
{
    public int Id { get; set; }
    public int ISBN { get; set; }
    public ICollection<Author> Authors { get; set; }
}
</code>```

So, I used Ef convention which creates joint table for these two tables. That table consist foreign keys to primary keys these two tables.

Problem is when I want to return list of books, I want to include list of authors.This is controller action.

```<code>var result = await _databaseContext.Books.Include(x => x.Authors).ToListAsync();
            List<BooksDto> dto = _mapper.Map<List<BooksDto>>(result);
            return dto;
</code>```

I use automapper for mapping objects.

```<code>public class AutoMapperProfile : Profile
    {
        public AutoMapperProfile()
        {
            CreateMap<Book, BooksDto>().ForMember(m => m.Authors, opt => opt.MapFrom(mf => mf.Authors));
        }
    }
</code>```

Title: Automapper C# many to many relationship

Body:
I have one question. I have many to many relationship with Author and Books entities. I want to list all authors for books. My problem is when I include relationship in controller I got one more extra array of books. I suppose problem is property in Book entity for author. How can I exclude that and map my object to DTO without that in Automapper, or to be precise how can I ignore this property and configure that in Automapper?

Author entity

public class Author
{
    public int Id { get; set; }
    public string Name { get; set; }
    public ICollection<Book> Books { get; set; }

}

Book entity

public class Book
{
    public int Id { get; set; }
    public int ISBN { get; set; }
    public ICollection<Author> Authors { get; set; }
}

So, I used Ef convention which creates joint table for these two tables. That table consist foreign keys to primary keys these two tables.

Problem is when I want to return list of books, I want to include list of authors.This is controller action.

var result = await _databaseContext.Books.Include(x => x.Authors).ToListAsync();
            List<BooksDto> dto = _mapper.Map<List<BooksDto>>(result);
            return dto;

I use automapper for mapping objects.

public class AutoMapperProfile : Profile
    {
        public AutoMapperProfile()
        {
            CreateMap<Book, BooksDto>().ForMember(m => m.Authors, opt => opt.MapFrom(mf => mf.Authors));
        }
    }


问:
How cairngorm suites for Flex 4.5 mobile application
Can cairngorm framework suites for developing mobile application using flex 4.5 ?</p>


问:
On Android, TextInputs within a flatlist that's inside another position: absolute view with onLayout can't be focused
I have a TextInput component that is located inside a View with a style setting of position: "absolute" get focused but within a flat list text input focus not work

```<code> render() {
        const { editable, isDropDown, ref, onClose, existData } = this.props

        return (
            <View
                style={{
                    width: "100%",
                    position: 'absolute',
                    backgroundColor: colors.white,
                    flexDirection: 'row',
                    justifyContent: 'space-between',
                    alignItems: 'center',
                }}>
                <TextInput
                    style={styles.viewValue}
                    placeholder={translate("Search")}
                    onChangeText={this.onSearch}
                    value={this.state.searchText}
                    editable={editable}
                />
                <TouchableOpacity style={{ width: "50%", alignItems: 'center', transform: [{ rotate: isDropDown ? '180deg' : '0deg' }] }}
                    onPress={() => onClose(this.state.selectedIds)}>
                    <BlueDownArrow height={measures.fontSize * 1.2} width={measures.fontSize * 1.2} />
                </TouchableOpacity>

                {
                    isDropDown &&
                    <View
                        ref={ref}
                        style={{
                            position: 'absolute',
                            top: Platform.OS == "ios" ? measures.fontSize * 2.2 : measures.fontSize * 2 + 5,
                            left: 0,
                            right: 0,
                            elevation: 1,
                            shadowColor: colors.black,
                            shadowOffset: { width: 0, height: 1 },
                            shadowOpacity: 0.1,
                            borderColor: colors.border,
                            backgroundColor: colors.white,
                            borderWidth: 0.5,
                            zIndex: 100,
                            maxHeight: measures.fontSize * 15,
                            minHeight: measures.fontSize * 2.2,
                            width: '100%',
                            justifyContent: 'center',

                        }}>
                        <View>
                            <FlatList
                                data={this.filterSkills()}
                                nestedScrollEnabled
                                ListFooterComponent={(
                                    <View style={{ height: measures.fontSize * 1.8, marginBottom: 50, justifyContent: 'center' }}>
                                        <View style={[styles.itemView, { justifyContent: 'space-between', paddingHorizontal: measures.fontSize }]}>
                                            <TouchableWithoutFeedback
                                                onPress={() => this.setState({ otherkey: !this.state.otherkey })}>
                                                <View style={{ flexDirection: 'row', alignItems: 'center' }}>
                                                    {this.state.otherkey ? <View style={styles.checkbox}><WhiteCheck /></View> : <View style={styles.unCheckbox} />}
                                                    <Text style={styles.itemText}>{"Other"}</Text>
                                                </View>
                                            </TouchableWithoutFeedback>
                                            {this.state.otherkey &&
                                                <TextInput
                                                    style={{
                                                        width: "80%",
                                                        borderBottomWidth: 0.5,
                                                        borderBottomColor: colors.appcolor,
                                                        flexShrink: 1,
                                                        fontFamily: 'Montserrat-Medium',
                                                        padding: 0,
                                                        color: colors.appcolor,
                                                        marginLeft: measures.unit,
                                                        fontSize: measures.fontSize / 1.8,
                                                    }}
                                                    placeholder={"Add New Skill"}
                                                    focusable={true}

                                                    returnKeyType={"done"}
                                                    value={this.state.newskill}
                                                    onBlur={() => this.createNew(this.state.newskill)}
                                                    onChangeText={(newskill) => {
                                                        this.setState({ newskill })
                                                    }}
                                                />
                                            }
                                        </View>
                                    </View>
                                )}
                                ListEmptyComponent={
                                    (
                                        <View style={styles.itemView}>
                                            <Text style={[styles.itemText, { color: colors.appcolor, marginLeft: measures.unit }]}>{"No Data Found"}</Text>
                                        </View>
                                    )
                                }
                                renderItem={({ item }) => this._renderheader(item)}
                            />
                        </View>
                    </View>
                }
            </View>
        )
    }

</code>```

When this style is set, I cannot focus or perform any interaction with the TextInput (including autoFocus={true}) even though I can see the input field and default text (Test).
What is the reason for this behavior?

Try to add elevation or zIndex:400 or some high number

Body:
I have a TextInput component that is located inside a View with a style setting of position: "absolute" get focused but within a flat list text input focus not work

 render() {
        const { editable, isDropDown, ref, onClose, existData } = this.props

        return (
            <View
                style={{
                    width: "100%",
                    position: 'absolute',
                    backgroundColor: colors.white,
                    flexDirection: 'row',
                    justifyContent: 'space-between',
                    alignItems: 'center',
                }}>
                <TextInput
                    style={styles.viewValue}
                    placeholder={translate("Search")}
                    onChangeText={this.onSearch}
                    value={this.state.searchText}
                    editable={editable}
                />
                <TouchableOpacity style={{ width: "50%", alignItems: 'center', transform: [{ rotate: isDropDown ? '180deg' : '0deg' }] }}
                    onPress={() => onClose(this.state.selectedIds)}>
                    <BlueDownArrow height={measures.fontSize * 1.2} width={measures.fontSize * 1.2} />
                </TouchableOpacity>

                {
                    isDropDown &&
                    <View
                        ref={ref}
                        style={{
                            position: 'absolute',
                            top: Platform.OS == "ios" ? measures.fontSize * 2.2 : measures.fontSize * 2 + 5,
                            left: 0,
                            right: 0,
                            elevation: 1,
                            shadowColor: colors.black,
                            shadowOffset: { width: 0, height: 1 },
                            shadowOpacity: 0.1,
                            borderColor: colors.border,
                            backgroundColor: colors.white,
                            borderWidth: 0.5,
                            zIndex: 100,
                            maxHeight: measures.fontSize * 15,
                            minHeight: measures.fontSize * 2.2,
                            width: '100%',
                            justifyContent: 'center',

                        }}>
                        <View>
                            <FlatList
                                data={this.filterSkills()}
                                nestedScrollEnabled
                                ListFooterComponent={(
                                    <View style={{ height: measures.fontSize * 1.8, marginBottom: 50, justifyContent: 'center' }}>
                                        <View style={[styles.itemView, { justifyContent: 'space-between', paddingHorizontal: measures.fontSize }]}>
                                            <TouchableWithoutFeedback
                                                onPress={() => this.setState({ otherkey: !this.state.otherkey })}>
                                                <View style={{ flexDirection: 'row', alignItems: 'center' }}>
                                                    {this.state.otherkey ? <View style={styles.checkbox}><WhiteCheck /></View> : <View style={styles.unCheckbox} />}
                                                    <Text style={styles.itemText}>{"Other"}</Text>
                                                </View>
                                            </TouchableWithoutFeedback>
                                            {this.state.otherkey &&
                                                <TextInput
                                                    style={{
                                                        width: "80%",
                                                        borderBottomWidth: 0.5,
                                                        borderBottomColor: colors.appcolor,
                                                        flexShrink: 1,
                                                        fontFamily: 'Montserrat-Medium',
                                                        padding: 0,
                                                        color: colors.appcolor,
                                                        marginLeft: measures.unit,
                                                        fontSize: measures.fontSize / 1.8,
                                                    }}
                                                    placeholder={"Add New Skill"}
                                                    focusable={true}

                                                    returnKeyType={"done"}
                                                    value={this.state.newskill}
                                                    onBlur={() => this.createNew(this.state.newskill)}
                                                    onChangeText={(newskill) => {
                                                        this.setState({ newskill })
                                                    }}
                                                />
                                            }
                                        </View>
                                    </View>
                                )}
                                ListEmptyComponent={
                                    (
                                        <View style={styles.itemView}>
                                            <Text style={[styles.itemText, { color: colors.appcolor, marginLeft: measures.unit }]}>{"No Data Found"}</Text>
                                        </View>
                                    )
                                }
                                renderItem={({ item }) => this._renderheader(item)}
                            />
                        </View>
                    </View>
                }
            </View>
        )
    }

When this style is set, I cannot focus or perform any interaction with the TextInput (including autoFocus={true}) even though I can see the input field and default text (Test).
What is the reason for this behavior?

Try to add elevation or zIndex:400 or some high number


问:
Nginx is not executing PHP files but serves them as downloads instead
So, I have a Nginx webserver nginx/1.18.0 on Debian 11.6. I also have php7.4-fpm.

Under /etc/nginx/sites-enabled/ I have two configs for two domains: domain1 and domain2. Both should be running Wordpress. First domain is running on HTTPS (and has a redirection from HTTP to HTTPS), the second should (for now) run just on HTTP.

The problem is, that first domain is working fine, however the second domain is not working. I mean, it is serving HTML files just fine, but when I try to access index.php file, it serves this file as a download (instead of executing).

So, some extended explanation of my environment:

First, php7.4-fpm is up and running (I left default settings, and as I said, domain1 is working just fine):

```<code>● php7.4-fpm.service - The PHP 7.4 FastCGI Process Manager
     Loaded: loaded (/lib/systemd/system/php7.4-fpm.service; enabled; vendor preset: enabled)
     Active: active (running) since Wed 2023-01-11 11:26:32 CET; 2 days ago
       Docs: man:php-fpm7.4(8)
    Process: 503216 ExecStartPost=/usr/lib/php/php-fpm-socket-helper install /run/php/php-fpm.sock /etc/php/7.4/fpm/pool.d/www.conf 74 (code=exited, status=0/SUCCESS)
   Main PID: 503213 (php-fpm7.4)
     Status: "Processes active: 0, idle: 3, Requests: 1236, slow: 0, Traffic: 0.2req/sec"
      Tasks: 4 (limit: 1132)
     Memory: 424.1M
        CPU: 8min 11.672s
     CGroup: /system.slice/php7.4-fpm.service
             ├─503213 php-fpm: master process (/etc/php/7.4/fpm/php-fpm.conf)
             ├─508795 php-fpm: pool www
             ├─509933 php-fpm: pool www
             └─511244 php-fpm: pool www

Jan 11 11:26:32 cryptopia systemd[1]: Starting The PHP 7.4 FastCGI Process Manager...
Jan 11 11:26:32 cryptopia systemd[1]: Started The PHP 7.4 FastCGI Process Manager.
</code>```

Now config for domain1.conf:

```<code>server {
    listen 443 ssl http2; # managed by Certbot
    server_name domain1.mk www.domain1.mk;
    root /usr/share/nginx/html/domain1.mk;
    error_log /var/log/nginx/domain1_error.log;
    access_log /var/log/nginx/domain1_access.log;

    location / {
        index index.html index.htm index.php;
        expires -1;
        try_files $uri $uri/ /index.php?$args;
    }

    location ~ \.php$ {
       include /etc/nginx/fastcgi_params;
       fastcgi_pass unix:/run/php/php7.4-fpm.sock;
       fastcgi_index index.php;
       fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html/domain1.mk$fastcgi_script_name;
    }

    ssl_certificate /etc/letsencrypt/live/domain1.mk/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/domain1.mk/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

    keepalive_timeout 70;
    ssl_session_cache shared:TLS:10m;

    ssl_stapling on;
    ssl_stapling_verify on;
    ssl_trusted_certificate /etc/letsencrypt/live/domain1.mk/chain.pem;
    resolver 127.0.0.1 [::1] valid=300s;
    resolver_timeout 10s;

    add_header Strict-Transport-Security "max-age=31536000; includeSubdomains; preload";
    add_header X-Xss-Protection "1; mode=block" always;
    add_header X-Frame-Options "SAMEORIGIN" always;
    add_header X-Content-Type-Options "nosniff" always;
    add_header Referrer-Policy "strict-origin" always;
}

server {
    if ($host = www.domain1.mk) {
        return 301 https://$host$request_uri;
    } # managed by Certbot

    if ($host = domain1.mk) {
        return 301 https://$host$request_uri;
    } # managed by Certbot

    listen 80;
    server_name domain1.mk www.domain1.mk;
}
</code>```

And also config for domain2.conf:

```<code>server {
        listen 80;
        server_name domain2.test www.domain2.test; # for now I have this domain listed in my local /etc/hosts file
        root /usr/share/nginx/html/domain2.com;
        error_log /var/log/nginx/domain2_error.log;
        access_log /var/log/nginx/domain2_access.log;

        client_max_body_size 100M;

        location / {
                index index.html index.htm index.php;
                expires -1;
                try_files $uri $uri/ /index.php?$args;
        }
        location ~ \.php$ {
#                include snippets/fastcgi-php.conf;
#                fastcgi_pass unix:/run/php/php7.4-fpm.sock;
#                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                 include /etc/nginx/fastcgi_params;
                 fastcgi_pass unix:/run/php/php7.4-fpm.sock;
                 fastcgi_index index.php;
                 fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html/domain2.com$fastcgi_script_name;
        }

}

</code>```

I guess /etc/nginx/nginx.conf could also be of some interest:

```<code>user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;

events {
    worker_connections 768;
}

http {
    client_max_body_size 20m;
    sendfile on;
    tcp_nopush on;
    types_hash_max_size 2048;
    server_tokens off;

    server_names_hash_bucket_size 64;

    include /etc/nginx/mime.types;
    default_type application/octet-stream;

    ssl_protocols TLSv1.2 TLSv1.3;
    ssl_prefer_server_ciphers on;
        ssl_ciphers 'TLS13-CHACHA20-POLY1305-SHA256:TLS13-AES-256-GCM-SHA384:TLS13-AES-128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256';

    access_log /var/log/nginx/access.log;
    error_log /var/log/nginx/error.log;

    gzip on;

    include /etc/nginx/conf.d/*.conf;
    include /etc/nginx/sites-enabled/*;
}
</code>```

Any idea what is wrong, so why Wordpress on domain1 is working just fine, but Wordpress on domain2 is not? (And yes, I restarted nginx server...)

I tried to check config, restarting php7.4-fpm and nginx, checked log files... I have no idea why this is behaving like this. I checked several similar questions and tried to change different parameters in php.ini as suggested, but those suggestions did not work in my case.

Body:
So, I have a Nginx webserver nginx/1.18.0 on Debian 11.6. I also have php7.4-fpm.

Under /etc/nginx/sites-enabled/ I have two configs for two domains: domain1 and domain2. Both should be running Wordpress. First domain is running on HTTPS (and has a redirection from HTTP to HTTPS), the second should (for now) run just on HTTP.

The problem is, that first domain is working fine, however the second domain is not working. I mean, it is serving HTML files just fine, but when I try to access index.php file, it serves this file as a download (instead of executing).

So, some extended explanation of my environment:

First, php7.4-fpm is up and running (I left default settings, and as I said, domain1 is working just fine):

● php7.4-fpm.service - The PHP 7.4 FastCGI Process Manager
     Loaded: loaded (/lib/systemd/system/php7.4-fpm.service; enabled; vendor preset: enabled)
     Active: active (running) since Wed 2023-01-11 11:26:32 CET; 2 days ago
       Docs: man:php-fpm7.4(8)
    Process: 503216 ExecStartPost=/usr/lib/php/php-fpm-socket-helper install /run/php/php-fpm.sock /etc/php/7.4/fpm/pool.d/www.conf 74 (code=exited, status=0/SUCCESS)
   Main PID: 503213 (php-fpm7.4)
     Status: "Processes active: 0, idle: 3, Requests: 1236, slow: 0, Traffic: 0.2req/sec"
      Tasks: 4 (limit: 1132)
     Memory: 424.1M
        CPU: 8min 11.672s
     CGroup: /system.slice/php7.4-fpm.service
             ├─503213 php-fpm: master process (/etc/php/7.4/fpm/php-fpm.conf)
             ├─508795 php-fpm: pool www
             ├─509933 php-fpm: pool www
             └─511244 php-fpm: pool www

Jan 11 11:26:32 cryptopia systemd[1]: Starting The PHP 7.4 FastCGI Process Manager...
Jan 11 11:26:32 cryptopia systemd[1]: Started The PHP 7.4 FastCGI Process Manager.

Now config for domain1.conf:

server {
    listen 443 ssl http2; # managed by Certbot
    server_name domain1.mk www.domain1.mk;
    root /usr/share/nginx/html/domain1.mk;
    error_log /var/log/nginx/domain1_error.log;
    access_log /var/log/nginx/domain1_access.log;

    location / {
        index index.html index.htm index.php;
        expires -1;
        try_files $uri $uri/ /index.php?$args;
    }

    location ~ \.php$ {
       include /etc/nginx/fastcgi_params;
       fastcgi_pass unix:/run/php/php7.4-fpm.sock;
       fastcgi_index index.php;
       fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html/domain1.mk$fastcgi_script_name;
    }

    ssl_certificate /etc/letsencrypt/live/domain1.mk/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/domain1.mk/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

    keepalive_timeout 70;
    ssl_session_cache shared:TLS:10m;

    ssl_stapling on;
    ssl_stapling_verify on;
    ssl_trusted_certificate /etc/letsencrypt/live/domain1.mk/chain.pem;
    resolver 127.0.0.1 [::1] valid=300s;
    resolver_timeout 10s;

    add_header Strict-Transport-Security "max-age=31536000; includeSubdomains; preload";
    add_header X-Xss-Protection "1; mode=block" always;
    add_header X-Frame-Options "SAMEORIGIN" always;
    add_header X-Content-Type-Options "nosniff" always;
    add_header Referrer-Policy "strict-origin" always;
}

server {
    if ($host = www.domain1.mk) {
        return 301 https://$host$request_uri;
    } # managed by Certbot

    if ($host = domain1.mk) {
        return 301 https://$host$request_uri;
    } # managed by Certbot

    listen 80;
    server_name domain1.mk www.domain1.mk;
}

And also config for domain2.conf:

server {
        listen 80;
        server_name domain2.test www.domain2.test; # for now I have this domain listed in my local /etc/hosts file
        root /usr/share/nginx/html/domain2.com;
        error_log /var/log/nginx/domain2_error.log;
        access_log /var/log/nginx/domain2_access.log;

        client_max_body_size 100M;

        location / {
                index index.html index.htm index.php;
                expires -1;
                try_files $uri $uri/ /index.php?$args;
        }
        location ~ \.php$ {
#                include snippets/fastcgi-php.conf;
#                fastcgi_pass unix:/run/php/php7.4-fpm.sock;
#                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                 include /etc/nginx/fastcgi_params;
                 fastcgi_pass unix:/run/php/php7.4-fpm.sock;
                 fastcgi_index index.php;
                 fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html/domain2.com$fastcgi_script_name;
        }

}

I guess /etc/nginx/nginx.conf could also be of some interest:

user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;

events {
    worker_connections 768;
}

http {
    client_max_body_size 20m;
    sendfile on;
    tcp_nopush on;
    types_hash_max_size 2048;
    server_tokens off;

    server_names_hash_bucket_size 64;

    include /etc/nginx/mime.types;
    default_type application/octet-stream;

    ssl_protocols TLSv1.2 TLSv1.3;
    ssl_prefer_server_ciphers on;
        ssl_ciphers 'TLS13-CHACHA20-POLY1305-SHA256:TLS13-AES-256-GCM-SHA384:TLS13-AES-128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256';

    access_log /var/log/nginx/access.log;
    error_log /var/log/nginx/error.log;

    gzip on;

    include /etc/nginx/conf.d/*.conf;
    include /etc/nginx/sites-enabled/*;
}

Any idea what is wrong, so why Wordpress on domain1 is working just fine, but Wordpress on domain2 is not? (And yes, I restarted nginx server...)

I tried to check config, restarting php7.4-fpm and nginx, checked log files... I have no idea why this is behaving like this. I checked several similar questions and tried to change different parameters in php.ini as suggested, but those suggestions did not work in my case.


问:
Search filter doesn't work correctly after adding new data with Laravel Scout on Meilisearch
I have Classified model

```<code>public function searchableAs()
{
    return 'classifieds_index';
}

public function toSearchableArray()
{
    return [
        'title' => $this->title,
        'description' => strip_tags($this->content),
        'category_id' => (int) $this->category_id,
        'category-title' => $this->category->name,
        'status' => (int) $this->status,
        'created_at' => $this->created_at,
    ];
}
</code>```

and want to be able to search it and filter by status. I have set index settings like this

```<code>    'index-settings' => [
         'classifieds_index' => [
             'filterableAttributes'=> ['id', 'status', 'category_id'],
             'displayedAttributes' => ['id', 'title'],
         ]
    ],
],
</code>```

After creating/saving Classified model I'm able to find it, but not with filter on. Only after flushing and importing data with Scout.

```<code>    $index = $client->index('classifieds_index')
        ->search('kei', [
            'filter' => 'status = 1',
        ]);
</code>```

If I set filter status = 0 then meilisearch finds it without flushing.

Body:
I have Classified model

public function searchableAs()
{
    return 'classifieds_index';
}

public function toSearchableArray()
{
    return [
        'title' => $this->title,
        'description' => strip_tags($this->content),
        'category_id' => (int) $this->category_id,
        'category-title' => $this->category->name,
        'status' => (int) $this->status,
        'created_at' => $this->created_at,
    ];
}

and want to be able to search it and filter by status. I have set index settings like this

    'index-settings' => [
         'classifieds_index' => [
             'filterableAttributes'=> ['id', 'status', 'category_id'],
             'displayedAttributes' => ['id', 'title'],
         ]
    ],
],

After creating/saving Classified model I'm able to find it, but not with filter on. Only after flushing and importing data with Scout.

    $index = $client->index('classifieds_index')
        ->search('kei', [
            'filter' => 'status = 1',
        ]);

If I set filter status = 0 then meilisearch finds it without flushing.


问:
mockK and NOT debuggable build - crashes with java.lang.SecurityException
Faced with the following task: trying to run android ui tests on a minified, not debuggable build.

And I have a question: can mockK even work correctly on build with isDebuggable = false flag set?

I'm trying to run it now and catching:

```<code>Caused by: io.mockk.proxy.MockKAgentException:
Could not initialize inline mock maker.
 Release: Android 11 7604015Device: google sdk_gphone_arm64
 at io.mockk.proxy.android.AndroidMockKAgentFactory.init(AndroidMockKAgentFactory.kt:76)
 at io.mockk.impl.JvmMockKGateway.<init>(JvmMockKGateway.kt:46)
 at io.mockk.impl.JvmMockKGateway.<clinit>(JvmMockKGateway.kt:186)
... 34 more
Caused by: java.lang.SecurityException: Can't attach agent, process is not debuggable.
 at dalvik.system.VMDebug.nativeAttachAgent(Native Method)
 at dalvik.system.VMDebug.attachAgent(VMDebug.java:572)
 at android.os.Debug.attachJvmtiAgent(Debug.java:2563)
 at io.mockk.proxy.android.JvmtiAgent.<init>(JvmtiAgent.kt:48)
 at io.mockk.proxy.android.AndroidMockKAgentFactory.init(AndroidMockKAgentFactory.kt:40)
... 36 more
</code>```

agp version: 7.2.1
mockK version: 1.13.2
run on emulator: Android 11 api 30 google sdk_gphone_arm64

Body:
Faced with the following task: trying to run android ui tests on a minified, not debuggable build.

And I have a question: can mockK even work correctly on build with isDebuggable = false flag set?

I'm trying to run it now and catching:

Caused by: io.mockk.proxy.MockKAgentException:
Could not initialize inline mock maker.
 Release: Android 11 7604015Device: google sdk_gphone_arm64
 at io.mockk.proxy.android.AndroidMockKAgentFactory.init(AndroidMockKAgentFactory.kt:76)
 at io.mockk.impl.JvmMockKGateway.<init>(JvmMockKGateway.kt:46)
 at io.mockk.impl.JvmMockKGateway.<clinit>(JvmMockKGateway.kt:186)
... 34 more
Caused by: java.lang.SecurityException: Can't attach agent, process is not debuggable.
 at dalvik.system.VMDebug.nativeAttachAgent(Native Method)
 at dalvik.system.VMDebug.attachAgent(VMDebug.java:572)
 at android.os.Debug.attachJvmtiAgent(Debug.java:2563)
 at io.mockk.proxy.android.JvmtiAgent.<init>(JvmtiAgent.kt:48)
 at io.mockk.proxy.android.AndroidMockKAgentFactory.init(AndroidMockKAgentFactory.kt:40)
... 36 more

agp version: 7.2.1
mockK version: 1.13.2
run on emulator: Android 11 api 30 google sdk_gphone_arm64