text string | meta dict |
|---|---|
Q: equivalent of betadist of excel in python what is the equivalent of =BETADIST(0.5,8,3) of excel in python ?
I have tried using scipy.stats and unable to achieve same results..
A: As G. Anderson points out this depends on your specific application. For a start you can define a beta distribution in scipy, draw some s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: QgraphicsView slow line render I have been trying to make a line viewer in PyQt5, the main process is to load a geopackage file using geopandas and adding it to a QGrapihcsView scene. The QGrapichsView class is a zoom and pan capable.
For this example I used a generic line creator to best represent the actual probl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562106",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can SHAP package be used with sklearn BaggingClassifier? I'm wondering if the Shap package in python can be used with sklearn's BaggingClassifier? Or equivalently the BaggingRegressor?
Out of the box it doesn't seem to work, but wondering if there is a way that you can loop through each of the underlying models in t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562107",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Problems with YAML If, elseif conditionals I'm trying to use some conditional statements in one of our Azure Devops pipelines and I'm struggling to get the conditional to pass if the statement is set to true. I'm trying to do this so that we could specify which computer we would want to use for a task if one of them... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562109",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sync useState and DOM I am having an issue. When I tried to update my trips array through the search input, I am having the previous state. I mean, if I search "a" nothing happens, if then I search "ab", I got trips filter by title "a". If then I search "abc" I got trips filter by title = "ab" and so on, I tried wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562110",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: cannot serve functions with firebase Hi I want to serve only the functions of my firebase project; when I launch firebase serve --only functions on my prompt I get:
i functions: Watching "/home/giuseppe/Documenti/projects/addlance/genial-
lotto/functions" for Cloud Functions...
✔ functions: Using node@14 from ho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: concatenation two strings recursive i tried to concatinate a string N times using recursuve functions concatination and puissant in c
and i expacted that when the user enter the string and how much times he wants to repeat it
the string will be concatenated N times
i tried this code and it did not do the job
char* c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: CORS error while using Nest.js and server side rendered Angular Universal app I have a server side rendered Angular Universal app using Nest.js. So they are running on the same origin, localhost:4200.
I have tried enabling CORS (with various cors-options) in the Nest.js app using:
async function bootstrap() {
const ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: apply or loop rbeta using different alpha and beta values from a dataframe in R I'm trying to use sapply to create a matrix that contains output from rbeta using different specified alphas and betas obtained from a dataset. I think this should be fairly simple, but I am struggling.
Here is some data
q1 <- c(27, 104)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562117",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: So I have trained my own voice model using tacotron 2 but now that I have it I can't seem to find a way to actually use it in my ai's voice So I currently have a very basic voice for my code but I want to implement my own voice to the ai system here is what I have now.
from datetime import datetime
import speech_rec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to connect to local instance of a Kubernetes DaemonSet from another DaemonSet I am using a vendor solution that gets deployed as a DaemonSet in my Kubernetes cluster. These pods expose a service on a TCP port.
I would like to author a DaemonSet that would connect this service endpoint. I would like all of my Dae... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562124",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why is date locale 'en-CA' returning M/d/yyyy instead of yyyy-MM-dd? I have JavaScript code which displays the current date in en-CA format.
date = new Date();
console.log(date.toLocaleDateString('en-CA'));
Previously the en-CA locale formatted dates as yyyy-MM-dd (2023-02-24). However, as of today these dates s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562129",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I tell C# that non-nullable value can be null (opposite to null-forgiving operator) I use Entity Framework Core 7. When I declare an entity that is guaranteed to have a reference property, I declare it as non-nullable:
public class Employee {
public Employer Employer { get; set; } // no such thing as emp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562133",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Convert local file in repo to base64 in React Native I'm trying to encode a local image to base64 in react native. I tried
RNFS.readFile("../assets/defaults/puzzle.png", 'base64').then(res => { console.log(res) }).catch(err => console.log(err));
But then I realized that RNFS.readFile only accesses files stored on t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562138",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Terraform - Access map object using for_each I am using for_each inside a module and using each.key to dynamically get the value from a map
dynamo_without_index = ["employee"]
tf.vars.json File content
{
"accounts": {
"dev": {
"dynamodb": {
"employee": {
"name": "employee",
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562142",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to combine and sum a parts of List? C# I've got a certain database which consist of many objects, from this database I've got 5 parameters for each object and forming a list:
List<Tuple<string, string, string, string, double>> ListOfParts = new List<Tuple<string, string, string, string, double>>();
while (AllPa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562148",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Flash NOR: 1-1-2 mode vs 1-2-2 mode I am working on a Quad-SPI driver that communicated with a Flash NOR device. I am trying to understand the differences between various modes like 1-1-2, 1-2-2, 4-4-4 etc. The x-y-z stand for the number of lines used for command-address-data.
In my understanding if we are IO limite... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562149",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Where are the callbacks of a promise executed? When it is time to execute the callbacks of then, catch, or finally, where are they executed?
From what I have read on Stack Overflow, it is said that they are executed in the call stack of the main JS thread (since JS is only single threaded).
So, if this is true, does... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562153",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Google Earth and KML Animations I have a list of about 840 parcels belonging in 180 groups, which has been created in QGIS and downloaded to KML format using MMGIS.
We would like to program these files within Google Earth so that when one of the parcels in a group is clicked on, the rest light up or change boundary ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562157",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How can I count words or tokens in my code? There are all sorts of tools for counting lines of code in a source file or directory tree (e.g. cloc). There are also tools for counting words in a plain text file (wc).
How would I go about counting words or tokens in my code, though? Is this feasible without writing a f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562160",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Why do programming languages behave this way when there is no precedence? I realized that in Python and Javascript when we do this kind of conditional the logic doesn't make much sense, because if we put console.log in each condition, we will see that it should return false != true, so we should go inside the if and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562161",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Issue while trying to browse localy stored HTML files on chrome I am facing a problem.
simply I have a bunch of HTML-related files that I want to run locally on an Android device
for example, I have an index.html file it contains links to other HTML files when I try to click on those links to navigate to another HTM... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562167",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it safe to use portainer edge agent without a tunel server adress? tunnel server address option does not appear on the portainer community edition
So I'm planning on using portainer for my project and I realized that the edge agent for BE version has an additional tunnel server address option meanwhile the CE ver... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562169",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to justify text in the same way regardless of tags inside it I am working on something that needs to copy text under it and place some tags inside it (<span></span> in my case). Is there any way to make the tags not change the way the text is justified inside the container?
As I simplified the problem here:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562171",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: HTML Form from free template website not sending emails and showing an error message I'm learning to code basic websites and I'm having trouble getting the contact form to work. I'm using this free template: https://themewagon.com/themes/free-bootstrap-4-html5-construction-company-website-template-builderz/ and uplo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562175",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Use of Callbacks and Function Pointers in Embedded Drivers I am working on a Flash SPI Driver and am trying to understand callback functions or function pointers that get passed around from a higher layer driver to a lower layer driver. Can you explain how a callback function works in Embedded drivers by maybe takin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562176",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Adding new file to Docker image during buildtime The issue is boiled down to its most basic form by: In my Dockerfile I need to generate a new file, then add it to the image. The file is a tarball, but this simple example provides the same error output.
RUN echo "test" > test.sh
ADD test.sh /
The error I get is
ADD... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562177",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Parameter Value in Stack Using AWS CDK Typescript Using AWS CDK (v2), setting stack parameter as below.
//creating stack in DeployStage
export class DeployStage extends Stage {
constructor(scope: Construct,
id: string,
props: DeployStageProps) {
super(scope, id, props);
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562178",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHPMailer and Spanish Characters I am having trouble with Spanish special characters in emails not displaying correctly. I am using PHPMailer version 6.6.0.
I have tried the following in my project but I get errors:
$mail = new PHPMailer;
$mailer->CharSet = 'utf-8';
Uncaught Error: Attempt to assign property "CharSe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I add an if statement column relating to a calculated case column? I am trying to build a column in SQL that looks at a calculated case column and states yes or no if the value is over 500K.
My case column I want to build the if statement column off of is the following:
IFNULL(SUM(
CASE WHEN O.Opportuni... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562184",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: TypeError (type 'String' is not a subtype of type 'DateTime') This is my flutter code:
final extractedData = json.decode(response.body);
print(response.body);
and the following is the result:
[{id: 9046fcba-8ed2-46a6-97f2-778749eea53b, created_at: 2023-02-24T21:44:38.654Z}]
And this is my model for this data:
clas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562186",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: opensearch: Authentication required, can't export dashboard via kibana api Using the following documentation:
https://aws.amazon.com/blogs/big-data/export-and-import-kibana-dashboards-with-amazon-opensearch-service/
Using the 2 commands
I use this command to create the authorization cookies
curl -X POST https://{dom... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562187",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I optimize this code and/or make it DRYer? I'm just getting started with the django ORM and i have this code.
# if UP object exists, update it
if UserProgress.objects.filter(
user=current_user, card=Card.objects.get(id=submitted_card_id)
).exists():
# if card is understood, update the date_under... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562188",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Problems calculating phase from images I am having difficulty in implementing the 4-Step Phase-Shifting Technique with Matlab (R2016a), as the result is not what it's expected.
In this technique, pictures of an interferogram are taken after it's shifted by pi/2, from 0 to 270 degrees, and the phase encoded in these ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562191",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Issue installing JDBC drivers for MySQL on Debian 11, Apache Guacamole Hi I've installed Guacamole manually (no docker container or anything) on a Debian 11 VM in Azure. I am trying to set up database authentication with MYSQL but am running into an issue with the JDBC drivers.
Java version: 11.0.18
Tomcat Version: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562197",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Strapi send email on user registration isn't working I am trying to get an email to send on user registration. I am using Strapi with next.js and Apollo Graphql in the front end. I've modified my backend user controller and my schema.gql. I can register the user as they show up in the Strapi CMS but the email is not... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562198",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: in vite js, how can i remove the html extension from urls I am using vite js and when i use <a href="click.html">Click</a> the url opens correctly, (for example) www.example.com/click.html. When i try to remove the html extension from appearing <a href="click">Click</a> it just writes (for example) www.example.com/c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562202",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: safari displaying xlsx and docx in browser I built a webpage for company employees to access process documentation from.
It consists of various pages that use PHP to display files in some folders as hyperlinks for download.
When using my PC, from edge and firefox. clicking the links caused the files to be downloaded... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I fix python code to match cluster of dots from scatter with kernel density probability countour plot using matplotlib? Dear python specialists,
I am trying to plot a 2D scatter plot for two variables phi2 and theta on the top of their Kernel PDF countour.
When I do that there are two main maximum for the Ke... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562207",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: macOS 13.2.1 M2 processor brew install openssl error I'm trying to install openssl@1.1 via brew, and it's failing during the make step.
OS
*
*macOS Venture 13.2.1
*Apple M2 Max
Darwin mbp 22.3.0 Darwin Kernel Version 22.3.0: Mon Jan 30 20:39:46 PST 2023; root:xnu-8792.81.3~2/RELEASE_ARM64_T6020 arm64
Brew
Homeb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562209",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to identify the 'most occurring text value' in a particular column in a pandas dataframe I have a pandas dataframe, df:
Team Name Role Country
Mobile Developer USA
Mobile Developer USA
Mobile Developer USA
Mobile Developer USA
Mobile ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I need help setting up the final total that will add up the total price of each iteration This is my code, I just need help figuring out the ending total that will add up the total from each iteration together.
#include <iostream>
#include <string>
using namespace std;
int main()
{
string ownerID, ownerName, d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562219",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Valgrind memory leak in vector Right now I have a very simple program which adds the input string from stdin to a vect structure called command_list.
#define MAX_CHARS = 256;
int main(int argc, char **argv) {
char input[MAX_CHARS];
vect_t* command_list = vect_new();
// After starting, the shell should print ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562220",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to change default notification permission for my Android app? For some reason the Notifications are blocked by default on for my Android app. I've set the permission on my AndroidManifest.xml file, but it still blocked by default - how do I enable it by default?
<?xml version="1.0" encoding="utf-8"?>
<uses-per... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562221",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: IntelliJ Java 17 not running Snowpark Java I running this examples https://docs.snowflake.com/en/developer-guide/snowpark/java/example and not working. It's weird because works one time and then don't working anymore.
Follow the full error
Exception in thread "main" java.lang.IllegalAccessError: class com.snowflake.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Flutter StateNotifier, AsyncValue, StateNotifierProvider I am learning state management with flutter. I want to display error dialog when the error or exception is thrown by the API. Below is how I implemented the the provider state.
`// Creating state where the freezed annotation will suggest that boilerplate code ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562226",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Azure Pipeline - Job depending on last Job, but last job is part of a loop based on parameter array I have something like this:
- ${{ each workItem in parameters.workList }}:
- job: '{{workItem.Name}}_${{ parameters.poolObj.Name }}_${{ parameters.agentName }}'
...
- job: 'Clean_up':
...
H... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562227",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Printing results in playwright python eg. print(result) I just learnt playwright python and wanted to know how one can print the results of a page to the terminal. I have tried printing to the terminal in the playwright function but it does nothing. Also how do you check if an element is in the DOM and return true o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562229",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Tailwind CSS media queries in a Node JS app fail to work on a mobile device I built the following Node JS app with EJS template and Tailwind CSS.
Live Link: https://film-dash.onrender.com/catalog
Github
The media queries work fine on a desktop device. You can resize the window of the app and the media queries will r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562230",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Getting an HTML response from a POST request as opposed to JSON Sending a POST request via AJAX and getting back an HTML. The exact same POST request on POSTMAN returns a JSON. Any ideas what I am doing wrong?
jQuery.ajax({
type: "POST",
url: "proxy.php?url=https://***/***",
dataType: "json",
content... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562231",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Django-guardian has_perm("codename", obj) is False even if group has the permission I'm trying to implement django-guardian permissions in my project.
In the TestCase below, I assigned view_income permission to staff group. That means, also user_c has the permission.
The problem is that self.user_c.has_perm("view_in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562233",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Html email puts text on top of another text Here' an image
When i edit the text's div on my app it shows the text perfectly fine, but when i send an email it puts the text on top of the other text. ¿How can i fix this?
I tried adding more pixels to the divs height and the text style height expecting to have a little... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562234",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Possible to have nested auto-refreshing NetworkLinks in KML? I considered the following as a solution to a problem that I may have. I'd like to know the answer without getting into the problem itself.
I'm viewing generated KML files in Google Earth. (All files are local.) I know that I can create a KML file with ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562237",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Data recovery from RAW Disk My internal nvme disk won't boot due to sudden power outage. Its format is displayed raw in disk management. There is 940 gb of data, I don't want to recover all of them, I just need to get my steam save files.
I tried recovery programs and no results. In cmd ;chKDSK is not available for ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562238",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-6"
} |
Q: How to make a validation set with keras? I was trying to make a validation set for DNN model but i got this error " fit() got an unexpected keyword argument 'validation_data' "
Here is the code
train_x = list(training[:,0]) train_y = list(training[:,1]) val_split = 0.1 num_val = int(val_split * len(train_x)) val_x =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562241",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Babel and Jest configuration: SyntaxError: Cannot use import statement outside a module I'm working on a Ruby on Rails 7 app with a few JS web components written using lit element. I'm trying to add Jest to the project so we can unit test our web components.
Not using Typescript, just vanilla JS. I'm running node v1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562251",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: dotnet pack seems to use outdated sourcecode, even with a clean git clone First of all: I know how unbelievable this sounds, but I have tried absolutely everything that came to my mind, so please hear me out.
I am making a .NET 6 C# library and at every release point, I increment the version number in the .csproj fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562252",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to rename sbt dependency file names I have some dependencies from an internal repository. I don't want to include the group and version information in the jar files for these dependencies after packaging.
Dependencies:
libraryDependencies ++= Seq(
...
MY_OWN_GROUP % "some_dependency" % MY_OWN_VERSION,
.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562253",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cleanly route method calls based on input string I have some routing code that looks like the below. It works. But I hate having method names as opaque strings. Is there any way to make this more easily refactorable by IDE automation (e.g. renaming methods)? Other ways to do this that just are not quite as ugly?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562257",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Masstransit transactiona outbox + Masstransit mediator I am trying to use the Masstransit library, implementing the mediator provided by Masstransit to communicate my controller layer with the application layer, and also adding the transactional outbox pattern, but executing my project, when I use the mediator, the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562258",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Return the epoch of all date inputs without repeating the value, in splunk I have a report in my splunk that has a date column.
I need to return these date entries by epoch in a column on the side, but when it's returning the same epoch value for all dates, which are different.
enter image description here
try this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562260",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: WordPress / PHP: Check if column has value and then check if value in array I have a table called wp_invites which contains a list of names (and other data) for those invited to an event. Below are 4 rows from the table:
id
handler
lead_name
party
reference
invited_to_reception
reception_list
1
Freddy
John
J... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562261",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Setting session cookie in rails in the legacy app In my current setup I have a rails 5 app(and api), that has a classic MVC setup and it has a login and uses auth0 as identity provider. It's a classic sessions_controller#sign_in and #sign_out methods where session is stored in a cookie.
Just a snippet of sign_in met... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562262",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to make a scheduler in Google Sheets based on employee availability and ranking? Background:
The university is employing student workers. I am trying to schedule the student workers to work based on their class schedules. When their class is not in session, I want to schedule them for a shift. Sometimes, the stu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562264",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Not differentiate between uppercase/lowercase, but umlauts and letters I didn't find a solution for my problem. I want to search for strings and don't want to differentiate between uppercase/lowercase, but umlauts and letters.
So A and a should be treated the same.
But ö and o should not be treated the same.
If my c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562272",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Chrome - Save As not using correct filename when displayed inline I have a collection of files that I am storing in S3, and for various reasons, the actual name of the S3 object is not the original filename. But I am using the Content-Disposition header to set the filename I want the browser to use. And it works cor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562273",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What’s the Google ML Kit SDK License? Where can I find licensing information about the Google ML Kit SDKs?
I could only find information about Terms & Privacy.
Are the SDKs licensed under any open source license like Apache 2.0? I would like to use the SDKs in my commercial project.
A: SDKs are not licensed under a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562275",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: failed translation C# Linq to SQL Why would a translation question get closed?
Why is a linq:
SELECT *
FROM tb1
JOIN tb2
ON tb2.id = tb1.id2
ORDER BY tb2.name, tb1.name
Have issue with TakeWhile(o => condition)
on a subscript
It is such a simple script
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75562277",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: How do I get python to remember a name from a list? I want Python to remember the enemy name, but google didn't really help.
Here is the code:
print ("You have encountered", random.choice(enemy), "!")
I want it to read the enemy name here:
if command == 'Fight':
print((enemy), "has taken", random.choice(damag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562278",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Unknown global batch size with TensorFlow multi-GPU distributed MirroredStrategy Suppose I have a network that outputs multiple segmentation masks for each image. Not every image will have a label for each mask. On a single GPU, I would calculate the loss for each non-null mask then divide by the total number of non... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to Dynamically create a column in Angular Material Table based on the Json data I am having a problem by adding columns in table dynamically with Angular Material tables. As the table depends on an model, I have a two fixed columns (start Date , End Date) . What I want is to have a dynamic table depending on res... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562280",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Duplicate identifier when trying to update objects in classes mapped using @DiscriminatorColumn / @DiscriminatorValue We have an application that uses spring and hibernate 5.2
We have a class MyAbstractClass :
@Entity
@Table(name = "MYTABLE")
@DiscriminatorColumn(name = "DISCR", discriminatorType = DiscriminatorType... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562282",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Drop rows which are duplicates regarding certain columns I want to identify and remove observations which are duplicates in certain aspects.
In my example, I want to get rid of rows 1 and 6, as they are the same in both V1 and V2. That they differ in V3 shouldn't matter.
df <- data.frame(V1 = c("a","b","c","a","c","... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562283",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: low resolution images causing issues with expanded and flexible I have a widget that looks like a tweet. In that widget, users can post an image. A problem i have been seeing is that images with low resolution seem to cause an error where excess space is placed inside the widget. For example:
The large black area s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562284",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Swift: scrollView.drawHierarchy is clipped in magnified image I'm using this code to magnify part of a webpage, however the magnified view is being clipped as can be seen in the image below. The 'picker' is a UIView 120px x 120px and scaleFactor is 4.0
override func draw(_ rect: CGRect) {
guard let webView = v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562285",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it normal to use multiple repositories in one viewmodel? Does it violating any conventions? Is it acceptable by MVVM? I have to separate the local data repository and online repository, but for login I have to use multiple repositories for getting response from API and saving credentials if they are correct
I hav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562286",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can't write to S3 bucket using S3.Object function but Cloud Watch logs shows there should be a file there I am trying to write to an S3 bucket using the S3.object() function within a lambda (python).
When I test the lambda and view the cloud watch debug logs, It shows that a json file should be written at the desire... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562287",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Illegal counter variable in FOR loop - Pascal Mayby problem is inside the enviroment [I use replit]; but someone can help me understand step by step why I can't use counter in that way? In another/second compiler [dev-pascal] result is correct, but I get back information about last part of syntax when I try to use ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562293",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you animate the camera with react-three-fiber? I'm trying to do a basic click and zoom into an object. I can see threejs provides a simple lerp but with no easing. Haven't been able to find a clear example for this, even tho it feels like a such a common and simple problem. Any help would be appreciated.
I tr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Page transitions with navigation don't work when I'm logged into the app with firebase. I can print but the page redirect is not working Page transitions with navigation don't work when I'm logged into the app with firebase. I can print but the page redirect is not working.
func logout() {
do {
try Auth.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562297",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: MS Dynamics workflow process always get triggered when an update to non-selected field is done via server (using HttpClient Patch) I'm getting this strange issue in Dynamics CRM workflow where any update made to a non-selected field (starts when selected field change) are causing the task to run everytime. Oddly whe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562298",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to display 5 vertical lines in the background in a responsive way? then 3 in tablet mode and 2 in smartphone mode? with CSS I want to do exactly as the background of this website:
Stripe website
The 5 vertical lines in the background are at equal distance, fixed at a width of 1300px and then adapting responsivel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562300",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to convert latitude & longitude to NYC neighborhoods with geopandas I have crime data for NYC that looks something like this:
crime_id
Latitude
Longitude
232323
40.83044254
-73.87134915
232322
40.8178766
-73.86599391
I have the public shape file of NYC neighborhoods. I want to get the neighborhoods... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562302",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Converting an unknown text format into a dataframe I have just scraped some response text from inspect element, but it is in a format I'm unfamiliar with. (i.e, not JSON or HTML etc).
The text in a format like this.
({:a 186, :b 4, :c "l", :a 6, :b 93, :c "e"})
I'd like to create a dataframe, with columns names us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562304",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Numpy checking the locations of the specific sub-array of multidimensional array I have 4 dimensional array like (2,48,48,3). The last dimension provide information to me if it's not [-1,-1,-1] and I should check the non of this array's locations. But I also want to do that efficiently. I know how to do it for loop,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can I customize Python's regular expression parsing? If so, how? Specifically, I was disappointed and surprised that I could not make negative backreferences to named groups and was hoping to add this feature myself. My first instinct was to look for a parser class in the re module and inherit from it, but I couldn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562308",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: SQLAlchemy get secondary table from relationship I have the following three tables with irrelevant fields removed:
class Users(db.Model):
__tablename__ = "users"
id = db.Column(db.Integer, primary_key = True)
project_memberships = db.relationship("ProjectMember", back_populates = "user")
def get_ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562311",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Failing to deploy to Vercel - NextJS and Sanity Project I am trying to deploy my NextJS and Sanity project on Vercel but I am getting this build error:
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://nextjs.org/telemetry
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Key error "year" even though I have a column called year import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
data = pd.read_csv("match_map_stats.csv")
plt.figure()
Shanghai_Dragons_rule = data.loc[data["map_winner"] == "Shanghai Dragons"]
control_df = df.loc[(df["map_type"] == "control")... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562316",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Making a biased agressive enemy in Unity My goal is to have a scene with multiple randomly generated enemies shooting projectiles at each other that randomly assigned teams when they choose. I am able to get them to shoot enemies of a tag if put to target a tag. but unable to get enemies to not shoot at themselves a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562317",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to install python packages in a python install that's not managed by a virtual env One of the applications I use often, Nuke, has its own personal install of python. It's located at "/Applications/Nuke14.0v2/Nuke14.0v2.app/Contents/Frameworks/Python.framework/Versions/3.9/bin/python3.9""
I'm wanting to install t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Error in Unity Transform does not contain a definition of position Im getting a error in my code here is the error:
Assets\PillarSpawnScript.cs(37,51): error CS1061: 'Transform' does not contain a definition for 'postion' and no accessible extension method 'postion' accepting a first argument of type 'Transform' cou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562325",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to stop a loop at a number not have it go that number of times in C I was trying to make a code that shows you the multiples of any given number, but it's going over the numbers. I'm pretty sure I'm overthinking it, but I need help. Here's the code I have.
#include <stdio.h>
int main()
{
int c=0;
int b= 0;
i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562327",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: MariaDB/MySQL LOAD DATA INFILE fails due to no value when it should insert NULL I have a CSV file with 300 million rows that I need to import in a MariaDB Columnstore database.
I use this statement:
LOAD DATA INFILE '/data/fnma_loans.csv' into table fnma_loans fields terminated by '|' LINES TERMINATED BY '\n';
But... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562330",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MQTTnet - Can't Read Incoming Messages From Subscribed Topic (Blazor MAUI) I have recently been learning about MQTT technology. As a .NET developer, I am trying to use MQTTnet to integrate MQTT protocol into a new software project. MQTTnet is a .NET C# package which can be found here: GitHub: MQTTnet.
I am using BLE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562331",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to launch game with urls with python? Using and opening Epic Games Launcher games, I have noticed that they run by using a strange url from the desktop icon. I was wondering, how can I get python to get this to launch the game? (I have already tried running the game's exe in its respective file location, but tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562332",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: After installing zsh and Oh my zsh conda is not found LINUX I've installed zsh and Oh my zsh to customize my terminal and after trying to use conda raised CommandNotFound.
I actually added to .zshrc a line with source ~/.bashrc, as instructed here, and now conda is working again, but everytime I start the terminal o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562334",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: composer says that zend-serviccemanager 2.7.8 conflicts with zendframework 2.4.0 I have a legacy system that I have to mantain and at moment I can't update it to newest technologys
But i'm facing problems with AWS S3, and trying some things, I decided to reinstall the dependencies, but now, I receive a message that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562337",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: It seems like my projectiles are slightly off my mouse pointer and my collision detection is not working const socket = io('ws://localhost:2000')
const canvas = document.querySelector('canvas')
const chatBox = document.getElementById('chat-box')
const chatInput = document.getElementById('chat-input')
const chatForm ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562338",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Connecting node.js to oracle mysql database on macbook m1 I am working on a project where data is collected from the user and then sent to a mysql database. I created an oracle mysql database and currently have it hooked up to MySqlWorkbench. Everything connects fine from there and I am able to create and get data u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75562340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |