Latest Questions

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

Python/Pandas Calculate the mean time (hour) of a Datetime column

I have a Pandas DataFrame (data) with a column ['Date'] in DateTime (date and time) which represents the time of arrival. How to calculate the mean of only the

trying to reverse string without string function strrev but not working in c

#include <stdio.h> #include <string.h> void main(void) { char in[15], rev[15]; printf("Enter a word (upto 15 letters): "); gets(in);

ADF vs KPSS test for stationarity and ACF vs PACF

The series is stationary according to both ADF and KPSS test for stationarity. However, both ACF and PACF plot still show significant lags. Why is that?

ASP.NET Core razor view doesn't show up in browser

This is what the browser shows me: This is my _Layout: @using Microsoft.AspNetCore.Mvc.Localization @inject IViewLocalizer _localizer <!DOCTYPE html> &l

C++: how to transfer files to netcat listener?

I'm working on an IRC server using c++, and I want to add files transfer to my server, but I don't know how to create the file in the user's host. I can read th

provideMockStore with MockBuilder in ng-mocks

How to overrider the selector value in MockBuilder provided with provideMockStore In general with Testbed beforeEach(() => { TestBed.configureTestingModul

Count occurances in multiple filtered rows

I need a little help since im new to PowerBI. I have a data set which says what have been eaten in a specific day. At the end there are columns which show if th

How to import js module when Typescript declaration file is located in a separate directory?

Question: When I run npm run build with the configuration below, rollup.js is unable to resolve the dependency (import) and displays the following message below

How to test whether stringstream operator>> has parsed a bad type and skip it

I am interested in discussing methods for using stringstream to parse a line with multiple types. I would begin by looking at the following line: "2.832 1.3067