text
string
meta
dict
Q: passing variables as arguments using child_process exec from index.js firebase cloud function to python script I am trying to pass the userId variable from the firebase cloud function "myPapp" in my index.js file to a python script that runs using child_process. However, i don't think the variable is being passed pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Does $match in mongoose match inside an array I'm going through some code left by a previous developer, and came across this: const distinctDocumentAggregate = await SSProductModel.aggregate([ { $group: { _id: "$styleID", doc: { $first: "$$ROOT" } } }, { $replaceRoot: { newRoot: "$doc" } }, { $match: { "wareh...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598082", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Code stopped compiling in CLion after Mac OS upgrade. How can this be fixed? It looks like I have some problem with my cc compiler after system upgrade. I encountered strange issue after upgrade from Mac OS Monterey to Mac OS Ventura. My C++ project in CLion stopped compiling. Find full error log below: Compiling th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598086", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to remove or ignore an entry in a JSON file using python? I am working on a code that extracts data from a JSON file here is the JSON file: Google CDN and here is a sample of JSON code: { "syncToken": "1677578581095", "creationTime": "2023-02-28T02:03:01.095938", "prefixes": [{ "ipv4Prefix": "34.80.0.0...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598088", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Do I need to be an admin to generate an API access token on free Smartsheet gov? Do I need to be an admin to generate an API access token on free Smartsheet Gov? I am currently an editor on smartsheet gov and have sharing permissions, but I cannot generate an access token. Do I need to be made an admin to be able to...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to make a hook procedure to work globally I want special key combinations to inject fixed character strings into web browsers and text editors. I'm trying to implement it using a hook procedure triggered by the hook WM_KEYBOARD. The code below shows the hook procedure. It responds to the keys LeftAlt+Q and LeftA...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598091", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to check atomic object impact in producer / consumer schema? I want to implement the following * *Two threads: producer (can change shared variable a), consumer (waiting for shared variable change) *I want to use atomic to synchronize threads Problem - I was running my code with int a; and std::atomic<int> a...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598094", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Character length in a field I can find answers to other very similar questions but cannot seem to find answers to my issue. I have a field that the correct returns would be something like 'L12-012345' Character count before and after the '-' is constant. I am trying to get my report to simply return with any outcome...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598096", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Need to get folder path input from user in a CLI tool I am working on a beginner CLI tool in Node.js. I want to get a file/folder/path from the user to save a particular file. I want to ask the user to specify where they'd like their file to be saved using Node.js. How can I achieve this? I know I get to ask for inp...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598101", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: My Webview (Swift) iOS app is missing some small feature. e.g. links that have target="_blank" in HTML or tel: or mailto: links I put together a Webview iOS app in Swift myself. But I am missing some small functions. I hope one of you can help me to complete my code. * *links on my website that have target "_balnk...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598103", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Can I give a name to an element of a global array? I have an array MyStruct* my[100]; I set the data in a loop like: if id > X && id < Y { my[id-X] = p; Now I'd like to access my[0] as name0, my[1] as different1, my[2] as anotherThing, etc. How do I do this? I tried union+X macros, but that doesn't work in gcc (it ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598105", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Vue router scrolling to vue-view comp I'm creating an application in Vue and I'd like all the main content to be on one page with the option to scroll to specific elements such as LandingPage then below Form, About ..etc. Is there any way to use a Vue router to set up these components on a page so that when I click ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598106", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do packages/CLI tools like Poetry run with a single command in the terminal? I've installed Python Poetry on Windows via pip and noticed that I can simply enter poetry into any terminal and it will be recognized as a valid command (although not really do anything of course since I didn't provide any arguments). ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598107", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Change Pen thickness using textbox User input I want to change the line thickness Pen draws in Picturebox with user input who puts a number in the textbox. i don't know how to assign the input number to a Pen. I have a method that gets location input from user to draw lines it looks like this under a button: drawLin...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to do 'python compileall' and get the results in the current directory instead of creating a __pycache__ folder? I have a directory with some python files (.py) and some non python files, as well folders with similar structure. I want to use the python compileall function to convert all the .py files to .pyc but...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598109", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I bypass DCOM restrictions to start Windows Explorer on another device in a local network? I am trying to write a C# program on Windows 10 that can start and stop Windows explorer on all computers in a local network at the push of a button. I am able to use taskkill to easily kill explorer.exe, but bringing ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Best approach to avoid creating an object with all nullable fields but still use null safety in Kotlin while using spring jpa with hibernate I'm kinda confused of using null safety in Kotlin by Spring JPA/Hibernate for database entities. How to profit from it when I have such case: @Entity @Table(name = "plan") cla...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598116", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Print buffer in gdb relative to register In GDB when I want to print 10 bytes from r1 register : x/10x $r1 But how can I print number of bytes that store in r5 register? x/$r5 $r1 Is incorrect A: GDB parses the count portion of the FMT argument to x as a string of digits (whatever the C atoi function accepts). To...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598118", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to handle it when the user doesn't fill the time on a datetime input? I have a DateTime-local input field (Review Date) on my Node app. When users input the date, month, day and year after pressing the tab key. The input goes to the next field (Review Title, for example) instead focus on the time portion from th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598120", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: GitVersion not respecting tag-prefix The Background: I have a Git repository with random tags for various things however when our pipeline runs we execute GitVersion to calculate the version number for a nuget package in the solution. Tags such as '2023.02.28' and 'random-text'. I'd like GitVersion to only consider ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a java version of Objective C's objc_msgSend for tracing android apps? This answered that "objc_msgSend is basically the implementation of Objective-C's message dispatch". So it seems like tracing objc_msgSend can help with profiling all methods in an iOS app. We want to do something similar for Android app...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598122", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error when trying to run an flutter app as windows app: custom build exited with code 9084 When i try to run my flutter app using the Start Debugging option on VSCode i receive the below error: Launching lib\main.dart on Windows in debug mode... main.dart:1 C:\Program Files\Microsoft Visual Studio\2022\Community\MSB...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598123", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: sympy will not evaluate an expression to a numeric value I'm using the python package sympy as a part of a larger program. I have a complex equation with multiple variables that mostly works to provide me a numeric answer. Every now and then the stars align and my output includes half the answer along with a porti...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598125", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can WooCommerce accommodate custom price lists? Does anyone know if WooCommerce can accommodate customized priced lists per customer (either via custom development or a plugin)? I have a wholesale business that sells home furnishings to the trade (interior designers and retailers). I carry 10 different brands and e...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598127", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to nest an appended list of dict What I'm trying to do is take a list of dictionaries and append it as nest into a list of dictionaries. So I have the following code below: i=1 ins = {} meta = {} dlist = [] # JSON data: for i in range(0,4): ins['name'] = f"M {i}" dlist.append(ins.copy()) print(dlist...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598129", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Determine name/alphabet range based on count of records and number of bins/groups in Power BI I have a SQL query that returns a data set of a population of people. The data set includes a person's name and various other fields specific to the person. I have a team of individuals who are assigned to do work on each o...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598130", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to load Gutenberg on custom fields? I want to have 3 versions of same page, which will be served from same url. So I want to have 3 Gutenberg instances, one for main post content and 2 for custom fields that I have. Is it possible? With tinymce(Wordpress’s previous editor based on tinymce), it was pos...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598131", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why is python sphinx failing due to sys import? I'm running unit tests with docker and a Makefile, and the last step is to compile documentation with python setup.py build_sphinx which is failing with the error message ERROR: InvocationError for command python setup.py build_sphinx (exited with code -11 (SIGSEGV)) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: BigQuery rateLimitExceeded Error with DML insert on cloud function trigger I have a firestore collection structure as follows: /documents/{documentID}/events/{eventId}. I want to insert a row into a BigQuery table using a firebase trigger function, which listens to the events collection with functions.firestore.do...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598134", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Chip inside a Material Textfield with multilines So i was using this TagsInput as shared in the link for codesandbox https://codesandbox.io/s/material-ui-input-with-chips-0s2j4?from-embed=&file=/src/TagsInput.js The issue im facing is if there are alot of chips then the chips go out of the text field What im trying ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598135", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Roboflow Yolo: how to process multiple images and save individual return json? Below is a simple Roboflow Yolo segmentation code that I am running on Colab. The pre-trained model works fine on 1 sample image. The only thing that matters here is the model, which is an instance segmentation model. The result of predic...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598137", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to protect python script from editing I am building a python script for my co-workers to use. what I want for my co-workers is to be able to run and view the script but not to edit the script when they download it from GitHub. I explored a few options like in this question and this article but unfortunately non...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598138", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Does soupsieve (and bs4 by extension) need build to be installed? I work in a computer that has no internet access, so software has to be installed manually instead of by pip. Because this requires IT approval, we would prefer to minimize how much third-party software needs to be installed. So after copying the sour...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598139", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: SCAFFOLD implementation in tensorflow For my current research, I want to add the Federated learning strategy SCAFFOLD from Karimireddy to my experiment. I am using TensorFlow for my research, however I can only find implementations in Pytorch online (https://github.com/ki-ljl/Scaffold-Federated-Learning/blob/main/Sc...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598140", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery Select2 with AJAX Call to Retrieve Dropdown Domain is Appending New Option but Option is Not Appearing in Dropdown I am trying to append a new Option to my Select2 dropdown menu according to the following example - https://select2.org/programmatic-control/add-select-clear-items#preselecting-options-in-an-remo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598141", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to prevent marshalling exception when accessing UWP UI from another method I have a C# UWP desktop application class that I am having issues with when trying to run code in another method that needs to access the UI thread. I have read a few other questions/answers already and tried some solutions, but so far no...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598142", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Interpretation of 2D density estimate charts I created the following charts in R using stat_density_2d() (left) and geom_density2d_filled() (right) respectively. Despite both charts looking visually identical, the levels are significantly different. How can these values be contextualized or interpreted? For example,...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598144", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Performance MPI and MPI+OpenMP. Speedup and efficiency The program I used to measure performance has an implementation in MPI and one with OpenMP+MPI where 2 threads and 4 threads are used to parallelize the loop present in the program. The program performs image convolution. The dimensions of the images supplied as...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598146", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to reset a socket io callback? useEffect(() => { socket.on("msg-received", (msg) => { api_call(hit); }); }, [hit]); When hit changes, socket.io appears to associate a new callback to msg-received instead of replacing the original callback. This means that on msg-received, api_call is runned mu...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598150", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using PowerShell how can I pass a json string as a single argument value to my program? I would like to create a console program like Invoke-RestMethod -Body $body to pass a json content using powershell on windows. [string] $body = ' { "a": { "b" : "f...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to convert pineScript to mql5 I am rewriting an indicator from pineScript. I have learnt that pineScript auto loops through the data and I want to this code in mql5 length = input.int(14) k = input.float(1.,'Slope',minval=0,step=.1) method = input.string('Atr','Slope Calculation Method', options=['Atr','S...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598152", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How do I make my own method that returns an object to a variable? Similar to how mysql.createConnection() returns MySqlConnection obj to a variable I don't understand how mysql.createConnection() is able to return a MySqlConnection object to a variable like this: const mysql = require('mysql'); const con = mysql.cre...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Is it possible to fetch all terraform module's source attribute(git url) within a gitlab project i am new to gitlab and all other doves tools, if i am not describing my problem clearly, i will clarify further. i have gitlab projects with terraform files that contain terraform modules. i wanted to run a bash script o...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: "Unresolved reference" of a view's id from fragment layout in onViewCreated method I am learning from a book written in 2018 in Android Studio 3 while mine is Android Studio 4. The langage is Kotlin. So I encounter some troubles of implementation. I tried to follow the binding with current rules proposed in the doc...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598157", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PostgreSQL CREATE SERVER with dynamic (non constant) options? Using PostgreSQL 12 (or greater). Is there a way to use SQL, functions, or properties etc to fill in OPTIONS when creating a FDW server? I.e. I want to do something like: CREATE SERVER my_server FOREIGN DATA WRAPPER postgres_fdw OPTIONS( dbname 'the_dat...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use maven wrappers in netbeans I have used NetBeans for years, but never with Maven. I am trying to use Maven wrappers to set up a remote repository utilized by the microservices at my new company; is there a way to do so native to NetBeans so that it's applicable to all Maven projects from that point on? The...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598160", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Are override properties set before the constructor runs? public class UserNotFoundException : Exception { public UserNotFoundException() { } public UserNotFoundException(string? message) : base(message) { } public UserNotFoundException(string? message, Exception? innerException) : base(...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598161", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Queue function and Form with C# on visual studio I am learning C# now and got a question below. May I ask what the recommended codes can be suggested? Part 1: Using the form to show customer names should allow: a) to add and remove customer from/to the queue (use enqueue / dequeue) b) show the total number of name...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Full Calendar not rendering due to lenght of event title fron mysql database I have been playing around with FullCalendar for the past week. I have identified an issue with the rendering of the calendar in any browser (Edge / Firefox / Chrome) if the title text is longer than 10 characters for the New_Job page, 30 c...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598163", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Selecting HTML Dropdown Using VBA I'm trying to scrape a website with a dropdown, pre-set to 20, with options 20, 50, and 100. I'm trying to select 100, but setting .Value = "100" results in an error; .click just "opens" the dropdown so all options become visible; and .selectedIndex = x doesn't seem to do anything. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598165", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I pass arguments to the python interpreter like "-u" in launch.json configurations? I am trying to call python -u file.py in VS Code debug mode. I get that I can use the "args" field to specify arguments, but what about python interpreter flags? A: If you're using "type": "python" in your launch configurati...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598166", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Kusto command to see all column names in table? I don't find .show table details helpful, I would just like to see the name of every column in a kusto table A: you can use the getschema operator A: TableName | limit 1 You could see a 1 row sample of your table this way
{ "language": "en", "url": "https://stackoverflow.com/questions/75598169", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why is my jenkins job not able to detect changes? I have a webhook setup in my Github repository and with the corresponding triggers set in Jenkins. For some reason, it takes 35 mins on average to detect and automatically run job from that PR multibranch. The strange thing is, other repos have the exact same setup a...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to retrieve new html code after clicking next button using selenium. URL doesn't change as well I am scraping https://www.coworker.com/search/turkey/izmir using selenium and beautiful soup. The html is rendered using Javascript which is why I am also using selenium. When clicking on the next button, the url i...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598179", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Produce R-squared value from model fit I hope you're doing well! I'm trying to produce an R-squared value from my model fit in R, but the model fit itself is based on a specific function from a script. Unfortunately, I haven't been able to find a solution so far. First things first, a list of the required packages: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598181", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Spring boot update entity with same id but changed reference A typical way to update an entity is: val userEntity: UserEntity = userRepository.findBySomething(...) userEntity.name = "New Name" userRepository.save(userEntity) Since the id of userEntity remains the same, spring-data-jpa will update the row instead of...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598182", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Bootstrap positioning icons when viewing Mobile vs PC I'm new to Bootstrap so bear with me, but I have a navbar that contains hyperlinks to my other pages. Also in the navbar, but on the opposite end, I have image icons that go to my social media accounts. On PC it looks perfect but on mobile the social media icons ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598183", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Spring Cloud Gateway configuration/usage Hi Guys I am trying to find best architecture to implement SCG with microservices. * *Is it good option to keep SCG and Spring Security in same Spring boot app(option 1) or other option 2? *will this be easy managed by Load balancer in AWS?
{ "language": "en", "url": "https://stackoverflow.com/questions/75598186", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: get firefox and chrome to align-items: center text the same way? if i make a div: <div class="letter">X</div> and style it with flexbox "align-items: center", like this: .letter { display: flex; justify-content: center; align-items: center; font-weight: bold; color: white; background-color: blue; wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598188", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to add Venafi Certs in POSTMAN to make API Call I am trying to use the Venafi certificate in Postman to make an API call. I have the Security Certificate file .crt which I added into Postman Certificates. I added domain and certificate as per below screenshot. After adding the certificates, when I tried making ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598191", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sass mixing uses last class out of all it made I have this mixin: $distance: 30px @mixin animate($delay: 0s, $direction: "up") animation: fadeIn 1s animation-delay: $delay animation-fill-mode: both @keyframes fadeIn from opacity: 0 @if $direction == "up" transform: translateY($d...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598192", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: TypeError: 'Query' object is not callable I am a beginner with SQlAlchemy and have the following query I would like to execute as part of a view using Model.Query Query I would like to execute home_purchase = Home_Purchase.query(Home_Purchase.id, Home_Purchase.property_location, (Hom...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598194", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Sort Json Object in an array/text I was wondering if i can sort the json keys in order as an array by the values. Below is a json object { "p1": { "name": "*****", "age": "18" }, "p2": { "name": "*****", "age": "14" }, "p3": { "name": "*****", "age": "24" } } and i want it to get...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598195", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: What is the best architecture to run a Spark job in Airflow? I need to create a pipeline in order to ingest lot of data following this steps: * *Start airflow on a kubernetes cluster *launch a pipeline using Spark to retrieve a large volume of data and do some processing on it To do this I hesitate between 2 met...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598200", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: I am having trouble getting the subplots in Matplotlib to display properly, despite copying syntax that appears to be working for others. Any ideas? Here is an image showing how terribly my output is displaying: enter image description here Here is an image showing how my output is supposed to look: enter image desc...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598205", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to stop graph plots from appearing when trying to display multiple images using subplot in Python? I'm reading all the necessary images using for i in range(size): img = mpimg.imread(PATHTOMYIMAGE) img2 = mpimg.imread(PATHTOMYIMAGE2) f, axarr = plt.subplots(size,2) axarr[i,0].imshow(i...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598206", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error while encrypting a file on s3 : Package (soarecostin / file-vault) i am uploading files on s3 as encrypted , it's working fine but when i tried to decrypt any specific file and create a presignedUrl (which i get and is accessible) and then i created a job to run after a while to again encrypt that specific fil...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Two plots overlaid (ggplot) Can anyone help me in my struggle to combine these two graphs into one? Ideally the coloured plot should be overlaid by the step plot, so that counts of "ox_0" are shown (as histogram or steps) on the coloured graph. I have PLOT 1: ggplot(subset(stw, !is.na(will)), aes(ox_0, fill=will)) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Property 'doRequest' does not exist on type 'any[] Trying to create a custom hook on type script to handle errors & api I'm getting a type error property does not exist on type 'any[] the hook code: import axios from 'axios'; import { useState } from 'react'; interface params { method: string; body: object...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error in sparkCheckInstall(sparkHome, master, deployMode): After doing the following devtools::install_github('apache/spark@v3.3.0', subdir='R/pkg', force = TRUE) library(SparkR) I ran this to convert my data into a spark DataFrame as.DataFrame(value1) However, I got the following error message Error in getSparkS...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598212", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Read related data - ASP.NET Core MVC with EF Core I'm trying to display my ingredient when I click on detail, but it's not working. But when you click on "Detail," it goes to a blank screen. public class Recipe { [Key] public int Id { get; set; } public string Name { get; set; } public string Descrip...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598215", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: running a django project in a virtualenv on both windows and WSL How can I make a $ pipenv shell and then a $ python3 manage.py runserver work inside the WSL just like it runs on Windows terminal? I want to code in both windows and linux environment and run the application server on both environments. I'm writing a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598217", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using IsNull or COALESCE in Linq Instead of using the foreach loop to assign a value (c.TR.FEM) to every c.FEM that is null. I'm wondering if I can do this in the LINQ using isNull function (isNull(c.FEM,c.TR.FEM)) or COALESCE function? The foreach loop is causing my application to time out when dealing with large c...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598221", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Conditionally replace values in a column given the value of another column in the same line while retaining formatting How can conditionally replace values in a column given the value of another column in the same line while retaining formatting? I can accomplish the first part using awk or R based methods, but it r...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598224", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Custom TaskScheduler that gets used across awaits Unless you have extensive experience with SynchronizationContext, TaskScheduler, TaskFactory, async/await, and multiprocessing, there is no need to read further. I've spent the last couple of years taking a large mostly-monolithic C# project that started with .NET 2....
{ "language": "en", "url": "https://stackoverflow.com/questions/75598227", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Getting error 'Null check operator used on a null value' while working with ListView in Flutter I am working with a ListView. The code is given below: MediaQuery.removePadding( context: context, removeTop: true, child: ListView.separated( separatorBuilder: (context, index) { return Divi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598228", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to draw text on a rectangle with rounded corners using ffmpeg? I'm trying to draw text on a rectangle with rounded corners using ffmpeg, but my current command is not working. Here's what I've tried: ffmpeg -y -i ./video-ready-all.mp4 -filter_complex "drawbox=y=0:color=white@0.5:width=iw:height=40:t=max, drawbo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598230", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: python setup.py bdist_wheel did not run successfully, error: invalid command 'bdist_wheel' during when building conda env and installing package JAX I run this process inside a new conda environment with python 3.8 * *Installing python environment management utils with #!/bin/bash brew install pyenv || brew upgra...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598238", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: What does the `return` command really do when sourcing a Bash script? Consider this MRE Bash Script: #!/bin/bash # mre.sh (return 0) && echo SUCCESS || echo FAILURE echo DONE According to the man pages: The return utility shall cause the shell to stop executing the current function or dot script. The documentati...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598239", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Dynamically index into Python dictionary based on function parameters I'm building a function that indexes into a Python dictionary nested inside a list. The user knows what the dictionary looks like in advance. This is what it looks like so far: def dict_idx(arr: list, subkey: str) -> list: for i in arr: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598240", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Raspberry Pi Pico pin turning on but not back off I am using a Raspberry Pi Pico to control a water pump through a relay. The relay is connected to ground, the VBUS pin (which also supplies power), and GPIO 12. The water pump is a Gikfun DC 3V 5V Micro Submersible Mini Water Pump. I am using Micropython for this pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598243", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Upgrading Windows Server 2016 to 2022 via Remote Desktop Connection I need to perform an in-place upgrade of a remotely located Windows 2016 server to 2022 (or 2019). My only access to it is via Remote Desktop connection. Knowing that the upgrade process may require restarts, will I be able to re-connect my remote d...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598244", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Detect Date Input change and Dynamically disabling button using Javascript but button still enabled I would like to disable a button dynamically if a user hasn't entered details in any input field in a form. This is what I have tried: <div id="create-container"> <form method="post" onkeyup="btnActivation()"> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598251", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Subtracting a vector from a specific column in a matrix I have a matrix with 7 columns and 146 rows. I have a vector with 146 characters and I am trying to subtract that vector from the first column of the matrix. I also need to subtract 65 from every number in the 21-45th rows in the 4th column, but I have not been...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598253", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Mini self-project #1 Weight = float(input("Enter your weight: ")) Weight_Metric = input("Type L/l for LBS and K/k for KG: ") if Weight_Metric == "L" or Weight_Metric == "l": lbs_to_kg = (float(Weight * 0.453592)) #Note that the conversion of lbs to kg might not be exact print(f'If you are {Weight} in po...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598255", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: looking for Series Error instead of dataframe with Panda """ 22. Make a bar chart that plots the number of deaths per nationality Only include nationalities with more than 50 deaths -- Name the resulting Series as "unlucky_countries" Hint(s): Get the count of unique values in the 'nationality' column using the value...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598256", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Combine multiple requestAnimationFrame I am playing with JavaScript and I need a little help with requestAnimationFrame. What I am trying to do is to combine multiple requestAnimationFrame. For example Run every 5 seconds the fade function with a duration of 2 seconds. What I build so far let lastTimeStamp = 0; let ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598257", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: The different between SKlearn and statsmodels in calculting R2 I calculate the R Squreed using Statsmodels and SKlearn package, but the results are different. I can't figure out what could be the reason import statsmodels.api as sm X_addC = sm.add_constant(X) result = sm.OLS(Y, X_addC).fit() print(result.rsquared, r...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598260", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Greedy algorithm, error : expected identifer So I'm writing code for a class, and the job is to create a greedy algorithm. I wrote code that should work, but I'm getting an error code. Did I forget a {} somewhere or what's wrong here? The exact error is : practice.c:14:9: error: expected identifier or '(' do ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Extruding a cylinder with complex UV mapping This is all being done programmatically, not with any kind of 3D editor. I am being delivered a shape like this: The UV coordinates that map that checkerboard are just the x,y coordiates of the shape, but I can count on anything I want to map onto this being 1.0,1.0 in s...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598265", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Create date intervals from number of hours I am trying to create date intervals from the number of hours. Known variables are start_date, end_date and hour positions which are extracted from XML file. This is just one example as the time frame can also be one month with different hour positions and thus intervals. S...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598266", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error using Zappa to deploy Flask app to AWS Lambda and S3: raise EnvironmentError("Pypi lookup failed") OSError: Pypi lookup failed I'm using Zappa to deploy a Flask app to AWS Lambda. I followed a few tutorials, including one that told me to use 'slim_handler' in my zappa_settings.json file because my project is o...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598268", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Gaussian function is producing unreasonably small values at small x, compared to a Lorentzian/Cauchy function Below is my minimal code for reproducing the problem import numpy as np import matplotlib.pyplot as plt # define a Gaussian function def Gaussian(x,mu,sigma,A): return A*np.exp(-0.5 * ((x-mu)/sigma)**2)...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598274", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: `-ftree-vectorize` on Clang fails floating-point comparison tests I recently tried to add the -ftree-vectorize compiler option to the build step of my project. I ran tests after the change, and for some reason when compiling with Clang, one of my end-to-end tests fails because of significant floating point differenc...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598275", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Identifying recurring process running on EC2 Instance Our AWS account has a running EC2 instance - we are unsure what it's used for. The monitoring metrics for this instance appears to have some recurring CPU utilisation and credit usage (see below screenshots – spikes are for the same time each day). The person wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598277", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: R pattern for updating a df column based on another df, when present I often find myself wanting to update a data frame based on a separate data frame that has new values for a subset of columns and rows. For example: library(dplyr) df_original <- data.frame( id=c(1,2,3), name=c("John", "Rose", "Kanaya"), ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598278", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why is Matplotlib cutting off my (very specific) axis label? Here's the bottom line: I need to make publication-quality plots with Greek letters and subscripts in axis labels. Yet, in some rather specific cases, the label gets cut off near the tick labels. For example, I really need a label of $\alpha_-$ for some p...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598282", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Receive press events from only the first widget under GestureDetector in Flutter My app has a similar widget tree to what's below. onTap is called when any of the containers are tapped. How can I make it run only when the first container (the one with the red background) is tapped? GestureDetector( onTap: () => ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598289", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Curiosity, Artificial recognition without neural networks Is it possible to do artificial recognition without neural networks? What I mean is that there is a possibility to create an algorithm that can do the same job. It probably doesn't exist, but if anyone knows how something like this could be achieved? Without ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598290", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: How to use a do loop to read a specific line of an external file into a dummy variable every N line until end of file? I am trying to make my code more consise. I was instructed to use a nested do loop to help make this code more automatic; every 4000 lines or so in the external file there is a comment starting with...
{ "language": "en", "url": "https://stackoverflow.com/questions/75598296", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }