Latest Questions

Using C# LINQ with MongoDB Find

I am only about 3 days into using MongoDb and C# driver so be gentle. ;-) I have a MongoDB query working with AsQueryable. I would like to use the collection.Fi

Use HTML file with inline or external css in flutter

I am working on a flutter application, which consists of an EPUB reader (I have used the epub_view package to render the EPUB files). Since we already have a we

Checking response code of all URLs in a column [Airtable database]

We have an airtable database of over 24000 records. These records are websites, and many now have errors in them (missing "/", extra space...). We are trying to

Coefplot plotting same (name) estimate from different OLS models across three years in a single graph

Using coefplot in Stata, I am unable to plot the same estimate from different models across three years without having the estimates bunch up into a single year

How to remove Play Games Services from game?

I'm having a hard time setting up a Leaderboard using Google Play Games Services, so I want to remove Play Games Services from my game and restart from scratch,

conan + cmake generators : include directories not found during compilation

I am new to Conan, and I'm struggling to use specific conan packages in CMake. I started with including boost to my project using conan, and that worked out gre

Cannot import package in AWS lambda with Nodejs14.x ES module

I have a layer where the path of node_modules is nodejs/node14/node_modules. Using that layer, and I try to import a package in a Lambda function, say 'aws-clou

What does "100 *" mean in "100 * df. isna().mean()"?

Can anyone explain what is the use of 100 * in the following line of code: 100 * df.isna().mean() Is it intended to get the percentage of the average value?

How to cut the following shape(s) in Inkscape?

Using Inkscape, I'm trying to remove the diagonal straight line that runs through the circle, but none of the boolean tools or path editing tools seem to work.

Why the unary * operator does not have a constraint "the operand shall not be a pointer to void"?

C2x, 6.5.3.2 Address and indirection operators, Constraints, 2: The operand of the unary * operator shall have pointer type. Why there is no constraint "the o

Do basic block parameters mean code locality?

Most modern compilers use some form of SSA for internal representation, which needs some notation for variables whose values can come from more than one source.

Average of List<objects> in c#

I have a list of object. class Student { int age; int height; int weight; int marksInMath; int marksInScience; . . . . . . int marksIn...; } List<Stude

Comparing latency of mutex vs. spinlock wake time

I am curious about the latency of a mutex vs. spinlock, measured as the time between when one thread unlocks it and another waiting thread can access it. I wrot

module lookup disabled by GOPROXY=off, but go env shows GOPROXY is set

When trying to lookup some modules, I am having an issue from VS Code where the error pictured below indicates that my GOPROXY is set to off, but when I run go

Magento 2 Guest Checkout is disable but still getting spammed with failed transactions checkout via guest

I am having hardtime with a Magento 2 at my work where occasionally got spammed with hundred of failed transactions in a short amount of time checkout with a 3

Error when loading a custom layer from config

I have a custom preprocessing layer which basically takes the input and applies the preprocessing function of a pretrained network coming from tensorflow.keras.

Rundeck failed to remove remote file in C:\WINDOWS\TEMP\ when the Job times out

Notice that when the Rundeck job triggers a timed out due to running too long, it fails to remove the temp file from my remote window node. Due to this action,

WikiData SPARQL query gives different numbers with and without labels

I am trying to download from Wikidata the journals with their OpenAlex id. This query tells me that there are about 85k SELECT (COUNT (?entity) as ?entries) WH

difference between mongodb and mysqlhow to firebase deploy

I wanted to use the mongodb database, but I noticed that there are two different databases with either their own website and installation methods: mongodb and m

Rotate a Multiple Lines in OpenCV/Python

I have many lines in my opencv, I want to rotate them but Opencv does not have shape rotation functionality. It has image rotation function. I made a rectangle

iOS TextView is saved blurry when scaled

I tried save textview as image with not device scale. I implemented a method to save an image by adding an arbitrary textview according to the UI value. Because

Converting PyTorch Boolean target to regression target

Question I have code that is based on Part 2, Chapter 11 of Deep Learning with PyTorch, by Luca Pietro Giovanni Antiga, Thomas Viehmann, and Eli Stevens. It's

Disable dark mode on iOS app while still being able to get prefers-color-scheme from WKWebView

I'm using the newest version on Xcode for my iOS app. I don't want iOS to automatically change the colors in my app when device is in dark mode, because it does

How can I convert an empty string value to a nullable date value?

When I use Postman to test my API with a PUT request, I get this error: "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1", "title": "One or more valid

Flutter Visual Studio - develop for Windows

There is a warning when I use flutter doctor : Visual Studio - develop for Windows X Visual Studio not installed; this is necessary for Windows development. Dow

React Native FlatList - Useless remount when nbCols > 1

There is a performance issue on Flatlist when nbCols > 1 that remount every items. This is a reproducible example here : https://snack.expo.dev/@techskeat/fl

why am I getting this 'the referenced script on this Behavior is missing!' error in Unity?

I'm trying to make a simple FPS movement script in Unity. I made a player called 'player' with a capsule collider, a rigidbody, and a camera. Everything worked

HTML/CSS Radio buttons not clickable due to being inside a Radio controlled tab container?

I have created a set of radio buttons to allow users to provide a response to a set questions. The HTML I have set works perfectly on a fresh html page but when

Script to double quotes

I have a keyboard that does not have double quotes, when I need to use it, it's very difficult to remember the FN. How can I create a script so that when I pres

Databricks repos - unable to use dbutils.notebook.run with absolute path

I'm unable to get an absolute path working with dbutils.notebook.run(). Using the absolute path with dbutils.fs.ls(with "file:/Workspace/Repos/user_email/Datala