Latest Questions

Factory Method Design Pattern in Python

I'm studying Factory Method Design Pattern in Python. I understand the point of using it in principle but still some aspects got me confused when I experiment w

Helm globally controlling values of dependencies from requirements

We have a set of Micro-Services (MS-a, MS-b, MS-c..) each has its own dependencies specified in requirements.yaml. Some have the same requirements, e.g mongodb.

How can i fix Error: Cannot find module. Using sequelize, express, node and mysql

Can some one help me? Node v16.15.0 "body-parser": "^1.20.0", "express": "^4.18.1", "mysql2": "^2.3.3", "path": "^0.12.7", "sequelize": "^6.19.0", "sequelize-cl

Returning file name with Left(file.Name, InStrRev(file.Name, ".") - 1) generates error number 5

I get error number 5 in (ActiveSheet.Cells(Rows.Count, 3).End(xlUp).Offset(1, 0) = Left(file.Name, InStrRev(file.Name, ".") - 1) The purpose of this code is

How i can fix this Warning: validateDOMNesting(...): <h5> cannot appear as a descendant of <p>

react-dom.development.js:86 Warning: validateDOMNesting(...): cannot appear as a descendant of Hello, everyone. In my react page i have blogs component. when

Can I create links with 'target="_blank"' in hugo posts content using Markdown?

I use Hugo to deploy static web, using Markdown and the problem I would like to sort out is simple. I would like to find the simplest and compatible with Markdo

NextJS fetching nested array of objects from MongoDB using mongoose and getServerSideProps

I'm trying to fetch an array of objects from MongoDB, using mongoose and SSP. One hitch is that all ObjectIds must be converted into strings. Currently I'm doin

Rails Active Storage: How to create "named variants" that are cropped by user-supplied coordinates

I have something like: class User < ApplicationRecord has_one_attached :avatar do |attachable| attachable.variant :large, resize_to_limit: [300, nil]

Hardhat: ProviderError: The execution failed due to an exception

I'm deploying contracts with hardhat, but cannot use address type in contracts ProviderError: The execution failed due to an exception. at HttpProvider.requ

NestJS WebSocket

I use angular in the front end where I am learning to use rxjs-websockets. In backend I use nestjs, where i want to learn to use websockets. But every tutorial

Create a site term column with graph API

I'm trying to add a new column to a site using MS Graph API. I followed the docs, which shows a Text column example, and that works. When I try to add a Term co

Transpose the row data to column

I have below a list of data(Sample data) in a single column in multiple rows in excel. I would like to categorize data into multiple columns like Type, Amount,

Integrate jsdoc into docsify

Im trying to document my node.js/javascript application. The frontend is a vue app & backend a node.js app. I use jsdoc to document classes/modules etc. and

Permission Denied when opening logs in minikube Nodes

When I am trying to access my logs inside minikube folder I am getting this permission denied error. docker@minikube:/var/log/containers$ cat ltservice-68d7dd45

How to use mysqli connection with SSL

I'm trying to make a secure connection with my database I wrote the following code: <?php // form filled? if (isset($_POST['submit'])) { $user = 'gebrui

why sites are not displayed correctly on heroku

I'm new to Java development. I made an application that checks the functionality of sites. When you start the Spring application, all sites work and display cor

Tkinter: access specifc widgets created with for loop

In my tkinter project I've created an Entry, a Label and two Buttons for each of the line in my line list using a for loop. I've also saved them in a list when

command not found: if when running package.json script with Yarn v3 (berry)

I upgraded our projects yarn from v1.22 to v3.1.1. We use workspaces, so I have that plugin. Everything seems fine; other scripts work but when trying to use sh

Bootstrap extension file

Why is my css file in bootstrap folder 5.1.3-dist not bringing bootstrap.min.css on windows 7 I am using the boostrap file on a particular desktop using windows

Prolog: replace the nth item in the list with the first

I'd like to have a Prolog predicate that can replace the nth item in the list with the first. Example: % replace(+List,+Counter,-New List, %-First Item). ?- rep

How to access document and element variable when using javscript kernel

When using the python3 kernel the following code works: %%js let b = document.createElement("b") b.textContent="Hi there!" element.append("A test:") element.app

Importing Adam and ImageDataGenerator on google colab failed

I'm implementing a UNet neural network but I'm having some issues while importing libraries. I found a solution for a couple of them, but I still have a problem

Bruteforce python shuffle function

Hello I was wondering how to revert a string that was shuffled with the random.shuffle() function from python. I know that the original string was shuffled with

Why does let not allow mutually recursive definitions, whereas letrec can?

I suspect that I fundamentally misunderstand Scheme's evaluation rules. What is it about the way that let and letrec are coded and evaluated that makes letrec a

Fastlane. No such file or directory - GIT_TERMINAL_PROMPT=0, can't clone repository

When I run fastlane to build project, I get error: C:\Users\Me\AndroidStudioProjects\MyProject\MyProject-android>fastlane staging app:MyApp [✔] Ԇ

Can't get thymeleaf parameter in href from model attribute

I'm new to thymeleaf. I can't get systemId in th:href ,but I can do it in <p th:text... What's the problem? Pls, help My code Result

AAPT2 error when building Android App on ARM64

I have a Drone.io build CI / CD on a ARM64 based CPU (Oracle) and in the Docker I have Java 11 and latest commandline tools from Google. When I run the command:

Formidable returns TypeError, ERR_INVALID_ARG_TYPE: The "path" argument is undefined

I'm having trouble uploading files using formidable. I'm on Windows server 2016. My code, which in its entirely is shown below, is based on https://www.geeksfor

Convert AVAudioPCMBuffer into MLMultiArray and get prediction from CoreML model

I try to send AVAudioPCMBuffer into a coreML model and get the output from it. Input of the model is MultiArray (Float32 0 × 64 × 0) and output is M

How can I sort the order of links based on the user's number of clicks and save it to local storage using JavaScript?

I'm trying to add the feature to sort the order of links in a specific div based on the number of times a user clicked a link. It's to pin to top Favorite links