Latest Questions

How to resolve the following error in discord.py: "TypeError __init__() missing 1 required keyword-only argument: 'intents'"

I'm using Heroku as my server host of my Discord.py bot, but i am having a problem. the problem is: Traceback (most recent call last): File "test.py", line

How to write excel formula (SUM()) dynamically in a range of columns using openpyxl?

In my Excel spreadsheet I need to enter excel formula on a bottom that will summarize values. Number of rows can be different. But not columns. So in cell B10 s

Hibernate validation: Skip Constraint violation in specific situations(api calls)

I have an object User and as part of validation I have provided something like below: import javax.validation.constraints.NotBlank; public class User { pr

How to update multiple types appwidgets from the fragment of ConfigActivity by pressing one button?

I've made 2 different types of appwidgets showing some calendar data. Each type has it's own layout, AppWidgetProvider class, AppWidgetProviderInfo object, but

Why aren't knex migration not showing in psql database?

I created knexfile.js module.exports = { development: { client: 'pg', connection: { filename: 'postgres://localhost/myDB' } }, }; Then

How do I set the Program type?

I'm getting "ERROR: Targets with a unique build environment cannot be built in an installed engine.". This happens even when I build a new blank C++ project and

Is there a thirdparty or solution for get PWA or WEB Push notifications in IOS

I designed a website and I want to send it to its notified users but apparently iOS does not allow this Do you know any software (like a free messenger) that ca

how to get number of lines changed in a PR using gh cli command

I would like to find a number of lines changed for a PR using the gh cli command. Thank you for the help in advance.

How to remove Async storage warning from react native

Dependencies i used "dependencies": { "@react-native-async-storage/async-storage": "^1.16.1", "@react-native-community/netinfo": "^8.1.0", "@react-navigation/bo

Split blf-files in Python into smaller files

I'm wondering if it is possible to split BLF-files in Python? I know that there is a library (can) that supports BLF-files, but find no documentation on how to

I lose heroku authenticator app in which code generated

I lose google authenticator app in which Heroku two factor authentication sign-in.so how to recover two factor authentication code for login. Anyone help me

i want to use the turtle function to write out what i input

i have already made a turtle string to make every letter in the aphabet, and assigned them to functions, so i only have to print a() for it to write out an A fo

Orbeon form submitting empty body

I am trying to submit am Orbeon form to an endpoint (a power automate flow). However, all the endpoint is receiving are the headers. We're using a hosted versio

Account vs Block in Blockchain Solana

What is the difference between an Account and a Block in Solana Blockchain technology? As per solana docs, Block: A contiguous set of entries on the ledger cove

Normalise data where every second row is a column header

I have a system where you manually input data, for example data about people. Some fields are mandatory but majority are optional. When the data is outputted it

LateInitializationError: Field 'ques' has not been initialized

It shows this error although I have added late and required in the Question class constructor. It's repeatedly shows Exception caught by widgets library The fo

Can I dynamically generate boolean options on a custom Blender operator?

I'm trying to write a custom operator for Blender that: Gets the objects currently in the scene (may be lots) Filters them based on some criteria Prompts the us

Why do I get a heap buffer overflow simply by declaring a shared_ptr member variable?

Just ran into this very strange bug. I'm getting crashes due to memory errors after adding a new shared_ptr instance variable in an existing containing class.

Keep headphone jack powered on android device, even without music playing

I recently installed a tablet in my car (370z) I love the thing but the only problem I have is that when music isn't playing I get a static noise buzz. After do

Can't understand how to store values for each step

I am a beginner, trying to learn recursion and solve some problems (trying the subsequences problem). But before I could even attempt to get the recursion logic

PowerShell, unable rename registry on the remote computer

How can I rename Registry SubKey instead of deleting it on the remote device? $remoteHive = [Microsoft.Win32.RegistryHive]“LocalMachine”; $regKey =

Can I set tags on the device in Apache IoTDB?

I want to set tags on the device in Apache IoTDB, but I don't know how to do it. Apache IoTDB version: 0.13 If someone knows it, please let me know.

How does "alternates" in the Django sitemap framework work?

I am struggling to get the "alternates" attribute to work in the Django sitemap framework. class StaticViewSitemap(sitemaps.Sitemap): priority = 0.5 cha

Text Classification on a custom dataset with spacy v3

I am really struggling to make things work with the new spacy v3 version. The documentation is full. However, I am trying to run a training loop in a script. (I

Running executable CGI on NGINX (NOT PHP!)

I have an older web application that uses .cgi script files. These are compiled ELF binaries, directly executable on the system. I have been able to get these r

Moving dependencies from pom to properties file

is there any way to moving dependencies from pom.xml to application.properties file? <dependency> <groupId>org.postgresql</groupId>

IBM Worklight version 8.0 - Forbidden Error while accessing token

Receiving below error while accessing token: WLAuthorizationManager.obtainAccessToken() .then( function (accessToken) { console.log(acce

html - how can I copy the phone number from phone book to the website textbox

My users can't copy the phone number from their phone book(mobile phone/clipboard) straight into the html textbox. They usually fix this issue by copying the nu

All Combinations of Riddle

I am searching for a function in Javascript that takes in a String like this: var str = '2?5?8?1?4?7?9?2?3' and generates all possible combinations of the ridd

Is there a function to sum averages with multiple selections in a slicer in power BI/ dax?

I'd like to make a visual with average amount (totalled per one or more teams) per month (while keeping date hierachy to show data per day). I have a table with