Latest Questions

Api server rest with crow

I am implementing a server rest using Crow. In my code i want to do some action before sending the response. These action are complimented in another class. it

Error Running the Application on Android Mobile

I was working on a small flutter project suddenly I couldn't run the app to any android mobile. (on Web it's running Perfectly). It Shows this Error: Could

TypeScript type for all derived interfaces

I have an interface inheritence hierarchy like this: interface IBase { type: stirng; } interface IDerived1 extends IBase { type: "Derived1"; } interface IDerive

Dynamically add textfields with a for each loop and a button in swiftUI

I am trying to use a ForEach loop to dynamically add textfields inside a form section with a button. Form { ForEach(0..<numberOfItems, id: \.

How to convert movies in mkv to mp4 in colab

I tried converting a mkv movie in my Google drive to mp4 so I can stream play it with Google drive player, so I used a popular ffmpeg colab note book and I got

How to get python backtraces for python in valgrind

I'm trying to find a file descriptor leak in python code with valgrind but the backtraces look like this: ==2169309== Open file descriptor 11: ==2169309== at

Execution failed for task ':vision-camera-code-scanner:checkDebugAndroidTestAarMetadata'

So I have been at this for a while now, I recently tried to add Detox tests to android in my react native projects. I followed the official Detox tutorial and t

Building kernel with `-save-temps`

I'm building the Linux Kernel with the gcc options -save-temps in order to see exactly how all the C files get preprocessed. I followed the instructions here, b

How to use multiprocess when input is a torch.tensor with gradient?

import torch.multiprocessing as mp import torch import time class test(): def __init__(self,X,Y): self.X=X #.share_memory_() self.Y=Y

how to repeat a block of code in bigquery for multiple columns?

I would like to repeat a block of code with a complex operation (defined in a subquery) for many columns in bigquery. I cannot find a better way than copy and p

Compiles in CMD line fine with GCC but Visual studios "expression must have constant value" [duplicate]

As title states the code compiles and outputs in the GCC just fine, I want to step by step follow the code in visual so I can make sure I full

Azure Synapse Serverless CETAS error "External table location is not valid"

I'm using Synapse Serverless Pool and get the following error trying to use CETAS Msg 15860, Level 16, State 5, Line 3 External table location path is not valid

Could not get version for google-chrome with the command: powershell "$ErrorActionPreference='silentlycontinue' using WebDriverManager with Selenium

When running a python script with selenium and chrome driver I am getting the error below. I use the script in question for some a pretty simple automation runn

Should PATH contain directories or full paths to binaries?

I am trying to set up a correct PATH, but I'm wondering what it should contain. If I have /usr/bin/ls /usr/local/bin/ls and I want to prefer the one in /usr/

nexus not accepting metadata file upload from maven

I setup a docker nexus with this docker-compose.yml: version: "3" services: nexus: restart: always image: sonatype/nexus3 container_name: nexus

Plot timeseries whit seaborn

I want to plot these 4 time series through the seaborn Library in Python: Thank you for your help totalcc=[cluster_center_1 ,cluster_center_2 ,clus

Checking if the entered date is the start of a quarter

Good afternoon! Can you please tell me how to implement a function that checks if the passed date is the beginning of the quarter? I tried to implement validati

Is the fill clause incompatible between versions 0.12.5 and 0.13 in the Apache IoTDB?

The sql statement below select sum(jiangyuliang) from root.disaster.sd.* where time>=2022-05-01T08:00:00 and time<=2022-05-01T23:00:00 FILL(0) align by d

Telegram bot - How can I create a popup message?

Thanks for reaching this feed. I would like to request the method/example/API doc for the popup "Spin Wheel" (see below image) in the Telegram doc. I have tried

how to make rest api private and just can called from api gateway server

How to make my rest api accessed from my api gateway only so another people cannot access directly e.g: curl http://ip:port/enpoint so how to make that rest ap

how to show a pdf fetched from an API response in flutter?

I am working in a project where I have to show certificate that the user finished a course, there is an URL of the API that uses the get method within a token t

Sort a Map<Integer, Map<Integer, Integer>> by value length

I want to sort a Map by value length. For example, I have this code: public static void main(String[] args) { Map<Integer, Map<Integer, Integer>>

Passing enum to argument of integral type

Consider the following code: enum ABC : char { a, b, c }; void ff(char c) { cout << "char\n"; } void ff(int i) { cout << "int\n"; } i

Matplotlib: connect medians of boxplots with a line [duplicate]

I would like to have a line connecting the medians or means of my boxplots. I use matplotlib. Is there any way to achieve this easily? import

Electron not starting properly due to SIGTRAP

I am getting into Electron to try to begin building desktop applications. I am running into this error: /home/me/dev/my-electron-app-2/node_modules/electron/dis

AWS CDK Credentials not found when Bootstrapping

I'm getting the following error within zsh when issuing the command: Command - ~ % cdk bootstrap aws://******/*region* Error (snip) - Environment aws://****

.NET 6.0 Blazor Server app: WebSocket connection to 'ws://localhost:60908/BlazorApp1/' failed

When I create a new, clean Blazor .NET 6.0 app and start it (using Visual Studio 2022), I see the following error in the browser console: WebSocket connection t

How can I add custom margin to the v-list element under v-menu in vuetify

there is another container that is being add by vuetify to the v-list Im trying to use as v-menu content,because of this container I can't just add a margin to

Covid-19 Growth rate (Bootstrapping/Time Series)

I am trying to code R in order to obtain growth rate for COVID-19. The equation can be found on the inserted image where i(t) is the number of infected individu

C Program, printf() and strlen() argument format for output

Why does my terminal crash when I attempt to run this C Program? Here are the instructions for the programming exercise. #include <stdio.h> #include <