Latest Questions

Performance indices for unequal datasets in R

I wanted to do the performance indices in R. My data looks like this (example): enter image description here I want to ignore the comparison of values in Time 2

ReactJs onClick function not working in bootstrap4 modal

hi I have imported bootstrap sources like this in my React project index.html file: <script src="%PUBLIC_URL%/assets/js/jquery.min.js"></script> <

How to login with github oauth for react app

How do I login with github oauth in my react project. Is there a sample project for this? After logging in, I need to see the user's repos.

Transportation Problem : how to addresing variable from range(len()) for constraint? (transitioning from excel)

I'm new on using phyton for optimization (usually I simple use Ms.Excel) and this is my first time asking on stackoverflow. Usually in Ms. Excel you can add con

PyPDF2.extractText( ) extracts text but tokenizes strings when pdfs contain watermark

I am using PyPDF2 to read multiple files and extract the page number that contain specific text. For the most part it works fine but I notice that some files wi

HTTP/1.1 401 Unauthorized with RestAssured

I get HTTP/1.1 401 Unauthorized for subsequent API calls using RestAssured. First call is for login and then license aggrement acceptance. For the same two APIs

Get rid of single quotes from the substituted string within sed command in Python

I have a text file 1.txt which has following content: module abc I am trying to generate multi-line string that I need to add before module abc line in 1.txt.

toggle sidenav from another component in angular

I want to toggle a sidenav from another component in Angular. I have 3 child Components: menu,content,header. Button is on header component.I want to click on b

Assembly concatenate

I'm new to assembly, I have 3 variables, str1 str2 str3. The program will ask the user for a string input and store it in str1 and str2 and for str3, it contain

How to make side nav not scroll while scrolling body in html?

I create a sidebar navigation base on : https://colorlib.com/etc/bootstrap-sidebar/sidebar-05/ If I append the "lorem ipsum". The side navigation will follow sc

Django pymongo search, sort, limit on inner array and count them

I am learning Django with MongoDb and have a collection to search into. Here is a sample document in the collection: { "_id": { "$oid": "62615907568ddfc

Keras model prediction after tensorflow federated learning

I am working with TensorFlow Federated framework and designed a keras model for a binary classification problem. I defined the iterative process with tff.learni

How do I know when my Ctrl + C command has been processed?

I need to copy the currently selected text from the currently active window in the currently active app. If the app support guiInfo.hwndCaret, then I use this.

Apply a transformation model (data augmentation) in images in Tensorflow

I am a newbie in some sequential models in Tensorflow with Python. I have a transformation sequential model like the one below. It applies randomly to a given i

Removing rows based on column conditions

Suppose we have a data frame: Event <- c("A", "A", "A", "B", "B", "C" , "C", "C") Model <- c( 1, 2, 3, 1, 2, 1, 2, 3) df <- data.frame(Event, Model)

How to use Twitter OAuth 2.0 PKCE authorization code flow with Firebase?

In my Firebase app, I'm trying to fetch from the Twitter v2 api bookmarks endpoint, but it requires OAuth 2.0 Authorization Code Flow with PKCE. This authentica

I keep on getting ParseError: Expected type name // when I want to return a struct I have just created

I am new in Solidity and I have been trying to create and get STRUCT without adding it to an Array. I alway see Structs with arrays and the method .push and I w

Button in Action Menu in Title bar doesn't Work

When I click the button in the title bar it doesn't do any thing. I use item in menu and I linked it to main activity class but it doesn't work. @Override

wxWidgets 3.1.6, wxAuiNotebook Font Problems

I just upgraded to wxWidgets 3.1.6 and it seems there are loads of fixes and upgrades. However, I ran into the problem of rather small font size for notebook pa

Requires the “sms” capability which is not supported by Ipad Pro

My app is already on AppStore and have UIRequiredDeviceCapabilities as below INFOPLIST_KEY_UIRequiredDeviceCapabilities = "auto-focus-camera camera-flash arm64

Is there a concept of reverse controller for WebSockets?

I am implementing a WebSocket server in a small microservice and I wonder if conceptually there is a things such as a Reverse Controller? I am using Spring Web

How to extract the largest polygon in a raster?

I can read a rastre and exrec polygones likes: If I have this code to read a raster and shapefile: library(raster) library(geojsonsf) library(sf) librar

does fixed LOD expression return row-level values?

I have difficulties to understand how we can say that fixed LOD expressions return "row-level values" (ref) Definition of row-level expressions ref: Expression

Insert an element in a descending sorted array and keep array sorted

Assuming we have a sorted descending vector, like: vector<int> array {26,  21,  13,  11,  8,  3,  2}. I would like to inser

How to Abort long running query in weblogic struct java application

I have a query some times I get timeout exception and query runs on the backend for ever not displaying any information and causes application to hang up how ca

Trying to Populate a Grid of Coordinates into a Multidimensional Array Using Nested Array Map Methods

I'm trying to populate a grid of coordinates into a multidimensional array using ES6 nested map methods using this code: var gridSize = 4; var regionA

Parsing JObject In Scala

I am using json4s for parsing a json object which gives me result like this: JObject(List((x,JArray(List(JString(x_value)))), (y,JArray(List(JString(y_value)))

How to know whether the navigation is cancelled or not?

I am navigating to a route but one of the route guard is returning false in Angular 13. how to know whether navigation is done or cancelled. I have done below b

Save changes in ms access file

$path = “C:\path\myfile.mdb” $cn = new-object -comobject ADODB.Connection $rs = new-object -comobject ADODB.Recordset Opening connection to the Dat