text
string
meta
dict
Q: Is there a CUDA equivalent to the OpenCL shuffle operation? http://man.opencl.org/shuffle.html This shuffles the elements of a vector type, based on a mask. Is there an equivalent in CUDA ?
{ "language": "en", "url": "https://stackoverflow.com/questions/75633159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I use target="blank" in an external link on MDX? I am creating a blog with NextJS and MDX, and I would like to add a target="_blank" to external links. Normally I do it with regular Markdown using the following format [words](link){:target="blank"} but this is not working properly in MDX.
{ "language": "en", "url": "https://stackoverflow.com/questions/75633163", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python: Create new column that numbers how many occurrences has taken place from another column Just for a basic understanding of what I am referring too, the frequency column is what I am trying to create, based on the number of times fruits has appeared prior to that given row Fruit Frequency Date Apple 1 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633166", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: how to scale a polar plotted sphere up to a different radius? python So i need to scale up the size of a sphere i plotted with polar coordinates, but I am unsure if Im doing it correctly in a way that scales properly. #og code import matplotlib.pyplot as plt import numpy as np plt.rcParams["figure.figsize"] = [7.00...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633167", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ModuleNotFoundError: No module named '"travelApp' I am using Django to create a web app, and when I tried to use the py manage.py runserver command, I got this error: ModuleNotFoundError: No module named '"travelApp' This is the full error: Traceback (most recent call last): File "C:\Users\n_mac\OneDrive\Desktop\C...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633169", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problem to capture specific group in regular expression I'm trying to develop a regular expression that matches data with this format: 430::1820-07-27::Vitorino Pinheiro Lacerda::Rodrigo Pinheiro Lacerda::Custodia Maria Alvares:::: 430::1873-05-12::Vitorino Teixeira Pires::Jose Teixeira::Ana Martins Pires::Doc.danif...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633171", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I set the default buttons in the config file for EmulatorJS? How can I set the default buttons in the config file for EmulatorJS? I know there is a way to set them when the game has loaded, but I don't know how to set them in the configuration.
{ "language": "en", "url": "https://stackoverflow.com/questions/75633172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adaptive Cards in MS Teams - Header and Notification I am sending an adaptive card to a Microsoft Teams chat using the Graph API. I have been following this in the documentation, but I've changed application/vnd.microsoft.card.thumbnail to application/vnd.microsoft.card.adaptive in my code, and am using a card I des...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633173", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Percent change of dataframe I have a DataFrame like this: Date Close Symbol 0 2018-03-05 44.21 AAPL 1 2018-03-06 44.17 AAPL 2 2018-03-07 43.76 AAPL 3 2018-03-08 44.24 AAPL 4 2018-03-09 44.99 AAPL 5 2018-03-12 45.43 AAPL 6 2018-03-13 44.99 AAPL 7 2018-03-14 44.61 AAPL 8 2018-03-15 44.66 AA...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633174", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Plotting data with different x-axis on the same graph in Python I have one dataframe that looks a bit like this: df1 County 2019 2020 2021 2022 Dune 0.20 0.33 0.28 0.56 Clarke 0.22 0.31 0.30 0.63 Adams 0.19 0.30 0.30 0.59 Burke 0.23 0.29 0.29 0.54 James 0.22 0.31 0.23 0.52 and another that looks ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: A state in my pomodoro clock doesn't change after certain conditions I am working on building a Pomodoro clock using React, and I have a state variable called onBreak which is initially set to false. My goal is to have onBreak switch to true after the sessionTime is over, at which point displayTime should switch to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633178", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Binding raw socket to address with TCP protocol kills process Using the socket2 lib https://crates.io/crates/socket2 simply binding to an address with a raw socket using TCP kills the process. If I create a socket and simply try to send over it I get an os error An invalid argument was supplied. (os error 10022) Ass...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633179", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java switch case throwing nullPointer Exception I have an enum declared as follows - public enum Status { REQ ("URL1"), NOT ("URL2"), GET ("URL3"); String getURL; Status(String getURL) { this.getURL = getURL; } } And a field in my class: private Status status; I have a function i...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633180", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: A somewhat complex problem of generic information loss I have a class, that is, 'C'. I hope that its generic 'T' can be obtained from the instantiation parameters, and the generic 'G' can be converted from the generic 'T' (the 'TypeTo' part in the article is only for demonstration and is not meaningful). type Type =...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633184", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ImportError: cannot import name '_check_weights' from 'sklearn.neighbors._base' I am trying to do Missforest as a method for handling missing values in table data. import sklearn print(sklearn.__version__) ->1.2.1 import sklearn.neighbors._base import sys sys.modules['sklearn.neighbors.base'] = sklearn.neighbors._b...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633185", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there any trick to make the code only run when hydrating html There are three situations when react ssr * *Server-side rendering *Client-side Hydrating *Normal client-side rendering Just like using typeof window === 'undefined' to make the code run only on the server side, is there any trick to make the code...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633186", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Webpack is not bundling a dependency I have a Typescript library which uses Axios as following: import axios from 'axios'; export class Connector { readonly axios = axios.create(); ... } After publishing, I import the library in a new React project created with create-react-app --template=typescript. When I run th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633189", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to display black background behind with opacity 0.5 behind new stage I want to display black background behind the new main stage but it doesn't show correctly and. When you open new stage behind this stage appears black background with opacity for example 0.5d. When you close the stage the backgroundground clos...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633191", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Creating an android app using mobile phone I have designed a couple of android apps , of varying levels of complexity , but since my job puts me on the road most days, this has left me with no better options than a laptop, tablet, and phone . Now, the first two are out, due to several unrelated issues . This leaves ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633195", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: When navigating jetpack compose there is a recomposition composable(Screens.Recommendation.route) { BackHandler(true) {} RecomendationScreen( onNavigateToStatistics = { navController.navigate(Screens.Statistics.route) } ) } I pass a function for navigation, in its execution recomendation happens...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633197", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Azure DevOps Extension - How to resolve HostAuthorizationNotFound error I get the following error with getWorkItem call. I have the scope currently as VSO.Work_Full. It is already published. The codes look like this: /// <reference types="vss-web-extension-sdk" /> import TFS_Wit_WebApi = require('TFS/WorkI...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633199", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: System.Reflection.Assembly.LoadFile(), AssemblyResolve event and handling 3rd party dependencies I have this class which will hopefully let me essentially hot-load my .dll's, so that I can push changes to them while my coworkers are using them, without needing them to totally restart the application to begin seeing ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633201", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Removing Duplicate Values in MultiCombobox Hi guys I am trying to learn JSON Binding in Fiori. I want to remove Duplicate values in this MultiCombobox. MY XML section is here <fb:FilterItem name="Side" label="Side"> <fb:control> <MultiComboBox selectionChange="handleSelectionChan...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633202", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using argparse to run associated functions I use argparse to specify multiple command line arguments. How would I run a particular function that is associated with an argparse command line input? Consider: py test.py -s google.com As the argument -s has been entered, a specific function only associated with the -s a...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633205", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How can create a email alert for windows events with id 0 using the message as filter I have event which is with event id =0, thus makes create the email alert with event id not feasible, how can I create email alert using the message content (in Eventdata/data attributes)? can use PowerShell or other method? <Event...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633206", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SpotifyAPI-NET Giving 'invalid_grant' When Authorizing I'm trying to set up an application using C# on AWS Lambda for the backend, and a React frontend (Currently just a basic locally hosted server). From the front-end, I begin the OAuth process of requesting an access code from Spotify, then when I have that code I...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to transfer data from worksheet to worksheet while preserving hyperlinks I have two separate Google Worksheets -- I want to simply transfer the data from the destination to the source. I've always used the code below to do this & it has always worked well: function dataImport2() { //@NotOnlyCurrentDoc var valu...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633208", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Analytically calculate integral of a function only under a given condition with Python-SymPy I am trying to analytically calculate the integral of a function using this code: from sympy import sqrt, symbols, integrate, pi x=symbols('x',real=True, positive=True) rho, r=symbols('rho r', real=True, positive=True) f=sqr...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Need help on The kernel appears to have died. It will restart automatically When i import tensorflow it says The kernel appears to have died. It will restart automatically. import tensorflow as tf print(tf.__version__) Need some suggestions. How can i solve this problem. I am using Mac.
{ "language": "en", "url": "https://stackoverflow.com/questions/75633215", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Why are my Scala+Spark app Unit Tests run so much faster in IntelliJ vs a regular mvn clean test run? I have a whole set of UTs that perform quite a lot of Spark operations. I've noticed that when I run the test set in InteliiJ IDEA, it finishes in about 10 minutes. When I proceed to build using maven, the process t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633220", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Firebase functions 2nd generation on Emulator I'm trying to run 2nd generation firebase function onCall with Emulator. based on official documentation this is the solution: import { getApp } from "firebase/app"; import { getFunctions, connectFunctionsEmulator } from "firebase/functions"; const functions = getFuncti...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633221", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: API to do arithmetic operations on pointers (cl_mem) My ultimate goal is to do arithmetic operations on pointers on the host side. I know that we can do the following on the kernels: // .cl file __kernel void pointerAdd(float* arr, int index, float newVal) { *(arr + index) = newVal; } // .cpp file cl_mem arr = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JavaFX: java.lang.NoClassDefFoundError: org/eclipse/jface/databinding/swt/WidgetProperties So, I tried to create my first JavaFX project and everything went fine until I tried to add a new "JavaFX Document". When I try to create one I get this message: An error has occurred. See error log for more details. org/eclip...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633226", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python PyQt6 QTreeView, QStandardItem not appending row I am trying to populate a QTreeView() but it's not working. The root item and first row get added, but nothing after that does. Any ideas as to why? Code: class MainGUI(QMainWindow): def __init__(self): super().__init__() frame_main = QFr...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633227", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Cannot find corresponding coco.names for Yolo V4 I am trying to follow this tutorial https://lindevs.com/yolov4-object-detection-using-opencv/ I found Yolo V4 here https://github.com/AlexeyAB/darknet/releases But I don't see a corresponding coco.names file anywhere with the "yolov4.cfg" and "yolov4.weights" above Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633229", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Passing an MLMultiArray (or CGImage) to PencilKit so it can be edited Is it possible to initialize my PKCanvasView.drawing from an MLMultiArray or CGImage so that the user can edit it? I have a semantic segmentation model that outputs the MLMultiArray of 1s (detected) and 0s (not-detected). I want the user to be abl...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633230", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Correct way to read data from firestore to avoid duplicated data renders I've been building a react based e-commerce platform as a personal portfolio project using firebase as a backend service. I have gotten it set up so far with a user being able to create an account and log in with firebase auth. I was institutin...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: $and operator not working in findOne mongoose BorrowBookSchema const borrowBookSchema = new mongoose.Schema({ member_id : { type : String, required: true, }, member_name : { type : String, required : true }, bookdetails : [{ bookid : String, bookname : String, todaydate : String, retu...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633239", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Quarkus maven build throws SSL error: unable to find valid certification path to requested target I have a working Quarkus project on my personal laptop, but when I try to setup the build behind a corporate firewall I get the SSL error "PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderExce...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633247", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: React props with map function not working Trying to test my functions and get the items from 'names' to be rendered onto the page using props. Looked over tutorials and unsure why its not showing? Here is my code: import React from 'react' const names =[ { projectname: "Project 1", emoji: "happy"...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633248", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sharepoint excel hyperlink issue We have excel file with sharepoint links and links are working fine when opening fine in online version but issue happens when downloading excel file from sharepoint site the hyperlinks changing to C : users path instead of sharepoint links. We tried to download and readd the hyperli...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633250", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How can I assign SPIFFS file name to a variable? I am a relatively beginner programmer, and I've been combing for an answer for a while now. Coming up empty handed, I decided it was time to reach out. This is my first stack overflow post, be gentle. I am trying to build a program to retrieves a jpeg files from SPIFF...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633252", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to add a control to form1 designer by code and make the control to be in the front? When I drag the control in the designer of form1 from the toolbox the control is in the front: The ChromiumWebBrowser control is on the top of everything when dragging it from the toolbox: The problem is that I don't want the co...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633256", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to allocate different memories to multiple gpus while training? Suppose I have two GPUs, GPU-0 and GPU-1 (they are the same type). I hope to train a simple classification network (e.g. ResNet) on them. For some special reasons, I hope GPU-0 can take more memories. For example, consider the batch size set to 64, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633257", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: importing global variable in python from different module I have main.py globvar = 0 def set_globvar_to_one(): global globvar # Needed to modify global copy of globvar globvar = 1 and cs.py from main import globvar from main import set_globvar_to_one def print_globvar(): print(globvar) # No nee...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633260", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Specification '\dropbox-sdk-java\generated_stone_source\main\src' must have a .stone extension After importing the dropbox-sdk-java example from the official GitHub into Android Studio I get this building and trying to run it. Specification 'C:\Users\XXX\StudioProjects\dropbox-sdk-java\dropbox-sdk-java\generated_st...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633261", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ORACLE UPDATE using FULL OUTER JOIN and sub-query I have the following QUERY SELECT DISTINCT EPS_PROPOSAL.PROPOSAL_NUMBER FROM PROP_ADMIN, EPS_PROPOSAL FULL OUTER JOIN PROP_ADMIN ON EPS_PROPOSAL.PROPOSAL_NUMBER = PROP_ADMIN.PROPOSAL_NUMBER WHERE EPS_PROPOSAL.SPONSOR_CODE = 100728 AND (EPS_PROPO...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Trouble with retrieving specific node in firebase realtime DB via react native expo New issue that appear after Grabbing the wrong item from firebase realtime database via react native expo Part of my database: { "Bakery": { "Bakery Cuisine": { "Description": "Within North Spine Plaza", "Halal": "...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633268", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Has the react-native openai-api module been modified to access the ChatGPT API? Has the react-native openai-api module been modified to access ChatGPT API? When using expo, I get the following error : WARN Possible Unhandled Promise Rejection (id: 0): TypeError: Cannot read property 'create' of undefined using o...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633269", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way for a discord.py bot to react to every reaction in an already reacted message? So, lets say I want my bot to get a message, then when a random user reacts to that message, the bot adds the same reaction to that message, like for example when someone adds a reaction and I click on it to also react. I k...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633273", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Xcode - One of the iOS frameworks is not generating dSYM file One of the 8 frameworks fails to generate a dSYM file. Debug Information Format is set to DWARF with dSYM File and Generate Debug Symbols is enabled. dSYMs are generated for all frameworks but one. What else should I check to debug.
{ "language": "en", "url": "https://stackoverflow.com/questions/75633279", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Vectorize or optimize several nested for loops R I am looking to optimize code where I am using multiple for loops and if statements. I have a dataframe: set.seed(10) df<-data.frame(val1 = c(1.1,0.2,-1.5,-2.3,2.0), val2 = c(0.4,0.1,-0.2,0.4,-1.1)) df val1 val2 1 1.1 0.4 2 0.2 0.1 3 -1.5 -0.2 4 -2.3 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633281", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: GMapsFX not displaying but running I am trying to link my GMapsFX API with Java but I get an error when trying to use GMapsFX. I am using NetBeans. So basically, Everything seems to be running without errors but the actual display is "hidden" and I don't know why. fxmlfile: <?xml version="1.0" encoding="UTF-8"?> <...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Firebase GET request not returning data to client We have an app with a firestore database, using firebase cloud functions. We are trying to get data about each user from an external API. Our firebase cloud function is returning data - I can see it correctly in the logs. However, I cannot see that data in the browse...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633285", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In springboot project, use RequestContextHolder.getRequestAttributes().getRequest() to get the HttpServletRequest Object but it is null Because I need to get the HttpServletRequest object in thread of thread-pool,So I code like this ServletRequestAttributes servletRequestAttributes = (ServletRequestAttributes) Reque...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633286", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Process Pipe Read&Write I try to use two-way pipe to connect parent-child process;but something wrong happened. Here are my codes Parent …… uint32_t v[2] = {0}; uint32_t k[4] = {1, 2, 3, 4}; uint32_t delta = 0x9E3779B9; uint32_t sum; //获取到之后进行XTEA加密,在此过程中改变sum的值 for (int j = 0...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633287", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Setting custom input type for passing down controller from parent components to useFieldArray in child component in react-hook-form I am trying to create a shared component that will accept a useForm props and will use it as part of useFieldArray. However, my intention is that the useFieldArray will only accept a Fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Button for staff to approve user identification I'm developing a bot for discord, where new users will identify themselves through a modal form and wait for the approval of some staff so that they are receiving a position. But I am not able to make a button for some staff to approve. after the user identifies himse...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633289", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: JAVA - Failed to download json-lib Trying to install JMeter5.5 and followed this article , I'm with step 7 to download the plugins using cmdrunner-2.3.jar however I got issue on downloading json-lib. Please advise on how to resolve it. This is the error message I'm gettiung when executed the step 7: 2023-03-04 02:02...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633291", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Exception in thread "main" java.lang.NoSuchMethodError in Lenskit for Java I am researching with Lenskit for Java, I wanna load file with CSV file. I using TextEntitySource to load source but I got error. import java.io.File; import java.io.IOException; import org.lenskit.data.dao.file.TextEntitySource; public cla...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error while initializing the union of struct member in c I have a struct like this - struct ArrayAdv{ int size; int length; union{ struct{ int *A; } dynamic; struct{ int A[20]; } st...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633295", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Most efficient way to update/create records in rails with slightly different records so I am uploading distribution lists to an app I just started which have a variety of item information. So, for example I have excel sheets, openoffice sheets, and csv files that will have rows containing data such as: [(itemsource:...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633298", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Set One instance SlateJs editor in one page that contains many edirots I used to manage many slateJs in one page, but when i tried to update one editor it update only the last one and never the right, how we can have many slateJs instance in one page. TextEditor: <Slate editor={editor} value...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ROOM ORDER BY CASE: Where Can I define the optional parameter? I would like insert the Query in DAO interface like below. @Query("SELECT * FROM words WHERE childId = :childId ORDER BY " + "CASE WHEN parameter = 0 THEN dateTime END DESC, " + "CASE WHEN parameter = 1 THEN dateTime END ASC, " + "CASE WHEN parameter =...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633300", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I get the result data back synchronously from a promise in javascript? I am working on some javascript code for an extension I'm attempting to write for a platform called Cockpit. in their API documentation they provide the following example: cockpit.file("/path/to/file").read() .then((content, tag) => { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Script RDP Server Port change i am very new and only amateur. only thing i did before with script is creating terminal server. My company have a problem. RDP connection and the antimalware service blocking bruteforce attacks and almost every server gets notifications from inbound connections blocked; svchost.exe blo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633305", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Visual diagram tool suggestions in .Net core web application I am in need of a suggestion of either a third party or open source tool that can be integrated with .Net core web application and build a tool to draw visual diagrams. The tool should look similar to Visio but that needs to be developed for internal purpo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633307", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do i make discordpy check when a user got a specific role? I'm trying to make a bot that removes a user's role a certain amount of time after it has been added, I'm having some issues with it though I tried asking ChatGPT, it told me to do it like this time_left = role.created_at.replace(tzinfo=None) + timedelta...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633308", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Setup webpack on my basic JS project NO framework I'm trying to setup webpack on my JS project, but it always flashing errors > code@1.0.0 build > webpack 'Workflows\Code\node_modules\.bin\' is not recognized as an internal or external command, operable program or batch file. node:internal/modules/cjs/loader:942 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633309", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it better to use RouterLink or router.push for a button? I am using Vue Router 4 in Vue 3 Composition API, and I want to make a back button. I want to know what is the most optimal and good practice to redirect, a RouterLink or the router with the push method.. RouterLink <RouterLink :to="{ name: 'clients-ind...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633310", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: error C2451: a conditional expression of type 'main::' is not valid I'm new to programming and I'm trying to review this C++ primer book, however while checking LAMBDA part I get into a compile error on my Visual studio 2022. #include <algorithm> #include <iostream> using namespace std; int main() { int i = 10...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why is my Discord.py bot's command_prefix not updating after I update MySQL unless I restart the bot? I'm trying to use a MySQL database to store prefixes for different servers. When I use a command to update the prefix in the DB it does work as I can see the change in MySQL but when I try to use the new prefix it s...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633323", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Adjust Axis Scales of Histograms In R studio, I have a group of histograms with three columns and two rows for each 'type' x, y, z, -x, -y, and -z. Currently, the scales fit to each individual graph type. The problem is that some types have a max bin of say 30, where others have a max bin of 5, so you could not visu...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to make Google oauth work in Python Quickstart I am trying to run a Python script that accesses Google apps using Google's Python Quickstart on Python 3.10 on Windows 11 (originally installed as W10). The early steps are: enable the API, Create OAuth client ID, install the Google Client Library with Pip, and run...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633328", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I get an empty device list when using PcapPlusPlus At the moment, I am interested in networking and in order to learn more, I decided to use the PcapPlusPlus library to capture packets on my local network. My goal is to understand how packets are structured, position and content of the different headers (ethernet,ip...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633330", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get the creation date of a table on Firebird 2.5 I'm using Firebird 2.5 and need to get the date of creation of a table. SELECT DISTINCT RDB$RELATION_NAME FROM RDB$RELATION_FIELDS WHERE RDB$SYSTEM_FLAG=0; I've tried with this table but there isn't any date field. A: You can't get the creation date of a t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633333", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Beautiful Soup - Get all text, and preserve link html? I am parsing multiple HTML pages using beautiful soup. Most of the scenarios work great. I want to include text along with the URL for links. The current syntax is: soup = MyBeautifulSoup(''.join(body), 'html.parser') body_text = self.rem...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633334", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Editing row labels in {gt} in R I have created a gt table using the following code: bovids.summary.carb <- bovids %>% mutate(across(Member, factor, levels = c("UpperBurgi", "KBS", "Okote"))) %>% group_by(Dep_context, Member, Tribe) %>% summarize( mean_d13C = mean(d.13.C, na.rm = TRUE), median_d...
{ "language": "hr", "url": "https://stackoverflow.com/questions/75633338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Where can I initialize a plugin's Redux store? I have created a plugin that requires the app consuming it to call a function, initializePluginStore(initialState) to initialize the store. Where should the app consuming it call this function? Plugin code: /store.ts let store = null export const configurePluginStore =...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633342", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to install toolchain and custom GDB in VSCode to debug remote target I am trying to debug a cross compiled remote target with GDB. The target OS only has gdbserver so I have to use a custom GDB from my WSL host to remotely attach to it. The target is cross compiled with a custom Yocto distro toolchain, which is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633344", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get a COMException from WinUI3 when create a grid When I try to create a Grid, it throw System.Runtime.InteropServices.COMException var definition = new RowDefinition {Height = GridLength.Auto}; var grid = new Grid { RowDefinitions = { definition, definition } }; StackTrace below: System.Runtime.InteropServices.COM...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633347", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rubymine cursor control and Enter key do not work on remote host I run Rubymine IDE (Windows 11) for a remote project (Ubuntu 20) via ssh. Hitting cursor controls left - right, backspace, and most annoyingly, the Enter key seem do not cause anything during text editing, though they work for menu navigation. Any fixe...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to Run Exec Command In Background (PHP & Python) Nginx I have a php file name (download.php?url=$url), basically I make a request of xhr to that php file from my JS code. Now, the url=$url is query, and basically the download.php will execute a py script using the $output = exec($command);. Now, it fetch the fil...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633354", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Is it possible to pack a react app into a distributable and install on any computer? I have a web application with React front end and Node backend. I want to pack this whole app into a distributable (exe msi etc) and install on clients machine. Once they start the app it will run the server on a local port and reac...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633357", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to handle the "AssertionError: No text to speak" in playsound module after the audio is played from an mp3 file? (I am using flask) My flask application takes input from the user in the form of audio, processes it and returns an appropriate output in the form of an audio. The audio file ("audiofile.mp...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633360", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Having a method run at application start continuously I am having a little bit of trouble with something I am trying to pull off. I have an application that uses Java 19 and Springboot that is being hosted locally (but will eventually be hosted elsewhere). I have an SQL database setup on the same. I want to be able ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633366", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Unable to import name 'create_connection' from 'sql' I am trying to use Flask on my pc but I keep getting an error whenever I import from the sql module. The error states: ImportError: cannot import name 'create_connection' from 'sql' (C:<Directory to sql.py>) # Imports import flask from flask import jsonify from ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: MudBlazor Component Sizing & Layout In the example code on Mudblazor's website (https://mudblazor.com/components/select#variants) there is no sizing or layout specified, they just line up neatly next to each other. When I implement the code it makes the select boxes 100% of the page width and places them on top of e...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633369", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Implement routing(nested) with lazy loading In app-routing.module.ts { path: '', canActivate: [AuthGuardService], loadChildren: () => import('../app/appeals/appeals.module').then((mod) => mod.AppealsModule), }, { path: '', canActivate: [AuthGuardService], loadChildren: () => import('../...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633371", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: DynamoDBDocument.put runtime error _b.map is not a function I create a new Lambda function nodejs18.x and I understand I need to use AWS JS v3. However I get runtime error even when I'm not referencing v2: "errorType": "TypeError", "errorMessage": "_b.map is not a function", "stack": [ "TypeError: _b...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633378", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In R's purrr, why does pmap through Error in FUN(X[[i]], ...) : object '.z' not found when .z is clearly defined? I'm trying to get better with pmap(), but I'm hitting some errors. In this example, I have a simple graphing function that I want to iterate over. My understanding of pmap() is that I can set and define ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: TextField cannot dismiss keyboard when put to multiline When the TextField is created like this TextField( "Describe...", text: $text, axis: .vertical ) .focused(focused, equals: .prompt) .textFieldStyle(.roundedBorder) .lineLimit(2...) .mo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does GLib.File.new_for_uri (url) fail in vala but not whilst using the same url with curl Why does the following fail with uncaught error: HTTP Client Error: Forbidden (g-io-error-quark, 14): static int main (string[] args) { string url = "https://www.netfilter.org/projects/iptables/files/"; var page = G...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to read first line of CSV file I'm trying to write a simple python code for taking in a csv file, and using tabulate module to print out nicely-formatted contents in the terminal. Here is snippet of my code: table = [] try: with open(filename) as csvfile: reader = csv.DictReader(csvfile) i =...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633385", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I set up env vars locally + in prod in a similar style? I am trying to set up a backend for a web app using Node.js. My goal is to create a system that can both be run locally and deployed on AWS. To deploy, I have a Jenkins pipeline that pulls from my git repo, builds the app, and deploys it using embedded ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633386", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to deploy and configure next.js app on a rental server installed apache2 I'm a beginner to deploy application. I saw a lot of article that is written about deploying next.js app on Vercel or other servers that support next.js app. But I'm here because my next.js app can deploy and run on my server that I'm curre...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Unable to fetch base64 response in component level (Angular) I making a GET API to fetch an image, the response is status 200 and its data is in byte64 format. The problem here is, I was not able to read the response in my component. My component code is below. getUserImageById() { this.userService.getUserPro...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633392", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Click method is not working for me when i am trying to automate web browser using selenium with python while I was trying to automate the web browser, I used click method at the end to click the button, I gave button Id to find element but its opening the new automated browser but not clicking on "Start Download" bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633394", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL not accepting JSON data app.post("/register",async(req,res)=>{ const data=JSON.stringify(req.body.data) console.log(data+"\n") connection.query(`UPDATE course SET 'registered_courses'= ? WHERE id='${req.body.id}'`,[data],(err, rows, fields) => { if (err) { console.log(err.message)...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633395", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: how many images per album are there in imgbb I'm using imgbb to store images for a website, it creates albums that it uses as image containers for each post (manga) I make but I ran into the problem that it can't put 700 images inside an album, I try and they get shorter or count I try to upload 800 it never loads. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633397", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }