Latest Questions

Docker-Compose script not running

I'm pretty new to Docker and especially to docker-compose and I'm running into an issue I can't seem to fix. I have a docker-compose.yml file that looks like ve

Why is std::reverse_iterator slower than a direct iterator?

I noticed that std::reverse_iterator always decrements a copy of internal iterator before dereference: _GLIBCXX17_CONSTEXPR reference operator*() const { _I

Join columns of Day, Month , Year to calculate age

public function patients_view($id) { $patient = Patients::where('id', '=', $id)->first(); // .... } I just need to view the age. Thanks , im usin

Clear all form field in react, using react hook forms

I am creating a login form and want to clear the form when form submitted.I am using react hook form ,here are my codes.. const onSubmit = (data) => { co

How reliable is Redis Cache

I am planning on implementing Redis cache to improve my SaaS based application in azure. And I am thinking of storing credentials (azure Key/Vault info) in Cach

Access to the path /usr/share\OPC Foundation\pki\own is denied - this happens when deploying the OPC UA server

I have a Dockerfile for a DOTNET application with multi layered image where my first image creates the artifacts and my second image copies the artifacts from

Telethon (bot), how to work with commands, buttons and anwers

I want to implement something like BotFather. It sends buttons and you select your option, and if the option need a answer you must answer with the correct answ

springSecurityService.encodePassword for Spring Boot only

I have a legacy app made in grails which uses springSecurityService.encodePassword to generate user password. It's stored in database like this: {bcrypt}$2a$04$

ValueError: Excel file format cannot be determined, you must specify an engine manually

I'm trying to convert multiples files in a diretory to CSV format; I did this code, and ran it in 3 folders. But that one i get this error i found something li

Permission Denied for wrong user when I use "git push" [duplicate]

I was using git with my username and email and everything was working well. For one specific project I used different username and email to pu

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