Latest Questions

What is best way to go about replacing 'deployUrl' in angular.json for v13?

I'm currently in the process of upgrading my app from v12 to v13 and noticed this warning pop up: Option "deployUrl" is deprecated: Use "baseHref" option, "APP_

Laravel 7: Calling data with a custom foreign key shows error

I have a department table. Here is a column name created_by. It stores the id from users table. I want to call the users name from created_by column's id. But i

Why aren't my apps showing anything after i added list tile

import 'package:flutter/material.dart'; import 'package:flutter/cupertino.dart'; class Reservation extends StatelessWidget { @override Widget build(BuildCo

How do I add a delay in a JavaScript loop?

I would like to add a delay/sleep inside a while loop: I tried it like this: alert('hi'); for(var start = 1; start < 10; start++) { setTimeout(function

Unexpected token ')' in D:\Mridul\Codes\js\API BASED\Anime Quote\views\info.ejs while compiling ejs

So I want to display MongoDB data in HTML so I used the EJS template but this is the error it is showing . I can't seem to figure out where the problem is, IS i

Google Maps API: No 'Access-Control-Allow-Origin' header is present on the requested resource

I've seen this question asked by multiple people, none of the answers have worked for me. I'm trying to make an API call to the google maps api with react/axio

How can I manage the memory leak on HoloLens 2?

I have a client-server app. HoloLens 2 is my client and communicates with the server using UDP. My MRTK profiler shows me the app consumes memory incrementally

What is the number of degrees needed for polynomial curve fitting?

Assume we have m data points. What is the number of degrees needed for polynomial curve fitting if we wish to make the adjusted R^2 value to be 1? (Theoreticall

Nuxt vuex computed getters is not changing

The problem is that inside the component, the computed property works, but the same computed property written the same way on the page returns an empty object.

How can I install devtoolset on the workstation edition of RHEL7

I would like to know how to install devtoolset on RHEL7 workstation. I found instructions for RHEL7 server which I have failed to adjust correctly for the work

extract attributes from span

I have a lxml file and I need content from there. The file structure looks like this: <span class="ocr_line" id="line_1_1" title="bbox 394 185 1993 247">

Scraping .aspx page with Python yields 404

I'm a web-scraping beginner and am trying to scrape this webpage: https://profiles.doe.mass.edu/statereport/ap.aspx I'd like to be able to put in some settings

Configure spring boot application using command line argument

So far I have found 2 methods to configure spring boot application at startup, one uses -D and the other one uses -- like this: java -jar -Dspring.profiles.acti

Packer unable to read shell script while using Docker plugin

I am trying to create a docker image using Packer. However, when I am trying to use the shell provisioner it is unable to find the shell script. learn-packer.do

How to render "intrinsic" size of element with Dom-To-Image

I'm using tsayen's dom-to-image library to snapshot an image element. The intrinsic size of my image is close to 1000x1000px, but on my website I have it scaled

How do you attach the VS Code debugger to a running Sveltekit typescript process?

How do you attach the VS Code debugger in a fresh Sveltekit project? I have created a repository here. The launch.json file looks like this: { "version": "0

Git - Commit and push local changes without losing file diffs?

I'm in VSCode and just made a ton of changes on my branch. I have a rough draft that would be a shame to lose due to to not backing up online. So naturally it w

Plotly not displaying the labs caption from ggplot

I have this code for making a ggplot, which works fine (MRE with a built-in dataset): mydata <- airquality avg <- mean(mydata$Wind) stde <- sd(mydata$W

the exact meaning of 0byte assembly code line

I'm trying to analyze a generated assembly code and i don't know the meaning of this line: ** .0byte .L99 ** Any ideas ?!

Define an "extends string" type that doesn't allow union of strings

I have this function function something<T extends string>(): void { // ... } I would like to restrict T to be a SINGLE string, and not a union of strin

Mysql.innodb_table_stats & mysql.innodb_index_stats not updating

I believe I have persitent stats configured correctly and there are records in INFORMATION_SCHEMA.STATISTICS table but the following tables ha

ffmpeg kit flutter video compressor

I am not experienced with ffmpeg. So I'm sorry if I'm asking the wrong question in the wrong place. i am trying to make a video compressor, i add the dependency

using zipinfo and zipfile in python

I want to know the difference between using z = zipfile.ZipFile('zippedfile.zip') txt = z.getinfo(filename).comment.decode('utf-8') and txt = zipinfo(filename

Apply function to every element of a multidimensional array

I have a multidimensional array like this (please ignore the strlen): array(2) { ["document"]=> array(16) { [0]=> string(14) "Value1"

4 I am trying to put array into a pandas dataframe

import pandas as pd import numpy as np zeros=np.zeros((6,6)) arra=np.array([zeros]) rownames=['A','B','C','D','E','F'] colnames=[['one','tow','three','four','f

Ride dyalog apl multiline dfn unpaired brace

]dinput · f ← { · · 1 · } f←{ SYNTAX ERROR: Unpaired brace f←{ ∧ How can I ena

How to call function from different file in fortran using microsoft visual studio

I created a program to calculate Fibonacci numbers, using a subprogram that contains functions. how to call the function in my main program in visual studio ps:

setAlarmClock() is not exact and system adjusts the time for it

Android documentation for setAlarmClock: Invoke an alarm at a precise time in the future. Because these alarms are highly visible to users, the system never ad

mongodb & php: how can I store and callback a custom js function to parse data?

Before to submit the doubt that I have, let me start from preamble that I'm definitively a newbie on MongoDB world ;( but I'm going to learn quickly! The goal t

Makefile with arbitrarily many mains. How to compile all mains with one command?

I am still newish to makefile patterns. I have been working on a project based on a template makefile and project structure, however I have a good sense of what