Latest Questions

PyTorch - Using {N,H,W,C} format in customized operation

I'm thinking about upgrading some of my customized PyTorch operations to support {N,H,W,C} format. However, I'm still confused about using channel-last-format t

Access FMX TListView TListViewItem

Is there a way to access the different items configured to a FMX TListview's ListViewItem component below the ListView rows are filled? I have a TListView set t

v-bind:style for dynamical value in Vue.js

When I use v-bind:style for using dynamical value, I came across the problem that v-bind:style doesn't work but I'm sure v-bind:style gets correct value(:style=

Git Clone with Swift Script

I want to clone the team projects into a predefined structure (as they are on the Git) on my local machine. Manually I have to create a new folder for every new

Flex inside flex causing orientation issues

I am new to Web Development and React (and fairly amateur at CSS), so there must be some fundamental issue with my understanding of how flex works. With referen

use "abs" with @ operator in CVXPY

I want to do the absolute operator with CVXPY: abs(A @ x). From here cvxpy objective function error involving MulExpression I understand that I cannot use np.

efficient frontier/stock analyze

Consider the following task. Using a 10-year period I should calculate the portfolio weights in January and then use these weights in February to calculate the

How to sort one column and then another within it in SQL? [duplicate]

I have this table state num ------------------------- ca 20 ny 30 ca 50 ca 10 ny 70 ny 90 What I want is to p

VirtualizingStackPanel with cache

We have to requirement to virtualize a ListView/ItemsControl with a VirtualizingStackPanel. Although everything works as expected, the Control's ItemTemplate ad

ANDROID STUDIO The System cannot find the path specified

I have updated my Android Studio to the Artic Fox Version. After that neither the projects with old Gradle versions running nor the new projects with latest Gra

What is your suggestion for defining this VOIP web-service?

What is your suggestion about defining routes for such a web-service? Input: called number call date Output: caller number call datetime call duration

How to make multiple (more than 2) dependent Dropdowns in python

I have this case. There are 3 dropdown lists A,B,C. List A is independent. List B depends on value select in List A. List C depends on value selected in List B.

Finding the arguments of a cog/command in discord.py

I want to find the arguments of a cog/command to put it in the help command. for cog in client.cogs: if cog.lower() == input[0].lower():

Oracle Apex pretty URL

i need help for a problem. Before someone complain. I have post the same question in another forum but i didn't get any useful help there. https://community.ora

Cannot import functions in from one directory's subfolder to other pyhton files in same parent directories sub folders. How do I use init.py files

parent_folder / subfolder1 / subsubfolder1/ a.py b.py subsubfolder2/ c.py d.py e.py subfolder2 / subsubfolder2/ f.py g.py subfolder3 / h.py i.py g.py I want to

Laravel mews/purifier - How to escape special charcters?

I am using a laravel html purifier package for purifying my rich text from any xss before storing in database. But my rich text allows for Wiris symbols which u

IIS Web.config Rewrite rules - Redirect rules with - or + chars

https://someserver.com/path01/2011/abc+and+def/88722 https://someserver.com/path01/2011/abc-and-def/88722 I have several URLs that I need to create a redirect

Decision tree regression code, when run shows only 'random_state = 0' and nothing else

I have taken a house price dataset. I have run the following code: import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns

Keep libraries in memory even when all browsers are closed

I have a shiny app on RStudio's free shiny server that uses a fair number of libraries which results in a slow calculation time. The time for the UI to load is

How to create merge conflict between up-to-date - but differing - branches?

I want to restore old piece of code into the current code. Old piece of code is at an old commit that is a far parent of the current commit. Therefore there is

In react class based component this.setsate is used but state is not defined in constructor if I have to convert this in functional based then how

class Dashboard extends Component { constructor(props) { super(props) this.state = { assetList: [], assetList1: []; } } componentD

Mysql: can't start mysqld "mysqld.service: control process exited, code=exited status=1"

I have installed a third party framework fate, and mysql has been installed inside this framework, at the following path: /data/projects/fate/common/mysql/mysql

Dynamic heap implementation with insert O(log n)

I'm trying to implement a Min Heap in Java, but between studying the complexity and the actual implementation, I realized that it is not clear to me how O (log

How can I generate a 2D matrix of natural numbers wth zero in ascending order in shell script or another programming language?

I need to generate matrices of natural numbers in ascending order with zero (0), but they are very large ones and it will be hard to write them by hand. What I

LateInitializationError: Field '_instance@141084504' has not been initialized

When using getX and Flutter I get following error: LateInitializationError: Field '_instance@141084504' has not been initialized This is the code: import 'dart:

Scikit-learn pipeline: Non-finite test scores error / Inconsistent number of samples

I have a dataframe with two columns of texts and only the POS tags (of the same texts), which I want to use for language classification. I am trying to use both

Argument type 'String?' cannot be assigned to parameter type 'String', Triggering Dart's Null Safety either way

In this current snippet I have declared notification to be nullable but get an null safe error for the if loop's notification.body and notification.title. Here'

How to deploy Spring boot and React application together on GCP App Engine?

I don't have any experience in deployment and trying to deploy Frontend and backend together. I am able to successfully deploy the spring boot application. I fo

PyQt 6: Are there any classes with signals that emit when the device connects/disconnects to/from the internet?

I'm adding a download function to an application that I'm creating. When the user's device's internet connection is lost during a download, I want the download

want the app to save state separately according to each user in react native

I have a app that conducts a test and when the currently logged in user passes the test, the app shows a modal telling him that he has passed the test. I want t