text
string
meta
dict
Q: git doesn't read environment variables when merging with --no-ff I have a commit-msg where I use GIT_AUTHOR_NAME for whitelisting specific developers for certain commit message standards. In normal scenarios, GIT_AUTHOR_NAME is always defined and shows the correct author of the commit. When I am doing a release with...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567206", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to a make a model in sequelize to has a many to many relation-ship with the same model I have a table in the database called category, that has an Id, name, image. I want to add that category may also has category, for example lets assume I have a category named women clothes, men clothes, and clothes. I want to...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567208", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Center ThreeJS PlaneHelper on geometry I am using local clipping to allow my users to drop clipping planes on my models. When they add a clipping plane, I'm using PlaneHelper to visualize where the plane is. I cannot seem to get the PlaneHelper to be centered on my models. It always appears to be centered round (0,0...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567216", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to initialise array one by one in cpp? Here is the solution I wrote myself, but I'm not sure I did it right. #include <array> class Data { public: Data(int some_args); }; std::array<Data, 1000> build_data_arr() { alignas(Data) unsigned char raw[sizeof(Data[1000])]; for (size_t i = 0; i < 1000; ++i) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Laravel 8 route clears errors set in controller, while direct access to view is ok In a controller LoginController.authenticate, if I try to redirect to previous page with this code: return redirect()->back()->withErrors([ 'email' => 'These credentials do not match our records.', ]); The correct view is displayed...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567225", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get json file from rest api using python? I need python code how to download json file and put on some specific path from api url:http://msmobile.rs/GetCategoriesAsJsonFile and http://msmobile.rs/GetProductsAsJsonFile. When I do it manually when I want to get url I need to first login to that specific tab, no...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567227", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: What happens, when there is not enough ETH in a Metamask wallet to pay the gas price? Let's assume, that I use a Metamask wallet and I have $500 amount of ETH in it. I execute my smart contract, but the used gas is more than that - let's say $600. As far as I understand, then the transaction will fail, but the gas p...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567228", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: retrieving data from firestore (flutter) how can i read a single field data from firestore and store it to a variable? final Stream<QuerySnapshot> users = FirebaseFirestore.instance.collection('users').snapshots(); Container( child: StreamBuilder<QuerySnapshot>(stream: users , builder: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567229", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: AWS Signature Version 4 - DELETE Object on S3 Looking for help on building a DELETE request in PHP / cURL to DELETE an object on AWS S3. I've been stuck on this for way to many hours and can't seem to get this to work. Following these docs: https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-header-based-auth.htm...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567233", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to code in C langage on a M1 Mac which permit to compile and run a code? I have a MacBook Air M1 and for my studies I need to have a compiler which works with my Mac I tried Codeblocks but there is no version for my computer and VS Studio Code but I have some problems like linking my others files for a project t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567234", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to shuffle an array that has duplicate elements in C, such that the duplicates are separated by a spacing of 2? I am using the FisherYates Shuffle #include <stdio.h> #include <string.h> #include <stdlib.h> #include <time.h> int main(void){ int num[] = {1, 1, 2, 2, 3, 3}; // Given array which has to be shuffle...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Replacing json file using powershell script does not work when script is called as even/action in installshield suite I need to replace an existing .json file on the target machine. I am executing it as Event/Action in my Suite with elevated rights. This is the script: try { $ProductName = "ravendb" $Produc...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567244", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Looking for a cleaner way to structure Kustomize overlays I am in the process of transitioning a number of batch jobs such that they run out of a k8s instance. I have a dozen batch jobs that need to run in 4 environments. The logic to be applied via the overlays is simple, I need to set the base image and command ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567245", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to assign multiple managed identities within Azure Web App for different AD users, linked to different Azure Flexible Postgres roles I have an Azure Web App with AD authentication enabled for a single tenancy. I also have a Azure Flexible Postgres database with AD Authentication enabled. I have set up two User-M...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567247", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Automatically update total when changing quantity in WooCommerce I have the following code that changes the quantity field to a dropdown format on all pages (Product, Cart, and Checkout), but on the Checkout page where the quantitys are also displayed, changing the dropdown does not update the cart total. What am I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567248", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Labels within Blazor EditForm are wrapping onto one line, rather than displaying on a distinct line I am trying to create a Blazor EditForm on a registration page. The form looks correct apart from one rendering issue, where each Label that makes up the form is "wrapping" and starting on the line above it, as shown ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567249", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to rewrite the function from spark to pandas I have a dataset in spark with columns group, used,free in spark the code looks like this: .groupby('group') .agg( (F.max('used')/678).alias('used'), ((F.max('free')+F.max('used'))/678).alias('total') ) How can I rewrite the se...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567251", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can a Docker instance be run on a system that doesn't have the Docker Engine installed? Trying to learn Docker and reading and re-reading documentation but not understanding. From what I've understood, Docker containers are managed by the Docker Engine, which interfaces with the host system OS / kernel. If I boot up...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567252", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Having a big issue not being able to access Woocommerce orders page- blank I am assuming that thee issue I am having is the same as this post (as it is the exact same issue)... Woocommerce 404 page instead of admin orders list page I cant seem to locate the table with the transactionid? can anyone help me find what ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567254", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: same classification model for different data I'm wondering if someone can help me with the following problem. When I have a ROC curve for a classification model which was trained with balanced train data and I got the auc and the threshold (TPR,FPR) of the roc curve that performed best on this classification problem...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567255", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Trying to send props through 3 cycling components in react native i am trying to use google maps api & google geocoding & google geolocation to create a functioning map where the user will be located via his device's gps on start, and also have the options to click the map in order to change the location, and even w...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567256", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I create a placeHolder in the BasicTextField? I have a certain TextField where I needed to specify my padings. When there is no text in it, I want to output something like "It's empty here". Unfortunately, BasicTextField does not allow me to add placeHolder as a modifier. Perhaps you know how to fix this sit...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567260", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PM2 Process Stops After Some Days / Time Issue I've a problem with my react and node application, in production, when i'm using the following commands to run my node app in production: pm2 start app.js --name=MyAppName pm2 save --force after executing the above commands, server runs successfully, that is perfect. bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567263", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Powershell $Function Variable reference is not valid. ':' was not followed by a valid variable name character Unable to assign a variable within an $function definition, is there a workaround for this? This works: $GetADef = "function ${Task} {$function:ActualFunctionName}" Using a variable $Var for example fails: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567264", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to speed up cloud run deployment by using cached docker image I am using google cloud run to deploy my application. Every time I deploy the application, the build takes about 22 mins since dlib library (one of the required libraries) is very large. I end up getting something like this: Building wheels for colle...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567265", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: listview.builder wrapped inside expanded widget (and shrinkWrap: true) in a column is not building the ui I am not able to fix this error: ======== Exception caught by rendering library ===================================================== The following assertion was thrown during performLayout(): RenderFlex childre...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567267", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: TouchableOpacity for ios real device not always working I'm currently using TouchableOpacity from react-native There is no problem with Android or iOS Simulator, but there is some issues with real device. I tested with 6s and iphone X, but both is not working When I clicked the component, onPress is triggered occass...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567271", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Video autoplay muted with plyr.io doesn´t play any idea how to autoplay a plyr instance? I know that chrome is blocking audio by default, that´s fine for me :) Just want to have it autoplay and muted, so the user should be able to unmute the sound with the plyr-controls. Any idea? Thanks, Joe https://codepen.io/kkup...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Does anyone understand shopify Git integrtaion for CLI 3.X? I'm starting out in shopify dev and I'm struggling to understand how git integration works. I want to be able to set up two way management via git, so that when I make a change in the store front it can be merged into my github repo. I've looked at a lot of...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567281", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Horizontal FixedSize SwiftUI Table gets a width of 0 The following example should illustrate my problem: import SwiftUI struct Entry: Identifiable { var id: Int var name: String } struct ContentView: View { private var data = [Entry(id: 1, name: "Name 1"), Entry(id: 2, name: "Na...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567282", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why Exists and not exists return different results in SQL I have been exercising SQL basic queries, however i am stuck on one task. I mean - I know how to do it, but when I try to apply reverse logic, something seems wrong and I can not understand what is making other query to produce wrong results. So the task is f...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: If T= 10**z and T=x*y, is there any computation technique to find the value of x and y by understanding a previous set of given data? I have a dataset which contains 300 values of x, y and z. However, the rest of the dataset contains the value of z only and I need to find the values of x and y from the above relatio...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567289", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Android app wheel spinner and show image depend on what number you got does anyone know how to create a wheel spinner and show an image depend on what number you got ? am very very new to coding
{ "language": "en", "url": "https://stackoverflow.com/questions/75567292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: About the issue with Facebook's message field I am currently encountering a problem using Selenium to operate Facebook. The message box stays in a "loading" state when trying to open it with Selenium, but it works correctly when not using Selenium. The screen on the right is operated by using Python to control Sele...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567293", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Spring JPA OneToMany Relationship on multiple attributes I have a class Parent and a class Child. A Parent can have multiple children and a Child can have a mother and/or father as parents. How to map this relationship? @Entity @AllArgsConstructor @NoArgsConstructor @Data public class Parent { @Id @GeneratedValu...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567294", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Blazor runs authorization everytime I open a new tab I have developped a blazor application and the login works ok even though it is a bit slow. The problem is that when I open new tabs of my application (and I need that to work on multiple invoices or customers at the same time) the authorization runs again. I don'...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567297", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: (Python) multiple counters in a for loop? trying to have multiple counters, where if you get a question right or wrong, it's respective counter will go up by one. The code is janky and not really the simplest way to do certain things (I think), as I'm new to coding. import random wordBank=["throw"] word=random.choic...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567298", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: problems with fedora and libtinfo.so.6 I am currently on F37 and I get the following problem when I try to run a program that uses ncurses; I wrote the program myself, but I was able to get it working on other distros. ./others: /lib64/libtinfo.so.6: no version information available (required by ./others) ./others: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567301", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Fill down between rows in new dataframe column I have a dataframe where I need to create a new column (Break), and forward fill that column between all the Break rows. Type,Name Parent,Parent1 Break,break010 Op,Op1 Unit,Unit1 Item,Item1 Break,break020 Op,Op2 Unit,Unit2 Break,break030 Op,Op3 Unit,Unit3 Parent,Parent2...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: problem to Use : Android React Native & @react-native-community/art I want use component shadow with "https://github.com/tokkozhin/react-native-neomorph-shadows.git" im my Project , but can't run my project with this dependency : # @react-native-community/art npm start Error : Deprecated Gradle features were used i...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567304", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What exactly is a C++ constant subexpression? The C++ standard, Section 3.14 [1], says: 3.14[defns.const.subexpr] constant subexpression expression whose evaluation as subexpression of a conditional-expression CE would not prevent CE from being a core constant expression I'm not sure how to interpret the above sta...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567307", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Google Cloud Platform API EROR I got the Google Drive API from https://console.cloud.google.com/. I am trying to get a quick link of the files inside my goal folder. File location, encoding and I think I've done it properly but I'm getting an error like this. File "c:\\Users\\ejder\\OneDrive\\Masaüstü\\Proje\\from s...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567308", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Warning: An update to BrowserRouter inside a test was not wrapped in act(...) I'm working on a shopping store project and I'm testing the App component to see if clicking the nav links in the header will render the accurate page components. The test passes but it throws the warning below. import React from "react"; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567310", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Axios interceptors I am working in a project where I have to log in, get access and refresh token, and stay logged in even after the token has expired. So far I have been able to retrieve both access and refresh tokens, from the server, and a new "refreshed" token. The thing is, when the token expires, and I request...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567311", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to add a plot line on a CSS Chart I'm trying to add a horizontal line at a set point using chartscss.org For example, on the chart below using Charts CSS, I'm trying to add a horizonal line at the 15.5.. Similar to the image below. I've tried a few different things such as making the chart position: relative and...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to convert an image firebase url to file object using typescript (angular 11-15) I get an image from firebase storage which has this link https://firebasestorage.googleapis.com/v0/b/developpement-fea24.appspot.com/o/partner%2Fune-station%2Flogo%2Fwk62203828-image-kp6bmcbb.jpg?alt=media&token=bffed6f9-5cac-42c8-a...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567316", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Issue With Configuring AppSetting Services c# I am trying to load the app settings file from my program.cs file as below: static void Main(string[] args) { Setup(); } private static IServiceProvider Setup() { var services = new ServiceCollection(); //configuration var config = Setup...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to find the exact intersection between two arrays without removing duplications in Javascript? I have two arrays of numbers arr1 and arr2. I want to find the intersection between them and each element in the result must appear as many times as it shows in Both arrays. After 2 hours of trying, I made this solutio...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567320", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: remove information using gsub I am trying to remove all the information up to the last / (the year) from this line. "'CSF0495/DE/wb/1997'" The code I run goes through but does not remove any information. This it the code I run date <- gsub("^[[:alnum:]]{1,}////", "",temp) It goes through, but does not remove any in...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: From shell save ghostscript inkcov result in a file When I launch this command from the Windows shell: gswin64.exe -o - -sDEVICE=inkcov my_file.pdf It works well but the result is displayed in a temporary Ghostscript windows (it closes once the process is finished). I would like to know how to put it: * *in stdou...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567326", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Firestore query really slow the first time I have a traditional app that stores arbitrary user data, and when the user first logs in and tries to update their data it takes a really long time, then subsequent reads and writes are really fast, I am wondering what can be done about this? Do I need to create a connect...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567328", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: OpenAI API error: "You must provide a model parameter" I am trying to POST a question to openAI API via SWIFT. It works fine, if I use the same payload via Postman, but in the Xcode-Condole I got the following response from openAI: Response data string: { "error": { "message": "you must provide a model...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567331", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Strategies for optimizing deep learning model training time and cost on AWS SageMaker I'm working on a machine learning project using AWS services, and I need to train a large deep learning model on a large dataset. The dataset consists of millions of images, and the model has several layers with a large number of p...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567332", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to detect new entities in Azure Table Storage I have an existing system which uploads entities to Azure Table Storage in response to usage of our product. I am tasked with keeping a separate analytics system up to date with a copy of all entities stored in Azure Table Storage. I have written a process to list al...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567336", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to add an O365 group to a Sharepoint Teams Site with the REST API endpoint? I have a specification that requires me to create a SharePoint Teams Site using WebTemplate STS#3, which creates a teams site with no group. The spec then asks me to link an existing Office 365 Group to it. I am creating the s...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567337", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to update data in associated tables using Sequelize? guys. I have two associated tables. "Users" and "Addresses". I'm trying to update the information in both tables. I tried using the example below, but I get an error on the updateAttributes property exports.update = (req, res) => { const id = req.params.id; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567341", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problem randering recursive tree shape in p5.js I have the below tree design rendered in a layers array. The code is working perfectly fine until I move it to another code. It is a game designed in p5.js. The code is long and contains shapes like mountains, trees, clouds, etc ... Below is the code of the tree: let b...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567343", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Notification custom sound not work when I read it from data folder I saved user selected music to data folder of my app but when I want to set that file with notification sound, notification sound not playing. This is my channel code : private fun createNotificationChannel(reminder : Reminder) { if (Build.VERSIO...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Counts of each element in an array (javascript) I'm looking for an elegant (Javascript) way to reduce an array of elements, say ['a', 'b', 'c', 'd', 'a', 'c'] into an object of the form { 2: ['a', 'c'], 1: ['b', 'd'], } i.e. that where the key is the number of occurences and the value is an array containing all...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: REACT - Avoid re-rendering page on back browser button I have a catalog page that shows a lot of products, once the user click one of the product that he possibly selected from the bottom, let say product number 1000, he goes to another page, check stuff etc... AND when he returned to the catalog page using the back...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567349", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to make closure's return value be outlive after top level function returns? I am using the ilhook library in my current project. It requires an address to hook and a function pointer to be called. My goal is to replace eax with the string pointer composed in Rust code. To accomplish this, I have split the module...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567352", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to creat translate function in opengl? I have this code right here which makes a pyramid 3d. Also it displays a scale and rotation on x,y,z. My main problem is the translation without using the gltranslate() ,i need to creat a function . For example i want to walking in y from -180 to 180 coordinates and doing r...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567353", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to know the length of the array in assembly? Here is a program that assumes that there is an array of characters starting from address zero relative to the data segment and whose members are (from left to right): ABCDEVGTYO The program checks if the elements of the array are different from each other. If so, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Micronaut HttpServerFilter: why is the request body is empty? I am trying to log the request body in an HttpServerFilter, but it seems like it is always empty: Does anybody know why? Currently running Micronaut 3.8.5. Thanks, Alessandro. I tried executing both POST, PUT, GET & DELETE requests, but the same happens....
{ "language": "en", "url": "https://stackoverflow.com/questions/75567357", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: (Closed) How to plot variations between dates with ggplot in r Date Water stock (Liters/m²) 2022-07-20 121.45 2022-07-22 116.05 2022-07-26 109.30 2022-07-27 107.10 2022-08-03 99.35 2022-08-10 92.75 2022-08-25 89.50 2022-08-31 87.50 2022-09-07 87.15 I have this dataframe and I want to plot...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567359", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error build u-boot with Openssl (can not find Openssl function body) I try to build u-boot (git clone https://source.denx.de/u-boot/u-boot.git) First make .config for Beaglebone - it`s ok: make am335x_boneblack_vboot_defconfig I had build Openssl by script export INSTALL_DIR=/home/user/opensslArm export ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567362", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: NetworkError during angular prerendering I have a very small and simple website project where I am currently trying to add prerendering. Whats weird is that the last output in the console I get is this: What is that supposed to mean? First theres an error without any information about what the error might be and th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567364", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does seaborn change the order of legend handles when the data is a list of nd arrays? When I plot a histogram with multiple data columns, the legend is displayed correctly when the data is given as pandas data frame but it seems that the order of the legend handles gets flipped when the data is given as a list o...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567366", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does my Unity ECS simulation move all objects to the same position? I am trying to learn the Unity Dots / ECS system, and am running into a really incomprehensible issue that has me completely stuck. I am trying to build a life simulation that has a collection of cells spawn and move around. But I haven't even g...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567367", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Element not clickable when using routerLink directive I have <a routerLink="login">login</a>, but it is rendered as plain text, just like if I used <span>login</span>. I'm certain, that there is no mistake in my routing, since if I added a button <button (click)="onClick()">navigate</button> and the handler, constr...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I cannot connect to my local MySQL server from the MySQL workbench The following is the error I get whenever I try to connect to my local MySQL server as the root user (via the workbench): Your connection attempt failed for user 'root' to the MySQL server at 127.0.0.1:3306: Access denied for user 'root'@'localhost'...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567371", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can't add new key to dictionary This has been asked before and all the answers say to use the syntax: dict["key1"] = "Value1" dict["key2"] = "Value2" And this almost always works for me, but right now it's not working, and I don't know why. My code: def logstats(logs): errors = {} logs2 = [] for log in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567372", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: How to know the accurate dimensions of an image if the width and height is match_parent? Let me explain the following example: If I had an ImageView that had width and height = (50 x 50)dp, the dimension for the mdpi density (the baseline density as dp=px) would be (50x50)px. Okay, but what if the width and height o...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567373", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: GKE Global external proxy LB backend services quota limit increase We have a GKE cluster with one node, we have one load balancer and one ingress to configure 45 rules for our hosts, our developments are microservices and microfrontends, so we need more than 50 Global external proxy LB backend services. Quota incre...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567375", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Turn server doesn't give any ice candidates behind NGINX when requested from a firefox browser I am trying to add NGINX infront of my TURN server, I am using the coturn package. My NGINX conf looks like this. stream { upstream turn { server 127.0.0.1:5349; } server { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can anyone explain the meaning of these 2 statements assert.equal(null, err); const db = client.db(dbName); I was learning to connect MongoDB using native driver (NodeJs) and came across following peice of code const MongoClient = require('mongodb').MongoClient; const assert = require('assert'); const URL = 'mong...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: How to show date on bottomTitle in fl_chart So I'm having a hard time figuring out how to show the date I'm getting from my PHP Script into FlChart. The data I get from my PHP Script looks like this, so basically what this means is that I get an average value on the day it was measured on. [ { "Datum": "Sun", ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to batch rename a fasta file from the full Genbank details to just organism name? I got this data from batch entrez, and the format is: >OM719994.1 Isoetes dixitii isolate EL136 internal transcribed spacer 1, partial sequence; 5.8S ribosomal RNA gene, complete sequence; and internal transcribed spacer 2, partial...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567384", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to combine results of Python unittests after running them in isolation from command line? This situation happens when running IsolatedAsyncioTestCases separately in isolation. I have to currently write, execute and check result of each separate command to run each async test case. I want to replicate ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567387", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: (Unity Help) How can I get my bullet object to automatically move in a direction after a button input? (Unity Help) How can I get my bullet object to automatically move in a direction after a button input? I have some c# code already set up, it just won't move by itself. (Excuse my messy code) using System.Collectio...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567388", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Paddy plant disease detection could anyone help me write a Matlab code based on deeplearning and image processing inorder to detect diseases in paddy plant, ?? That is , I'm trying to write a code to detect paddy disease earlier from their leaves, I have a dataset, but I am not familiar in the coding region, so if a...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Excel TEXTJOIN Multiple Categories with Results in a Single Column I am looking for an Excel 365 formula to join data together by multiple categories with results in a single column. Please see my example data and results. I would be grateful for any help that can be provided. I had attempted to modify one of the f...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567392", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Trying to find human names in a file using ntlk I'd like to extract human names from a text file. I'm getting a blank line as output for some reason. Here is my code: import nltk import re nltk.download('names') nltk.download('punkt') from nltk.corpus import names # Create a list of male and female names from the n...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567394", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: OpenStack multinode deployment - Networking configuration I was going through the Openstack installation guide for making a private cloud. I came across the Networking configuration required for communication between different nodes. Actually, I have 2 nodes with me connected to the internet having IP xxx.xxx.x.65 a...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567395", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Exporting big query table to GCS to transfer data to a new table I need to move 20 million records (approx. 10GB) from an unpartitioned big query table to a new partitioned table. The approach is to export the original table to a GCS bucket in JSON format, using wildcard uris. I get 304 json files (approx 21GB) of d...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567401", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: fluent-ffmpeg is having trouble setting creation_time (metadata) for mp4 video So, basically, I have 2000 photos/videos that are, incorrectly, saved with random creation dates, and I wish to try and organize them. And, the solution I found was: getting the correct time through their name (they are already all named ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567408", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to i get a random image off a website using js I'm coding a website to help users identify rocks and minerals. What I'd like to do is have a user click a button, and there will be a random image from https://www.mindat.org/gm/4085 and a lot of other links. Then, they will type their answer in, and they can guess...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567410", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How can I represent comma as superscript or subscript in python for the ax.text option of matplotlib? How can represent a comma as superscript or subscript in the ax.text option of matplotlib? For example I want to represent 2,0B or B2,0 for example. Thanks in advance, Lazaro I tried '\u00B2\u2E34\u2070' for the sup...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567411", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why the built flutter app doesn't show a content? I have build a flutter application using flutter build web and it makes an html with some extra files. The problem is that opening index.html file shows nothing but a white empty screen ... Update: As dear Yeasin stated, I needed to upload the file on a server/host. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567416", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to correctly apply css :has() pseudo class to parent style? :has() does not style specific parent element in Firefox. Working without :has(): aside { background-color: purple; } <aside class="header-widget-area widget-area site-header-focus-item header-widget-area-inner" data-section="sidebar-widgets-header...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567421", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: When do I need to run update-snapshot in blueprint development I'm developing a new blueprint for internal teams as a kickstarter for common requirements. I'm attempting to put this blueprint on a pipeline in GitLab—not to be confused with GitHub. Should the pipeline call npm run update-snapshots at some point? Shou...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567423", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I am struggling to save data into postgreSql table using typeORM and Nestjs with one to many relationship I have 2 entities i.e Customer, Orders with one to many relationship. A customer can have multiple orders and an order can be owned by only one customer. I am creating an api to create order that is a POST api. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567424", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to describe type of the object field with its key name and value type? The following code shows the problem: interface IHuman { name: string, carModel: "Toyota" | "Mazda" | "Nissan", age: number } type TInnerField = {filterField: keyof IHuman, valueThisField: IHuman[keyof IHuman]} // => i...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: cpu bound task switches threads while executing NodeJS my question concerns cpu bound, synchronous tasks in node without using worker threads. I have this basic HTTP server: const http = require("http"); const fs = require("fs"); function heavy() { let counter = 0; for (let i = 0; i < 20_000_000_000; i++) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567428", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I analyze a C# project to find classes implementing a certain interface and then extract more info on those classes? I have a very big corporate C# project that contains a lot of business logic and I want to analyze it and catalogue the general architecture. Thankfully it uses interfaces heavily so I can use...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567433", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Screen orientation = "portrait" works on most devices but not on OnePlus 11 device with OxygenOS There are a lot questions about screen orientation. This one is a specific question for OxygenOS (on f.i. a OnePlus 11). Using: android:screenOrientation="portrait" makes that rotation of the screen doesn't change the l...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567434", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Best Strategy to Scale JAVA apps in Kubernetes So In our organization we use GKE(GCP) to configure and deploy everything. Most of our apps are java based apps. Hence by defining normal HPA, we face 2 issues. * *Say we scale up when we reach 70% of the total capacity for that app. Many times, the time delay provide...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567435", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Room generic TypeConverter If someone can, please explain why this TypeConverter works: import androidx.room.TypeConverter import com.google.gson.Gson import com.google.gson.reflect.TypeToken abstract class SetConverter <T>{ private val gson = Gson() private val setType = object: TypeToken<Set<T>>(){}.type ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Laravel 9 access .env var in blade I have created a new .env variable: ALLOW_REGISTER=false I try to access it in blade like this: <script> let ALLOW_REGISTER = "{{ config('app.allow_register') }}"; let ALLOW_REGISTER = "{{ env('ALLOW_REGISTER') }}"; </script> It is empty. I tried adding th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567441", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to be NOTIFICATION by changing the contents of the google sheets page, in a Google extension? How to be NOTIFICATION by changing the contents of the google sheets page, in a Google extension? I know, it is a complicated and difficult question. I do this for the school where I work. I am the deputy of the conserv...
{ "language": "en", "url": "https://stackoverflow.com/questions/75567442", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }