问:
org.springframework.beans.factory.BeanCreationException
Users.java

```<code>package com.d.hello;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class HelloApplication {

    public static void main(String[] args) {
        SpringApplication.run(HelloApplication.class, args);
    }

}
</code>```

Userreps.java

```<code>package com.d.hello;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class HelloApplication {

    public static void main(String[] args) {
        SpringApplication.run(HelloApplication.class, args);
    }

}
</code>```

pom.xml

```<code><?xml version="1.0" encoding="UTF-8"?>
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>3.0.0</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>
    <groupId>com.d</groupId>
    <artifactId>hello</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <name>hello</name>
    <description>Demo project for Spring Boot</description>
    <properties>
        <java.version>17</java.version>
    </properties>
    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-jpa</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>

        <dependency>
            <groupId>com.mysql</groupId>
            <artifactId>mysql-connector-j</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>

        <!-- https://mvnrepository.com/artifact/org.hibernate.javax.persistence/hibernate-jpa-2.1-api -->
<dependency>
    <groupId>org.hibernate.javax.persistence</groupId>
    <artifactId>hibernate-jpa-2.1-api</artifactId>
    <version>1.0.2.Final</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework.data/spring-data-jpa -->
<dependency>
    <groupId>org.springframework.data</groupId>
    <artifactId>spring-data-jpa</artifactId>

</dependency>

    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
        </plugins>
    </build>

</project>
</code>```

error

```<code>org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userreps' defined in com.d.hello.repo.Userreps defined in @EnableJpaRepositories declared on JpaRepositoriesRegistrar.EnableJpaRepositoriesConfiguration: Not a managed type: class com.d.hello.modela.Users
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1751) ~[spring-beans-6.0.2.jar:6.0.2]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:599) ~[spring-beans-6.0.2.jar:6.0.2]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:521) ~[spring-beans-6.0.2.jar:6.0.2]
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:326) ~[spring-beans-6.0.2.jar:6.0.2]
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-6.0.2.jar:6.0.2]
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:324) ~[spring-beans-6.0.2.jar:6.0.2]
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200) ~[spring-beans-6.0.2.jar:6.0.2]
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955) ~[spring-beans-6.0.2.jar:6.0.2]
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:915) ~[spring-context-6.0.2.jar:6.0.2]
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:584) ~[spring-context-6.0.2.jar:6.0.2]
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146) ~[spring-boot-3.0.0.jar:3.0.0]
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:730) ~[spring-boot-3.0.0.jar:3.0.0]
    at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:432) ~[spring-boot-3.0.0.jar:3.0.0]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:308) ~[spring-boot-3.0.0.jar:3.0.0]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1302) ~[spring-boot-3.0.0.jar:3.0.0]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1291) ~[spring-boot-3.0.0.jar:3.0.0]
    at com.d.hello.HelloApplication.main(HelloApplication.java:10) ~[classes/:na]
Caused by: java.lang.IllegalArgumentException: Not a managed type: class com.d.hello.modela.Users
    at org.hibernate.metamodel.model.domain.internal.JpaMetamodelImpl.managedType(JpaMetamodelImpl.java:181) ~[hibernate-core-6.1.5.Final.jar:6.1.5.Final]
    at org.hibernate.metamodel.model.domain.internal.MappingMetamodelImpl.managedType(MappingMetamodelImpl.java:496) ~[hibernate-core-6.1.5.Final.jar:6.1.5.Final]
    at org.hibernate.metamodel.model.domain.internal.MappingMetamodelImpl.managedType(MappingMetamodelImpl.java:99) ~[hibernate-core-6.1.5.Final.jar:6.1.5.Final]
    at org.springframework.data.jpa.repository.support.JpaMetamodelEntityInformation.<init>(JpaMetamodelEntityInformation.java:77) ~[spring-data-jpa-3.0.0.jar:3.0.0]
    at org.springframework.data.jpa.repository.support.JpaEntityInformationSupport.getEntityInformation(JpaEntityInformationSupport.java:69) ~[spring-data-jpa-3.0.0.jar:3.0.0]
    at org.springframework.data.jpa.repository.support.JpaRepositoryFactory.getEntityInformation(JpaRepositoryFactory.java:246) ~[spring-data-jpa-3.0.0.jar:3.0.0]
    at org.springframework.data.jpa.repository.support.JpaRepositoryFactory.getTargetRepository(JpaRepositoryFactory.java:211) ~[spring-data-jpa-3.0.0.jar:3.0.0]
    at org.springframework.data.jpa.repository.support.JpaRepositoryFactory.getTargetRepository(JpaRepositoryFactory.java:194) ~[spring-data-jpa-3.0.0.jar:3.0.0]
    at org.springframework.data.jpa.repository.support.JpaRepositoryFactory.getTargetRepository(JpaRepositoryFactory.java:81) ~[spring-data-jpa-3.0.0.jar:3.0.0]
    at org.springframework.data.repository.core.support.RepositoryFactorySupport.getRepository(RepositoryFactorySupport.java:317) ~[spring-data-commons-3.0.0.jar:3.0.0]
    at org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.lambda$afterPropertiesSet$5(RepositoryFactoryBeanSupport.java:279) ~[spring-data-commons-3.0.0.jar:3.0.0]
    at org.springframework.data.util.Lazy.getNullable(Lazy.java:229) ~[spring-data-commons-3.0.0.jar:3.0.0]
    at org.springframework.data.util.Lazy.get(Lazy.java:113) ~[spring-data-commons-3.0.0.jar:3.0.0]
    at org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.afterPropertiesSet(RepositoryFactoryBeanSupport.java:285) ~[spring-data-commons-3.0.0.jar:3.0.0]
    at org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean.afterPropertiesSet(JpaRepositoryFactoryBean.java:132) ~[spring-data-jpa-3.0.0.jar:3.0.0]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1797) ~[spring-beans-6.0.2.jar:6.0.2]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1747) ~[spring-beans-6.0.2.jar:6.0.2]
    ... 16 common frames omitted
</code>```

Iam facing this errror could anyone please solve this as iam stuck in this.

Body:
Users.java

package com.d.hello;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class HelloApplication {

    public static void main(String[] args) {
        SpringApplication.run(HelloApplication.class, args);
    }

}

Userreps.java

package com.d.hello;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class HelloApplication {

    public static void main(String[] args) {
        SpringApplication.run(HelloApplication.class, args);
    }

}

pom.xml

<?xml version="1.0" encoding="UTF-8"?>
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>3.0.0</version>
        <relativePath/>
    </parent>
    <groupId>com.d</groupId>
    <artifactId>hello</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <name>hello</name>
    <description>Demo project for Spring Boot</description>
    <properties>
        <java.version>17</java.version>
    </properties>
    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-jpa</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>

        <dependency>
            <groupId>com.mysql</groupId>
            <artifactId>mysql-connector-j</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>

<dependency>
    <groupId>org.hibernate.javax.persistence</groupId>
    <artifactId>hibernate-jpa-2.1-api</artifactId>
    <version>1.0.2.Final</version>
</dependency>

<dependency>
    <groupId>org.springframework.data</groupId>
    <artifactId>spring-data-jpa</artifactId>

</dependency>

    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
        </plugins>
    </build>

</project>

error

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userreps' defined in com.d.hello.repo.Userreps defined in @EnableJpaRepositories declared on JpaRepositoriesRegistrar.EnableJpaRepositoriesConfiguration: Not a managed type: class com.d.hello.modela.Users
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1751) ~[spring-beans-6.0.2.jar:6.0.2]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:599) ~[spring-beans-6.0.2.jar:6.0.2]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:521) ~[spring-beans-6.0.2.jar:6.0.2]
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:326) ~[spring-beans-6.0.2.jar:6.0.2]
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-6.0.2.jar:6.0.2]
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:324) ~[spring-beans-6.0.2.jar:6.0.2]
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200) ~[spring-beans-6.0.2.jar:6.0.2]
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955) ~[spring-beans-6.0.2.jar:6.0.2]
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:915) ~[spring-context-6.0.2.jar:6.0.2]
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:584) ~[spring-context-6.0.2.jar:6.0.2]
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146) ~[spring-boot-3.0.0.jar:3.0.0]
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:730) ~[spring-boot-3.0.0.jar:3.0.0]
    at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:432) ~[spring-boot-3.0.0.jar:3.0.0]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:308) ~[spring-boot-3.0.0.jar:3.0.0]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1302) ~[spring-boot-3.0.0.jar:3.0.0]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1291) ~[spring-boot-3.0.0.jar:3.0.0]
    at com.d.hello.HelloApplication.main(HelloApplication.java:10) ~[classes/:na]
Caused by: java.lang.IllegalArgumentException: Not a managed type: class com.d.hello.modela.Users
    at org.hibernate.metamodel.model.domain.internal.JpaMetamodelImpl.managedType(JpaMetamodelImpl.java:181) ~[hibernate-core-6.1.5.Final.jar:6.1.5.Final]
    at org.hibernate.metamodel.model.domain.internal.MappingMetamodelImpl.managedType(MappingMetamodelImpl.java:496) ~[hibernate-core-6.1.5.Final.jar:6.1.5.Final]
    at org.hibernate.metamodel.model.domain.internal.MappingMetamodelImpl.managedType(MappingMetamodelImpl.java:99) ~[hibernate-core-6.1.5.Final.jar:6.1.5.Final]
    at org.springframework.data.jpa.repository.support.JpaMetamodelEntityInformation.<init>(JpaMetamodelEntityInformation.java:77) ~[spring-data-jpa-3.0.0.jar:3.0.0]
    at org.springframework.data.jpa.repository.support.JpaEntityInformationSupport.getEntityInformation(JpaEntityInformationSupport.java:69) ~[spring-data-jpa-3.0.0.jar:3.0.0]
    at org.springframework.data.jpa.repository.support.JpaRepositoryFactory.getEntityInformation(JpaRepositoryFactory.java:246) ~[spring-data-jpa-3.0.0.jar:3.0.0]
    at org.springframework.data.jpa.repository.support.JpaRepositoryFactory.getTargetRepository(JpaRepositoryFactory.java:211) ~[spring-data-jpa-3.0.0.jar:3.0.0]
    at org.springframework.data.jpa.repository.support.JpaRepositoryFactory.getTargetRepository(JpaRepositoryFactory.java:194) ~[spring-data-jpa-3.0.0.jar:3.0.0]
    at org.springframework.data.jpa.repository.support.JpaRepositoryFactory.getTargetRepository(JpaRepositoryFactory.java:81) ~[spring-data-jpa-3.0.0.jar:3.0.0]
    at org.springframework.data.repository.core.support.RepositoryFactorySupport.getRepository(RepositoryFactorySupport.java:317) ~[spring-data-commons-3.0.0.jar:3.0.0]
    at org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.lambda$afterPropertiesSet$5(RepositoryFactoryBeanSupport.java:279) ~[spring-data-commons-3.0.0.jar:3.0.0]
    at org.springframework.data.util.Lazy.getNullable(Lazy.java:229) ~[spring-data-commons-3.0.0.jar:3.0.0]
    at org.springframework.data.util.Lazy.get(Lazy.java:113) ~[spring-data-commons-3.0.0.jar:3.0.0]
    at org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.afterPropertiesSet(RepositoryFactoryBeanSupport.java:285) ~[spring-data-commons-3.0.0.jar:3.0.0]
    at org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean.afterPropertiesSet(JpaRepositoryFactoryBean.java:132) ~[spring-data-jpa-3.0.0.jar:3.0.0]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1797) ~[spring-beans-6.0.2.jar:6.0.2]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1747) ~[spring-beans-6.0.2.jar:6.0.2]
    ... 16 common frames omitted

Iam facing this errror could anyone please solve this as iam stuck in this.


来源: stackexchange

问:
How does the bootloader choose dtb overlay?
I'm examining the dtb (device tree blob) files of a stock Android rom. After Android 10, the base dtb resides in vendor_boot.img and the dtb overlay reside in dtbo.img.

I successfully:

unpacked android roms, got vendor_boot.img and dtbo.img;

used extract-dtb to extract dtb files from those *.img files.

Finally I found there are multiple dtb overlays extracted from one dtbo.img.
For example, Pixel 6a has 10 dtb overlays:

```<code>$ ls
01_dtbdump_fragment@0.dtb
02_dtbdump_fragment@0.dtb
03_dtbdump_fragment@0.dtb
04_dtbdump_fragment@0.dtb
05_dtbdump_fragment@0.dtb
06_dtbdump_fragment@0.dtb
07_dtbdump_fragment@0.dtb
08_dtbdump_fragment@0.dtb
09_dtbdump_fragment@0.dtb
10_dtbdump_fragment@0.dtb
</code>```

My questions are:

How does the bootloader know which dtb overlay file it should select?

Does the bootloader simply choose all dtb overlays and apply them to the base dtb?

Are the dtb selecting commands hard-coded into the bootloader?

Thank you in advance!

ContentLicense: CC BY-SA 4.0

Body:
I'm examining the dtb (device tree blob) files of a stock Android rom. After Android 10, the base dtb resides in vendor_boot.img and the dtb overlay reside in dtbo.img.

I successfully:

unpacked android roms, got vendor_boot.img and dtbo.img;

used extract-dtb to extract dtb files from those *.img files.

Finally I found there are multiple dtb overlays extracted from one dtbo.img.
For example, Pixel 6a has 10 dtb overlays:

$ ls
01_dtbdump_fragment@0.dtb
02_dtbdump_fragment@0.dtb
03_dtbdump_fragment@0.dtb
04_dtbdump_fragment@0.dtb
05_dtbdump_fragment@0.dtb
06_dtbdump_fragment@0.dtb
07_dtbdump_fragment@0.dtb
08_dtbdump_fragment@0.dtb
09_dtbdump_fragment@0.dtb
10_dtbdump_fragment@0.dtb

My questions are:

How does the bootloader know which dtb overlay file it should select?

Does the bootloader simply choose all dtb overlays and apply them to the base dtb?

Are the dtb selecting commands hard-coded into the bootloader?

Thank you in advance!


问:
trying to read .smp stream using ffmpeg over windows cmd
Am trying to read the stream over windows CMD using ffmpeg.
I am able to stream the same link to VLC Player but Cmd showing bellow error.

The camera used here is : **Hanwha **

So when i run this command, there is error "Invalid data found when processing input"

How to tell ffmjpeg to identify this type of stream.

Command :

```<code>ffmpeg -i rtsp://admin:******@10.82.0.165:80/profile1/media.smp -loglevel 99
</code>```

Command Result :

```<code>ffmpeg version 2022-12-11-git-c3e20f78b0-full_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 12.1.0 (Rev2, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libaribb24 --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libvpl --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
  libavutil      57. 43.100 / 57. 43.100
  libavcodec     59. 55.100 / 59. 55.100
  libavformat    59. 34.102 / 59. 34.102
  libavdevice    59.  8.101 / 59.  8.101
  libavfilter     8. 52.100 /  8. 52.100
  libswscale      6.  8.112 /  6.  8.112
  libswresample   4.  9.100 /  4.  9.100
  libpostproc    56.  7.100 / 56.  7.100
Splitting the commandline.
Reading option '-codec' ... matched as option 'codec' (codec name) with argument 'hevc'.
Reading option '-i' ... matched as input url with argument 'rtsp://admin:*******@10.82.0.165:80/profile1/media.smp'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument '99'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument 99.
Successfully parsed a group of options.
Parsing a group of options: input url rtsp://admin:******@10.82.0.165:80/profile1/media.smp.
Applying option codec (codec name) with argument hevc.
Successfully parsed a group of options.
Opening an input file: rtsp://admin:******@10.82.0.165:80/profile1/media.smp.
Probing rtsp score:100 size:0
[tcp @ 000001ce22e0f0c0] No default whitelist set
[tcp @ 000001ce22e0f0c0] Original list of addresses:
[tcp @ 000001ce22e0f0c0] Address 10.82.0.165 port 80
[tcp @ 000001ce22e0f0c0] Interleaved list of addresses:
[tcp @ 000001ce22e0f0c0] Address 10.82.0.165 port 80
[tcp @ 000001ce22e0f0c0] Starting connection attempt to 10.82.0.165 port 80
[tcp @ 000001ce22e0f0c0] Successfully connected to 10.82.0.165 port 80
[rtsp @ 000001ce22e0e800] Sending:
OPTIONS rtsp://10.82.0.165:80/profile1/media.smp RTSP/1.0
CSeq: 1
User-Agent: Lavf59.34.102

--
[rtsp @ 000001ce22e0e800] ret=1 c=48 [H]
[rtsp @ 000001ce22e0e800] ret=1 c=54 [T]
    Last message repeated 1 times
[rtsp @ 000001ce22e0e800] ret=1 c=50 [P]
[rtsp @ 000001ce22e0e800] ret=1 c=2f [/]
[rtsp @ 000001ce22e0e800] ret=1 c=31 [1]
[rtsp @ 000001ce22e0e800] ret=1 c=2e [.]
[rtsp @ 000001ce22e0e800] ret=1 c=30 [0]
[rtsp @ 000001ce22e0e800] ret=1 c=20 [ ]
[rtsp @ 000001ce22e0e800] ret=1 c=34 [4]
[rtsp @ 000001ce22e0e800] ret=1 c=30 [0]
    Last message repeated 1 times
[rtsp @ 000001ce22e0e800] ret=1 c=20 [ ]
[rtsp @ 000001ce22e0e800] ret=1 c=42 [B]
[rtsp @ 000001ce22e0e800] ret=1 c=61 [a]
[rtsp @ 000001ce22e0e800] ret=1 c=64 [d]
[rtsp @ 000001ce22e0e800] ret=1 c=20 [ ]
[rtsp @ 000001ce22e0e800] ret=1 c=52 [R]
[rtsp @ 000001ce22e0e800] ret=1 c=65 [e]
[rtsp @ 000001ce22e0e800] ret=1 c=71 [q]
[rtsp @ 000001ce22e0e800] ret=1 c=75 [u]
[rtsp @ 000001ce22e0e800] ret=1 c=65 [e]
[rtsp @ 000001ce22e0e800] ret=1 c=73 [s]
[rtsp @ 000001ce22e0e800] ret=1 c=74 [t]
]rtsp @ 000001ce22e0e800] ret=1 c=0d [
[rtsp @ 000001ce22e0e800] ret=1 c=0a [
]
[rtsp @ 000001ce22e0e800] line='HTTP/1.0 400 Bad Request'
[rtsp @ 000001ce22e0e800] ret=1 c=43 [C]
[rtsp @ 000001ce22e0e800] ret=1 c=6f [o]
[rtsp @ 000001ce22e0e800] ret=1 c=6e [n]
[rtsp @ 000001ce22e0e800] ret=1 c=74 [t]
[rtsp @ 000001ce22e0e800] ret=1 c=65 [e]
[rtsp @ 000001ce22e0e800] ret=1 c=6e [n]
[rtsp @ 000001ce22e0e800] ret=1 c=74 [t]
[rtsp @ 000001ce22e0e800] ret=1 c=2d [-]
[rtsp @ 000001ce22e0e800] ret=1 c=54 [T]
[rtsp @ 000001ce22e0e800] ret=1 c=79 [y]
[rtsp @ 000001ce22e0e800] ret=1 c=70 [p]
[rtsp @ 000001ce22e0e800] ret=1 c=65 [e]
[rtsp @ 000001ce22e0e800] ret=1 c=3a [:]
[rtsp @ 000001ce22e0e800] ret=1 c=20 [ ]
[rtsp @ 000001ce22e0e800] ret=1 c=74 [t]
[rtsp @ 000001ce22e0e800] ret=1 c=65 [e]
[rtsp @ 000001ce22e0e800] ret=1 c=78 [x]
[rtsp @ 000001ce22e0e800] ret=1 c=74 [t]
[rtsp @ 000001ce22e0e800] ret=1 c=2f [/]
[rtsp @ 000001ce22e0e800] ret=1 c=68 [h]
[rtsp @ 000001ce22e0e800] ret=1 c=74 [t]
[rtsp @ 000001ce22e0e800] ret=1 c=6d [m]
[rtsp @ 000001ce22e0e800] ret=1 c=6c [l]
]rtsp @ 000001ce22e0e800] ret=1 c=0d [
[rtsp @ 000001ce22e0e800] ret=1 c=0a [
]
[rtsp @ 000001ce22e0e800] line='Content-Type: text/html'
[rtsp @ 000001ce22e0e800] ret=1 c=43 [C]
[rtsp @ 000001ce22e0e800] ret=1 c=6f [o]
[rtsp @ 000001ce22e0e800] ret=1 c=6e [n]
[rtsp @ 000001ce22e0e800] ret=1 c=74 [t]
[rtsp @ 000001ce22e0e800] ret=1 c=65 [e]
[rtsp @ 000001ce22e0e800] ret=1 c=6e [n]
[rtsp @ 000001ce22e0e800] ret=1 c=74 [t]
[rtsp @ 000001ce22e0e800] ret=1 c=2d [-]
[rtsp @ 000001ce22e0e800] ret=1 c=4c [L]
[rtsp @ 000001ce22e0e800] ret=1 c=65 [e]
[rtsp @ 000001ce22e0e800] ret=1 c=6e [n]
[rtsp @ 000001ce22e0e800] ret=1 c=67 [g]
[rtsp @ 000001ce22e0e800] ret=1 c=74 [t]
[rtsp @ 000001ce22e0e800] ret=1 c=68 [h]
[rtsp @ 000001ce22e0e800] ret=1 c=3a [:]
[rtsp @ 000001ce22e0e800] ret=1 c=20 [ ]
[rtsp @ 000001ce22e0e800] ret=1 c=33 [3]
[rtsp @ 000001ce22e0e800] ret=1 c=34 [4]
[rtsp @ 000001ce22e0e800] ret=1 c=39 [9]
]rtsp @ 000001ce22e0e800] ret=1 c=0d [
[rtsp @ 000001ce22e0e800] ret=1 c=0a [
]
[rtsp @ 000001ce22e0e800] line='Content-Length: 349'
[rtsp @ 000001ce22e0e800] ret=1 c=43 [C]
[rtsp @ 000001ce22e0e800] ret=1 c=6f [o]
[rtsp @ 000001ce22e0e800] ret=1 c=6e [n]
    Last message repeated 1 times
[rtsp @ 000001ce22e0e800] ret=1 c=65 [e]
[rtsp @ 000001ce22e0e800] ret=1 c=63 [c]
[rtsp @ 000001ce22e0e800] ret=1 c=74 [t]
[rtsp @ 000001ce22e0e800] ret=1 c=69 [i]
[rtsp @ 000001ce22e0e800] ret=1 c=6f [o]
[rtsp @ 000001ce22e0e800] ret=1 c=6e [n]
[rtsp @ 000001ce22e0e800] ret=1 c=3a [:]
[rtsp @ 000001ce22e0e800] ret=1 c=20 [ ]
[rtsp @ 000001ce22e0e800] ret=1 c=63 [c]
[rtsp @ 000001ce22e0e800] ret=1 c=6c [l]
[rtsp @ 000001ce22e0e800] ret=1 c=6f [o]
[rtsp @ 000001ce22e0e800] ret=1 c=73 [s]
[rtsp @ 000001ce22e0e800] ret=1 c=65 [e]
]rtsp @ 000001ce22e0e800] ret=1 c=0d [
[rtsp @ 000001ce22e0e800] ret=1 c=0a [
]
[rtsp @ 000001ce22e0e800] line='Connection: close'
[rtsp @ 000001ce22e0e800] ret=1 c=44 [D]
[rtsp @ 000001ce22e0e800] ret=1 c=61 [a]
[rtsp @ 000001ce22e0e800] ret=1 c=74 [t]
[rtsp @ 000001ce22e0e800] ret=1 c=65 [e]
[rtsp @ 000001ce22e0e800] ret=1 c=3a [:]
[rtsp @ 000001ce22e0e800] ret=1 c=20 [ ]
[rtsp @ 000001ce22e0e800] ret=1 c=54 [T]
[rtsp @ 000001ce22e0e800] ret=1 c=68 [h]
[rtsp @ 000001ce22e0e800] ret=1 c=75 [u]
[rtsp @ 000001ce22e0e800] ret=1 c=2c [,]
[rtsp @ 000001ce22e0e800] ret=1 c=20 [ ]
[rtsp @ 000001ce22e0e800] ret=1 c=31 [1]
[rtsp @ 000001ce22e0e800] ret=1 c=35 [5]
[rtsp @ 000001ce22e0e800] ret=1 c=20 [ ]
[rtsp @ 000001ce22e0e800] ret=1 c=44 [D]
[rtsp @ 000001ce22e0e800] ret=1 c=65 [e]
[rtsp @ 000001ce22e0e800] ret=1 c=63 [c]
[rtsp @ 000001ce22e0e800] ret=1 c=20 [ ]
[rtsp @ 000001ce22e0e800] ret=1 c=32 [2]
[rtsp @ 000001ce22e0e800] ret=1 c=30 [0]
[rtsp @ 000001ce22e0e800] ret=1 c=32 [2]
    Last message repeated 1 times
[rtsp @ 000001ce22e0e800] ret=1 c=20 [ ]
[rtsp @ 000001ce22e0e800] ret=1 c=30 [0]
[rtsp @ 000001ce22e0e800] ret=1 c=38 [8]
[rtsp @ 000001ce22e0e800] ret=1 c=3a [:]
[rtsp @ 000001ce22e0e800] ret=1 c=31 [1]
[rtsp @ 000001ce22e0e800] ret=1 c=32 [2]
[rtsp @ 000001ce22e0e800] ret=1 c=3a [:]
[rtsp @ 000001ce22e0e800] ret=1 c=35 [5]
[rtsp @ 000001ce22e0e800] ret=1 c=32 [2]
[rtsp @ 000001ce22e0e800] ret=1 c=20 [ ]
[rtsp @ 000001ce22e0e800] ret=1 c=47 [G]
[rtsp @ 000001ce22e0e800] ret=1 c=4d [M]
[rtsp @ 000001ce22e0e800] ret=1 c=54 [T]
]rtsp @ 000001ce22e0e800] ret=1 c=0d [
[rtsp @ 000001ce22e0e800] ret=1 c=0a [
]
[rtsp @ 000001ce22e0e800] line='Date: Thu, 15 Dec 2022 08:12:52 GMT'
[rtsp @ 000001ce22e0e800] ret=1 c=53 [S]
[rtsp @ 000001ce22e0e800] ret=1 c=65 [e]
[rtsp @ 000001ce22e0e800] ret=1 c=72 [r]
[rtsp @ 000001ce22e0e800] ret=1 c=76 [v]
[rtsp @ 000001ce22e0e800] ret=1 c=65 [e]
[rtsp @ 000001ce22e0e800] ret=1 c=72 [r]
[rtsp @ 000001ce22e0e800] ret=1 c=3a [:]
[rtsp @ 000001ce22e0e800] ret=1 c=20 [ ]
[rtsp @ 000001ce22e0e800] ret=1 c=6c [l]
[rtsp @ 000001ce22e0e800] ret=1 c=69 [i]
[rtsp @ 000001ce22e0e800] ret=1 c=67 [g]
[rtsp @ 000001ce22e0e800] ret=1 c=68 [h]
[rtsp @ 000001ce22e0e800] ret=1 c=74 [t]
    Last message repeated 1 times
[rtsp @ 000001ce22e0e800] ret=1 c=70 [p]
[rtsp @ 000001ce22e0e800] ret=1 c=64 [d]
]rtsp @ 000001ce22e0e800] ret=1 c=0d [
[rtsp @ 000001ce22e0e800] ret=1 c=0a [
]
[rtsp @ 000001ce22e0e800] line='Server: lighttpd'
]rtsp @ 000001ce22e0e800] ret=1 c=0d [
[rtsp @ 000001ce22e0e800] ret=1 c=0a [
]
[rtsp @ 000001ce22e0e800] line=''
[rtsp @ 000001ce22e0e800] ret=-541478725 c=0a [
]
rtsp://admin:********@10.82.0.165:80/profile1/media.smp: Invalid data found when processing input
</code>```

