All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
3 views

Disable left and rigth pannig in Leafletjs map

I am learning how to add Leafletjs map to an GUI and how to use JS to do it. I need to disable left and right mouse button panning or dragging. Issue I can disable all panning or dragging by using map....
0
votes
0answers
2 views

How to connect a React frontend on Netlify to a Flask backend on PythonAnywhere

TLDR: React app interfaces properly with Flask API on PythonAnywhere when hosted locally but not when a static build is hosted on Netlify. Perhaps the proxy information is missing from the build? I'...
0
votes
0answers
4 views

C++ create a read class based on template

I created several functions to read files that can have the following structure. Files with scalar data: 0 1 2 3 4 Files with vector data: [0,0,0] [1,1,1] [2,2,2] [3,3,3] [4,4,4] In the script I am ...
0
votes
0answers
4 views

How to block DDoS attack. TCP Dump log attached

sorry if I miss anything important. I'm new to computer stuff. Is there any way to block these "XXXXXXXX" ddos attacks? I've attached a link to the issue I'm having. https://ibb.co/ZhGSGWq ...
0
votes
0answers
4 views

RCurl and non-Roman UTF-8 characters in URL

I'm having trouble with the specific url below. The R code below generates an "invalid URL" error. library(RCurl) term <- "日本" query_url <- paste("https://iss.ndl.go.jp/...
0
votes
0answers
7 views

replacing "window.location" with "window.open" having no effect

I am using a click-to-call chrome extension that has a nasty habit of redirecting the call within the active window. Obviously not the best for maintaining a workflow, and I'm not one to let an ...
0
votes
0answers
5 views

Vue Global Route Guard using beforeEach does not trigger

I have a route guard that works when calling it per-route using beforeEnter but does not work when calling it as a global route guard using beforeEach. In my code at the top you can see the example ...
0
votes
0answers
5 views

adding in if function so HTML table only has certain rows

I'm trying to implement a create HTML table based on rows then email script, so far that part is working, the problem comes when I try to only send certain rows to the table that is then sent function ...
0
votes
0answers
5 views

Why my Arrays.asList().contains doesn't return true [duplicate]

