Latest Questions

How do I in Excel compare datapoints and based on them decided what should be done with another

I have a really large dataset with a column showing (date and time), X-coordinates the object, Y-coordinates the object, Z-coordinates the object, and speed the

Add an opacity slider to a leaflet map generated in r

I would like to add an opacity slider to a leaflet map generated in r. It should change the opacity of the uppermost visible or all visible layers (either of th

Altering an immutable object?

def add_alpha(tuple_in): list_out = [] for t in tuple_in: t.append(10) a = ([1,1], [2,2], [3,3]) b = a print(id(a), id(b)) add_alpha(a)

Metal Ray Tracing – SceneKit or RealityKit

The WWDC21 talk below shows how to "Enhance your app with Metal ray tracing". How can I add Metal ray tracing to a SceneKit or RealityKit app? Any basic example

MySQL JSON: How to find object from key value

I'm trying to find a way to search a JSON object and get a particular key but search on another key. Here is an example schema: CREATE TABLE `fields` ( `id`

How to .map around things inside another .map

I have a main array of options and inside it there are array of values, I am using vanilla js and want to map around the first array (options) and then inside t

Some iphone device not able play audio browser jquery

My jquery audio script perfecly play audio, but some iphone device has no audio playing, can anyone tell me the problem, <script src="https://cdnjs.cloudfla

How to create a curved line vector plot of a triangle in Python?

Question Suppose one has 3 random coordinates with 3 random functions that describe the continuous lines between them*, how would one create a vector plot in Py

Activating and using on board Bluetooth on orange pi

I am using an orange pi to connect to BLE devices, and I would like to use the on board ble interface, I am using OPI3 LTS OS: Orange Pi Focal with Linux 5.10.7

Build a dynamic interface for Object in angular

I have an JSON Object received from an api call and the Object will have multiple values but all of type string. How to I write an Interface for such an Object

How to calculate a mouse position like 0 will return -8 and 1000 will return 8 number?

As I'm trying to get into animation using a mousemove event I encountered a problem on how to get the specific number with a limit in both left and right direct

Placing dropdownbutton selections into a to-do list

I am very new to Flutter/Dart, so please forgive my ignorance and please explain everything to me like I am a five year old. I have a screen on my app where I w

How to write regex to identify different date patterns of a String in android?

I receive different date patterns in APIs. Is there any way to identify the date pattern of the string received in an API so that I can format them without thro

How can I create a file that only my application can modify it?

How can I create a file that only my application can modify? I need it because I have an app that creates a .txt file where user information is stored and I don

Java File Naming [duplicate]

I'm new to Java. I want to know why Java doesn't give an error and lets the compiler compile it when I write as class class-name without publi

How to check if dictionary keys match dictionary values in order

I'm trying to see if each key/value pair of a dictionary match, with the resulting output being True or False. I thought the below code would return True becaus

How to global import a stylus file in vite

Now I'm try use vite to create a vue app. But have trouble to global import a stylus file in vite.config.js. I try the code from vite docs. export default defin

How to check Gmail API usage status in Google Console?

I'm sending automated emails from my account to my account, I'm using Integromat (now Make) and I've done all the necessary stuff in the Google Cloud Platform (

LF will be replaced by CRLF in git - What is that and is it important? [duplicate]

When I create a new rails application I'm seeing a warning in git about LF replacement. I do git init git add . and then boom! I see

Apache Hop Kafka Consumer throws error when I run pipeline using the Flink Engine

I am trying to test a simple kafka consumer using Apache Hop v1.2. When I run the pipeline using the local runner, it works fine. But if I run it using the flin

Python and spreadsheet: given the user input, expand the list of results using regex

I'm working with Python on a movie database on google sheets. I want to build a query searching a list of names and surnames on three columns. I ask the users t

how to use npm install's --force flag during Visual Studio publish process?

I have an Angular project in Visual Studio, along with a publish profile to publish to IIS. I've been successfully using this process in this project for some t

How to implement a list of DB update queries in one call with SpringBoot Webflux + R2dbc application

The goal of my springBoot webflux r2dbc application is Controller accepts a Request including a list of DB UPDATE or INSERT details, and Response a result summ

Python flatten rows of 2D list

Currently working on a program that requires the flattening of columns, rows, and diagonals of a 2D list. I have written the following code that flattens the co

Do I put this inline style in head or external stylesheet?

I have an a.nav-link.active element I tried this way but it didn't work a.nav-link.active { background-color: rgb(0, 0, 0); } <a href="#" class="nav-l

ImportPSModule RequiredVersion is ignored

I'm trying to import a specific version of a PowerShell module. I have to do it from .NET. However, the RequiredVersion is simply ignored. Even if I use a non-e

implement tooth chart in react native

I want to implement a tooth chart like this in react native that user can select a tooth by pressing on it. How can I achieve that?

Add product with Attributes to cart using redux

I need help in Reactjs app 'Add to cart'. I am using redux and to add products to cart with quantity and everything going right until tried to add specific attr

How add a row of 0 to a dataframe

I have this dataframe in R mat <-structure(list(a = c(2, 5, 90, 77, 56), b = c(45, 78, 98, 55, 63), c = c(77, 85, 3, 22, 4), d = c(52, 68, 4, 25, 79), e = c