Latest Questions

Directly send money from my Stripe account to my customers bank accounts

I'm looking for functionality to make direct payments to my Stripe Customers bank accounts without Stripe Connect. Is it actually possible to do? Do I have to u

Why is my mongo query using the $in operator producting an error?

The following query is erroring out: const pastOrders = await Order.find( {user: userId}, {status: {$in: ["delivered", "refunded"]}} ).popul

How to initialize Mediawiki shared database tables?

I am trying to initialize a new Mediawiki family. I use this guide, of course. In the Upgrading section of the guide, it is mentioned: As of MediaWiki 1.21, wh

How to call scheduler from Main Class

My application have two schedulers one runs every day at a particular time and another scheduler every day at and interval of 1 hour. I have added the cron exp

Get mouse x & y in nested MouseArea with hoverEnabled

I made a simplified MapImage component which allows to zoom and pan an image with the mouse. This component uses Flickable and MouseArea components. The MapImag

How to add Game Over image and play again function in Flappy Bird PyGame when sprite collides?

I am doing a flappy bird PyGame project for a computer science class. I have the main code, but when the bird collides with a pipe or the ground, it just stops.

ServiceBusTrigger Unit testing with XUNIT

I have an Azure Function as below. In the following code, I'm adding a product to the database using Repository & EF Core. Is there any way we can test it u

How to create relationship between two tables using feathersjs, sequelize and postgresql

I have two models users.model.js and swing-trades.model.js when I am creating a relationship between these two models and running feathersjs using npm run dev`,

How to add attribute to the result of mongoose query before res.status(200).send(result);

I am trying to build a CRUD API that query a mongodb. I want to add another attribute (temperature) to the query result before sending it back to the client. Pa

I'm using reSpeaker 2-Mix Pi HAT with Raspberry Pizero 2W not playsound

tts = gTTS(text=text, lang='vi', slow=False) tts.save("sound.wav") playsound.playsound("/home/pi/Fuzzy/sound.wav",True)# Error here #playsound.plays

Use 'addRealmObjectField()' instead to add fields that link to other RealmObjects

I have a method that creates and update a realm table private static void createOrUpdateModel(RealmSchema schema, Class clazz) { Field field[] = clazz.getDe

How can I delete via python all the s3 "delete marker" placeholder filtered by "LastModified " (for ex. just from yesterday)?

I modified some scripts to delete all the "delete marker" placeholders from some bucket in s3 but I never found/developed something where I can delete the "dele

How to manually postprocess CMake target during installation?

I am working on a library that provides gdb pretty-printers. They could be automatically located by including the .debug_gdb_scripts section in the generated bi

Command failed with exit code 134: npm run generate

I'm trying to deploy my nuxt js project to netlify. The installation part works fine, But it returns an error in the build process. I tried to search google but

Git : explore folders tructure of old commit without checking it out

I want to look at the folder structure of an old commit that I cannot checkout anymore (it had some Git LFS stuff which is now broken beyond my power to repair

Problems with excessive white space in Quarto document

I have a Quarto (RMarkdown) document which is supposed to display a table showing task completion. The code works well but there is excessive white space displa

Upload speed testing function behaves differently when I call it from electron GUI

I've wrote a simple function to measure the upload speed of my network, which when run inside vscode terminal behaves just fine and displays the expected result

It is legal this approach for create a local variable in C++

I'm new to C++ and try to understand how to create and use a class in C++. For this I have the following code: class MyClass { public: MyClass() {

How To Add Error Handling To Flutter When Running Chewie Video Player

can anyone explain why flutter will at times crash and open a new tab in your editor highlighting some prebuilt flutter code, an example being when I implement

Minimal API Registering Dependencies

I am trying to register dependencies but one thing that is strange is when using specific handlers. For example, take a simple scenario like: using Microsoft.As

Snowflake parsing JSON and add aggrate column

have a json field [ {'id':'1', 'name':'test1', 'address':'123 Main St'}, {'id':'1', 'name':'test2', 'address':'1404 Burke St'} ] This is how the record

Can't run the module flask in python

I've been trying to run a code from the internet but I get this error that says: in from flask import Flask ModuleNotFoundError: No module named 'flask' This i

Java SpringBoot OpenApi @ApiResponse shows wrong return object

I'm using OpenApi 3 in my SpringBoot project in order to generate a Swagger html page. The dependency in POM.xml : <dependency> <groupId&g

My code runs smoothly to the end in Linux but ends abruptly in Windows

I am new to coding. As a practice problem, I wrote a program to sort strings as alphabetically, as in a dictionary. My program takes as input: (a) The number o

Trying to get 'Style' list for a GtkWidget

I'm trying hard to get a list of style properties for a GtkWidget (GtkButton). This is my code so far: #include <gtk/gtk.h> #include <stdio.h> #inc

How to test async function in Mockk Kotlin

I want to test this function. suspend fun fetchTwoDocs() = coroutineScope { val deferredOne = async { fetchDoc(1) } val deferred

Java immediately instantiated class [duplicate]

Can someone please explain to me how this code works? Specifically, the new Comparator part? It looks like a class definition that's being imm

How to set up Flowbite in NUXT js

I installed tailwind css from default NUXT cli. And now i want to add flowbite [ Flowbite is an open-source library of UI components based on the utility-first

Error 409 occurred in telebot when using multiprocessing [exe file]

I want to start another process, it will start, if I write to telegram bot "start". But right after this occurring the ERROR: 2022-04-11 11:16:13,602 (__init__.

GMAIL: How to open a existing email in new window if I know its id?

Shortly: How to open email in gmail if I know its id in new window? Greetings. I get from GMAIL API the id of needed email. I want it to open in separate window