Latest Questions

when i use uuid the code unexpected crash, and then works fine?

const express = require('express'); const { uuid } = require('uuidv4'); const app = express(); app.use(express.json()) const projects = []; app.post('/proj

Separating files based on file extension?

I want to separate the files in my models based on extension type. Right now I am able to print all the files but now I want to separate them based on extension

Xamarin Binding error: java.lang.NoSuchMethodError: No virtual method build()Lcom/google/android/exoplayer2/DefaultLoadControl

I have created a Binding Library for Triton Digital Mobile SDK and integrated it on my Xamarin.Android project. I have added this code to my project to test the

Add one object in list nested entity in EF Core

I create a repository layer in my app. I don't need all list EntityList. I want add in Foo.EntityList 1 object which equals entityId, and return foo in notImpor

Dynamic R objects using apply functions

I've got a long R code now and I'm trying to make it more readable. Below is a small chunk from my code - U2OverlayG1 <- GrowthorDiff(U2Overlay, Metadata, 1)

Junit5 test cases parallel with some test cases isolated required with class order to be maintained

In my product we have certain test cases that should be run in parallel and also certain test cases that should run in isolation mode I have been using this in

How to control the color of a specific column in a bar plot depending on it's xtick label?

I have a number of plots that show transcribed text from a speech to text engine in which I want to show the bars where the S2T engine transcribed correctly. I

How can I print the url to the order id field of my django form?

I am doing a simple form site with Django. This is what my sites url is looks like: mysite.com/register/12345678 I want to print the part after the register (12

Run shell script which is on hdfs location from a pyspark script

I have a requirement where i have to run call a shell script which is on hdfs location and run the shell script from a pyspark script. My code is something like

Event disappears on button Style designer

I would like to create a personalized style on expander in firemonkey. But when I want to add an event on a button (I replace the checkbox by a button that I ha

Copy common properties between objects in c#

Given this scenario: internal class FullLogin { public string username { get; set; } public string password { get; set; } public str

sqlalchemy Operational Error : Can't connect to MySQL server on aws rds

My database in hosted on AWS RDS. I am having connectivity issue and getting this error: sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003,

Pyspark - Find sub-string from a column of data-frame with another data-frame

I have two different dataframes in Pyspark of String type. First dataframe is of single work while second is a string of words i.e., sentences. I have to check

Azure DevOps Release Pipeline || To sign in, use a web browser to open

I created the aks cluster with azure service principal id and i provided the contributer role according to the subscription and resource group. For each and eve

asp.net core OAuth access_token verification fails with "IDX10609: Decryption failed. No Keys tried: token: 'System.String'.:"

I have a single page application in Blazor WASM that connects to OAuth0 and receives JWT token when a user get authenticated via OAuth. My OAuth application use

Swift - How to have multiple decoder method for a single model

struct Classroom: Codable { let teacher: String let id: Int let status: Bool init(from decoder: Decoder) throws { ... ... } }

Lose of only admin on Microsoft power platform

Microsoft Dynamics 365 (trial) During working on trial version of Dynamics, I came to set new BU and security roles. I've created new security roles, but they w

Can't resolve binding in bottom navigation view

I am getting error constantly in binding.bottom_navigation.setOnItemSelectedListener(item -> { I am attachig the code below please have a look and give some

ms graph upload session stream and response drive item

Requirement: upload a large file (4MB+) using MSGraph (onedrive or Sharepoint) and return its corresponding DriveID (i.e. DriveItem) This example uses PHP but I

Alert inside websocket open event

I have this code that alert("open") is displayed ok. var webSocket = new WebSocket("ws://localhost:8080/WebSocketServerExample/websocketendpoint"); webSocke

OpenGL Compute Shader: Writing to texture seemingly does nothing

I've found a handful of similar problems posted around the web an it would appear that I'm already doing what the solutions suggest. To summarize the problem; d

overload operator[][] for 2d vector [duplicate]

so currently i have to write a program in c++ where i have to create a class "CMyMatrix" and i wanted to know if its possible to overload the

Amlify react app throws Error: Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering

While running yarn build I get the following error: Error: Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rende

Connect to confluent schema registry SSL configuration - unable to find valid certification path to requested target

How should it be configured the spring-cloud-schema-registry-client to communicate with Confluent Schema Registry on a secured manner using SSL truststore? My c

how to insert data from list into excel in python

how to insert data from list into excel in python for example i exported this data from log file : data= ["101","am1","123450","2015-01-01 11:19:00","test1 test

I transferred my domain from http to https but google search console is still indexing http. How to solve it?

I have done redirection from 301k as well as from the .htaccess file. The thing is redirection is working fine but still can not index my HTTP

How can i achieve this viewpager animation using pagetransformer?

PREVIEW i have been trying to create this kind of viewpager animation couldn't grasp how the animation works and always mess up. Would be really helpful if som

Can't get the walrus operator to work (Python double list comprehension)

This list comprehension does not work: buy_prices = [(buylow := round(0.997 + ii/10000.0, 5), max(jj, buylow)) for jj in [buylow, 0.9982] for ii in range(21)]

How to fix 'no module named requests'

I have requests module installed but it shows an error when running .py file from cmd prompt. There are no errors when running the file from vscode.

How to fix the error where the target batch size does not match when I use CrossEntropyLoss function?

I am working on a trainning task with CNN. When I created the loss function with CrossEntropyLoss and trained the dataset, the error reminded me that the batch