Latest Questions

Bootstrap 5 Accordion button (arrow) missing

I've copied the example from Bootstrap 5.1 docs. When I pasted it into my .html it looked clunky (and was missing the default arrow) so I did some minor css to

python async with AsyncKernelManager and Qt not executing

I'm trying to execute code inside a jupyter kernel in a Qt application. I have the below snipplet that is supposed to asynchronously run the code and then print

How to verify user based on reCAPTCHA user response and secret key in react.js?

When reading the documentation, the following methods of verifying the user are shown: For web users, you can get the user’s response token in one of thre

MUI Datepicker how to disable next month only

I'm using MUI v5 and I want to disable next month only in datepicker. Others are available

Next.js: Select element must have an accessible name: Element has no title attribute

Next.js and Typescript beginner here. I'm rebuilding an app using Next.js but ran into trouble splitting pages and components with the error Select element must

How to error handling curl and mysql in python subprocess.run()

I have python script which uses subprocess.run() getting dump file by curl and input dump file by mysql cmd = "curl {0}/{1} -o /tmp/{2}".format(dir_name,file_na

why won't my SQL run in vscode? What can I do to fix this?

I am following this tutorial for SQL: https://www.youtube.com/watch?v=Cz3WcZLRaWc I followed all the instructions, but when I click run I get a message saying C

Lighthouse CLI: how to use current browser settings(running with extensions installed)

Try lighthouse CLI to measure the performance of URLs with some extensions on. With lighthouse https://www.bing.com/search?q=curse+words --output json --output-

Mysql get end date excluding weekends

in Mysql I am trying to get end date excluding weekends like my function GET_DATE_WEEKDAYS('2022-03-24',5) giving - 2022-03-17 which is fine it is giving issue

browser won't load css stylesheet for my local website using express and node

And the app.js screenshot: I tried every possible combination of href and express.static(""); adresses. I either get a response from a browser saying browser

This expression has type processor_return_type but an expression was expected of type unit

I now have a function called processor, inside the processor function, a list will be matched to different patterns. In some patterns I wish it to return a tupl

Python: I have a list of dictionaries but when I try to call a specific Key and Value it is throwing a error

def readParksFile(fileName="national_parks(1).csv"): nationalParks = open(fileName) headers = nationalParks.readline() keys = headers.split(",")

Unknown option: '--base-href' Angular 13 ng serve

im creating an angular 13app using CLI i want to set a path to my app when i run it i got the following error : Unknown option: '--base-href' Unknown option: '/

RSA in digital certificate

In a digital certificate issued to a domain, using an RSA cipher, I would like to find the prime number used in the encryption. In firefox you get the public ke

Multiple comparisons with gtsummary

Since my question is similar to one that's been asked before, I'll steal the reprex (also below), for consistency's sake, from Summary Table (mean + std.error)

Laravel model - CRUD only with records where one column = certain value?

Suppose i have a laravel model that works with a certain (MySQL) database table. Inside of this table there is a column named 'administration'. (example: could

PHP how to convert UTF-8 to MUTF-8?

in PHP, how can i convert UTF-8 to MUTF-8? i am hoping i can lazily just get away with function utf8_to_mutf8(string $utf8):string{ return str_replace("\x00

django if user.is_authenticated not working but login user

my problem is that the login operation is done correctly and the session is set up correctly, but user.is_authenticated does not work. The point is that it work

If statements within a Query

I'm using a query & importrange combo like this: =IFERROR(QUERY(IMPORTRANGE("https://docs.google.com/spreadsheets/d/1EizWsVwZfUy1NDRwmmWEpj2OxTGvBjP9-YBbds9

how to make a shopping cart in javascript

I'm having trouble making a shopping cart using Javascript for a project. I made buttons called Add to Cart, and I tried various ways so that when I click on th

React onclick change variable/state to return different html

I am trying to have html be rendered while x =true, and different html while x = false. I am not sure how to do this in react but I thought of two ways, both wh

Get info from a "incorrect" JSON in Deluge

I am having a bit of trouble with a JSON provided by Zoho Analytics API. When you consult a table, the JSON is not well formed and I am not able to get all the

Preserve Type Restriction between Generic Variables

Assume that we have some class that has an important generic variable T and another class we have two fields, one wrapped, and one not: class Wrapper<V> {

Lazy Load Exception in a foreach loop with try/catch inside

I have the following code: The User is a Hibernate domain. for(User user : users) { try { function() //log the user

Compile all C files in all of the children directories

So, I'm making a game with raylib and I need to compile all the .c files at once. The files are in separate folder inside the 1st one(Like "MainFolder/PlayerFil

Typescript compiles successfully but node cannot find module

Node error Error: Cannot find module 'hello' even though Typescript compiled successfully. Dir structure (note this is almost identical to tsconfig docs for bas

Bitbucket reducing size under 4GB

What do you do if it has remote repo gone over 4GB? My local Repo is now 1.75 GB only after running git gc --prune=now How do I refresh the Remote, to be the sa

How to recover original code file parsed by React build?

I'm working on React old projects and several of them have the native structure, like: ...{ key: "render", value: function () { return React.creat

How to maintain a Websocket connection for my Angular(13.0.4) application across pages? I need to load the websocket url into service not at the start

So this is my web-socket.service.ts where I send the url information to the websocket in order to establish the connection: import { Injectable } from '@angular