All Questions
23,709,290
questions
0
votes
0
answers
3
views
Cleaning up a list that contains other lists casted to strings
How do I get the list before to look like after?
before = ['Vicente, Piura, Perú', 'Escobar, Buenos Aires, Argentina', "['San Juan, Argentina', 'California, Estados Unidos de América']"]
...
0
votes
0
answers
3
views
oidc-client-ts constantly making API to authorize endpoint on silent renew
I am using oidc-client-ts in angular application to connect to Authorization server and I am using this repo as a reference. I have two application app1 and app2 registered on Authorization server. ...
-2
votes
0
answers
9
views
its not a question this is my code for a game sooo anybody checked i am to bad in js but in my opinion is prety good :)
so yes, this is the game that I think was well done, I admit that I don't know much about java script and I only do these from a practice point of view, but I would appreciate it if anyone could take ...
0
votes
0
answers
5
views
How do I solve this error, so that I may successfully launch Python through my command prompt?
OK, so I'm a TOTAL newbie to Python, & I hope this is the only time I will ever have to use it! But in any case, this is my dilemma...
To begin, I wish to execute the Python 3.11 program in CMD ...
0
votes
0
answers
4
views
mongoose filter by populate
I want to filter data by related schema
this is my current code
const questions = await UserQuestionSet.find({username:req.user},{ username: 1, totalScore:1,complete:1 })
.populate({
path: '...
0
votes
0
answers
4
views
How can I get an STM32F103C8 running at 72MHz with ArduinoIDE and HAL library?
How to get Stm32f103c8 running 72MHz with ArduinoIDE with HAL library?
This is for a Queen's Rocket Enigneering Team. We have custom designed a PCB using the chip from the question. We are able to ...
0
votes
0
answers
5
views
How to get rid of margin from right side in flexbox grid
I have a problem which it concerns of margin in bootstrap . I would like to input my image to column but i can't because i can't match properly size of image to maximum size of column . It's very ...
0
votes
1
answer
6
views
TypeError: Parameter 'metadata' received Metadata as an argument, which is incompatible with parameter type: MetadataColumn[Categorical]
using Python API to interact with plugins
uUniFrac_BodySite_significance = diversity.actions.beta_group_significance(core_metrics.unweighted_unifrac_distance_matrix, sample_metadata)
...
0
votes
0
answers
3
views
How to use rxLogit in Azure Machine Learning?
I am running a machine learning model in Azure. I am using the component Execute R Script. The script is a logistic regression, but it is not working but because there is a error message that says ...
0
votes
0
answers
3
views
How do I integrate a json file generated from a gitlab job in project p1 into a python script in project p2?
I have two projects in gitlab,p1, p2. In p1 '.gitlab-ci.yml' file it performs a terraform module deployment in the the apply stage it generates a json file which is located in the artifacts. In p2 we ...
0
votes
0
answers
5
views
How to properly call a function from a controller and service file from test class file and display returned data in MSTest console log?
I recently facing this issue and don't how to resolve it. I'm just doing unit test with my proj but when I call a function from another service file or controller its not showing the value instead its ...
-1
votes
0
answers
6
views
can't find any DEX aggregator API
which aggregator api do traders use for bsc network? I want to get as many coin pairs as possible from various DEXes with exchange rate, liquidity, coin addresses etc.
I've tried to get data from each ...
0
votes
0
answers
5
views
Python -Listening to a local IP address for a Ping - how to implement?
I want to listen to a local address - in this case my Windows loopback of 192.168.56.1 for an ICMP ping I sent from a router, and to fire off a python script based on receiving the ping from a given ...
0
votes
0
answers
7
views
Pivot and Reduce JS Object Array
I'm dealing with strange situation here..
I've an array something like below
var gblCalibrationData = [
{
"CalibrationYear": "2012",
"CalibrationData":...
0
votes
0
answers
2
views
Intercepting Cy.Request Stops Program Flow?
I am writing some Cypress tests. For my use case, I need to make an api request and then "intercept" the request.
I believe that's it not really possible to do this with cy.request() and cy....
1
vote
0
answers
10
views
Why does React listen for all events?
I'm using a production build of React 18 and I've noticed that vast amount of event listeners listening for all imaginable actions on id="root" element.
Is there a reason for all of them? I'...
0
votes
0
answers
6
views
Making changes to firebase project locally
I am working on a firebase project and trying to make local changes and test them. However, after I make the changes and run "npm run echo" and "firebase emulators:start", the ...
0
votes
0
answers
7
views
Narrow map value type from an as const object
I currently have the following object:
const LOGIC_CATEGORIES = {
core: "Core",
transformer: "Transformers",
logic: "Logical Operators",
requests: "Requests&...
0
votes
0
answers
8
views
Web page suddenly only loading blank screen
Working on developing a commissions manager for my contractor's JS-based POS system, so making a new page to interact. Everything had been going fine, until suddenly now the webpage only loads a white ...
0
votes
0
answers
4
views
Using serializeArray() method to verify form data on Cypress for Angular App
So I am writing a test to validate the data entered on a form for an Angular app using Cypress and the serializeArray() method. This is my first time using serializeArray() The testing files are not ...
0
votes
0
answers
17
views
Does delete free the space allocated by vectors in an array?
Suppose I create an array of vectors, and then I allocate memory for num_vectors many vectors.
What happens when delete gets executed after making some push_back operations in random vector elements? ...
0
votes
0
answers
3
views
Receiving Error: error creating KMS Key: MalformedPolicyDocumentException:
I've currently got variables configured for the KMS policy statements in terraform. I'm trying to restrict access to the kms key from other users other than those described in the "Allow" ...
0
votes
0
answers
3
views
ECS deployment takes longer time if service is configured with multiple target groups
I have two FARGATE services configuted in the same way, except that one service serves traffic for an Application Load Balancer (1 target group) while the other serves traffic for a Network Load ...
0
votes
0
answers
11
views
What is the correct way to implement email verification in a Laravel 10 REST API for a mobile application?
I'm creating a REST API using laravel 10.
I'm planning to use this API in a mobile android application.
I wanna add email verification after a user is created.
The email verification link that is sent ...
0
votes
0
answers
8
views
How to prevent Kotlin from concatenating variable strings without a space?
I have 2 words:
first
second
Using the follow piece of code:
// Where fc and it are local variables in a loop
newString.add("$fc $it")
I get the result of: "firstsecond".
How do ...
0
votes
0
answers
5
views
Page N of M showing page 1 on every page
I have Page N of M Special field added in my page footer, but it shows "Page 1 of _" not only on page 1, but also on subsequent pages.
I checked all sections in my main report and subreports ...
-1
votes
0
answers
5
views
Export fillable pdf directly from Google Sheets/Excel
I made an rpg character sheet in Google Sheets and want to have certain cells be fillable when exported to a pdf.
I know that I can manually add the fields on top of a pdf, but that won't be very ...
0
votes
0
answers
3
views
cd across from one running docker container to another
docker beginner here
I have two local git repos, each with their own build systems and docker image to run for this.
Their build systems intertwine and repo #1 will at some points cd to repo #2 and ...
0
votes
0
answers
8
views
HTML messaging system Acting weird
What I'm experiencing:
I made an HTML, JavaScript, Python(Flask) SQLite3 messaging system. And it's acting weird In Two ways.
The first way:
It gives infinitely the messages, an example:
John: ...
0
votes
0
answers
11
views
JavaScript: prefer returning undefined over null?
I'm porting an application from Java to JavaScript, and in so doing also reproducing a small library of utility functions used by that application.
So far, where functions in the Java library return ...
0
votes
0
answers
7
views
Telegram Python Bot - How to make menu after mentioning bot
I am making a bot using the python-telegram-bot library. How do I make a menu on mentioning the bot like this?
Image
And how do I make a button, which when pressed inputs "@bot_username " in ...
0
votes
0
answers
5
views
How to iterate through inputs in js and implement masks on given inputs
im trying to apply masks with js to some of the form elements, but i get Uncaught typeError when i try to iterrate through elements and feel dumb already (it is about midnight in here)
here is the js ...
0
votes
0
answers
4
views
Bootstrap-vue pagination is removing items from array
I'm trying to use Bootstrap-vue pagination component but it's not working. I went to the documentation and just tried to use their example:
<template>
<div class="overflow-auto"&...
0
votes
0
answers
5
views
MySQL How To Import Date column into 2 separate fields at the same time, a varchar field and a date field?
I have a sales data file that is imported in MySQL [Workbench] from a csv on a weekly basis. One of the columns contains dates in the format of 1/5/2023. I would like to import the date into 2 columns:...
0
votes
0
answers
2
views
Is there a method in Ansible to obtain a list of Windows services along with their current status?
I am looking to get list of windows services that is running along with their state
name: Service Status
hosts: test
gather_facts: yes
tasks:
name: create variable with services
set_fact:
...
0
votes
0
answers
4
views
"Sticky" keyboard in Codename One
We have a vertically scrollable page that has a TextField that pops up a keyboard when pressed. Is it possible to keep the keyboard on the screen while the user scrolls? If so, how?
The TextField is ...
0
votes
1
answer
16
views
How to get Height and Width of background-image of an element using JavaScript?
I'm trying to test an image with Selenium. But my problem is that image is background-image and it doesn't have img tag, it have this html code (it is banner from https://openweather.co.uk/products ...
0
votes
0
answers
4
views
Python Feedparser script freezes - asynchronous tasks too
I wrote a Python script to fetch rss (using feedparser library) and forward regex matches to my own telegram channel.
regex = re.compile('myregex', re.IGNORECASE)
feed_file = "feed.csv"
...
1
vote
0
answers
6
views
Decrypted radius access-request packet has appended characters to password
I am configuring radius for various pieces of equipment on my network. A certain subset of equipment is getting access-reject packets even though I have everything set up correctly from what I can ...
0
votes
0
answers
7
views
matlab to python conversion (sub2ind and array)
I am trying to convert the following matlab code to pyhton :
Im = rand(961, 220)+1;
x0 = rand(961, 220)+1;
y0 = rand(961, 220)+1;
%
[a1 b1]=size(x0);
re_x0=reshape(x0,a1*b1,1);
re_y0=reshape(y0,a1*...
0
votes
0
answers
8
views
I am trying to simulate gas particles moving in a box. I tried everything but I can't display animation
import matplotlib.pyplot as plt
import numpy as np
from matplotlib.animation import FuncAnimation
fig = plt.figure(figsize=(4, 4), dpi=80)
ax = plt.gca()
scatter = ax.scatter([], [], s=0.1)
x = dz * ...
0
votes
0
answers
9
views
R CMD check failing for GitLab pipeline
I have been trying to set up a CI pipeline for my R package development recently by following the walkthrough in this link. As per the link, I really want to use the 'caching' mechanism of GitLab, ...
0
votes
0
answers
5
views
Can I create Stripe subscriptions manually in a React Native app using Firebase extension or do i need a webapp?
Stripe React Native Subscriptions are web only?
Hi,
I have a react native app that allows users to set manage their stripe susbcriptions using the Firebase GetPortalLink. (Using the Firebase extension)...
0
votes
0
answers
11
views
Need to make search and close SVG icons at the same position?
I need to make the search icon and the close SVG icon appear at same position but failed to achieve this !
My site: https://softcroco.com/
Screenshots:
So, is there any solution to get the search and ...
0
votes
0
answers
7
views
Tests never succeed on pyspark 3.4.0 (work OK on pyspark 3.3.2)
I have a project that uses pyspark. The tests have always run fine on pyspark versions prior to pyspark 3.4.0 but now fail on that version (which was released on 2023-04-13, 40 days ago as I write ...
0
votes
0
answers
5
views
use UUID for SessionToken when using Google Place SDK for Android
In my Android project I am using Google Place SDK findAutocompletePredictions and fetchPlace methods to get address predictions and then place details.
As per official documentation a session token ...
0
votes
0
answers
5
views
Run Length Encoding and K- Run Length Encoding
What is the difference between Run Length Encoding and K Run Length Encoding?
This is the compress function from google for k-RLE
void compress(int *input, int k, int SIZE)
{
int previous = input[...
0
votes
0
answers
4
views
Purpose of pushing Docker Compose service images for private repos?
I know the question may sound silly, but as a Docker beginner I cannot find out or imagine a proper answer.
I can fully understand why a single image, produced by a Dockerfile, can be so useful in ...
0
votes
0
answers
4
views
MassTransit control rate of errors to standard out
I'm using masstransit where there is a high flow of messages that are for logging and are not very important. In the event of an outage I'm happy for all messages to go to the dead letter queue for ...
0
votes
0
answers
4
views
Creating functional links on a single PHP page by using .htaccess and RewriteRule with multiple variables
I want to use a RewriteRule to clean up my URL, i need the rewrite to allow multiple different $_GET values, but they need to sometimes be empty, without causing an error.
www.example.com/egypt/cairo/
...