Latest Questions

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

xterm-addon-fit not working when it parent is a tab has forceRender={true}

I'm using forceRender={true} in order to preserve the state/context of the xterm.js termina emulator. However, when it's set, fitAddon.fit(); doesn't work.

ffmpeg: What is the best practice to keep a live connection/socket with a camera, and save time on ffprobe

Today... I used the following command: with subprocess.PIPE and subprocess.Popen in python 3: ffmpeg -i udp://{address_of_camera} \ -vf select='if(eq(pict_typ

How to decode url on apache for Flutter Web?

I deployed my Flutter web app to an apache server. Flutter adds /#/ just after the base path for all paths. It all works fine. But I need to handle a redirect u

How do I add new DataSource to an already Databinded CheckBoxList

i'm building a web form that show Database's item(Tables, Rows, FK,...) I have a CheckBoxList of Tables (chkListTable) which will show a new CheckBoxList of Row

How to put new page into a frame thats inside main html? [closed]

Im trying to put a graph that can be interactable with main page onto the canvas. ive seen many pages that use this: "#document" being used in

Are there any XSD files to validate XML for the https://www.w3.org/TR/widgets/ namespace?

In the intelliJ suite, xsd validation is performed automatically and you get an error if a given schema is not found. I tried to find an xsd file for the w3c wi

Captcha image cropped on the left side

update: I manually changed cnv.width = this.width to 120 and it kind of works. I also found that the image has rendered size and intrinsic size. Width is 35 for

VueJS access select options inside v-for from parent

I'm having a firstName and a lastName value inside my state that I need to get from my select to make an API call. But when I try to get the value of the firstN

Log Sentry events to stdout

Using the Python Sentry SDK, is it possible to log Sentry events (capture_message, capture_exception, etc.) to stdout, preferably through the logging module? I'

OCPP python server issue with aiohttp

I successfully tested the OCPP server by mobility house integrated with aiohttp API in local network. But now I am deploying the websocket server integrated wit