Latest Questions

Proper use of pool.map

I have an asynchronous function that checks if the token is valid. I want to count how many working and non-working tokens. Also I use aiomultiprocess. The code

Cannot import name 'get' from partially initialized module 'requests'

I have problem with requests package. In past requests was working, but today for no reason it stopped working. I am just importing requests and it cause error.

how to get the caller's filename, method name in python

for example, a.boo method calls b.foo method. In b.foo method, how can I get a's file name (I don't want to pass __file__ to b.foo method)...

How to write c++ code to reverse a string without using inbuilt function?

I have write this code. It does not show any error but string is not reversed.please let me know where i have made the mistake? I'm using codeblock to write cod

quotas are exceeded error while deploying Vertex AI Matching Engine Index

I am following this example notebook and used custom word embeddings of my own. i am getting the following error while deploying the index at this step r = inde

Istio Envoy Filter BOOTSTRAP EXTENSION is not executing the WASM

istio/proxyv2:1.12.2 I'm trying to add a WASM file to the EnvoyFilter patching under the bootstrap_extensions. The Envoyfilter successfully is pushed but I coul

Array of structures, file opening, distance comparison

I'm trying to make an array of structures using data from a file, and then calculate the distance from a user inputted point to the closest data point. I am los

Why am I getting this MySQL error with node?

I have connected to the database on MySQL, and was able to input data to a table. However, I am not able to input data to another table when it seems that I'm u

Is there any way to print the pytest parameter names

Whenever pytest is outputting the tests that it has, it always prints out the parameter values, but never the names of the variables. For example: PASSED test_c

Webread Http Return header

I am using webread to read data from Azure Table Storage. If the queried data is above 1K rows, there are specific keys returned in the header when you preform

how to launch a Data Wizard (create diagram from a template) in Visio from Access

I'm trying to make a button in Access, that will open Visio and launch a Data Wizard to create a diagram. I've tried various solutions, but all I get is opening

Calculate changes in totals of subgroups in R

I have the following dataframe: # A tibble: 8 x 5 Year Group Unit Profit Sales <dbl> <chr> <chr> <dbl> <dbl> 1 2021 One

compare two separate data sets

is it possible to compare particular values from a table/report from power bi data set with another table from excel sheet? In the power bi data set i have the

Grab the first entry from json [duplicate]

I apologize ahead im really bad at explaining things. I have a variable with json data in it, the first entry in this json data will change bu

Azure Synapse Analytics Json Flatten

I'm new to Azure Synapse and currently have the following problem: I get a json that looks like the following: { "2022-02-01":[ { "shiftId": , "

Cosmwasm environment setup error: "first path segment in URL cannot contain colon"

I'm trying to go through the Cosmwasm docs and I'm stuck on the "Setting Up Environment" step. I'm on Ubuntu so when I put the parameters under #bash in my .bas

Unmarshall of string set in DynamoDB fails

I have tried to marshall DynamoDB's String Set and unmarshall it back as below. import {marshall, unmarshall} from '@aws-sdk/util-dynamodb'; test('Marshall and

SM2 algorithm, the length of public key encryption is inconsistent with the expectation

The public key encrypts a 48Char data, and the result is arranged according to the format of C1C3C2. C1 (randomly generating a point on the elliptic curve of SM

Proper use of pool.map

I have an asynchronous function that checks if the token is valid. I want to count how many working and non-working tokens. Also I use aiomultiprocess. The code

How to set up NestJS microservices integration/e2e testing KafkaJS consumer (MessagePattern/EventPattern handler)

I'm proofing out an integration test with NestJS/KafkaJS. I have everything implemented except the function on the event listener (consumer) for the topic I'm e

Grey screen in release mode (IOS - Flutter)

I am getting a grey screen on two pages in my app, I m facing this problem only in release mode when I installed it from TestFlight. there is no error in debug

MongoAutoConfiguration does not create MongoClient bean

I have just read Spring Boot configuration with Morphia? and I am trying to implement it like this. But I always get Field mongoClient in MorphiaAutoConfigurati

MongoAutoConfiguration does not create MongoClient bean

I have just read Spring Boot configuration with Morphia? and I am trying to implement it like this. But I always get Field mongoClient in MorphiaAutoConfigurati

Spring MVC with HATEOAS

I use Spring MVC (no Spring Boot) with HATEOAS in order to get HAL-FORMS with Affordance response like this: "_links": { "index": { "hre

File reference in Chrome extension

I would like to load a model in contentScript.js using url './model/model.json' const MODEL_URL = './model/model.json'; const model = tf.loadLayersModel(MODEL_U

SCD2 on nested table in GCP big query

I am new to gcp big query. I am trying to model scd2 implementation on both outer and nested table on GCP big query. I would like to know your suggestions wethe

SwiftUI 3: automatic keyboard avoidance for TextField in a ScrollView doesn't include padding

The automatic keyboard avoidance feature in (SwiftUI 3) doesn't move TextField up correctly if that TextField has a padding around and is inside a ScrollView. H

Creating a list of objects from a nested JSON in Flutter

There's a URL address that I decoded to JSON, and there's a certain header (result) that I'm trying to convert to a list of objects (Book). When I print the con

Loop through folder get data from specific ranges copy to master

Im working on creating an macro that will pull data from a specific group of ranges across many files in one folder and feed that data into a master file in the

How can I make an image to not overlap the div's border

I tried and searched a lot of sources, but didn't find anyone with this issue. Can you take a look at my code and example and tell me how can I make this image