79159849

Date: 2024-11-05 16:08:19
Score: 4.5
Natty:
Report link

Ola, fiz um projeto que faz exatamente isso, coloquei no meu github pode dar uma olhada. https://github.com/LeonardoQueres/Integration-Docker---.NET---SQL-SERVER

No arquivo program.cs adicione a linha de codigo abaixo

builder.Services.AddHttpsRedirection(options =>
{
    options.RedirectStatusCode = Status308PermanentRedirect;
    options.HttpsPort = 3001;
});

enter image description here

if (app.Environment.IsDevelopment())
{
    app.UseSwagger();
    app.UseSwaggerUI();

    var application = app.Services.CreateScope().ServiceProvider.GetRequiredService<ApplicationDbContext>();

    // Utilizando o migration a execução do container docker não é necessario as linhas abaixo
    var pendingMigrations = await application.Database.GetPendingMigrationsAsync();
    if (pendingMigrations != null)
        await application.Database.MigrateAsync();
}

enter image description here

Atualize seu arquivo dockerfile confirme codigo abaixo adicionando as linhas do migration

# Esta fase é usada durante a execução no VS no modo rápido (Padrão para a configuração de Depuração)
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
USER app
WORKDIR /app
EXPOSE 3000
EXPOSE 3001


# Esta fase é usada para compilar o projeto de serviço
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
ARG BUILD_CONFIGURATION=Release
WORKDIR /src
COPY ["project/project.csproj", "project/"]
COPY ["Thunders_Repositories/Thunders_Repositories.csproj", "Thunders_Repositories/"]
COPY ["Thunders_Borders/Thunders_Borders.csproj", "Thunders_Borders/"]
COPY ["Thunders_UseCases/Thunders_UseCases.csproj", "Thunders_UseCases/"]
RUN dotnet restore "./project/project.csproj"
COPY . .
WORKDIR "/src/project"
RUN dotnet tool install --global dotnet-ef 
ENV PATH="$PATH:/root/.dotnet/tools"
RUN dotnet build "./project.csproj" -c $BUILD_CONFIGURATION -o /app/build
CMD dotnet ef database update --environment Development --project src/project_Repositories

# Esta fase é usada para publicar o projeto de serviço a ser copiado para a fase final
FROM build AS publish
ARG BUILD_CONFIGURATION=Release
RUN dotnet publish "./project.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false

# Esta fase é usada na produção ou quando executada no VS no modo normal (padrão quando não está usando a configuração de Depuração)
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "project.dll"]

O codigo abaixo pertence ao docker-compose, atualize o seu conforme necessidade.

services:
  project:
    environment:
      - ASPNETCORE_ENVIRONMENT=Development
      - ASPNETCORE_HTTP_PORTS=3000
      - ASPNETCORE_HTTPS_PORTS=3001
    container_name: project
    image: ${DOCKER_REGISTRY-}project
    build:
      context: .
      dockerfile: project/Dockerfile   
    ports:
      - "3000:3000"
      - "3001:3001"
    volumes:
      - ${APPDATA}/Microsoft/UserSecrets:/home/app/.microsoft/usersecrets:ro
      - ${APPDATA}/ASP.NET/Https:/home/app/.aspnet/https:ro
    networks:
      - compose-bridge
    depends_on:
      sqlserver:
        condition: service_healthy

  sqlserver:
    image: mcr.microsoft.com/mssql/server:2022-preview-ubuntu-22.04
    container_name: sqlserver    
    ports:
      - "1433:1433"
    environment:
      - SA_PASSWORD=passwork 'não pode ser uma senha fraca, sql nao funciona. nada de usar 123456 hehehehe'
      - ACCEPT_EULA= Y       
    volumes:
      - ./sqlserver/data:/var/opt/mssql/data
      - ./sqlserver/log:/var/opt/mssql/log   
    networks:
      - compose-bridge 
    healthcheck:
      test: /opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P "leoQueres123" -Q "SELECT 1" -b -o /dev/null
      interval: 10s
      timeout: 3s
      retries: 10
      start_period: 10s  

volumes: 
  sqlserver:

networks:
  compose-bridge:
    driver: bridge
  

Espero ter ajudado.

Reasons:
  • Blacklisted phrase (2): Espero
  • Blacklisted phrase (1): enter image description here
  • Blacklisted phrase (1): está
  • Blacklisted phrase (1): não
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Leonardo Queres

79159843

Date: 2024-11-05 16:06:18
Score: 2.5
Natty:
Report link

I've just seen this post. You've probably resolved it since then, but the root cause of the error you are facing is that support for M365 mailboxes was not added until the 9.1.7 release of Datacap.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: lionelblak

79159841

Date: 2024-11-05 16:06:18
Score: 3
Natty:
Report link

Late to the party, but if you are using facet_wrap, just make sure to set scales = "free", and it will show each axes on every facet.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: croutonbabe

79159828

Date: 2024-11-05 16:02:17
Score: 0.5
Natty:
Report link
rpi ~$ cat /etc/apt/sources.list
deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi

rpi ~$ cat /etc/apt/sources.list.d/raspi.list
deb http://archive.raspberrypi.org/debian/ buster main
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspberrypi.org/debian/ buster main 
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Khalid Nisar

79159812

Date: 2024-11-05 15:57:16
Score: 2
Natty:
Report link

Normally this happens when there is a mismatch between your variables or the result you are returning. Make sure the variables and the result being returned are the same with the query 100%.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Baboucarr Badjie

79159810

Date: 2024-11-05 15:57:16
Score: 0.5
Natty:
Report link

liquid and Newtonsoft don't support JSON Schema Draft 2020-12 which is what OpenAPI 3.1 is based upon.

If you want another solid .Net package, you can try https://www.nuget.org/packages/JsonSchema.Net.OpenApi

Reasons:
  • Low length (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Jeremy Fiel

79159804

Date: 2024-11-05 15:55:15
Score: 3.5
Natty:
Report link

can you solve your problem? I have problem like your problem!

0:00:11.659570863 486226      0x5ececc0 ERROR        rtpjitterbuffer gstrtpjitterbuffer.c:1401:gst_jitter_buffer_sink_parse_caps:<jitterbuffer> Got caps with wrong payload type (got 127, expected 101)
Reasons:
  • RegEx Blacklisted phrase (1.5): solve your problem?
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): can you solve you
  • Low reputation (1):
Posted by: hassan rahimi

79159801

Date: 2024-11-05 15:53:15
Score: 1.5
Natty:
Report link

Set Cookies on the Server:

Set cookies from your Express API in the backend rather than directly in the frontend. This approach helps keep sensitive data more secure and avoids potential issues with client-side manipulation. When a user logs in, you can create a session token (like a JWT or a session ID) and set it as an HTTP-only cookie. HTTP-only cookies are not accessible from JavaScript, so they provide an additional layer of security.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Santhosh

79159798

Date: 2024-11-05 15:52:15
Score: 2
Natty:
Report link

I needed to do something similar in order to find the most uniform way to split lines with the added wrinkle that invisible markup tags may be present.

This problem ended up being more interesting to solve than I initially thought. I used recursion to create possible layouts around word boundaries. Then sort the layouts to find the best one.

The returned result is not justified, but will straight forward to justify the text using this result as it provides the optimal starting point given the defined line length/ line count criteria.

Here is the c# code.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Contains signature (1):
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: dynamicbutter

79159797

Date: 2024-11-05 15:52:15
Score: 1
Natty:
Report link

So I was able to finally find the issue. I was debating if I should delete my question but maybe somebody else has a similar issue in the future.

So my services (Telemetry and Customer) are running in a Kubernetes cluster. The issue was that Telemetry's "GET" request was going through another resource. So the request that the Customer received had the Parent Spand ID from that in-between service. I reconfigured the communication to happen directly between the services and now I get the results I expected.

In the end, it was a networking miss-configuration, not an Open Telemetry miss-configuration.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Metalzero2

79159780

Date: 2024-11-05 15:44:10
Score: 6.5 🚩
Natty: 4.5
Report link

I don't see an answer to the original question. I want to use FFMPEG to rewrap .dv files into DV wrapped MOV via -c copy but FFMPEG doesn't automatically write the CLAP atom. That results in the production aperture being displayed. Is there a way to manually specify that FFMPEG insert a clap atom?

Reasons:
  • Blacklisted phrase (1): Is there a way
  • RegEx Blacklisted phrase (1): I want
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Kevin

79159777

Date: 2024-11-05 15:43:10
Score: 1.5
Natty:
Report link

If you're having trouble with RTL TextInput:

inputexample: {
 writingDirection: "rtl"
}

Found this style prop after hours of searching the internet

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: DotWiz

79159776

Date: 2024-11-05 15:43:10
Score: 1
Natty:
Report link

This is what works for me:

RendererManager rendererManager = ComponentAccessor.getComponent(RendererManager.class);
JiraRendererPlugin renderer = rendererManager.getRendererForType("atlassian-wiki-renderer");
String output = renderer.render(issue.getDescription(), issue.getIssueRenderContext());

Source: How to convert JIRA wiki markup to HTML programmly using Atlassian native API?

Reasons:
  • Whitelisted phrase (-1): works for me
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: Robert

79159771

Date: 2024-11-05 15:40:09
Score: 3.5
Natty:
Report link

I ran into this error, there was a library deleted that the editor was still looking for. Delete the library from your AppScript and it should be resolved

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Solved Error Code Not_Found

79159769

Date: 2024-11-05 15:40:09
Score: 1
Natty:
Report link

If, when running this tool, you get this error:

msys-1.0.dll: skipped because wrong machine type.

To fix "wrong machine type":

The error appears when using the 64-bit version of rebase.exe Use the 32-bit version of rebase.exe

source: https://www.qnx.com/support/knowledgebase.html?id=5011O000001OLXD

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Alex473x

79159765

Date: 2024-11-05 15:39:09
Score: 1.5
Natty:
Report link

Which qmlls version do you use?

The Qt vscode extension doesn't start as default if the qmlls version is lower than 6.7.2 because qmlls before 6.7.2 is unstable. Using qt-qml.qmlls.customExePath might not help in that case. Please feel free to open a bug report here if it is newer than 6.7.2

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Orkun Tokdemir

79159764

Date: 2024-11-05 15:38:08
Score: 3
Natty:
Report link

You need to request location permissions from the OS for you app bb

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: johnhaup

79159763

Date: 2024-11-05 15:38:08
Score: 3.5
Natty:
Report link

Just found Microsoft Azure storage explorer

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: LJHHouston

79159759

Date: 2024-11-05 15:37:08
Score: 3
Natty:
Report link

Try using an https URL. It should work, tried at my end it is working.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Akshat

79159752

Date: 2024-11-05 15:36:07
Score: 3
Natty:
Report link

We have a question regarding an issue we're facing, which we believe may be related to your suggestion.

We're building a service that uses a custom JAR we created, but we're encountering an "artifact not found" error. Upon investigation, we noticed that our JAR includes the META-INF/maven folder.

Do you think excluding the META-INF/maven folder could resolve this issue, and would it be safe to do so?

Reasons:
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: vigneshwar reddy

79159751

Date: 2024-11-05 15:36:07
Score: 2
Natty:
Report link

I had a tricky problem here. I used a view instead of a table and the view has been not updated to include that column!

First in the view definition then in the apex sql that defines the view to be used as a data source of the interactive grid.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Dany

79159748

Date: 2024-11-05 15:35:07
Score: 0.5
Natty:
Report link

I had a similar error in a code that worked in 2023 and does not work anymore in 2024. The problem was solved by replacing : encoded_model = Model(inputs=NN_model.input,outputs=NN_model.layers[0].output) by encoded_model = Model(inputs=NN_model.layers[0].input,outputs=NN_model.layers[0].output) or by encoded_model = Model(inputs=NN_model.inputs,outputs=NN_model.layers[0].output) I hope this helps solving your problem.

Reasons:
  • Whitelisted phrase (-1): hope this helps
  • No code block (0.5):
  • Low reputation (1):
Posted by: omar al hammal

79159746

Date: 2024-11-05 15:35:07
Score: 3
Natty:
Report link

In Visual Studio Code settings, Find Terminal|Integrated: Send Keybindings to Shell and check it.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: David Luxford

79159742

Date: 2024-11-05 15:35:07
Score: 0.5
Natty:
Report link

To clone an instance in AWS, you can follow these general steps:

  1. Create an AMI (Amazon Machine Image) from the source instance:

    • In the EC2 console, select the instance you want to clone
    • Right-click and choose "Image and templates" > "Create image"
    • Provide a name and description for the AMI
    • Configure any additional settings if needed
    • Click "Create image"
  2. Wait for the AMI creation process to complete. This may take several minutes.

  3. Once the AMI is ready, launch a new instance using this AMI:

    • Go to the AMIs section in the EC2 console
    • Select your newly created AMI
    • Click "Launch instance from AMI"
  4. Configure the new instance:

    • Choose the instance type
    • Configure instance details (VPC, subnet, etc.)
    • Add storage if needed
    • Configure security groups
    • Review and launch
  5. Select or create a key pair for the new instance

  6. Launch the instance

This process creates a new instance that is essentially a clone of the original, with the same installed software and configurations as of the time the AMI was created.

Remember:

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Vishnu Ashok

79159738

Date: 2024-11-05 15:34:06
Score: 2
Natty:
Report link

There currently does not seem to be an advanced way to gain insights in why a build takes long.

Enabling the timestamps in the output window gave me enough insight to resolve the issue, which is enabled by clicking the icon on the right in the output window:

enter image description here

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Janneman96

79159734

Date: 2024-11-05 15:32:05
Score: 5
Natty: 7
Report link

I know this is an old post, but I needed an answer as well and found it here:

https://www.precedence.co.uk/wiki/Support-KB-Windows/ProfileStates

Reasons:
  • Blacklisted phrase (0.5): I need
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user28147098

79159731

Date: 2024-11-05 15:32:05
Score: 0.5
Natty:
Report link

I have resolved the issue with rate limiting for POST requests in my Spring Cloud Gateway application. The problem was that rate limiting requires an identifier for the entity accessing the gateway. For authenticated requests, this identifier is provided automatically. However, for POST requests without authentication, the gateway lacks this identifier and consequently blocks the requests.

Implement Custom KeyResolver

@Bean
public KeyResolver userKeyResolver() {
    return exchange -> Mono.just(exchange.getRequest().getRemoteAddress().getAddress().getHostAddress());
}

Then specify the KeyResolver in your configuration:

spring:
  cloud:
    gateway:
      default-filters:
        - TokenRelay=
        - name: RequestRateLimiter
          args:
            key-resolver: "#{@userKeyResolver}"
            redis-rate-limiter.replenishRate: 1
            redis-rate-limiter.burstCapacity: 1
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: White space

79159710

Date: 2024-11-05 15:25:03
Score: 0.5
Natty:
Report link

I found someone who helped me understand.

This was his explanation: The main thread that updates the UI needs to have some sort of "break" where it is able to update the UI. In my case the first two status updates invoking the Event were able to update the UI because immediately after them was an "await" that, once completed, provided the "break" that the main thread needed to update the UI, but all of my invocations of the event after that didn't have any "break" for the UI thread to update. I guess that when an async Task completes it interjects into the main thread letting it know it's done and that the main thread may need to do something now and that provides the opportunity to process the StateHasChanged() call.

So while I don't know if this is the best solution I was able to get my case working by making my OnStatusUpdated method async and slipping in an await immediately after invoking the event that updates the UI.

protected virtual async Task OnStatusUpdated(string statusText)
{
  StatusUpdated?.Invoke(this, statusText);
  await Task.Delay(1);
}
Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: HairyIce

79159707

Date: 2024-11-05 15:24:03
Score: 1
Natty:
Report link

My post was answered in the Mongo DB Community Forum.

https://www.mongodb.com/community/forums/t/atlas-search-across-enbedded-document-and-root-document-fields-using-compound-must/303015

Palyground with solved solution

https://search-playground.mongodb.com/tools/code-playground/snapshots/672a21d77816de283aa55341

This issue was solved by using the below search aggregation

Search

[
  {
    "$search": {
      "index": "default",
      "compound": {
        "must": [
          {
            "text": {
              "query": "big",
              "path": {
                "wildcard": "*"
              }
            }
          },
          {
            "text": {
              "query": "piano",
              "path": {
                "wildcard": "*"
              }
            }
          }
        ]
      }
    }
  }
]
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: O'Neil Tomlinson

79159704

Date: 2024-11-05 15:23:02
Score: 1.5
Natty:
Report link

Posting this as an answer as I don't have enough rep to comment.

If you are only interested in the local client manually leaving a Lobby, then you could just toggle a local flag before doing so. If a Client disconnects from a Lobby, but doesn't have this flag enabled, it means they got kicked out.

If you are instead interested in warning the Lobby host that a Client left manually, then you could first send an RPC from the Client to the Host, informing them before leaving. Manual disconnects are simpler to handle because you can write your code in a way that makes the disconnection process happen only after your own checks.

As for the LobbyDeleted event not firing, are you calling SubscribeToLobbyEventsAsync() first? The docs don't mention this, but maybe only the Host can receive a LobbyDeleted event?

There's also a KickedFromLobby event that you could try and use.

Reasons:
  • Blacklisted phrase (1): to comment
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Marco Vincenzi

79159701

Date: 2024-11-05 15:21:02
Score: 0.5
Natty:
Report link

I found that Odoo loads the core module, consider the field as required, it detect some records has no value then fill with the default value. This happens before my custom module is loaded, so nothing I can do, except monkeypatching.

I put this code on my custom module,

from odoo.addons.project.models.project import Project
Project.company_id.required = False

it gets loaded on python code compilation, so it does take effect when loading the core module

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Alesis Joan

79159692

Date: 2024-11-05 15:19:01
Score: 2
Natty:
Report link

Modify the HOME constant:

public const HOME = '/new_path';

Make sure you have a route defined for the new home path in your routes/web.php

Route::get('/new_path', [ExampleController::class, 'exampleMethod'])->name('new_path');

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: amr kahla

79159689

Date: 2024-11-05 15:19:01
Score: 1
Natty:
Report link

Assure that all remote branches are visible locally by using the command:

git fetch origin

Then to create a local branch that tracks the remote feature branch use the command:

git checkout -b <local-feature-branch> origin/<remote-feature-branch>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Nikol Stoyanova

79159686

Date: 2024-11-05 15:18:01
Score: 4
Natty:
Report link

HTMLSelectElement.selectedIndex = 0;

Link

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Has no white space (0.5):
  • Low reputation (1):
Posted by: Roma Ш.

79159680

Date: 2024-11-05 15:16:00
Score: 0.5
Natty:
Report link

I have created a silly workaround to run and build the docker image inside the docker compose, I used maven so you can replace accordingly with gradle, the concept is not complete but actually might show a way how to use just docker compose up to also build your image in behind via anything (docker in docker :-))

  context: ../MyService
  dockerfile_inline: |
    FROM ubi9:latest
    ENV DOCKER_HOST=tcp://127.0.0.1:2375
    RUN yum install -y yum-utils
    RUN yum-config-manager --add-repo https://download.docker.com/linux/rhel/docker-ce.repo
    RUN yum install docker-ce-cli -y
    COPY . .
    RUN --mount=type=cache,target=/root/.m2/repository mvn compile jib:dockerBuild
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: morapet

79159677

Date: 2024-11-05 15:15:00
Score: 3.5
Natty:
Report link

E is just a linear function can be auto parametrised so Need not to worry about it . you can also use Belu from PyTorch

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Awnish Ranjan

79159676

Date: 2024-11-05 15:13:59
Score: 5
Natty:
Report link

I am able to invoke and successfully trigger the LaunchRequest. However, after each user enters the PIN, I am receiving an error message. Instead of routing to the intended handler, the skill is going to InvocationIntent and SessionEndedRequest, and it is not reaching the SessionHandler as expected. How can I resolve this issue? The same skill and code are currently working in production, but they are not functioning in the development or test environment

{ "type": "SessionEndedRequest", "requestId": "amzn1.echo-api.request.37d31b46-c395-4767-a89f-474425078c38", "timestamp": "2024-11-05T15:00:47Z", "locale": "en-IN", "reason": "ERROR", "error": { "type": "INTERNAL_SERVICE_ERROR", "message": "Can't find skill bundle metadata for skillId amzn1.ask.skill.7c737edc-529e-4ad0-83dd-b9057b5b1bb9 locale en-IN stage development" } }

Reasons:
  • Blacklisted phrase (0.5): How can I
  • RegEx Blacklisted phrase (1.5): How can I resolve this issue?
  • RegEx Blacklisted phrase (1): I am receiving an error
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user28146775

79159674

Date: 2024-11-05 15:13:59
Score: 3
Natty:
Report link

git clone is the command which can be used to complete copy of repository from git hub to your server.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Saran Singamsetty

79159672

Date: 2024-11-05 15:13:59
Score: 1
Natty:
Report link

Your understanding of alias is correct. It looks like it's comes from the ” character instead of "

alias composer=”php /usr/local/bin/composer/composer.phar”

this is why you got

zsh: command not found: ”php

and not

zsh: command not found: php

Maybe try like this:

alias composer="php /usr/local/bin/composer/composer.phar"

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: MG1616

79159666

Date: 2024-11-05 15:11:58
Score: 1.5
Natty:
Report link

To remove a specific row from a TableLayoutPanel is as simple as this:

tableLayout.RowStyles.RemoveAt(1);

RemoveAt removes a row based on the index.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Randy Pena

79159665

Date: 2024-11-05 15:10:58
Score: 1
Natty:
Report link

For me the solution was to go to the Visual Studio Installer, select Modify for Visual Studio 2022, go to Individual Components, select and install the .NET SDK.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
Posted by: Johan Nordlinder

79159663

Date: 2024-11-05 15:10:58
Score: 1
Natty:
Report link

curses is part of the stdlib. It should be installed by default when you install a Python3 version on Linux https://docs.python.org/3/library/curses.html

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: gerardw

79159655

Date: 2024-11-05 15:08:57
Score: 4
Natty:
Report link

I had been looking on an Enterprise Account, but these entitlements are only available on App Store accounts:

Developer Portal - AppStore Account

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: marceloamx

79159651

Date: 2024-11-05 15:08:57
Score: 0.5
Natty:
Report link

Adding another example and full implementation based on the answer above by @hctahkram !

upstream-job

pipeline {
  agent any
  stages {
    stage("Trigger downstream job") {
      steps {
        script {
          buildResult = build(job: "downstream-job", wait: true)
          env.A = buildResult.buildVariables.A
        }
        sh("echo $A")
      }
    }
  }
}

downstream-job

pipeline {
  agent any
  stages {
    stage("Define A") {
      steps {
        script {
          env.A = "aaa"
        }
        sh("echo $A")
      }
    }
  }
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @hctahkram
  • Low reputation (0.5):
Posted by: maze

79159635

Date: 2024-11-05 15:06:57
Score: 2
Natty:
Report link

create table tbA ( id int, jsonData varchar(max) )

insert tbA values (1,'{"updated_at":1664296267649490}') ,(2,'{"updated_at":1632984531588160}')

select id,DATEADD(SECOND, (cast(JSON_VALUE(jsonData,'$.updated_at') as bigint) / 1000000), '1970-01-01 00:00:00') as dateConverted from tbA

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Fabio Ambrozio

79159622

Date: 2024-11-05 15:02:54
Score: 11.5 🚩
Natty:
Report link

has anyone found a solution to this problem? I'm stuck here too :(

Reasons:
  • Blacklisted phrase (2): anyone found
  • Blacklisted phrase (1): :(
  • RegEx Blacklisted phrase (1.5): I'm stuck
  • RegEx Blacklisted phrase (3): has anyone found
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Al3x

79159619

Date: 2024-11-05 15:02:54
Score: 1.5
Natty:
Report link

The culprit here was the storage account networking. I had it restricted to selected networks and apparently the VNET containing the ansible node controller was missing.

*Azure Portal -> Storage Account -> Security+Networking -> Firewall and Virtual Networks -> Check Allow Access From (All Networks / Selected Networks).

If it is checked for "Enabled from selected virtual networks and IP addresses" - It means the storage account is firewall restricted.*

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Amitabh Ghosh

79159612

Date: 2024-11-05 15:01:53
Score: 1
Natty:
Report link

I searched for this question and saw what the solution looked like, hope it helps someone

if you start WinappDriver.exe as admin, then your application will be launched as admin.

If you press shift + right button on winappdriver.exe and choose to run as another user, the application should run as the other user

Reasons:
  • Whitelisted phrase (-1): hope it helps
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: dvd07

79159608

Date: 2024-11-05 15:00:53
Score: 1.5
Natty:
Report link

You probably have to add an extra index for whl as per PyTorch official docs

This might fix the issue pip install torch==1.11.0+cu113 --extra-index-url https://download.pytorch.org/whl/cu113

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: da-veed

79159601

Date: 2024-11-05 14:58:53
Score: 0.5
Natty:
Report link

You can find some of these metrics in the System Tables and more specifically in the node_timeline table.

SELECT *
FROM system.compute.node_timeline
WHERE workspace_id = "<your_workspace_id"
AND cluster_id = "<your_cluster_id>"

System Table Query Example

It is also available visually in the Metrics Tab of your cluster.

https://<workspace_url>/compute/clusters/<cluster_id>/metrics 

enter image description here

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
Posted by: Axel R.

79159597

Date: 2024-11-05 14:57:52
Score: 2.5
Natty:
Report link

This library is for web applications. Please consider using this ant design library for react native https://rn.mobile.ant.design/docs/react/introduce

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Chefk5

79159596

Date: 2024-11-05 14:57:52
Score: 1
Natty:
Report link

As the laravel doc states:

Do not use excess indentation when writing Markdown emails. Per Markdown standards, Markdown parsers will render indented content as code blocks.

Remember that markdown will be interpreted spaces are blocks, - are lists, * is bold, etc.

I just stumbled upon the same issue and my fix was to eliminate indentation and empty lines in the content itself. like

@component('mail::message')
    <h3 >
    You registered at {{ $site_mame }}
    </h3>
    Best regards, <br>
    ...
@endcomponent

In my more complex example I had to do it that way:

@component('mail::message')
    <h2>Hello {{$body['name']}},</h2>
    <p>Cron {{$body['cronname']}} was successfully executed</p>
    <div>
    @foreach ($body['alerts'] as $alerts)
    <div>
    @foreach ($alerts as $alert)
    @foreach ($alert as $al)
    <p>{!! $al !!}</p>
    @endforeach
    @endforeach
    </div>
    @endforeach
    </div>
    <h3>Overview</h3>
    ...
@endcomponent
Reasons:
  • Blacklisted phrase (0.5): Best regards
  • Blacklisted phrase (1): regards
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Canelo Digital

79159587

Date: 2024-11-05 14:53:51
Score: 2
Natty:
Report link

In my case, the solution was install the Google Repository and Google Play Services.

In android studio go to: Tools > SDK Manager > SDK Tools

Select the Google Repository and Google Play Services. click aplly, wait to install and click ok

Example

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Thiago Araujo Cardoso

79159583

Date: 2024-11-05 14:53:51
Score: 2.5
Natty:
Report link
import * as SQLite from 'expo-sqlite/legacy';

using the legacy driver overcomes this successfully as it continues the "WebSQL-like API" https://docs.expo.dev/versions/latest/sdk/sqlite-legacy/

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: theblockstalk

79159580

Date: 2024-11-05 14:52:51
Score: 1
Natty:
Report link

The problem was the video itself. I created it as a clip of a larger video using a free online tool. Whatever that tool was, it did something to the video that Safari on iphone and only Safari on iphone did not like.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: LauraNMS

79159575

Date: 2024-11-05 14:51:51
Score: 4
Natty:
Report link

Sorry, I forgot to attach the rss resource usage picture after the final pressure test, rss occupies 1069m, which is very abnormal. Did the direct memory removal cause a leak? A look at the netty source code found no significant leaks enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: yujun liao

79159573

Date: 2024-11-05 14:51:51
Score: 0.5
Natty:
Report link

Key Differences:

When to Use Each:

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: esoteric elf

79159568

Date: 2024-11-05 14:50:50
Score: 2.5
Natty:
Report link

in flutter: extracting a widget

"A reference to an enclosing class method can't be extracted," ERROR

this happens when the widget we are trying to extract uses setState

(which is specific to statefull widgets)

and it means = NO ACCESS TO setState method

HOW TO FIX THIS?

  1. Extract as a function
  2. Extract as a widget a-Extract as a stateless widget b-Extract as a statefull widget:

b-1: Extract with a callBack: The widget is stateful, but it communicates state changes to its parent via the callback,this maintains a single source of truth for the state.

b-2: Extract without a callBack in this case every instance will have its own internal state(isolation). which leads to a difficulty for parent widget to control or access the state.

Mostly we either extract as a function, as a stateless widget, or as a statefull widget with a callback.

when to extract as a statefull widget without a callBack?

Reasons:
  • RegEx Blacklisted phrase (1.5): HOW TO FIX THIS?
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Nour El houda Akhdari

79159567

Date: 2024-11-05 14:50:50
Score: 0.5
Natty:
Report link

I think I understand what you want to do. First, we’ll add a new click event on the container.

Once a click is emitted, I need to calculate its position, and for that, I’ll need some information about the container:

Which gives us (in the order listed):

container.on("click", function(e) {
    let containerOffset = container.offset().left;
    let containerWidth = container.outerWidth();
    let clickX = e.pageX - containerOffset;
});

Now that we have this, we need to convert the click position into a percentage to adjust the slider relatively, ensuring it will position correctly regardless of the container’s width.

let widthValue = (clickX * 100) / containerWidth + "%";

Once that’s done, we can move our slider:

dragElement.css("left", widthValue);
resizeElement.css("width", widthValue);

Which gives us (With the example you provided):

$(document).ready(function() {
    
    // If the comparison slider is present on the page lets initialise it, this is good you will include this in the main js to prevent the code from running when not needed
    if ($(".comparison-slider")[0]) {
        let compSlider = $(".comparison-slider");
    
        //let's loop through the sliders and initialise each of them
        compSlider.each(function() {
            let compSliderWidth = $(this).width() + "px";
            $(this).find(".resize img").css({ width: compSliderWidth });
            drags($(this).find(".divider"), $(this).find(".resize"), $(this));
        });

        //if the user resizes the windows lets update our variables and resize our images
        $(window).on("resize", function() {
            let compSliderWidth = compSlider.width() + "px";
            compSlider.find(".resize img").css({ width: compSliderWidth });
        });
    }
});

// This is where all the magic happens
// This is a modified version of the pen from Ege Görgülü - https://codepen.io/bamf/pen/jEpxOX - and you should check it out too.
function drags(dragElement, resizeElement, container) {
    
    // This creates a variable that detects if the user is using touch input insted of the mouse.
    let touched = false;
    window.addEventListener('touchstart', function() {
        touched = true;
    });
    window.addEventListener('touchend', function() {
        touched = false;
    });
    
     container.on("click", function(e) {
    let containerOffset = container.offset().left;
    let containerWidth = container.outerWidth();
    let clickX = e.pageX - containerOffset;
    let widthValue = (clickX * 100) / containerWidth + "%";

    dragElement.css("left", widthValue);
    resizeElement.css("width", widthValue);
  });
    
    // clicp the image and move the slider on interaction with the mouse or the touch input
    dragElement.on("mousedown touchstart", function(e) {
            
            //add classes to the emelents - good for css animations if you need it to
            dragElement.addClass("draggable");
            resizeElement.addClass("resizable");
            //create vars
            let startX = e.pageX ? e.pageX : e.originalEvent.touches[0].pageX;
            let dragWidth = dragElement.outerWidth();
            let posX = dragElement.offset().left + dragWidth - startX;
            let containerOffset = container.offset().left;
            let containerWidth = container.outerWidth();
            let minLeft = containerOffset + 10;
            let maxLeft = containerOffset + containerWidth - dragWidth - 10;
            
            //add event listner on the divider emelent
            dragElement.parents().on("mousemove touchmove", function(e) {
                
                // if the user is not using touch input let do preventDefault to prevent the user from slecting the images as he moves the silder arround.
                if ( touched === false ) {
                    e.preventDefault();
                }
                
                let moveX = e.pageX ? e.pageX : e.originalEvent.touches[0].pageX;
                let leftValue = moveX + posX - dragWidth;

                // stop the divider from going over the limits of the container
                if (leftValue < minLeft) {
                    leftValue = minLeft;
                } else if (leftValue > maxLeft) {
                    leftValue = maxLeft;
                }

                let widthValue = (leftValue + dragWidth / 2 - containerOffset) * 100 / containerWidth + "%";

                $(".draggable").css("left", widthValue).on("mouseup touchend touchcancel", function() {
                    $(this).removeClass("draggable");
                    resizeElement.removeClass("resizable");
                });
                
                $(".resizable").css("width", widthValue);
                
            }).on("mouseup touchend touchcancel", function() {
                dragElement.removeClass("draggable");
                resizeElement.removeClass("resizable");
                
            });
        
        }).on("mouseup touchend touchcancel", function(e) {
            // stop clicping the image and move the slider
            dragElement.removeClass("draggable");
            resizeElement.removeClass("resizable");
        
        });
    
}
$maxWidth: 960px;
$minTablet: 767px;

@mixin media($size) {
    @if $size == 'tabletUpwards' {@media screen and ( min-width : $minTablet ) { @content; }}
}

body {
    position: relative;
    background-color: #DDDDDD;
    font-family: 'helvetica', sans-serif;
    font-weight: lighter;
    font-size: 14px;
    color: #555;
    margin: 0;
    padding: 0;
    min-width: 320px;
}

h1 {
    text-transform: uppercase;
    color: #333;
}

h3 {
    font-weight: lighter;
    color: #555555;
}

a {
    position: relative;
    color: #a8244f;
    text-decoration: none;
    &:before {
        content: "";
        height: 2px;
        position: absolute;
        bottom: -5px;
        left: 0;
        right: 0;
        background-color: darken(#a8244f, 10%);
        transform: rotateY(90deg);
        transition: transform 0.2s ease-in-out;
    }
    &:hover {
        color: darken(#a8244f, 10%);
        text-decoration: none;
        &:before {
            transform: rotateY(0deg);
        }
    }
}

.split {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: strech;
    p {
        flex-basis: 100%;
        @include media('tabletUpwards') {
            flex-basis: 48%;
        }
    }
}

nav.social {
    display: inline-block;
    padding: 0;
    margin-bottom: 18px;
    li {
        list-style: none;
        float: left;
        a {
            padding: 5px;
        }
        &:first-child a {
            padding-left: 0;
        }
    }
}

.container {
    position: relative;
    width: 100%;
    margin: 50px 0;
    .inner {
        position: relative;
        width: 100%;
        max-width: $maxWidth;
        margin: 0 auto;
        overflow: hidden;
        box-sizing: border-box;
        padding: 20px 30px;
        background-color: #EEE;
    }
}

.comparison-slider-wrapper {
    position: relative;
    width: 100%;
    margin: 20px 0;
    background-color: white;

    .comparison-slider {
        position: relative;
        width: 100%;
        margin: 0;
        border: 5px white solid;
        box-sizing: border-box;
        > img {
            width: 100%;
            height: auto;
            display: block;
        }

        .overlay {
            display: none;
            position: absolute;
            width: 250px;
            bottom: 20px;
            right: 20px;
            background-color: rgba(0, 0, 0, 0.4);
            padding: 10px;
            box-sizing: border-box;
            color: #DDD;
            text-align: right;
            @include media('tabletUpwards') {
                display: block;
            }
        }

        .resize {
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            width: 50%;
            overflow: hidden;
            > img {
                display: block;
            }
            .overlay {
                right: auto;
                left: 20px;
                text-align: left;
            }
        }

        .divider {
            position: absolute;
            width: 2px;
            height: 100%;
            background-color: rgba(256, 256, 256, 0.2);
            left: 50%;
            top: 0;
            bottom: 0;
            margin-left: -1px;
            cursor: ew-resize;
            &:before {
                content: "";
                position: absolute;
                width: 20px;
                height: 20px;
                left: -9px;
                top: 50%;
                margin-top: -10px;
                background-color: white;
                transform: rotate(45deg);
                transition: all 0.1s ease-in-out;
            }
            &:after {
                content: "";
                position: absolute;
                width: 12px;
                height: 12px;
                left: -5px;
                top: 50%;
                margin-top: -6px;
                background-color: white;
                transform: rotate(45deg);
                transition: all 0.1s ease-in-out;
            }
            &.draggable{
                &:before {
                    width: 30px;
                    height: 30px;
                    left: -14px;
                    margin-top: -15px;
                }
                &:after {
                    width: 20px;
                    height: 20px;
                    left: -9px;
                    margin-top: -10px;
                    background-color: #555;
                }
            }
        }
    }

    .caption {
        position: relative;
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
        font-size: 12px;
        font-style: italic;
    }
}

.suppoprt-me {
    display: inline-block;
    position: fixed;
    bottom: 10px;
    left: 10px;
    width: 20vw;
    max-width: 250px;
    min-width: 200px;
    z-index: 9;
    img {
        width: 100%;
        height: auto;
    }
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<div class="container">
 <div class="inner">
     
     <h1>Image Comparison Slider</h1>

     <h3>A cool way to show diferences between two image, using CSS3 and jQuery.</h3>
     
     <p>Checkout <a href="https://pnewton84.github.io/chindits-in-colour.html" target="_blank">this demo</a> by <a href="https://twitter.com/pnewton84" target="_blank">Pault Newton</a> on his blog.</p>
     
     <!-- COMPARISON SLIDER CODE START -->
     
     <div class="comparison-slider-wrapper">
        <!-- Comparison Slider - this div contain the slider with the individual images captions -->
        <div class="comparison-slider">
            <div class="overlay">And I am the <strong>after</strong> image.</div>
         <img src="https://raw.githubusercontent.com/Mario-Duarte/CodePen/main/assets/marioPhoto-2.jpg" alt="marioPhoto 2">
         <!-- Div containing the image layed out on top from the left -->
         <div class="resize">
             <div class="overlay">I am the <strong>before</strong> image.</div>
            <img src="https://raw.githubusercontent.com/Mario-Duarte/CodePen/main/assets/marioPhoto-1.jpg" alt="marioPhoto 1">
         </div>
         <!-- Divider where user will interact with the slider -->
         <div class="divider"></div>
        </div>
        <!-- All global captions if exist can go on the div bellow -->
        <div class="caption">I am the caption for the comparison slider and i can give in more detail a context off what you looking at, in this case we are looking at a demo of the comparison slider :)</div>
     </div>
     
     <!-- COMPARISON SLIDER CODE END -->
     
     <div class="split">
        <p>Cupcake ipsum dolor sit amet tart sesame snaps I love tart. Macaroon I love chocolate cake cupcake wafer oat cake carrot cake. Halvah lemon drops icing. Jelly beans I love lollipop danish. I love chupa chups gummi bears donut toffee. Fruitcake halvah chocolate bar chocolate. Apple pie danish liquorice sugar plum apple pie cheesecake. I love dessert caramels carrot cake cheesecake carrot cake dessert.</p>

        <p>Icing biscuit I love pudding I love. Tart tart marshmallow fruitcake cookie bear claw jujubes I love. Soufflé I love candy fruitcake pie cake gingerbread chocolate bar. Sesame snaps pudding candy. Pudding croissant candy canes gummies chocolate tart cheesecake. Gummies chupa chups candy canes tiramisu carrot cake gummi bears tart. I love toffee powder. Pie cake I love cupcake oat cake tootsie roll chocolate bar I love.</p>
     </div>
     
     <p><strong>Photography by</strong> <a href="http:mariodesigns.co.uk/" target="blank">Mario Duarte</a></p>

         <nav class="social">
             <li><strong>Follow me on: </strong></li>
             <li><a href="https://dribbble.com/MDesignsuk" target="_blank"><i class="fa fa-dribbble" aria-hidden="true"></i></a></li>
             <li><a href="https://www.behance.net/mdesignsuk" target="_blank"><i class="fa fa-behance" aria-hidden="true"></i></a></li>
             <li><a href="http://codepen.io/MarioDesigns/" target="_blank"><i class="fa fa-codepen" aria-hidden="true"></i></a></li>
             <li><a href="https://bitbucket.org/Mario_Duarte/" target="_blank"><i class="fa fa-bitbucket" aria-hidden="true"></i></a></li>
             <li><a href="https://github.com/Mario-Duarte" target="_blank"><i class="fa fa-github" aria-hidden="true"></i></a></li>
             <li><a href="https://twitter.com/MDesignsuk" target="_blank"><i class="fa fa-twitter" aria-hidden="true"></i></a></li>
             <li><a href="https://www.instagram.com/m.duarte_/" target="_blank"><i class="fa fa-instagram" aria-hidden="true"></i></a></li>
             <li><a href="https://www.facebook.com/mariodesigns/" target="_blank"><i class="fa fa-facebook-official" aria-hidden="true"></i></a></li>
         </nav>

 </div>
</div>

<a class="suppoprt-me" href="https://www.buymeacoffee.com/marioduarte" target="_blank"><img src="https://img.buymeacoffee.com/button-api/?text=Buy me a Coffee&nbsp&emoji=&slug=marioduarte&button_colour=FF5F5F&font_colour=ffffff&font_family=Cookie&outline_colour=000000&coffee_colour=FFDD00"></a>

Reasons:
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (0.5): check it out
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: TheZerbibi

79159548

Date: 2024-11-05 14:46:49
Score: 2.5
Natty:
Report link

For those interested, here is how I did this in JavaLite: https://github.com/javalite/javalite/blob/master/embedded-tomcat/src/main/java/org/javalite/tomcat/EmbeddedTomcat.java

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: ipolevoy

79159546

Date: 2024-11-05 14:45:49
Score: 1
Natty:
Report link

try updating your .babelrc to this:

{
    "presets": ["@babel/preset-env"],
    "sourceType": "script"
}

the issue is likely because babel is treating your code as a module by default, which enforces strict mode and makes 'package' a reserved word. setting sourceType to "script" should fix it.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: scar17off

79159537

Date: 2024-11-05 14:43:48
Score: 3
Natty:
Report link

Answering my own question, so others having same issue might find a easier solution than spending 3 days debugging.

Apparently this is intended as of sometime in 2017 where chromium introduced this as a feature to save resources ( wich is a valid point ) - see here: https://issues.chromium.org/issues/40492976 Sadly this breaks user expectations, if i have a videoelement with autoplay = true, it sends an pause event if the videoelement is not in view (either detached, another tab, or if its just out of scroll view). This should be expected to play the video track instead of pausing it behind the scenes.

Another resource about this implementation is here: https://developer.chrome.com/blog/media-updates-in-chrome-61#background-video-track-optimizations

Initially i tried canceling the onpause event but that didnt work so i tried the following that both worked:

1) Append it to the document body, layer it on top of my canvas and set visibility:hidden; (display:none fails with same reasoning, so use visibility:hidden)

2) when stream is optained, and the detached videoelement is created, set the src = stream & call videoElement.play() manually

I ended up using uption 2

This felt like the most sane workaround, i dont manipulate any pause events that might be used elsewhere, and i dont have to append the videoelement and hacky position it over my canvas to keep it shown in view with the canvas at all times while still hiding it. here i simply play manually, wich doenst work automatically with autoplay in this situation where pause events are sent.

it still feels hacky, and weird that firefox handles this in a much better way, atleast autoplay = true, should not care about the videoelement being detached or not.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Me too answer (2.5): having same issue
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: robskaar

79159532

Date: 2024-11-05 14:41:47
Score: 1.5
Natty:
Report link

Do you use H2 as embedded database for tests ? I stumbled across the same problem, whereas if using an actual database (eg. Postgresql a proper UUID is returned) everything worked fine.

The issue on H2 target a discussion on Hibernate bug tracker, but the solution is somewhat unclear.

Reasons:
  • Whitelisted phrase (-1): solution is
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: GradedJestRisk

79159528

Date: 2024-11-05 14:40:47
Score: 3.5
Natty:
Report link

Seems like the colored crate has a function for this, should have checked earlier.

https://docs.rs/colored/2.1.0/colored/control/fn.set_override.html

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Surasia

79159515

Date: 2024-11-05 14:36:46
Score: 2.5
Natty:
Report link

The previous answer explains the why. My setting is managed by corporate so I can't change it. I just started using github copilot, but I have found using the inline copilot feature alleviates the public code issue encountered in the chat. Highlight section of code and right click to engage copilot.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: lecleard

79159509

Date: 2024-11-05 14:34:46
Score: 3
Natty:
Report link

I faced with the similar issue with another backend server using IIS and found that the root cause of the issue is the IIS Cert Handshake. You need to take the steps mentioned in this document to resolve the issue.

Reasons:
  • Blacklisted phrase (1): this document
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Katayoon

79159505

Date: 2024-11-05 14:33:45
Score: 5
Natty:
Report link

I stumbled onto this site while trying to find out what reindent was I’m not trying to mess up the conversation on how to apply it in code or whichever that’s way over my head, but could somebody tell me what it is because it follows me from one phone to the next whenever I back up my phone and get a new one is hidden

Reasons:
  • RegEx Blacklisted phrase (2.5): could somebody tell me what
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Tommy

79159493

Date: 2024-11-05 14:30:44
Score: 3
Natty:
Report link

I have updated the cache policy for CloudFront Distribution's -> behavior and made it as 'Caching Disabled'. This has loaded the content immediately for me.

cache disbaled

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Praveen Pujar

79159486

Date: 2024-11-05 14:29:44
Score: 3
Natty:
Report link

I was just wondering whether we can be able to get any documentation on how we can run using appium. We are enterprise user.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: magad

79159483

Date: 2024-11-05 14:28:43
Score: 5.5
Natty:
Report link

¿Con quién puedo hablar dentro de tu empresa para comentar la posibilidad de que aparezcáis en prensa? Hemos conseguido que negocios como el tuyo sean publicados en periódicos como La Razón o MSN, entre muchos otros (como noticia y no será borrada).

¿Qué consigues con esto?

Incrementar el posicionamiento de tu página web Reforzar la reputación de tu negocio Aumentar la confianza que ofrece tu marca en internet

Trabajamos con tarifas desde 99e, sin permanencia y con garantía de devolución por resultados.

Te puedo enseñar ejemplos y casos de éxito en video para que veas cómo funciona.

¿Podrías facilitarme tu teléfono?

Un saludo.

Reasons:
  • Blacklisted phrase (1): ¿
  • Blacklisted phrase (1): cómo
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Alma

79159480

Date: 2024-11-05 14:28:41
Score: 11 🚩
Natty:
Report link

Same problem, too. I cannot understand i already got connection but Connection object cannot used. Did you solve it?

Reasons:
  • Blacklisted phrase (0.5): I cannot
  • RegEx Blacklisted phrase (3): Did you solve it
  • RegEx Blacklisted phrase (1.5): solve it?
  • RegEx Blacklisted phrase (1): Same problem
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: ywj

79159460

Date: 2024-11-05 14:21:40
Score: 2.5
Natty:
Report link

Won't this work?

public IEnumerable<(Class1?, Class2?)> DoSmth()
{
   foreach (...)
   {
      var output = DoComplexCalc();
      
      if (output.Whatever)
      {
         yield return (new Class1(output), null);
      }
      else
      {
         yield return (null, new Class2(output));
      }
   }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Tayo

79159456

Date: 2024-11-05 14:20:39
Score: 1
Natty:
Report link

I got a solution -> http://blog.functionalfun.net/2012/09/a-quick-guide-to-registration-free-com.html#:~:text=If%20you%20have%20a%20Unit%20Test%20which%20tries%20to%20create

[...]unit tests are actually being run in a different process (for example, the Resharper.TaskRunner), and the manifest file which you so carefully crafted for your exe is being ignored. Only the manifest on the entry executable is taken into account, and since that’s a generic unit test runner it says nothing about your COM dependencies.

But there’s a workaround. Win32 has some APIs –the Activation Context APIs- which allow you to manually load up a manifest for each thread which needs to create COM components.

This code might also help -> https://gist.github.com/LevYas/7275c6f4e402b99a7512547b98b33632

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Peter Jaghorn

79159454

Date: 2024-11-05 14:19:39
Score: 0.5
Natty:
Report link

This error (_0_0. call$1 is not a function) frequently arises from problems with Webpack and styles following significant updates. Make sure to verify the compatibility of your SASS-related packages with Next. js 15 when using SCSS modules.

Update sass and sass-loader to their latest versions by executing:

npm install sass@latest sass-loader@latest

After that, remove any cache by deleting. next and node_modules directories, and proceed to reinstall the dependencies using npm install. If you have custom Webpack configurations in your next. config. js file, try temporarily commenting them out and rebuilding the project to check if they are causing compatibility issues. If this guidance proves helpful, re-enable configurations one by one to pinpoint the issue.

You might want to consider reverting CSS-related dependencies (such as sass or postcss-loader) to their previous versions if recent updates have caused conflicts. You have the option to utilize npx npm-check-updates to identify any version discrepancies.

For the final test, you can disable CSS modules by simply renaming file. module. scss to file. scss and importing it globally in _app. tsx. If the problem is solved, it probably indicates a conflict in handling CSS modules. You may want to consider going back to Next. js 15. 0. 1 as an option to investigate any possible issues with the current version.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Veeee

79159453

Date: 2024-11-05 14:19:39
Score: 4
Natty: 4.5
Report link

So what's the recommendation for strict mode after 7.0?

Having a test NOT fail when steps are undefined is very clearly a horrible design. S there a way now to make it fail when the step is undefined, but isn't WIP?

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Colin Heyl

79159451

Date: 2024-11-05 14:19:39
Score: 3
Natty:
Report link

No, Firefox no comunica que está siendo automatizado a los sitios web en forma alguna, envía cabeceras normales, y las galletas que correspondan,para el sitio web está recibiendo a un usuario normal y corriente. Hay sitios web que detectan una excesiva velocidad de acción, o lo contrario, unas pausas demasiado largas.

Reasons:
  • Blacklisted phrase (1): está
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: iskraelectrica

79159450

Date: 2024-11-05 14:18:38
Score: 1
Natty:
Report link

Replying to @harrie-pieters

If you look at the documentation, https://docs.expo.dev/versions/latest/sdk/sqlite/, there is no longer openDatabase only SQLite.openDatabaseSync (and SQLite.openDatabaseAsync). So my guess is changing openDatabase to openDatabaseSync should solve the issue (untested though).

import * as SQLite from 'expo-sqlite';

// overwrite the `openDatabase()`
SQLite.openDatabase = SQLite.openDatabaseSync;

However this continues to call problem because the openDatabaseSync() and openDatabaseAsync() return type also does not match the typeorm driver spec. I get databaseConnection.transaction is not a function (it is undefined)

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @harrie-pieters
  • Low reputation (1):
Posted by: theblockstalk

79159439

Date: 2024-11-05 14:15:37
Score: 4.5
Natty: 5.5
Report link

header..blade.php?? ..update:header.blade.php.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: محمود ابو حصيرة

79159438

Date: 2024-11-05 14:15:37
Score: 1
Natty:
Report link

In my bazelrc file I commented out the line:

#build --copt -g

And now it does show the details of the link error including the function which was not found.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: Andrey Rubliov

79159431

Date: 2024-11-05 14:14:36
Score: 2.5
Natty:
Report link

If you mean if you can type a component Ref yes you can. Since vue 3.5 you can type a component template ref :100 https://vuejs.org/guide/typescript/composition-api.html#typing-component-template-refs

For other types. When you search for something there is always a section for typing.

For a general typescript overview https://vuejs.org/guide/typescript/overview.html

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: devnik

79159430

Date: 2024-11-05 14:14:36
Score: 4.5
Natty:
Report link

I am facing the same issue, but only on some systems!

my knowledge:

It works not correctly, if Pygments is installed ( css-trouble with display: inline ) It works correctly, if you remove the Pygments module.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I am facing the same issue
  • Low reputation (1):
Posted by: Bernd Benner

79159426

Date: 2024-11-05 14:12:35
Score: 3
Natty:
Report link

you can type "web" in the pprof terminal to get a visualization webpage, it can be useful to understand the profile data

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: patrick zhang

79159425

Date: 2024-11-05 14:11:35
Score: 5.5
Natty:
Report link

Would you mind sharing a full-screen IDE screenshot with visible .csproj content and NuGet tool window where you are at the moment before pressing "Upgrade"? Also, what is the TargetFramework for your project, and do you have reasons not to use instead of ?

Reasons:
  • Blacklisted phrase (2): Would you mind
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Dmitry Kazantsev

79159422

Date: 2024-11-05 14:09:32
Score: 6 🚩
Natty:
Report link

'''

No module named 'lib2to3'

'''

Reasons:
  • Low length (2):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • No latin characters (3):
  • Low reputation (1):
Posted by: not_a_stay

79159421

Date: 2024-11-05 14:09:32
Score: 1.5
Natty:
Report link

The firebase docs provides more information for your error: https://firebase.google.com/docs/auth/admin/errors

The credential used to authenticate the Admin SDKs cannot be used to perform the desired action. Certain Authentication methods such as createCustomToken() and verifyIdToken() require the SDK to be initialized with a certificate credential as opposed to a refresh token or Application Default credential. See Initialize the SDK for documentation on how to authenticate the Admin SDKs with a certificate credential.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: StackOverHoes

79159414

Date: 2024-11-05 14:08:32
Score: 1
Natty:
Report link

If you want to set the id of your body globally, your nuxt.config.ts should look something like this.

export default defineNuxtConfig({
  app: {
    head: {
      bodyAttrs: {
        id: 'your-body-id',  // Replace with your desired ID
      }
    }
  }
})
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Paul

79159410

Date: 2024-11-05 14:07:32
Score: 2
Natty:
Report link

You saved me, I am very grateful. This problem has been bothering me for over a month, and I have tried various solutions over the past month, but all have ended in failure. In the end, I found an issue in your post, so my device does not support cl.exe for x86 programs to compile CUDA source files, and must use cl.exe with x64 architecture. Based on this idea, I modified the environment variables, removed their x86 path, and added the path of the x64 program, which solved the problem.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: kirk

79159407

Date: 2024-11-05 14:07:31
Score: 5.5
Natty:
Report link

I get the same error and the tips above help me. You need just go to Pub/Sub service on interface, select any topic and click in Trigger Cloud Function, if the permissions aren't ok, will look like this:

https://i.sstatic.net/psAn8lfg.png

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (1): I get the same error
  • Low length (0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I get the same error
  • Low reputation (1):
Posted by: Dauberson Mol

79159406

Date: 2024-11-05 14:06:29
Score: 6 🚩
Natty: 5.5
Report link

Are those slides from Pitt CS1501?

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Andrew YC

79159393

Date: 2024-11-05 14:03:28
Score: 5.5
Natty: 4.5
Report link

I am trying to fetch YouTube subtitles using PHP, but I am encountering difficulties. Specifically, I cannot retrieve the subtitles using the typical methods, such as file_get_contents or curl_init. I would like to know how I can manage this process effectively in PHP without relying on those functions.

Additionally, I have created a project in Google Cloud Console and set up the necessary credentials, but I am still not able to retrieve the subtitles from YouTube. I would appreciate any guidance on how to properly configure my PHP code to successfully obtain YouTube subtitles and any steps I may need to follow in the Google Cloud Console to ensure everything is set up correctly.

Thank you for your help!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1.5): I would like to know
  • Blacklisted phrase (1): I am trying to
  • Blacklisted phrase (0.5): I cannot
  • Blacklisted phrase (1.5): would appreciate
  • Whitelisted phrase (-0.5): Thank you for your help
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ankit Singh

79159392

Date: 2024-11-05 14:03:28
Score: 1.5
Natty:
Report link

You can also create your own repository implementation and use the entity manager to call createNativeQuery, here is an interesting link explaining the steps to do it. I already did that in my project and it worked perfectly

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: raclucard

79159388

Date: 2024-11-05 14:01:27
Score: 1
Natty:
Report link

Problem Solved! I add code below into /etc/ssl/openssl.cnf file:

[openssl_init]
ssl_conf = ssl_configuration    # Section must be registered here

# I adding new section in the end of the file:

[ssl_configuration]
system_default = tls_system_default

[tls_system_default]
MinProtocol = TLSv1
CipherString = DEFAULT@SECLEVEL=0
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: enmeydan

79159387

Date: 2024-11-05 14:01:27
Score: 1.5
Natty:
Report link

Years later, simply set

export ELECTRON_OZONE_PLATFORM_HINT=wayland

This does the same as specifying --ozone-platform=wayland, when starting the program.

See https://www.electronjs.org/docs/latest/api/environment-variables#electron_ozone_platform_hint-linux.

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
Posted by: sebastian

79159381

Date: 2024-11-05 13:59:27
Score: 0.5
Natty:
Report link

I believe you just missed the data property. When you retrieve data through an api call normally the response wrap with the data property, so changing your code like following should fix the issues:

 const result = await getDataToExport();
 const CSVData = getCSVColumnsData(result.data);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Saidur Rahman

79159377

Date: 2024-11-05 13:57:26
Score: 2.5
Natty:
Report link
  1. Right click on console application.

  2. File nesting --> Add project settings. as shown in below image.

  3. .filenesting.json will be added.

    Visual Studio

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Phani Veludurthi

79159372

Date: 2024-11-05 13:55:25
Score: 0.5
Natty:
Report link

I understand this thread is SUPER old. But leaving an answer here anyway fpr anyone else looking this up.

Once you initially install nethunter using the command ./install-nethunter-termux it might just go straight back to the termux command line with nothing else. Then when typing in nethunter or nh (the shortened version that works as the same command), it says command not found.

At the point, run the ./install-nethunter-termux command AGAIN, but this time when you install it will say that it already has a file found, do you want to delete and re-download it. Click N. This will force it to basically unpack and use the root file previously downloaded.

Give it a few minutes to do its thing and you should see the title screen complete.

Now try running nethunter in the command line and Bing bang boom.

Hope this helped

Reasons:
  • Whitelisted phrase (-1): Hope this help
  • Long answer (-0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Chiefhomer

79159371

Date: 2024-11-05 13:55:25
Score: 2
Natty:
Report link

This solution worked for me

if you can't find this path just check ".../node_modules/metro-cache/src/stableHash.js

enter image description here

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Alistor

79159370

Date: 2024-11-05 13:54:24
Score: 12
Natty: 7.5
Report link

how did you solve this issue please?

Reasons:
  • RegEx Blacklisted phrase (3): did you solve this
  • RegEx Blacklisted phrase (1.5): solve this issue please?
  • RegEx Blacklisted phrase (1): solve this issue please?
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): how did you solve this is
  • Low reputation (1):
Posted by: khawla HSN

79159368

Date: 2024-11-05 13:54:24
Score: 1.5
Natty:
Report link

I had this same issue while troubleshooting another issue with deployment. In my case this happened because I stopped the app.

Turns out the triggers cannot be synced when the app is stopped.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: crunch

79159364

Date: 2024-11-05 13:52:23
Score: 4.5
Natty:
Report link

conda install --channel=conda-forge fuzzywuzzy

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Steve Welch