Latest Questions

OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on '0.0.0.0' ([Errno 111] Connection refused)")

I am attempting to connect a FastAPI with sqlAlchemy to a mysql db container. I am using the alias. Unfortunately it wont connect and I don't know why. Using My

Insert new data to dataframe

I have a dataframe employees = [('Jack', 34, 'Sydney' ) , ('Riti', 31, 'Delhi' ) , ('Aadi', 16, 'London') , ('

How to set up a keyboard shortcut for increasing/decreasing font size in IntelliJ editors?

Because my mouse scroll wheel increases the font in big jumps I need a way how to use something like cmd and + or something to increase and - to decrease the fo

Can not find NVIDIA driver after stop and start a deep learning VM

[TL;DR] First, wait for a couple of minutes and check if the Nvidia driver starts to work properly. If not, stop and start the VM instance again. I created a De

declare and using enum class and using in one statement

When using scoped enums I stumbled over some syntax which is accepted by Microsoft, but not by clang or gcc: using enum class Color { RED, GREEN, BLUE }; (ht

VBA Runtime error 6: overflow on one calculation, but other calculations work

I'm trying to run the following code, but I'm getting a runtime error 6: overflow for the last calculation that I am trying to do. The program stops when it rea

How to get only one message from MQTT, when messages receiving in C#?

I developed simple IOT device using nodemcu module with 03 sensors. When device is connected, device sent sensor's data to mqtt broker as well. After I getting

Upload a package to multiple package managers from a single repo

I had created a python package Categorize-CLI and had uploaded it to pypi, the source code of the project is available in Github, is it possible to upload this

How to prevent SQL Server from stripping leading zeros when importing data

A data file is imported to a SQL Server table. One of the columns in data file is of text data type with values in this column to be integers only. The correspo

Why any number value can be used in interface member declared with enum literal type? [duplicate]

I have the following typescript enum: enum Status { READY = 0, FAILED = 1 } and the following interface: interface ReadyItem { id

Vue3 v-for Maximum recursive updates exceeded in component <Carousel>

New to Vue and JS. I have a vue page myLists which takes an array of lists (containing media IDs for a title) which I used to make axios API calls and build a c

Failed to start several time. Restore it by clearing its history. Android Project

I have no idea what causing the error in my android project. The error "Failed to start several time. Restore it by clearing its history." happen in some of the

(NoSQL)Which database type would be suitable for these needs?

You are creating a web-based interface to allow for the ad-hoc querying and reporting on a large (and growing) collection of various types of customer invoice,

VBA UserForm Frame ScrollTop function not working from class function

This should be a simple task and I've been coding in VBA for 10+ years but I cannot seem to get this to work. I have a UserForm with a MultiPage (with 2 pages)

Boxstarter fails to install package (extracted script is actually a zip file)

I'm trying to make a simple Boxstarter package that will install a few basics to new machines. Nothing special. I've created a new package as suggested in the d

How to use unpacked data msgpack-c

I know how to unpack data but don't know how to use specific data from array or map, Here's the code : #include <msgpack.h> #include <stdio.h> int

Is it possible to get the list of all members from a discord guild using non-bot token?

Since discord developers added intents system I'm unable to get all members from guild using token of my own account. Is it possible now?

using DDE get a response from Python to VBA in MS Access

I have a need to pass strings back forth from a python script to a VBA application running in MS Access. Communication from VBA to Python works great! Communica

Electron Amplify AppSync "Realtime disabled when in a server-side environment"

I'm using amplify appsync in my electron app and all works except for the realtime events which means my app doesn't get signalled when the data changes in the

tkinter tab width incorrect

When creating text on a canvas using the create_text method the width of a tab is not what it should be, as indicated by font.measure. import tkinter as tk from

Is it possible to run two functions (one running FastAPI - ASGI, and one running Flask - WSGI), in one Azure function App?

Im trying testing if its possible to run two functions in one Azure function app one running FastAPI and the other one running Flask. I tried to specify a diffe

How to check last digit of number

Is there a way to get the last digit of a number. I am trying to find variables that end with "1" like 1,11,21,31,41,etc.. If I use a text variable I can simpl

Transform a list of dataframes to a nested dataframe

I'm struggling with this problem: I have three lists of dataframes (each list has the same number of rows, each dataframe has 3 columns). I want to combine the

redis delete does not delete the key

In my redis database I have a key: 127.0.0.1:6379[5]> get "263384DB-61DD561800016316-240C0700" "{\"json\":{\"created\":\"1641895448090335\",\"last_signal\":

Batch removing the second sheet from many excel sheets in R?

I have many excel sheets that I need to remove the second sheet before importing them. All files are .xlsx type in one folder and have same format. What kind of

Using functions from imported modules in another file

Say I have file1.js and file2.js... file1.js: import React from 'react'; const test = ( {prop} ) => { function test1() { prop('1'); } fu

Magnific Popup video is still playing even when I click off

I have a video popup using magnific. I implemented the below tutorial. https://www.solodev.com/blog/web-design/how-to-add-pop-up-video-into-a-website.stml The p

how can i get rid of these errors when trying to start a Django project?

I am trying to start a django project using the django-admin startproject but it keeps bringing this error: Traceback (most recent call last): File "C:\Users\

Java button, switch to another frame, closing current frame and running a method in another class

I have tried creating a button "Menu", and on click it closed the frame that it's on, open a class StartWindow, after that it would use a method "Menu", without

How template deduce const pointer type?

I've tried following codes in cppinsights: #include <iostream> #include <string> #include <type_traits> #include <vector> template<t