text
string
meta
dict
Q: MYSQL Delete multiple records from different tables There are three tables: select * from join_user_and_role_users; +---------+---------------+ | user_id | role_users_id | +---------+---------------+ | 1 | 1 | | 6 | 1 | | 7 | 1 | |...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564538", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Finding thresholds to maximize TPR with an ensemble of classifiers while satisfying FPR constraint I have two classifiers that each gives me the probability that some input is bad (higher scores mean input is more likely to be bad). I have scored lists of 100 known good and 100 known bad inputs against these classif...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564541", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Pip install fails with SSLCertVerificationError [SSL: CERTIFICATE_VERIFY_FAILED] (_ssl.c:997) When installing any package with pip it fails with the error: WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564545", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cannot connect to Azure SQL from Azure functions I am trying to send some data from an Azure function to an Azure SQL DB, it seems that the function's underlying linux image does not have PYODBC driver 18. I am using a managed identity to connect and it worked fine earlier on a linux function. conn_string = f"Driver...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564548", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cross sum from a number but cross sum should total to one digit I want to get cross sum of numbers rounding to one digit. For example 789 = 24 but I want to get 6 from the first time. Sub quersumme() Dim a As Integer Dim ln As Integer Dim mystring As Integer On Error Resume Next mystring = Cells(1, 1).Value a = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564552", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Arduino Sketch On Attiny13A I made a school assignment using Attiny13A. The circuit schematic is as follows: (https://i.stack.imgur.com/qfiOB.png) So I wrote an arduino sketch for attiny like this: const uint8_t button1 = 2; const uint8_t button2 = 3; uint8_t buttonState1 = 0; uint8_t buttonState2 = 0; uint8_t l...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564553", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: SwiftUI - Fit X Circles of varying size (Packed Bubble Chart) For each date category, there may be one or more categories, and for each category, there may be one or more financial transactions. These categories are represented in a circle form, similar to a bubble chart. However, I am experiencing issues with the C...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564554", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Azure data factory, need to copy data between two azure sql databases, And i need to get the identity column after inserting and update it back The problem is after each row is inserted I need to store the identity and update again it in the source. How is it possible in ADF, in ssms we can use identity_insert? in f...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564559", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I want to introduce remaining try in c++ I want to enter how many attempts are left with the while function. like: Wrong pin, remaining attemps 3 .Wrong pin, remaining attemps 2..... no remaining attemps, please try again later. int pin = 0;int tries = 0; std::cout << "BANK OF CODECADEMY\n"; std::cout << "Enter y...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564560", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: Error: "Boolean array expected for the condition, not float64" during StratifiedK-fold i'm trying to use the stratifid k- fold for cross validation on my dataset but there is the error "Boolean array expected for the condition, not float64" (in the heading code below). Does anyone know the reason? This is the code: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564564", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why is bloom filter useful? I understand the basic guarantees of a bloom filter data structure. Guarantees: * *A Negative result is guaranteed to be true. *A Positive result has a probability, known as 'false positive probability', that it is a false Positive. Let's take the usecase of checking if a user has 'li...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564568", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SwiftUI: I want to reduce the spacing between the sections in this list The goal is to have the two sections in the list separate, but closer together, nearly touching; about a 16px gap. The design of the default list is what is wanted for the design. I have tried using .listRowInsets(top: , .leading: , .bottom: , ....
{ "language": "en", "url": "https://stackoverflow.com/questions/75564571", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to isolate a function for printing(using esc_pos_printer) in flutter? So I wanted to make a background thread for my function for printing since the printer was not cutting off the paper after one billing and I had to click on the button again and again to get all the bill out. Below is my code for printing func...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android Firebase: cannot resolve method in firebaseAuth My Android Studio project was working fine until I updated a plugin accidentally in a pop-up suggestion. After that "Firebase Auth" methods are not working. For example: fAuth = FirebaseAuth.getInstance(); fUser = fAuth.getCurrentUser(); I get the error "canno...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564573", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Cannot evaluate the performance and not showing accuracy of Fake news detection using GAN(Generative adversarial network) model I have trained a Fake news detection model using GAN but when i wantsto evaluate its performance on 20% training data and find its accuracy by this code `# Generate fake samples using the t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564576", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to update AWS Athena with the latest file in S3 using Glue Crawler? I use AWS Glue Crawler to insert data to Athena from S3 Data Source. Initially, I have a JSON file in my S3 Data Source as shown in the below diagram. The content of this "quizstatus1.json" JSON file is { "id" : 50, "name":"John", "quiz_status"...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564578", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: javascript checking input value with dynamic table row value First of all, English is not my native language, so I am not really able to search for the starting point or clues. Secondly, what I am trying to achieve is javascript that will check whether the input by the user is equal to the value in a table that is p...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564579", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Correlation coefficient for any given matrix in MS SQL Server Suppose I got a matrix that looks like this: WITH cte AS ( SELECT * FROM ( values (1, 4, 10), (2, 8, 20), (3, -2, 50) as dummy (a,b,c) ) I'm trying to come up with a solution that would allow me to calculate correlation ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564580", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to use swagger via attributes I use Swagger for Laravel 9. My code not generation Swagger via php artisan l5-swagger:generation I building attributes for Body, my code: #[OA\Post( path: 'api/login', requestBody: new OA\RequestBody( ref: null, description: "Write data for a...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564581", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Javascript draw patterns const drawPattern = (X) => { const grid = Array.from({ length: X }, () => Array.from({ length: X }, () => ' ')); const middle = Math.floor(X / 2); let oLen = middle; for (let i = 0; i < X; i++) { const o = Array.from({ length: oLen }, () => 'o'); const x = Array.from({ leng...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564583", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to make custom style folding comment in vs.code I work in typescript, using the "vs code" editor. I want to group similar functions in // #region myFunctions commentary scope. It's an good future, but, when I collapse this, it's the risk of deleting it accidentally. How to custom styling for this approach. how ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564584", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Official docker images with no tag. What they are then? I know what tags like buster and bullseye mean, but what if there's no tag to identify the OS? For instance, the official Python image on Docker Hub has python:latest and python:slim. How to understand what operating system (Ubuntu, Debian, Windows 10, Windows ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564585", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: React apollo client authentication token stored in a cookie I am new to React and Apollo Client and want to develop a secure authentication based on a token. The back end is built with Laravel. Each time a user logs in, then a bearer token is sent. I managed to store the token in a react cookie. There are some scena...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564587", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to remove the white margin at the top of the window in winform? I want to remove the titlebar of winform,like electron frameless window. By adding the following code, the titlebar is removed, but there is a blank bar at the top of the window. How can I remove this blank bar? private void InitializeComponent(){ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564590", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to add a href link to an event I want to add a link to the event that takes to a detail page. something like /event_details.php?id=xxx. How to pass the event 'id' and where to build the href link? A: You can put the URL ready-made into the event's url property when you give it to fullCalendar. As the event pars...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564593", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: is there a way to enhance a lot a STL file with GMSH in python My question is quite simple but I had difficulties to find informations about that. Is there a way to enhance a lot a STL file with GMSH in python ? for exemple, is it possible to go from an STL file (where we can see the STL file/3D object on this pictu...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564595", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MySQL: ERROR 1292 (22007): Truncated incorrect DOUBLE value: 'col1', computed virtual column insert I have this table: create table TableName5 ( col1 varchar(200), col2 varchar(200), col3 varchar(200) generated always as ('col1' + 'col2') stored ); The col3 is supposed to be a computed column - the valu...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564601", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Could you please look at the null error of sending the Java spring boot email? Creating an email source with a spring boot! naver is a Korean portal, but there is no difference between Google and mail delivery. I finished setting up naver mail, and I matched it neatly with my port, my mail, and my password. I have e...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564607", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: My C program for a basic clock is not fully running. Are there any adjustments I need to make? Below is my code and output. I have tried to debug it several times but still can't get it to fully run. Any ideas on how I might make my code fully run? #include <stdio.h> #include <windows.h> int main() { int h, m, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564609", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why can't ajax request be executed? function search(keywords) { $.get(`http://localhost:3000/search?keywords=${keywords}`, function (data, status) { console.log(data); $('.searchlist').append( ` <div class="songitem" data-songid="${data.result.songs[0].id}" data-albumimg="...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564610", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I fix a default error on my switch statement? So, I have to make a program that shows a menu of a bank, with several options for the user to input. * *For an input G, the user enters a deposit, which is stored inside an array. *For an input S, it displays the sum of all deposits. *For D, it displays all d...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564611", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why does this query return data I didn't ask for? SELECT *, COUNT(*) AS total_unfulfilled FROM clients INNER JOIN orders ON clients.id = orders.client WHERE clients.active = 1 AND orders.verified = 0 GROUP BY clients.id ORDER BY total_unfulfilled DESC I've run the above query as you see it and also using alias...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564619", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-5" }
Q: Netbeans & phpunit, how to set the php version per project when running phpunit in Netbeans it always uses the default php version. Is it possible to run phpunit in say Project A with php7.4 and Project B with php8.1?
{ "language": "en", "url": "https://stackoverflow.com/questions/75564621", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problem in reading multiple images and processing on them (JAVASCRIPT) I am using a input tag to get multiple image files uploaded and then I have to do some processing on them by calling a function for each image file. I am able to upload and get multiple image files in an array, but the problem is that file reader...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Installed @element-plus/icons-vue through npm, but WebStorm still prompts me that I cannot parse the file 'icons-vue' I installed @element-plus/icons-vue through npm, and I can_ Modules found. This is my usage: import {User, Loading} from "@element-plus/icons-vue" But WebStorm still prompts me that I cannot parse t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564623", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Svelte and Tailwind. Popout navbar not hiding table header Using Sveltekit and Tailwind CSS I have a popout from a hamburger menu but cannot figure out how to hide the table header. Note from the screen shot below that the table data gets hidden but not the header. I've tried Google but am not sure how best to phra...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564631", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Not able to limit the no.of records retrieved from database <?php include_once("Colour_farmer_Backend/cf_connect.php"); $cat_id = isset($_REQUEST['cat_id'])?$_REQUEST['cat_id']:''; $str_images ="select * from cf_images"; if ($cat_id!='') $str_images.="where cat_id=".$cat_id; $records_images=mysqli_que...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564634", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How can I return a query result vertically If I use the following UNION queries below I will get the result in several rows... i.e. vertically: SELECT "Username" AS "Attribute", username AS "Value" FROM users WHERE id = 123 UNION SELECT "Email" AS "Attribute", email AS "Value" FROM users WHERE id = 123 UN...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564635", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error while loading csv data via user stage (internal sage) into a snowflake table I get the below error when I'm trying to load the data from the user stage into a snowflake table. File '@~/vehicles.csv.gz', line 9, character 31 Row 9, column "VEHICLE"["CATEGORY":4] If you would like to continue loading when an er...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564637", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Issue installing node modules in react app Recently moved all my files from my old Mac 2015 to a new module with a M1 Chip. Been wrecking my brain trying to get projects up and running. This one will not install the packages. Anyone know any solutions, seen this has been a problem with others but have not found a so...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564641", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Scrapy specify default shell for `scrapy shell` According to its docs, Scrapy will use ipython if it has been installed in the user's system. Is it possible to have ipython installed but still direct Scrapy to use the default python shell by specifying the shell field in scrapy.cfg? Currently, no matter what I speci...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564642", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: React d3-org-Chart -Adding Horizontal and Vertical scroll bar on d3-org-chart I am using d3-org-chart to show an organizational structure. Since I set the "compact" option to false, the layout will be displayed horizontally. I want to add scroll bars so that when the nodes are expanded, I can use them to view all of...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564644", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: \newcommand to change language and textcolor I try to put the command of changing language and textcolor as in my MWE in one command. I have a long text in Russian. Main language is French (translations and comments). The paragraphs - sometimes two of them - are translated into French with some comments. That means,...
{ "language": "ru", "url": "https://stackoverflow.com/questions/75564645", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to call block of html code without rewrite it using jQuery * *I have 2 common html div (common List , common form) *I have a bootstrap accordion. I want to show them in four different accordion menu, calling them from common place. not rewriting them in each accordion panel body. *how can I achieve it using ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564648", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why are images crashing when deployed on Vercel in React App? The images that I import and use in my react app crashes when deployed, on Vercel. I am importing images from "Images" folder in src folder giving it relative path like this: import upload from '../../../images/upload.svg'; And using it in JSX like this...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564651", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Exception in thread "main" java.sql.SQLSyntaxErrorException: Table 'busres.tablename1' doesn't exist sql_code java_code error plz help to resolve this
{ "language": "en", "url": "https://stackoverflow.com/questions/75564653", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Intellij: Is there any way to make navigating to the implementation of a symbol show up in the next pane, like in VS Code? In VSCode (just like in Intellij), Cmd+Click on a symbol jumps to its definition/implementation, but Cmd+Alt+Click does the same except it shows the content in the next pane, leaving the current...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564655", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Microsoft Editor's  object replacement character I am using Microsoft Editor feature (Windows 11) a lot - I really depend on it, and I find all its features equally useful (Spelling Suggestions, Grammar Suggestions), but I find especially useful to me suggestions regarding spacing (this falls under Grammar Suggesti...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564656", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I was in the master branch, but after checking out a previous commit, I find I'm in a detached commit, not in the master branch. What is the case? This happens often in my work recently. For example, I was in the master branch, and I want to go back to a specific commit that I see from the 'git log' command. After I...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564657", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: When i click phone button it goes to the app first page not the last one in flutter There are multiple screens in my app but when I click the phone back button it goes to the first page not the last one in the stack. Will pop is not working @overrideWidget build(BuildContext context) { // double _width = MediaQuer...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564662", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: not able to execute this command on my mac source /setupvars.sh \zsh. it always shows this error My mac is not running the following command in terminal source </Users/beast/openvino_env/bin>/setupvars.sh It shows the folowing error \zsh: read-only file system: /setupvars.sh I am trying to run the github repo https:...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564663", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Influxdb with pivot and map function I have a Shelly Em3 writing the power values of 3 phases into a influxdb. Values are there, I can read them successfully. I also got the pivot and map function running to do the calculation of the total for me. I am not able show the four values in a nice graph. Would please some...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564666", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Beta-Dollar Neutral Portfolio Construction Does any one can explain what is the Beta-Dollar Neutral Portfolio Construction? Especially the interpretation of the maximization problem below in terms of Beta-Dollar Neutral Portfolio Construction? what is the interpretation of the solution, x, to this problem? or introd...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564667", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android studio mqtt websocket I want to connect with mqtt websocket to broker but I couldn't. It can connect with tcp protocol but I couldn't connect with ws protocol. I also want to connect to the broker in the mqtt and ws protocols that I made in the tcp protocol. ... if(radioGroup2.getCheckedRadioButtonId()==R.i...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564668", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to set the connection string for DbProviderFactory connections? I am trying to use my default connection string for connections but getting: Access denied for user ''@'172.18.0.1' No idea what host that is, I've never declared it. Code: DbProviderFactories.RegisterFactory("System.Data.MySql", MySqlConnectorFacto...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564670", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Trying to clean up code and add 2 features Here is a default setup of my page below first question, is there a cleaner way of doing what my javascript is doing, meaning can the code be cleaned up and minimized or is it best the way its wrote. second question, the right sidebar opens and closes like i want it to, but...
{ "language": "la", "url": "https://stackoverflow.com/questions/75564671", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Defining a practical architecture to make videos available through authentication only I have a specific problem where I have to deliver videos from an online course for authenticated users only, but I have low resources in money. I can't make them available in courses marketplaces as Udemy because by contract they ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564672", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Add leading zeros to variable in list I tried to do some experimenting with variables in lists. Some of numbers wasn't same length as original input. For example: Original: [012, 125, 032] Result: [12, 125, 32] How can I add leading zeros to equalise to original values? I Have tried zfill and format but I don't know...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564674", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Opencv show height on the image # Find the contour with the largest area, which is assumed to be the plume contours, _ = cv2.findContours(thresholded_image, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE) plume_contour = max(contours, key=cv2.contourArea) # Calculate the bounding box of the plume contour ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564677", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: getting batch request from gmail api messageList we are sending message ids function getGmailMessagesBatch(oauth2Client, messagesList) { var batchBody = \ [\]; var indReq = ''; if (oauth2Client && oauth2Client.credentials && oauth2Client.credentials.access_token) { /*Generating the request body f...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564678", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Error occurs when calling show method in spark dataset? I am reading data from hive using spring boot java and apache spark 3.2.1 and an error occurs when executing the show method. Please help org.apache.spark.scheduler.DAGScheduler : ResultStage 7 (show at SampleHiveController.java:62) failed in 7,461 s due to Jo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564680", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to load data correctly in Jupyter Notebook - Not sure what the issue is I am trying to load a csv dataset using Pandas but I cannot seem to separate the columns and data in order to start working with the data. I have tried various methods but still cannot get to load it correctly Below is my code: import mat...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564681", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does my PHP contact form not Working? I got a problem in my contact form and a dont know were is it when I submit the details I got this error: This page isn’t working If the problem continues, contact the site owner. HTTP ERROR 405 The form was working before the problem. I will provide my code and I hope tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Remove default browser scrollbar and add a new scrollbar with transparent background I'm working on my website using WordPress and needed to add a custom scrollbar and increase the thumb width on hover like this example: bit.ly/3IPxa1X. But I can't achieve that since the scrollbar width is already set to 10px, and w...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564687", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In Spring Boot 3.0.3, unable to create beans of class annotated by @Component annotation In pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.a...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: R - Turning table into dataframe while keeping first column Given original dataframe df of form Date Cat <POSIXct> <chr> 1 2019-10-3 A 2 2019-10-3 A 3 2019-10-3 B 4 2019-10-4 A 5 2019-10-4 C 6 2019-10-4 C 7 2019-10-4 C 8 2019-10-5 B 9 2019-10-5 C I carry out the operation d...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564691", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Multithreaded TCP server quit when one of the client connection end I have to do a multithreaded TCP server class that launch a server that can handle up to 4 client at the time but when a client disconnect, the server quit without any . i have a start function that set all up and launch a new thread with the "serve...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: strlen from C to assembly, why do processor make these steps? I was studying the assembly code of this C function: int stringlen(char *s1, char *s2) { int result = 0; int i = 0; while (s1[i] != 0) { result++; i++; } int j = 0; while (s2[j] != 0) { result++; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564693", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why this solution to codewars challenge is taking so much time that it gets 'Execution Timed Out'? I'm new to programming in python so I don't know why this solution is not effective Code: def check(seq, elem): i=0 b=0 while i<len(seq): while (b==0): if (seq[i]==elem): ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564695", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: My connectors for my organization chart are not working I really don't know how to add connectors to this organization chart I have created. I'm so confused. Maybe you guys can help. Just tell me what to do and I will do the rest. :) Here is my code: Organization Chart My reference UI: Referrence UI I tried to add c...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564697", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Misunderstanding or usage of BaseMultiResolutionImage: upscaled images are "scratchy" I have a small app that displays a random image. I've noticed that the image became blurry on Windows desktops with up-scaled text size from this settings: So, I read about using BaseMultiResolutionImage and tried implementing tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564701", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Airflow : xcom value from sshoperator not decoding to string I have an Airflow task, which runs one ksh script in sshoperator and I am sending one value from the script, which I want to use in next task. But as my airflow enable_xcom_pickling is False, I am getting the xcom value in base64 encoded as per the source ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564703", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: INSERT multiple rows with Sequelize Raw query replacements in MySQL I want to insert multiple rows of data with sequelize.query but it only inserts the first row. Code: connection.query( 'INSERT INTO product (a, b) VALUES (?);', [['a', 'b'], ['c', 'd']], (...args) => console.log(args) ); What can be the...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564705", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the best practice solution to embed videos from different sources in a ReactNative app? I'm currently trying to implement videos from a number of sources into a learning app built with Expo and ReactNative. I want to include video sources from: * *YouTube *Vimeo *Microsoft Stream *Custom .mp4 link I ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564711", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: VBA Worsheet_Change Function in a worksheet that is created by code I have a functioning code to calculate the value of a cell automatically upon entering a value in another cell - Worksheet_Change() The problem is that the sheet I want to use it in is automatically generated and I do not seem to figure out how to c...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564713", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Howto define icon for C# fcm push notification I send a notification like this FirebaseApp.Create(new AppOptions() { Credential = GoogleCredential.FromFile("private_key.json") }); // This registration token comes from the client FCM SDKs. var registrat...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564714", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Angular AuthGuard: CanActivate and CanActivateChild are deprecated. How to replace them? My Angular app includes a simple AuthGuard as shown below and there has never been a problem with it. Recently, I upgraded my Angular version from 15.1.4 to 15.2.0 and since then, my IDE indicates that both CanActivate and CanAc...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564717", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Method Not Allowed (GET): /cart/add/1/ I have a problem with allow method GET in my project, I find out problem but nothing working. I try everything, but nothing working, the messages in my postman is {Method Not Allowed (GET): /cart/add/1/} Please help me how to solve this problem? cart/view @require_POST def cart...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564718", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Why generic types are not correctly exported I'm trying to create a typescript package for an application. This package contains two Vue components (created in Typescript) and some classes/types. I don't have any problem when I export my non-generic class and types. I'm able to find them in my application after the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564719", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Looker visualization mysql issue I connect to mysql server to visualize data into looker. I have column which has dates in text format. The table is as follow:- property_id year_month 2 2021_01 33 2021_01 356 2021_03 32 2022_04 I would like to convert this year month column to date, so that I can a...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564720", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Trying to load different format images with the Picture HTML tag I'm using Vue to generate a dynamic picture component which results in the following code <picture style="display: contents;"> <source type="image/avif" sizes="700px" srcset="https://urlStorage/IRememberWa...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564721", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Printing routing table I am unable to print routing table in contiki cooja. I am able to print neighbour's table information but unable to get clue for the routing table.
{ "language": "en", "url": "https://stackoverflow.com/questions/75564723", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to make the arguments of a function in the termina selectable with a tab button (with zsh) I want to use the tab button in the terminal (zsh in my case) to select the argument available for a function in a terminal For example, in the following example, I want that after having compiled the program with gcc main...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564724", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ALTER TABLE ADD CONSTRAINT - Duplicate Key error Mysql Version: 10.5.12-MariaDB-1:10.5.12+maria~focal I would like to add a check to my mysql query to check if a foreign key exists. The existing query: ALTER TABLE audit_log ADD CONSTRAINT FK_F6E1C0F5444881A6 FOREIGN KEY (game_integration_id) REFERENCES game_integra...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564726", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: woocommerce bookings additional booking page to single product page I'm working with elementor (pro). I'd like to create a (different) single product page with booking form additonal to a single product page. So customer ends on a (dynamic) descriptive single product page with a booking button and by clicking on the...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564732", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Using the file path following askopenfilename using tkinter What I'm trying to do: * *User chooses two files using the two 'open file' buttons *File paths of chosen files are displayed so the user can review and change if need be *User presses a third button to run other code that fetches the files and analyses ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564733", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Solving constrained least-squares problem in R with quadprog I'm trying to solve the following optimization problem : I'm using R's quadprog library, here's my code : library(quadprog) # Objective function D <- 21 mu <- c(Si = 0.264586858634721, Ti = 0.00499189368685614, Al = 0.100673272036359, Fe = 0.050...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564735", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Wrong iteration in sql requests with python and postgresql I have got two tables 'users' and 'seen_users'. table 'users' contains 4 varchar rows and serial id: CREATE TABLE IF NOT EXISTS users( id serial, first_name varchar(50) NOT NULL, last_name varchar(25) NOT NULL, vk_id varchar(20...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564736", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: why is my ggplot showing in black and white even though i have specified the colours for the lines? I am trying to plot my ggplot but the colors are not following as it coded. This is my data frame: All_Flights_Combined_TimeOfDay Year TimeOfDay Delay_Count Total_Count 2003 Midnight 9934 53321 2003 Morning ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564738", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Issue with rectangular patches using Matplotlib I am generating rectangular patches as shown below but some rectangles have different sizes even though I am using a constant dimension. I want all rectangles to be of the same size. How do I fix this? import matplotlib as mpl import matplotlib.pyplot as plt from matpl...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564739", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: NGINX proxy-pass truncate connection after 60s even with suggested config It's a few days I'm banging my head on this specific problem. I've got a server that performs an operation that takes more that 60 seconds to complete, everything works ok if I connect directly to the server but if I use nginx (v 1.22.1) after...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564740", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Accessing form.cleaned data from filter method in DFR I have a filterset based on django_filters in my DRF app that I want to extend with a method based filter: class CarFilter(filters.FilterSet): name = filters.CharFilter(field_name="name") vendor = filters.CharFilter(field_name="vendor__name") search =...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564746", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I use permessage-deflate in java.net.http.WebSoscket? I am trying to build a java.net.http.WebSocket client with compression enabled, more specifically using the permessage-deflate extension but there doesn't seem to be an option using WebSocket.Builder. I tried setting the Sec-WebSocket-Extensions: permessag...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564747", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Angular - No suitable injection token for parameter 'loadingService' of class 'LoadingInterceptor' In my Angular-15 application I am implementing ngx-spinner. Angular CLI: 15.2.0 Node: 18.14.2 Package Manager: npm 9.5.0 OS: win32 x64 Angular: 15.2.0 ... animations, cli, common, compiler, compiler-cli, core, forms ....
{ "language": "en", "url": "https://stackoverflow.com/questions/75564749", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to create virtual environment files in the project's directory i want the pipenv to create the pipfile and .lock file in my project directory . there are suggestions to export PIPENV_EVNV_IN_PROJECT=1 but i dont know where this variable is and how to export them. and can i simply copy the pipfiles to my project...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564752", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Highlight only numbers in PDF from Adobe Acrobat Reader Pro using JavaScript code Using ChatGPT I have created this code: Automated in JavaScript: `// Get the total number of pages in the document var numPages = this.numPages; // Loop through all pages in the document for (var i = 0; i < numPages; i++) { // Get the...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564756", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to have data.table directly return values of 1/0 instead of TRUE/FALSE? I'm wondering if there's a direct way for data.table in R to return values of 1/0, instead of TRUE/FALSE/NA, when testing for a condition. In the below MWE code, data.table does a correct job of returning TRUE in the "firstX" column when enc...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564761", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I get Error: Route.get() requires a callback function but got a [object Object] although I write module.exports=router; I get route.get() requires a callback function but got a a[object Object ]. When I looked for this problem people say you forget to use module.exports but I used it and I still have same problem. C...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564763", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: deploying Springboot Microservice to aws I have written a springboot microservice project and want to deploy it to aws.But i dont know which aws service i need since i have dockerize the whole project and hope that to run the same as my local. My docker-compose yml: version: '3' services: zookeeper: image: co...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564764", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Azure Devops Get package Workitem state I'm creating a package work Item using Powershell script in Azure Devops workitem and updating the same on successful completion of deployment as Completed. Question: How do i Query the package state? I tried using the below powershell, which queries the exisitng package but u...
{ "language": "en", "url": "https://stackoverflow.com/questions/75564765", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }