Latest Questions

JavaScript: match a word in a text with a word in array and replace it

I need to change this text: var text = `this is an example text. 1coffee , 2 coffee , 1 apple, 2apple , ?banana ,carrot`; using these 2 arrays : var arrOld = [

Update list of data using REST api

hi am a beginner with flutter and am trying to build a app and in that app i want to let the user update a data that he can accede from a list so when he press

What steps the collaborators need to perform locally after git lfs migrate is performed?

I am planning to migrate my repo with git lfs migrate which changes the git history and git commit SHAs. I need to remove some large files from history. I am wo

mat-select is not level A compliant according to AInspector WCAG

I'm using Angular material in my website and trying to make it WCAG level A compliant. Doing some checks with the AInspector (extension for Firefox) seems the m

hide the price for protected products in shop page WooCommerce [closed]

how to hide the price for protected products in shop page WooCommerce ?

MISRA 5-0-15 - Pointer Arithmetic - Rule Violation

The following code violates the MISRA C++ rule 5-0-15: Array indexing shall be the only form of pointer arithmetic. (1) void doSomething(const uint8_t *&ptr

Saved Orange data mining models ouptut (results) keep changing (reprocess) when opened

I use Orange Data Mining Software, anytime I close my work after saving, the models reload or reprocess again when opened. can someone help me out to get a stat

Avoid labels overlap in bar chart

How to avoid my y-axis label overlap in this case(top 5 most frequent words for each year)? Because I may need to change the number of words(ie.top10, top20) la

How to avoid "ConcurrentModificationException" while add ArrayList elements?

I'm trying to add an item to the ArrayList in a certain order Iterator<Rating> it = arr.iterator(); while(it.hasNext()){ Rating o = it.next(); int

How to scrape links from dynamically loaded website (Fincaraiz) using Scrapy

I would like help on how to use Scrapy in Python to extract data from the following page https://fincaraiz.com.co/apartamentos/arriendos?ubicacion=cali I need t

Why is this jinja2 for loop not working in pyhtml code?

For example if I use a for loop like this it doesnt detect the line between the loop as pyhtml and gives out "Invalid Syntax" error. Is there some compatibility

How to get the size of the new swift AttributedString?

NSAttributedString has a size() method which the new AttributedString lacks. How do you get the size of the new AttributedString?

Connect Qprocess signal to slot

In the function below, how do I connect the process signal errorOccured to a slot? My goal is to qDebug the errorOccurred property when process.startDetached()

Leaflet.js Polyline from an array of LatLng points - remove/hide part of points connection based on distance

I'm new in Leaflet and I need to add a red polyline using an array of LatLng points like var latlngs = [ [45.51, -122.68], [37.77, -122.43], [34.04, -118.2] ];

Inconsistent failure when downloading terraform modules in azure pipelines

working with a simple terraform build pipeline and everything seems to be according to plan except I get a "failed to download modules" error halfway through my

Output array of binary digits as a decimal number in NASM

I have a program that can add two arrays of binary numbers I'm sorry, I'm not very good at asm I can draw the conclusion myself, but to understand how to conver

(Java) How to map one column of a CSV file to another column of a different type?

So for this problem, my function is supposed to return the top-10 list of avengers with the most appearances (in decreasing order). In the Avenger class it is

angular-datatables stopped working abruptly

I am using angular-datatables 13.0.1 in my angular application. I displayed a table using the following code in my UI. It was working. Html: <table d

Dataframe is Offset by -1 Days From Source Data

I am using a connector to query some tables in Dynamics 365 Business Central and when I view my dataframe all of my dates are offset by -1 days. I generated a l

What is the difference between "rest/sql" and "rest/sqlutc" in TDengine's RESTful API

TDengine support RESTful apis, they are like "rest/sql", "rest/sqlt" and "rest/sqlutc". I know that "rest/sqlt" return timestamp as long. But I dont know what i

How can I use reactjs useState hook without broke my react app?

When I try to add my Home-index.js useEffect hook my web page completely gone. Here is my codes. index.js useEffect(() => { return setTimeout (() => {

Python - Fetch system data from remote host with psutil and paramiko

I'm currently working on a simple monitoring project. I want to have a dedicated monitoring server that checks several remote instances for cpu, memory and disk

Adding metrics on external services with aioprometheus

I'm trying to add metrics on external services with aioprometheus in an app built with FastAPI. Here is a simplified example of what I'm trying to achieve. Say

How do I hide '#StandWithUkraine' in PHPUnit 9.5.20?

I have recently upgraded to PHPUnit 9.5.20 and noticed that it is printing #StandWithUkraine for every test run. Eg. Testing started at 10:01 am ... Running in

How to add Array with hint and hint_string?

based on this answer it is possible to create export variables via _get_property_list() like this: var _properties := { "x": "", "y": "" } func _get_pr

RegExp constructor adding unexpected comma to pattern

trigoOperators is an array containing some trigonometric operations. The goal is to create a regular expression that parses a string equation into an array. The

Could not resolve type with token 0100004b from typeref (expected class 'Windows.UI.Xaml.IDependencyObjectInternal' in assembly 'Uno.UI

**System.Reflection.TargetInvocationException:** 'Exception has been thrown by the target of an invocation.' [mono-rt] [ERROR] FATAL UNHANDLED EXCEPTION: Syst

Power BI Calculate distinct impacting when I use filter

I made a measure that is as follows: wo = CALCULATE( DISTINCTCOUNT('Table1'[won]), ALLEXCEPT(Table1, 'Table1'[flag]), ALLEXCEPT(Calendar,Calendar[End of Week]),

Error in SharePoint oAuth Authentication using Sharepoint Online CSOM and PnP in .net core

I am trying to make sharepoint authentication using oAuth(Azure AD App) using Sharepoint Online CSOM and PnP, but it gives error "The given key was not present

Cannot create GCP VM, public images are empty

When attempting to create a new GCP VM on a new account, the list of public images is empty. If I try to launch an image from the public marketplace, the boot d