Latest Questions

Problems with Django URL routing

I'm building a website, to be used in dental practices, however I'm having trouble with the URL routing. I'm wanting af URL pattern like: Denthelp/kartotek/#nam

Adding an image to a folder on Microsoft Lists

I'm having an issue since I am a total beginner regarding JSON. On Microsoft Lists, you can customize the way it displays a spreadsheet under "Gallery View". Yo

GetComponent(Type customType) behaving differently than GetComponent<customType>

I have this method 'SetStats' that's part of a class. public class HeroUnit: MonoBehaviour { public virtual void SetStats(Stats stats) => Stats = stats;

Checking for Duplicates twice over in a File - Python

config.yml example, DBtables: CurrentMinuteLoad: CSV_File: trend.csv Table_Name: currentminuteload GUI image, This may not be the cleanest route to

Pytorch get "reduced" tensor by indices

I have a tensor a = torch.arange(6).reshape(2,3), and another tensor b=(torch.rand(a.size())> 0.5).int().nonzero(). I want to create a new tensor that contai

What temporal formula to use for knapsack problem?

In "Practical TLA+" by Hillel Wayne, Chapter 3 goes over an implementation of the Knapsack Problem in PlusCal. Although I understand the implementation, I don't

Why the result of Exists function use == and != is not opposite? [closed]

string input = "1234"; string[] array = { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9" }; bool in_N1 = Array.Exists(array, x => x == i

discord.js check if user has permissions

I want a command that can only be used by people who have the ban permission current code: if(msg.member.guild.me.hasPermission('BAN_MEMBERS')) { msg.

Android ViewModel's LiveData not updating the UI

I have the following fragment: todays_training_fragment.xml <?xml version="1.0" encoding="utf-8"?> <layout xmlns:android="http://schemas.android.com/ap

How do I insertAdjacentHTML on querySelectorAll class? [duplicate]

I want to add HTML to all elements having same class (.testimonial-text). However Everytime I use querySelectorAll to define the elements, ins

Flutter Web-RTC getDisplayMedia results in app crash

I want to create an app for Video-calling between 2 devices, with the possibility to share their own screen with the Flutter WebRTC plugin. I already made the v

Converting an AVDL file into something Apache's avro python package can parse

What I would like to be able to do is take an .avdl file and parse it into python. I would like to make use of the information from within python. According to

How to upload & Save Files with Desired name

i am using this code to upload files(images to a folder) <form action='' method='POST' enctype='multipart/form-data'> <input type='file' name='userFil

Getting a stack overflow exception when declaring a large array

The following code is generating a stack overflow error for me int main(int argc, char* argv[]) { int sieve[2000000]; return 0; } How do I get around

save multi-outcomes-variables using iteration in matlab

I want to build a loop in Matlab where 'i' is the iteration variable and for each 'i' an n*n matrix will be the outcome. my question is how can I tell the progr

CSS input box cutting off text

I am having an issue where the text in this input box is being cut off. I've increased the height and the width and it is still showing the same amount of chara

Pythonic way to control an attribute over another attribute

There is a pythonic way to control attributes? I wan't that the init method is clear, trying to avoid to use a function like: self.a = check_a_greater_than_b(a)

if statement is not interpretable as logical in Shiny reactive function

I am currently working on an R Shiny project and below is a small reprex of the things I am trying to accomplish in my actual project. The basic idea is to proc

Mysql WHERE condition against a JSON_TABLE value

I got a list of IDs as comma seperated list of JSON values and some example data sets are like below [340596,340597,340595] This list can be huge sometimes 50k

Find the length of an array / comma separated string values in Quicksight Calculated Field

I have a column of sent_to_emails in my Quicksight Dataset. I want to calculate the number of values in this comma separated string i.e. split the string based

Each child should have a unique key prop even they're set - REACT

I'm getting my navbar routes from a json file like this: { "categorias": [ { "nombre": "Faltas de profesorado", "componentes": [ {

Getting Missing Months

I am working on a project where I am trying to chart the number of monthly order that I have received. My current data for monthlyOrder is: [ { _id: { mon

How to disable scroll on Safari? Nextjs

I am trying to disable scroll when the navbar menu is open on mobile, it works perfectly on chrome but not on safari. I have seen that many people have similar

Why page speed insights is taking field data from a different url if the original one contains a '?'

I have tested some pages which contains parameters "?" in PSI. As a result page speed insights is taking field data from a different url if the original one con

How can i get Y position in all the website page

I have a website which is 6 viewports height. I would like to get the Y position for no matter where i am in the page not only the viewport. I have tried : eve

Couldn't convert MobileNet V2 PyTorch to mlmodel using CoreML tools

I want to convert PyTorch MobileNet V2 pre-trained model to .mlmodel using coremltools. here is my code: import torchvision import torch import core

Take a picture and after successfully receiving a response I we need to call the endpoint - REACT NATIVE

I have a screen where on click on image I need to open camera and take photo, I successfully open camera, take a picture but when I need to call the endpoints i

ssh proxyjump into tailscale network from outside network

Is it possible to proxyjump into the tailscale network from outside the network, such as from the local library or university computer? Something like: ssh -J u

How to combine custom permission-based authorization with MicrosoftIdentity/MSAL in Hosted Blazor WebASM

As the title, i'm trying but still found no solution. This is flow: User <-> Blazor.Client <-> Blazor.Server <-> External APIs. Blazor.Client:

Can I use Xcode font on QtCreator?

After using QtCreator for a long time on Windows I was comfortable with it. But now I'm using it on macOS too and it feels different. I noticed default font is