Latest Questions

Convert dataframe to time series

Is there a way to convert dataframe to time series (same like mdeaths) df1 <- structure(list(Year = c(2021, 2022, 2020, 2021, 2022, 2020, 2021, 2020, 2021,

SwiftUI, apply drawGesture only when over Image

I'm try to apply the gesture only when the user is over the Image display not when tapped outside the image. Any suggestion how I can do? this following code dr

Can't change backgroundcolor in an excel cell using XSSFCellStyle

Here you are a minimal, reproducible example with the error. I have a class CreateXSSFColor. Firstly, I define the styles estiloBasico and celdaVaciaGris. When

Error while fetching data using FindAsync in C#

I am getting this error "A second operation started on this context before a previous operation completed. This is usually caused by different threads using

Issues with Arduino radio module interfering with EEG sensor readings

So I am making an EEG headset using the chip from a mindflex headset. I am trying to send the EEG sensor data wirelessly between 2 Arduinos using a radio module

IndexOutOfRange (IsAllDigits Method)

I am novice in C# and just learning it. I am sure that you will consider this question dumb but I really can't understand the real reason for the following in t

Elasticsearch Filebeat ignores custom index template and overwrites output index's mapping with default filebeat index template

What are you trying to do? Using Filebeat to take input data as filestream from JSON files in ndjson format and inserting them into my_index in Elasticsearch

Trim mobile numbers in textarea field

I have a textarea field in a form where I can copy paste (or type) mobile numbers. It will have one number per line, like this I can copy paste (or type) thousa

Not able to Run my Application in Azure container Apps

I have node docker application which is running on Azure app service but the same application is not working on Azure container apps. I'm not able to find the i

How to extract the output to CSV using terraform?

I have created multiple instances using terraform I need to export that output to CSV Can you please help me on this.

How to get the domain and string to the first slash

For example like this url = https://example.com/test/myname/myname.jpg result = re.search('(?:https?://)?(?P<host>.*?)(?:[:#?/@]|$)', url) I can get th

XmlException and CryptographicException when running blazor web server app

I receive these two exceptions when I run my blazor web server app: XmlException: Root element is missing. CryptographicException: An error occurred while tryin

Wrapping std::format in a template function fails to compile with the latest MSVC compiler update

I'm a bit stumped as to why this code has suddenly stopped compiling: https://godbolt.org/z/hhM5GG78x But if I change the compiler back v19.31, it will compile:

How to know which element was clicked in Blazor WASM

I'm trying to make a memory-match game with 16 "cards" (just a list with 8 pairs of ints). So what I'm trying to do now is to find out which card I have clicked

How to insert array to object using postman and nodejs. Send the data to mongodb

I Write My code like this but it has error, How to rewrite this code db.collection('collection_name').insertOne({ name:req.body.name, details:[{ age:req.body.ag

How is the list.index() method implemented? [duplicate]

I'm interested in the time complexity of the .index() in python function I'm trying to find the implementation in the docs but nothing so far.

Module Federation: eagerly shared lib and default shareScope using two module federation builds

When a single build declares a shared { eager: true } lib everything works fine. When I add an import to a second remote module federation build unless I change

how to retrieve values from plotly sunburst chart?

Plotly sunburst charts are great for visualizing hierarchical data. Is it possible to retrieve the values shown in the chart into a dictionary, or an array or s

Hierarchical Time series reconciliation using my own Forecast Python

I am trying to find a way to Reconcile my hierarchical time series buy I have only fount the library scikit-hts It forces you to use one of the models they offe

CPU Reset (CPU 0) and triple-fault when setting SS register to 0 in bootloader [duplicate]

I am attempting to create a custom operating system (for educational purposes) for which I am also creating the bootloader (multiboot 2). I am

this.activatedRoute.params is undefined in Angular

I have routing in app-routing.module.ts I want to get playerId and teamId from the router but it returns undefined in the console as I subscribe to it in AppCom

Is it possible to use Google drive for shareable data in android apps?

I want to create a simple shareable shoppinglist android app and I wonder, if there's a possibility to use Google drive as "db". Technically it should work righ

ARM Template - Add secrets to the keyvault with activation and expiration date

Is there any method to add an activation date and expiration when creating secrets through arm template? When I export the key vault template I see this:

how to retrieve the specific data from firebase realtime database using python?

I want to retrieve the specific data from realtime database in python file. I need to setup a connection first but I don't know how to set it up and then retrie

sivs R package Error in apply(coef.df, 1, function(f) { : dim(X) must have a positive length

In the documentation of sivs the example looks like this: ***sivs_obj <- sivs(x = tmp[, c("Sepal.Length", "Sepal.Width", "Petal.

Divide screen to two halves with a title for each and center a view inside each one that will shrink or expand to fill the space

I'm trying to create this kind of layout in android. I'm using constraint layout. I want to divide the screen with height y to two halves with y/2 height each.

symfony 5 form type define the labels

I created the CRUD for my entity and I need to somehow define the labels for the fields of the entity. I can define them in the form type, for example: $builder

Firebase Android FCM INVALID_SENDER when trying to get token

I created a google-services.json file and added to my android project but when I tried to get a token I received this exception: { Java.IO.IOException: java.uti

Spring Cloud Discovery First Configuration Server Decryption Failed

I am trying discovery first implementation with Spring Cloud. I am getting failure for password decryption. I have .jks in the classpath. The same works when I