Latest Questions

Express separate two routes that are only different by req.params

Hi I am trying to build a CRUD application to get items by name and location. Here are the two routes I have so far: app.get('/items/:name', function (req, res)

Create team with powershell

Everyone. I am going to create team with powershell. I have created .ps1 file and write the content as following. Connect-MicrosoftTeams New-Team -DisplayName "

Blazor Server App JavaScript Libraries Not working (Metronic Template)

I have Blazor Server Side app, where I have added JavaScript and CSS Libraries for Metronic Bootstrap Template. The template is fully loaded when I run the app,

Webpack 5 webpackMissingModule error for node_modules package

I've been working on upgrading a repository from Webpack version 4 to 5, and I've encountered a very strange problem where Webpack will throw an error at runtim

React Require auth problem as like secure page problem single page offline login works but not redirect work

When I set up require auth state its works but when it redirects the page it doesn't work. Pages show empty. When I reload then it shows again. import React fro

Investpy module

My code: import investpy print(investpy.__version__) df = investpy.get_stock_historical_data(stock='AAPL', country='Uni

Get remaining days, hours, minutes, seconds to date with date-fns

I want to get remaining full countdown of next instance of weekday (for example next Thursday), I have two functions: FIRST: gets instance of next Thursday SECO

What does () mean if set as a interface property?

In the Vue.js source code (packages/reactivity/src/effects.ts), I found this: export interface ReactiveEffectRunner<T = any> { (): T effect: ReactiveE

$readmemh doesn't read the values from data file

I'm using readmemh like: reg [11:0] rom [0:121]; initial $readmemh("x.data", rom); My x.data file looks like: line 1: 1 line 2: 10 . . . line 118: 1110101

iOS 15 - UIButtons checking themselves due to tableView.reloadData()

With the recent changes requiring builds to be done on xcode 13, we have run into a problem where on iOS 15 ONLY, UIButtons are checking themselves. In this par

How to send message from "Activity" class to a customize layout

I am trying to develop a bluetooth app. I have a class called "ConnectionManagement" which implement the "connect/accept" and "read/write". The information i ge

How to make CLion work with subdirectories

I'm currently a student and need to learn C. I'm working on a Debian Virtual Machine using CLion. To manage my assignments better, I created a github repository

i have an error in establishing a database connection

Hello i have this problem today and i partially solved it using the method described by Fabricio Valencia: IMPORTANT: do NOT delete ibdata1 file. You could dest

How to call async function in sync code and break async/await chain (i.e. how to wrap an async function in a sync function)

All my code is written without asyncio in mind; however, I use one function that is async (written by another developer; for my purposes it's a black box). Let'

Calculate the pair-wise correlation between distinct class pairs over two feature columns and the target variable?

Most similar questions relating to calculating this involve a single correlation value for each feature column, showing how the features in a dataset correlate

Run setTimeout with changing time values

I have an array of objects containing a field duration that specifies the duration that the Object should stay visible. Each Object of array has it's own durati

Laravel maintenance mode refresh and render parameter

I am trying to put my application into maintenance mode via php artisan down. php artisan down --refresh=5 works fine and my browser refreshes after 5 seconds I

ngSubmit not working (Following Traversy Media Angular Crash Course)

My ngSubmit is not working. The problem is that I am trying to follow Angular Crash Course this tutorial at 1:30:00 mark he tries to add in onSubmit alert and I

Is it possible to configure an IMAP account in Thunderbird with a different domain on the address and the server?

I have an email address provided and managed by OVH (French ISP) I'm trying to configure the account in Thunderbird (which I've been using with multiple account

NET6 Linux-x64 Self-Contained Single-File Unusable

I've a project that runs perfectly as "Framework-Dependent Single-File" on Linux-x64, and also as a "Self-Contained" application. But when I compile as "Self-Co

How to prevent WebGL from clipping outside bounds when drawing a wavy circle?

I have a shader that draws a bunch of instanced circles, and it works great! It works by basically drawing a bunch of rectangles at every given location, and th

Remove the initial text when using the nltk.book module in python

I'm learning about NLP and messing around with nltk but just by importing the module on my program, whenever I run the script I get the following text: *** Intr

Install OpenCV on Mac Catalina

I am trying to install OpenCV on my Mac using this tutorial: https://medium.com/macoclock/setting-up-mac-for-opencv-java-development-with-intellij-idea-fd2153eb

Accessibility Inspector not working on Xcode Version 13.3 on macOS Monterey Version 12.3

I launch the Accessibility Inspector from within Xcode but it doesn't let me interact with elements in the simulator. I relaunched Xcode, the Accessibility Insp

Office add in excel- Combination of task pane and udf

i created an office add in for excel (office.js / 365). The add in creates a sheet with a form. The user put values in the sheet, clicks on the button in the ta

Discord.Py ffmpeg was not found

@commands.command() async def play(self, ctx, url): ctx.voice_client.stop() FFMPEG_OPTIONS = {'before_options': 'reconnect 1 -reconnect_str

PyCharm SSH Remote Interpreter Issue

I am trying use a remote interpreter over SSH. PyCharm can connect to the server and everything goes smoothly until last minute when I try to add the interprete

This React Private Route isn't catching Firebase Auth in time?

I'm working with React to build a admin panel for a website, and using Firebase as the authentication system (and data storage, etc). I've gone through a few Pr

How can I get the indexes of a filtered array items

I have this situation, I have an array and I need to filter it and get the indexes of the filtered items, like this example: var arr = ['2022-05', '2023-01', '2