Body:
Am trying to read the stream over windows CMD using ffmpeg.
I am able to stream the same link to VLC Player but Cmd showing bellow error.

The camera used here is : **Hanwha **

So when i run this command, there is error "Invalid data found when processing input"

How to tell ffmjpeg to identify this type of stream.

Command :

ffmpeg -i rtsp://admin:******@10.82.0.165:80/profile1/media.smp -loglevel 99

Command Result :

ffmpeg version 2022-12-11-git-c3e20f78b0-full_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 12.1.0 (Rev2, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libaribb24 --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libvpl --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
  libavutil      57. 43.100 / 57. 43.100
  libavcodec     59. 55.100 / 59. 55.100
  libavformat    59. 34.102 / 59. 34.102
  libavdevice    59.  8.101 / 59.  8.101
  libavfilter     8. 52.100 /  8. 52.100
  libswscale      6.  8.112 /  6.  8.112
  libswresample   4.  9.100 /  4.  9.100
  libpostproc    56.  7.100 / 56.  7.100
Splitting the commandline.
Reading option '-codec' ... matched as option 'codec' (codec name) with argument 'hevc'.
Reading option '-i' ... matched as input url with argument 'rtsp://admin:*******@10.82.0.165:80/profile1/media.smp'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument '99'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument 99.
Successfully parsed a group of options.
Parsing a group of options: input url rtsp://admin:******@10.82.0.165:80/profile1/media.smp.
Applying option codec (codec name) with argument hevc.
Successfully parsed a group of options.
Opening an input file: rtsp://admin:******@10.82.0.165:80/profile1/media.smp.
Probing rtsp score:100 size:0
[tcp @ 000001ce22e0f0c0] No default whitelist set
[tcp @ 000001ce22e0f0c0] Original list of addresses:
[tcp @ 000001ce22e0f0c0] Address 10.82.0.165 port 80
[tcp @ 000001ce22e0f0c0] Interleaved list of addresses:
[tcp @ 000001ce22e0f0c0] Address 10.82.0.165 port 80
[tcp @ 000001ce22e0f0c0] Starting connection attempt to 10.82.0.165 port 80
[tcp @ 000001ce22e0f0c0] Successfully connected to 10.82.0.165 port 80
[rtsp @ 000001ce22e0e800] Sending:
OPTIONS rtsp://10.82.0.165:80/profile1/media.smp RTSP/1.0
CSeq: 1
User-Agent: Lavf59.34.102

--
[rtsp @ 000001ce22e0e800] ret=1 c=48 [H]
[rtsp @ 000001ce22e0e800] ret=1 c=54 [T]
    Last message repeated 1 times
[rtsp @ 000001ce22e0e800] ret=1 c=50 [P]
[rtsp @ 000001ce22e0e800] ret=1 c=2f [/]
[rtsp @ 000001ce22e0e800] ret=1 c=31 [1]
[rtsp @ 000001ce22e0e800] ret=1 c=2e [.]
[rtsp @ 000001ce22e0e800] ret=1 c=30 [0]
[rtsp @ 000001ce22e0e800] ret=1 c=20 [ ]
[rtsp @ 000001ce22e0e800] ret=1 c=34 [4]
[rtsp @ 000001ce22e0e800] ret=1 c=30 [0]
    Last message repeated 1 times
[rtsp @ 000001ce22e0e800] ret=1 c=20 [ ]
[rtsp @ 000001ce22e0e800] ret=1 c=42 [B]
[rtsp @ 000001ce22e0e800] ret=1 c=61 [a]
[rtsp @ 000001ce22e0e800] ret=1 c=64 [d]
[rtsp @ 000001ce22e0e800] ret=1 c=20 [ ]
[rtsp @ 000001ce22e0e800] ret=1 c=52 [R]
[rtsp @ 000001ce22e0e800] ret=1 c=65 [e]
[rtsp @ 000001ce22e0e800] ret=1 c=71 [q]
[rtsp @ 000001ce22e0e800] ret=1 c=75 [u]
[rtsp @ 000001ce22e0e800] ret=1 c=65 [e]
[rtsp @ 000001ce22e0e800] ret=1 c=73 [s]
[rtsp @ 000001ce22e0e800] ret=1 c=74 [t]
]rtsp @ 000001ce22e0e800] ret=1 c=0d [
[rtsp @ 000001ce22e0e800] ret=1 c=0a [
]
[rtsp @ 000001ce22e0e800] line='HTTP/1.0 400 Bad Request'
[rtsp @ 000001ce22e0e800] ret=1 c=43 [C]
[rtsp @ 000001ce22e0e800] ret=1 c=6f [o]
[rtsp @ 000001ce22e0e800] ret=1 c=6e [n]
[rtsp @ 000001ce22e0e800] ret=1 c=74 [t]
[rtsp @ 000001ce22e0e800] ret=1 c=65 [e]
[rtsp @ 000001ce22e0e800] ret=1 c=6e [n]
[rtsp @ 000001ce22e0e800] ret=1 c=74 [t]
[rtsp @ 000001ce22e0e800] ret=1 c=2d [-]
[rtsp @ 000001ce22e0e800] ret=1 c=54 [T]
[rtsp @ 000001ce22e0e800] ret=1 c=79 [y]
[rtsp @ 000001ce22e0e800] ret=1 c=70 [p]
[rtsp @ 000001ce22e0e800] ret=1 c=65 [e]
[rtsp @ 000001ce22e0e800] ret=1 c=3a [:]
[rtsp @ 000001ce22e0e800] ret=1 c=20 [ ]
[rtsp @ 000001ce22e0e800] ret=1 c=74 [t]
[rtsp @ 000001ce22e0e800] ret=1 c=65 [e]
[rtsp @ 000001ce22e0e800] ret=1 c=78 [x]
[rtsp @ 000001ce22e0e800] ret=1 c=74 [t]
[rtsp @ 000001ce22e0e800] ret=1 c=2f [/]
[rtsp @ 000001ce22e0e800] ret=1 c=68 [h]
[rtsp @ 000001ce22e0e800] ret=1 c=74 [t]
[rtsp @ 000001ce22e0e800] ret=1 c=6d [m]
[rtsp @ 000001ce22e0e800] ret=1 c=6c [l]
]rtsp @ 000001ce22e0e800] ret=1 c=0d [
[rtsp @ 000001ce22e0e800] ret=1 c=0a [
]
[rtsp @ 000001ce22e0e800] line='Content-Type: text/html'
[rtsp @ 000001ce22e0e800] ret=1 c=43 [C]
[rtsp @ 000001ce22e0e800] ret=1 c=6f [o]
[rtsp @ 000001ce22e0e800] ret=1 c=6e [n]
[rtsp @ 000001ce22e0e800] ret=1 c=74 [t]
[rtsp @ 000001ce22e0e800] ret=1 c=65 [e]
[rtsp @ 000001ce22e0e800] ret=1 c=6e [n]
[rtsp @ 000001ce22e0e800] ret=1 c=74 [t]
[rtsp @ 000001ce22e0e800] ret=1 c=2d [-]
[rtsp @ 000001ce22e0e800] ret=1 c=4c [L]
[rtsp @ 000001ce22e0e800] ret=1 c=65 [e]
[rtsp @ 000001ce22e0e800] ret=1 c=6e [n]
[rtsp @ 000001ce22e0e800] ret=1 c=67 [g]
[rtsp @ 000001ce22e0e800] ret=1 c=74 [t]
[rtsp @ 000001ce22e0e800] ret=1 c=68 [h]
[rtsp @ 000001ce22e0e800] ret=1 c=3a [:]
[rtsp @ 000001ce22e0e800] ret=1 c=20 [ ]
[rtsp @ 000001ce22e0e800] ret=1 c=33 [3]
[rtsp @ 000001ce22e0e800] ret=1 c=34 [4]
[rtsp @ 000001ce22e0e800] ret=1 c=39 [9]
]rtsp @ 000001ce22e0e800] ret=1 c=0d [
[rtsp @ 000001ce22e0e800] ret=1 c=0a [
]
[rtsp @ 000001ce22e0e800] line='Content-Length: 349'
[rtsp @ 000001ce22e0e800] ret=1 c=43 [C]
[rtsp @ 000001ce22e0e800] ret=1 c=6f [o]
[rtsp @ 000001ce22e0e800] ret=1 c=6e [n]
    Last message repeated 1 times
[rtsp @ 000001ce22e0e800] ret=1 c=65 [e]
[rtsp @ 000001ce22e0e800] ret=1 c=63 [c]
[rtsp @ 000001ce22e0e800] ret=1 c=74 [t]
[rtsp @ 000001ce22e0e800] ret=1 c=69 [i]
[rtsp @ 000001ce22e0e800] ret=1 c=6f [o]
[rtsp @ 000001ce22e0e800] ret=1 c=6e [n]
[rtsp @ 000001ce22e0e800] ret=1 c=3a [:]
[rtsp @ 000001ce22e0e800] ret=1 c=20 [ ]
[rtsp @ 000001ce22e0e800] ret=1 c=63 [c]
[rtsp @ 000001ce22e0e800] ret=1 c=6c [l]
[rtsp @ 000001ce22e0e800] ret=1 c=6f [o]
[rtsp @ 000001ce22e0e800] ret=1 c=73 [s]
[rtsp @ 000001ce22e0e800] ret=1 c=65 [e]
]rtsp @ 000001ce22e0e800] ret=1 c=0d [
[rtsp @ 000001ce22e0e800] ret=1 c=0a [
]
[rtsp @ 000001ce22e0e800] line='Connection: close'
[rtsp @ 000001ce22e0e800] ret=1 c=44 [D]
[rtsp @ 000001ce22e0e800] ret=1 c=61 [a]
[rtsp @ 000001ce22e0e800] ret=1 c=74 [t]
[rtsp @ 000001ce22e0e800] ret=1 c=65 [e]
[rtsp @ 000001ce22e0e800] ret=1 c=3a [:]
[rtsp @ 000001ce22e0e800] ret=1 c=20 [ ]
[rtsp @ 000001ce22e0e800] ret=1 c=54 [T]
[rtsp @ 000001ce22e0e800] ret=1 c=68 [h]
[rtsp @ 000001ce22e0e800] ret=1 c=75 [u]
[rtsp @ 000001ce22e0e800] ret=1 c=2c [,]
[rtsp @ 000001ce22e0e800] ret=1 c=20 [ ]
[rtsp @ 000001ce22e0e800] ret=1 c=31 [1]
[rtsp @ 000001ce22e0e800] ret=1 c=35 [5]
[rtsp @ 000001ce22e0e800] ret=1 c=20 [ ]
[rtsp @ 000001ce22e0e800] ret=1 c=44 [D]
[rtsp @ 000001ce22e0e800] ret=1 c=65 [e]
[rtsp @ 000001ce22e0e800] ret=1 c=63 [c]
[rtsp @ 000001ce22e0e800] ret=1 c=20 [ ]
[rtsp @ 000001ce22e0e800] ret=1 c=32 [2]
[rtsp @ 000001ce22e0e800] ret=1 c=30 [0]
[rtsp @ 000001ce22e0e800] ret=1 c=32 [2]
    Last message repeated 1 times
[rtsp @ 000001ce22e0e800] ret=1 c=20 [ ]
[rtsp @ 000001ce22e0e800] ret=1 c=30 [0]
[rtsp @ 000001ce22e0e800] ret=1 c=38 [8]
[rtsp @ 000001ce22e0e800] ret=1 c=3a [:]
[rtsp @ 000001ce22e0e800] ret=1 c=31 [1]
[rtsp @ 000001ce22e0e800] ret=1 c=32 [2]
[rtsp @ 000001ce22e0e800] ret=1 c=3a [:]
[rtsp @ 000001ce22e0e800] ret=1 c=35 [5]
[rtsp @ 000001ce22e0e800] ret=1 c=32 [2]
[rtsp @ 000001ce22e0e800] ret=1 c=20 [ ]
[rtsp @ 000001ce22e0e800] ret=1 c=47 [G]
[rtsp @ 000001ce22e0e800] ret=1 c=4d [M]
[rtsp @ 000001ce22e0e800] ret=1 c=54 [T]
]rtsp @ 000001ce22e0e800] ret=1 c=0d [
[rtsp @ 000001ce22e0e800] ret=1 c=0a [
]
[rtsp @ 000001ce22e0e800] line='Date: Thu, 15 Dec 2022 08:12:52 GMT'
[rtsp @ 000001ce22e0e800] ret=1 c=53 [S]
[rtsp @ 000001ce22e0e800] ret=1 c=65 [e]
[rtsp @ 000001ce22e0e800] ret=1 c=72 [r]
[rtsp @ 000001ce22e0e800] ret=1 c=76 [v]
[rtsp @ 000001ce22e0e800] ret=1 c=65 [e]
[rtsp @ 000001ce22e0e800] ret=1 c=72 [r]
[rtsp @ 000001ce22e0e800] ret=1 c=3a [:]
[rtsp @ 000001ce22e0e800] ret=1 c=20 [ ]
[rtsp @ 000001ce22e0e800] ret=1 c=6c [l]
[rtsp @ 000001ce22e0e800] ret=1 c=69 [i]
[rtsp @ 000001ce22e0e800] ret=1 c=67 [g]
[rtsp @ 000001ce22e0e800] ret=1 c=68 [h]
[rtsp @ 000001ce22e0e800] ret=1 c=74 [t]
    Last message repeated 1 times
[rtsp @ 000001ce22e0e800] ret=1 c=70 [p]
[rtsp @ 000001ce22e0e800] ret=1 c=64 [d]
]rtsp @ 000001ce22e0e800] ret=1 c=0d [
[rtsp @ 000001ce22e0e800] ret=1 c=0a [
]
[rtsp @ 000001ce22e0e800] line='Server: lighttpd'
]rtsp @ 000001ce22e0e800] ret=1 c=0d [
[rtsp @ 000001ce22e0e800] ret=1 c=0a [
]
[rtsp @ 000001ce22e0e800] line=''
[rtsp @ 000001ce22e0e800] ret=-541478725 c=0a [
]
rtsp://admin:********@10.82.0.165:80/profile1/media.smp: Invalid data found when processing input


问:
applicationContext.getBean("tokenConfig") is null in a service when mocking it in junit
```<code>@Configuration
class TokenConfiguration {
    @Bean(name = "tokenConfig")
    public String generateToken() {
        // doing some actions
        return token;
    }
}
</code>```
```<code>@Service
class TokenService {
    ApplicationContext context;
    String token;

    @Autowired
    TokenService(ApplicationContext context, @Qualifier("tokenConfig") String token) {
        token = token;
        context = context;
    }

    public String getToken() {
        return context.getBean("tokenConfig");
    }
}
</code>```
```<code>@Service
class SomeService {
    TokenService tokenService;
    SomeService(TokenService tokenService) {
        tokenService = tokenService;
    }

    function1() {
        String token = tokenService.getToken();
        // Do some actions with token
    }
}
</code>```

I have to write test case for function1() of SomeService class. But, I am getting null from tokenService.getToken().

I have tried to mock applicationContext but it's not working.

Here is my code:-

```<code>@contextConfiguration(classes = TokenConfig.class)
class SomeServiceTest {
    @Mock
    ApplicationContext context;

    @InjectMocks
    SomeService someService;

    @Mock
    TokenService tokenService;

    @Before
    setUp() {
        doReturn(tokenService.generateToken).when(context).getBean("tokenConfig");
    }

    @Test
    functionTest() {
        log >> tokenService.getToken() throwing null pointer exception
    }
}
</code>```

I tried to mock applicationContext to get token.

Body:
@Configuration
class TokenConfiguration {
    @Bean(name = "tokenConfig")
    public String generateToken() {
        // doing some actions
        return token;
    }
}

@Service
class TokenService {
    ApplicationContext context;
    String token;

    @Autowired
    TokenService(ApplicationContext context, @Qualifier("tokenConfig") String token) {
        token = token;
        context = context;
    }

    public String getToken() {
        return context.getBean("tokenConfig");
    }
}

@Service
class SomeService {
    TokenService tokenService;
    SomeService(TokenService tokenService) {
        tokenService = tokenService;
    }

    function1() {
        String token = tokenService.getToken();
        // Do some actions with token
    }
}

I have to write test case for function1() of SomeService class. But, I am getting null from tokenService.getToken().

I have tried to mock applicationContext but it's not working.

Here is my code:-

@contextConfiguration(classes = TokenConfig.class)
class SomeServiceTest {
    @Mock
    ApplicationContext context;

    @InjectMocks
    SomeService someService;

    @Mock
    TokenService tokenService;

    @Before
    setUp() {
        doReturn(tokenService.generateToken).when(context).getBean("tokenConfig");
    }

    @Test
    functionTest() {
        log >> tokenService.getToken() throwing null pointer exception
    }
}

I tried to mock applicationContext to get token.


问:
Android Studio Can't Emulate A Device With Opengl ES 3.2
I'm trying to emulate the .apk of my game through Android Studio's AVD, developed and packaged with Unreal Engine 5.1, which requires Opengl ES 3.2. But when creating emulated devices, only options are 2.0. I'm on a Windows (10) system, and have the latest drivers, verified my opengl version with Opengl Extensions Viewer (it was 4.6). What do I need to do to have emulated devices with Opengl ES 3.2? I have Android Studio 4.0, which is the version that Unreal Engine 5.1 is compatible with. So I can't change it. Do I need one version of Android Studio for building and another version for emulating, that seems like a pain in the ass.</p>


问:
TypeError: argument of type 'builtin_function_or_method' is not iterable
```<code>    face_names.append(name)
    if name in known_faces_names:
        if name in students:
            students.remove(name)
            print(students)
            current_time = now.strftime("%H-%M-%S")
            Inwriter.writerow(\[name,current_time\])
</code>```

cv2.imshow("FaceAttendence",frame)
if cv2.waitKey(1) & 0xFF == ord('q'):
break

output:

if name in students:

TypeError: argument of type 'builtin_function_or_method' is not iterable

I'm facing that issue how can i resolve it

Body:
    face_names.append(name)
    if name in known_faces_names:
        if name in students:
            students.remove(name)
            print(students)
            current_time = now.strftime("%H-%M-%S")
            Inwriter.writerow(\[name,current_time\])

cv2.imshow("FaceAttendence",frame)
if cv2.waitKey(1) & 0xFF == ord('q'):
break

output:

if name in students:

TypeError: argument of type 'builtin_function_or_method' is not iterable

I'm facing that issue how can i resolve it


问:
Genetic algorithm for matrix in r
I want to discover the optimal timing of three options m1, m2 and m3

I have to following data for each option(different values for each):

year
x
y
z

2022
23
54
65

2023
59
12
3

2024
28
65
2

I want to select the optimal year for each option to maximise the function ( x + y -z) by changing the below matrix.

year
m1
m2
m3

2022
0
1
1

2023
0
0
0

2024
1
0
0

The only limitation is that only one year can be selected for each option.

This will get scaled dramatically. I've tried to use the GA package but there aren't many examples. Any help would be appreciated

Title: Genetic algorithm for matrix in r


问:
Chrome browser in android refreshes the page after taking more than one image using the device's camera
I'm working on react js project that needs to take many images using the camera of an android device.

we used

<input type="file" accept="image/*" capture="environment">

Some Android devices automatically refresh the page after taking two or three photos, while another device refreshes the page after taking seven photos and some time we got this message unable to complete previous operation due to low memory

Note: It's not the same problem on iOS devices, and some Android devices work fine as well


问:
How to pass the JKS file location in Spring Cloud data flow task
We are trying to run single-step-batch-job to read from jdbc reader to Kafka writer, since our kafka topic is tls enabled, want to pass the trust-store file to spring.kafka.producer.ssl.trust-store-location , in kubernetes how we can refer to the JKS file from spring cloud task?</p>


问:
Why there are only few "symbols" in /bin/ssh?
I tried bpftrace -l "uprobe:/bin/ssh:*" command to list all symbols of /bin/bash.
I get only 3 symbols, EVP_sha512, closefrom, and setlogin.
But we can find there are lots of functions defined in openssh/openssh-portable/ssh.c.

Why there are only few symbols we could find in /bin/ssh elf?
And is it possible to access those symbols?


问:
Equal to operator in handelbar js
```<code> {{#if Slno = 1}}
            <td><span class="label label-primary">Active</span></td>
            {{else}}
            <td><span class="label label-danger">Suspended</span></td>
            {{/if}}
</code>```

This is my code . I don't know to compare slno is equal to 1

I need to compare the slno is equal to 1 or not. Please help me to complete this task

Title: Equal to operator in handelbar js

Body:
 {{#if Slno = 1}}
            Active
            {{else}}
            Suspended
            {{/if}}

This is my code . I don't know to compare slno is equal to 1

I need to compare the slno is equal to 1 or not. Please help me to complete this task


问:
RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 1. Got 11 and 32 in dimension 0
i am trying to understand/try out this open source project that I found on github:

Text2Colors

I also am only interested in making the first part work, which is TPN, or Text-to-Palette Generation Networks.

You can do so with the command:

```<code>python3 main.py --mode test_TPN
</code>```

However, this is the error I am getting.

```<code>Traceback (most recent call last):
  File "main.py", line 79, in <module>
    main(args)
  File "main.py", line 31, in main
    solver.test_TPN()
  File "/Text2Colors/solver.py", line 404, in test_TPN
    i)
  File ".local/lib/python3.5/site-packages/torch/nn/modules/module.py", line 477, in __call__
    result = self.forward(*input, **kwargs)
  File "Text2Colors/model/TPN.py", line 86, in forward
    gru_input = torch.cat((last_palette, context.squeeze(1)), 1)
RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 1. Got 11 and 32 in dimension 0 at /pytorch/aten/src/THC/generic/THCTensorMath.cu:87
</code>```

Also here is the AttnDecoderRnn class:

```<code>class AttnDecoderRNN(nn.Module):
    def __init__(self, input_dict, hidden_size, n_layers=1, dropout_p=0.1):
        super(AttnDecoderRNN, self).__init__()
        self.input_dict = input_dict
        self.attn = Attn(hidden_size, input_dict.max_len)
        self.hidden_size = hidden_size
        self.n_layers = n_layers
        self.dropout_p = dropout_p
        self.palette_dim = 3

        self.gru = nn.GRUCell(self.hidden_size + self.palette_dim, hidden_size)

        self.out = nn.Sequential(
                        nn.Linear(hidden_size, hidden_size),
                        nn.ReLU(inplace=True),
                        nn.BatchNorm1d(hidden_size),
                        nn.Linear(hidden_size,self.palette_dim)
                   )

    def forward(self, last_palette, last_decoder_hidden, encoder_outputs, each_input_size, i):

        # Compute context vector.
        if i == 0:
            context = torch.mean(encoder_outputs, dim=1, keepdim=True)
        else:
            attn_weights = self.attn(last_decoder_hidden.squeeze(0), encoder_outputs, each_input_size)
            context = torch.bmm(attn_weights, encoder_outputs.transpose(0,1))

        # Compute gru output.
        gru_input = torch.cat((last_palette, context.squeeze(1)), 1)
        gru_hidden = self.gru(gru_input, last_decoder_hidden)

        # Generate palette color.
        palette = self.out(gru_hidden.squeeze(0))
        return palette, context.unsqueeze(0), gru_hidden,
</code>```

I don't have much experience in ML, so this is quite hard to debug. Please let me know what might be the issue.

Body:
i am trying to understand/try out this open source project that I found on github:

Text2Colors

I also am only interested in making the first part work, which is TPN, or Text-to-Palette Generation Networks.

You can do so with the command:

python3 main.py --mode test_TPN

However, this is the error I am getting.

Traceback (most recent call last):
  File "main.py", line 79, in <module>
    main(args)
  File "main.py", line 31, in main
    solver.test_TPN()
  File "/Text2Colors/solver.py", line 404, in test_TPN
    i)
  File ".local/lib/python3.5/site-packages/torch/nn/modules/module.py", line 477, in __call__
    result = self.forward(*input, **kwargs)
  File "Text2Colors/model/TPN.py", line 86, in forward
    gru_input = torch.cat((last_palette, context.squeeze(1)), 1)
RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 1. Got 11 and 32 in dimension 0 at /pytorch/aten/src/THC/generic/THCTensorMath.cu:87

Also here is the AttnDecoderRnn class:

class AttnDecoderRNN(nn.Module):
    def __init__(self, input_dict, hidden_size, n_layers=1, dropout_p=0.1):
        super(AttnDecoderRNN, self).__init__()
        self.input_dict = input_dict
        self.attn = Attn(hidden_size, input_dict.max_len)
        self.hidden_size = hidden_size
        self.n_layers = n_layers
        self.dropout_p = dropout_p
        self.palette_dim = 3

        self.gru = nn.GRUCell(self.hidden_size + self.palette_dim, hidden_size)

        self.out = nn.Sequential(
                        nn.Linear(hidden_size, hidden_size),
                        nn.ReLU(inplace=True),
                        nn.BatchNorm1d(hidden_size),
                        nn.Linear(hidden_size,self.palette_dim)
                   )

    def forward(self, last_palette, last_decoder_hidden, encoder_outputs, each_input_size, i):

        # Compute context vector.
        if i == 0:
            context = torch.mean(encoder_outputs, dim=1, keepdim=True)
        else:
            attn_weights = self.attn(last_decoder_hidden.squeeze(0), encoder_outputs, each_input_size)
            context = torch.bmm(attn_weights, encoder_outputs.transpose(0,1))

        # Compute gru output.
        gru_input = torch.cat((last_palette, context.squeeze(1)), 1)
        gru_hidden = self.gru(gru_input, last_decoder_hidden)

        # Generate palette color.
        palette = self.out(gru_hidden.squeeze(0))
        return palette, context.unsqueeze(0), gru_hidden,

I don't have much experience in ML, so this is quite hard to debug. Please let me know what might be the issue.


问:
getting error on bsModel.hide() in ngOnDestroy while removing unsafe-eval from meta tag
I am using Angular 10 application . Due to the CSP issue, I need to remove unsafe-eval from script-src, now the issue appearing all the ngOnDestroy() having ngx bootstrap modal hide() and I am having issue on following code:

```<code>ngOnDestroy(): void {
     this.bsModalRef.hide();
  }
</code>```

the error is :

```<code>ERROR EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self' app.pendo.io data.pendo.io cdn.pendo.io pendo-io-static.storage.googleapis.com pendo-static * gateway.zscalertwo.net about:".
</code>```

Can anyone please suggest what I should insert in script src to remove above error. My full meta tag is as follow:

```<code> <meta http-equiv="Content-Security-Policy" content="style-src 'self' app.pendo.io cdn.pendo.io pendo-static * 'unsafe-inline'; script-src 'self' app.pendo.io data.pendo.io cdn.pendo.io pendo-io-static.storage.googleapis.com pendo-static * gateway.zscalertwo.net about: ;
  img-src * data: https: blob: ; frame-src https: http: 'self' *.walkme.com *.google-analytics.com *.data.pendo.io *.cdn.pendo.io *.pendo-io-static.storage.googleapis.com *.pendo-static *;
  "/>
</code>```

Body:
I am using Angular 10 application . Due to the CSP issue, I need to remove unsafe-eval from script-src, now the issue appearing all the ngOnDestroy() having ngx bootstrap modal hide() and I am having issue on following code:

ngOnDestroy(): void {
     this.bsModalRef.hide();
  }

the error is :

ERROR EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self' app.pendo.io data.pendo.io cdn.pendo.io pendo-io-static.storage.googleapis.com pendo-static * gateway.zscalertwo.net about:".

Can anyone please suggest what I should insert in script src to remove above error. My full meta tag is as follow:

 <meta http-equiv="Content-Security-Policy" content="style-src 'self' app.pendo.io cdn.pendo.io pendo-static * 'unsafe-inline'; script-src 'self' app.pendo.io data.pendo.io cdn.pendo.io pendo-io-static.storage.googleapis.com pendo-static * gateway.zscalertwo.net about: ;
  img-src * data: https: blob: ; frame-src https: http: 'self' *.walkme.com *.google-analytics.com *.data.pendo.io *.cdn.pendo.io *.pendo-io-static.storage.googleapis.com *.pendo-static *;
  "/>


问:
Apache Unomi ingestion performance bottleneck
We are using Apache Unomi v1.5.7. We are doing load testing to check how many events it can process.
We tried it with and without the custom plugin (written by us).
don't look promising to us.

Resources: 8 CPU / 16 GB RAM

Infra: Deployed on AWS through K8s

Elastic Search Cluster: 6 Nodes (3 Master and 3 Data)

We ran the concurrent threads equal to the no of concurrent users in the below table and repeated this process 60 times with an interval of 1 second.

Here are the results:
w/o Custom Plugin:

No. of concurrent users
Throughput
Latency(ms) - 90 percentile
Latency(ms) - 95 percentile
Latency(ms) - 99 percentile

50
44/sec
200
306
1502

100
82/sec
595
882
1177

200
135/sec
609
825
2562

With Custom Plugin:

No. of concurrent users
Throughput
Latency(ms) - 90 percentile
Latency(ms) - 95 percentile
Latency(ms) - 99 percentile

50
33/sec
688
1094
2538

100
51/sec
1315
1572
3236

200
52/sec
3785
4615
5997

Note: I can't share the exact elastic search mapping for obvious reasons but to give some idea, We have 2 array fields that are of nested type and ~10 more fields in the profile.

This test contains the cases where new profile are created, we haven't tested the case when existing profiles are updated.

What are the options that we can explore to improve the Unomi performance?

We have added enough resources to ensure it's not a resource issue.

We explored the properties defined in this file but properties like the number of threads don't seem to be affected at all.


问:
To delete multiple data from other tables do i have create delete file for every table?
I am stuck at deleting data from my table ! I am deleting data from the table but I if i have to delete rows from multiple rows from another table ! Do i have to create multiple delete files for every table ???

I have not tried any other theory because i am stuck here in this problem


问:
How do I make the input auto-write format using Regex (Javascript)?
I want to ask

So here I have an HTML input which I set as type 'Text'. Then here I want the user enters 10 numbers, which was originally '1234567890' will become '123-456-7890'. Then when the user enters the 11th number, it will add an automatic separator in the form of a semicolon (;), so it becomes '123-456-7890;1'

My question is how I do that using regex in javascript? and is there a way to also use a regex where only numbers and special chars (eg - , etc.) can be input (strings and chars cannot)?

```<code>var value = document.getElementById($parameters.InputId).value;

value=value.replaceAll(/[^0-9]/g,"");
value=value.replaceAll(",","")
value = value.replace(/ /g,"");
value = value.toString().split( /(?=(?:\d{3})+(?:\.|$))/g ).join( "," );
</code>```

previously I've used a regex like this, but not the way I want, when the user enters 10 numbers, which was originally '1234567890' will become '123-456-7890'. Then when the user enters the 11th number, it will add an automatic separator in the form of a semicolon (;), so it becomes '123-456-7890;1'

Body:
I want to ask

So here I have an HTML input which I set as type 'Text'. Then here I want the user enters 10 numbers, which was originally '1234567890' will become '123-456-7890'. Then when the user enters the 11th number, it will add an automatic separator in the form of a semicolon (;), so it becomes '123-456-7890;1'

My question is how I do that using regex in javascript? and is there a way to also use a regex where only numbers and special chars (eg - , etc.) can be input (strings and chars cannot)?

var value = document.getElementById($parameters.InputId).value;

value=value.replaceAll(/[^0-9]/g,"");
value=value.replaceAll(",","")
value = value.replace(/ /g,"");
value = value.toString().split( /(?=(?:\d{3})+(?:\.|$))/g ).join( "," );

previously I've used a regex like this, but not the way I want, when the user enters 10 numbers, which was originally '1234567890' will become '123-456-7890'. Then when the user enters the 11th number, it will add an automatic separator in the form of a semicolon (;), so it becomes '123-456-7890;1'


问:
Accessing Filtered Tableau Dashboards IDs with Python
I need to download filtered tableau dashboards images as PNG.I am  using Python and tableauserverclient library .

But i did not understand the filtering hirearchy and how to get filtered dashboards ID , if i can get their IDs rest of the process is simple but important step is accessing the filtered  dashboards and how can i access ID of them.


问:
Any advice to fix "Compilation error. Script could not be translated from: |B|for i = 0 to "
I'm new to coding and wrote a script to test how many times the breakout of highs and lows that were created in the Asia Session happened during the London Session. However, it does not seem to work, it gives me a "Compilation error. Script could not be translated from: |B|for i = 0"
Any advice or tips would be appreciated. cheers.

Here is the script:

```<code>// This pine script studies the last 365 days worth of data and uses the `timeframe.isintraday` and
// `timeframe.period` functions to identify the current timeframe and session. Time ranges are defined
// for the Asia, London, and New York sessions and the `highest` and `lowest` functions are used to
// identify the high and low from each session. The `barssince` function is used to determine if and
// when those highs and lows were broken in the London session.

study("Last 365 Days - High/Low Breakouts")

// Define time ranges for each session
asiaSession = time >= time("19:00") and time <= time("00:00")
londonSession = time >= time("02:00") and time <= time("05:00")
newYorkSession = time >= time("07:00") and time <= time("10:00")

// Use `timeframe.isintraday` and `timeframe.period` to identify the current session
asiaSessionActive = timeframe.isintraday and asiaSession
londonSessionActive = timeframe.isintraday and londonSession
newYorkSessionActive = timeframe.isintraday and newYorkSession

// Initialize variables for counting breakouts
asiaHighBreakout = 0
asiaLowBreakout = 0
highBrokenFirst = 0
lowBrokenFirst = 0

// Loop through the last 365 days worth of data
for i = 0 to 364
    date = timenow - i
    // Get the high and low for the Asia session
    asiaHigh = highest(high, date, asiaSession)
    asiaLow = lowest(low, date, asiaSession)

    // Check if the Asia high was broken in the London session
    if barssince(high > asiaHigh) > 0
        asiaHighBreakout := asiaHighBreakout + 1
    // Check if the Asia low was broken in the London session
    if barssince(low < asiaLow) > 0
        asiaLowBreakout := asiaLowBreakout + 1

    // Check if the Asia high was broken first, followed by the Asia low
    if asiaHighBreakout > 0 and asiaLowBreakout == 0
        // Count the breakout
        highBrokenFirst := highBrokenFirst + 1
    // Check if the Asia low was broken first, followed by the Asia high
    if asiaLowBreakout > 0 and asiaHighBreakout == 0
        // Count the breakout
        lowBrokenFirst := lowBrokenFirst + 1

// Create a box to display the results
box_set(
    text = "High Broken First: " + tostring(highBrokenFirst) + "\n" +
           "Low Broken First: " + tostring(lowBrokenFirst),
    color = color.white,
    location = location.bottom_left,
    title = "Breakout Results"
)

</code>```

main changes I made were:

Using the timeframe.isintraday and timeframe.period functions to determine the current session, rather than using time ranges.
Using the barssince function with the high and `low

Body:
I'm new to coding and wrote a script to test how many times the breakout of highs and lows that were created in the Asia Session happened during the London Session. However, it does not seem to work, it gives me a "Compilation error. Script could not be translated from: |B|for i = 0"
Any advice or tips would be appreciated. cheers.

Here is the script:

// This pine script studies the last 365 days worth of data and uses the `timeframe.isintraday` and
// `timeframe.period` functions to identify the current timeframe and session. Time ranges are defined
// for the Asia, London, and New York sessions and the `highest` and `lowest` functions are used to
// identify the high and low from each session. The `barssince` function is used to determine if and
// when those highs and lows were broken in the London session.

study("Last 365 Days - High/Low Breakouts")

// Define time ranges for each session
asiaSession = time >= time("19:00") and time <= time("00:00")
londonSession = time >= time("02:00") and time <= time("05:00")
newYorkSession = time >= time("07:00") and time <= time("10:00")

// Use `timeframe.isintraday` and `timeframe.period` to identify the current session
asiaSessionActive = timeframe.isintraday and asiaSession
londonSessionActive = timeframe.isintraday and londonSession
newYorkSessionActive = timeframe.isintraday and newYorkSession

// Initialize variables for counting breakouts
asiaHighBreakout = 0
asiaLowBreakout = 0
highBrokenFirst = 0
lowBrokenFirst = 0

// Loop through the last 365 days worth of data
for i = 0 to 364
    date = timenow - i
    // Get the high and low for the Asia session
    asiaHigh = highest(high, date, asiaSession)
    asiaLow = lowest(low, date, asiaSession)

    // Check if the Asia high was broken in the London session
    if barssince(high > asiaHigh) > 0
        asiaHighBreakout := asiaHighBreakout + 1
    // Check if the Asia low was broken in the London session
    if barssince(low < asiaLow) > 0
        asiaLowBreakout := asiaLowBreakout + 1

    // Check if the Asia high was broken first, followed by the Asia low
    if asiaHighBreakout > 0 and asiaLowBreakout == 0
        // Count the breakout
        highBrokenFirst := highBrokenFirst + 1
    // Check if the Asia low was broken first, followed by the Asia high
    if asiaLowBreakout > 0 and asiaHighBreakout == 0
        // Count the breakout
        lowBrokenFirst := lowBrokenFirst + 1

// Create a box to display the results
box_set(
    text = "High Broken First: " + tostring(highBrokenFirst) + "\n" +
           "Low Broken First: " + tostring(lowBrokenFirst),
    color = color.white,
    location = location.bottom_left,
    title = "Breakout Results"
)

main changes I made were:

Using the timeframe.isintraday and timeframe.period functions to determine the current session, rather than using time ranges.
Using the barssince function with the high and `low


问:
How to select a string between two & in oracle
O&103122&00:00:00&&          ,  &SECS&1&19.0000&&&          ,  &
&

10/01/2022 - 10/31/2022&TSIMM:TRUNK SIGNALING - ON NET Charge&&gid=2060155&
&10/01/2022 - 10/31/2022&TSIMM:TRUNK SIGNALING - ON NET Charge&&gid=2060155&

In the above Strings I need to select only below String in Oracle DB

SECS
TSIMM:TRUNK SIGNALING - ON NET Charge
TSIMM:TRUNK SIGNALING - ON NET Charge

Please help me on this Thanks...

TRIM(' '  &'   &')


问:
Jenkins multibranch tags view limit to only latest 10 tags
I have jenkins multibranch setup, with tag discovery trait. From the folder view, i have the Tags(n) view that currrently shows all tags ever pushed to that particular repo in git.

I tried the following dsl, which only works for branches for obvious reasons that branches can be deleted or become stale, but not tags (unless i delete the tags, which won't happen):

```<code>orphanedItemStrategy {
  defaultOrphanedItemStrategy {
    pruneDeadBranches(true)
    daysToKeepStr("7")
    numToKeepStr("10")
  }

  discardOldItems {
    daysToKeep(7)
    numToKeep(10)
  }
}
</code>```

I have combed through jenkins dsl and job config.xml, and i cannot find where to update in my dsl script or in config.xml to only show the latest 10 tags.

Body:
I have jenkins multibranch setup, with tag discovery trait. From the folder view, i have the Tags(n) view that currrently shows all tags ever pushed to that particular repo in git.

I tried the following dsl, which only works for branches for obvious reasons that branches can be deleted or become stale, but not tags (unless i delete the tags, which won't happen):

orphanedItemStrategy {
  defaultOrphanedItemStrategy {
    pruneDeadBranches(true)
    daysToKeepStr("7")
    numToKeepStr("10")
  }

  discardOldItems {
    daysToKeep(7)
    numToKeep(10)
  }
}

I have combed through jenkins dsl and job config.xml, and i cannot find where to update in my dsl script or in config.xml to only show the latest 10 tags.


问:
RSA3072_RSASSA-PSS RSASignaturePadding.Pss not work when use RSACryptoServiceProvider to signdata()
I have pair of RSA3072 public and private key.

i want use this private key to sign some date with  RSA3072_RSASSA-PSS （SHA256 PSS pading)
but  error is report in step: SignData
rsaP.SignData(date1, HashAlgorithmName.SHA256, RSASignaturePadding.Pss);

"System.Security.Cryptography.CryptographicException:“Specified padding mode is not valid for this algorithm.”"

ps: private and public key is generate use below code:

```<code>void GenerateKeys()
{
    using (var rsa = new RSACryptoServiceProvider(3072))
    {
        try
        {
            // 获取私钥和公钥。
            var publicKey = rsa.ToXmlString(false);
            var privateKey = rsa.ToXmlString(true);

            // 保存到磁盘
            File.WriteAllText(Path.Combine("C:\\Users\\pkean\\source\\repos\\ConsoleApp1\\ConsoleApp1", "publickey.xml"), publicKey);
            File.WriteAllText(Path.Combine("C:\\Users\\pkean\\source\\repos\\ConsoleApp1\\ConsoleApp1", "privateKey.xml"), privateKey);

        }
        finally
        {
            rsa.PersistKeyInCsp = false;
        }
    }
}
</code>```

below is my code:

```<code>byte\[\] content = new byte \[2\]{0x12,0x34} ;

string readoutprivateXmlKey;
readoutprivateXmlKey = File.ReadAllText(Path.Combine("C:\\Users\\pkean\\source\\repos\\ConsoleApp1\\ConsoleApp1", "privateKey.xml"));

SingData(readoutprivateXmlKey,content);

byte[] SignData(string privatekey, byte[] date1)
{
    RSACryptoServiceProvider rsaP = new RSACryptoServiceProvider(3072);
    rsaP.FromXmlString(privatekey);
    byte[] byteSign0 = rsaP.SignData(date1, "SHA256");
    byte[] byteSign1 = rsaP.SignData(date1, HashAlgorithmName.SHA256, RSASignaturePadding.Pss);
    byte[] byteSignusehash = rsaP.SignHash(sha256hash, HashAlgorithmName.SHA256, RSASignaturePadding.Pss);

    return byteSign0;
}
</code>```

try to change Pad with RSASignaturePadding.pkcs1, Test is OK.
but i need use RSA3072_RSASSA-PSS

Body:
I have pair of RSA3072 public and private key.

i want use this private key to sign some date with  RSA3072_RSASSA-PSS （SHA256 PSS pading)
but  error is report in step: SignData
rsaP.SignData(date1, HashAlgorithmName.SHA256, RSASignaturePadding.Pss);

"System.Security.Cryptography.CryptographicException:“Specified padding mode is not valid for this algorithm.”"

ps: private and public key is generate use below code:

void GenerateKeys()
{
    using (var rsa = new RSACryptoServiceProvider(3072))
    {
        try
        {
            // 获取私钥和公钥。
            var publicKey = rsa.ToXmlString(false);
            var privateKey = rsa.ToXmlString(true);

            // 保存到磁盘
            File.WriteAllText(Path.Combine("C:\\Users\\pkean\\source\\repos\\ConsoleApp1\\ConsoleApp1", "publickey.xml"), publicKey);
            File.WriteAllText(Path.Combine("C:\\Users\\pkean\\source\\repos\\ConsoleApp1\\ConsoleApp1", "privateKey.xml"), privateKey);

        }
        finally
        {
            rsa.PersistKeyInCsp = false;
        }
    }
}

below is my code:

byte\[\] content = new byte \[2\]{0x12,0x34} ;

string readoutprivateXmlKey;
readoutprivateXmlKey = File.ReadAllText(Path.Combine("C:\\Users\\pkean\\source\\repos\\ConsoleApp1\\ConsoleApp1", "privateKey.xml"));

SingData(readoutprivateXmlKey,content);

byte[] SignData(string privatekey, byte[] date1)
{
    RSACryptoServiceProvider rsaP = new RSACryptoServiceProvider(3072);
    rsaP.FromXmlString(privatekey);
    byte[] byteSign0 = rsaP.SignData(date1, "SHA256");
    byte[] byteSign1 = rsaP.SignData(date1, HashAlgorithmName.SHA256, RSASignaturePadding.Pss);
    byte[] byteSignusehash = rsaP.SignHash(sha256hash, HashAlgorithmName.SHA256, RSASignaturePadding.Pss);

    return byteSign0;
}

try to change Pad with RSASignaturePadding.pkcs1, Test is OK.
but i need use RSA3072_RSASSA-PSS


问:
How to use setPixel with HSV instead of RGB?
```<code>Bitmap bmap = new Bitmap(B2);

int width = bmap.Width;
int height = bmap.Height;

for (int y = 0; y < height; y++)
{
    for (int x = 0; x < width; x++)
    {
        Color c = bmap.GetPixel(x, y);
        float h, s, b;
        h = c.GetHue();
        s = c.GetSaturation();
        b = c.GetBrightness();
    }
}
</code>```

I wanted to filter out all the shades of yellow and then change it all to white. Then I have use HSB which makes it easier. Do I have to convert them back to RGB in order to use setPixel?

Body:
Bitmap bmap = new Bitmap(B2);

int width = bmap.Width;
int height = bmap.Height;

for (int y = 0; y < height; y++)
{
    for (int x = 0; x < width; x++)
    {
        Color c = bmap.GetPixel(x, y);
        float h, s, b;
        h = c.GetHue();
        s = c.GetSaturation();
        b = c.GetBrightness();
    }
}

I wanted to filter out all the shades of yellow and then change it all to white. Then I have use HSB which makes it easier. Do I have to convert them back to RGB in order to use setPixel?


问:
How to join multiple unrelated entities in JPA Criteria with ON condition?
How to join multiple unrelated entities in JPA Criteria with ON condition ?

```<code>        CriteriaBuilder cb = entityManager.getCriteriaBuilder();
        CriteriaQuery<College> cq = cb.createQuery(College.class);
        Root<College> colleges= cq.from(College.class)

        Join<College,Student> studentJoin = colleges.join(?,JoinType.LEFT) //How to
define on condition with column of both entities?(eg:college.studId=stud.studId)

</code>```

Query which i want to build in criteria : select * from college coll
left outer join student stud on  coll.stuId=stud.stuId

Body:
How to join multiple unrelated entities in JPA Criteria with ON condition ?

        CriteriaBuilder cb = entityManager.getCriteriaBuilder();
        CriteriaQuery<College> cq = cb.createQuery(College.class);
        Root<College> colleges= cq.from(College.class)

        Join<College,Student> studentJoin = colleges.join(?,JoinType.LEFT) //How to
define on condition with column of both entities?(eg:college.studId=stud.studId)

Query which i want to build in criteria : select * from college coll
left outer join student stud on  coll.stuId=stud.stuId


问:
Design patterns for input types with unions
Lets say I have an entity that has a type signature like this (using typescript syntax):

```<code>    type WordDocument = {
        name: string,
        lines: PossibleLineTypes[]
    }

    type PossibleLineTypes = {
        type: 'A',
        exclusiveToA: string
    } | {
        type: 'B',
        exclusiveToB: number
    }
</code>```

Im trying to structure an input type that will allow me to create a parent object in a single mutation which is proving to be tricky.

Option 1 - Use nullable values for any exclusive properties on the child type:

```<code>    // Graphql types
    type WordDocument {
        name: String!
        lines: [Line!]!
    }

    type Line {
        type: PossibleLineTypesEnum!
        exclusiveToA: String // nullable
        exclusiveToB: Number // nullable
    }
</code>```

This is what i’m doing at the moment - its far from ideal because it means I have to manually check the right properties have been defined per type/variant (and the actual type is much larger than my example). Its very annoying because I have input types for the above which I need to transform into service types with the correct pairing of properties which is meaning I cannot share the input types and the service method input types.

Option 2 - Separate the different types into different properties

```<code>    // Graphql types
    type WordDocument {
        name: String!
        linesA: [LineA!]!,
        linesB: [LineB!]!,
    }

    type LineA {
        exclusiveToA: String
    }

    type LineB {
        exclusiveToB: Number
    }
</code>```

My main issue with this is that I have a very nested document and separating each variant on each layer gets insane but also I lose the ability to keep the order of the lines added to the document without adding an order field to the line types.

Has anyone faced this? struggling to find the preferred pattern for this

Body:
Lets say I have an entity that has a type signature like this (using typescript syntax):

    type WordDocument = {
        name: string,
        lines: PossibleLineTypes[]
    }

    type PossibleLineTypes = {
        type: 'A',
        exclusiveToA: string
    } | {
        type: 'B',
        exclusiveToB: number
    }

Im trying to structure an input type that will allow me to create a parent object in a single mutation which is proving to be tricky.

Option 1 - Use nullable values for any exclusive properties on the child type:

    // Graphql types
    type WordDocument {
        name: String!
        lines: [Line!]!
    }

    type Line {
        type: PossibleLineTypesEnum!
        exclusiveToA: String // nullable
        exclusiveToB: Number // nullable
    }

This is what i’m doing at the moment - its far from ideal because it means I have to manually check the right properties have been defined per type/variant (and the actual type is much larger than my example). Its very annoying because I have input types for the above which I need to transform into service types with the correct pairing of properties which is meaning I cannot share the input types and the service method input types.

Option 2 - Separate the different types into different properties

    // Graphql types
    type WordDocument {
        name: String!
        linesA: [LineA!]!,
        linesB: [LineB!]!,
    }

    type LineA {
        exclusiveToA: String
    }

    type LineB {
        exclusiveToB: Number
    }

My main issue with this is that I have a very nested document and separating each variant on each layer gets insane but also I lose the ability to keep the order of the lines added to the document without adding an order field to the line types.

Has anyone faced this? struggling to find the preferred pattern for this


问:
'undefined symbol: SSLv2_client_method' error while installing ROS
I was following instructions for installing ROS Noetic as given on ROS wiki. When I ran the following command:

```<code>curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
</code>```

I got the following error:

```<code>curl: symbol lookup error: /home/aravindh/anaconda3/bin/../lib/libcurl.so.4: undefined symbol: SSLv2_client_method
gpg: no valid OpenPGP data found.
</code>```

Could you please let me know how to solve it? Thank you!

I am fairly new to Ubuntu. I tried searching for a solution online but could not find any.

Body:
I was following instructions for installing ROS Noetic as given on ROS wiki. When I ran the following command:

curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -

I got the following error:

curl: symbol lookup error: /home/aravindh/anaconda3/bin/../lib/libcurl.so.4: undefined symbol: SSLv2_client_method
gpg: no valid OpenPGP data found.

Could you please let me know how to solve it? Thank you!

I am fairly new to Ubuntu. I tried searching for a solution online but could not find any.


问:
How can i check if given string could be a valid path?
I need to check if given string could be a valid path. For example /home/mark/demo.txt, this path do not exists but it is a valid path for creating file. How can i check that? I tried pathlib module but it is just check if path is exist.


问:
Laggy navigation bar when size changed
I'm trying to create a navbar with a transition effect when the page is scrolled down using Javascript and Tailwindcss.

It works perfectly, but there is a slight lag in the transition effect (you'll notice it when you scroll back up). This problem also causes sections in main to halt and move. I am sharing my demo code below. You can also access the codepen link here so that you can edit it easily. Thank you in advance for all your support.

$(document).ready(function() {
  $(window).scroll(function() {
    if ($(window).scrollTop() > 0) {
      $('#header').addClass('sticky');
      $('#header').addClass('top-0');
      $('#header').addClass('shadow-xl');
      $('#navbar').removeClass('pb-8');
      $('#logo').removeClass('shadow-xl');
      $("#header").css({
        'transition': '1s'
      })
      $("#navbar").css({
        'transition': '1s'
      })
      $("#logo").css({
        'transition': '1s'
      })
    } else {
      $('#header').removeClass('shadow-xl');
      $('#header').removeClass('sticky');
      $('#header').removeClass('top-0');
      $('#navbar').addClass('pb-8');
      $('#logo').addClass('shadow-xl');
    }
  });
});```
<pre class="snippet-code-html lang-html prettyprint-override"><code><header id="header" class="sticky !top-0 !z-50 bg-white">
  <nav id="navbar" class="w-full pb-8 transition-all 2xl:px-5 max-2xl:px-5">
    <div class="container flex flex-wrap justify-center items-center mx-auto xl:space-x-20">

        <img src="https://picsum.photos/60" class="h-16">

      <div class="wd-mobile-dropdown flex items-center justify-center space-x-10 !w-auto">
        <ul class="flex items-center justify-center p-4 mx-auto mt-4 space-x-14 ml-20 ">
          <li class="mx-auto">
            Navbar
          </li>
          <li class="mx-auto">
            Navbar2
          </li>
          <li class="mx-auto">
            Navbar3
          </li>
          <li class="mx-auto">
            Navbar4
          </li>
        </ul>
      </div>
    </div>
  </nav>
</header>

<main>
  <section>
    <div class="grid grid-cols-2 justify-center items-center gap-10">

        <h5 class="mb-2 text-2xl text-white">Noteworthy technology acquisitions 2021</h5>
        <p class="text-white">Here are the biggest enterprise technology acquisitions of 2021 so far, in reverse chronological order.</p>

        <h5 class="mb-2 text-2xl text-white">Noteworthy technology acquisitions 2021</h5>
        <p class="text-white">Here are the biggest enterprise technology acquisitions of 2021 so far, in reverse chronological order.</p>

        <h5 class="mb-2 text-2xl text-white">Noteworthy technology acquisitions 2021</h5>
        <p class="text-white">Here are the biggest enterprise technology acquisitions of 2021 so far, in reverse chronological order.</p>

        <h5 class="mb-2 text-2xl text-white">Noteworthy technology acquisitions 2021</h5>
        <p class="text-white">Here are the biggest enterprise technology acquisitions of 2021 so far, in reverse chronological order.</p>

        <h5 class="mb-2 text-2xl text-white">Noteworthy technology acquisitions 2021</h5>
        <p class="text-white">Here are the biggest enterprise technology acquisitions of 2021 so far, in reverse chronological order.</p>

        <h5 class="mb-2 text-2xl text-white">Noteworthy technology acquisitions 2021</h5>
        <p class="text-white">Here are the biggest enterprise technology acquisitions of 2021 so far, in reverse chronological order.</p>

        <h5 class="mb-2 text-2xl text-white">Noteworthy technology acquisitions 2021</h5>
        <p class="text-white">Here are the biggest enterprise technology acquisitions of 2021 so far, in reverse chronological order.</p>

        <h5 class="mb-2 text-2xl text-white">Noteworthy technology acquisitions 2021</h5>
        <p class="text-white">Here are the biggest enterprise technology acquisitions of 2021 so far, in reverse chronological order.</p>

    </div>
  </section>
</main>

<script src="https://cdn.tailwindcss.com"></script>
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script></code>```

Title: Laggy navigation bar when size changed

Body:
I'm trying to create a navbar with a transition effect when the page is scrolled down using Javascript and Tailwindcss.

It works perfectly, but there is a slight lag in the transition effect (you'll notice it when you scroll back up). This problem also causes sections in main to halt and move. I am sharing my demo code below. You can also access the codepen link here so that you can edit it easily. Thank you in advance for all your support.

$(document).ready(function() {
  $(window).scroll(function() {
    if ($(window).scrollTop() > 0) {
      $('#header').addClass('sticky');
      $('#header').addClass('top-0');
      $('#header').addClass('shadow-xl');
      $('#navbar').removeClass('pb-8');
      $('#logo').removeClass('shadow-xl');
      $("#header").css({
        'transition': '1s'
      })
      $("#navbar").css({
        'transition': '1s'
      })
      $("#logo").css({
        'transition': '1s'
      })
    } else {
      $('#header').removeClass('shadow-xl');
      $('#header').removeClass('sticky');
      $('#header').removeClass('top-0');
      $('#navbar').addClass('pb-8');
      $('#logo').addClass('shadow-xl');
    }
  });
});

            Navbar

            Navbar2

            Navbar3

            Navbar4

Noteworthy technology acquisitions 2021

Here are the biggest enterprise technology acquisitions of 2021 so far, in reverse chronological order.

Noteworthy technology acquisitions 2021

Here are the biggest enterprise technology acquisitions of 2021 so far, in reverse chronological order.

Noteworthy technology acquisitions 2021

Here are the biggest enterprise technology acquisitions of 2021 so far, in reverse chronological order.

Noteworthy technology acquisitions 2021

Here are the biggest enterprise technology acquisitions of 2021 so far, in reverse chronological order.

Noteworthy technology acquisitions 2021

Here are the biggest enterprise technology acquisitions of 2021 so far, in reverse chronological order.

Noteworthy technology acquisitions 2021

Here are the biggest enterprise technology acquisitions of 2021 so far, in reverse chronological order.

Noteworthy technology acquisitions 2021

Here are the biggest enterprise technology acquisitions of 2021 so far, in reverse chronological order.

Noteworthy technology acquisitions 2021

Here are the biggest enterprise technology acquisitions of 2021 so far, in reverse chronological order.


问:
Configuring CLion to grant CMake root privileges over WSL
Trying to use the Install script in RocksDB's CMake, getting this error:

```<code>CMake Error at cmake_install.cmake:46 (file):
  file INSTALL cannot make directory "/usr/include/rocksdb": Permission
  denied.
</code>```

which generally makes sense, because no one should just write to /usr/include/. The question is though, how do I enable CMake launched from CLion to deploy these files?

CLion on Windows 10, WSL (Ubuntu).

Body:
Trying to use the Install script in RocksDB's CMake, getting this error:

CMake Error at cmake_install.cmake:46 (file):
  file INSTALL cannot make directory "/usr/include/rocksdb": Permission
  denied.

which generally makes sense, because no one should just write to /usr/include/. The question is though, how do I enable CMake launched from CLion to deploy these files?

CLion on Windows 10, WSL (Ubuntu).


问:
I can't get acccess to Tuya cloud API
I have been struggling with connecting to Tuya cloud API. Testing in postman gives me this result:
enter image description here

The things I have done:

I conntected the device to Tuya developer account.

I configured my developer account and have acccess to tuya IOT service.

I set up testing enviroment as shown in this link: https://developer.tuya.com/en/docs/iot/set-up-postman-environment?id=Ka7o385w1svns

I made sure that i have turned off the cloud IP Allow list.

Yet still that error occurs although when I send a request through API Explorer on the tuya site everything works correctly. Can someone know the origin of this error?

Title: I can't get acccess to Tuya cloud API


问:
How to save large files in HDFS and links in HBase?
I have read that it is recommended to save files more than 10MB in HDFS and store path of that file in HBase. Is there any recommended approach of doing this. Is there any specific configurations or tools like Apache Phoenix that can help us achieve this?

Or all of the saving data in HDFS and then saving the location in HBase then reading the path from HBase then reading data from HDFS with the location all be done manually from the client?


问:
How to write parent item in Fluent UI groupedList component?
I am using Fluent UI. I need groupedList component, but there is something I couldn't fix. Parents are always group, but I want to aadd few items as parents just like the picture below.

I saw a github issue below, but seems it wasn't fixed. Is there any way to achive what I want?

https://github.com/microsoft/fluentui/issues/10971


问:
loading Stripe with React Stripe js fails with CORP error
I am working on a react application that is using React Stripe package to connect to Stripe.

I am trying to use Stripe PaymentElement to gather card information. Everything works fine in development mode but when I build the code for production and I deploy it on a test server I get this errors in the browser console:

The resource at “https://js.stripe.com/v3” was blocked due to its Cross-Origin-Resource-Policy header (or lack thereof). See https://developer.mozilla.org/docs/Web/HTTP/Cross-Origin_Resource_Policy_(CORP)#

How can I fix this error?