Latest Questions

Replace multiple strings from CMS in Javascript

This code currently gets 'dynamic words' from the CMS and changes those to span's, which get a eventlistener on it whereas you click on them, something happens.

Read data from ngrx store directly

I saw in our codebase a lot of places using this pattern getUrl() : string { let url = '' this.store.pipe(selectorConfig, take(1)).subscribe((config) =&

Tone.js with ESM modules

I am trying to use tone.js on ESM modules. (I could use it without problems in “commonjs” with a bundler) In the html I have <script src="tests.j

how to plot pairs in different subplots with difference on the side

I want to make a plot in seaborn but I am having some difficulties. The data has 2 variable: time (2 levels) and state (2 levels). I want to plot time on the x

No theory in Aleph SWI Prolog

My question is pretty similar to Not getting a theory in Aleph for SWI Prolog After trying to induce a theory, I end up getting only single atoms My code(only a

Problems with installing SASS React

I want to install SASS to my react app. I try yarn add node-sass my console return error: ./src/comopnents/Form/Form.scss (./node_modules/css-loader??ref--6-one

react testing library: can't acquire context from the given item

I have this component, which uses react-chartjs-2 to render a Doughnut chart: const CompliancyChart = ({data}): JSX.Element => { ... return ( <Cha

Flutter settings.name incomplete on page reload

I have a route setup. In the browser, it looks like this. localhost:1234/#/member/D8B5D7F17639A28FE83C47AFFC69592E? I use an onGenerateRoute function like this

kubernetes mariadb doesnt startt sql's from /docker-entrypoint-initdb.d

pod logs: 2022-01-04 10:43:13+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.7.1+maria~focal started. 2022-01-04 10:43:14+00:00 [Note] [En

Check if value between a threshold range using sliding time window/bins - KQL query

I would like to write a sliding window query in KQL which would check if the the speed of a car is ALWAYS between a certain speed limit (e.g. b/w 100 and 150 km

How to display the float value of a calculation in a text box?

I'm trying to display the 'Day time left' and 'Night time left' after doing a small calculation I want to be able to select any of the 3 packages from the combo

MariaDB foreign key auto generated index not created for the first column of PK

i'm facing a question without answer. I can't understand why the auto generated index from the FK creation is not working when the column seems to be the first

C# Webapplication: Why is session usercount (in global.Session_Start) different from hub usercount (in hub OnConnected)

I want to display the number of currently active users. I first realized that in global.Session_Start protected void Session_Start(object sender, EventArgs e) {

Remove a field from WooCommerce API

My website communicates with retail management software for everything related to products on WooCommerce. Whenever synchronisation takes place, all fields pres

Bigquery - which table are affected by another table

I want to delete a table in bigquery. But before that, I want to know which tables are being linked to the table I'm about to delete. Is there a query to extrac

How do I display a Django form correctly using ListView

I am writing a simple app to track sales leads based on the Django tutorial "Writing your first Django app" (https://docs.djangoproject.com/en/4.0/intro/tutoria

Istio WorkloadEntry sidecar a requirements?

I'm interested in putting a vendor provided application running in an AWS EC2 Instance behind my Istio gateway. It sounds like the ideal scenario is to use a Wo

Can't access my pages by URL, only by links in next js [duplicate]

I have an application built with next JS. It works fine in development, but when published to the internet, I have a problem. The only way I c

pythonanywhere is not updating mongoDB

@app.route('/signup', methods=['POST']) def signup(): info = request.args if info["password"] == info["password2"] and info["name"] and info["email"] an

Google breakpad on arm64. Symbols not found in minidump

I'm building my application and source code of breakpad on Ubuntu 20.04 with two architectures (arm64 and x86_64). Both have been built on Mac with M1 inside do

How to assign a list that is set as a variable to another list (python)

In building a config file, I'm trying to add a list to another list. I'd rather not use any functions like append or python logic in this config file. Some exam

JQuery UI not applying custom style sheet

Not sure what is happening i have notice that our live site vs a dev enviroment the style sheet shows just fine in the head and in the network traffic - however

System.Timer in .net core not tracking time correctly

I have this piece of code: public void StartTimer(string roomName) { var roomTimer = GetRoomTimer(roomName); var room = GetRoom(roomName);

Log4j2 vulnerability and Lombok annotation @log4j2

We are using spring boot 2.1.5 and starter parent as pom dependency. Spring boot is using default logback for logging and we haven't explicitly switched to Log4

PowerShell Copy All Files in Folders and Sub=Folders Not older than 300 minutes

I am trying to copy all files in folders and sub-folders not older than 300 minutes, but the code I got working only copies the files in the main folder, it doe

Ionic 5 Android signed image not showing

The signed version of android does not display images. The application is in Ionic 5 and has this problem only in the android version while in iOS it works. UPD

Weight implementation in graph

I am trying to find the path between two vertices and their distance. My implementation is the following: #include <iostream> #include <list> #inclu

Pine Script - Multiple Conditions in few bars

I have 3 conditions that needed for entry. But they can be met in 4 bars. I use MACD, stochastic and RSI. For example, in first bar there is macd lines cross, a

How to catch exceptions thrown from reactor?

I want to catch exceptions thrown from a flux, my code is like this: try { Flux.just("key1", "key2", "key3") .doOnNext(S

getting an error while fetching data from database (mysql). n="+".join(n) TypeError: can only join an iterable

conn = mysql.connector.connect(host="localhost", user="root", password="", database="Attendance") my_cursor = conn.cursor() my_curso