Latest Questions

Connection refused (Connection refused) between containers | ifnazar / docker-sybase

I have two containers in my docker-compose and my node application does not connect to Sybase database but my local machine connects version: '3' services: a

Key Vault virtual machine extension for Linux - how to delete previous PEM file

I have successfully installed the Key Vault virtual machine extension for Linux on Ubuntu 18.04 (Azure VM). The certificate from KeyVault is imported in the def

Hwo to change dynamically the last two parameteres?

I have the followng string https://picsum.photos/id/1025/4951/3301 I need to replace here the last two numbers 4951 and 3301 with 200 so at the end i will have

EAV model - How to restrict product properties?

I have the following structure of my database, implementing a simple EAV model (see pic): My product has a type, which through the junction table restricts pro

Google Gmail API returning: 401 Error - Request is missing required authentication credential but the code worked for the last few months

I have a weird problem, for a few months my web app worked just fine connection to my email account via Google API. but today, when I tried to connect to my ema

PK on temp table failing

I have a trigger which declares a table variable. DECLARE @TREarn_aaa table ( aaaID bigint NOT NULL PRIMARY KEY, Bbb decimal (18, 8) NULL, Ccc dec

Calibrating a gyroscope for different "flat" positions, then extracting x and y tilt

I have a top down 2D ball game like the old Labyrinth ball game. My game is played on a mobile phone. The user controls it by tilting the phone. The idea is tha

errors whan using QTimer in a multithreading application

I am starting a api rest server in a separate Qthread in my application. the server shall use a library which is using Q timer in several places. The compilati

Replacing System.Windows.Forms.WebBrowser with Microsoft.Web.WebView2.WinForms.WebView2 in WinForms apps

I am upgrading a WinForms C# .NET 4.8 Framework application and replacing the embedded browser System.Windows.Forms.WebBrowser with Microsoft.Web.WebView2.WinFo

My timer in Reactjs is not working correctly with a delay

My timer in Reactjs is not working correctly with a delay... I noticed that over time, my timer starts to lag if I switch to another browser tab or window. Why

How to collect results from multiple azure app services and push to a topic

I have 3 Azure service bus topics, 3 azure app services subscribe to these topic messages and perform some actions and return results. I want to push a message

How to find which method is called when going to route?

I am getting too many redirects error I and want to find in which method this happens. The url I am going is https://localhost:8443/OpenELIS-Global/ I tried sea

I do not understand the difference between redux and react-hook-form. What is the difference?

I do not understand the difference between redux and react-hook-form. What is the difference? (I am only somewhat aware of the fact that both are tools to manag

Firebase signInWithEmailAndPassword and onAuthStateChanged Realtime Database logging issue

I'm working on a webpage using HTML5 CCS etc, where it uses a authentication process using firebase for users. Its my first time ever working on firebase, so i

How to determine and delete unused dependencies in Android Studio safely?

IDE: Android Studio Bumblebee 2021.1.1 I see a lot of dependencies in my project (project structure -> dependencies -> all modules) which are not added vi

how to extend the timeout in bot framework composer?

how to extend the external request (https) timeout in bot framework composer? I want to extend the timeout of the https request so that the bot waits till that

AWS SAM-lambda: Cannot import from parent directory containing a fastapi app

I'm trying to deploy a fastapi application to AWS lambda using the SAM client. The issue is that I cannot get Lambda to recognize the parent folder. I have a fa

How to have a single csv file after applying partitionBy in Pysark

I have to first partition by a "customer group" but I also want to make sure that I have a single csv file per "customer_group" . This is because it is timeseri

unable to set backgroundColor Transparent using screenOptions in React Naitve for iOS(React Navigation 6)

I am using custom drawer for my app where i am trying to keep the backgroundColor Transparent for which i tried the screenOptions as below but it is giving me w

Using e signature in .net core application with time stamp

I am building an data entry application using .net core. When adding a new row in my database, I need to allow user to add e signature. The workflow will be lik

Testing React Component with React Router V6

I understand that React Testing Library has an example of testing with react router, but I couldn't get it to work (I think because I am using react router V6).

anything wrong with this trim() method in C

this method is for trimming a string in C by deleting spaces from the beginning and end. BTW iam not that good with C and actually facing some issues with deald

Import "brownie" could not be resolved in Pylance

Error is: Import "brownie" could not be resolvedPylance I know there are other SO posts that refer to this, but it seems most of them are talking about booting

How to run background task in parallel (python, FastAPI)

I am currently developing an API that has several endpoints. One of them is to register data in a database, other endpoints are related to simple CRUD endpoints

Is Ruby on Rails getting started guide up to date?

I'm trying to learn ruby on rails from the official website guide, and I copy paste almost all code but some seems not working. like this on for exemple, I get

Is there any way to filter by the first child using SqlAlchemy?

I'm trying to find a way to filter by the attribute of the first row returned as children. class Parent(Base): __tablename__ = "parent_table" id = Colum

flutter google_mobile_ads reqires higher android SDK version

I want to add google ads to my app. I rearrange pubspec file and AndroidManifest.xml file in android\app\main. but I get error as The plugin google_mobile_ads r

Redirect 404 to homepage in Nextjs with dynamic routes

I am trying to redirect 404 pages to the homepage in Nextjs, but because of a rule in the next.config.js it does not work. Every other 404 redirects to homepage

Regular expression to collect all IPs from Pod definition

I am trying to collect IP addresses of the pods which has 3 network interfaces attached to. From the output of kubectl get pod .. -o yaml, I would like to coll

React difference of using value in state vs value in object in state

I am getting different behaviour depending on whether I am using a boolvalue on with useState, or whether I am using a bool value inside an object with useState