Latest Questions

Chrome extension to replace text on webpage works only after manually refreshing webpage sometimes

I am developing a chrome extension to replace specific texts on webpage. For some websites, it works only after refreshing webpages manually with F5. For exampl

I am trying to take the contents of fa plain txt file and put it into a char array, then I would like to print it out of the array

#include <stdio.h> #include <fstream> #include <string> #include <iostream> #include <cstdlib> using namespace std; int

SQL convert output from integer to float

The numbers in my results are of type integer, but I want to convert them to float. import sqlite3 connection = sqlite3.connect("mydatabase.db") my_cursor = con

To trigger event when column is not updated for certain time

I need to trigger an event when db column is not updated for certain time using spring boot and gcp. Note:- we should use spring boot schedular. Let me know is

AWS lambda function times out invoked from aws java sdk V2

I have created a AWS lambda function (written in python) that reads a tar.gz file from one S3 bucket, unzips and untars it and writes the extracted files to ano

Express Redirect to index.html doesn't render app.js (React Refresh Cannot Get issue)

I'm relatively new to React, but facing an issue which I understand to be fairly common; my app works fine, but when I refresh or try to link directly to a rout

Safari Browsers not loading videos or audio with wav file type

I have been digging into a bug with our website where videos and wav type audio files are not loading/showing up when viewed through the Safari browser. Instead

Wildfly 26 elytron security domain config is not working

I am trying to migrate an application to wildfly 26, and i am trying to use elytron to secure the application. I successfully run this commands using the jboss

Phoenix live view link not working with dynamic element

I have code in an html.eex file that needs to render a series of links and I'm using this code currently, <%= for item <- @links do %> <%= link(it

Python Pandas SUMIF excel equivalent

I can't figure out how to achieve a certain task in my python script. I have a dataframe that contains media coverage for a specific topic. One of my columns na

Unable to select text in resizable grid

I need to have Ext.panel.Grids (v6.2.0) that are both resizable and allow users to select the cell values. I have a bunch grids that I've set to be resizable wi

uPLibrary.Networking.M2Mqtt.MqttClient throwing CommunicationException and OutOfMemoryException

I am using uPLibrary.Networking.M2Mqtt to connect to MQTT broker. var telemetryClient = new uPLibrary.Networking.M2Mqtt.MqttClient( mqttBaseAddress, MqttSet

Why does the function only add the last object?

Why does the function only return the last object from the request? And does not add a new one to the Data dictionary? def holdings(): data = {} res = r

How do I check all the redirects of a URL and get it as an array?

I'm making a site which checks all the URL redirects, just like wheregoes.com. This site doesn't provide any APIs. I have to get all redirects, then select the

Iterate trough a converted datetime pandas dataframe with a external function

https://rhodesmill.org/skyfield/positions.html#azimuth-and-altitude-from-a-geographic-position Hi I have function that generates a sun-shot azimuth on a specifi

O365-Rest-Python-Client - Struggling to get the displayname mapped

I am trying to convert a sharepoint list to a pandas dataframe. The Internal name is being returned by default I believe by the client, which isnt very useful

How to change a FullCalendar day cell via a js function call

When I look at examples of changing the appearance or contents of a day cell in FullCalendar, they look like this: calendar: { height: 650,

How can I transform rows to columns? [duplicate]

I have this table with data below and need help because I don't know which formula can I use to convert the table into the desired one. I don'

how to get data grouped by ids

I have grouped data in a temporary table according to id_card. There are multiple activities for each card. I want to send 1 email for all activities happened o

Django high memory usage

I'm using django as a backend for a React frontend, and deploying both applications on Heroku. I also use Gunicorn do serve the application and signed the Hobby

Electron-log with file transport is forcing app reload

I am using the electron-todo template and trying to create a log file that recovers the data in the event of a crash. The app reloads every time the log file is

How to combine 2 post effects opengl?

i have noise posteffect if(noise){ float y = rand(TexCoords.xy, time); if (y > 0.975) { float x = rand(TexCoords.xy, time);

what is the equivalent of Java's System.out.print() in javascript [duplicate]

It seems console.log() is the equivalent of System.out.println() How to print strings in the same line with multiple calls? Like: for (let i=0

Grep and CMD escaping

I am trying to grep this pattern: ^#include\s+"[^"]+" Unfortunately, when I try the following in a Windows batch file, the pipe (|) and the sort are treated as

Is it safe to write unaligned to an immediate operand in machine code while that code is executing?

Let's say I have x86-64 code that looks like this (though this question applies more generally to all code): mov rbx,7F0140E5247Dh jmp rbx Is it safe to overwr

java.lang.NoClassDefFoundError: org/apache/hadoop/hive/ql/metadata/HiveException while running DAG in Airflow

I am running a python project through DAG in airflow, and I encounter the following exception when the dag runs this line from the project - df = spark.sql(quer

Why doesn't typescript warn about the return type in this function?

For example, I have an onClick handler on a <div> tag. The handler should expect a return type of React.MouseEventHandler<HTMLDivElement> | undefine

How to add CancellationToken on Unity Web request?

I wrote the following code that successfully downloads a photo from the link. But I want to set a cancellationToken for the request that can be activated by pre

PostgreSQL - How to get month/year even if there are no records within that date?

What I'm trying to do in this case is to get the ''most future'' record of a Bills table and get all the record prior 13 months from that last record, so what I

React js Compiled with warnings

I am junior backend developer but I use the react library in my clone projects After updating the react script, I started getting a lot of errors in my project.