Here is a simplified copy of my code. I have an array of Integers and want to return true if an element exists in the array and false otherwise. import java.util.Arrays; class Playground { public ...
0
votes
0answers
9 views

Python BeautifulSoup: parsing multiple tables with same table is

I am having to use BeautifulSoup to parse a table, but there are several tables with the same name. See the example below and in this case I want table #6 which has "First goal stats:..." ...
0
votes
0answers
4 views

gdb tui does not show source

I am having issues with my gdb tui. When I am debugging by program in gdb, I can list my files and functions fine with line numbers eg: (gdb) list MyFile.c:200 However, when I turn on gdb tui, it ...
0
votes
0answers
6 views

How might a server be identifying me?

I'm trying to automate a workflow that involves going to a website and getting some information. It's currently being done with a headless browser session in puppeteer, but I want to reverse engineer ...
0
votes
0answers
14 views

Why does it say 'Segmentation Fault'?

Why does it say 'Segmentation Fault' when I run the following code? Also, I know it's related to isdigit(argv[1]) < 0 in line 13, because when I exclude it then everything works fine. I need it to ...
0
votes
0answers
5 views

Either Node.js or http-server wont load css files

my problem is that I am getting these errors when I fire up a local server using http-server. Errors: [2021-10-05T22:35:00.113Z] "GET /css/Index.css" "Mozilla/5.0 (Windows NT 10.0; ...
0
votes
0answers
11 views

Determine consecutive days within a given window

Given the following two tables: CREATE TABLE #t1 (ID varchar(1), SpecDate date) CREATE TABLE #t2 (ID varchar(1), Alert varchar(1), AlertDate date) INSERT INTO #t1 (ID, SpecDate) VALUES ('A', '2021-05-...
0
votes
0answers
6 views

Windows Forms Label only showing certain HTTP responses, but all show in console

I have created a very basic web browser interface where a URL is input to a Windows Forms text box, a Go button is clicked which uses a HTTP Client to get the HTML body of the page. I have found this ...
0
votes
0answers
3 views

create tf dataset from sharded tf records

I used this code from the official tf page to generate coco tf records on custom data. https://github.com/tensorflow/models/blob/master/research/object_detection/dataset_tools/create_coco_tf_record.py ...
0
votes
0answers
3 views

Angular page shows 404 when refreshed - error only occurs on Google Cloud

I'm working on an Angular project for GCP (using App Engine + Storage, no Docker stuff yet) and I'm having a problem when I refresh one of the pages. This is a search engine on index.html that ...
1
vote
1answer
16 views

What is the purpose of (function(): Something{}) syntax?

(function() : Contract {....}) I was expecting IIFE but this colon? It's not a label?
0
votes
0answers
5 views

vueJS 3.x: navigate from page after HTML form-submit

Versions: vueJS: 3.0.0 vuex: 4.0.2 Chrome: Version 94.0.4606.61 (Official Build) (x86_64) One advantage of SPA frameworks like vueJS is that they offer some efficiencies in network consumption (ie, ...
0
votes
0answers
6 views

what do you call a donut-shaped meter like UI element like this?

Apologies if this is a stupid question, but I was wondering what this UI element is called. Do you just call it a donut chart ?
0
votes
0answers
7 views

creating a new data frame by choosing individual cells from another one

I have a data list consisting of multiple rows and columns. What I want to do is to select specific cells from the list (for example, the first three rows from the responses column, the rows from five ...
0
votes
0answers
5 views

Excel Structured Reference - Retrieving current row with @ or #This Row is not working

I am on office 0365 enterprise version - Microsoft® Excel® for Microsoft 365 MSO (16.0.14228.20292) 32-bit. I am working on a table and would like to use structured referencing to dynamically retrieve ...
0
votes
0answers
3 views

proof tactics in coq can replace inversion

I'm trying to proof a theorem in coq, this is one of the subgoal. what tactics besides inversion can solve this goal in coq? 1 subgoal x, y, n : nat H : S (x + n) = S (y + n)
0
votes
0answers
4 views

Is this API repository valid or should it be split up into services?

I'm currently working on a new PHP RESTfulAPI for a project of mine. It builds on SLIM API 4 uses actions, services, and repositories. However, this architecture is new to me and I have questions that ...
0
votes
0answers
6 views

Building several .c cython modules into a single .exe

I have an application with a number of .pyx modules (every single module is cythonised) and am looking to compile it to a single standalone .exe. I've come across a number of instructions that give ...
0
votes
0answers
4 views

How to use a custom SSL certificate with Rancher web UI?

I have a Rancher running inside a Kubernetes cluster. It is installed using helm chart. The Rancher web UI is exposed using an ingress. There is a DNS record for this ingress in an external DNS: ...
0
votes
0answers
5 views

Count records excluding duplicates

I have an array like below, i want to count number of objects where v=="dynamictext" from the dimension without repeating value of key k.Please refer to the example below : e.g. lets say i ...
0
votes
0answers
6 views

php - How to show different messages with query strings?

I am working on a my first PHP file. I need to show different data with different query strings. For Example: example.com/test.php?data=1 This URL can show result { "data1": [ { &...
0
votes
0answers
5 views

Boost log working on W10 but not in ubuntu - segmentation fault

After testing the Boost.log on W10 with Visual Studio 2019, I am trying to have the same application (writes a simple log file) running in ubuntu using the Windows Subsystem for Linux. At first, I was ...
0
votes
0answers
3 views

Is it possible to revert a Code Workbook to a previous version?

I'd like to recover an accidentally modified workbook to a previous version.
0
votes
0answers
4 views

The options in select2 are not displaying correct values

I am not getting my role and supervisor dropdowns here to display what I want. So, I would like to get some help to understand on what are the differences between these attributes of select2's <...
0
votes
0answers
6 views

Changing global variable in main process within a spawned process using multiprocessing Pool

My sample code is as follows: from multiprocessing import Pool GLOBAL_VAR = 0 def try_change_global_var(notused): global GLOBAL_VAR print(f"My own GLOBAL_VAR in current process starts as:...
0
votes
0answers
3 views

How to draw Curved Polyline on the Google Map in React Native?

I am trying to show traces on Google Map in React native. Now it shows the traces with Polyline, and I want to make it as flexible with curved line. How to make the polyline with curved? geodesic: ...
0
votes
0answers
12 views

how to prevent user from submitting the same form twice

I have the codes below in my views and models. But I want a situation in which a user cannot submit the same form twice. once a user submits the form he or she can only see a preview of what has been ...
0
votes
0answers
4 views

Can't get size of elements and the classes in selenium

I an trying to read all elements with name class shadow-non mb-3 and iterate that many times to extract readHeading and readCollapse. But the code returns zero for the first one and thus the loop ...
0
votes
0answers
7 views

How to properly handle empty, null and valid JSON using serde in Rust?

I need to deserialize a JSON file into either None or Some(T) in Rust. The source we are using will provide null or empty, '{}', JSON fields when no values are present. I want to handle both as the ...
1
vote
0answers
14 views

Sorting many items in many lists

So I have a program that creates a schedule for every single NFL team and all of the lists are in a dictionary. The point is that I will have lists with 16 teams and I want to have one team play ...
0
votes
0answers
7 views

angular filter object results

I want to filter res.items object where dealType === 'PM Restructure' . how do we do this in angular and typescript ? I wanted to filter the result based on the dealType , I have sample object below ,...
0
votes
0answers
5 views

PHP can't write despite having permissions

I'm trying to set up prestashop but can't get php to recognize write permissions. I'm getting the following error You need to grant write permissions for PHP on the following directory: /usr/share/...
0
votes
0answers
15 views

Adding legend to ggplot + putting two scatter-plots onto one graph

I have been trying to add a legend and amend it, however after spending hours on different websites, books, etc. I was unable to do it. https://1drv.ms/u/s!Ao8fi7Xi8BskhKkDRQUn2zSdcgxofw?e=ki2eaA ...
0
votes
0answers
6 views

SetBufferSize from ubuntu. C#

need to programmatically clear console history. wanted to use cpnsole.clear () + setbuffersize () for this, but the latter is not supported on my system. Is it possible to clean up the console somehow ...
1
vote
0answers
7 views

erro import passport not function

using passport-local and typescript, image describe situation. 1 part - controller 2 part - middleware 3 part - instances configurations application enter image description here
1
vote
0answers
8 views

Default byte order of QDataStream

Default byte order of QDataStream is BigEndian, according to its documentation. AFAIK this means that written data on a little-endian platform is converted from little to big and read data is ...
0
votes
0answers
4 views

Is there a way to fetch computed values and group the sum of them in Core Data?

I have a Core Data entity with the following properties (and some others): price1 | price2 | quantity A value for each entry is: value = (price1 + price2) * quantity. I want to compute the sum of the ...
0
votes
0answers
11 views

I need to change a Robot variable by command line using another variable

So I've looked into it a lot so I think maybe I'm thinking of a complex solution to a simple problem. I have a test in Robot that uses a variable in a python dictionary. The robot file: *** Settings **...
0
votes
0answers
8 views

Using replicate() within a for loop

I am expecting a vector that includes an output other than -1 or 1. The step variable is only defined as 0 outside of the for loop. Why isn't the line w/ replicate() adding the step value that was ...
0
votes
0answers
5 views

How to find a div block with text on an html page, knowing only part of that text?

For example, I have a line with a part of the text that I need to find (For example: "EYR / RUB"), but I need to find a block with the text "EUR / RUB (OTC)". How can I do this ...
0
votes
0answers
4 views

How modify styles of an element by check an input radio

`let inputs = document.querySelectorAll('input[type="radio"]'); inputs.forEach( el => { el.addEventListener("change", (e)=>{ let targ = e.target; ...
-1
votes
0answers
10 views

How can use Python monitor a variables such like character's life value?

I want to write a script that will help me play a game. I want Python to monitor my game character's life value every 1 second, and have the program respond when the life value changes. When the life ...

15 30 50 per page
1
2 3 4 5
435155