text
string
meta
dict
Q: Why am I getting an "a.exe has stopped working" error on Visual Studio Code for my linked list program? I'm playing around with a linked list, and I'm getting an error when I try to print out the value of the tail and the address of the next value: struct Node { int n; Node *next; }; class LinkedList { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586116", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: form doesn't submit when requirements are met So I am having trouble getting my form to submit after the requirements are met. I tried to force submit with HTMLFormElement.submit(), but nothing seems to be working other than the validation itself. <script> const uid = document.getElementById("userId") ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586118", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Maui Page still running after navigation I am having an issue in .NET Maui where the code from the previous page is still running while the new page is open. Part of my app uses the camera and opens up an image programmatically, but the camera is still running in the background after the image is open. I thought tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586119", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Chrome extension to insert a div under a YouTube video I'm trying to build a chrome extension and first step is to insert a div beneath the YouTube player when watching a video, but I can't seem to get this simple task to work. After inspecting the page it appears the video container is a div with ID "player" which ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using JuMP inside a Turing model My question is: Can one use a JuMP optimization problem inside a Turing model? Below is a minimal example of the functionality that I'm trying to obtain: using Turing using JuMP import Ipopt function find_u(θ) # Describe the model model = Model(optimizer_with_attributes(Ipop...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586123", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is frequently reading data from flutter_secure_storage expensive? Basically, im building an app that needs to continuously fetch from my own API even in the background. Unfortunately, from what i could understand, flutter handles background by creating a second instance of native dart code that runs separately from ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586124", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Need to use positional parameters but dont know how This is what I wrote #!/bin/bash # Script ayant pour objectif d'afficher le résultat dune suite de commande utilisant les arguments # Commandes utilisées: grep, cat, echo, sort echo "La recherche demandée trouve $(grep -c $1 `^$2`  `$3$` | sort -u) fichiers après ...
{ "language": "fr", "url": "https://stackoverflow.com/questions/75586129", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-9" }
Q: How do I get my bot to join a thread in Discord and respond I have built a bot that will respond to a message that contains a number between 1 and 10 following a plus sign. For example +1 .. the bot responds with Total=1 However I want it to join a specific thread within Discord. It so far has not joined that thread...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586130", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: numpy selecting multiple columns excluding certain ones - concise way I have a short question about indexing in numpy. I'm trying to select subset of columns of a 2D array. For example, if I wanted columns other than 3, 6 and 9, then I would plug in a list of indicies excluding those positions: x = np.arange(20).res...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586132", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to have importxml pull the comma from the data that its pulling? I have a sheet that is pulling several points of data from a website and then those data points are converted to html ( I am not good at any form of coding which is why i'm trying to do this within sheets itself) but one of the points is...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Import files outside of src folder in python I am importing a package which has following folder structure: package ├── <src>/ │ ├── p1/ │ │ └── p1.py │ └── p2.py └──scripts └──xyz.py I want to import the xyz from the scripts folder in another package. How can I do it? I can import the p1.py using from...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586134", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: When to use sealed interface wrappers vs just an interface? When refactoring code like: interface Offer { val sharedProperty: Property } class Product(...): Offer { override... } class Category(...): Offer { override... } fun Offer.doSomething(...) { when(this) { is Product -> ... ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586135", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to create an instance of data type? can someone explain and give an example how to create an instance of a data type in Haskell? Let say we have the record data Person = Person {name::String, age::Int} How do I create an instance of Person? I tried this let Sara = Person {name=“Sara”, age=18} Is this correct ?...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586136", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: pyspark filter condition on multiple columns by .all() or any() I'd like to filter a df based on multiple columns where all of the columns should meet the condition. Below is the python version: df[(df["a list of column names"] <= a value).all(axis=1)] Is there any straightforward function to do this in pyspark? Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586141", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to add vertices in a undirected graph in java using scanner class I want to add edges between vertices using scanner I add them manually like this ` class Main{ public static void main(String[] args){ Graph g = new Graph(8); g.edge(5,2); g.edge(2,0); g.edge(0,4); g.edg...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Simplifying column values using letters in R Within a dataframe a column with over 300 values for 'Longitude'. I would like to identify rows by their Longitude in a simpler way, and thus would like to replace (or add a column) showing each unique value of Longitude replaced with a consecutive integer preceded by the...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586152", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Creating attention mask for transformer block with (batch size, sequence length, spatial samples, embed dim) as input I am trying to use a transformer to analyze some spatio-temporal data. I have an array of training data with dimensions "batch size x sequence length x spatial samples x embedding dimension." In orde...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Building drake with trial version snopt I've studied a similar ticket, that's marked resolved, where the person who asked, however, didn't write that they managed to build Drake with SNOPT. I am presently trying to perform the same feat, also having a hard time. I. Presently my compilation error comes from an API mi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I redirect requests to appropriate websites without specifying their ports using nginx? I have 2 websites (Using docker, deployed on a digital ocean droplet). I'm currently able to access both websites individually by the ports specified in the docker compose file like this: ports: - "3001:443" Now...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586158", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Flutter - Target kernel_snapshot failed: ProcessException i have a flutter project with firebase db and auth with it. When im trying to build project or run project on emulator, i am getting this error: Target kernel_snapshot failed: ProcessException: Dosya virüslü olduğundan veya istenmeyebilecek yazılım içerdiğind...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: VS Code showAllSymbols command shows 2 versions of every file Whenever I try to navigate the main repository I work in via symbols (Cmd+T menu), the list of matching symbols returned shows two of every file. Both files listed resolve to the same path, though one uses a path relative to the home directory and the oth...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586160", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PowerBI service hover over visual does not show header to allow me to export data When in powerbi desktop, I can hover over this visual and the header shows up to allow me to export data. When I publish to the service, this no longer happens. In Options > Report Settings > Export Data I have the option checked to al...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why is my conditional rendering not working after state update? using NExt.js 13 Github The issue comes up when there is an email entered that already exists in the db. In the 'newaccount' API call, I check for duplicates. If there is a duplicate, we get a "NewAccountFail" value for the loginProcessStep. That's work...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586164", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Javascript - Click checkbox even if clicking missing, clicking outside checkbox :EDIT: I have it figured out. Thanks! I have a standard <button> checkbox in a <form> that I'd like the user to be able to select even if they miss the box by a few pixels. I'm nowhere near good enough with JS to know how to do this. Bee...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586166", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Query rpm package version without locking rpmdb? When runnning yum list installed | grep <package_name> as a means to check a package version, on some hosts, this command can take some time because there might be other yum commands taking a lock on rpmdb. Is there anyway via yum, rpm, or some other tool to check the...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586168", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to return main thread from runBlocking without changing the return type I have a main func that needs to return some value while I have a suspend func that just need to trigger in the background while the main function is being called fun mainFunc(): List<Int> { if (noInteger) return emptyList val myList =...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586175", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get the list of dependencies to be added to install_requires section in setup.py from a python lib I would like to know if there is any automatic way to discover the list of dependencies that I need to add to the install_requires section of a setup.py file for a Python library, without inspecting the code "ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586176", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Styling Pandas Columns I am working on a dataframe df. I am trying to set the background color of the cells of the 'SupTrend' column. The background should be red when the value in 'Price' column is lower than the value in 'SupTrend' column, and it should be green otherwise. I tried everything, checked the documenta...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to add multiple XML element to an existing text in a XML file with python I have a problem with some values not being declared as XML elements in my XML files. But for further processing, I need them to be an element. Example: <A> <B id="254"> <C>Lore</C> <D>9</D> 12.34 </B> <B id="255"> <C>Ipsu...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586178", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pick up records from one dataframe with conditions based on other dataframe in Python I have 2 dataframes, namely df_a and df_b: df_a country type risk_level sample NO A HR 3.0 NO B LR 2.0 DK C HR 1.0 df_b caseid country type risk_level user end_user 1 DK A HR Jess 1 2 NO B LR James 1 3 D...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586179", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get Parent Node using Jayway JSONPATH In the below JSON file I want to extract the empDetails.name where one or both iscomponentInSal is true . JSON [ *// Retrieve below `empDetails.name` as for one of the components we have `"iscomponentInSal": true`* { "empDetails": { "name":"John", "compensation"...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586180", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Conda update problems on remote computer I'm trying to update my conda env on a remote computer that I do not have sudo access to. This is the error message: Preparing transaction: done Verifying transaction: failed EnvironmentNotWritableError: The current user does not have write permissions to the target environme...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586189", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What causes the Webkit framework error in an Ionic/Cordova project? I’m having some issues trying to get an old Cordova project running on my new Mac M1. Ionic: Ionic CLI : 6.20.1 (/usr/local/lib/node_modules/@ionic/cli) Ionic Framework : @ionic/angular 4.11.5 @angular-dev...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586190", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: inserting missing node with attributes in xml file at a specific line only Team, I have below xml file which is missing a node at line 9. so I need to insert it and not anywhere else. line to insert <file branch-rate="0.0" complexity="0" path="src/common/test2.go" ......> xml file i have that is missing node is belo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586193", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: parsing a column with operators, numbers and text in a column into different columns in postgres SQL Column TRUE >= 90% < 47 < 5.0% > 78% HI everyone, I'm trying to parse this column from excel file into a postgres database. The requirement is to parse the "=" , ">", and "<" from this column into a column in a dat...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586194", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: "Not a managed type" error consistently appears when following Spring Boot example project Refreshing myself on JPA and Spring Boot by following the official docs to create an example project, I'm struggling with a persistent error. Employee.java package payroll; import java.util.Objects; import javax.persistence....
{ "language": "en", "url": "https://stackoverflow.com/questions/75586197", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Flutter Web App in docker served with nginx I am using Go Router which works perfectly fine in development mode. Starting the Web app at / or refreshing with /abc/def?var works. When I build the app with flutter build web and start an nginx in a docker container I'll get a 404 when I request other than the root. mai...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586199", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ways to receive notifications in Microsoft Teams when tagged in Azure Devops? I want to set up an integration between Microsoft Teams and Azure Devops so that when someone is tagged in a work item in Devops, they receive a message in MS Teams about it. What is the most straightforward way to accomplish this? I'm att...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586200", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I go about integrating the SDK by branch.io in a Codename One app? We want to add a referral program using the branch.io provided SDK within our app and I am wondering how difficult it would be to use in Codename One. From what I know, there are currently no CN1 library that we could use for a referral progra...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586201", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to convert json file to csv file in python I have this json file which contains a list of objects [ { "infos": [ { "localisation": "Kassel" }, { "date": "01.08.2023" }, { "places": "1 freier Platz" } ], "applying email": "exemple@starke.ma", "additional infos": { "name"...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586203", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: kubernetes Git-sync Could read username for 'https://github.com' I'm deploying Apache Airflow using the oficial helm chart and wanted to use Git-Sync to feed the dags folder with it. Reading the docs and inspecting the helm value (print below), I used the user<>password alternative I created the git-credentials and...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586204", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Flutter: How do I read a barcode using a Honeywell handheld that runs Android? I have a handheld scan gun, the brand is Honeywell and model is CK65. I need to be able to read a standard barcode, i.e. not a QR code. I have the flutter demo app running on the device, now I just need to make a test function that can re...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586205", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What programming language creates controls like this? I'm looking to discover what programming language creates controls or outputs like this. Any suggestions would be appreciated. I attempting a google image search but to no avail. Also subreddit's do not accept images for whatever reason.
{ "language": "en", "url": "https://stackoverflow.com/questions/75586206", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-5" }
Q: After applying sudo kubeadm init command I get ERROR : Container runtime is not running I need to set up the Kubernetes on my local machine and when I get to the following step: sudo kubeadm init --pod-network-cidr=10.244.0.0/16 I get the following error: [init] Using Kubernetes version: v1.26.1 [preflight] Runni...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: open image in fullscreen i want to make an image clickable and open it on full screen. i have added this code to the head section. <script> document.getElementById("#structureimg").addEventListener("click", function() { if (this.requestFullscreen) { this.requestFulls...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586208", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Dataflow Flex Template: module not found I'm trying to use Dataflow to do some parallel operations in pandas. I understand that pandas is installed on the workers nodes. But every time I submit a Flex template to Dataflow, I get an error that pandas and the custom modules that I wrote cannot be imported. I've also l...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Acumatica - Open Combined Financial Reports w/ Parameters from Code I'm trying to write a process screen in Acumatica ERP 2021R2 (version 21.210.0030) that will generate a financial report for each selected branch in the grid, combine them, and open the combined report when all of them are created. I know how to do ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Converting string data type 123 to INT, how solve bad64INT? SELECT station_id, name, number_of_rides as num_rides_starting_at_station FROM (SELECT start_station_id, COUNT(*) Number_of_rides FROMbigquery-public-data.new_york_citibike.citibike_trips GROUP BY start_station_id ) AS station_num_trips INNER JOIN bigquery-...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586213", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to display output of looping function in a separate window (tkinter) I'm working on an art piece that involves consistently live generated text outputs via aitextgen in google colab (GPU usage is necessary). I know tkinter is typically used for this, but google Colab is unable to use tkinter. Does anyone know of...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586214", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Input validation problem. Trying to make make it so that the user cannot input a negative number. I'm not sure what I'm doing wrong I want to make so when the user inputs a negative number, the input validation will say they cannot, and then my code will continue by re-asking the user the original prompt. My problem...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586220", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Gnucobol not correctly reading copybooks. It's attempting to compile it as a separate program I am using gnucobol3.1 on Ubuntu 22.04 and trying to compile source code that came from RM/COBOL running on SCO OpenServer6. Several sections of the code are in copybooks, such as the fd for files used, or our standard copy...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586224", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I was working with a maven project on eclipse and after I deleted some other projects in eclipse I was working with a maven project on eclipse and after I deleted some other projects in eclipse, now my projects turned into almost a blank and it isn't showing my packages and files, when I went to file and recent file...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586225", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How can I add 1 millisecond to a current timestamp in Mongodb? I need to add 1 millisecond to all objects in my collection. I'm looking at created_date specifically. Such as this: { _id: 'd751b295-6597-4a0b-bd64-89b0fbaac812', yada: { type: 'yada', id: 'nkfsh000136' }, audit: { created_at: '2022-10-03T...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586230", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Timeline in visual studio code is empty even though I worked on the project recently My timeline in visual studio code is empty whenever I try to look at the previous history of my components in my project. I worked on it 2 days ago and there is no history of anything being saved from the last time I worked on it. T...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586234", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Python inconsistent behaviour using max on list of tuples with tied initial values I've just tracked down a tricky bug to a seemingly innocuous call to max while iterating over a list of tuples with tied initial values. It's giving inconsistent results depending on whether a key function is used: lst = [(1, 'a'), (...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586235", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How signal interrupt works for getline() in C? I have a minimal working code which is suppose to read user input and handle any SIGINT (ctrl+c). I used sigaction. If ctrl+c is pressed, it will print a $ on the new line and wait for user input. #include <stdio.h> #include <stdlib.h> #include <signal.h> #include <stri...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Capturing logs when data is copied between two blob storages in different Azure accounts I am trying to build up a small automation to detect cases when a file on Azure blob storage is copied to another blob in a different Azure account, or different Azure subscription. Which log sources should I be looking at? I tr...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586240", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: select2 does not close automatically after opening I need my select2 to close if I click outside of it. They asked me for a table in which if I select a material in the select, a new line is created and the new select is automatically opened, but when I do, it gets stuck even if I press outside. $('this').closest('t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586242", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: React - use state change without re-running useEffect/useMemo I have a component with some state, and I want to use said state in a callback. This is one way to do it: function MyComponent(props) { // Imagine many states const [state, setState] = useState(0) const ref = useRef(null) useEffect(() => ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586244", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Canvas not updating on depency update in React Using React and Typescript, I am trying to update a canvas based on a provided image with the canvas and file upload DOM elements separated into their own components. The problem I'm facing is that when a new image is uploaded, the canvas does not update. I have been ab...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586245", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: i want to print "not found" result just for once time I write a phonebook for running on DOS. at my search member function, when I write a Name that available in list of members, then show me "not found" for another each members in list. at another side, I want to show "not found" massage, for when I write an unavai...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586246", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to compile autotools project on ubuntu with mingw64? It compiles just fine on Fedora I have C/C++ program with an autoconf-based build system. It compiles for Windows just fine on Fedora (FC36) using the command mingw64-configure to configure the autoconf system. Ubuntu's mingw64 system appears less well develop...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586247", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Vue3 ts script setup syntax, Vitest $setup.helperFunction is not a function im trying to write tests with Vitest for my vue3 component this is my component code: <script lang="ts" setup> import { reactive, computed, ref, onMounted } from 'vue' import { formatSubscribers } from '../../helpers/formatSubscribers' impo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586248", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Evaluate string expression (R, Seurat) I'm trying to evaluate a string expression in the subset() function of the R Seurat package. https://satijalab.org/seurat/articles/essential_commands.html For example, instead of subset(x = pbmc, subset = MS4A1 > 3) I want to do string.to.evaluate = "MS4A1 > 3" subset(x = pbmc...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586250", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is the operation on premitive variables really atomic? I was reading Thinking in Java and I saw a statement that said: Reading and writing primitive variables other than long and double is guaranteed to go to and from memory as indivisible (atomic) operations. It suddenly occurs to me that if operations on int var...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586257", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to get a unique Android device identificator in Flutter For my app we need a unique device id, to detect which devices was already assigned (used) to customer and which is not assigned (clean) and ready to assign The problem is Android 10 and above restrict access to hardware device number, IMEI, mac-adress. On...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586258", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: my question is not updating even after changing the index to that question what i want in this code is that the questions to change to the next one in the map whenever the user presses any of the true of false buttons, but the question is not updating even after changing the index and using setstate. I don't know wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586259", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Query and partitionColumn - Spark Data read from Databricks JDBC end point I am trying to read from a databricks JDBC end point using PySpark and write it to PostgreSQL. I am fetching 2 million records. To improve performance I have added a row_number column to my query and using it to partition the read. Below is m...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586263", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get Swagger support for a mostly MVC project? I have an ASP.NET Core 7 MVC project, where the controllers mostly return views. I do have a small number of action methods that act as API endpoints returning various things. I am having trouble wiring in Swagger support. By default, it says No operations define...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586265", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP Xdebug works on single php file but not on laravel I have read posts like visual studio code PHP debugging not working and XDebug not working in VScode for php debugging but can't manage to make this work properly in my Laravel projects. I'm using XDebug V3 and it works on single php files but not on laravel pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586266", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: python-telegram-bot 20.1 : telegram.ext._application - ERROR - No error handlers are registered, logging exception I am trying to build a nested conversation using python-telegram-bot 20.1 I am getting the following error: 2023-02-27 17:38:40,811 - telegram.ext._application - ERROR - No error handlers are registered...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586271", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Airflow TaskFlow API connect with filesensor I'm learning Airflow TaskFlow API and now I struggle with following problem: I'm trying to make dependencies between FileSensor() and @task and I want to run my download() task after successful result of my FileSensor @dag(): def my_dag(): if_file_exists = FileSensor...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Creating Polyhedron Geometries From Lists of Vertices and Faces with Three.JS I'm trying to create Polyhedrons with vertex coordinates and indices of the faces using THREE.BufferGeometry(). For example, this would be the data associated with a Rhombicosidodecahedron: Rhombicosidodecahedron: { "name": "Rhomb...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586274", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java Spring Boot - AWS objects keep getting recreated/reappearing even after being deleted - been getting charged for almost a year now with AWS I signed up for Free Tier account with AWS so that I could provide a Java Spring Boot application. It is a very small and simple program with a very small MySQL of about 1...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586275", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Trying to convert Excel Data to Google Sheets, most of this data is calculated in Excel because of the Bloomberg Addon I am trying to convert data to google sheets from excel, which I have successfully done but each non string cell keeps adding a ' before it and I am trying to fix this issue. I have strings, dates, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586276", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sagemaker training jobs metrics not shown in monitoring nor cloudwatch/no widget on this dashboard Using sagemaker, from previous experience and the official documentation we know it is possible to create plots and visualizations for metrics during training jobs(ex: accuracy, error, etc) however now we cannot see an...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586277", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: AttributeError: 'NoneType' object has no attribute 'text' Running Python/Beautiful Soup for Price Scraping Receive this error when running this web scraping python script Exception has occurred: AttributeError 'NoneType' object has no attribute 'text' File "C:\Users\richard\Documents\python code\chatgptcodeaz_pric...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Saving random shapes to create picture of what I'm saying I would like to save the generated symbols so that it creates a picture. I used teachable machine sound to classify the certain symbols as sound. Also it generates almost 140 symbols for example triangles or circles per voice input - how can I reduce it, so t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586281", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Excel VBA search for a date I'm just learning VBA, wanting to see if someone can help me write the code that would search for a date in a certain column. I'm wanting to use the offset function to transfer data between sheets and I would like to use whatever the current date is as starting point to automatically tran...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586282", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: "/.ssh/config line 1: no argument after keyword "w" " error I'm trying to clone a repository from git through SSH and keep geeting this error /.ssh/config line 1: no argument after keyword "w" I tried changing my config file Host github.com HostName github.com PreferredAuthentications publickey IdentityFil...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java webstart application security issue with OpenWebStart and log4j2 I'm migrating some auto-signed WebStart (WS) applications from Oracle's Java 8 to OpenJDK11+OpenWebStart. However I'm getting strange java.io.FilePermission errors after the migration (in other words, when launching the application's JNLP with Ora...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586285", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to select only name using winget in powershell I'm attempting to search using winget and return only the Name property. I've been unable to return it successfully. This works and lists everything but I want to filter this to show just the name property winget search "adobe" I've next tried this winget search...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586286", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sorting by group levels in pandas I’m looking for a quick way to automatically order a data frame. Data input from excel I want to know if there is a simple form to sort a table by level. Example: I have this table. The item 0 is the top level , any subsecuense .01 are part of the 00 level and items .02 are part of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to get user browser information with python? Browser, version, email, etc I'm creating a python application that will need to check which user's browser and email is logged in... Well, the application checks the email logged into the browser, as the user will be verified by email in the tool's free mode. if anyo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586290", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to add step numbers and error reporting to autoexpect generated expect scripts? I'm using 'autoexpect' to generate expect scripts for my program, but want to know if its possible to have label each step with the respective step number, and to have it report if there was an error. Should I be trying to add these ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586307", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Flask: Log out user on Tab close and browser close but NOT on page refresh I am working on a Flask application with user log in functionality, and user information is stored in session. I want to clear session when the tab is closed or if the browser is closed but NOT if I refresh the page. Is there a way to do this...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586308", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to parameterize snowflake account queries I'd like to paramaterize accountName in create_account_query. I can't get the query to insert the account name. Any ideas? Running the following Traceback (most recent call last): File "test.py", line 13, in <module> cursor.execute(create_account_query, File "/te...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586312", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I have some troubles with the code that is supposed to encipher information via shifting letters (cesar cipher) When I try to encipher a message instead of a cipher I get tiny letters. What does it mean and how can I fix it? Thanks in advance. message = input() rot = int(input()) engl_upper = [chr(i) for i in range(...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586314", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Correct ld link PROVIDE syntax for translating symbol names I am trying to statically link a blas library mingw compiled without underscores, with a library that uses underscoring for symbols, so for example the dgemm_ symbol cannot be found during linking. nm -S libmwblas.lib | grep dgemm 0000000000000000 I __imp_...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to display an array of array of strings using javascript and html in angular? I am trying to dynamically display tables depending on how many arrays are in an array of arrays. For example: I have an array that has 2 string arrays in it, then I should display 2 tables. <p-table> <ng-container *ngFor="let row...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586317", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-7" }
Q: Using methods to find leap year The code is to find out how many days are in feburay by using methods to find leap years. I keep getting an error in my method and in my main class when using the method. The input of 1712 is suppose to give me: 1712 has 29 days in February. While...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586319", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: How to specify the amount of data under the graph in Matplotlib How can I specify how much data of the total is under the arrow? Source: data_arc['Активная мощность'].hist(bins=100, figsize=(10,6), label='Активная мощность') pop = data_arc['Активная мощность'] plt.title('График столбца "Активная мощность"') plt.xlab...
{ "language": "ru", "url": "https://stackoverflow.com/questions/75586320", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to read json value for a key with hyphen within a bash variable using jq I am trying parse the value of a json property whose key has hyphens in it. * *I read the json content into a variable using sub shell commands srcJson=$(someshellcommand) *I pipe the variable into jq read operation (and also pipe it fu...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Metabase Visual I have a customer table with the following fields id timestamp 1 September 21, 2018, 6:13 AM 12 March 03, 2022, 12:56 AM I want to develop a visual that shows the total number of customers (New and existing), such that when i filter by month and year, the visual displays the total custo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586323", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Local hosted java game I am making a game with a java/js frontend. Before I start doing more advanced prototypes, I am thinking a few on the design. I thought on make it online with host players being the server, like on Minecraft. I readed some articles about pros and cons with this design, but I think that for a g...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586324", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: array of pointers in typedef struct I was trying to create a pointer list to let me have access to all objects created. typedef struct global { int gameEntityCount; Entity* gameEntities[]; // Line 17 int nextValidSpot(); } global; 1>Entity.cpp 1>d:\source\repos\game\maybegame\game.h(17): error C2...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Iterating over all elements of column and apply function to values I have the following dataframe: data = {'id':[1, 2, 2, 2, 3, 3, 4, 4, 4, 4,], 'names':['a', 'b', 'a', 'c', 'e', 'a', 'b', 'd', 'c', 'a']} df = pd.DataFrame(data) I define a function def myfunc(x,y): return list(set(x+y)) I want to iterate over ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586326", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: libpam-google-authenticator. Couldn't authorize with gradle pugin org.hidetake.ssh I'm trying to log in to the SSH host using the user, private key and google authenticator, via Gradle plugin: 'org.hidetake.ssh' but I get error: com.jcraft.jsch.JSchException: Auth cancel for methods 'keyboard-interactive' At the sam...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586328", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to plot a restricted cubic spline with A on the x-axis and the hazard of death on the y-axis? I want to depict Restricted cubic spline models to show the association of A with all- cause mortality. I have used the following function. How can I change the y-axis to "hazard ratio of death" ? enter image descriptio...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586329", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: EPPlus 6.x - Show/Hide Pivot Table Field List (hidePivotFieldList="1") EPPlus version: 6.1.0, .NET Core 7, C# Is there a way to hide the Pivot Table Field List? I couldn't find any existing methods to accomplish this. I have added a Macro to accomplish this behaviour, however the user experience is poor as they ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/75586332", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }