Latest Questions

Class diagram for variable member with the type of `std::unqiue_ptr<T>`

class Foo{}; class Demo { public: std::unique_ptr<Foo> foo_ptr{new Foo()};; }; What's the relationship between Foo and Demo? I think it is compositi

Mudblazor clear TextField after "Enter"

I am using Mudblazor component TextField in my Blazor Server project. I want to clear the TextField after I press "Enter" Here is my code in my Index.Razor : @p

Go: Why do processes/Threads started using Win32API funcs seem to hijack and kill the parent proccess?

Now, the following code does what it's supposed to do, load calc.exe to memory and execute it, it does that fine. I've stitched together this code to show Creat

how to get the bare bone compiled binary code of a C function?

I'm trying to implement an embedded firmware on an stm32 F4 micro that takes an binary code from the serial and execute it on the micro. The idea is pretty simp

Selenium: Message: invalid selector: An invalid or illegal selector was specified

I'm trying to web scrape using selenium an NFT, website Magic Eden. When I try and scrape normal data like text on top of the page my code works fine, but when

Merge column into one string from 2D list

I want to merge one column into one string from 2D list. Are there better ways to merge it? lists = [['H', 'W'], ['e', 'o'], ['l', 'r'], ['l', 'l'], ['o','d']]

I am getting a "'NoneType' object is not subscriptable" when trying to bring in data from a URL

Here is my code: #Import libraries import os import pandas as pd import requests import matplotlib.pyplot as plt import numpy as np from datetime import date im

Add values spreadsheet iterating over cells and values to append

I would like to add the following formulas to a spreadsheet sheet["D6"] = "=AVERAGE(D3:D5)" sheet["E6"] = "=AVERAGE(E3:E5)" sheet["F6"] = "=AVERAGE(F3:

Unable to connect to Redis; nested exception is org.springframework.data.redis.connection.PoolException: Could not get a resource from the pool;

My Spring boot app hosted in AKS Azure, while hitting the redis cache in Azure, getting Unable to connect to Redis; nested exception is org.springframework.data

VSCode snippet regex for extracting directory and replacing slashes?

I'm struggling to find a VSCode transformation regex that allows me take a string like this:MyProject.Api/Data/RandomPath/Entities/User.ts and produce:MyProject

Unable to identify cause of: ValueError: Must have equal len keys and value when setting with an iterable

Background:I have a script that makes a daily API call for financial data, returns the data as a JSON object, saves it into a pandas df before doing some manipu

JavaScript exponents

How do you do exponents in JavaScript? Like how would you do 12^2?

VS Code's Python Debugger doesn't hit the breakpoint for Odoo 10

I use VS Code extension Python version 2.2x, Python interpreter version 2.7x, and use Odoo 10 of the latest version. I'm using WSL with Ubuntu 18.4 LTS. I canno

Composer not working, windows 10 , MAMP PRO

I started using MAMP PRO in windows 10 because i need to change php versions for different projects, but composer is not working, im getting this error: $ compo

Could not find module 'PromiseKit' for target 'x86_64-apple-ios-simulator'; found: arm64, arm64-apple-ios-simulator,

Could not find module 'PromiseKit' for target 'x86_64-apple-ios-simulator'; found: arm64, arm64-apple-ios-simulator, at: /Users/.../Library/Developer/Xcode/Der

How can I add a timeslider to a leaflet map?

I have a leaflet map, exported from qgis with the qgis2web plugin. I would like to add a timeslider for this map, as every layer (representing points) has a "fr

IP address of apps scripts for whitelist

Im trying to build an automatic program that get leads from API to my google sheet. when im running the program from my pc all works great, but, when im trying

How to interpret/handle this dotnet list package --vulnerable result

I have scanned for vulnerable NuGet packages using dotnet list package --vulnerable --include-transitive. I get the following: Project `MyProject` has the follo

Moving away from IE and into edge

I have a VBS script that works great with Internet Explorer. It opens Internet Explorer in kiosk mode on multiple monitors. I have been trying to change it to l

Creating Sales Order and Sales Lines in Microsoft Dynamics using OData and Python

I am working on integrating Microsoft Dynamics NAV 2013 R2 with my Python application. My objectives for this integration are: Query all the Sales Orders Create

Explicit concurrent copying GC freed, Xamarin.Forms

I want to create the data model asynchronously. I am using MVVM. My code looks like this. class Page (code behind): public partial class PageMusicPlayerView : T

Apple TestFlight reject with wrong version number

At App Store Connect, I have published my app, v2.0.0(17). Last 4 days ago, I released V2.0.1(18) to TestFlight and it is still processing. I need to increase t

Updating Created Custom KivyMD Property

I'm hoping there's a way to do this but not entirely sure. I want a way to update all of my labels after a button press. This is how I'm currently doing it whic

MacOS BASH, Get output from networkQuality command running in background

I am trying to launch networkQuality command in the background and live fetch the first part of the output to the bash script launching it. First part I want to

Safe ways to retain an encryption key in a local service memory after a reboot?

I'm writing a Windows service that receives an encryption key from our web server. Such key never leaves memory and is used to encrypt and decrypt sensitive dat

Mongoose.connect keeps coming back undefined

I have this mongoose.connect statement in my server.js file: const db = mongoose.connect(config.db, { 'useNewUrlParser': true, 'useUnifiedTopology': tru

Using value from Excel cell as filter in MS Power Query

I got an excel file which should use a query from an ms access file (which is a front end for a ms sql server) But instead of receiving every entry I want to us

ModuleNotFoundError: No module named 'azure.cosmos' on azure function in visual studio code

I've been trying to incorporate azure.cosmos into a azure function without using binding since the scenario isn't beneficial for it. The problem every time i tr

How do I run 1 instance of rsync / rclone script using flock as a cron job?

I'm trying to run only one instance of my back up script as a cron job. I know I can do it with a function that checks if the process is running: if pgrep -x rc