Latest Questions

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

How to update and delete a review of a product using nodejs

I am creating a e-commerce app and now I want to update and delete a review of a product using nodejs and database is mongoDB (using mongoose). This is my User

Code exiting when Dynamic Array of class allocated

I am trying to dynamically allocate an array and whenever it gets to the part where it dynamically allocates the program exits. I would rather not use vectors a

Can I modify a failed Laravel (redis/horizon) job payload before retrying?

Locally, I use the database queue driver, but on production, we use Redis with Horizon. Recently, I noticed a job failed due to a tiny issue in the payload (a s

How to align windows side by side?

I have two windows i.e Chat window and feedback window, I want to show them side by side on button click, for eg if chat is open and user clicks on feedback but

'Object(...) is not a function' in Amplify Authenticator in vue2

I would like to use the AWS Amplify Authenticator in a js vue2 app. The manual that I used can be found here: https://github.com/aws-amplify/amplify-ui/tree/leg

ExtensionInstallForcelist with locally stored extensions

Values in ___\SOFTWARE\Policies\Google\Chrome\ExtensionInstallForcelist registry now can not be used to automatically install locally stored extensions? Extensi

Why Is My HTML and CSS Code Not Running Properly On The Internet?

I recently added some text effects to my website in HTML and CSS. It runs perfectly on VS Code live sever but whenever I upload the code files on to my cpanel,

Data reset when moving from one to another fragment using Bottom Navigation Bar

I am using bottom navigation bar dan fragment in my project. When it moved from one to another fragment, I dont want to lose the state or data How can I do it?

Add tooltips on column headers in a React Bootstrap table

<BootstrapTable bordered={false} hover={true} wrapperClasses="responsive" keyField="id" data={products} columns={columns} {...props.baseProps} // ref={(n)

4003: Data item to large sending data from wear os to app

I'm developing a wear os app that needs to send a list of "MyObject" to mobile, data class MyObject( val id: String, val name: String, val locations