Latest Questions

How to rethink the architecture of my Python project containing multiple async interfaces

I'm developping a Twitch Bot for approximatively a year now. Over the time, the bot became bigger and bigger to add features. Now the bot can manage multiple in

Github Actions run terraform init in multiple directories

I have 3 Terraform directories: test_1 test_2 test_3 I would like to run terraform init in each of these directories. Is there a way to do this with a loop ins

How to include JSON and File data together in FastAPI endpoint?

I would like to POST JSON and File data together, as shown in the code below: fastapi.py @router.post('/rate') def users(user_review:schemas.Rate, image123: Upl

Detect DJI drone power down event while RC is still powered on

Is there a way to determine when the drone has been powered down (when the remote controller is still powered on)? For example a pilot may change the drone batt

Error: Can't resolve 'react-loader-spinner/dist/loader/css/react-spinner-loader.css'

I am trying to use react-loader-spinner package in my current project Here is the package, but it shows me an error. When I imported (import "react-loader-spinn

Parsing empty json array as null object with GSON

I am working with some not really well designed APIs and when the object is null it returns empty array, like this: No-null response: "SourceType": { "ID": "2

Connection with SQL Server: java.sql.SQLException: No suitable driver found for jdbc:sqlserver

I am trying to connect a little Java App to a SQL Server database using Visual Studio Code. This is my code: import java.sql.*; public class App { public st

Powershell Foreach-Object parallel with az cli profile isolation

I have a script that need to call child scripts in parallel. Child scripts using az cli and create/modify Azure PaaS objects in different Azure subscriptions. T

How do I add a Canban board to the matermost(self-hosted)?

I have no idea how to add Kanban Board in Mattermost(self-hosted version). How can I do this?

Implement autofill service in android app

I'm trying to build a password manager application. During the process I've come across a problem: implementing the autofill functionality that other password m

401: Unauthorized when trying to fetch Discord OAuth2 access token || Python 3.10

So I came to the idea one day to make a bot dashboard (it currently includes a rickroll and a pointless button). I watched some tutorials talking about how to g

Optimizing gpu allocation/transfer of matrix tiles

I am working with very large matrices (>1GB) but imagine that I have the following matrix: A = [1 1 2 2; 1 1 2 2; 3 3 4 4; 3 3 4 4] I need to

How to assert that sum of two series is equal to sum of another two series

Let's say I have 4 series objects: ser1=pd.Series(data={'a':1,'b':2,'c':NaN, 'd':5, 'e':50}) ser2=pd.Series(data={'a':4,'b':NaN,'c':NaN, 'd':10, 'e':100}) ser3=

What are dictionary view objects?

In python 2.7, we got the dictionary view methods available. Now, I know the pro and cons of the following: dict.items() (and values, keys): returns a list, s

How to extend an existing straight line in Three.js

I have an existing line initiated // material const material = new THREE.LineBasicMaterial({ color: 0xffffff }); // array of vertices vertices.push(new THREE.Ve

can I define data filters with intake catalogs?

I would like to use intake to not only link to published datasets, but filter them in the catalog itself. Filtering is trivial to in python once you open the da

Policy to validate API Subscription Key received in Request Body from Google Ads Lead Form Extension using Webhook integration

Azure API Management checks for Subscription Key in either the Header or Query, but Google Ads Lead Form extension sends the key in the request body google_key

regex "split by commas Saving an inner comma"

I am building a report of active directory distribution groups and i want to get the ManageBy returned as Aviles Gutierrez, Abraham instead of th

Performing a multi-finger swipe using XCUITest

I am working with an app that supports swipe gestures with multi-fingers (2 finger down swipe, etc.), and would like to simulate this in XCUITests. I see that X

functions with button.click() are not executing the click part

I have 2 function as below: <script type="text/javascript"> sm=()=>{ document.getElementById('show').click() console

Which design pattern is useful to evaluate conditions and return Boolean value

I would like to know best coding practice or design pattern which I can follow to achieve following task in Java: I need to enable check box in UI based on cert

New color terminal prograss bar in pip

I find the new version pip(package installer for Python) has a colorful progress bar to show the downloading progress. How can I do that? Like this:

Problems matching values from nested dictionary

In TestRail, I have created several testruns. When I execute: test_runs = client.send_get('get_runs/1') pprint(test_runs) The following results are returned:

I can't run pipenv install django

Whenever I enter pipenv install django in the cmd an error appears: " 'pipenv' is not recognized as an internal or external command, operable program or batch f

How can I edit this code so that it prints the result a certain way?

I'm trying to get this code: line = input("String: ") letters = "" words = line.split() for word in words: letters = letters + word[0] print(" ".join(letter

Laravel 9 dynamic Email configurations

I am coming to you with a problem to which I couldn't find a solution on google after hours of googling. I want to be able to send emails by using different SMT

php throws exception "Call to undefined function oci_connect()"

Here is my configuration: Window Server 2016 build 14393 From phpinfo: PHP Version 8.1.5 Architecture X64 Server API CGI/FastCGI Loaded configuration file: D:

Sending FCM Batch request for legacy HTTP API

Using the legacy FCM HTTPS API is it possible to send messages to a device or a device group as stated in the documentation here, but their is not information r

message.author.id TypeError: Cannot read properties of undefined (reading 'id')

Why i didnt get message.author.id and create the channel with special permissions? const {SlashCommandBuilder} = require("@discordjs/builders") const { Client,

How to remove slowness of powerbuilder 12.6 application?

It's taking more than 15 minutes to search for Library entry.can anybody suggest how i can remove slowness of the application? Below image