text string | meta dict |
|---|---|
Q: Boring to have to add [FromBody] to all action methods in MVC controllers I just migrated a project from .NET Framework 4.8 to .NET Core 6.
I have a small problem: since ASP.NET Core 5.0 or ASP.NET Core 6.0 MVC, MVC and Web API have been unified.
In order to call a method with a complex type parameter, we must now s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585010",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Group-by using pandas and plot lines in Plotly I have the following df, and I am trying to build 2 different plots using Plotly.
df = pd.DataFrame({'weight':[12,11,10,14,16,13,12,15,16],
'height':[110,111,116,111,110,113,115,114, 112],
'name':['Adam', 'Steve','Mike', 'Adam', 'Ad... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585012",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Finding Records 90 Days or Less in Python I have this code and I would like to take the given date values create a separate column calculating days between and only want the records 90 days or less from today. The column consist of over 25K rows all being in datetime format. I would like to create a new column that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585016",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Writing Unit Test for Service Response I'm trying to unit test an API in my ngOnInit method. The method makes a call to the service to retrieve details - if the details aren't undefined, an array of type *shoeData [] called 'shoeDataResponse' will be populated with these details and return the response.
*shoeDataRes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585017",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Datadog - hiding applicationId and clientToken I have angular application and I integrate it with datadog application in order to use Session and Replay (RUM). Is there a way to hide the applicationId and clientToken, because in this current way, anyone who opens the inspect/network in the browser can access this se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585019",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: react-testing-library query whitespace issue I am facing challanges querying with the reccommended byRole.
I used the screen.debug() to confirm that the node I want to query is in DOM.
The aria-labelledby value is passed to react component as prop and then set to the underlying button element as attribue value.
awai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585020",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I can get date from NewsAPI.org I use the News API for Development in the following form:
'https://newsapi.org/v2/top-headlines?country=de&apiKey=mykey
So far it has worked very well. Since yeseterday, the reply does not contain links to the data fields of the image and the description of the message.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75585023",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: cannot update or get widget width / height inside a class This is my example code:
from tkinter import *
class Customwidget(Frame):
def __init__(self, master, **kwargs):
outer_frame = Frame(master, kwargs)
outer_frame.pack_propagate(False)
self.outer_frame = outer_frame
inner_fra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Delete method for JpaRepository doesn't work, Kotlin Springboot I'm still quite new to Kotlin and Springboot as well and I'm making a backend for Discgolf app and having an issue with the Delete method where the Game column should be deleted by id using deleteGame function.
This one is from GameController:
@DeleteMa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585025",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to set dynamic custom header in i18next-http-backend plugin? i18next-http-backend - Docs
I have the following configuration for i18next in react application. My problem is to set dynamic values in header, such as: "accept-lang". According to documentation customHeaders provided for this, but it has no any contex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585026",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: cannot create a raster geometry from a single y coordinate I cropped a raster using a polygon which looks like below.
I want to adjust the values of the 2 raster cells to account for their area contribution to the polygon. For e.g. if cell 1 has 90% of its area inside the polygon, I want to multiply its value by 0.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585028",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Final all combinations of words in a vector I have a vector of words:
str <- c("The", "Cat", "Jumped")
I would like to find all combinations of words and insert a "+" between any combinations of more than one, similar to:
paste(str, collapse = " + ")
# [1] "The + Cat + Jumped"
My desired output would be:
want <- c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Replacing Emoji with HTML and CSS in Dropdown I would like to make a dropdown with color squares, like this;
Now these boxes are emojis, but I would like to make them only with HTML and CSS, because I want to change those background colors with color code. However, <option> cannot contain any HTML tag, and ":before... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585031",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: KVM: Is it possible to trap the ICEBP/INT1 instruction? I am attempting to trap the ICEBP / INT1 instruction in KVM. Is it possible to cause a guest exit for this instruction, e.g. using KVM_SET_GUEST_DEBUG?
Background
I am working on a hypervisor for Windows and Linux that includes debugging support (single steppin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585032",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Order of capture in lambda capture C++14 allows initializing variable in capture clause (init-capture).
But why the compiler allows capture all by reference followed by init-capture but doesn't allow init-capture followed by capture all by reference?
Here is the minimal reproducible example:
#include <iostream>
#inc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why is the difference? .First(....) and .Where(....).First() Example class for tests.
public class Alphabet
{
public int A = 0;
public int B = 0;
// both A and B contain a single number between 1-9
}
In code:
IEnumerable<Alphabet> alp; // <--- contain +/- 70 000 records
Working:
Alphabet tmp1 =atp.F... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585036",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: matplotlib.legend - `ncols` not recognized - version compatibility problem? I have a python script using matplotlib and the function legend to which I pass the option ncols. In itself, it is not a problem and run very well on my computer but it does not work for my colleagues who get the following error:
TypeError: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585042",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Running bash command to execute Jar file in Google Colab I have the following to execute a jar file with the input as english.test file.
bashCommand = f"!java -jar {main_dir}negsel2.jar -self {main_dir}english.train -n 10 -r 4 -c -l < {main_dir}english.test"
process = subprocess.Popen(bashCommand.split(), stdout=sub... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585049",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to apply custom CSS to boostrap columns only for specific width? I am using bootstrap to lay out my website. I have an element that I would like to look a certain way on mobile, and a different way on desktop. I could edit the CSS for the corresponding col-lg-7 (or whatever) class. However, I am using that cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585052",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: difficult to interpret .xml result file from Biopython ncbi blast function I wanted to do the sequence search 'CCTTCATTCTTCTGTATTGGAGACTTACAGTTGGCACAAGGCTTGGAGTT' against the pig nucleotide genome sequences and see if I can find the perdect match in the alignment. I used the biopython to access the ncbi blast and f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585053",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Layout algorithm for tree graph in Qt I'm working on a family tree graph where the individual nodes are objects of a class derived from QGraphicsObject painted on the scene and I'm placing each node's parents centered above it, its spouse on the side and their children below them in a row with obvious node overlappi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585059",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why Fernet.encode() giving me this error? So I'm trying to code a Caesar Cipher for my python course. Here is my code so far:
from cryptography.fernet import Fernet
alphabet = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
directio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585061",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Why I am getting Serialization and deserialization of 'System.Type' instances are not supported. Path: $.EntityMapper.ForType.? I am new to LiteDatabase. I have the following db.
using (var db = new LiteDatabase(@"MyData.db"))
{
var users = db.GetCollection<User>("users");
return new JsonResult(users);
}
Wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585065",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: FutureWarning: The default dtype for empty Series will be 'object' instead of 'float64' in a future version Command -
df = pd.concat([df, df["XYZ"].apply(pd.Series)], axis=1)
Error -
FutureWarning: The default dtype for empty Series will be 'object' instead of 'float64' in a future version. Specify a dtype explicitl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585066",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why is BERT Storing cache even after Caching is disabled? I am trying to extract hidden state features from a fine-tuned BERT model, but each text entry consumes memory and does not free it up after the next call. I can only run 20-30 sentences with 24 GB of ram memory.
from transformers import BertTokenizer, BertMo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585069",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Material-UI grid change default columns I am trying to change the default number of columns (12) on the Grid component to 16. I have some code that is nearly copy-pasted from the docs, but it still renders as 12 columns.
import React from "react";
import { Grid } from '@material-ui/core';
function AboutPage(props) ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585072",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is it possible for a purely user-space bug to cause a system_call_fastpath() segfault in Linux? While testing on one of our Linux boxes, we saw our user-space program stop functioning, and the debug-output listed below was printed to the Linux's box's serial port.
My belief is that this problem indicates either a bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585077",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: termplot() with plot=T and plot=F give different results from same model I have fit a gam with mgcv as mod<-gam(y ~ s(x1) + s(x2) + year, data=df, method='REML', select=T) and am pulling out the parametric term information with termplot() to create the plots by hand with ggplot.
However, when I check, I am getting d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585079",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Text all in grayscale showing dynamically word by word receiving black color An example is on this site: http://www.readspeeder.com/
how to do with JavaScript?
I'm still gathering information.
A: Right click on the text box you're referring to and click "Inspect" to view the code for the website. From here you can ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585080",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: CSS question about positioning a play now button in the nav bar in the middle I am trying to move the button to the middle of the nav bar but having no luck. What element do I touch for CSS to do this?
This is my nav bar react js file trying to figure out what container to manipulate here.
import React, { Component... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Aliasing the rm command to avoid evaluating separate asterisks I would like to use the rm command such that it returns an error when there is a separate asterisk in its argument. For example, if I type rm -f * .txt , then this command should not be executed (this way I have already removed several files unintentiona... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585082",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I create a Kivy app with a mouse shader like in p5.js? I want to create a Kivy app that displays a real-time mouse shader effect, similar to the one on this OpenProcessing website: https://openprocessing.org/sketch/835887. In the p5.js code, the shader uses the position of the mouse.
So far, I have created m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585083",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to call kubernetes API server using curl and certificate authority I have created EKS cluster using the IAM user. So now the system:creator is my own IAM user.
I have configured the aws CLI and kubectl command line tools to use the credentials properly and both the comand line tools , aws and kubectl are working... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585085",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to change context in Django using html buttons So i have 2 models and 1 is associated with other. I have buttons corresponding to a model and i want to pull the data when pressed on the responding button. How can i manipulate context in view (i am using function views) and then update html using buttons with the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585086",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: How to type text in the middle of already present text in a texarea in a Blazor Server app In a Blazor Webassembly App, I would like to be able to type some text programatically (by clicking a button) into a textarea at the present cursor location (which can ben in the middle of some text already present in this tex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585089",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Axios Interceptor returns 401 error Authorization, due to Bearer token I want to connect logout api. With fetch there is no problem. Everything works. But in axios Bearer token does not change, it returns null.
My logout function
let logoutUser = async () => {
// let response = await fetch(`http://127.0.0.1:8... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585090",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Installing GPU enabled tensorflow in Windows 10 with PyCharm IDE I want to install TensorFlow on my windows 10 device with GeForce Mx150 GPU. I am familiar with PyTorch and have installed it easily with my preferred IDE- Pycharm. But when it comes to TensorFlow, there are many factors, and all the tutorials I have s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585091",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PostgreSQL - Recursively getting time ranges by intersecting two tables Given the following table structure:
Working hours
id
day_of_week
start_time
end_time
1
1
8:30:00
18:30:00
Bookings
id
date
start_time
end_time
1
2023-02-21
10:30:00
12:30:00
2
2023-02-21
13:30:00
14:30:00
I'm looking fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585094",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: '"new nativeEventEmitter()" requires a non-null argument' React-Native Error When running the following function in ios, it throws the error '"new nativeEventEmitter()" requires a non-null argument' in React-Native.
const [remoteStream, setRemoteStream] = useState(null);
const [webcamStarted, setWebcamStarted] = u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585095",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: code to find missing digits of phone number I was given a phone number with missing digits (968***37) and I want a code to know what are the missing 3 digits to get the full phone number. what can I do?
I tried some codes but it didnt work
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75585098",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: Nuxt3 useCookie does not set immediately Upon user's successful login to my Nuxt3 app (universal mode), I call useCookie to save the token to cookie so that user stays logged in in case of page refresh.
const authCookie = useCookie('auth_token');
authCookie.value = response.refresh_token;
The cookie gets set correc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585099",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: FutureWarning: Automatic reindexing on DataFrame vs Series comparisons is deprecated and will raise ValueError in a future version" using ai in bot I'm making a bot for Telegram with recommendation system in it. There's a part of code:
search_word = str(message.text)
movie_search = movies[movies['title'].str... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585102",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: type 'null' is not a subtype of 'string' While trying to create a ListView in Flutter Hello everyone I'm making an app that will insert string values from a List to listView, however when I tried to run the code I got an error saying type 'null' is not a subtype of 'string' While trying to create a ListView in Flutt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585103",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why is this Promise not working for sequential CSS transitions I'm trying to place an element arbitrarily on the page, and then animate it through several sequential transitions.
The element starts at 0,0 (top left) and then I move it to its starting place (e.g. 100, 100) via an async/await method; then I follow wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585104",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why can't I find any information about object STRUCTURE in Locals window? I have been trying to understand all of the properties that I see listed in the Locals window in VBE.
Why do some objects have infinitely nested, identical properties? The Range object has a Cells property, which has a Cells property, which ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585109",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ImageJ Code-help for Merging Channels and Coverting to tif while keeping the filename in batch format I hope, it´s ok to aks very occasionally. I am trying to get this code to work.
It should open czi files, merge the two channels (DAPI & 488), create a RGB to save it merged, while keeping the file name.
I am workin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585111",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: DAX Calculate Distinct Count only for values in both Table A and B per User I am attempting to calculate the distinct count of site visits for a user (in TableA) but only for sites that the user currently has access to (in TableB). The way the data is structured a user may have a visited record in TableA for sites t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585114",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Getting protobuf related build errors while doing Bazel build I am seeing the following error while doing bazel build. I found this link https://github.com/grpc/grpc/issues/23184. I deleted protoc-gen-go from ${GOPATH}/bin. But still I am seeing this error.
In file included from external/com_google_protobuf/src/goog... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585121",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: nginx proxy to another if js not existing I currently have a SSR nextjs hosted at nginx using the config below. The config below should be enough for my frontend application to host existing js and css files w/in frontend. But.. is it possible to do something like.. If it is 404 then try to access the same file on a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Necessary statements in the `__init__.py` file on definition of a Python package I wrote a python module called Eule. Yey! I had fun learning about some modern libraries like poetry, ruff and sphinx to organize the environment and make development life cycle easy. However, I do not know precisely what to place on __... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585125",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Saving class instances to a file and reading from it (OOP) So i am fairly new to OOP in Python, and as an excercise, I wrote a simple "Bank" program, and it works. The obstacle is when I create an instance to the Account class, i want to save it in some text file, and be able to read existing instances from it.
For ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585126",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: QPID cannot create dynamic queue after migration I am new to this community, may not be good at asking questions. If you need more information or clarification, just let me know.
Recently, I installed QPID in our new servers, and migrated our applications using QPID to new servers as well. I created exchanges and qu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585127",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to directly get Node instead of NodePath in export variable? Instead of maintaining 2 separate variables for my exported node path, like this:
extends Node2D
export(NodePath) var target_path
var target_node
func _ready():
target_node=get_node(target_path)
is there any way to export only 1 variable and dir... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585128",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Compose Multiplatform Triangular Grid I'm trying to use Compose Multiplatform to create a game played on a triangular board. Creating a rectangular grid with Row / Column was pretty straightforward but I'm not sure how to tesselate any other shape. I know I could draw a triangular grid using Canvas, but I would pref... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585131",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Clamp a forward vector to a specific range Right now, I have a 360 degree camera that rotates around the player. I currently get the angle between the player's forward and the camera's forward and this works correctly. If the camera is directly behind the player the angle returns 0, and when the camera is in front o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585132",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to fix a c# .net framework 4.8 winforms when all events from the form just stopped running? I have an automation software which uses a simple user interface (with WinForms) on .net Framework 4.8.
It uses the default tab control, which has 7 tab pages.
Around 5 timers, and also 12 separate threads.
I do have 2 cu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585133",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how do i fix the shopping cart number when no users are logged in? So i started a course on Udemy: PHP for beginners 2023, Bulid a complete ECommerce store. Ive managed to follow everything without any issues but i have a problem with showing the number of products in cart.
The issue only happens when there are no u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585137",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to make a footer div push an affixed div up when you get to the bottom of the page I am trying to mimic the layout of this search results page. I have everything working using bootstrap affix, except for the footer. When you scroll to the bottom in the example that I have linked, the footer pushes up the map di... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585138",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I stop Android Studio from setting compileSdkVersion to 32 by default on new project creation? Every time I start a new project, compileSdk is set to 32 by default, in build.gradle (:app). When I try to build that new project, IDE shows an error telling me that there are libraries I use that require compileSd... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585139",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Created code that deletes button from html then recreates it, but button doesn't work A button .show-more in the html file shall upon clicking trigger three events, namely:
*
*.show-more button will be removed from the document.
*It'll add four more items to the content.
*Create another .show-more button at the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585149",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Saving Image to API via FormData from React Native I am developing an expo app and need to be able to save a picture as part of a larger post request.
I am sending the request using a FormData object on the frontend, so that the images can be parsed as IFormFile objects on the backend. I am sending the request as mu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585150",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Problem with connecting to local SQL Server from SQL Server Management Studio I installed microsoft sql server 2022 and microsoft sql server studio 2019, and then tried to connect to local server using windows connection, but encountered following error:
A connection was successfully established with the server, but... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Shell script: Remove duplicate quote (") from all strings in a file I want to replace all duplicate double quotes to single double quotes from a file.
For example,
UPDATE TableA
SET country_code = ""FR"",
WHERE name = ""A"";
UPDATE TableA
SET name = ""A's B""
WHERE country_code = ""FR"";
to
UPDATE TableA
S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585152",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why am I getting the 'SyntaxError: Cannot use import statement outside a module' error when i want to import 2 functions in typescript? I am trying to import 2 functions from a file to another in typescript like this:
> import {allReviews,populateUser} from './utils'
from this:
export function allReviews(value: num... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585155",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Trouble implementing Scripts into Netbox I recently implemented Netbox and when trying to create my first script, this is the error that I received:
Here is the github as well: https://github.com/nwiecz/Netbox-ipscanner
**<class 'NameError'>
name 'BooleanVar' is not defined
**
Python version: 3.8.10
NetBox version 3... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585159",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Simple Chat Client Kotlin (Android) I want to write a simple chat client for Android in the Kotlin language. The user interface looks good and I can already send data to the server. However, no data is displayed in the TextView.
I have tied "receiving" messages to the Connect button. This is the code:
btnConnect.set... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585161",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SVG filter is not always applied I have this small website: https://retro-tetris.onrender.com/
I use svg to create bubble screen effect. The problem is the effect not working on load or if you reload page with Ctrl+F5. If you reload page regularly the effect becomes applied. I of course want it to be always applied.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585162",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Child viewModel is recreated from scratch when using viewpager with navigation components I display a ViewPager1 in the nav host using
class MyPagerAdapter(fragment: Fragment) : FragmentStatePagerAdapter(
fragment.childFragmentManager,
BEHAVIOR_RESUME_ONLY_CURRENT_FRAGMENT
) {
private val fragments = lis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585164",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: OCI runtime error when running Docker Compose with NVIDIA runtime, but not with docker run I'm new to Stackoverflow and the NVIDIA runtime, and I'm trying to run a Docker container with the NVIDIA runtime using Docker Compose. However, I'm getting an error that I don't get when running the container directly with do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I create an apply button that takes the values after passing it to parameter in Tableau? I have the following parameters that defines each Asset. The parameters Von, Bis, Baureihe, Fzgnr..are defined for all the 10 assets. Currently, the tableau dashboard runs automatically once the values are entered. I want... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585172",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Issue With Using Ansible and WinRM I am running into issues testing out ansible with WinRM.
I have setup an HTTP listener on a Windows 10 test VM. I also created a simple playbook that is supposed to create a folder on the user's desktop.
When I run the playbook I receive the error
fatal: [192.168.10.42]: FAILED! =>... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585173",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Use XSLT to query HTML Element using XPATH I am trying to create an HTML document based on another one. I need to do it with some kind of templating language and I found that XSLT should be the perfect fit. However, when I try to retrieve an element of the source document using value-of I only got the text but I wou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585174",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to browse months that have dates disabled? I'm working with this library: https://reactdatepicker.com/
I'm trying to make a "smart calendar" and for that i have just some available dates, in April, May and June. These dates are passed in prop includeDates.
I'm showing two months horizontally, and when i open cal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585176",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Trying to animate persistent homology in python I am trying to write a program that will run a persistent homology animation on some random data. Here is the code that I have so far:
import numpy as np
from ripser import ripser
import matplotlib.pyplot as plt
import matplotlib.animation as animation
np.random.seed(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585182",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I improve these nested if statements? Is there a way that I can reduce/improve this. I feel like my nesting "if" could be reduced. Any thoughts would be greatly appreciated.
public requirementsMet: boolean = false;
public flag1: boolean = false;
public flag2: boolean = false;
public flag3: boolean = f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585188",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: State updating only after two clicks The filteredBooks state only updates after the second click despite using callback function to update state.
import { useRef, useEffect, useState } from "react";
import "./App.css";
import Card from "./UI/Card";
function App() {
const [books, setBooks] = useState([]);
const ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585193",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Remove units of measurement from custom formula in Google Apps Script /**
* Calculate the distance between two
* locations on Google Maps.
*
* =GOOGLEMAPS_DISTANCE("NY 10005", "Hoboken NJ", "walking")
*
* @param {String} origin The address of starting point
* @param {String} destination The address of destina... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585195",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sequelize group records in a table by month I want to count all records and groups by every month. I saw many posts that used "date_trunc" but "date_trunc" not working for me. how to overcome this? please, check the expected output.
this is my code:
let saleByAllMonth = await Order.findAll({
attributes: [
[db.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585199",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Claim a GitHub issue using Selenium or any other web scraping library I want to build a small project on Web Scraping.
During Hacktoberfest or say GSOC when contributors need to solve more number of issues they prefer easy issues like the ones with label Good First Issue, but as during those events there are large n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585200",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using Matplotlib and Pandas, how can I create n-number of overlapping bar charts with n-number of overlapping axes? I would like to create overlaid barplots as shown in the image. The problem is, when I try plotting multiple barplots on the same axes using Pandas or Matplotlib directly, it merges the x-axes when I r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585201",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why is AutoKeras max_model_size not working? I am trying to constrain the max params used by AutoKeras ImageClassifier to 1mil using max_model_size = 1000000. However, when I do this I immediately get the error: "FailedTrialError: Oversized model: 23538689 parameters. Skip model."
When I don't limit this I can see i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585203",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: definition of implicit copy assignment operator for 'time_durationboost version 1.72.0
Question> What should I do to fix this build issues?
boost_1.72.0/boost/date_time/posix_time/posix_time_config.hpp:16:
boost_1.72.0/boost/date_time/time_duration.hpp:68:5: error: definition of implicit copy assignment operator for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Spring boot API getting error 404 on Postman I'm learning how to use Spring boot now, and I'm having a hard time figuring out why my POST requests are not getting through.
I'm using Java 17 , VS code, and POSTMAN for the requests.
This is a straight forward demo for me only to learn the basics of spring boot.
I dont... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585208",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cucumber Installation Issue in a typescript project I have a command line interface(written in typescript) which calls my framework(typescript based) with the feature files path.
Now, I am getting the following error when running my tests -
Error:
You're calling functions (e.g. "setDefaultTimeout") on an ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585209",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I emulate hide.bs.modal without bootstrap using jquery or javascript I'm using jquery 1.11. Old code. I'm trying to emulate hide.bs.modal and eventually, hidden.bs.modal, show.bs.modal and shown.bs.modal.
Code:
(function($) {
var oldshow = $.fn.show;
var oldhide = $.fn.hide;
$.fn.show = function(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585210",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to use UTTypePlainText as a String in Swift? I have a project that used to support pre-iOS 15 versions but now only supports iOS 15+. Since the change, I received the following Xcode warning for the following line of code:
let itemProvider = NSItemProvider(item: NSData(data: data), typeIdentifier: kUTTypePlainTe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: MODULE_NOT_FOUND: $NODE_DEBUG_OPTION Getting $NODE_DEBUG_OPTION Module not found on running the server for nodejs
Used version
"@types/node": "14.18.12"
Version in System:
Nodejs: v19.4.0
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75585212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why are two dialogs using 700 weight font after a system switch to UTF-8? On multiple computers with Windows 10, where we just change the Operating System to use UTF-8 (beta) codepage, two dialogs (out of hundreds in our app) went haywire. The following code was added to fix them.
The question is, why is this sudde... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585214",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: background-img with green color and text on the div I have background image with green color, I use mix-blend mode: multiply , I want write something on the background image, but text color does not work as I want.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75585218",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: how do you use multiple previously created vectors that contain subcategories to make a new vector in R? I have a dataset with multiple species with sexes for the species. I first divided the data set into vectors for each species to do an analysis at the tribe level between males and females, and I would now like t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585220",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I have questions about making admin panel with php and javascript I want to add a management panel to my website, I have a few questions about this job, I would like to ask you.
*
*Does it make sense to use alternative programming languages other than PHP and Javascript?
*What are the advantages and disadvanta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585221",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: OData - return multiple counts of the same property (based on some filters) I'm trying to return different counts of the same property in one call.
I have object called Post which has collection of Reaction objects as a property. Reaction has collection of Content objects as a property. Content has Type property tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585226",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to change the "isOnlineMeeting" from to true of a microsoft event through ms graph api I have an event. It has the property "isOnlineMeeting" set to true, but when I run a PATCH request, setting it to false, nothing happens. It doesn't display an error, just the response from the graph api server, where "isOnlin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585228",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: discord.py - TypeError: unsupported type annotation I'm currently writing a Discord Bot and I want people to be able to execute the slash command /hitokoto and have a drop down menu to choose what they need, the code snippet below:
@app_commands.command(name="hitokoto")
@app_commands.choices(choices=[
app_comma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585237",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Building an expo module with 3rd party native libraries I have two native libraries (iOS and Android) that I'm trying to integrate into an existing (managed) expo app.
I’ve created a new, empty expo module using npx create-expo-module and hooked it up successfully into my existing expo mobile app.
I'm now stuck on h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585240",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Which one will be best to monitor services of an instance in AWS? To monitor services in windows servers(ex: remote desktop services, connection broker services..etc, whether it is running or stopped) of an instance in AWS, which one will be best and cost effective, along with giving best results:
*
*System manage... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585243",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Handling data skewness in pyspark rangeBetween I am trying to calculate count, mean and average over rolling window using rangeBetween in pyspark. Some of the mid in my data are heavily skewed because of which its taking too long to compute.
I am first grouping the data on epoch level and then using the window funct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585244",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to resize a css button and keep the inner image to fit? The button code:
document.querySelector('.btn').onclick = function() {
this.classList.toggle('fullscreen');
}
body,
html {
margin: 0;
background-color: #3498db;
}
.btn {
width: 64px;
height: 64px;
background-color: #e74c3c;
position: absolu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585245",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: what is cast() method in dart? I hope you are fine,
I read about the Set<R> cast<R>() method in Dart's documentation, but I was unaware of both his description and his application
can anyone explain more complete and understandable?
A: Generic collections in Dart are always typed by the data they can contain, such... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585246",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to set restart policy via Dockerfile or Docker.DotNet.IContainerOperations.StartContainerAsync I need to set restart policy --restart unless-stopped for my Docker container.
I'm using Dockerfile to configure container with next example content:
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build-env
FROM mcr.microsof... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75585248",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |