text
string
meta
dict
Q: C# DataGrid SQL Query With Relation Column Name I have 2 tables with the following columns: Table Invoices id customer_id Table Customers id customer_name Invoices.Customer_id and Customers.id are relationshiped. Im trying to list Invoices with customer name (rather than id column) from Customers, bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569313", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: GitHub XED Building Instructions I'm trying to follow the abbreviated GITHUB building instructions as shown here and here git clone https://github.com/intelxed/xed.git xed git clone https://github.com/intelxed/mbuild.git mbuild cd xed ./mfile.py The first three commands works fine. But when running the last one I g...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569314", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how add one JSON array in other JSON array I have only a few days experience of learning JSON. My ultimate goal is to generate JSON for a REST request where nested2 array must be nested in nested1 array. Desired JSON object: data:{ "1": "str", "2": "str", "3": null, "nested1": [{ "4": 1, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569317", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What are the builddir and outputdir and why are they generating a "File Not Found" error? The Goal: package an executable "Hello, world" program in Idris2 I'm working from the docs, which gives descriptions of the package fields but sadly doesn't provide any examples. The issue: "File Not Found" compilation errors o...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to output excerpt and read more in ACF Post Object I display the news in a separate block using ACF Post Object. I need to display excerpt and read more button. Now I have displayed some text and a "Read more" button in a post in the admin panel. But they are not displayed, although I display excerpt in the code...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569321", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Anyone know how to fix this error on vs code and on android studio? Launching lib\main.dart on Android SDK built for x86 in debug mode... main.dart:1 FAILURE: Build failed with an exception. * *What went wrong: Could not open settings generic class cache for settings file 'C:\Users\Jiggs\StudioProjects\Activities_...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569323", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Laravel multi-tenancy with subdomains: Undefined variable $errors and Session store not set on request on login and register page I am implementing a multi-tenant Laravel application using archtechx/tenancy package. I have set up separate databases for each tenant and have created a Tenant model to manage tenants. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569324", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PLSQL error - I have a mistake in procedure When execute the procedure show the mistake, I need help for the problem. the message is: "begin case declare end exception exit for goto if loop mod null pragma raise return select update while with" the query is: CREATE OR REPLACE PROCEDURE SGRAPRE.USP_REP_SOLICITUDES_IN...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569329", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Angular Material Autocomplete not showing I am using material autocomplete in Angular. I am calling a backend service to get response data and populate the autocomplete panel. I am getting data back, but not able to see the panel. Pasting all the necessary code below. I am using bootstrap as well. HTML Code. <mat-fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569333", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can i call multiple function in reactj web app Is it possible to call one more function called getClickCount() during onClick() in reactjs web app ? How can i achieve in ES6 way ? I have tried below, but throws error.. const getClickCount = (id) =>{ console.log(id); const params = { id: id } ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569334", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using Tokens from an Azure Container Registry to Call the /_tags Endpoint I have generated an access token for my Azure Container Registry (ACR) using the Token Menu. I would like to use this access token to call the /_tags endpoint for a specific image in the registry, but I am not sure how to do this. I can use th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569336", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: In bazel, how do I get the directory a generated file is in? I have a rule, //foo/bar/baz:thing. This generates some files, including thing.h. These go... somewhere; bazel chooses where. It's just a genrule, so there's not C library magic. I then have a cc_binary rule. It's in a different package and wants to refer ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569337", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to handle null redirect fields on fetch API request redirect? I am working on a simple vanilla Javascript script (heavily boiled down) like this: function getUserForm(e) { let userUrl = "https://somecorp.net/user/me"; fetch(userUrl, { method: 'GET', }).then(resp => resp.json()) .then(data => { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Accessing Entry validator Here is the first version of code: MultiValidationBehavior myValidator = new MultiValidationBehavior { InvalidStyle = invalidEntryStyle, Flags = ValidationFlags.ValidateOnValueChanging, Children = { new TextValidationBehavior { MinimumLeng...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569339", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Loading images on the web - what am I missing? I'm trying to build a mental model around loading images on the web. My main question is - are images loaded synchronously, in parallel or in any other way? Why am I asking this? Because there are 2 concepts that are clashing in my head in the way images are being loade...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569340", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Do you know why I am receiving "not assignable to parameter of type 'SetStateAction<(string | undefined)[]>'." I created a Const using React with Typescript and I am receiving an error message "Argument of type 'string | never[]' is not assignable to parameter of type 'SetStateAction<(string | undefined)[]>'." The ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569343", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: React native firebase: save/retrieve collection reference In my react native code, I'm loading a list of products from firebase firestore, from the products collection, when the app starts. Every product contains a user id. I'm trying to get user information from the users collection for every product. In other word...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Create A Single PDF File From Multiple Inputs into a Template Sheet with Google Scripts I have a template sheet, can use my script to input information into it, and I can generate a PDF file of that sheet. I would like to create a loop that will cycle up to 90 different sets of data into the template, then append e...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: C# MAUI, Exception when running on iOS I am building an MAUI-project on Windows and Android. Now new I trying to build it on a iOS phone, it throws an exception. Microsoft.Maui.Controls.Xaml.XamlParseException: 'Position 13:46. MarkupExtension not found for DynamicResource' Here is the App.xaml, it is the default c...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: React won't render page when loading from CDN Can't seem to render a page with React using the CDN links. My index.html file looks like this: <html> <head> <link rel="stylesheet" href="index.css"> <script crossorigin src="https://unpkg.com/react@18/umd/react.development.js"></script> <scr...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569358", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I'm following a coding tutorial on making an AI assistant (Mikael codes), but it gives me the errors, even if the code is the same as in the example I copied the text letter by letter in the initialization chapter of the video, and I ran it when he did. I installed pocketsphynx, datetime, speech_recognition, pyttsx3...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569361", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: My python 3.11 doesn't install pip and has no module _socket i had problems with my old python 3.10 (working with pycharm), i installed the new 3.11 and the problems didn't go away. i deleted all of the versions i had, including my pycharm, then i reinstalled my 3.11 and pycharm and immediately encountered a problem...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569363", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Where can I find an explanation for this sorted() syntax? I'm doing a hackerrank problem which requires finding the top three occurrences of characters in a string ordered from most to least. If the count is the same then the characters should appear in alphabetical order. The input string given is 'aabbbccde' and r...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569366", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Can't use a setState call in the onchanged callback in flutter I am trying to map a TextFormFields value to a state variable in flutter class _PageState extends State<AddPage> { String _tag = ''; // this is the state variable @override Widget build(BuildContext context) { final _formKey = GlobalKey<FormS...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569367", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: in angular 15 how the main.server.ts should look like if I'm using the standalone structure in angular 15.2 there is automated script to migrate your application to the standalone structure, it's documented here https://github.com/angular/angular/blob/main/packages/core/schematics/ng-generate/standalone-migration/RE...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569369", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: why domain name points to root directory index.html[Congratulation page]in linux django, but not to AWS lightsail instance ip address I have an AWS lightsail account [Linux, Django]. I managed to point my domain name to my lightsail Ip address. This page displays the Congratulation setup page, which is in the root d...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569371", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to build a function that return TextFragmentCollection based on PDF file url? I already have a searchable pdf, but I want to convert it into pdf with digital text...I already got the code, but, unfortunately there is no method GetTextFragment.. I have been looking for it in itext7, Aspose and iTextSharp, None of...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569372", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to align centre text in other item of canvas in jetpack compose I want to align my drawText centre of view in my canvas. I draw my Image view with the help of this answer. Now I want to drawText at above, but my Text is in centre of my view. It's little bit complicated but I'll show you in image. @OptIn(Experime...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569373", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How the C++ avoid interleaved characters for cout As the C++ standard mentioned: Concurrent access to a synchronized (29.5.3.5) standard iostream object’s formatted and unformatted input (29.7.4.2) and output (29.7.5.2) functions or a standard C stream by multiple threads does not result in a data race (6.9.2). [No...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569374", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Install a docker/virtual linux system on a remote linux server host i have a linux server running accessable via internet for personal stuff. of course because its a server it is mostly shell controlled. i have wm/desktop installed with xrpd reachable, but only with basic desktop stuff. now i like to have a sandbox....
{ "language": "en", "url": "https://stackoverflow.com/questions/75569375", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error plotting heatmap: 'x' is a list, but does not have components 'x' and 'y' I tried to write a piece of R code to create a heatmap using the mtcars dataset. However, even after trying other datasets, I keep on getting the following error: `Error in xy.coords(x, y, xlabel, ylabel, log) : 'x' is a list, but does ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569376", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: stat: path should be string, bytes, os.PathLike or integer, not TextIOWrapper So, i want to check netflix accounts and i found a checker but the checker dont work and i want to repair it Error message : stat: path should be string, bytes, os.PathLike or integer, not TextIOWrapper #!/usr/bin/python from __future__ i...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to avoid overfitting in TensorFlow machine learning model for stock price predictions? How do I avoid my machine learning model from producing a straight-line prediction and overfitting by using stock prices from the training data to predict stock prices on the test data? For instance, when assessing the model o...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: using 2 states to insert the records Find the full code snippet here import "./styles.css"; import React, { useState } from "react"; export default function App() { const target = [ { id: 16, word: "sixteen" }, { id: 17, word: "seventeen" }, { id: 18, word: "eighteen" } ]; const initialState = { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I retreive a JSON data in Webflow Logic? I have an Incoming Webhook setup in Webflow logic with GET method. I can see that the data has been received Webflow JSON data but when I try to add it to a Collection list, I can't use any of the data, since it's an object and not a key+value. There's no way to add a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569384", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Nodejs Heroku deployment I have an issue with the deployment, here are the logs. Building on the Heroku-22 stack Using buildpack: heroku/nodejs Node.js app detected Creating runtime environment NPM_CONFIG_LOGLEVEL=error NODE_VERBOSE=false NODE_ENV=production NODE_MODULES_CACHE=true Installing binaries engines.no...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569390", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Setting Countent-type to JSON when POST could trigger CORS block? https://script.google.com/macros/s/AKfycbxMPbzaWcCl1HqVMuiCmxUK-UtzXg4OdQEV3gON6rPszbkGrEzwNPJFN4qJxjT1b7KN-Q/exec Above is the endpoint of a web app deployed by Google App Script. For test purpose, it just returns the request body. I am using fetch i...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569391", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Implementing explicit finite difference method of DAE system I am trying to solve a DAE system by implementing the mathematical model from scratch using explicit finite difference method in matlab or python. I am modeling mass tranpsort of ions and at the solution/membrane interface i have discountinuity (value jump...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569393", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to change value dynamically on flutter dialog without pressing button or any thing hi i have a CircularPercentIndicator and i put it in Dialog widget and I want to change the percent value dynamically showDialog(context: context, builder: (context) { setState(() { }); return Center( ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569394", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to enable OpenXR backend for Oculus Plugin I have built a VR project for the Oculus Rift S device with hand controllers in Unity 2020.3.43f, and now I am trying to build it. I get the following error: BuildFailedException: OpenXR backend for Oculus Plugin is disabled, which is required to support Unity OpenXR Pl...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569395", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In VB6, How do I take a Byte Array to BMP Image File? I already have taken/stolen - lol code from here to take a Byte Array of data and create a DIB in memory and using the StretchBlt function to fill in the picture of a picture box on a form. I can not figure out, yet, how to create an actual file from the picture ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569396", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Grappling Hook Mechanic in unity 2D im trying to add a mechanic to my game where you can launch a grappling hook and once it hits a wall you get brought to it allowing things like long distance wall jumps but it isnt working and i don't know why but i am getting this error i want the rope to work like in celeste cla...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: trying to inserting post metode but got an Uncaught mysqli_sql_exception I'm currently learning to make crud on PHP by watching some video learning but when i'm trying to insert $_POST into my database, it won't get added to my table. i already tried to fix the error but still have no result. Uncaught mysqli_sql_ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569405", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Why does my user settings.json have greyed-out entries that say "This setting cannot be applied while a non-default profile is active"? I have yet another baffling encounter with a developer tool. I wanted to override some VSCode Terminal settings with my own values. I decided to use the settings.json file for these...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to place a real time location on Google Map fun NavGraphBuilder.mealPlanScreen( navController: NavController, bottomBarPadding: PaddingValues, bottomBarState: MutableState<Boolean> ) { composable( route = Navigate.Screen.MealPlan.route ) { val sigapore = LatLng(1.35, 103.87) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569414", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I'm' trying to make my game resizable, to make it fullscreen and windowed but i dont know how I'm' trying to make my game resizable, to make it fullscreen and windowed but i dont know how. I'm using Java and the app Eclipse to progam this game and here's my Main Class for you guys to help me to do this, i tryied a l...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Server crashed often (Heroku environment, node.js (with express, cors) backend with MYSQL) I have a mobile app that connects to a backend that I put together using node.js, the backend works great in terms of responding to the services that I have created, that bring data from the MySql database living in Heroku. Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569420", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: .NET Core 5 Redirect if path is empty I'm using .NET Core 5 and I wish to redirect urls if path is missing subfolder /mytest/. For example, mysite.com needs to redirect to mysite.com/mytest, and mysite.com/mypage needs to redirect to mysite.com/mytest/mypage. In the startup.cs Configure method, I did try this as a b...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569421", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Color + Edge Detection If color matters for images but edge detection needs to be improved in order for ML algorithms to perform well, which algorithms could potentially be used?
{ "language": "en", "url": "https://stackoverflow.com/questions/75569422", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Function that compares two collections of strings as if they are unordered I would like to implement a function to compare two collections of strings. The function should compare them as if they are unordered. In Python, I would implement something like this: from collections.abc import Iterator def unordered_eq(a:...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569423", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: create separate log files python I have dash application. For single trial/experiment the logger(basic the way we implement for single log folder) I implemented and works fine. Project structure MyProj/ ├─ docs ├─ media/ │ ├─ trial_1/ │ │ └─ logs/trial_1.log │ └─ trial_2/ │ └─ logs/trial_2....
{ "language": "en", "url": "https://stackoverflow.com/questions/75569426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery DataTable not working after apply update panel so How to prevent that? I working on asp.net web forms . I face issue jQuery data table example not working after press search button for display data on data table. I try to search for reason I found that update panel is problem . IF I remove update panel ever...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569429", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Chat Bot with pre defined questions and answers SwiftUI I want to create a chat Bot which has the role of getting some data fields from user such as (age, weight, height, workout goal, workout days per week and a couple more). The idea is to have the view responsible for the chat bot pop a question and then the user...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569430", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: Dictionary as argument for groupby and aggregate dataframe in Python How can I use a dictionary as the argument for dataframe groupby and aggregate? For example, instead of hard coding the arguments like below... grouped_multiple = df.groupby('experience_level','job_title').agg({'salary': ['mean', 'min', 'max']}) I...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569433", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to translate Postman certificate setting to Java/Kotlin code? I have a certificate setup in Postman like belowenter image description here Now, I manually copy the cert.pem and privateKey.pem as strings like : val cert = "...." val privatekey="...." httpClient = HttpClientBuilder.create() .disableAuto...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569434", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How does the element know to execute a form action? Forgive me if I use incorrect terminology, or if this seems like a silly question. I'd appreciate any help. I have a simple webpage, with php code that is suppose to execute when you press a button. <!DOCTYPE html> <head> </head> <body> <?Php echo "<form method...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569437", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Failed startup of context c.g.a.r.j.AppEngineWebAppContext due to FeatureNotEnabledException: app_identity_service.GetAccessToken After adding Google Storage to a Google Endpoints app written in Java, the web instances seem not to be able to start up anymore, when deployed to GAE. However, all works fine when run lo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569438", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Build doc2vec model and find textually similar reviews using gensim The dataset is Amazon's review dataset in gz file. # A function to read the zipped data at a specfic path # # How to use: # PATH = "/path/to/file" # for line in parse(PATH): # do something with line # def parse(path): g = gzip.open(path, 'r') ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Send and receive number two Clients and Server with UDP Socket I am writing a program using UDP which first ask a number from user in Client1 , then Server forward this number to another Client2, Client2 receive the number calculate the factorial and then send this back to Server, and Server send back to show the re...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569440", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Making API request with PHP cURL fails with 400 error I need to convert a Guzzle API request to cURL. The Guzzle request is working as expected and I get the data. But when I try to do the same with cURL I get 400. I can't use Guzzle on the server so I need to make it work with cURL only. This is the relevant part o...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569442", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ansible: "AnsibleUndefinedVariable: 'list object' has no attribute 'value' I am working on an ansible playbook to render a templet. I have two ways to achieve it, option 1 is working why not option 2? -- defaults/main.yml cluster_name: lab: use1: elasticsearch_use1 use1: lab: cluster_name: elasticsearch_...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569444", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use map to get an array of objects from a parent array of objects I can't get the expected output with this. I've tried variants but no use. What is the right way to do it? var itemsdata = [{ "id": "item1", "assets": [{ "id": "size", "value": 1 }, { "id": "age", "value": ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569445", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to put AsciiDoc block title under the block? Referring to the AsciiDoc documentation, you can assign a title to a code block as follows: .Specify GitLab CI stages [source,yaml] ---- image: node:16-buster stages: [ init, verify, deploy ] ---- The result is that the title is set as a block heading above the block...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569448", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: cmake fails to find this package I am in the process of compiling some robotics software examples. The CMakelist should download this package cppzmq from github as shown below FetchContent_Declare(cppzmq GIT_REPOSITORY https://github.com/zeromq/cppzmq SOURCE_DIR ${CMAKE_CURRENT_BINARY_DIR}/cppzmq ) When I b...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Change default colors in ggpairs using variable assignments I have code to create a scatterplot matrix with density curves that I want to be colored based on a categorical variable in the data set. I need it to match a specific color, but I can't seem to get the colors to update from the default. Below is an example...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569451", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: EvilDICOM Read color jpeg 8bit lossy image I am new to DICOM and am working on Whole Slide Images saved in DICOM format. I was hoping someone could show me or point me to how I can extract an 8bit lossy jpeg image from a .dcm file using EvilDICOM. I have been using EvilDICOM and know how to read the tags and get th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569455", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to handle : "only one query can be executed on a connection at a time" for tedious package? I created a web app that uses a tedious package to communicate with SQL Server, NodeJS and ExpressJS. But in production, when the front end (in ReactJS) makes parallel requests for example, when the user navigates to page...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WooCommerce How to add email recipient based on a variable attribute value I would like to add different email recipients based on the product variation attribute that a customer has selected. I have the following codes but it is not working at the moment. function sv_conditional_email_recipient( $recipient, $order...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569458", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Create nginx subdomain for a webpage I am currently running nginx and nginx proxymanager in docker. What I want to do is have a subdomain for a webpage. For example, instead of: https://example.com/test I want to have: https://test.example.com Any help on how to configure this? This is a fresh installation of ngin...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569461", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Trying to use standard JTree implementation, but the output is really messed up I'm trying to use JTree. Here is my example test class: package inspector; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Dimension; import java.util.ArrayList; import java.util.HashMap; import java.util.Set; impor...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569463", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: What is the lifetime of an attachment sent to a Discord bot with a slash command, and where is this documented? I have a slash command for my bot that allows users to attach an image. My bot stores the attachment URL for later use. How long does this URL remain valid? Where is this documented? A: From the official ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569465", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Is there a way that I can get there to be only one input in my program? I am writing a program where I calculate the area of a circle, the volume of a sphere, and the surface area of a sphere and I need a way to get one source of user input. I don’t want the program to keep asking for user input the way that it is i...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569468", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Rust, locking a mutex when droping a Variable causes Deadlock I hope this isnt too much of a tangent however I think it is neccesary to understand the problem: I am currently writing a JIT in rust that traces operations, compiles them to spirv and executes the computations on the GPU (heavily inspired by Dr.Jit from...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569472", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Issue with ta.highest and ta.lowest calculation in pine script v5 I’m creating a fairly complicated script in terms of what I’m used to. I have a counter set up for two arrays once a condition is set. I pull the value and calculate and reassign a variable with highest and lowest, for two conditions each. The first c...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569479", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: stack allocation vs reassignment - performance cost I am writing a single threaded rust program where I need to push elements to a vector periodically. I have below 2 code choice in the processing function: * *A function that keeps an static object allocated and reassigns it in every processing *Function that all...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569480", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Switch statement inside of main, but is not outputting and instead skipping straight to printing the tic tac toe board I'm working on a school project and cannot fathom why the switch statement is not printing in main. I am trying to make a menu selection and I have used the same code in another project and it works...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569483", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Why do I see this error message while running this program? .586 .MODEL FLAT INCLUDE io.h ; header file for input/output .STACK 4097 .DATA x DWORD ? prompt1 BYTE "Enter a number", 0 string BYTE 40 DUP (?) resultLbl BYTE "Result is ", 0 sum BYTE 11 DUP (?), 0 .CODE _MainProc PROC ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: Unable to assign property text for race game So my friend asked me to make a car race game, so I tried making the script for the part that disappears and has a timer, so I ran into this problem. (Beginner scripter) So when i did the script first time, it worked fine, but i added more stuff then the timer was stuck t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569485", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: SyntaxError: Unexpected keyword 'export' When trying to run a TS file using bun, I get the following: 1 | import NodeWallet from "./nodewallet"; 2 | import { isBrowser } from "./utils/common.js"; 3 | export { default as BN } from "bn.js"; 4 | export * as web3 from "@solana/web3.js"; 5 | export { getProvider, setProv...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569488", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: golang global struct initialization I want to declare a global struct variable which belongs to a certain package and initialize it. I have a following directory structure: main ├── symbol | ├── symbol.go | └── Comma.go ├── main.go └── go.mod symbol.go: package symbol type Symbol struct{ Name string Fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569489", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: React Router v6 always thinks route is "/" I'm trying to figure out the basics of React, and I can't find any explanation for the behaviour I'm seeing. When I try to use routes, the app acts as if the path is always "/": no route is ever matched other than path="/", and the console gives me the warning 'No routes ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569490", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Google API drive.changes.list gives empty array of changes I'm using the drive.changes apis to request for a list of changes by getting startPageToken first and then request with changes.list api as follows. const drive = google.drive("v3"); console.log("Authentication successful"); const start = await drive...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Strange Behavior With python FastAPI and transmission for a URL Encoded SHA1 So I was trying to put together my own bittorent announce server in python, and iv run into a bit of a snag. For some reason I cant seem to get FastAPI to decode the URL Encoded SHA1 field of info_hash correctly. As an example, I'm using th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569496", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I'm trying to make a Discord server nuke bot but I can't install the Discord module for Python How do I fix this? ERROR: Could not build wheels for aiohttp, frozenlist, multidict, yarl, which is required to install pyproject.toml-based projects I searched the internet to find a fix but nothing fixed the error.
{ "language": "en", "url": "https://stackoverflow.com/questions/75569497", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: How to use VuexORM WithAll on single model object I have reviewed the docs and been able to call withAllRecursive to retrieve relations for a model object e.g. Model.query().withAllRecursive().first(); However, instead of retrieving the "first" model object, I want to retrieve an instance by id and all relations to...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569510", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: DGL Error: Stuck when getting graph node features I'm trying to do batch training on a large graph, using the api provided by dgl to create a dataloader. sampler = dgl.dataloading.MultiLayerFullNeighborSampler(2) gtrain_dataloader = dgl.dataloading.NodeDataLoader( g, train_idx, sampler, devic...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569512", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Different Modifier Key Combinations In AHK, i have a function operating under ^AppsKey:: I would like a separate function under ^+AppsKey:: but it triggers the function i set for it as well as the one set for ^Appskey I'm at a bit of a loss here, couldn't find anything related to my problem Here's the problematic sn...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569516", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to send pickup instructions to the UberEats delivery driver I'm planning to use UberEats APIs for a project and one of the requests I got was, whether we could send messages to the UberEats Drivers? So the platform we are building is for resturents, and ideally once the resturent receives an order and accepts it...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569519", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to I use Forwardref in react type InputProps<T, E, P = boolean> = { type?: HTMLInputTypeAttribute className?: string label?: T labelText?: string onBlur?: (event: ChangeEvent<HTMLInputElement>) => void onChange?: (event: ChangeEvent<HTMLInputElement>) => void placeholder?: string value?: string...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569520", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does math.cos(math.pi/2) not return zero? I came across some weird behavior by math.cos() (Python 3.11.0): >>> import math >>> math.cos(math.pi) # expected to get -1 -1.0 >>> math.cos(math.pi/2) # expected to get 0 6.123233995736766e-17 I suspect that floating point math might play a role in this, but I'm not...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569521", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to extract the templated type from a perfect-forwarding function with homogeneous templated-type parameters? I wish to write a variadic factory function to forward a variable number of parameters (of the same type) to construct and populate a std::vector. However I'm not sure how to extract the elements' type fr...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569524", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: This extension requires the Microsoft ODBC Driver for SQL Server I have windows sql server 2018 , and have other server centos7 installed CWPpro , need to connect centos to SQL SERVER DB enter image description here once process i faced Connection could not be established. Array ( [0] => Array ( [0] => IMSSP [SQLSTA...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569525", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Why is the controller null in this javafx program? Here's my main application package com.example.lclicker; import com.github.kwhat.jnativehook.GlobalScreen; import com.github.kwhat.jnativehook.NativeHookException; import com.github.kwhat.jnativehook.keyboard.NativeKeyEvent; import javafx.application.Application; i...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569528", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Azure AD B2C login not working from Visual Studio I am working to get Azure AD B2C set up and working. And it is working, when published. However, when I run the project from Visual Studio, it runs fine until I click the Login Button. At that point, the configuration forwards to the expected azure login URL, but it...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569529", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pagination of images Code of pagination.php: <?php // Connect to database $conn = mysqli_connect('localhost', 'root', '', 'fin_travel'); // Check connection if (!$conn) { die("Connection failed: " . mysqli_connect_error()); } // Get the total number of images in the folder $dir_path = '../../offers/'; $images = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569530", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Missing braces on \N{} I'm a newbie to Perl. This should be simple code. I want to move all files from a source to a destination folder. But here's the hard part. If data in the source exists as a duplicate, MD5 or similar hash not just name date and size, I want it to be deleted from the source. Here's the code...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569531", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: C# ServiceStack OrmLite, how to read all records with references var entities = await db.LoadSelectAsync(_ => true); Is there a way to do this without sending a param? something like a LoadSelectAll()? thanks in advance. A: You can select from an empty SqlExpression<T> without any filter conditions, e.g: var entiti...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569532", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Scaling Text to fit size of Browser with transition I have some text that I want to size to 100% of the browser on hovering a button. How do I make this text fit the browser/container? I know that with font size, you can do something like font-size:100vw, however the animation for font-size is jittery, so I can't u...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569534", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Check Box and ListBox C# Windows Form Is there a way to print something in a Listbox? The main ideia is to check a CheckBox and than print in the list. Per example there's a CheckBox that's write "C#" and checking shows in the ListBox "C#". I already tried to use in the ListBox: private void listbox_SelectedIndexCha...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569539", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Want to perform data cleaning on Age column of data frame I want to clean this data by by removing the "years old" text and create new column with average of age bracket mentioned in each record Screenshot from data frame(Age column from stack overflow survey 2022) For example 25-34 should be converted to 29.5 and s...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569541", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }