问:
SSH with Jenkins CLI
When I ssh (I am using Windows 10 with OpenSSH) into jenkins-cli.jar I get the following error:

```<code>Jan 05, 2023 12:48:06 PM io.jenkins.cli.shaded.org.apache.sshd.common.util.security.AbstractSecurityProviderRegistrar getOrCreateProvider
INFO: getOrCreateProvider(EdDSA) created instance of io.jenkins.cli.shaded.net.i2p.crypto.eddsa.EdDSASecurityProvider
Jan 05, 2023 12:48:07 PM io.jenkins.cli.shaded.org.apache.sshd.common.io.DefaultIoServiceFactoryFactory getIoServiceProvider
INFO: No detected/configured IoServiceFactoryFactory; using Nio2ServiceFactoryFactory
io.jenkins.cli.shaded.org.apache.sshd.common.RuntimeSshException: Failed to get the session.
        at io.jenkins.cli.shaded.org.apache.sshd.client.future.DefaultConnectFuture.getSession(DefaultConnectFuture.java:59)
        at io.jenkins.cli.shaded.org.apache.sshd.client.future.DefaultConnectFuture.getSession(DefaultConnectFuture.java:34)
        at hudson.cli.SSHCLI.sshConnection(SSHCLI.java:102)
        at hudson.cli.CLI._main(CLI.java:294)
        at hudson.cli.CLI.main(CLI.java:103)
Caused by: java.io.IOException: The semaphore timeout period has expired
        at java.base/sun.nio.ch.Iocp.translateErrorToIOException(Iocp.java:299)
        at java.base/sun.nio.ch.Iocp$EventHandlerTask.run(Iocp.java:389)
        at java.base/java.lang.Thread.run(Thread.java:1589)
</code>```

After trying:

```<code>java -jar jenkins-cli.jar -s SERVER:8080/ -ssh -user MY_USERNAME
</code>```

What is the cause of this error, so that I can fix it and SSH into my jenkins instance?

Title: SSH with Jenkins CLI

Body:
When I ssh (I am using Windows 10 with OpenSSH) into jenkins-cli.jar I get the following error:

Jan 05, 2023 12:48:06 PM io.jenkins.cli.shaded.org.apache.sshd.common.util.security.AbstractSecurityProviderRegistrar getOrCreateProvider
INFO: getOrCreateProvider(EdDSA) created instance of io.jenkins.cli.shaded.net.i2p.crypto.eddsa.EdDSASecurityProvider
Jan 05, 2023 12:48:07 PM io.jenkins.cli.shaded.org.apache.sshd.common.io.DefaultIoServiceFactoryFactory getIoServiceProvider
INFO: No detected/configured IoServiceFactoryFactory; using Nio2ServiceFactoryFactory
io.jenkins.cli.shaded.org.apache.sshd.common.RuntimeSshException: Failed to get the session.
        at io.jenkins.cli.shaded.org.apache.sshd.client.future.DefaultConnectFuture.getSession(DefaultConnectFuture.java:59)
        at io.jenkins.cli.shaded.org.apache.sshd.client.future.DefaultConnectFuture.getSession(DefaultConnectFuture.java:34)
        at hudson.cli.SSHCLI.sshConnection(SSHCLI.java:102)
        at hudson.cli.CLI._main(CLI.java:294)
        at hudson.cli.CLI.main(CLI.java:103)
Caused by: java.io.IOException: The semaphore timeout period has expired
        at java.base/sun.nio.ch.Iocp.translateErrorToIOException(Iocp.java:299)
        at java.base/sun.nio.ch.Iocp$EventHandlerTask.run(Iocp.java:389)
        at java.base/java.lang.Thread.run(Thread.java:1589)

After trying:

java -jar jenkins-cli.jar -s SERVER:8080/ -ssh -user MY_USERNAME

What is the cause of this error, so that I can fix it and SSH into my jenkins instance?


来源: stackexchange

问:
panache query - optional join on other table
Currently using Panache version 2.12.

I would like to perform a query which optionally joins on another table if a parameter (in this case username) is provided.

I have this entity...

```<code>@Entity
@Table(name = "Record")
public class Record implements Serializable
{
 @Id
 @Column(name = "id")
 @Type(type = "uuid-char")
 private UUID id;

 @Column(name = "account")
 private String account;
}
</code>```

I have a DB view, RecordAccount, which has account and username columns. Since I'm implementing PanacheRepositoryBase, how do I best create a PanacheQuery to retrieve Records for a given username?

ContentLicense: CC BY-SA 4.0

Body:
Currently using Panache version 2.12.

I would like to perform a query which optionally joins on another table if a parameter (in this case username) is provided.

I have this entity...

@Entity
@Table(name = "Record")
public class Record implements Serializable
{
 @Id
 @Column(name = "id")
 @Type(type = "uuid-char")
 private UUID id;

 @Column(name = "account")
 private String account;
}

I have a DB view, RecordAccount, which has account and username columns. Since I'm implementing PanacheRepositoryBase, how do I best create a PanacheQuery to retrieve Records for a given username?


问:
Transform "start-end" datasets to panel dataset in r
I have an event datasets covering goverment projects in different sectors looking like this:

```<code>project_id <- c(1,2,3,4)
district_id <- c(5,6,7,8)
start_year <- c(2000, 2011, 2006, 2004)
end_year   <- c(2002, 2020, 20010, 2015)
sector     <- c("education", "infrastructure", "education", "infrastructure")

 project_id district_id start_year end_year         sector
1          1           5       2000     2002      education
2          2           6       2011     2020 infrastructure
3          3           7       2006    20010      education
4          4           8       2004     2015 infrastructure
</code>```

Is there a way to convert this to a panel data set with district-year as the unit of analysis? It would be important that the values from other columns are transferred to the "new rows" ending in:

```<code> project_id district_id year    sector
1          3           7 2006 education
2          3           7 2007 education
3          3           7 2008 education
4          3           7 2009 education
5          3           7 2010 education
</code>```

I am looking for an answer easily transferable to bigger datasets

Body:
I have an event datasets covering goverment projects in different sectors looking like this:

project_id <- c(1,2,3,4)
district_id <- c(5,6,7,8)
start_year <- c(2000, 2011, 2006, 2004)
end_year   <- c(2002, 2020, 20010, 2015)
sector     <- c("education", "infrastructure", "education", "infrastructure")

 project_id district_id start_year end_year         sector
1          1           5       2000     2002      education
2          2           6       2011     2020 infrastructure
3          3           7       2006    20010      education
4          4           8       2004     2015 infrastructure

Is there a way to convert this to a panel data set with district-year as the unit of analysis? It would be important that the values from other columns are transferred to the "new rows" ending in:

 project_id district_id year    sector
1          3           7 2006 education
2          3           7 2007 education
3          3           7 2008 education
4          3           7 2009 education
5          3           7 2010 education

I am looking for an answer easily transferable to bigger datasets


问:
How to add 'Roboto Mono' font in Tkinter
I'm using Tkinter-Designer to convert a Figma frame to a python code, the frame uses the 'RobotoMono' font family, which does not seem to be available in Tkinter when I looked it up. and the font get's ignored when I run the script.

I downloaded the Roboto Mono font family from Google and tried the answers suggested here and here but it did not work (I'm using Windows 11).

Here is the code:

```<code>from pathlib import Path

# from tkinter import *
# Explicit imports to satisfy Flake8
from tkinter import Tk, Canvas, Entry, Text, Button, PhotoImage

OUTPUT_PATH = Path(__file__).parent
ASSETS_PATH = OUTPUT_PATH / Path(r"Z:\python\projects\test\code\gui\tmp\TkinterDesigner\build\assets\frame0")

def relative_to_assets(path: str) -> Path:
    return ASSETS_PATH / Path(path)

window = Tk()

window.geometry("1056x724")
window.configure(bg = "#FFFFFF")

canvas = Canvas(
    window,
    bg = "#FFFFFF",
    height = 724,
    width = 1056,
    bd = 0,
    highlightthickness = 0,
    relief = "ridge"
)

canvas.place(x = 0, y = 0)
canvas.create_rectangle(
    56.0,
    68.0,
    954.0,
    673.0,
    fill="#F2F2F2",
    outline="")

canvas.create_rectangle(
    56.0,
    68.0,
    285.0,
    673.0,
    fill="#D4D3D3",
    outline="")

button_image_1 = PhotoImage(
    file=relative_to_assets("button_1.png"))
button_1 = Button(
    image=button_image_1,
    borderwidth=0,
    highlightthickness=0,
    command=lambda: print("button_1 clicked"),
    relief="flat"
)
button_1.place(
    x=56.0,
    y=348.0,
    width=229.0,
    height=37.0
)

button_image_2 = PhotoImage(
    file=relative_to_assets("button_2.png"))
button_2 = Button(
    image=button_image_2,
    borderwidth=0,
    highlightthickness=0,
    command=lambda: print("button_2 clicked"),
    relief="flat"
)
button_2.place(
    x=56.0,
    y=312.0,
    width=229.0,
    height=37.0
)

button_image_3 = PhotoImage(
    file=relative_to_assets("button_3.png"))
button_3 = Button(
    image=button_image_3,
    borderwidth=0,
    highlightthickness=0,
    command=lambda: print("button_3 clicked"),
    relief="flat"
)
button_3.place(
    x=56.0,
    y=274.0,
    width=229.0,
    height=37.0
)

button_image_4 = PhotoImage(
    file=relative_to_assets("button_4.png"))
button_4 = Button(
    image=button_image_4,
    borderwidth=0,
    highlightthickness=0,
    command=lambda: print("button_4 clicked"),
    relief="flat"
)
button_4.place(
    x=56.0,
    y=239.0,
    width=229.0,
    height=36.0
)

button_image_5 = PhotoImage(
    file=relative_to_assets("button_5.png"))
button_5 = Button(
    image=button_image_5,
    borderwidth=0,
    highlightthickness=0,
    command=lambda: print("button_5 clicked"),
    relief="flat"
)
button_5.place(
    x=56.0,
    y=201.0,
    width=229.0,
    height=37.0
)

image_image_1 = PhotoImage(
    file=relative_to_assets("image_1.png"))
image_1 = canvas.create_image(
    617.0,
    300.0,
    image=image_image_1
)

canvas.create_text(
    706.0,
    574.0,
    anchor="nw",
    text="         -Jim Rohn",
    fill="#000000",
    font=("RobotoMono Regular", 14 * -1)
)

canvas.create_text(
    433.0,
    500.0,
    anchor="nw",
    text="“Reading is essential for those who seek to rise above the ordinary.” ",
    fill="#000000",
    font=("RobotoMono Regular", 14 * -1)
)

canvas.create_text(
    84.0,
    100.0,
    anchor="nw",
    text="Hello Mahmoud!",
    fill="#000000",
    font=("RobotoMono Bold", 18 * -1)
)
window.resizable(False, False)
window.mainloop()
</code>```

Body:
I'm using Tkinter-Designer to convert a Figma frame to a python code, the frame uses the 'RobotoMono' font family, which does not seem to be available in Tkinter when I looked it up. and the font get's ignored when I run the script.

I downloaded the Roboto Mono font family from Google and tried the answers suggested here and here but it did not work (I'm using Windows 11).

Here is the code:

from pathlib import Path

# from tkinter import *
# Explicit imports to satisfy Flake8
from tkinter import Tk, Canvas, Entry, Text, Button, PhotoImage

OUTPUT_PATH = Path(__file__).parent
ASSETS_PATH = OUTPUT_PATH / Path(r"Z:\python\projects\test\code\gui\tmp\TkinterDesigner\build\assets\frame0")

def relative_to_assets(path: str) -> Path:
    return ASSETS_PATH / Path(path)

window = Tk()

window.geometry("1056x724")
window.configure(bg = "#FFFFFF")

canvas = Canvas(
    window,
    bg = "#FFFFFF",
    height = 724,
    width = 1056,
    bd = 0,
    highlightthickness = 0,
    relief = "ridge"
)

canvas.place(x = 0, y = 0)
canvas.create_rectangle(
    56.0,
    68.0,
    954.0,
    673.0,
    fill="#F2F2F2",
    outline="")

canvas.create_rectangle(
    56.0,
    68.0,
    285.0,
    673.0,
    fill="#D4D3D3",
    outline="")

button_image_1 = PhotoImage(
    file=relative_to_assets("button_1.png"))
button_1 = Button(
    image=button_image_1,
    borderwidth=0,
    highlightthickness=0,
    command=lambda: print("button_1 clicked"),
    relief="flat"
)
button_1.place(
    x=56.0,
    y=348.0,
    width=229.0,
    height=37.0
)

button_image_2 = PhotoImage(
    file=relative_to_assets("button_2.png"))
button_2 = Button(
    image=button_image_2,
    borderwidth=0,
    highlightthickness=0,
    command=lambda: print("button_2 clicked"),
    relief="flat"
)
button_2.place(
    x=56.0,
    y=312.0,
    width=229.0,
    height=37.0
)

button_image_3 = PhotoImage(
    file=relative_to_assets("button_3.png"))
button_3 = Button(
    image=button_image_3,
    borderwidth=0,
    highlightthickness=0,
    command=lambda: print("button_3 clicked"),
    relief="flat"
)
button_3.place(
    x=56.0,
    y=274.0,
    width=229.0,
    height=37.0
)

button_image_4 = PhotoImage(
    file=relative_to_assets("button_4.png"))
button_4 = Button(
    image=button_image_4,
    borderwidth=0,
    highlightthickness=0,
    command=lambda: print("button_4 clicked"),
    relief="flat"
)
button_4.place(
    x=56.0,
    y=239.0,
    width=229.0,
    height=36.0
)

button_image_5 = PhotoImage(
    file=relative_to_assets("button_5.png"))
button_5 = Button(
    image=button_image_5,
    borderwidth=0,
    highlightthickness=0,
    command=lambda: print("button_5 clicked"),
    relief="flat"
)
button_5.place(
    x=56.0,
    y=201.0,
    width=229.0,
    height=37.0
)

image_image_1 = PhotoImage(
    file=relative_to_assets("image_1.png"))
image_1 = canvas.create_image(
    617.0,
    300.0,
    image=image_image_1
)

canvas.create_text(
    706.0,
    574.0,
    anchor="nw",
    text="         -Jim Rohn",
    fill="#000000",
    font=("RobotoMono Regular", 14 * -1)
)

canvas.create_text(
    433.0,
    500.0,
    anchor="nw",
    text="“Reading is essential for those who seek to rise above the ordinary.” ",
    fill="#000000",
    font=("RobotoMono Regular", 14 * -1)
)

canvas.create_text(
    84.0,
    100.0,
    anchor="nw",
    text="Hello Mahmoud!",
    fill="#000000",
    font=("RobotoMono Bold", 18 * -1)
)
window.resizable(False, False)
window.mainloop()


问:
Unable to access 'https://github.com/user-name/repo-name.git/': The requested URL returned error: 403
Whenever I try to:

push,

pull,

clone

it gives me this error:

```<code>permission denied :unable to access 'https://github.com/Sherif-nasser/mqtttest.git/': The requested URL returned error: 403
</code>```

Things I have tried to solve the issue:

1 - change and make sure the remote is right

2 - using personal access token from developer settings when asking for password

3 - trying to enter the password at password level

4 - updated the git on my ubuntu to the newer version 2.39

nothing of the above methods worked and till now still getting the same error 403.

I would be glad if there is an engineer could help be with that.

Body:
Whenever I try to:

push,

pull,

clone

it gives me this error:

permission denied :unable to access 'https://github.com/Sherif-nasser/mqtttest.git/': The requested URL returned error: 403

Things I have tried to solve the issue:

1 - change and make sure the remote is right

2 - using personal access token from developer settings when asking for password

3 - trying to enter the password at password level

4 - updated the git on my ubuntu to the newer version 2.39

nothing of the above methods worked and till now still getting the same error 403.

I would be glad if there is an engineer could help be with that.


问:
Create docker file with a sql server and .NET SDK
I would like to run my C# integration tests in a Docker environment. It is a .NET Core 7.0 test project. For the integration tests to be useful it needs a MS SQL Server. For this purpose the following docker image is available: SQL Server. I want to copy my test project into the same Docker container and run it there. For this I need .NET Core so that I can run "dotnet test". What is the best way to achieve this?

I have also not been able to merge the docker image from SQL Server with the one for .NET SDK:

Can I build the test project and then copy it to the Docker container from SQL Server and then run it (if so how?) or can I install .NET SDK on the Docker container from SQL Server?

Here is my current dockerfile:

```<code>FROM mcr.microsoft.com/mssql/server:2019-latest AS final

WORKDIR /app

USER root
RUN apt-get install -y --no-install-recommends \
       wget \
       ca-certificates \
    \
    # Install Microsoft package feed
    && wget -q https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb \
    && dpkg -i packages-microsoft-prod.deb \
    && rm packages-microsoft-prod.deb \
    \
    # Install .NET
    && apt-get update \
    && apt-get install -y --no-install-recommends \
        dotnet-runtime-7.0 \
    \
    # Cleanup
    && rm -rf /var/lib/apt/lists/*
RUN ((/opt/mssql/bin/sqlservr --accept-eula & ) | grep -q "Service Broker manager has started")

WORKDIR /app
COPY . /app
</code>```

Body:
I would like to run my C# integration tests in a Docker environment. It is a .NET Core 7.0 test project. For the integration tests to be useful it needs a MS SQL Server. For this purpose the following docker image is available: SQL Server. I want to copy my test project into the same Docker container and run it there. For this I need .NET Core so that I can run "dotnet test". What is the best way to achieve this?

I have also not been able to merge the docker image from SQL Server with the one for .NET SDK:

Can I build the test project and then copy it to the Docker container from SQL Server and then run it (if so how?) or can I install .NET SDK on the Docker container from SQL Server?

Here is my current dockerfile:

FROM mcr.microsoft.com/mssql/server:2019-latest AS final

WORKDIR /app

USER root
RUN apt-get install -y --no-install-recommends \
       wget \
       ca-certificates \
    \
    # Install Microsoft package feed
    && wget -q https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb \
    && dpkg -i packages-microsoft-prod.deb \
    && rm packages-microsoft-prod.deb \
    \
    # Install .NET
    && apt-get update \
    && apt-get install -y --no-install-recommends \
        dotnet-runtime-7.0 \
    \
    # Cleanup
    && rm -rf /var/lib/apt/lists/*
RUN ((/opt/mssql/bin/sqlservr --accept-eula & ) | grep -q "Service Broker manager has started")

WORKDIR /app
COPY . /app


问:
Feign client space in url
I use Feign client to call 3rd party rest services.

The url looks like: https://dev.azure.com/{organization}/{project}

Since we changed our project name to a string which contains spaces, I'm getting http 400 Bad Request as response.

```<code>@FeignClient(value = "azure", url = "https://dev.azure.com/Organization/Project%20Name/_apis/wit/")
public interface AzureFeignClient {

    @GetMapping(value = "/workitems/{id}?api-version=7.0")
    ResponseEntity<WorkItem> getWorkitemById(@PathVariable("id") int id);
</code>```

Pom.xml:

```<code>    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.7.5</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>
    <properties>
        <java.version>1.8</java.version>
        <spring-cloud.version>2021.0.5</spring-cloud.version>
    </properties>
    ....
    <dependencies>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-openfeign</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>
    </dependencies>
    .....
    <dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-dependencies</artifactId>
        <version>${spring-cloud.version}</version>
        <type>pom</type>
        <scope>import</scope>
    </dependency>

</code>```

As you can see from the example I've encoded the spaces as %20 in the FeignClient value argument but it still not working. Any idea how to fix it?

Title: Feign client space in url

Body:
I use Feign client to call 3rd party rest services.

The url looks like: https://dev.azure.com/{organization}/{project}

Since we changed our project name to a string which contains spaces, I'm getting http 400 Bad Request as response.

@FeignClient(value = "azure", url = "https://dev.azure.com/Organization/Project%20Name/_apis/wit/")
public interface AzureFeignClient {

    @GetMapping(value = "/workitems/{id}?api-version=7.0")
    ResponseEntity<WorkItem> getWorkitemById(@PathVariable("id") int id);

Pom.xml:

    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.7.5</version>
        <relativePath/>
    </parent>
    <properties>
        <java.version>1.8</java.version>
        <spring-cloud.version>2021.0.5</spring-cloud.version>
    </properties>
    ....
    <dependencies>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-openfeign</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>
    </dependencies>
    .....
    <dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-dependencies</artifactId>
        <version>${spring-cloud.version}</version>
        <type>pom</type>
        <scope>import</scope>
    </dependency>

As you can see from the example I've encoded the spaces as %20 in the FeignClient value argument but it still not working. Any idea how to fix it?


问:
How to configure expo to allow password managers to associate an app to a web domain
I am trying to get password managers to provide items that correspond to our web domain. It works fine for iOS by having the following configuration

```<code>"associatedDomains": [
    "webcredentials:my.domain.com"
],
</code>```

in the app.json and providing a the file /.well-known/apple-app-site-association.json on the web domain.  We have tried to provide an /.well-known/assetlinks.json file for android with the following content:

```<code>[
    {
        "relation": ["delegate_permission/common.get_login_creds"],
        "target": {
            "namespace": "web",
            "site": "https://my.domain.com"
        }
    },
    {
        "relation": ["delegate_permission/common.get_login_creds"],
        "target": {
            "namespace": "android_app",
            "package_name": "com.domain.my",
            "sha256_cert_fingerprints": ["..."]
        }
    }
]
</code>```

and add an intent filter like

```<code>           "intentFilters": [
                {
                    "action": "VIEW",
                    "autoVerify": true,
                    "data": [
                        {
                            "scheme": "https",
                            "host": "my.domain.com"
                        }
                    ],
                    "category": ["DEFAULT", "BROWSABLE"]
                }
            ]
</code>```

to the app.json configuration. However, it is not working on android. Anyone has experience with configuring that for android? Help would be much appreciated.

Body:
I am trying to get password managers to provide items that correspond to our web domain. It works fine for iOS by having the following configuration

"associatedDomains": [
    "webcredentials:my.domain.com"
],

in the app.json and providing a the file /.well-known/apple-app-site-association.json on the web domain.  We have tried to provide an /.well-known/assetlinks.json file for android with the following content:

[
    {
        "relation": ["delegate_permission/common.get_login_creds"],
        "target": {
            "namespace": "web",
            "site": "https://my.domain.com"
        }
    },
    {
        "relation": ["delegate_permission/common.get_login_creds"],
        "target": {
            "namespace": "android_app",
            "package_name": "com.domain.my",
            "sha256_cert_fingerprints": ["..."]
        }
    }
]

and add an intent filter like

           "intentFilters": [
                {
                    "action": "VIEW",
                    "autoVerify": true,
                    "data": [
                        {
                            "scheme": "https",
                            "host": "my.domain.com"
                        }
                    ],
                    "category": ["DEFAULT", "BROWSABLE"]
                }
            ]

to the app.json configuration. However, it is not working on android. Anyone has experience with configuring that for android? Help would be much appreciated.


问:
Does https://github.com/advisories has formal API, ideally Java SDK
https://github.com/advisories provides great DB of vulnerable packages. I am wondering if this DB has formal external API/SDK?

Ideally I need do something like

```<code>   githubAdvisories.check('npm','json5','1.2.2')
</code>```

Body:
https://github.com/advisories provides great DB of vulnerable packages. I am wondering if this DB has formal external API/SDK?

Ideally I need do something like

   githubAdvisories.check('npm','json5','1.2.2')


问:
Disabling chrome extension unless it's on a certian url
I am developing a chrome extension and am new to chrome extension developing and I am stuck.
I want my extension to be disabled for use unless it's on a certain url, for example stackoverflow.com.
I am not using content_script or background for this extension. It's a basic extension so that once popup.html shows a button is shown and javascript functionality is taking place. How can I disable this extension? thanks

I tried putting "matches" in action tab in the manifest.json. Also, I tried "host_permissions" in the manifest.json.


问:
Multiprocess Pool is Running but no result is coming
I am Using Big-Fish Library and trying to run parallel the tiff files with Multiprocessing .pool but The code is running for a long time but no result is coming out

```<code>import os
import numpy as np
import bigfish
import bigfish.stack as stack
import bigfish.detection as detection
import bigfish.multistack as multistack
import bigfish.plot as plot
import time
import bigfish
import psutil
import pandas as pd
from multiprocessing import Pool

folder = 'path'
def process_tiff(file):
  # Load the TIFF file using BigFish
  rna = stack.read_image(file)
  spots, threshold = detection.detect_spots(
        images=rna,
        return_threshold=True,
        voxel_size=(300, 103, 103),
        spot_radius=(350, 150, 150))
  df = pd.DataFrame(spots, columns=["z", "y", "x"])
  csv_file = file.replace('.tiff', '.csv')
  a= df.to_csv(folder+csv_file, index=False)
  print(f'done {a}')

file =[f for f in os.listdir(folder) if f.endswith('.tiff')]
def main():
    p = Pool(12)
    p.map(process_tiff, file)

if __name__ == '__main__':
    main()
</code>```

I am expecting the code should run parallely

Body:
I am Using Big-Fish Library and trying to run parallel the tiff files with Multiprocessing .pool but The code is running for a long time but no result is coming out

import os
import numpy as np
import bigfish
import bigfish.stack as stack
import bigfish.detection as detection
import bigfish.multistack as multistack
import bigfish.plot as plot
import time
import bigfish
import psutil
import pandas as pd
from multiprocessing import Pool

folder = 'path'
def process_tiff(file):
  # Load the TIFF file using BigFish
  rna = stack.read_image(file)
  spots, threshold = detection.detect_spots(
        images=rna,
        return_threshold=True,
        voxel_size=(300, 103, 103),
        spot_radius=(350, 150, 150))
  df = pd.DataFrame(spots, columns=["z", "y", "x"])
  csv_file = file.replace('.tiff', '.csv')
  a= df.to_csv(folder+csv_file, index=False)
  print(f'done {a}')

file =[f for f in os.listdir(folder) if f.endswith('.tiff')]
def main():
    p = Pool(12)
    p.map(process_tiff, file)

if __name__ == '__main__':
    main()

I am expecting the code should run parallely


问:
Nextjs build uses different modules for html and js files
I have a JavaScript component library (mylib) that support both cjs (commonjs) and mjs (esm). If we check the node_modules/mylib there will be 2 folders cjs/ and mjs/. And the package.json has conditional export to use between cjs and mjs according to the project settings.

```<code>"exports": {
   "import": "./lib/mjs/index.js",  // projects with module = esm
   "require": "./lib/cjs/index.js", // projects with module = cjs
 },
</code>```

mylib has a component Button. In order to debug i have updated the mylib/cjs/Button.js and mylib/mjs/Button.js file so that cjs/Button render "CJS" always and mjs/Button render "MJS" always

Now I am trying to use mylib/Button inside a nextjs project. So ive installed mylib as a dependancy. When i build the project, the nextjs build the html file with the mylib/cjs/Button and build the JavaScript files with mylib/mjs/Button. This is causing hydration issue.
See the console.log from the terminal and browser console.

Body:
I have a JavaScript component library (mylib) that support both cjs (commonjs) and mjs (esm). If we check the node_modules/mylib there will be 2 folders cjs/ and mjs/. And the package.json has conditional export to use between cjs and mjs according to the project settings.

"exports": {
   "import": "./lib/mjs/index.js",  // projects with module = esm
   "require": "./lib/cjs/index.js", // projects with module = cjs
 },

mylib has a component Button. In order to debug i have updated the mylib/cjs/Button.js and mylib/mjs/Button.js file so that cjs/Button render "CJS" always and mjs/Button render "MJS" always

Now I am trying to use mylib/Button inside a nextjs project. So ive installed mylib as a dependancy. When i build the project, the nextjs build the html file with the mylib/cjs/Button and build the JavaScript files with mylib/mjs/Button. This is causing hydration issue.
See the console.log from the terminal and browser console.


问:
Why does entityManager.flush() not write to the database here despite local transaction scope ending?
I understand that flush() per se does not trigger an actual commit, which depends on how transaction management is used. However, i have a case where i really do not understand why it doesn't happen until the very end of the program, rather than step wise in between as it is programmed. I have a quarkus project with hibernate and i am currently writing an integration test for a class (not a resource) to see why it is not paging database writes. Here is the code simplified as much as possible:

The test case (everything important happens in the jobRunner.runJob() method):

```<code>// Note this does not have an @Transactional annotation, so no overarching transaction is defined
@Test
public void testRunJobPagesLocalDbWritesForLargeDataSet() throws Exception {
    int dbPagingSize = 200;
    Job job = getPersistedJob();
    int amountOfSourceTerms = seedTestSourceTermsFromSqlScript();
    int expectedPersistCalls = amountOfSourceTerms / dbPagingSize;
    JobRunDataRepository dataRepositoryWrapperMock = buildJobRunDataRepositoryWrapperMock();
    JobRunner jobRunner = new JobRunner(jobRunRepository, dataRepositoryWrapperMock, termRepositoryProxy);

    jobRunner.setSettings(buildPagableSettingsFor(dbPagingSize));
    jobRunner.runJob(job, new TestWebScraper());

    verify(dataRepositoryWrapperMock, times(expectedPersistCalls))
        .persistAllFor(any(JobRun.class), any());
    assertHasWrittenJobRunDataMatchingAmount(job.getId());
}
</code>```

The reason i am using a "mock" of JobRunDataRepository here is so i can wrap the persistAllFor() to verify how many times it is internally called - i still call the live persistAllFor() method. This is not an issue specific to the test, as the same problem occurs in the live code. For completion purposes, here is the method creating the wrapped mock around the live call:

```<code>@SuppressWarnings("unchecked")
private JobRunDataRepository buildJobRunDataRepositoryWrapperMock() {
    JobRunDataRepository dataRepositoryWrapperMock = Mockito.mock(JobRunDataRepository.class);

    doAnswer(new Answer<Void>() {
        @Override
        public Void answer(InvocationOnMock invocation) throws Throwable {
            Object[] arguments = invocation.getRawArguments();
            JobRun jobRun = (JobRun) arguments[0];
            Map<String, String> termMap = (Map<String, String>) arguments[1];
            // Live call is done here from an injected version of the repo with a live entityManager, so it still actually does the db write.
            jobRunDataRepository.persistAllFor(jobRun, termMap);
            return null;
        }
    }).when(dataRepositoryWrapperMock).persistAllFor(any(JobRun.class), any());

    return dataRepositoryWrapperMock;
}
</code>```

Here is runJob() from JobRunner:

```<code>// Note once again, no @Transactional defined here either - so NO transaction spanning the entire runJob method
public void runJob(final Job job, final WebScraper webScraper) {
    try {
        tryToRunJob(job, webScraper);
    } catch (Exception e) {
        e.printStackTrace();
        updateRunWithFailedStatus();
    }
}
</code>```

Here is a broken down version of tryToRunJob in JobRunner (runWebScrapingPhase() is the next level):

```<code>// Note: Still no overarching transaction defined here either
private void tryToRunJob(Job job, WebScraper webScraper) throws Exception {
    currentOffset = 0;
    createAndPersistJobRunFrom(job); // This method calls a db persist from a repository class, which has a @Transactional annotation and works perfectly fine. Object is stored in DB after call
    initTermRepositoryProxyFor(job);
    runWebScrapingPhase(webScraper); // This is where things seem to not work
    updateRunWithFinishedStatus();
}
</code>```

Here is the runWebScrapingPhase() from JobRunner with unrelated or unimportant code in between removed:

```<code>// Note, still no overarching @Transactional defined
private int runWebScrapingPhase(WebScraper webScraper) throws Exception {
    List<String> sourceTerms = termRepositoryProxy.getSourceTerms(currentOffset);
    if (sourceTerms.isEmpty()) return 0;
    Map<String, String> termMap = findTargetTermsFor(sourceTerms, webScraper);
    // If i print current offset here, current data set to be written to the DB and amount of entries everything is correct

    // This method has an @Transactional annotation, but does not write to the DB immediately
    dataRepository.persistAllFor(jobRun, termMap);

    // When i print the COUNT of the table in the DB here for debugging purposes, it shows 0 entries (meaning it did not write the data after `persistAllFor()` completed

    return termMap.size();
}
</code>```

Now, we come to the problem child: here is the persistAllFor() method of JobRunDataRepository class (which has an entityManager injected like all other repository classes where it works):

```<code>@Transactional
public void persistAllFor(JobRun jobRun, Map<String, String> termMap) {
    termMap.forEach((sourceTerm, targetTerm) -> {
        JobRunData jobRunData = new JobRunData();
        jobRunData.setJobRun(jobRun);
        jobRunData.setSourceTerm(sourceTerm);
        jobRunData.setTargetTerm(targetTerm);
        entityManager.persist(jobRunData);
    });

    entityManager.flush(); // I am calling `flush()` here
}
</code>```

I loop over the data for persist calls, and since this is the only transaction scope of the current method, it should commit/execute within/after the scope of this method - right? All the data persisted here. But as stated in the prior code block, the COUNT of the table remains zero. At the end of the program it tends to commit somehow as the data appears then in the database. Meaning, if an error or exception occurs in between - no data is written at all despite using paging. Its either all of the data of none at all. Why does the flush()/@Transactional not work here for the persistAllFor() method? I would understand it if another @Transactional was wrapped around the code on a higher level, but as you can see there isn't.

Body:
I understand that flush() per se does not trigger an actual commit, which depends on how transaction management is used. However, i have a case where i really do not understand why it doesn't happen until the very end of the program, rather than step wise in between as it is programmed. I have a quarkus project with hibernate and i am currently writing an integration test for a class (not a resource) to see why it is not paging database writes. Here is the code simplified as much as possible:

The test case (everything important happens in the jobRunner.runJob() method):

// Note this does not have an @Transactional annotation, so no overarching transaction is defined
@Test
public void testRunJobPagesLocalDbWritesForLargeDataSet() throws Exception {
    int dbPagingSize = 200;
    Job job = getPersistedJob();
    int amountOfSourceTerms = seedTestSourceTermsFromSqlScript();
    int expectedPersistCalls = amountOfSourceTerms / dbPagingSize;
    JobRunDataRepository dataRepositoryWrapperMock = buildJobRunDataRepositoryWrapperMock();
    JobRunner jobRunner = new JobRunner(jobRunRepository, dataRepositoryWrapperMock, termRepositoryProxy);

    jobRunner.setSettings(buildPagableSettingsFor(dbPagingSize));
    jobRunner.runJob(job, new TestWebScraper());

    verify(dataRepositoryWrapperMock, times(expectedPersistCalls))
        .persistAllFor(any(JobRun.class), any());
    assertHasWrittenJobRunDataMatchingAmount(job.getId());
}

The reason i am using a "mock" of JobRunDataRepository here is so i can wrap the persistAllFor() to verify how many times it is internally called - i still call the live persistAllFor() method. This is not an issue specific to the test, as the same problem occurs in the live code. For completion purposes, here is the method creating the wrapped mock around the live call:

@SuppressWarnings("unchecked")
private JobRunDataRepository buildJobRunDataRepositoryWrapperMock() {
    JobRunDataRepository dataRepositoryWrapperMock = Mockito.mock(JobRunDataRepository.class);

    doAnswer(new Answer<Void>() {
        @Override
        public Void answer(InvocationOnMock invocation) throws Throwable {
            Object[] arguments = invocation.getRawArguments();
            JobRun jobRun = (JobRun) arguments[0];
            Map<String, String> termMap = (Map<String, String>) arguments[1];
            // Live call is done here from an injected version of the repo with a live entityManager, so it still actually does the db write.
            jobRunDataRepository.persistAllFor(jobRun, termMap);
            return null;
        }
    }).when(dataRepositoryWrapperMock).persistAllFor(any(JobRun.class), any());

    return dataRepositoryWrapperMock;
}

Here is runJob() from JobRunner:

// Note once again, no @Transactional defined here either - so NO transaction spanning the entire runJob method
public void runJob(final Job job, final WebScraper webScraper) {
    try {
        tryToRunJob(job, webScraper);
    } catch (Exception e) {
        e.printStackTrace();
        updateRunWithFailedStatus();
    }
}

Here is a broken down version of tryToRunJob in JobRunner (runWebScrapingPhase() is the next level):

// Note: Still no overarching transaction defined here either
private void tryToRunJob(Job job, WebScraper webScraper) throws Exception {
    currentOffset = 0;
    createAndPersistJobRunFrom(job); // This method calls a db persist from a repository class, which has a @Transactional annotation and works perfectly fine. Object is stored in DB after call
    initTermRepositoryProxyFor(job);
    runWebScrapingPhase(webScraper); // This is where things seem to not work
    updateRunWithFinishedStatus();
}

Here is the runWebScrapingPhase() from JobRunner with unrelated or unimportant code in between removed:

// Note, still no overarching @Transactional defined
private int runWebScrapingPhase(WebScraper webScraper) throws Exception {
    List<String> sourceTerms = termRepositoryProxy.getSourceTerms(currentOffset);
    if (sourceTerms.isEmpty()) return 0;
    Map<String, String> termMap = findTargetTermsFor(sourceTerms, webScraper);
    // If i print current offset here, current data set to be written to the DB and amount of entries everything is correct

    // This method has an @Transactional annotation, but does not write to the DB immediately
    dataRepository.persistAllFor(jobRun, termMap);

    // When i print the COUNT of the table in the DB here for debugging purposes, it shows 0 entries (meaning it did not write the data after `persistAllFor()` completed

    return termMap.size();
}

Now, we come to the problem child: here is the persistAllFor() method of JobRunDataRepository class (which has an entityManager injected like all other repository classes where it works):

@Transactional
public void persistAllFor(JobRun jobRun, Map<String, String> termMap) {
    termMap.forEach((sourceTerm, targetTerm) -> {
        JobRunData jobRunData = new JobRunData();
        jobRunData.setJobRun(jobRun);
        jobRunData.setSourceTerm(sourceTerm);
        jobRunData.setTargetTerm(targetTerm);
        entityManager.persist(jobRunData);
    });

    entityManager.flush(); // I am calling `flush()` here
}

I loop over the data for persist calls, and since this is the only transaction scope of the current method, it should commit/execute within/after the scope of this method - right? All the data persisted here. But as stated in the prior code block, the COUNT of the table remains zero. At the end of the program it tends to commit somehow as the data appears then in the database. Meaning, if an error or exception occurs in between - no data is written at all despite using paging. Its either all of the data of none at all. Why does the flush()/@Transactional not work here for the persistAllFor() method? I would understand it if another @Transactional was wrapped around the code on a higher level, but as you can see there isn't.


问:
Datatable in Angular shows no rows initially, but the rows are visible on reload
The problem is - On the initial API call, we get no records, and hence the datatable shows "No data available" message.
But on making the next API call with different parameters, the API returns records but the datatable doesnt display it.

It shows something like this -

Upon reloading, or making anymore API calls, the data is visible in the datatable again.

This is the code I have in ngOninit-

```<code>this.dtOptions = {
      stateSave: true,
      stateSaveCallback: function (settings, data) {
        ...
      },
      stateLoadCallback: function (settings) {
        ...
      },
      autoWidth: false,
      pagingType: 'full_numbers',
      pageLength: 10,
      order: [1, 'desc'],
      columnDefs: [{
        targets: [9],
        orderable: false,
      }, {
        targets: [1],
        type: 'date'
      }],
      dom: 'Blfrtip',
      buttons: [
        {
          extend: 'colvis',
          text: 'Hide Columns',
          columns: [1, 3, 4, 5, 6, 7]
        }
      ],
      serverSide: true,
      ajax: (dataTablesParameters: any, callback) => {
        this.getPage().then(pageNumber => {

           this.incidentService.getIncidentsListPagination(
            dataTablesParameters, pageNumber + 1, callback,
            this.selectedIncidentSites?.length === 0 ? this.IncidentSiteList.slice() : this.selectedIncidentSites,
            this.selectedDivisions?.length === 0 ? this.divisionList.slice(): this.selectedDivisions, this.selectedUser,
            this.strFromDate, this.strToDate, this.searchTerm, this.sortingColumn, this.sortingOrder
          ).subscribe(resp => {
            $this.IncidentsList = resp['Data']['Incidents'];
            callback({
              recordsTotal: resp.Data.TotalNumberOfRecords,
              recordsFiltered: resp.Data.TotalNumberOfRecords,
              data: resp['Data']['Incidents']
            });
          }, (error) => {
            $this.IncidentsList = [];
          });
          // this.IncidentsListPagination(dataTablesParameters, pageNumber, callback);
        })
      },
      columns: [
        {
           data: column_data_here
        },
        {
           data: column2_data_here
        },
        ...
      ]
    };
    setTimeout(function () {
      this.dtTrigger.next();
    }.bind(this), 500);
}
</code>```

Api calls are made from the HTML, that calls this function -> (ngModelChange)="loadIncidentsList()"

```<code>loadIncidentsList() {
    this.reloadDataTable();
  }
</code>```
```<code>reloadDataTable(): void {
    if (!this.dtElement || !this.dtElement.dtInstance) {
      return;
    }
    this.dtElement.dtInstance.then((dtInstance: DataTables.Api) => {
      dtInstance.destroy();
      this.dtTrigger.next();
    });
  }
</code>```

The this.IncidentsList length is zero when loadIncidentsList function gets called initially.
Later, after the API call, when the length of this.IncidentsList changes, why is the datatable not able to load records?
Can anyone please help me with this.

Body:
The problem is - On the initial API call, we get no records, and hence the datatable shows "No data available" message.
But on making the next API call with different parameters, the API returns records but the datatable doesnt display it.

It shows something like this -

Upon reloading, or making anymore API calls, the data is visible in the datatable again.

This is the code I have in ngOninit-

this.dtOptions = {
      stateSave: true,
      stateSaveCallback: function (settings, data) {
        ...
      },
      stateLoadCallback: function (settings) {
        ...
      },
      autoWidth: false,
      pagingType: 'full_numbers',
      pageLength: 10,
      order: [1, 'desc'],
      columnDefs: [{
        targets: [9],
        orderable: false,
      }, {
        targets: [1],
        type: 'date'
      }],
      dom: 'Blfrtip',
      buttons: [
        {
          extend: 'colvis',
          text: 'Hide Columns',
          columns: [1, 3, 4, 5, 6, 7]
        }
      ],
      serverSide: true,
      ajax: (dataTablesParameters: any, callback) => {
        this.getPage().then(pageNumber => {

           this.incidentService.getIncidentsListPagination(
            dataTablesParameters, pageNumber + 1, callback,
            this.selectedIncidentSites?.length === 0 ? this.IncidentSiteList.slice() : this.selectedIncidentSites,
            this.selectedDivisions?.length === 0 ? this.divisionList.slice(): this.selectedDivisions, this.selectedUser,
            this.strFromDate, this.strToDate, this.searchTerm, this.sortingColumn, this.sortingOrder
          ).subscribe(resp => {
            $this.IncidentsList = resp['Data']['Incidents'];
            callback({
              recordsTotal: resp.Data.TotalNumberOfRecords,
              recordsFiltered: resp.Data.TotalNumberOfRecords,
              data: resp['Data']['Incidents']
            });
          }, (error) => {
            $this.IncidentsList = [];
          });
          // this.IncidentsListPagination(dataTablesParameters, pageNumber, callback);
        })
      },
      columns: [
        {
           data: column_data_here
        },
        {
           data: column2_data_here
        },
        ...
      ]
    };
    setTimeout(function () {
      this.dtTrigger.next();
    }.bind(this), 500);
}

Api calls are made from the HTML, that calls this function -> (ngModelChange)="loadIncidentsList()"

loadIncidentsList() {
    this.reloadDataTable();
  }

reloadDataTable(): void {
    if (!this.dtElement || !this.dtElement.dtInstance) {
      return;
    }
    this.dtElement.dtInstance.then((dtInstance: DataTables.Api) => {
      dtInstance.destroy();
      this.dtTrigger.next();
    });
  }

The this.IncidentsList length is zero when loadIncidentsList function gets called initially.
Later, after the API call, when the length of this.IncidentsList changes, why is the datatable not able to load records?
Can anyone please help me with this.


问:
How to fix connectbot sshlib duplicata class found?
I'm using connectbot libssh
implementation group: 'org.connectbot', name: 'sshlib', version: '2.2.21'

After updating the dependenciesfrom 2.2.3 to the version 2.2.21:
I get an error:

```<code>Duplicate class com.google.crypto.tink.PublicKeySign found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.PublicKeyVerify found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.annotations.Alpha found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.config.internal.TinkFipsStatus found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.config.internal.TinkFipsUtil found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.config.internal.TinkFipsUtil$1 found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.config.internal.TinkFipsUtil$AlgorithmFipsCompatibility found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.config.internal.TinkFipsUtil$AlgorithmFipsCompatibility$1 found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.config.internal.TinkFipsUtil$AlgorithmFipsCompatibility$2 found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.internal.BuildDispatchedCode found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.internal.TinkBugException found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.internal.Util found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.Bytes found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.Curve25519 found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.Ed25519 found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.Ed25519$CachedXYT found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.Ed25519$CachedXYZT found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.Ed25519$PartialXYZT found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.Ed25519$XYZ found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.Ed25519$XYZT found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.Ed25519Constants found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.Ed25519Constants$1 found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.Ed25519Constants$Point found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.Ed25519Sign found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.Ed25519Sign$KeyPair found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.Ed25519Verify found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.EngineFactory found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.EngineWrapper found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.EngineWrapper$TCipher found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.EngineWrapper$TKeyAgreement found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.EngineWrapper$TKeyFactory found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.EngineWrapper$TKeyPairGenerator found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.EngineWrapper$TMac found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.EngineWrapper$TMessageDigest found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.EngineWrapper$TSignature found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.Enums found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.Enums$HashType found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.Field25519 found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.Hex found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.Random found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.Random$1 found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.SubtleUtil found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.SubtleUtil$1 found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.Validators found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.Validators$1 found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.X25519 found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.util.Bytes found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
</code>```

does anyone know how to solve the problem?

Link to connectbot github:
https://github.com/connectbot

Body:
I'm using connectbot libssh
implementation group: 'org.connectbot', name: 'sshlib', version: '2.2.21'

After updating the dependenciesfrom 2.2.3 to the version 2.2.21:
I get an error:

Duplicate class com.google.crypto.tink.PublicKeySign found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.PublicKeyVerify found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.annotations.Alpha found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.config.internal.TinkFipsStatus found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.config.internal.TinkFipsUtil found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.config.internal.TinkFipsUtil$1 found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.config.internal.TinkFipsUtil$AlgorithmFipsCompatibility found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.config.internal.TinkFipsUtil$AlgorithmFipsCompatibility$1 found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.config.internal.TinkFipsUtil$AlgorithmFipsCompatibility$2 found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.internal.BuildDispatchedCode found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.internal.TinkBugException found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.internal.Util found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.Bytes found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.Curve25519 found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.Ed25519 found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.Ed25519$CachedXYT found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.Ed25519$CachedXYZT found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.Ed25519$PartialXYZT found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.Ed25519$XYZ found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.Ed25519$XYZT found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.Ed25519Constants found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.Ed25519Constants$1 found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.Ed25519Constants$Point found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.Ed25519Sign found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.Ed25519Sign$KeyPair found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.Ed25519Verify found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.EngineFactory found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.EngineWrapper found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.EngineWrapper$TCipher found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.EngineWrapper$TKeyAgreement found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.EngineWrapper$TKeyFactory found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.EngineWrapper$TKeyPairGenerator found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.EngineWrapper$TMac found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.EngineWrapper$TMessageDigest found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.EngineWrapper$TSignature found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.Enums found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.Enums$HashType found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.Field25519 found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.Hex found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.Random found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.Random$1 found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.SubtleUtil found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.SubtleUtil$1 found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.Validators found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.Validators$1 found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.subtle.X25519 found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)
Duplicate class com.google.crypto.tink.util.Bytes found in modules jetified-sshlib-2.2.21 (org.connectbot:sshlib:2.2.21) and jetified-tink-android-1.7.0 (com.google.crypto.tink:tink-android:1.7.0)

does anyone know how to solve the problem?

Link to connectbot github:
https://github.com/connectbot


问:
Helm reference subchart annotations
What would be the way to reference the annotations of a subchart in the umbrella chart?
I would like to print all the annotations from the subchart's Chart.yaml file at the umbrella chart's NOTES.TXT.
So far none of the pages I found, was working. Please note, all my charts are using hypens.
https://github.com/helm/helm/issues/11255

I assume something like this should work:

{{ index .Chart.Annotations "my-subchart" }}

Title: Helm reference subchart annotations


问:
The ImageMagick option `trim:edges` has no effect
I am converting PDF files into JPEG pictures using the following ImageMagick command:

```<code>$ convert -density 300 -background white -alpha remove inputs/input.pdf -quality 100 -define trim:edges=west,east -trim outputs/output-%d.jpg
</code>```

but it always trims all the edges regardless of what's defined in -define trim:edges.

Is there anything wrong with my command?

Body:
I am converting PDF files into JPEG pictures using the following ImageMagick command:

$ convert -density 300 -background white -alpha remove inputs/input.pdf -quality 100 -define trim:edges=west,east -trim outputs/output-%d.jpg

but it always trims all the edges regardless of what's defined in -define trim:edges.

Is there anything wrong with my command?


问:
Is RewriteMod for WordPress site: site.ro -> site.com/?lang=ro possible?
I'm not much of a WordPress specialist - is it possible to redirect new domain to the same site, but with ?lang=ro query parameter so it shows the old site with selected language?

Result I want:

site.com -> showing the site

site.ro -> showing the in specified language and maintaining the links as they are on site.com, but while using site.ro

I have also option of using:

pre-path (site.com/ro/)

pre-domain (ro.site.com)
but they will require additional configuration and this plugin is already outdated so I'd rather not change anything in that regard to not break anything.


问:
Xcode build archive command executing infinitely
```<code>I am working on an ios framework development project, that is already developed several years back. Now I am adding xcframework support to this project. For that I have added the following line in run script of universal target.
</code>```

xcodebuild archive -scheme "Library name" -configuration
${CONFIGURATION} -destination 'generic/platform=iOS' -archivePath
"${IPHONE_DIR}" SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES

```<code>but while building the project the run script is keep on executing multiple (infinite) times.

log looks like below:
PhaseScriptExecution Run\ Script /Script-5B51BB3A296D00900E46CDD.sh (in target 'Universal_xxxxxx' from project 'xxxxxx')
cd xxxxx
    export ACTION\=build
    export AD_HOC_CODE_SIGNING_ALLOWED\=NO
    export ALLOW_TARGET_PLATFORM_SPECIALIZATION\=NO
    export ALTERNATE_GROUP\=staff
    export ALTERNATE_MODE\=u+w,go-w,a+rX
.......
 export variant\=normal
    /bin/sh -c /Script-5B51BB3A296D00900E46CDD.sh

PhaseScriptExecution Run\ Script /Script-5B51BB3A296D00900E46CDD.sh (in target 'Universal_xxxxxx' from project 'xxxxxx')
cd xxxxx
    export ACTION\=build
    export AD_HOC_CODE_SIGNING_ALLOWED\=NO
    export ALLOW_TARGET_PLATFORM_SPECIALIZATION\=NO
    export ALTERNATE_GROUP\=staff
    export ALTERNATE_MODE\=u+w,go-w,a+rX
.......
 export variant\=normal
    /bin/sh -c /Script-5B51BB3A296D00900E46CDD.sh

like this it is not stopping.

Can anyone have any idea what make this behaviour for xcodebuild archive command?

I replaced it with xcodebuild build command, but all those are working. when adding Xcodebuild archive only it is showing this behaviour.

xcodebuild -target "${TARGET}" -configuration ${CONFIGURATION} -sdk iphoneos${VERSION} clean build RUN_CLANG_STATIC_ANALYZER=NO

Xcode version is 13.4.1 only
</code>```

EDIT:

I have one more finding when I add -scheme in the archive command this behaviour is happening.

xcodebuild archive -target "${TARGET}" -configuration ${CONFIGURATION} -sdk iphonesimulator${SDK_VERSION} RUN_CLANG_STATIC_ANALYZER=NO SKIP_INSTALL=NO BUILD_LIBRARIES_FOR_DISTRIBUTION=YES

this command is working fine

Body:
I am working on an ios framework development project, that is already developed several years back. Now I am adding xcframework support to this project. For that I have added the following line in run script of universal target.

xcodebuild archive -scheme "Library name" -configuration
${CONFIGURATION} -destination 'generic/platform=iOS' -archivePath
"${IPHONE_DIR}" SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES

but while building the project the run script is keep on executing multiple (infinite) times.

log looks like below:
PhaseScriptExecution Run\ Script /Script-5B51BB3A296D00900E46CDD.sh (in target 'Universal_xxxxxx' from project 'xxxxxx')
cd xxxxx
    export ACTION\=build
    export AD_HOC_CODE_SIGNING_ALLOWED\=NO
    export ALLOW_TARGET_PLATFORM_SPECIALIZATION\=NO
    export ALTERNATE_GROUP\=staff
    export ALTERNATE_MODE\=u+w,go-w,a+rX
.......
 export variant\=normal
    /bin/sh -c /Script-5B51BB3A296D00900E46CDD.sh

PhaseScriptExecution Run\ Script /Script-5B51BB3A296D00900E46CDD.sh (in target 'Universal_xxxxxx' from project 'xxxxxx')
cd xxxxx
    export ACTION\=build
    export AD_HOC_CODE_SIGNING_ALLOWED\=NO
    export ALLOW_TARGET_PLATFORM_SPECIALIZATION\=NO
    export ALTERNATE_GROUP\=staff
    export ALTERNATE_MODE\=u+w,go-w,a+rX
.......
 export variant\=normal
    /bin/sh -c /Script-5B51BB3A296D00900E46CDD.sh

like this it is not stopping.

Can anyone have any idea what make this behaviour for xcodebuild archive command?

I replaced it with xcodebuild build command, but all those are working. when adding Xcodebuild archive only it is showing this behaviour.

xcodebuild -target "${TARGET}" -configuration ${CONFIGURATION} -sdk iphoneos${VERSION} clean build RUN_CLANG_STATIC_ANALYZER=NO

Xcode version is 13.4.1 only

EDIT:

I have one more finding when I add -scheme in the archive command this behaviour is happening.

xcodebuild archive -target "${TARGET}" -configuration ${CONFIGURATION} -sdk iphonesimulator${SDK_VERSION} RUN_CLANG_STATIC_ANALYZER=NO SKIP_INSTALL=NO BUILD_LIBRARIES_FOR_DISTRIBUTION=YES

this command is working fine


问:
Select showing up weird on mac
I have an issue where the language selector "Deutsch" in the image below is behaving weird on a mac. Basically the options are showing up in the upper left corner instead of underneath it.

```<code><select class="language-select">
  <option value="de" class="ng-star-inserted"> Deutsch </option>
  <option value="en" class="ng-star-inserted"> English </option>
</select>
</code>```

The code above is the html structure from the browser.
The styles of the list that is part of the hamburger menu is done via flexbox:

```<code>display: flex;
align-items: flex-start;
justify-content: center;
flex-direction: column;
gap: 15px;
</code>```

Any help would be apreciated!

Edit: It works fine if I don't enter on responsive mode in the browser. If I open the Responsive view, it breaks on any/all resolutions/screen sizes.

Oddly enough I created a codepen with the html structure and styles, and in codepen it looks as it should on any screen size: https://codepen.io/torjescu-sergiu/pen/yLqVNVX?editors=1100

Title: Select showing up weird on mac

Body:
I have an issue where the language selector "Deutsch" in the image below is behaving weird on a mac. Basically the options are showing up in the upper left corner instead of underneath it.

<select class="language-select">
  <option value="de" class="ng-star-inserted"> Deutsch </option>
  <option value="en" class="ng-star-inserted"> English </option>
</select>

The code above is the html structure from the browser.
The styles of the list that is part of the hamburger menu is done via flexbox:

display: flex;
align-items: flex-start;
justify-content: center;
flex-direction: column;
gap: 15px;

Any help would be apreciated!

Edit: It works fine if I don't enter on responsive mode in the browser. If I open the Responsive view, it breaks on any/all resolutions/screen sizes.

Oddly enough I created a codepen with the html structure and styles, and in codepen it looks as it should on any screen size: https://codepen.io/torjescu-sergiu/pen/yLqVNVX?editors=1100


问:
How do I interchange languages of moment.js using i18n library?
I am trying to change the language of the date which is being set by moment.js. The default one is English, but I want to set the Spanish language.

first i use this to get spanish:
import 'moment/locale/es'

but my question is how to interchange languages using i18n library?

first i use this to get spanish:
import 'moment/locale/es'

but my question is how to interchange languages using i18n library?


问:
Octave row reduces incorrectly a given matrix
I was trying to calulate the eigenvectors and eigenvalues of a matrix "by hand"(without using the function eig())

First I calculate the eigenvalaues with the function poly() and roots().

Then I try to row reduce the matrix A-λI for each eigenvalue.

The problem is that when I try to row reduce this matrix it doesn't do it correctly.

But if I rewrite that same matrix "by hand" it does it correctly.

The weirdest part for me is that this same logic works properly for a different matrix.

Any help would be appreciated.

Thanks in advance

Image of the code

This is the code I used:

```<code>##with this matrix doesn't work

A_2 = [24 -10 8;-7 33 4;0 0 38];
I = [1 0 0;0 1 0;0 0 1];

p2 = poly(A_2); ## characteristic polynomial
av2 = roots(p2); ## eigenvalues
D = [av2(1)*I(:,1), av2(2)*I(:,2), av2(3)*I(:,3)]; ## Diagonal matrix

A_2_1=A_2-av2(1)*I ## A-λI for first eigenvalue
rref(A_2_1)

B=[-14 -10 8;-7 -5 4;0 0 0] ## A_2_1 rewritten 'by hand'
rref(B)
</code>```
```<code>##with this matrix works

A_2 = [4 0 1;-2 1 0;-2 0 1];
I = [1 0 0;0 1 0;0 0 1];

p2 = poly(A_2); ## characteristic polynomial
av2 = roots(p2); ## eigenvalues
D = [av2(1)*I(:,1), av2(2)*I(:,2), av2(3)*I(:,3)]; ## Diagonal matrix

A_2_1=A_2-av2(1)*I ## A-λI for first eigenvalue
rref(A_2_1)

B=[1 0 1;-2 -2 0;-2 0 -2] ## A_2_1 rewritten 'by hand'
rref(B)
</code>```

Body:
I was trying to calulate the eigenvectors and eigenvalues of a matrix "by hand"(without using the function eig())

First I calculate the eigenvalaues with the function poly() and roots().

Then I try to row reduce the matrix A-λI for each eigenvalue.

The problem is that when I try to row reduce this matrix it doesn't do it correctly.

But if I rewrite that same matrix "by hand" it does it correctly.

The weirdest part for me is that this same logic works properly for a different matrix.

Any help would be appreciated.

Thanks in advance

Image of the code

This is the code I used:

##with this matrix doesn't work

A_2 = [24 -10 8;-7 33 4;0 0 38];
I = [1 0 0;0 1 0;0 0 1];

p2 = poly(A_2); ## characteristic polynomial
av2 = roots(p2); ## eigenvalues
D = [av2(1)*I(:,1), av2(2)*I(:,2), av2(3)*I(:,3)]; ## Diagonal matrix

A_2_1=A_2-av2(1)*I ## A-λI for first eigenvalue
rref(A_2_1)

B=[-14 -10 8;-7 -5 4;0 0 0] ## A_2_1 rewritten 'by hand'
rref(B)

##with this matrix works

A_2 = [4 0 1;-2 1 0;-2 0 1];
I = [1 0 0;0 1 0;0 0 1];

p2 = poly(A_2); ## characteristic polynomial
av2 = roots(p2); ## eigenvalues
D = [av2(1)*I(:,1), av2(2)*I(:,2), av2(3)*I(:,3)]; ## Diagonal matrix

A_2_1=A_2-av2(1)*I ## A-λI for first eigenvalue
rref(A_2_1)

B=[1 0 1;-2 -2 0;-2 0 -2] ## A_2_1 rewritten 'by hand'
rref(B)


问:
When using flask_login, how to pass an argument to login_manager.login_view?
I have a login route like this

```<code>@app.route('/login/<int:user_id>)
def login(user_id):
    if some_condition:
        return redirect(url_for('dashboard', user_id=user_id)
    return render_template('login.html')
</code>```

The route for the dashboard goes like this

```<code>@app.route('/dashboard/<int:user_id>)
@login_required
def dashboard(user_id):
    # some code...
    return render_template('dashboard.html')
</code>```

Ideally, you shouldn't be able to access the dashboard without logging in. Hence, the use of @login_required decorator. When a user manually types in the address bar /dashboard/2 where 2 represents the user_id. If the user is not logged in, dashboard redirects to login. The following line causes that behaviour.

login_manager.login_view = 'login'

login refers to the name of the login route function. How do i pass the user_id, in this case 2 to  login_manager.login_view = 'login'

Body:
I have a login route like this

@app.route('/login/<int:user_id>)
def login(user_id):
    if some_condition:
        return redirect(url_for('dashboard', user_id=user_id)
    return render_template('login.html')

The route for the dashboard goes like this

@app.route('/dashboard/<int:user_id>)
@login_required
def dashboard(user_id):
    # some code...
    return render_template('dashboard.html')

Ideally, you shouldn't be able to access the dashboard without logging in. Hence, the use of @login_required decorator. When a user manually types in the address bar /dashboard/2 where 2 represents the user_id. If the user is not logged in, dashboard redirects to login. The following line causes that behaviour.

login_manager.login_view = 'login'

login refers to the name of the login route function. How do i pass the user_id, in this case 2 to  login_manager.login_view = 'login'


问:
How to structure repsonse of nested object query in mongodb
I have mongodb schema looks like this

```<code>"detail": {
    "EN": {
      "title": "Paper Distributation",
      "jobDescription": "share papers to everyonre",
      "brandDescription": "DMart"
    },
    "HI": {
      "title": "Paper Distributation in different language",
      "jobDescription": "share papers to everyonre in different language",
      "brandDescription": "DMart in different language"
    }
}
</code>```

and i want response like this from query with passing any language like EN or HI

```<code>"detail": {
      "title": "Paper Distributation",
      "jobDescription": "share papers to everyonre",
      "brandDescription": "DMart"
 }
</code>```

how can i achieve this please help me with this
Thank you

I tried to access it with projection like detail.EN:1 but not getting proper required response

Body:
I have mongodb schema looks like this

"detail": {
    "EN": {
      "title": "Paper Distributation",
      "jobDescription": "share papers to everyonre",
      "brandDescription": "DMart"
    },
    "HI": {
      "title": "Paper Distributation in different language",
      "jobDescription": "share papers to everyonre in different language",
      "brandDescription": "DMart in different language"
    }
}

and i want response like this from query with passing any language like EN or HI

"detail": {
      "title": "Paper Distributation",
      "jobDescription": "share papers to everyonre",
      "brandDescription": "DMart"
 }

how can i achieve this please help me with this
Thank you

I tried to access it with projection like detail.EN:1 but not getting proper required response


问:
Unit test React component, the material UI dialog component yields error "TypeError: Cannot read properties of undefined "
I am developing a React app with Material UI package.

I have created a material Dialog :

```<code>import { Dialog, DialogTitle, DialogContent, DialogContentText, DialogActions, Button } from '@mui/material';

type Props = {
    open: boolean;
    setOpen: React.Dispatch<React.SetStateAction<any>>;
    myAsyncTask: () => Promise<{ readonly status: string }>;
};

export const MyCustomDialog: React.FC<Props>  = ({ open, setOpen, myAsyncTask }) => {

    const [open, setOpen] = useState(false);

    return <Dialog aria-labelledby='My Dialog' open={open} onClose={() => setOpen(false)}>
        <DialogTitle>My dialog</DialogTitle>
        <DialogContent>
            <DialogContentText>{`Do you agree on the terms?`}</DialogContentText>
        </DialogContent>
        <DialogActions>
            <Button onClick={() => setOpen(false)}>No</Button>
            <Button onClick={async () => { await myAsyncTask(); setOpen(false); }}>Yes</Button>
        </DialogActions>

    </Dialog>;
}

</code>```

The above MyCustomDialog is shown in my main component:

```<code>export const TokensTabViewContent: React.FC<props> = ({...}) => {
 const [openConfirmDialog, setOpenConfirmDialog] = useState(false);

 return <>
      <MyCustomDialog
        open={openConfirmDialog}
        setOpen={setOpenConfirmDialog}
        myAsyncTask={async ()=> await postMyHttpRequest()} />
      <DataTable
      ... />
 </>

}
</code>```

I would like to unit test the React project, so I am using this React Testing library. my test is :

```<code>import { render, screen } from '@testing-library/react';
...
it('should render', async () => {
        // render my main component
        render(<MyMainComp />)

        // the actual test is about the text showing on MyMainComp, not dialog
        const userIdTxt = screen.getByText('user id');
        expect(userIdTxt).toBeInTheDocument();
    });
</code>```

When run above test, I got error:

```<code>Error: Uncaught [TypeError: Cannot read properties of undefined (reading 'MuiDialog-root')]
</code>```

The error is obviously for complaining about the Dialog component. But I don't know why it gives this error, what is undefined?

I tried setting breakpoints at every line of the MyCustomDialog code, don't see any property there is undefined. Anyone could give some ideas?

Body:
I am developing a React app with Material UI package.

I have created a material Dialog :

import { Dialog, DialogTitle, DialogContent, DialogContentText, DialogActions, Button } from '@mui/material';

type Props = {
    open: boolean;
    setOpen: React.Dispatch<React.SetStateAction<any>>;
    myAsyncTask: () => Promise<{ readonly status: string }>;
};

export const MyCustomDialog: React.FC<Props>  = ({ open, setOpen, myAsyncTask }) => {

    const [open, setOpen] = useState(false);

    return <Dialog aria-labelledby='My Dialog' open={open} onClose={() => setOpen(false)}>
        <DialogTitle>My dialog</DialogTitle>
        <DialogContent>
            <DialogContentText>{`Do you agree on the terms?`}</DialogContentText>
        </DialogContent>
        <DialogActions>
            <Button onClick={() => setOpen(false)}>No</Button>
            <Button onClick={async () => { await myAsyncTask(); setOpen(false); }}>Yes</Button>
        </DialogActions>

    </Dialog>;
}

The above MyCustomDialog is shown in my main component:

export const TokensTabViewContent: React.FC<props> = ({...}) => {
 const [openConfirmDialog, setOpenConfirmDialog] = useState(false);

 return <>
      <MyCustomDialog
        open={openConfirmDialog}
        setOpen={setOpenConfirmDialog}
        myAsyncTask={async ()=> await postMyHttpRequest()} />
      <DataTable
      ... />
 </>

}

I would like to unit test the React project, so I am using this React Testing library. my test is :

import { render, screen } from '@testing-library/react';
...
it('should render', async () => {
        // render my main component
        render(<MyMainComp />)

        // the actual test is about the text showing on MyMainComp, not dialog
        const userIdTxt = screen.getByText('user id');
        expect(userIdTxt).toBeInTheDocument();
    });

When run above test, I got error:

Error: Uncaught [TypeError: Cannot read properties of undefined (reading 'MuiDialog-root')]

The error is obviously for complaining about the Dialog component. But I don't know why it gives this error, what is undefined?

I tried setting breakpoints at every line of the MyCustomDialog code, don't see any property there is undefined. Anyone could give some ideas?


问:
Add NavigationBarButton to UIImagePickerController navigation bar
I'm trying to make iOS app and I want to add a UIBarButtonItem to a UIImagePickerController.
How can I do that?

I tried too many navigaiton bar button operations but it doesn't work.

```<code>let sampleButton = UIBarButtonItem(title: "Example", style: .plain, target: self, action: #selector(sampleButtonHandle))
imagePicker.navigationItem.leftBarButtonItem = sampleButton
</code>```

I tried this code but it doesn't work.

Body:
I'm trying to make iOS app and I want to add a UIBarButtonItem to a UIImagePickerController.
How can I do that?

I tried too many navigaiton bar button operations but it doesn't work.

let sampleButton = UIBarButtonItem(title: "Example", style: .plain, target: self, action: #selector(sampleButtonHandle))
imagePicker.navigationItem.leftBarButtonItem = sampleButton

I tried this code but it doesn't work.


问:
videojs.record - start/stop audio recording onclick
I want to implement audio-recorder, which I can start and stop by pressing the buttons. I have the following code of audio-recorder provided as an example in documentation of video-js-record:

<!doctype html>

  <meta charset="utf-8">
  <title>Audio/Video Example - Record Plugin for Video.js</title>
<link href="../../static/video.js/dist/video-js.min.css" rel="stylesheet">
    <link href="../../static/videojs-wavesurfer/dist/css/videojs.wavesurfer.min.css" rel="stylesheet">
  <link href="../../static/videojs-record/dist/css/videojs.record.css" rel="stylesheet">
  <link href="../../static/videojs-record/example.css" rel="stylesheet">

<audio id="myAudio" class="video-js vjs-default-skin"></audio>

<button onclick="play()" class="btn btn-primary">Play</button>
<button onclick="startRecording()" class="btn btn-primary">Start</button>
 <button onclick="stopRecording()" class="btn btn-warn">Stop</button>

```

player.record().getDevice() does exactly same as pressing the mic button in video-js interface - it starts the device. The problem is that when I call player.record().start() it somehow starts the timer on video-js interface but at the same time returns an error in console :
videojs.record.js:3637 Uncaught TypeError: Cannot read properties of undefined (reading 'start')  and I also don't see the starting message as if I'd press it on default interface.
Pressing "stop" button stops the timer but player.record().recordedData is underfined. What am I doing wrong?

Body:
I want to implement audio-recorder, which I can start and stop by pressing the buttons. I have the following code of audio-recorder provided as an example in documentation of video-js-record:

<!doctype html>

  <meta charset="utf-8">
  <title>Audio/Video Example - Record Plugin for Video.js</title>
<link href="../../static/video.js/dist/video-js.min.css" rel="stylesheet">
    <link href="../../static/videojs-wavesurfer/dist/css/videojs.wavesurfer.min.css" rel="stylesheet">
  <link href="../../static/videojs-record/dist/css/videojs.record.css" rel="stylesheet">
  <link href="../../static/videojs-record/example.css" rel="stylesheet">

<audio id="myAudio" class="video-js vjs-default-skin"></audio>

<button onclick="play()" class="btn btn-primary">Play</button>
<button onclick="startRecording()" class="btn btn-primary">Start</button>
 <button onclick="stopRecording()" class="btn btn-warn">Stop</button>

player.record().getDevice() does exactly same as pressing the mic button in video-js interface - it starts the device. The problem is that when I call player.record().start() it somehow starts the timer on video-js interface but at the same time returns an error in console :
videojs.record.js:3637 Uncaught TypeError: Cannot read properties of undefined (reading 'start')  and I also don't see the starting message as if I'd press it on default interface.
Pressing "stop" button stops the timer but player.record().recordedData is underfined. What am I doing wrong?


问:
How to add an ethernet port to a simu5G UE?
I want to construct a cellular router/modem/gateway with simu5g and Omnet++.
I do this by extending the UE and creating an ethernet port and an ethernet layer.

However, this does not work.

Below is my code:-

```<code> module NRModem extends NRUe
{
    parameters:
        ethernet.typename = default("EthernetLayer");
        numEthInterfaces = default(0);  // minimum number of ethernet interfaces
        int numEth = default(1);
        int numPppInterfaces = default(0);
    gates:
        inout pppg[numPppInterfaces] @labels(PppFrame-conn) @allowUnconnected;
        inout ethg[numEth] @labels(EtherFrame-conn) @allowUnconnected;
    submodules:
        ethernet: <default(sizeof(ethg) > 0 ? "EthernetEncapsulation" : "")> like IEthernetLayer if typename != "" {
            @display("p=54.365997,513.162;is=s");
        }
        ppp[sizeof(pppg)]: <default("PppInterface")> like IPppInterface {
            @display("p=259.896,588.744;row=150;q=txQueue");
        }
        eth2[sizeof(ethg)]: <default("EthernetInterface")> like IEthernetInterface {
            @display("p=168.402,547.638;q=txQueue");
        }
        li: MessageDispatcher {
            @display("p=298.35,511.836");
        }

    connections:

        for i=0..sizeof(ethg)-1 {
            ethg[i] <--> { @display("m=s"); } <--> eth2[i].phys;
        }
        for i=0..sizeof(pppg)-1 {
            pppg[i] <--> { @display("m=s"); } <--> ppp[i].phys;
        }
        for i=0..sizeof(ethg)-1 {
            eth2[i].upperLayerOut --> li.in++;
            eth2[i].upperLayerIn <-- li.out++;
        }
        eth2[0].upperLayerOut --> li.in++;
        li.out++ --> ethernet.lowerLayerIn;
        ethernet.lowerLayerOut --> li.in++;
        nl.out++ --> ethernet.upperLayerIn;
        nl.in++ <-- ethernet.upperLayerOut;
}
</code>```

Is this the correct procedure?

Body:
I want to construct a cellular router/modem/gateway with simu5g and Omnet++.
I do this by extending the UE and creating an ethernet port and an ethernet layer.

However, this does not work.

Below is my code:-

 module NRModem extends NRUe
{
    parameters:
        ethernet.typename = default("EthernetLayer");
        numEthInterfaces = default(0);  // minimum number of ethernet interfaces
        int numEth = default(1);
        int numPppInterfaces = default(0);
    gates:
        inout pppg[numPppInterfaces] @labels(PppFrame-conn) @allowUnconnected;
        inout ethg[numEth] @labels(EtherFrame-conn) @allowUnconnected;
    submodules:
        ethernet: <default(sizeof(ethg) > 0 ? "EthernetEncapsulation" : "")> like IEthernetLayer if typename != "" {
            @display("p=54.365997,513.162;is=s");
        }
        ppp[sizeof(pppg)]: <default("PppInterface")> like IPppInterface {
            @display("p=259.896,588.744;row=150;q=txQueue");
        }
        eth2[sizeof(ethg)]: <default("EthernetInterface")> like IEthernetInterface {
            @display("p=168.402,547.638;q=txQueue");
        }
        li: MessageDispatcher {
            @display("p=298.35,511.836");
        }

    connections:

        for i=0..sizeof(ethg)-1 {
            ethg[i] <--> { @display("m=s"); } <--> eth2[i].phys;
        }
        for i=0..sizeof(pppg)-1 {
            pppg[i] <--> { @display("m=s"); } <--> ppp[i].phys;
        }
        for i=0..sizeof(ethg)-1 {
            eth2[i].upperLayerOut --> li.in++;
            eth2[i].upperLayerIn <-- li.out++;
        }
        eth2[0].upperLayerOut --> li.in++;
        li.out++ --> ethernet.lowerLayerIn;
        ethernet.lowerLayerOut --> li.in++;
        nl.out++ --> ethernet.upperLayerIn;
        nl.in++ <-- ethernet.upperLayerOut;
}

Is this the correct procedure?


问:
How to post image from asp.net to the media in wordpress
I have a question about how I can upload image from asp.net api to the media in wordpress.

Or is that possible?

Thank you very much.

I tried to use rest api pluign but I could not found any useful link to help me.