text
string
meta
dict
Q: How to specify platforms when using "flutter create -t plugin"? When creating a new Flutter plugin template from the command line using flutter create, if you do not specify any platforms, the default is (as of now), that no platforms are included. What is the actual verbatim command you would type in order to inclu...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unsupported Media Type error spring boot api JAVA I'm developing a product registration API, in my post I send information about my product by Json and also send an image file directly to my amazon s3. The problem is that when doing this in my postman, I am getting the error "status": 415, "error": "Unsuppor...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620959", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I center the input field vertically in React Native? I'm using @rneui/base package's Input component, however, I cannot center the input field the package provides. I would be glad if you help. Thank you from now. Here are the code and styles: function EditClassScreen() { return ( <View style={styles.co...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620960", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I create a file association for a custom language? I am working on a parser for a custom markup format. I plan to save markup in files with a *.markup extension. How do I make VS Code default to a 2-space indentation in such files? I don't want to make a full-blown extension or language server, I just want to...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620961", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Data.table; Update join on a filtered table/values I am wanting to update a subset of table_a using an update join with table_b however after attempting the update join the non-filtered table_a does not change at all; dat_a <- data.table(postcode = LETTERS[1:10], values = c(1:8,NaN,10)) dat_b <- d...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620962", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I start stop async function on mouseenter and mouseleave event javascript? How can I start stop async function on mouseenter and mouseleave event javascript? I want function to be executed when mouse is not over swiperContainer and when it is on swiperContainer i want function to be stopped. I am not sure i...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620970", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Do I need to verify the toll free number we use for messaging that I get thru Twilio? Got an email from Twilio saying that we MAY need to verify the toll free number we for messaging. We use a number that we get from Twilio. I can't see anywhere to verify so I wonder if maybe we don't need to do this? You’re receivi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620972", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: count how many times the column ratio is bigger than 0.05 and column dif is between 15 and 30 Datetime ratio dif 2022-06-09 12:33:00 -0.3861241598107547 -299.50183804712964 2022-06-09 12:34:00 -0.360130489922861 -274.88184087028105 2022-06-09 12:35:00 -0.22108950904852795 -166.0...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620976", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WordPress Custom type post unable to edit in admin panel I have to come into a custom theme that is 5 years old, and it has a careers page. But the post cannot be edited. I have been looking through the theme files where the post type is registered to see if it's a permission issue, but everything seems good. I am n...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620977", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can't get Vue 3 components using TypeScript to compile with WebPack I keep trying to use TypeScript in my Vue 3 components - across multiple projects (even brand new) - and I keep getting the same error when compiling with Webpack: Expected ',', got ':' It works fine until i add the "lang='ts'" to the component's s...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620979", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to retrieve my listpanier items to display them in html hello I have a purchase order with items each time I add or remove an item my "listbasket object" is incremented by a new item If I remove it, it has the opposite effect. So it's really the best place to get the quantities of my items and display them on ht...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620980", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Fatal Error @EnvironmentObject not working I have 2 Views but I cannot get the Data Flow to work with the Picker with @Environment Object, I always get fatal error with a crash, but I already declared environmentobject in the Preview and in the ResultView. First View looks like this import SwiftUI @MainActor class ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620983", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: oneOf() express-validator is throwing error defying my wish for a resolution I created a function to run express-validator oneOf() var oneoftest = oneOf([ check("ordertype").equals("Delivery"), check("streetnumber").isIn(["one","two"]), ], check("username").isLength({min : 10}), ) in my...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620988", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Running into selenium.common.exceptions.ElementClickInterceptedException: Message: element click intercepted: when trying to click a button I am trying to webscrape Balance Sheet data from Yahoo finance (https://finance.yahoo.com/quote/MSFT/balance-sheet?p=MSFT). Specifically, the Current Assets, Total Non Current A...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620990", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Trying to understand a Javascript function usage I have been given some code to look at and I am having a hard time trying to follow the flow. This code runs with no errors. I can't post the code here directly but an example of what I am seeing and not understanding is: fuction1(var1,var2,var3){ var1 used in t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620991", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: kivymd MDTopAppBar kivymd MDTopAppBar crush android app kivymd MDTopAppBar crush android app after buildozer android debug deploy run, Note that the kivymd application works without MDTopAppBar I tried as the following and deploy to android, it works, from kivy.lang import Builder from kivymd.app import MDApp KV = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620992", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PyAthena parses an ARRAY column correctly but the result is a string Starting from a single column abc of type ARRAY<STRING> with one row: SELECT ARRAY ['a', 'b', 'c'] AS abc If we execute the query with pyathena using the ArrowCursor: cursor = pyathena.connect(**AWS_PARAMETERS).cursor(ArrowCursor) execution_result...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ARJS in ReactJS with multiple markers each with a different GLB file I'm trying to load a GLB for each marker that is detected into a scene but can't figure a way to load a single GLB file. arMarkerControls[i] = new ArMarkerControls(arToolkitContext, camera, { type: "pattern", patternUrl: ArToolk...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620999", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I reproduce a goreleaser run locally? Context: there's a repo that uses GoReleaser tool that compiles binaries and releases it to GitHub. As described in this issue, a commit tagged v1.32.0 resulted in a release with dynamically linked binaries -- and that's OK: for example, if you download the terraform-pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SQL to produce subtraction from two different select query I have two select statements, lets say first output is select Name, Score1, Score2, Score3, Score4 from table1; Name Score1 Score2 Score3 Score4 Ryan 42 50 32 35 Mark 58 47 38 44 John 41 43 52 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Huggingface Data Collator: Index put requires the source and destination dtypes match, got Float for the destination and Long for the source I am trying to run the standard huggingface pipeline to pretrain BERT on my dataset. Here is the error when I attempt to train the model:[by calling trainer.train()] [Error mes...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621006", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NotifyOfProperty change from inside of ObservableCollection How can I trigger NotifyOfPropertyChange by changing property of item inside of ObservableCollection? Currently I am assigning null to ObservableCollection and then the original value. However, I don't think this is a proper solution. ObservableCollection<I...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621008", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: is it possible to create an attachment box to fetch FilePath using C# console as in Windows Form? so I have this code that fetches me lines and columns from an ExcelPath(path/to/excel/file.xlsx) and shows it in the Console, but going forward I will make other uses of the lines and columns imported from excel. I woul...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Binding element 'params' implicitly has an 'any' type I am getting error Binding element 'params' implicitly has an 'any' type. Here is my code: export default function Page({ params }) { const { slug } = params; return ( <> <h1>{slug}</h1> <Link href="/">Home</Link> </> ); } A: The sol...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621010", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to let the slider display only selected groups with R plotly? I have trouble with letting the slider display only selected groups in R. For example, in the R demos provided at https://plotly.com/r/animations/, if I double-click the legend to select a particular group, say, "Europe," then only the points for Euro...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621013", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can you unpack an embedded dictionary inside of a list? I have a dictionary of dictionaries and want to iterate through the common values they share to make a list. This what I have: I would hope for x= [2,2,2,2,2] but instead I get this error What am I doing wrong? A: You need to handle the case when the dict do...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621014", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: Listening for keyboard events (keyup/keydown): Why does this conditional statement not work on Mac OS browsers? I have an open source project that is a music machine. In its simplest form, press a note on your keyboard and the app will play a predefined note. Within the app I have an event listener waiting for a key...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621015", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Set textContent of an element with PHP SimpleXMLElement PHP SimpleXMLElement can access XML and also give me the text content of an element with the implicit string cast conversion. But I see no way to change that text content. Is it possible? I have this XML: <root> <element>text</element> </root> The text in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621017", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: OCR model for document scanning and bounding boxes generation task I'm working on a receipt entity recognition task * *OCR quality problem While there are many available models out there with complex architecture to be fine-tuned on (LayoutLM, PaddleOCR, mmOCR) I'm still struggle to produce high quality OCR result...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621019", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: I'm running Prestashop but I don't have access to mysql Tryed run prestashop in Docker in below commands docker network create prestashop-testing-network docker run -ti --name prestashop-testing-mysql --network prestashop-testing-network -e MYSQL_ROOT_PASSWORD=admin -p 3307:3306 -d mysql:5.7 sudo docker run -ti --na...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621022", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Should I get all data once from db and filter the result using javascript functions or should I use mongoose find({..}) to filter data? I have a collection called videos, an array of video objects, one of them looks like this, { "votes": { "upVotes": 0, "downVotes": 0 }, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621023", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to remove jumping to top action in Angular I have in my Angular app one page (home) and it is created from 3 parts (About Us, FAQ, Contacts) and I set in my top menu on click to redirect to one of corresponding block. Like if I click in menu to Contacts it scroll me to Contacts block. But I have a problem, I set...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can't assign dynamic key and value to object in reduce loop I've been struggling understanding and resolving to these typescript errors ( I have spent a lot of hours on this). My pure javascript code worked very well. However I can't get typescript to cooperate. I am assigning dynamic key values to properties on an ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621034", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adding web interface/control to c++ application I have a c++ program on a raspberry pi (headless setup) that records data from an ADC every minute over a period of days and stores them in a file. I want to add an web interface to it that launches possibly many instances of the program, keeps track of how far along t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621036", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error: There is already a Construct with name 'AuthCognitoUserPoolId' in TransformerRootStack [transformer-root-stack] I am attempting to deploy an app using amplify and flutter following https://aws.amazon.com/getting-started/hands-on/build-flutter-mobile-app-part-two/module-four/ tutorial and am coming across this...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why am I getting an empty array when using an url for pull request comments? Based on official GitHub this is the format to get comments on a pull request - /repos/{owner}/{repo}/pulls/{pull_number}/comments Therefore I used the following url - https://api.github.com/repos/RobotLocomotion/drake/pulls/18431/comments...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621039", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can i migrate from text-davinci-003 model to gpt-3.5-turbo model using OpenAI API? I tried to change my code to be able to use the new OpenAI model but my application stops working, BEFORE: In Bold are parts of the code that I changed and where working using text-davinci-003 model **var url = "https://api.openai...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621041", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: AWS Cost Explorer: Calculate EC2 running hours I want to use the AWS Cost explorer to get the amount of running hours for my particular EC2 instance. Is there a way to do that? I tried to filter on "Running Hours" under usage type groups, but it seems that the cost changes when I filter on Running Hours vs not filte...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: calling cuda.jit in a loop I want to know what might be the best way to call a jit.cuda function in a loop. Currently, I want to compute an array of location locations=[[1,2], [2,3], [6,8]...] based on a given matrix A. And then change the matrix A based on these locations. So what I have done is @jit.cuda def updat...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621044", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: unexpected result from using replace in function (Python) I have written a first code block that I would like to replace with a second code block, a function and a call to that function. I'm having difficulty understanding why they have different results. They should be the same. I guess it has something to do with ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621045", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pow(x,n) Leetcode - Recursion Doesnt Work I've been looking at this output for so long and I don't know why it's not correct... The correct answer is 1.13074 but I'm getting 1.06336 which is incorrect. Does anyone see the flaw in this? I'm implementing pow(x,n) which returns x^n but uses the principle of (x^n)^m = x...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Lower divs not stretching to the full viewport I am struggling to achieve a demanded effect. I have a following code structure: <div className="font-sans h-screen overflow-auto"> <> <div className="flex justify-center items-center w-full flex-col"> <div className="flex w-full"> <div className="sm...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621050", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Calculating distance for pairs of points within a list I have a list of 20 elements, whereby each element is a dataframe containing a pair of spatial points. I am trying to create a function that calculates the distance between each pair of points. See reproducible example at the bottom. The function I tried to writ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621052", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why some pages break down and look different on IOS? My website works normal on Android, but when I check it on IOS devices it looks different, Maybe some javascript code is not running correctly? This is one of the links https://www.morocco-excursion.com/tours/3-day-marrakech-to-merzouga-desert-tour Tired some chan...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621053", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: iterate over characters and convert them to ascii in x86 assembly I want to iterate over the characters of a string and convert every single character to its respective ASCII value. So far I have created this program that takes input from the user and then stores it in the buffer. I have also created a loop that rea...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621054", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Terraform create a range variable So I am creating this terraform resource where the TF generates the name of the room and its unique id. It works fine when I have 3 resources. But what happens in the case where I need 1000 resources, I do not want to append the names in the list as it will get bigger, is there a wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621056", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to hide a button if a text field is NOT empty? I'm editing a tour booking form and added a field that displays "No dates available" if there aren't any tours scheduled. (This is a Custom Field that allows us to add text - so the intention is to write "No dates available," but they might add different text at som...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621057", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: gmail - preview of email when user clicks on attachment I am generating an email tracking service that uses an embedded tracking pixel. The issue is that the emails contain attachments, and gmail allows users to directly preview the attachment by clicking on the attachment icons, and this leads to the tracking pixel...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621058", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Azure AD dynamic group query error when using "and" to combine two working queries Does anyone know how I can get this dynamic query working? (device.deviceTrustType -ne "ServerAD") and (device.devicePhysicalIds -any "(_ -match "^[OrderID]:.*_AzureAD_UserDriven$") ***This works: (device.deviceTrustType -ne "ServerAD...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621062", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to write a shell script to queue and submit a given calculation (in fortran) directing to the nodes? I have a fortran code (which is working perfectly), I need to submit the queue and direct it to the nodes. I compiled the fortran code manually. The .bash code gives the following error: Job start at Thu Mar 2 1...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621063", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: 'NoneType' object does not support item assignment when trying to update text in a button on Tkinter import tkinter as tk from tkinter import * window = tk.Tk() window.title("Panda Clicker") window.counter = 0 pps = 1 cost_pps = 20 counter = window.counter def clicked(): global pps global counter ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621065", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Hosting my docker container in public or private subnet? I want to have grafana in a docker container within ec2. This will recieve traffic from Influxdb, also hosted in docker container, seperate ec2. I want to know if these should be hosted in a private or public subnet within my VPC. If i am needing to access the...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621070", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Change values in json item which is list I need to change values of items "Id" "SummaryId" and "CoworkersId" in my json. I have already code which will change values of "Id" and "SummaryId". Code below generates new unique Id for these 2 items. I need that this code will change "CoworkersId" as well. As you can see ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621072", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to make a job batch in Laravel to wait until a certain time in the future before running the next job? I have a command where a job batch that runs some work that lasts at least 40 minutes is created, but I need the batch to pause about 10 hours if the next job is going to be executed after, let's say...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621075", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Printing text and dataframes inside verbatimTextOuptut How can I print strings and dataframes inside verbatimTextOutput? I have this simple app: ui <- fluidPage(verbatimTextOutput("verba")) server <- function(input, output,session) { funDataSummary<-function(){ lapply(list("Firt 5 rows from iris" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621078", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why isn't Flask catching this exception from a redis connection attempt? I'm trying to catch the following exception when I try to connect to redis. redis.exceptions.ConnectionError: Error 10061 connecting to localhost:6379. No connection could be made because the target machine actively refused it. Using this code...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621082", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to invoke an AWS Step Function using an GET API Gateway How do I invoke an AWS Step Function using an API Gateway GET request, and the request's JSON payload to the Step Function? I need the API Gateway to start a Step Function which then invokes a Lambda function that uses the URL input parameter 'pk'. I have t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621083", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Deployment to ECS takes a lot of time I have a couple of next.js apps on AWS Elastic Container Service. I'm using CodePipeline in order to automate the CI/CD process (source is Github, build step is CodeBuild). Everything works perfectly except the "Deploy" step that takes way too much (approx. 10 minutes). I am hos...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621084", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I reject data with next-api-decorator that have extra keys? The following code I assumed was able to reject a body containing extraneous keys in addition to "url" class CreateProductInput { @IsNotEmpty() url: string | undefined; } class ProductHandler { @Post() @HttpCode(201) public async create_p...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621085", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Arcpy - loop through files in 2 folders to calculate multiple NDVI files I a trying to calculate multiple NDVI files from multiple red band files and NIR band files in 2 separated filder with the following code using arcpy: ###### import arcpy from arcpy.sa import * # set workspace arcpy.env.workspace = r"F:/..." ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621087", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ngx-online-status is initally undefiend I am using ngx-online-status in order to get the online status of my application below is the relevant code. Connection.service.ts import { OnlineStatusService, OnlineStatusType } from 'ngx-online-status'; import {Injectable} from "@angular/core"; @Injectable({ providedIn: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621088", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Migrating from ReactDom.render() to ReactDOMClient.createRoot() causing errors I have tried writing thing multiple ways and just end up trading one error for another. We are updating an existing Angular app using Typescript by adding new pages created in React. The basic page component looks like this: create.wrap...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621091", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I want to run this code but I get error : syntax error near unexpected token done '<' #!/bin/bash function check_dgmgrl { server_address="$1" dgmgrl_output=$(echo -e "connect /;\nshow configuration;\n" | dgmgrl / | grep "$server_address") echo "$dgmgrl_output" >> dgmgrl_output.txt } function check_srvctl { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621093", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: IPython kernel running in a Docker container, that is remote to JupyterLab Q: How do you recommend integrating a dockerized remote kernel in JupyterLab? Scenario There are two systems * *system J, hosting JupyterLab *system D, an independent, network-connected machine for Python development, running in a Docker c...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621094", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Dot formatting in Python with list I want to know if its possible to decrypt a list and use in dot formatting: Eg as below: list1 = ["a","b","c"] str1 = "{}{}{}".format(list1) What should I do to pick each elements from list1 and use in dot formatting? list1 = ["a","b","c"] str1 = "{}{}{}".format(list1.items()) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621095", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Why dispatch works with delay? React Redux I have that simple code: const Login = (): JSX.Element => { const {errors}= useAppSelector(state => state.errorsReducer) const dispatch = useAppDispatch(); const navigate = useNavigate(); const [email, setEmail] = useState('') const [password, setPassword] = u...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a simpler way to pick a random sample group from a list? I want to pick a random sample group from a list that doesnt contain repetetive elements. Here is how I do it currently, currDayLevels is a random sample with size 32 picked from levelPrefabs which has a size of 200. It works as intended but I wonder ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pyspark dot product of a DF and a dictionary I'd like to have a dot product of a DF (multiple columns) and a dictionary with keys matching some of the column names and values that should be used as weights. Here is an example: dic = {'SG_actions': 1, 'SO_actions': 2, 'GS_actions': 3} df = __________________________...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621102", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Merging two datasets by the values of three columns in R I have a dataset of about 500,000 animals IndivID of various species binSpecies. Dataset <- data.frame( IndivID <- (1, 2, 3, 4, 5, 6, 7, 8, 9, 10), binSpecies <- ("Dog", "Gato", "Canine", "Chienne", "Jument", "Avian", "Caballo", "Dog", "Cat", "Gato") ) S...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621105", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why are angle brackets '<>' highlighted in red in my code in VSCode? I am working on a project in React using VSCode. Today, when I opened the editor, I noticed that some angle brackets '<>' in my code are highlighted in red. The code is working properly though. I am not sure if this is a syntax error or a bug in VS...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621107", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Change a label after a specified time I am trying to change a label on a button click and then after 3 seconds I want it to change back to nothing ("") my code is this: def apply_click(self): ui.label_ischanged.setText("Applied!") and I connected it to my button then I used time.sleep(3) but I know that it stop...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: VM in Google Cloud I am trying to upload photos/images on VM in Google Cloud. Now, I try to use this photo to be published online. However, every time trying to do that the photo doesn't appear and got that error '404 Not Found'. I would appreciate any help. Thanks I tried this code Here is the code I used in SSH, I...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: SyncFusion DataManager not recognizing changes to entity instance within Blazor WASM App I have an app that has an entity entitled, "Invoice". Within the Invoice entity, I have a reference to a collection for another entity entitled, "InvoiceLine". I am using SyncFusion's DataGrid along with DataManager to perform C...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621113", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cannot install paramiko on M1 MacOS Python 3.8 MacOS M1 architecture paramiko is installed but the following error pops up with it's imported **ImportError: dlopen("path"/venv/lib/python3.8/site-packages/_cffi_backend.cpython-38-darwin.so, 0x0002): tried: '"path"/venv/lib/python3.8/site-packages/_cffi_backend.cpytho...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621118", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to suppress devskim issue in a json file As comments don't work in Json file, what's the method to suppress Devskim issues in Json file? Tried the following solution: Create a new file called .devskim in the root directory of your project if it doesn't already exist. Inside the .devskim file, add a suppressions ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621124", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MYSQL - How to get employee and their manager to show As the title says I am struggling to have the manager show. I tried look online and all I could find are self joins. In my case I have two tables. Instead of the 1, is there anyway I can have it list the manager name instead? Brad should have a null value since h...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621126", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Terraform - retrieve specific attribute from module outputs when using a for_each in the call I wonder if it's possible to pick a specific attribute from module outputs, knowing that I'm using a loop when I call the module. The sequence is: * *call backup_policy module with a for_each on a map *policies are creat...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621127", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a single function "do-not-optimize" attribute that can be used with Microsoft Visual Studio compilers? I have this macro for GCC and CLANG working just fine #if defined(__clang__) #define BENCHMARK_DONT_OPTIMIZE [[clang::optnone]] #elif defined(__GNUC__) || defined(__GNUG__) #define BENCHMARK_DONT_OPTIMIZE ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621128", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: "item has already Been added" added in audit I am trying to make Audit return logs, but always returns this error: "item has already Been added. Key in dictionary: 'mndo' Key Being added: 'mndo'" I used these commands to test with a "test" user. USE Clinica_Medica SELECT * FROM TEST WHERE Nome = 'OI'; In Audit t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621130", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Copying Event Triggers for Copied Control to New Multipage I am creating some automation software for our company that dynamically creates pages on a Multipage depending on some data within a chosen excel file. I have controls set up on the object viewer with events to trigger (ie DblClick a ListBox or ComboBox). Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621131", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: why can't open win forms application downloaded online why can't open win forms application downloaded online Hello, I created a simple win forms application, but I have a problem: when I want to send it via gmail, it downloads to my friend, but then he can't open it, does anyone have any ideas on how to send this a...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621132", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Dynamic resampling in windows. Common denominator I've just started experimenting with high-quality sound, and as such bought an external headphone DAC. This DAC support ASIO which works just fine for solo application such as Tidal etc. Now I've tried to look into how Windows sound is mixed from multiple sources int...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Decoding weird JSON in Swift I'm trying to use an API that is returning the below: Everything works but the 'contacts'. When I'm decoding it sees this as a string and not as data. Any ideas on how to decode the contacts correctly? struct Location: Codable, Identifiable { let id: String let name: String ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621136", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: I want to create live project link in GitHub Actually I want to create live project link in GitHub and I do the steps for that I went to settings and than went to pages and set branch to master and folder to /root and save it but after link is generated and when I opened it. It only loads README.md file not index.ht...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621137", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Killer removed from castMembers array I am trying to have a function choose 1 person in the Cast Members Array to be the killer for the game and once that killer is picked, it will remove that killer from the castMember player array. So the killer is removed from the survivors array and added as their own variable t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621142", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: RoR Grape API | How to invoke an endpoint in one API from another? I'm using Grape API with Ruby on Rails. I would like to invoke a POST endpoint in Api::A from an endpoint in Api::B, where both are mounted under the Api class. class Api < Grape::API mount Api::A mount Api::B end class Api::Base < Grape::API ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621144", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Retain cycles with MainActor and async/await I was trying to understand how to use Task in Swift. So I have a few related questions From reading online I found that you don't need to use weak self inside a Task as long as you are sure that the Task will end. But wasn't that the case with DispatchQueues too? For exam...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621148", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to reference the original return_value of unmocked function without needing to recall the function? I have read through the docs and couldn't find anything about accessing the original/expected/unedited return_value of the foo_hello function and use it to make assertions. The best I could come up with...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621149", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I rescale or resize a 3D model that was created from a set of images? I have created a 3D model from a set of images using the Alice-Vision Meshroom, but I want to know if I can resize this model using Blender or any other program. I want to resize it to be the size of another image or to another object
{ "language": "en", "url": "https://stackoverflow.com/questions/75621150", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: UIActivityViewController not working after iOS 16 update I have the following code in my Xamarin.iOS project: public void sendEmail(NSData pdfData) { sharedItems[0] = pdfData; var activityController = new UIActivityViewController(sharedItems, null); activityController.PopoverPresentationController.Sourc...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: React - Redirect with navigate(), send props to page I am rendering a few cards on my page that all lead to the same page like this: { notes.map((card)=>( <div key={card.id} onClick={()=> navigate('/EditNotes', {card})}> <NoteCard title={card.NoteTitle} bgColor={card.CardColor} /> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621152", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Scaffold-Dbcontext failed - The server was not found or was not accessible I have created a database using SQL Server Management Studio v18. My authentication method is set to SQL Server authentication. I am trying to run Scaffold-Dbcontext command from the Package manager console like this: Scaffold-DbContext "Pass...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621155", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to find the first node smaller than a given value in a linked list python I have a linked list with the node and list method thats: class Node: def __init__(self, value): self._value = value self._next = None class LinkedList(): def __init__(self): self._head = None def add(...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Mutable NamedTuple in python I'm looking for a good struct pattern in python. The NamedTuple class constructor is almost what I want. Consider the following: class MyStruct(NamedTuple): prop1: str prop2: str prop3: Optional[str] = "prop3" # should allow default values prop4: Optional[str] = "prop4" ... # ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621157", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using LaunchedEffect with data class field as key I'm using jetpack compose, and I have a screen that is represented as a sealed class, and it can be one of three possible values: Loading, Error and DataLoaded. Now DataLoaded is a data class with multiple fields, and I have a LaunchedEffect block and I want to run s...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Implicit conversion operator with generic type I am trying to write generic method, which should parse JToken to concrete type, by using implicit conversion operator. I've got my implicit operator like this: public static implicit operator CategoryDto(JToken token) { var result = new CategoryDto { /...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I am able to hit the API even after the token expires public SecurityToken GenerateJwt(ApiInfo? apiInfo, AccountModel.AccountDetails input) { var authClaims = new List<Claim> { new Claim(ClaimTypes.Name, input.Name), new Claim(JwtRegisteredClaimNames.Jti, Guid.NewGuid().ToString()), }; //foreac...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621163", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Merge a large dictionary into a single dataframe I have a dictionary. import pandas as pd d = { 'A':pd.DataFrame( {'Age' : [5,5,5], 'Weight' : [5,5,5]}), 'B':pd.DataFrame( {'Age' : [10,10,10], 'Weight' : [10,10,10]}), 'C':pd.DataFrame( {'Age' : [7,7,7], ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621164", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Trouble understanding the Nixpacks CLI I'm trying to use Nixpacks. But it seems like something is missing from the instructions? According to https://nixpacks.com/docs/getting-started ...after installation, if I type in as little as "nixpacks build ." it should produce an image. Instead, I get something like the bel...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621166", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to slice python pandas dataframe by column values I have a data frame like this- Column A Column B Column C Column D Column E Column F Orange Orange Grape Grape Grape Grape Cell 3 Cell 4 Cell 5 Cell 6 Cell 7 Cell 8 ... ... ... ... ... ... where I want to break in two dataframes like this ** ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621174", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }