text string | meta dict |
|---|---|
Q: Clustering: cosine similarity for weekdays and euclidian distance for numerical values I want to cluster my data by weekdays and by parameter LA, and TFSD. Weekdays are just strings from "Monday" to "Friday". I have a function that calculates the similarity between two days:
def weekday_distance(day1, day2):
days... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629880",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What are @@ -20,8 +23,8 @@ random.seed(1001) in git diff? To check differences I run git diff:
(reg37) C:\Users\banikr\PycharmProjects\Registration\registration>git diff master origin/master
diff --git a/mainfile.py b/mainfile.py
index 94a5113..4b514f1 100644
--- a/mainfile.py
+++ b/mainfile.py
@@ -9,6 +9,9 @@ impor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629884",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Building aws cdk-stack get 'Error: Cannot create a VPC Endpoint with no subnets' I'm creating an AWS CDK stack (2.66.1) in which I have to define 2 VPC endpoints.
I defined all the resource necessary to my app but when I try to build it with 'cdk synth', it doesn't: Error: Cannot create a VPC Endpoint with no subnet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629886",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can I update migration in EF core if i add only one property in Model While working on Code first in asp.net core 6.0 application. I am using code first technique. My Question is:
If I add a property in Model then I have to remove database and migration and then need to recreate migration and update-database, Is the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629887",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Javascript Object Extraction let myLibrary = [];
function Book(author,title,pages,hasRead){
this.author = author;
this.title = title;
this.pages = pages;
this.hasRead = hasRead;
}
function addBookToLibrary(author,title,pages,hasRead){
let book = new Book(author,title,pages,hasRead)
myLibrar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629890",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to handle correctly SIGTERM in a gunicorn app? I have a Python Flask app:
from flask import Flask, Response
import signal
app = Flask("myapp")
def exit_gracefully(*args):
print("Doing something here")
signal.signal(signal.SIGINT, exit_gracefully)
signal.signal(signal.SIGTERM, exit_gracefully)
@app.route(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629891",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Remove Laravel job failing limit After failing a queue job more than 3 times, This error happens:
App\Jobs\UpdateProviderPrices has been attempted too many times or run too long. The job may have previously timed out.
Also Laravel queue do not allow other jobs to run due to that error.
How should i completely remove... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629893",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Prestashop - when editing the customer's address in the order, the shipping price will change to zero, but it should remain Prestashop: 1.7.4
I found a bug in BO-Orders: If an address of a customer is edited directly in the order, the shipping cost in this order is changed to zero. The shipping cost should remains, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629894",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a way to make a password into stars I am making a password checker but I want it to print out the passcode but in *.
My code is:
username = input("What is your name?")
password = input("What is your password?")
password_length = len(password)
print(f'{username}, your password, {password}, is {password_leng... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629895",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unification of types I am doing this exercise on unifications of types and I am having a hard time understanding if it works. This exercise is specifically being done with f# in mind.
To my understanding my goal is to change the variables of the two types so that the become the same. If that is not possible, the typ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629896",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: .NET Core 6 with Pomelo.MySql and Docker Compose "Unable to connect to any of the specified MySQL hosts." I have a simple .NET Core App 6 that connects to MySql ver. 8.0.32 Database through Pomelo.EntityFrameworkCore.MySql.
It works when run normally but not when containerized.
When I expose the ports for the db (fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629898",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: freeze table name not working in typescript I'm Using
node: 18.12.1
seqqelize: 6.29.0
typescript: 4.9.5
**My sequelize instance is like as: **
export const sequelize = new Sequelize(config.db.DB_NAME, config.db.DB_USER, config.db.DB_PASS, {
host: 'localhost',
dialect: 'postgres',
port: 5432,
define:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629900",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: why do i get 403 request when trying to get available balance from kraken C++ im using open ssl, cpr and chrono to access krakens restful api to recieve account balance from kraken, but i get a 403 request.
code:
#include <iostream>
#include <string>
#include <cpr/cpr.h>
#include <nlohmann/json.hpp>
#include <chrono... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629902",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Flattening messy data across multiple columns
In Column N-R I have SKUs (in some cases just one SKU and in some cases up to 5 SKUs in total). In column S and T are the corresponding EAN and ASIN for each SKU in that row.
For example, row 27 has SKUs 6666 and GB-MA97-3GFI and the associated EAN and ASIN for each the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629904",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SCSS file use of image / url() won't appear in page styles Two weeks ago I converted all my css to scss files. Everything except the use of a background image is working. I have been researching solutions to no avail because it seems that similar questions have all gone unanswered for several years.
Ideally I would ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629908",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Use default values for some props without having to specify every single one in the FC arguments? With defaultProps being deprecated, I wonder if it is possible to only declare some props' default values in the function arguments and not having to specify every prop in the arguments , as soon as one is supposed to h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629909",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I am getting KeyError
Traceback (most recent call last): File
"C:\Users\user\Desktop\depremleri-goruntuleme-main\main.py", line 15,
in
for item in json["result"]: KeyError: 'result'
im getting this keyerror error and I don't know how to solve it
import json
from os import system
from time import sleep
import re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629915",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Regex to match numbers upto 12 digits I am writing a code in java where the account number key will take up to 12 digits values.
I am having issues if I write \\d{12}.
Let's say someone may have 10 digits account numbers. So my code gives me an error because it did not find 12 digits in that account key.
so how can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629916",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Herokue app deployed but application does not display H10 error Okay I am using a react app with the classic Mern stack. I was able to deploy my application but this what I see now. enter image description here
https://dev.to/lawrence_eagles/causes-of-heroku-h10-app-crashed-error-and-how-to-solve-them-3jnl#:~:text=I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629920",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Randomizing OpenCL/CUDA indexing by some permutation Typically I work on the float volume of the integer sizes vdimx, vdimy, vdimz in OpenCL. On the beginning of the kernel, I typically have the code such as
int i = get_global_id(0);
int j = get_global_id(1);
int k = get_global_id(2);
It seems that OpenCL runtime a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: When I store a File object using Jotai's atomWithStorage, why does the object change after I dispatch my react hook form The logs (picture 1) within the red square happen when a photo is opened to be displayed in react-avatar-editor to be editted.(picture 2-3) all the logs below the red square happen when i click th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629927",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can't get object by name instead of array position with json path I need to get the first pet name of the first "other" object that in this case is "jhon", i am using this JsonPath "$[1].other.pets[0].name" and it works correctly but i can't use [1] because the first "other" element could be at [0] in the next json ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Visual Studio 2017, I don't want to submit some .cs file changes in Git I don't want to submit just some .cs file changes in Visual Studio 2017, Git. I am waiting to hear from the person who made the request to continue working on some files. According to the news, I will continue coding or undo the changes I have m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629930",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Write json scalars in R In r, I have some data in a data frame and need to export it to jsonl. In jsonl each line is its own valid json. As the linked question shows, you can easily do that by applying jsonlite::toJSON() to each row. My problem is that I need one of the variables to be a scalar string, but toJSON ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629931",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why isn't my class variable being set after calling database.child("users").observeSingleEvent() from FirebaseDatabase in Swift? When using the function database.child("users").observeSingleEvent() from FirebaseDatabase, I am able to retrieve the expected results but not save it in a class variable of a different cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629933",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Problem with knitting R documents from RStudio I am trying to knit a document from RStudio to pdf, but I am getting the following error (attached). I have made a MWE that replicates my problem.
Error
I have Rstudio 2022.12.0 on Windows 10 Pro with R 4.2.2, along with TexLive 2022 and Pandoc installed. The latest ver... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629934",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I integrate my spreadsheet (Airtable, Google Sheets or Excel) with a database (including read/write access)? I run a start up and am currently managing two separate systems: 1) my production database that includes all core tables that power my business; 2) a set of interconnecting worksheets that I use for a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629935",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Solving a flexible multi-depot multi-vehicle VRP with OR-tools I'm trying to solve a seemingly unique VRP using OR-tools where I have a number of depots, each with a capacity constraint and a number of vehicles, also with a capacity constraint.
I then have a number of parcels I can drop off to any of the depots for ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629938",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I read Data from a JSON File and display it in Flutter Widgets? I would like to use my JSON file to store all the info in it to display in Flutter.
Everytime i get this Error:
_TypeError (type '_InternalLinkedHashMap<String, dynamic>' is not a subtype of type 'List<dynamic>')
Here are my Files:
db.json
breed... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629939",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to replace particular characters of a string with the elements of a list in an efficient way? There is a string:
input_str = 'The substring of "python" from index @ to index @ inclusive is "tho"'
and a list of indices:
idx_list = [2, 4]
I want to replace the character @ in str_input with each element of the idx_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629940",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can i add a click event to a circle layer in mapbox android? I've created a circle layer in a mapbox. I can add an event to the annotations, but how can i add a event click in my circle layer and get the information from each particular point ?
I want to be able to click on the circle and then get the informatio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Alternative for "any function" ((...args: any[]) => any) without using any I wonder if there is an alternative way to specify the function type "any function" that does not use any (and therefore improves type-safety).
To clarify, I am searching for an alternative for the following type:
type AnyFunctionAsUsual = (.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629945",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to filter and create a new database in r based on the latest observation and date rows? any help is much appreciated!
I have an extended database (more than 1000), and I would like to eliminate some rows and keep only the latest information on each individual's name. I have no idea how to start.
Original Databas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629946",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Gitlab Job failed keeps failing during "prepare environment" since it cannot link container Docker build job keeps failing with below error:
"ERROR: Job failed (system failure): prepare environment: Error response from daemon: Cannot link to a non running container: /runner-3fjcetbw-project-36861-concurrent-0-8c1f41... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629947",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why does getrefcount increase by 2 when put inside a function? Consider the following code.
import sys
a = [1, 2, 3]
def foo(x):
print(sys.getrefcount(x))
foo(a) # prints out 4 -- but why?
When we invoke foo(a) and when print(sys.getrefcount(x)) executes, the array [1, 2, 3] is referenced by a, by the parame... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Symfony set `createdBy` and `modifiedBy` properties of entity I want to automatically set the createdBy and modifiedBy properties of an entity.
To set these properties I use the doctrine lifecycle hooks prePersist and preUseras described here: https://symfony.com/doc/current/doctrine/events.html#doctrine-lifecycle-c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629954",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: System calling registered components with trait mutability and borrowing issue I have worked hours on this example and read a lot about Rc and RefCell and RC. I have tried many variants of my example code, including simple, using Rc only, RefCell only and Rc and none of them works. I want to have a system made of co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629957",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Send a message to new Websocket connection in AWS API Gateway I have an AWS API Gateway websocket endpoint for $connect which calls a lambda function. I want that lambda function to send back a message to the user after they connect. Is there any way to do this?
This is what I have tried in the lambda. The messag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629960",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Fire TV input It does not show the decimals I AM developing an HTML5 App.
But in the Fire TV input It does not show the decimals Option. See image attached.
I AM using a input type number.
Any Help please?
This is the input HTML
<input name="screen_field" type="number" id="screen_field" style="font-size:50px; text... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: cloud function instance seems to upgrade automatically the memory if needed (gen 2) I'm using cloud function (gen 2). The cloud function is running in python 3.10. During the execution of the cloud function there are a lot of heavy files that are cached in memory.
It happens quite often that there is a message error... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629965",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Uneven Dashed Lines in Excel Chart Embedded in PowerPoint I have some Excel line charts embedded in PowerPoint and have automated updating the data behind them via Excel/VBA. One of the data series has a dashed line but the strange thing is that the dashes are uneven.
In this zoomed-in screenshot:
I put green dots... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629966",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Outlook Calender Event using Nodejs (ics, Nodemailer) This question is already asked here but no answer, how to add outlook event using nodejs
I am using ics and Nodemailer to send events to the clients using emails.
I am getting correct results on the gmail as expected
But it is not working on the outlook, it just... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629973",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: I need to add 2 columns in my SQL stored procedure FirstDateofWeek, LastDateofWeek I cannot see where to add these columns and group on them within my code see below
SET NOCOUNT ON;
Set Datefirst 1;
DECLARE @Today DATE = '2018-12-31' --getdate()
DECLARE @SinceDate DATE = DATEADD(yy, DATEDIFF(yy,0,@Today),0);
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629974",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Building a gauge with WPF controls I'm trying to build a gauge using a WPF using the following video
text
There's a part in it where this chap about about 8 to 9 minutes adds a custom expression to allow for a png file to be attached. When I do the same thing I get this error. Unable to convert the given expression... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629975",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: How do I add options to the Windows 11 context-menu (right-click) specifically after I highlight some text? I want to trigger an action by highlighting/selecting text anywhere, right clicking and clicking on my custom option.
My problem is that I don't know how to add that option to the context menu ONLY after highl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629979",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How could I solve the error of an installer, to an old program but it runs windows 10 enter image description hereinstallation error HRESULT: 0X80070C81
When trying to install the installer on different PCs, it gives me the error shown
I have tried uninstalling the installer, updating dependency but I don't know wha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629982",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: vscode snippet variable regex to replace \ back slashes with / forward vscode allows variables in snippets such as e.g.
${TM_FILEPATH}
What is the regex to replace all back slashes with forwards slashes?
I've tried:
${TM_FILEPATH/[\\\\]/+/g}
${TM_FILEPATH/[\\\\]/_/g}
They both work and replace the backward slash w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629986",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Lookup table in R by matching ranges I have a table:
CHR POS
10 4342
20 100
22 5422
I have another lookup:
CHR start end Gene
10 4000 5999 ABC1
20 50 200 JHT
22 5000 6000 KLO
Desired output:
CHR POS
10 4342 ABC1
20 100 JHT
22 5422 KLO
In reality there are 700,000 entries in table 1 and rough... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629990",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Show differences in a text file between two XML files with XSLT1.0 I have already posted a message about the problem but i have too badly explained the problem.
Compare two xml files with XSLT
So i have decided to post an other message.
I have to compare two XML files.
It is not allowed to use external jars. So XMLU... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629991",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: hadoop URLs: can access cluster but not proxy I am able to browse the following link to view the status of a job
http://cs237l-05.****.***.**:8088/cluster/app/application_1677689154240_0010
However, when I click on the history link therein, which points to http://cs237l-05.****.***.**:8088/proxy/application_16776891... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629996",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: removing different parts of a 2D array in VB.NET Hello StackOverflow community yall have been awesome. I have one last question to see if anyone has done this in the past and if there is a easier solution than mine. In my 2D array I have built I have a .csv file I am reading in. However, I am having to leave parts i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629997",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Azure App connecting to a VM via private IP and VNet - just can't work it out This seems like it should be simple. I have a VM set up and it has a private IP of 10.x.x.x. There was a VNet created at time of VM creation.
I have an app service and I am trying to add a VNet to the outbound traffic so that the app servi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75629998",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rust Rocket, how to Access Data from a Request URI Query I'm busy working with a Rust Rocket application and I was wondering if it is possible to access the data from a Request URI Query object from inside of a FromRequest implementation.
I have an example FromRequest implementation as
use rocket;
use rocket::{Confi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75630002",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: linear regression using type 2 sum of squares, how to extract slope, intercept, r2 from model output? I am wondering how to extract slope, intercept and R2 from the output of linear regression using type 2 sum of squares?
I know that it is possible to perform "type II" sum of squares using R package car. For example... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75630003",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a way to include a Next.js application in a WordPress page I am developing a couple of WordPress plugins with a JavaScipt frontend UI. I chose React as a solution, which could be easily built and included on a WordPress page via shortcodes and wp_enqueue_scripts. Then I came across Nextjs, and I know it can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75630007",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: lsp-rust has slow code action and syntax highlight I use spacemacs with rust layer (lsp-rust-analyzer backend). When I made syntax error, the error highlight appears after a small delay. Then I correct it, the old code action and error highlight sometimes still there, event when no error at current buffer.
I curren... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75630011",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: useEffect with document.addEvent-can't understand output I am running the below code:
import { useEffect, useState } from "react";
function App() {
const [counter, setCounter] = useState(0);
useEffect(() => {
const listener = () => console.log(counter);
//Do not do this
document.body.addEventListene... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75630013",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Flutter load model tflite load the tflite model but I get an error as shown in the picture. Please advice.
Answer for research no error
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75630014",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: excevp does not take over child process (C++) I am trying to run the stockfish engine as a child process in my code. I want to use fork() and execvp() to do this. I temporarily add the location of the stockfish executable to my PATH by running the command
export PATH="~/Apps/stockfish_15_linux_x64_avx2:$PATH"
And I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75630015",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Database connection timeout intermittently on Debian 11 / NGINX / PHP-FPM stack with WordPress/Laravel Appls The stack is a newly built NGINX/php-fpm(8.2) debian 11 web server on EC2 and RDS database (MySQL8). Using WordPress and Laravel framework for separate apps.
Requests to PHP apps that require a DB connection ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75630019",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: password change api with laravel There is no error in the codes I wrote, but the password of the user who receives the mail does not change. The password that changes is only the password of the first user in the users table. No matter what I tried, I could not succeed.
Api.php
Route::post('/forgetPassword',[UserCon... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75630026",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: R vs MATLAB - Log normality testing A friend of mine and I are collaborating for testing datasets in different software (for the sake of consistency). We are looking at log normality testing of datasets in R and MATLAB.
I have used the following code in R.
x <- read.csv('pdd.txt', header = F)$V1
f <- fitdist(x, 'lno... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75630033",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Is there a way to do priority join that looks up value based on multiple date range criteria using SQL in Snowflake? Example:
Rate table
Country
Code
Start
End
Rate
Belgium
A
2023-01-01
2023-03-03
0.5
Japan
B
2020-01-01
2021-01-01
0.1
Japan
B
2020-03-01
2020-12-31
0.2
Japan
B
2021-02-01
2022-12-31
0.3
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75630034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What would be the best way to organize and categories IP address space and IP's in Azure I have inherited an Azure Network environment from a contractor and the Network address spaces and IP's are a huge mess . Every Vnet has 3 or more Address spaces and couple of subnets .
I often run into the problem where the IP ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75630036",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Loading a file and extracting values in python Sample Distributions. Go through PlotsHistsofData.py Part 1 and understand the code. The first
goal is to load in the data from a text file: bm_results2012.txt. You will need this file to be in the
same folder as your PlotsHistsofData.py file.
*
*What data structure i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75630042",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Error boundaries vs errorElement from react-router-dom package I am learning how to use react-router-dom now. I have just encountered errorElement prop in createBrowserRouter function, I totally understand how errorElement prop works but I can't understand when I should choose error boundaries instead of errorElemen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75630048",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Next 13 (experimental app folder) problem generating dynamic routes with queries I'm making a Dog's shelter web (non profit) and I'm trying to generate dynamic routes for a list of dogs.
I'm using Next.js 13 with experimental app folder, also using @apollo/client and graphql.
This is a summary of how the files and c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75630049",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Will change stream work for time series collection in MongoDB I have a requirement where we need to use change stream to track the data insertions to Time Series collection.
I tried to create a change stream listener to that collection. But it is not working.
I tried this. This is a sample code that can listen to al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75630051",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Create an auto update feature in my python app I am looking for an easy and pythonic way to make update my python app on the users machines. Currently the app is hostet in github and I have release versions, but it would be cool if my users would be able to click a button or run a command and if there is a new versi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75630052",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using Fingerprint Auth via Browser to encrypy data client side I'd like to know if there's a way to use the user's fingerprint in the browser to cipher/decipher some data without the help of a backend.
I was looking into WebAuthN but I'm not really an expert and I couldn't figure out if this is what I need.
The use ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75630053",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: to-do list in ember "model.pushObejct is not a function" error. i am trying build an to do list app..and while updating an object it says model.pushObject is not a function.
<ul class="hand">
{{#each @model as |item|}}
{{#if item.id}}
<li>{{item.title}}</li>
<button onclick={{fn this.delete @model item}} typ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75630054",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get list of all keys in redis created by celery for tasks in Flask app I have two containers which are running Python Flask apps let's say 1 and 2. Number 1 communicates with Redis and creates below messages in redis-cli monitor:
1677744862.693857 [0 192.168.80.13:44076] "SUBSCRIBE" "celery-task-meta-11902e64-94cc-4... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75630058",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Short syntax for OUTER JOIN with one different column in the SELECT list In my Postgres database, I would like to join table A and table B to get table C. Table B is treated like an overlay over table A:
Table A: "new"
id
new
operation
1
newval1
INSERT
2
newval2
UPDATE
Table B "old"
id
old
operatio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75630060",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Svelte format text input I'm looking to create a text input that formats the inputted value as the user inputs it. As the formatting function strips additional characters from the string the input value doesn't update. A bit of a contrived example, repl link
<script>
let value = "[hello]"
const parse = (v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75630062",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I call web services in C# that have class objects as parameters? There are no run-time errors. But I can't invoke these web services. The invoke button works perfectly fine for web methods with no class object as a parameter. Here is my code.
public class WebService : System.Web.Services.WebService
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75630064",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I want to get the total count of ratings to show average ratings from firestore but I am unable to get the results here is my code I want to get the total count of ratings to show average ratings from firestore but I am unable to get the results. please help me get the total of ratings
Widget reviewPanel(_reviewsSt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75630067",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WCF Generated Client vs Web Request I just had a general question about WCF Client generated by svcutil from a WSDL versus making a call using HttpClient with the correct parameters. I didn't even know WCF existed until a recent integration with an external API. They provided us with a WSDL and I was able to generat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75630068",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Export high-quality contourf plot for publication, too large I didn't found a topic about exporting high quality plots, generated with the contourf command using matplotlib library.
The issue I am facing is that when I export the plot as .eps with
fig.savefig('largecontourfplot.eps')
I cannot open it with inkscape ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75630069",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: during each background video has all game objects that produce randomly In the unity, I have background videos that play randomly and no more than once. I have game objects, and their order is random. I want to be sure the player can see all game objects during each video. If the video is done, but the player doesn'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75630072",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Deep Learning with Python IMDB dataset I am currently working through Chollet's "Deep Learning with Python." My neural network is running just fine but I am having an issue with plotting the training and validation loss> Here is the code:
from keras.datasets import imdb
(train_data, train_labels), (test_data, test_l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75630073",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Mui Input - Full width broken with min & max attributes I've put together a sandbox because I could not believe it was really happening but here it is:
https://codesandbox.io/s/nifty-swanson-yxj4n2?file=/NumberField.js:1075-1097
The issue is simply, if you have min & max attributes set on the html input, the width i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75630074",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: I am attempting to organize live data coming in from IBs TWS API into a Pandas dataframe however I'm getting that some names not defined from ibapi.client import EClient
from ibapi.wrapper import EWrapper
from ibapi.contract import Contract
import matplotlib.pyplot as plt
import pandas as pd
import threading
import... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75630078",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to run Windows App SDK packaged C# app at startup? I want to run my packaged c# app to start at log-in. Under the guidance of this post, I configured Package.appxmanifest and added relevant code to my app. However, when users log in, the splash screen appears but then the application fails to launch.
The post me... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75630079",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: make part of a line in flextable bold I have:
df = data.frame(col1 = "this is some text <b>that is bold<\b> this is plain")
I want to make the part in the tags bold in a flextable. I have 100s of rows of data and specfic bits of text will be made bold.
df %>% flextable() returns:
Any suggestions? Am I missing some... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75630081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to force FFMPEG to ignore KeyboardInterrupts? In my Python script I intercept KeyboardInterrupts to ensure that the script can finish what its doing before shutting down. However I've found that FFMPEG, which I'm using by triggering commandline commands, immediately ends its current prosessing, before then leadi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75630083",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jq - add element from outside array {
"TypeName": "AWS:Application",
"InstanceId": "i-0af68a7cf857bd010",
"SchemaVersion": "1.1",
"CaptureTime": "2023-03-01T16:28:43Z",
"Entries": [
{
"ApplicationType": "admin",
"Architecture": "x86_64",
"Name": "accoun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75630084",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Merge dataframes error: different variable type When doing a merge between 2 dataframes in Python, I am having as error "ValueError: you are trying to merge on object anda float64 columns".
Is there a way to solve this without having to changing or converting the variable type of one of the dataframes? The idea of c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75630086",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to integrate unityframework in Xcframework? I developed Xcframework by using SwiftUi and my requirement is need to integrate unityframework with my Xcframework. Please help me out
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75630089",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Taking the average age an employee is hired with Sqlite3(python) I need to subtract everyone's years worked from their age, and take the average. My final answer should be a whole number to represent the average age when hired.
Here is my code
select HireDate,
CASE
WHEN strftime('%m', date('now')) > strftime('%m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75630091",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: When you give a 404 NOT FOUND , even though I am using it route resource . I don't go to any page When you give a 404 NOT FOUND, even though I am using it route resource. I don't go to any page
Route::resource('/' , ClientController::class)
<tbody>
@forelse($clients as $client)
<tr>
<th scop... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75630093",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Flutter - FutureBuilder not waiting for "future" to return I check some similar topics regarding this, but couldn't find a solution to my problem.
I created a FutureBuilder on my Home screen, because I want to use the result of an asynchronous function (that reads a JSON) to build it. I'm calling this async function... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75630095",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I disable the popup that shows parameter info? I can't figure what this kind of popup is that shows information about function parameters for various overloads of a function I am writing a call to.
I want to get rid of it, but without its name, I can't.
A: These are parameter hints. Try setting the followi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75630097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: index 1 is out of bounds for axis 1 with size 0: Python I've recently come across an issue when trying to run a for loop on a dataframe where it will seemingly loop through 427,942 rows before it results in the following error: index 1 is out of bounds for axis 1 with size 0.
Here are the two code blocks I think to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75630098",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Detect missing values in polars based on conditions I am currently identifying rows with missing values and filtering them into a report. I am adding an index and a "warning" column.
report = (df.with_row_count("index")
.filter(pl.any(pl.col("*").is_null()) & pl.col("mandatory").eq("M"))
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75630101",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: CSP in chrome extenstion block my use of elfsight apps I've built a chrome extension using reactjs.
To the build process I've add the variable INLINE_RUNTIME_CHUNK=false as stated in:
https://drag13.io/posts/react-inline-runtimer-chunk/index.html
I don't see any js inline code in my index.html file.
My extension use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75630106",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Oracle SQL Developer - Adding multiple subqueries to find latest date values I am trying to select data from four different tables: orders, appointment, plan, and scorecard. For the appointment, plan, and scorecard tables I am trying to extract pickup and delivery dates. All orders have plan and scorecard dates but ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75630108",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: All Swift BrightFuture callbacks happen on the main thread, right? When we make an asynchronous request using BrightFutures.
service.makeSomeRequest(
param1: value1,
param2: value2
)
.onSuccess { [weak self] result in
...
}
.onFailure { [weak self] error in
...
}
Which threading context will the res... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75630110",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Multiprocessing and event, type hint issue python I have used multiprocessing module to perform a background task.
# module_a.py
from multiprocessing import Event
from multiprocessing import Process
class BackgroundWorker(Process):
"""Create a worker background process."""
def __init__(
self,
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75630114",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Pythonic way to type hint the output of a function that returns `Optional[object]` I'm using vscode with intellisense, so that when I write instance_1. I have access to all methods and attributes of instance_1, if I've used type hinting correctly.
The problem comes that when I use Optional[object] to type hint a fun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75630115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: (C#) How to know if a key is held down in .NET Console Application I want to know, if a key is held down by the user. I know how to do that in WinForms, but no clue in Console App. I don't want to download any C++ libraries or anything. Just want to know if you can do that using the System namespace.
So, as you know... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75630116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |