Latest Questions

How to fill missing field values with linear interpolation?

I have a collection of documents representing values at specific dates. Some of those dates don't have a value (the field can be missing or set to null). I'd li

My x-axis is messed up for huge datasets?

I am trying to plot a countplot using Seaborn library. The data-set is a huge dataset with lots of data of more than 100,000 entries and 67 columns. I have trie

Is it possible to make mat-grid-list direction to be right to left?

I am using mat-grid-list of Material in an Angular project. I would like that the mat-grid-tile items direction will be in right to left order (By default the o

Trying to upgrade ESAPI from 2.2.0.0 to 2.3.0.0

After upgrading esapi from 2.2.0.0 to 2.3.0.0 I'm experiencing an error from this line: esapi.encoder().encodeForSql(new JavaCodec(),"tableName"). Error: java.

How to find the count of sub numbers of size k which divide the number

Given a number n Find the count of the sub numbers of size x in a number num which divides num. For example, if the number is 250 and x=2 the answer will be 2 a

Why is my Luau code not hiding the GUIs that I tried to hide?

My code is for hiding some GUIs that I don't want to show. (Note that this is Luau, I can't post to DevForums because I am not a member) This is what I want to

Rails 5.2 load order breaks db:create

I have a rails application that on Rails 5.1 had no troubles creating MySQL db schemas but fails to create after upgrading to Rails 5.2. It seems like with 5.2

How to suppress Kotlin unused parameter warning in all test classes?

In parameterized tests I use hint parameter to clarify test case naming. From the static analyzer point of view this parameter is never used, so this warning fr

Convert std::vector to std::string without \0

I want to remove the vowels from a std::string with this code: # include <string> #include <vector> bool IsVowel(char c) { return ((c == 'a') |

C programming issues, GTK assertion problem

I am posting this question because I have a problem with my beginner programming project. I am new in the use of gtk and I am blocked by a problem that I wish t

is there a better way to add a list of integers containing users id as serialized json string to SQL as one record?

I'm working on a Blazor app that's similar to Facebook groups, I have to make a notification function where users can receive a notification message when someon

Spring Data Elasticsearch query all indices

I can GET http://localhost:9200/_all/_search?q=query to search all indices for the query string. However, I can't find a way to do this using spring data elasti

Text showing behind logotype and menu

I'm a complete beginner, trying to make html and css work for me, and I need help! I will have a go at describing my problem in English. In my top left corner I

Java VTDGen VTDGenHuge, get details after positionning with XPath

I have the following xml file : <?xml version="1.0" encoding="UTF-8"?> <ns:t xmlns:ns="http://www.myaddress.com"> <ns:cs> <ns:c

Is there any way to show in the inspector a scene with the possible zones to spawn the player?

I'm trying to make an intiutive inspector to select a scene and the possibility of select a "zone" as well to the player spawn position in the scene selected. R

What's the correct way to send PARAMS when using HttpClient.SendAsync()?

I have an application that is using a remote API. That API requires that I send PARAMS before it will accept the request as valid. Currently I send x-www-form

Retrieval of highest value of a column and their dates

I have done code in MySQL to get the highest deaths value country-wise with their reporting date in MySQL. I am being able to get the highest deaths value but t

Gutenberg blocks and page templates

I developed a pretty complex site with many different page templates, where I echo a lot of custom post-type content, as well as ACF flexible content. Now I wou

Moving Agent A to Nearest Agent B and from their to another nearest Agent B on GIS

So I have an agent vehicle and another agent shop of about 10 on GIS. I have another agent warehouse. So I have placed the vehicle at the warehouse and want it

Delete an element at a specified index, return untouched list if given negative or 0 as an index

Hi I really am needing help with this Prolog problem. I want to delete an element at a specified index but only when given an index that is greater than 0. If t

i want to make urls

1.Link is "https://www.xyz.{country}/dp/{asin}" 2.I have to pick two things from csv file which country and asin. CSV file contains : Asin Country 0

Simplification code to avoid if else division problem

I would like to make an optimisation by avoiding to use theIf else i used this element because when E = 0in the logic of my probelm B = [0 0 0 0 0]. By consequ

Polymorphic list elements in Spring configuration?

Is there an easy way to have polymorphic list elements in a configuration? E.g. for the following application.yaml: Vehicles: one: type: Bicycle id: 4

Error installing pyQt5: error: metadata-generation-failed

I was tring to install PyQt5 and a get this error: note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generati

Subset rows of a table if they contain a specific character vector

I know this is a common question and I've read through many other stackoverflow entries but I am still stuck, apologies! I'm a beginner to R (still!). I have an

Sort List<Object> by month name in Java

I am having following data in ArrayList in Java. I am trying to sort it by month in a year. It should sort by December, November, and so on. I have tried differ

Threading and Tkinter - How to use the threading module with my simple example?

I don't understand how to use the threading module properly. In this example I have two tkinter widgets, a button and a progress bar. The progress bar (configur

What is big O of this pseudocode?

For this pseudocode, what would be big O of this: BinarySum(A, i, n) { if n=1 then return A[i] // base case return BinarySum(A, i, n/2) + Binar

What is an undefined reference/unresolved external symbol error and how do I fix it?

What are undefined reference/unresolved external symbol errors? What are common causes and how to fix/prevent them?

Additive deserializing with Serde

I'd like to additively deserialize multiple files over the same data structure, where "additively" means that each new file deserializes by overwriting the fiel