question_id
int64
37.6M
73.2M
input_text
stringlengths
88
52.4k
output_text
stringlengths
37
35.6k
title
stringlengths
15
150
tags
stringlengths
1
107
q_score
int64
-19
397
view_count
int64
3
879k
answer_count
int64
1
21
accepted_answer_id
int64
37.6M
73.8M
answer_id
int64
37.6M
73.8M
a_score
int64
-5
1.29k
is_accepted
bool
1 class
creation_date
stringlengths
20
24
input_text_instruct
stringlengths
251
52.6k
72,801,873
Why does case_when have two different outputs here?<p>I am failing to understand why the output is different when I use two different cases of case_when:</p> <p>Option 1:</p> <pre><code>x = 5 y = print(&quot;goodmorning&quot;) z = print(&quot;goodafternoon&quot;) q = print(&quot;goodevening&quot;) case_when(x &gt; 3 ~ ...
<p>Citing the help page (emphasis mine),</p> <blockquote> <p><em>case_when() evaluates all RHS expressions</em>, and then constructs its result by extracting the selected (via the LHS expressions) parts</p> </blockquote>
Why does case_when have two different outputs here?
r|dplyr
2
44
1
72,802,253
72,802,253
0
true
2022-06-29T13:01:39.180Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why does case_when have two different outputs here?<p>I am failing to understand why the output is different when I use two different cases of case_when:</p>...
72,801,249
Remove row from table not working in react<p>I have a table rendered from this data</p> <pre><code>const[formValues,setFormValues] = useState({ sCode:undefined, sName:undefined, mList:[{ sym:&quot;abc&quot;, minLimit:undefined, maxLimit:undefined }, { sym:&quot;xyz&quot;, minLimit:undefined, max...
<p>The issue is that you are using the mapped array index as part of the React key, i.e. <code>key={&quot;table-&quot; + index}</code>.</p> <p>When you remove a row from the middle of the array, say index 3, all the indices of the elements after shift forward, and since there is <em><strong>still</strong></em> an eleme...
Remove row from table not working in react
reactjs|react-hooks|react-hook-form|react-table
1
44
1
72,804,113
72,804,113
0
true
2022-06-29T12:13:47.367Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Remove row from table not working in react<p>I have a table rendered from this data</p> <pre><code>const[formValues,setFormValues] = useState({ sCode:undefin...
72,805,091
Adding an item to a Firestore array in a Firestore Transaction<p>I am making an app where people can sign up for events. Some events are highly popular and are fully booked within less than a second. To prevent overbooking I am trying to implement Firebase Transactions.</p> <p>In most tutorials I found people use <code...
<p>I got it working right. Thanks to @danh for pointing in the right direction.</p> <pre><code>return await FirebaseFirestore.instance.runTransaction((transaction) { return transaction.get(eventDocRef).then((eventsDoc) { if (eventsDoc.get(&quot;max attendees&quot;) &gt;= (eventsDoc .get(...
Adding an item to a Firestore array in a Firestore Transaction
flutter|firebase|dart|google-cloud-firestore
0
44
1
72,806,168
72,806,168
0
true
2022-06-29T16:48:06.513Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Adding an item to a Firestore array in a Firestore Transaction<p>I am making an app where people can sign up for events. Some events are highly popular and a...
72,806,281
How to add excel file to QTableWidget without erasing its column and data?<p>How do i load excel data to QTableWidget? I want it to appear after the last recipient data</p> <p><a href="https://i.stack.imgur.com/Ui0sY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ui0sY.png" alt="this is my columns a...
<p>As the documentation of <a href="https://doc.qt.io/qt-5/qtablewidget.html#setRowCount" rel="nofollow noreferrer"><code>setRowCount()</code></a> explains:</p> <blockquote> <p>Sets the number of rows in this table's model to rows. If this is less than rowCount(), the data in the unwanted rows is discarded.</p> </block...
How to add excel file to QTableWidget without erasing its column and data?
python|pyqt|pyqt5|pyqt6
1
44
1
72,809,813
72,809,813
0
true
2022-06-29T18:35:08.217Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to add excel file to QTableWidget without erasing its column and data?<p>How do i load excel data to QTableWidget? I want it to appear after the last rec...
72,811,474
Secure Webhook of Git Repository<p>I have a webhook in git Repository and that is connected Azure functions and I want to secure my webhook is there a way that I can do it.</p>
<p><em>In your function app <code>index.js</code> file you need to add <code>crypto-js</code> library.</em></p> <pre><code>const Crypto = require('crypto'); </code></pre> <p><em>Then copy the function keys from the function app</em></p> <p><img src="https://i.imgur.com/gV1aTRl.png" alt="enter image description here" />...
Secure Webhook of Git Repository
azure
0
44
1
72,811,736
72,811,736
0
true
2022-06-30T06:57:18.560Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Secure Webhook of Git Repository<p>I have a webhook in git Repository and that is connected Azure functions and I want to secure my webhook is there a way th...
72,786,818
constrain unity rigidbody to dynamically changing plane<p>I am making a physics based tank game, I need to keep the tracks (made up of many individual links, each with a <code>Joint</code> and a <code>Rigidbody</code>) on the guide wheels, I don't really know the best way of doing this, I want the game to be as physics...
<p>I have realised this is possible with configurable joints. Since spacial contraints are defined in local space, it should be possible to get the desired effect without too much difficulty.</p>
constrain unity rigidbody to dynamically changing plane
unity3d|game-physics|physics|physics-engine
0
44
2
72,817,977
72,817,977
0
true
2022-06-28T12:54:32.163Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: constrain unity rigidbody to dynamically changing plane<p>I am making a physics based tank game, I need to keep the tracks (made up of many individual links,...
72,818,386
Xpath: Check if node doesn't exist<p>I get the XML from my webshops API call structured much like the example below:</p> <pre><code>&lt;Customers&gt; &lt;Customer&gt; &lt;Username&gt;userOne&lt;/Username&gt; &lt;Params&gt; &lt;Param&gt; &lt;Id&gt;111&lt;/Id&gt; &lt;Name&gt;Param1...
<p>XPath <code>count(expr)</code>can be used to check the absence of a condition</p> <pre><code>Customers/Customer[count(Params/Param[Id/text()='111' and Value/text()='Param 1 is on']) = 0 and Params/Param[Id/text()='112']/Value/text()='ON']/Username/text() </code></pre> <p>So this part checks that that node does not e...
Xpath: Check if node doesn't exist
java|xml|xpath|expression
0
44
2
72,818,781
72,818,781
0
true
2022-06-30T15:27:34.403Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Xpath: Check if node doesn't exist<p>I get the XML from my webshops API call structured much like the example below:</p> <pre><code>&lt;Customers&gt; &lt;Cus...
72,806,828
Trying to use a columns value as a key to a different column for my results id like to output<p>I have two columns per event I am trying to use. Well call these <code>col1</code> and <code>UknownRandomColumnName</code> (<code>urcn</code> for short) .</p> <p>The key of <code>urcn</code> changes from event to event and i...
<p>Hey I was able to solve this issue. We know the property names of the child values inside of the object we do not know the key for. With this in mind we are able to use the <code>rex</code> method and extract the values from the _raw field.</p> <pre><code>| rex field=_raw &quot;name\&quot;:\s?\&quot;?(?&lt;new_name&...
Trying to use a columns value as a key to a different column for my results id like to output
splunk|splunk-query
1
44
1
72,820,768
72,820,768
0
true
2022-06-29T19:25:58.423Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Trying to use a columns value as a key to a different column for my results id like to output<p>I have two columns per event I am trying to use. Well call th...
72,805,285
Some of the returned value from multiple function is different from expected values<p>I have this program that basically calculates the student's midterm grade. It lets the user to input the grades for corresponding activities. Then, with the inputs from the user, it computes the average for seat works, assignments, la...
<pre><code>#include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; #define MAX_INPUT 20 #define TOTAL_ASSIGNMENTS 3 #define TOTAL_SEATWORKS 2 #define TOTAL_LAB_ACT 3 #define TOTAL_QUIZZES 2 void assignment(float *assignAverage); void seatwork(float *swAverage); void labActivity(float *labActivityAverage); void quiz(float ...
Some of the returned value from multiple function is different from expected values
arrays|c|function|error-handling
0
44
1
72,822,231
72,822,231
0
true
2022-06-29T17:03:57.163Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Some of the returned value from multiple function is different from expected values<p>I have this program that basically calculates the student's midterm gra...
72,822,453
Error coming every time I try to run my code<p>Error: The module '\?\C:\Users\ncid1\OneDrive\Desktop\Boblox\node_modules\better-sqlite3\build\Release\better_sqlite3.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 83. This version of Node.js requires NODE_MODULE_VERSION 108. Please try r...
<p>Try uninstalling the package (better-sqlite3)</p> <pre><code>npm uninstall better-sqlite3 </code></pre> <p>And then reinstall it</p> <pre><code>npm install better-sqlite3 </code></pre>
Error coming every time I try to run my code
javascript|node.js
-1
44
1
72,823,066
72,823,066
0
true
2022-06-30T21:55:46.187Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Error coming every time I try to run my code<p>Error: The module '\?\C:\Users\ncid1\OneDrive\Desktop\Boblox\node_modules\better-sqlite3\build\Release\better_...
72,801,645
recycler view hides message upward when keyboard is open / how to keep recycler View from scrolling when keyboard is on<p>I am making chat app but when I send message recycler view does not show first 2 messages because it is up I want something like whatsapp if I open keyboard recycler view is shown from start I tried...
<p>There was a problem in height of the recycler view. I saw it here: <a href="https://github.com/stfalcon-studio/ChatKit/issues/103" rel="nofollow noreferrer">https://github.com/stfalcon-studio/ChatKit/issues/103</a>. @andriizhumela said that you need to put match parent in width and height of recycler view . so now i...
recycler view hides message upward when keyboard is open / how to keep recycler View from scrolling when keyboard is on
java|android-studio|android-recyclerview
0
44
2
72,826,376
72,826,376
0
true
2022-06-29T12:43:54.387Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: recycler view hides message upward when keyboard is open / how to keep recycler View from scrolling when keyboard is on<p>I am making chat app but when I sen...
72,828,832
Forcing sidebar scroll using flexbox layout<p>I'm trying to build two column layout using flexbox css. Page should consist of header, sidebar, content area and footer.</p> <p>One of the requirement is for a page to consume whole browser window space but not overflow it. Overflow could, however, happen in separate secti...
<p>Add <code>overflow-y: auto;</code>, this will solve your problem.</p>
Forcing sidebar scroll using flexbox layout
html|css|flexbox
0
44
1
72,828,905
72,828,905
0
true
2022-07-01T11:49:37.377Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Forcing sidebar scroll using flexbox layout<p>I'm trying to build two column layout using flexbox css. Page should consist of header, sidebar, content area a...
72,827,398
MPI send and receive large data to self<p>I try to send and receive a large array to self-rank using MPI. The code works well for small arrays (array size &lt;10000) when I further increase the array size to 100000, it will deadlock. Here is my code:</p> <pre><code>#include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; #in...
<p>That's the definition of send and receive: they are blocking. The statement after the send will not execute until the send has been successfully completed.</p> <ol> <li>The safe way to solve this is using <code>MPI_Isend</code> and <code>MPI_Irecv</code>.</li> <li>The case for a small messages which don't block is a...
MPI send and receive large data to self
c++|mpi|openmpi
0
44
1
72,828,942
72,828,942
0
true
2022-07-01T09:45:29.163Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: MPI send and receive large data to self<p>I try to send and receive a large array to self-rank using MPI. The code works well for small arrays (array size &l...
72,828,928
Is there a simpler way to do this?<p>Is there a way I can loop through the cell letters instead of copy pasting and changing the cells?</p> <p>Perhaps with an array?</p> <p>I work in education, and these google sheets keep needing to be altered at my work and the following is how I have been doing it.</p> <pre><code> ...
<p>Here's a script I wrote that should work for you:</p> <pre class="lang-js prettyprint-override"><code>function setValues() { var spreadsheet = SpreadsheetApp.getActive(); var sheet = spreadsheet.getSheets()[0]; var range = sheet.getRange('B21:L22'); var rangeArray = range.getValues(); let ignoreCol = ['D...
Is there a simpler way to do this?
google-apps-script|google-sheets
0
44
2
72,829,457
72,829,457
0
true
2022-07-01T11:57:55.577Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is there a simpler way to do this?<p>Is there a way I can loop through the cell letters instead of copy pasting and changing the cells?</p> <p>Perhaps with a...
72,840,210
Pass data to custom table view header component every second<p>I have a view controller that uses table view. I created a custom header for this table (UITableViewHeaderFooterView). I need to pass data to this header component. I have a websocket and I received data every second. Everytime I received the data I need to...
<p>You can insert this code inside your update listener</p> <pre><code>if let header = tableView.headerView(forSection: 0) as? MarketPricesHeaderView { header.configure(...... } </code></pre>
Pass data to custom table view header component every second
ios|swift|uitableview|websocket
0
44
1
72,840,282
72,840,282
0
true
2022-07-02T15:20:54.153Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Pass data to custom table view header component every second<p>I have a view controller that uses table view. I created a custom header for this table (UITab...
72,840,408
Network request using redux toolkit and axios behaving weiredly<p>This is the action that i send and check the last line <code>return rejectWithValue(error.message);</code></p> <pre><code> &quot;AdminAuthorMentorAuth/login&quot;, async ({ email, password }: LoginI, { rejectWithValue }) =&gt; { try { const ...
<p>How would <code>createAsyncThunk</code> know that something you <code>return</code> should be handled as an error without you being explicit about it?</p> <p>The distinction is:</p> <ul> <li>you <code>throw</code> it: an error</li> <li>you <code>return rejectWithValue(...)</code>: an error</li> <li>you <code>return ...
Network request using redux toolkit and axios behaving weiredly
reactjs|redux|axios|redux-toolkit
0
44
1
72,840,501
72,840,501
0
true
2022-07-02T15:47:55.713Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Network request using redux toolkit and axios behaving weiredly<p>This is the action that i send and check the last line <code>return rejectWithValue(error.m...
72,840,499
Can we Use Generic Variable to Make an import with TypeScript<p>I searched a lot,for a solution to create a basic generic component. For this i need to pass throught props an Array of Objects to a functionnal Component.</p> <p>On this functionnal component i want to use dynamic values coming from Props like import MyDy...
<p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import" rel="nofollow noreferrer">Static import</a> statements cannot be used to resolve a dynamic specifier. From the linked documentation:</p> <blockquote> <p>Only single quoted and double quoted Strings are allowed.</p> </blockq...
Can we Use Generic Variable to Make an import with TypeScript
javascript|reactjs|typescript|dynamic|import
1
44
1
72,841,523
72,841,523
0
true
2022-07-02T16:00:35.140Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Can we Use Generic Variable to Make an import with TypeScript<p>I searched a lot,for a solution to create a basic generic component. For this i need to pass ...
72,844,648
laravel - ajax formdata wont show in controller<p>I have tried many different combination for AJAX Setup in order to send the formData to controller. Somehow I cannot get the form input inside my controller despite trying to return it will all type of ways. May I know what did I miss that causing me not be able to get ...
<p>After quite a bit of digging, since what I am doing is using the PATCH request, it's still not working as of now with FormData. To solve it, we need to spoof the method by appending the PATCH method to formData and our AJAX settings to be changed to POST. Then you'll receive all the request inside your controller.</...
laravel - ajax formdata wont show in controller
ajax|laravel
0
44
2
72,844,845
72,844,845
0
true
2022-07-03T07:26:26.130Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: laravel - ajax formdata wont show in controller<p>I have tried many different combination for AJAX Setup in order to send the formData to controller. Somehow...
72,844,508
create angular components from api<p>I'm looking to load components from an api I wrote in spring boot which returns HTML. I want to inject the returned HTML to component, build it and show it to user. The goal is to make something of a dynamic blog which I can edit and create posts in admin panel (CMS), there for lets...
<p>You can use Angular's web components package Angular Elements to do this. You create your components as normal, and register them as a custom element. When the tags appear in HTML e.g. via a string passed to <code>innerHTML</code>, they get rendered as components</p> <p>Good article on the process by Net Basal here<...
create angular components from api
angular
-2
44
1
72,845,341
72,845,341
0
true
2022-07-03T06:58:05.397Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: create angular components from api<p>I'm looking to load components from an api I wrote in spring boot which returns HTML. I want to inject the returned HTML...
72,842,860
ggrepel together with geom_smooth<pre><code>ggplot(gapminder::gapminder,aes(x=year,y=lifeExp,label=continent,color=continent))+ geom_line(size=.1,alpha=.2)+ guides(color=&quot;none&quot;)+ theme_minimal()+ geom_smooth(aes(color=continent),se=F,method=&quot;loess&quot;)+ ggrepel::geom_label_repel(direction = &quot;y&quo...
<p>One way you could do this is to get the last (or first etc. as desired) fitted value for each continent in a summary label data frame, then use that in <code>ggrepel</code>:</p> <pre class="lang-r prettyprint-override"><code>library(tidyverse) library(gapminder) library(ggrepel) library(broom) label_df &lt;- gapmin...
ggrepel together with geom_smooth
r|ggplot2|ggrepel
0
44
1
72,845,656
72,845,656
0
true
2022-07-02T22:38:39.533Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: ggrepel together with geom_smooth<pre><code>ggplot(gapminder::gapminder,aes(x=year,y=lifeExp,label=continent,color=continent))+ geom_line(size=.1,alpha=.2)+ ...
72,846,191
List has no attribute 'keys' when writing to CSV in Python<p>I am making a Python Script which fetches JSON from an endpoint and then writes it to a CSV, however I keep getting this error when trying to write a specific key. What should I do?</p> <p><a href="https://i.stack.imgur.com/5cVjC.png" rel="nofollow noreferrer...
<p>&quot;Results&quot; is of type <code>list</code> and not <code>dict</code>.<br /> Therefore, you can't treat it like a dictionary and invoke keys()</p> <p>I guess what you want to do is remove the '[' ']' from &quot;Results&quot; in your json file</p>
List has no attribute 'keys' when writing to CSV in Python
python|json|csv
0
44
2
72,846,216
72,846,216
0
true
2022-07-03T11:41:32.140Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: List has no attribute 'keys' when writing to CSV in Python<p>I am making a Python Script which fetches JSON from an endpoint and then writes it to a CSV, how...
72,847,369
Losing focus on input onChange React<p>What I'm trying to achieve, it's to create each input as own component. And I can't get how to fix thing when my app all the time rerendering when I'm pressing any key. I know if I'll use controlledInputs -&gt; so each input would have it own useState that would work. But the main...
<p>You need to define the <code>FormControl</code> outside of <code>ControlledInputs</code>, otherwise, React will recreate it and you lose focus as well as data.</p> <p>And you need to pass <code>value</code> and <code>handleChange</code> as props in <code>FormControl</code>.</p> <p>Here are codes you can refactor. Pl...
Losing focus on input onChange React
reactjs|jsx
0
44
2
72,847,534
72,847,534
0
true
2022-07-03T14:37:55.140Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Losing focus on input onChange React<p>What I'm trying to achieve, it's to create each input as own component. And I can't get how to fix thing when my app a...
72,846,976
The operator '[]' isn't defined for the type 'Object? Function()'. error<pre><code>import 'package:firebase_auth/firebase_auth.dart'; import 'package:flutter/material.dart'; import 'package:flash_chat/constants.dart'; import 'package:cloud_firestore/cloud_firestore.dart'; class ChatScreen extends StatefulWidget { st...
<p>You could use the &quot;get function&quot; with that name in your documentation . It works for me.</p> <p>==&gt; message.get('text')</p> <pre class="lang-dart prettyprint-override"><code> List&lt;MessgaeBubble&gt; messageBubbles = []; final messages = snapshot.data?.docs.reversed; for (var mes...
The operator '[]' isn't defined for the type 'Object? Function()'. error
flutter|firebase|dart|firebase-realtime-database|google-cloud-firestore
0
44
1
72,848,242
72,848,242
0
true
2022-07-03T13:42:45.377Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: The operator '[]' isn't defined for the type 'Object? Function()'. error<pre><code>import 'package:firebase_auth/firebase_auth.dart'; import 'package:flutter...
72,812,159
Authenticate to Google Drive services account without json file in .net<p>I want to authenticate my vb.net Winform application to access my Google drive account. It works fine if I use a json file. But I want to avoid having a plain json file lying around the file system with my private keys in it. Especially when I am...
<p>I found it out myself, or let's call it a workaround for it:</p> <p>I just took the whole text of the json file, put it into a winforms textbox and called:</p> <pre><code>credential = GoogleCredential.FromJson(txt_Credentials.Text).CreateScoped(scope) </code></pre> <p>Meh, it works ;-)</p>
Authenticate to Google Drive services account without json file in .net
json|vb.net|google-drive-api
0
44
1
72,848,614
72,848,614
0
true
2022-06-30T07:54:28.997Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Authenticate to Google Drive services account without json file in .net<p>I want to authenticate my vb.net Winform application to access my Google drive acco...
72,848,784
"Functions are not valid as a React child" during replacement react-router-dom v5 to v6<p>I tried to solve this problem in several ways without success. This Router work perfect with <strong>render</strong> but when I replace by <strong>element</strong> then the App.jsx throws me an error.</p> <p>If I delete a <strong>...
<p>The <code>Route</code> component changed significantly from <code>react-router-dom@5</code> to <code>react-router-dom@6</code>. There are no longer <code>component</code> or <code>render</code> or <code>children</code> function props, instead replaced by a single <code>element</code> prop taking a <code>ReactNode</c...
"Functions are not valid as a React child" during replacement react-router-dom v5 to v6
javascript|reactjs|react-router-dom
1
44
1
72,849,201
72,849,201
0
true
2022-07-03T18:00:01.233Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: "Functions are not valid as a React child" during replacement react-router-dom v5 to v6<p>I tried to solve this problem in several ways without success. This...
72,856,985
how to check if al <li> tag consists an <img> tag and then run code if it exists<p>I undertook a web scraping project. There was a ul tag which consisted several li tags. My task was to print the content of the li tag only if the particular li tag consisted an img tag. i'm unable to do so. Dont know whats wrong with my...
<p>You need to check if you will find a <code>&lt;img&gt;</code> in your device object:</p> <pre><code>... for device in device_list: if device.find('img'): ... </code></pre> <p>As an alternative you could select more specific to pick only these with <code>&lt;img&gt;</code> via <code>css selectors</code>:</p> <pre...
how to check if al <li> tag consists an <img> tag and then run code if it exists
python|html|if-statement|web-scraping|beautifulsoup
0
44
1
72,857,290
72,857,290
0
true
2022-07-04T12:43:54.130Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to check if al <li> tag consists an <img> tag and then run code if it exists<p>I undertook a web scraping project. There was a ul tag which consisted sev...
72,857,868
Swift Message IBM MQ Testing using Jmeter<p>IBM MQ testing I am using the code which is in Internet, only thing which I am getting stuck is how to handle message in the below given code: def producer = sess.createProducer(destination)</p> <p>def payload = &quot;your message here&quot; def msg = sess.createTextMessage(...
<p>It's not very clear what exactly you're trying to generate, try out the following syntax:</p> <pre><code>def payload = '{1:10XXUGGDD} {2:XYCGDDYY} {4:\n' + ':16R:GENL\n' + ':20C::SEME//' + System.currentTimeMillis() + '\n' + ':23G:ABCD\n' + ':98A::PREP//' + System.currentTimeMillis() ...
Swift Message IBM MQ Testing using Jmeter
jmeter
0
44
1
72,858,371
72,858,371
0
true
2022-07-04T13:53:04.897Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Swift Message IBM MQ Testing using Jmeter<p>IBM MQ testing I am using the code which is in Internet, only thing which I am getting stuck is how to handle me...
72,858,232
Python: Import comma separated data from a TXT file<p>I built a data logger with a Raspberry Pi Pico. The Data Logger saves the temperature every six minutes in the TXT file. I am currently failing to import the data from the TXT file into Python.</p> <p>The data looks like this: <code>1,20.5,2,21.0,3,21.0,4,21.0,5,21....
<p>Does this help?</p> <pre><code>import pandas data = dict() with open(&quot;data.txt&quot;) as f: for line in f.readlines(): splitted = line.split(&quot;,&quot;) data = {**data, **dict(zip(splitted[::2], splitted[1::2]))} as_dataframe = pandas.DataFrame({&quot;counter&quot;: data.keys(), &quot...
Python: Import comma separated data from a TXT file
python|csv|import|txt|raspberry-pi-pico
-1
44
4
72,858,631
72,858,631
0
true
2022-07-04T14:22:14.230Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Python: Import comma separated data from a TXT file<p>I built a data logger with a Raspberry Pi Pico. The Data Logger saves the temperature every six minutes...
72,859,173
How to adjust the direction of movement of bullet sprites?<p>In my program, when the keys are pressed, the image of the ship is flipped. I decided to bind the direction of the bullets to the flags of the ship's position. But I ran into the problem that all bullets take the direction of the ship when they are already fi...
<p>The problem here is that in <code>Bullet.update</code>, you use the current image of the rocket to determine in which direction the bullet is going. This means that any change of this image results in a change of direction. Instead of doing this, you should save the current direction upon creating a new <code>Bullet...
How to adjust the direction of movement of bullet sprites?
python|pygame|sprite
0
44
1
72,861,212
72,861,212
0
true
2022-07-04T15:37:25.017Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to adjust the direction of movement of bullet sprites?<p>In my program, when the keys are pressed, the image of the ship is flipped. I decided to bind th...
72,862,669
How can I make it so each instance in my node-group module use a specific security group?<pre><code>module &quot;self_managed_node_group&quot; { source = &quot;terraform-aws-modules/eks/aws//modules/self-managed-node-group&quot; name = &quot;separate-self-mng&quot; cluster_name = aws_eks_cl...
<p>You can't do what you want, unless you <strong>fork</strong> and manually modify <a href="https://github.com/terraform-aws-modules/terraform-aws-eks/tree/v18.26.2/modules/self-managed-node-group" rel="nofollow noreferrer">self-managed-node-group</a> module.</p> <p>As you can see in its <a href="https://github.com/te...
How can I make it so each instance in my node-group module use a specific security group?
amazon-web-services|terraform|terraform-provider-aws|amazon-eks
1
44
1
72,862,962
72,862,962
0
true
2022-07-04T23:05:08.927Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I make it so each instance in my node-group module use a specific security group?<pre><code>module &quot;self_managed_node_group&quot; { source = &...
72,830,530
Aws lambda function reruns itself evn if it is not failing<p>I am running an AWS lambda function which is the endpoint of a load balancer. This Lambda starts a Fargate instance and registers it in a newly created target group in the load balancer.</p> <p>Here is the workflow :</p> <ul> <li>Start a fargate task instance...
<p>Okay so it seems the problem was the preflight OPTION request that was trigerring the lambda. So I had to get the http method via the event and make a return for the OPTION request and do a 'else' for the other methods, simple as that...</p>
Aws lambda function reruns itself evn if it is not failing
amazon-web-services|aws-lambda|aws-fargate
0
44
1
72,865,238
72,865,238
0
true
2022-07-01T14:08:30.890Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Aws lambda function reruns itself evn if it is not failing<p>I am running an AWS lambda function which is the endpoint of a load balancer. This Lambda starts...
72,871,955
Expanding and Collapsing Sidebars?<p>I'm working on a sidebar and can get it to expand with a button press, but don't know how to make it collapse with the same button. In addition to this, the action repeats itself when you go to another tab and return to the website. If someone could help with this issue, I would gre...
<p>You can do following:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>menuBtn = document.getElementsByClassName("menuButton")[0]; menuBtn.addEventListener("click", function(...
Expanding and Collapsing Sidebars?
html|css
0
44
2
72,872,554
72,872,554
0
true
2022-07-05T15:26:53.500Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Expanding and Collapsing Sidebars?<p>I'm working on a sidebar and can get it to expand with a button press, but don't know how to make it collapse with the s...
72,874,291
How to turn a handleSubmit form function into a reusable one<p>I'm using the React-Bootstrap <code>handleSubmit</code> function to validate a form , submit it , and at the same time call <code>sign()</code> to register my user. Since I will be using a similar form to login the user (just changing the function that gets...
<p>You can achieve this using a custom hook:</p> <p><em><strong>useHandleSubmit.js</strong></em></p> <pre><code>const useHandleSubmit() { const [validated, setValidated] = useState(false); const handleSubmit = (event, func) =&gt; { const form = event.currentTarget; console.log(&quot;form&quot;, fo...
How to turn a handleSubmit form function into a reusable one
javascript|reactjs
1
44
1
72,874,830
72,874,830
0
true
2022-07-05T18:56:42.970Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to turn a handleSubmit form function into a reusable one<p>I'm using the React-Bootstrap <code>handleSubmit</code> function to validate a form , submit i...
72,822,320
Access custom hook after conditions<p>I'm making a Quiz app with react and typescript.</p> <p>I have created a quiz context provider to wrap the functionality and pass it to the children.</p> <p>The value inside my quiz provider is presented with a custom hook called <code>useQuiz</code> that handles all of my game log...
<p>I realize that my structure is illegal. I tried to render a custom hook after several condition which breaks react rules. So, there are two pattern that could solve my issue:</p> <ol> <li>Replacing the custom hook with a component.</li> <li>Replacing the custom hook with a reducer function. That’s a perfect fit for ...
Access custom hook after conditions
reactjs|react-hooks
0
44
1
72,878,084
72,878,084
0
true
2022-06-30T21:39:36.530Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Access custom hook after conditions<p>I'm making a Quiz app with react and typescript.</p> <p>I have created a quiz context provider to wrap the functionalit...
72,878,199
What does "object's identity must change" mean in Angular?<p>I am reading this <a href="https://angular.io/guide/class-binding#binding-to-multiple-css-classes" rel="nofollow noreferrer">Angular doc</a>, it says:</p> <blockquote> <p>With any object-like expression—such as object, Array, Map, or Set—the identity of the o...
<p>The wording there is slightly unfortunate. You can't really <em>change</em> an object's identity - the identity is <em>that object</em>. It's like trying to make X not X. What it means is that a new object or array needs to be created for Angular to detect it as different. For a tiny example in vanilla JS:</p> <p><d...
What does "object's identity must change" mean in Angular?
javascript|angular
0
44
1
72,878,324
72,878,324
0
true
2022-07-06T05:10:26.593Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What does "object's identity must change" mean in Angular?<p>I am reading this <a href="https://angular.io/guide/class-binding#binding-to-multiple-css-classe...
72,877,646
How to change the contents of one container by hovering over elements/links in a DIFFERENT container<p>I'm currently developing an e-catalogue. Following the suggestion of a Stackoverflow contributor, I now have a navigation bar with a dropdown that produces a two-container menu. Next, I am trying to set it in such a w...
<p>You could just remove the <code>mouseleave</code> event listener.</p> <p>When you enter a li element in the left container, the <code>mouseenter</code> event listener will be fired and the text in the right container will be changed.</p> <p>The content will be changed to another text only when you enter another elem...
How to change the contents of one container by hovering over elements/links in a DIFFERENT container
javascript|html|css|mouseenter|mouseleave
0
44
1
72,879,363
72,879,363
0
true
2022-07-06T03:28:45.723Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to change the contents of one container by hovering over elements/links in a DIFFERENT container<p>I'm currently developing an e-catalogue. Following the...
72,882,030
Is a loop function a solution to this problem<p>I have the following code, taken and adapted from the <a href="https://pymupdf.readthedocs.io/en/latest/faq.html#how-to-mark-searched-text" rel="nofollow noreferrer">Collection of Recipes of PyMuPdf</a>.</p> <pre><code>import fitz # the document to annotate doc = fitz.op...
<p>Use a simple <code>for</code> loop:</p> <pre><code>import fitz doc = fitz.open(&quot;test3.pdf&quot;) # a list of text to be marked text_list = [&quot;lidiar con estas problemáticas&quot;, &quot;random text&quot;, &quot;more random text&quot;] page = doc[0] # iterate through each text using for loop and annotate...
Is a loop function a solution to this problem
python|pymupdf
0
44
2
72,882,241
72,882,241
0
true
2022-07-06T10:36:28.723Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is a loop function a solution to this problem<p>I have the following code, taken and adapted from the <a href="https://pymupdf.readthedocs.io/en/latest/faq.h...
72,882,401
Angular: Show value in a select<p>I have two select and I show value if they exist:</p> <p><strong>page.ts</strong></p> <pre><code>import { Component } from '@angular/core'; @Component({ selector: 'my-app', templateUrl: './app.component.html', styleUrls: ['./app.component.css'], }) export class AppComponent { ...
<p>You are missing the declaration of properties <code>stateList</code> and <code>citiesList</code>. I have modified your SB, to generate some static dropdown down options. You can easily assign these variables to the response you get from your API.</p> <p><a href="https://stackblitz.com/edit/angular-453pf2?file=src%2F...
Angular: Show value in a select
javascript|angular
-1
44
2
72,882,709
72,882,709
0
true
2022-07-06T11:00:08.447Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Angular: Show value in a select<p>I have two select and I show value if they exist:</p> <p><strong>page.ts</strong></p> <pre><code>import { Component } from ...
72,882,942
find the longest GrowingSequence in a List JAVA<p>I try to solve an exercise about collection about find the longest sequence of a List Integer Check my code</p> <pre><code>public void findLongestSequence(List&lt;Integer&gt; values) { List&lt;Integer&gt; result = new ArrayList&lt;&gt;(); List&lt;Intege...
<p>it happens because of you skip the last value having the <code>temp.add(values.get(i-1));</code></p> <p>I've fixed it for you:</p> <pre><code>public static void findLongestSequence(List&lt;Integer&gt; values) { List&lt;Integer&gt; result = new ArrayList&lt;&gt;(); List&lt;Integer&gt; temp = new ArrayList&lt;...
find the longest GrowingSequence in a List JAVA
java|algorithm|collections
0
44
1
72,883,321
72,883,321
0
true
2022-07-06T11:37:31.793Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: find the longest GrowingSequence in a List JAVA<p>I try to solve an exercise about collection about find the longest sequence of a List Integer Check my code...
72,884,737
im trying to insert data to mysql from puppeteer (async) but I getting "connection.query is not a function"<p>I just want to store the data I collected in the database but I getting &quot;connection.query is not a function&quot;</p> <p>I've checked a lot of options to solve the issue and I can not find anything that wo...
<p>I found a solution</p> <pre><code>connect() async function connect() { try { const con = await mysql.createConnection({ &quot;host&quot;: , &quot;port&quot;: , &quot;user&quot;: , &quot;password&quot; : , &quot;database&quot; : }) const insertsql = await con.query( ...
im trying to insert data to mysql from puppeteer (async) but I getting "connection.query is not a function"
javascript|node.js|puppeteer|mysql2|node-mysql2
1
44
1
72,886,214
72,886,214
0
true
2022-07-06T13:48:38.030Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: im trying to insert data to mysql from puppeteer (async) but I getting "connection.query is not a function"<p>I just want to store the data I collected in th...
72,774,385
Flutter running with no response after first installation in Windows<p>I'm new in flutter and trying to learn about it for the first time. <br> I'm following the instruction of flutter documentation in <a href="https://docs.flutter.dev/get-started/install/windows" rel="nofollow noreferrer">here</a></p> <p>When in step ...
<p>I missed the important thing.</p> <p><a href="https://i.stack.imgur.com/CElpn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CElpn.png" alt="enter image description here" /></a></p> <p>Just don't put it in the privilege directory.</p>
Flutter running with no response after first installation in Windows
flutter|android-studio|visual-studio-code|command
0
44
1
72,890,025
72,890,025
0
true
2022-06-27T15:08:54.777Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Flutter running with no response after first installation in Windows<p>I'm new in flutter and trying to learn about it for the first time. <br> I'm following...
72,891,471
How to parallelize requests in django script run from the command line?<p>I have a local Django project and some scripts that execute requests in parallel, but the requests are always executed synchronously.</p> <p>Here is a sample script that demonstrates the issue:</p> <pre class="lang-py prettyprint-override"><code>...
<p>requests blocks the main thread, similar to using <code>timer.sleep</code> instead of <code>asyncio.sleep</code>.</p> <p>Using aiohttp solves the issue.</p> <p>Thanks @dirn for the help!</p> <pre class="lang-py prettyprint-override"><code>import asyncio import json import aiohttp from asgiref.sync import async_to_s...
How to parallelize requests in django script run from the command line?
python|django|multiprocessing|python-asyncio
0
44
1
72,892,029
72,892,029
0
true
2022-07-07T01:49:55.283Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to parallelize requests in django script run from the command line?<p>I have a local Django project and some scripts that execute requests in parallel, b...
72,892,876
delay JavaScript on input, so function does fire for each character inputted into a search field<p>I have a search field to allow users to filter the results that are returned from the database. I have it set so that the search field has a <code>.on('input', function() {</code> which will trigger another function.</p> ...
<p>Following VLAZ advice I looked into <code>debouncing</code> and it is exactly what I needed.</p> <p>I followed the steps <a href="https://www.freecodecamp.org/news/javascript-debounce-example/#:%7E:text=In%20JavaScript%2C%20a%20debounce%20function,all%20use%20cases%20for%20debounce." rel="nofollow noreferrer">here</...
delay JavaScript on input, so function does fire for each character inputted into a search field
javascript
1
44
3
72,893,099
72,893,099
0
true
2022-07-07T05:55:34.433Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: delay JavaScript on input, so function does fire for each character inputted into a search field<p>I have a search field to allow users to filter the results...
72,894,891
Flutter: Android resource linking failed<p>Getting the following error when trying to run my Flutter app in an android simulator:</p> <pre><code>Execution failed for task ':app:processDebugResources'. &gt; A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskA...
<p>seems to be <code>&lt;style&gt;</code> added in <code>manifest file</code> instead of <code>styles.xml</code> file</p> <p>It should be inside : <code>&lt;project&gt;/android/app/src/main/res/values/styles.xml</code></p> <p>not in <code>&lt;project&gt;/android/app/src/main/AndroidManifest.xml</code></p>
Flutter: Android resource linking failed
android|flutter
0
44
1
72,895,694
72,895,694
0
true
2022-07-07T08:51:15.540Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Flutter: Android resource linking failed<p>Getting the following error when trying to run my Flutter app in an android simulator:</p> <pre><code>Execution fa...
72,879,982
React cascading select onChange filter doesn't work<p>I'm fairly new to React. Im my drawer(left side) I have several options fields. The options of the 2nd one depends on the chosen 1st one, the options of the 3rd on the chosen 2nd......</p> <p>The problem is that my filter function returns an empty array.</p> <p>I al...
<p>The problem is in the changeHandler, first you set the id in setId setter, at this point id is null, i recommend you to do this:</p> <pre><code> function handleChange(e) { const selectedId = e.target.value; const filteredAgents = agents.filter(x =&gt; x.age_region_id === selectedId); if (filtered...
React cascading select onChange filter doesn't work
reactjs|axios|material-ui
0
44
1
72,895,697
72,895,697
0
true
2022-07-06T08:12:34.033Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: React cascading select onChange filter doesn't work<p>I'm fairly new to React. Im my drawer(left side) I have several options fields. The options of the 2nd ...
72,896,001
Installing c library with setup.py<p>I have written a python package I'm trying to install. With a structure:</p> <pre><code>packagename | |--- setup.py |--- module_name | |--- library.c </code></pre> <p>The library.c file has been successfully installed outside of this package using...
<p>The error is from the linker, that can't find the object file build by the compiler. The object file can't be found, because you specify the object file path manually, and it ends up in the wrong place.</p> <p>The solution is to remove the <code>'-o', 'library'</code> items from the <code>extra_compile_args</code> o...
Installing c library with setup.py
python|gcc|setup.py
0
44
1
72,896,947
72,896,947
0
true
2022-07-07T10:10:05.427Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Installing c library with setup.py<p>I have written a python package I'm trying to install. With a structure:</p> <pre><code>packagename | |--- setup....
72,897,948
Change value in one column if distinct in that column but duplicate in another<p>I am new on this site, I have tried to find the answer in other threads but haven't been lucky yet.</p> <p>I have a dataframe in R:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>Name</th> <th>ID</th> </tr> </...
<p>This is pretty straightforward. You just need to break it down into small steps. Here's a tidyverse solution.</p> <pre><code>library(tidyverse) d &lt;- tibble( Name=c(&quot;Tom&quot;, &quot;Tom&quot;, &quot;Tina&quot;, &quot;Tom&quot;, &quot;Tina&quot;, &quot;Tina&quot;), ID=c(1, 1, 1, 2, 3, 3) ...
Change value in one column if distinct in that column but duplicate in another
r|dplyr|duplicates
0
44
3
72,898,102
72,898,102
0
true
2022-07-07T12:38:18.683Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Change value in one column if distinct in that column but duplicate in another<p>I am new on this site, I have tried to find the answer in other threads but ...
72,775,264
AWS RDS doesn't seem to be stopping even after terminating the instance; (added a screenshot)<p>I am a beginner in using AWS. I was able to make use of the AWS documentation for setting up EC2 and RDS for deploying my personal website using the Free Tier quota. After I was done using the service I stopped both the inst...
<p><strong>Post Update:</strong></p> <blockquote> <p>My issue has been resolved!</p> </blockquote> <p>Here's what had happened:- I was sent an email regarding 85% usage of my AWS resource for Free Tier. This was a day during the month of June. Right after, I immediately headed to stop all my instances. After that it st...
AWS RDS doesn't seem to be stopping even after terminating the instance; (added a screenshot)
amazon-web-services|amazon-rds
-1
44
1
72,903,648
72,903,648
0
true
2022-06-27T16:15:09.190Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: AWS RDS doesn't seem to be stopping even after terminating the instance; (added a screenshot)<p>I am a beginner in using AWS. I was able to make use of the A...
72,903,868
why i can't get the result of appending list in python<pre><code>d={} for i in range (5): d['key']=i lst.append(d) print(lst) &gt;&gt;&gt;[{'key': 4}, {'key': 4}, {'key': 4}, {'key': 4}, {'key': 4}] </code></pre> <p>Why i didn't got this result plz :<code>&gt;&gt;&gt;[{'key': 0}, {'key': 1}, {'key': 2}, {'key...
<p>This code will work:</p> <pre class="lang-py prettyprint-override"><code>lst = [] for i in range(1, 6): lst.append({&quot;key&quot;, i}) print(lst) </code></pre> <p>The problem was that you are appending the variable <code>d</code> to <code>lst</code>. the value of <code>lst</code> is now <code>[d, d, d, d, d]</...
why i can't get the result of appending list in python
python|python-3.x
0
44
1
72,903,958
72,903,958
0
true
2022-07-07T20:28:21.797Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: why i can't get the result of appending list in python<pre><code>d={} for i in range (5): d['key']=i lst.append(d) print(lst) &gt;&gt;&gt;[{'key': 4...
72,905,554
MySql select statement with conditional where clause<p>I am trying to write a MySql statement with a conditional where clause. something like this:</p> <p>set @price = 5000 ;<br /> set @city = 1324368075;</p> <pre><code> select count(*) from property where case when @price is not null then price &lt; @p...
<p>If no when conditions are met, <code>case</code> returns null. If you want each test to pass, you need to return a true value instead, so:</p> <pre><code>case when @price is not null then price &lt; @price else 1 end and ... </code></pre>
MySql select statement with conditional where clause
mysql
0
44
1
72,905,872
72,905,872
0
true
2022-07-08T00:38:55.377Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: MySql select statement with conditional where clause<p>I am trying to write a MySql statement with a conditional where clause. something like this:</p> <p>se...
72,905,658
Unable to Clone Repo<p>I am attempting to set up my environment but I keep running into this issue when I am using the git clone command.</p> <p>I am using a Mac with MacOS Monterey 12.4</p> <p>Below is the error that I am running into</p> <blockquote> <p>fatal: unable to access 'https://github.com/Sheshanator/coursera...
<p>If you are already working behind a proxy, chances are your environment variables <code>HTTP_PROXY</code>/<code>HTTPS_PROXY</code> are already correctly set.</p> <p>If you see a value returned in <a href="https://stackoverflow.com/a/19213999/6309"><code>git config --global http.proxy</code></a>, I would rather unset...
Unable to Clone Repo
git|clone|repo
0
44
1
72,906,782
72,906,782
0
true
2022-07-08T01:00:46.320Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Unable to Clone Repo<p>I am attempting to set up my environment but I keep running into this issue when I am using the git clone command.</p> <p>I am using a...
72,908,419
AWK merge files questions<p>I would like to merge 2 files and produce output file as below:</p> <pre><code>input1.txt 113812627 &lt;prepaid@xxx.com&gt; 113812628 &lt;user@yyy.com&gt; 113812629 &lt;hello@zzz.com&gt; input2.txt 113812627 &lt;user1@xxx.com&gt; 113812628 &lt;user1@yyy.com&gt; 113812627 &lt;user2@xxx.com&g...
<p>I would use GNU <code>AWK</code> for this task following way, let <code>input1.txt</code> content be</p> <pre><code>113812627 &lt;prepaid@xxx.com&gt; 113812628 &lt;user@yyy.com&gt; 113812629 &lt;hello@zzz.com&gt; </code></pre> <p>and <code>input2.txt</code> content be</p> <pre><code>113812627 &lt;user1@xxx.com&gt; 1...
AWK merge files questions
awk
-2
44
1
72,908,519
72,908,519
0
true
2022-07-08T08:04:02.493Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: AWK merge files questions<p>I would like to merge 2 files and produce output file as below:</p> <pre><code>input1.txt 113812627 &lt;prepaid@xxx.com&gt; 11381...
72,908,713
Replace a word only on specific line # (Regex)<p>Within a large file I need to replace one word only on specific lines. Say, on line 25, 55, 181, 1448, and so forth about 2000 times.</p> <p>I started doing it manually using &quot;go to&quot; line and replacing the word. Is there a way to do it automatically, even if I ...
<p>Maybe you can try something like this:</p> <pre><code>\A(?:^.*$\n){5}\K^.*$ </code></pre> <p>Where 5 are the previous lines. So 5 means you want to get line number 6.</p> <p>Working Example: <a href="https://regex101.com/r/QuDon0/1" rel="nofollow noreferrer">https://regex101.com/r/QuDon0/1</a></p>
Replace a word only on specific line # (Regex)
regex|notepad++
-1
44
1
72,908,945
72,908,945
0
true
2022-07-08T08:30:37.060Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Replace a word only on specific line # (Regex)<p>Within a large file I need to replace one word only on specific lines. Say, on line 25, 55, 181, 1448, and s...
72,893,937
How to create percentage stacked bar chart in plotly?<p>I have this code but want to create a stacked % bar chart. How would I do that?</p> <pre><code>fig = px.bar(df, x='date', y=['var1','var2','var3', 'var4'],barmode='stack') fig.show() </code></pre> <p><a href="https://i.stack.imgur.com/7HWfZ.png" rel="nofollow nore...
<p>I think you should make a new column that calculate <code>%</code> of each <code>var</code> and then use it to deploy chart. Please refer my below code:</p> <pre><code>import pandas as pd import numpy as np from datetime import datetime as dt import plotly.express as px df = pd.DataFrame({ 'date': ['2022-01-07'...
How to create percentage stacked bar chart in plotly?
pandas|plotly
0
44
1
72,909,267
72,909,267
0
true
2022-07-07T07:36:27.710Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to create percentage stacked bar chart in plotly?<p>I have this code but want to create a stacked % bar chart. How would I do that?</p> <pre><code>fig = ...
72,920,225
How to remove all html tags except italics and keep newline information using Beautifulsoup?<p>I have the following <code>data</code> that I wish to strip all html elements except italics (<code>&lt;i&gt;</code>) and newline (<code>\n</code>) information using <code>Beautifulsoup</code>. I've tried multiple algorithms ...
<p>Main issue is that plain text do not support formatting, so if you like to keep something formated it needs some markup.</p> <blockquote> <p>strip all html elements except italics () and newline (\n)</p> </blockquote> <p>You could <code>unwrap()</code> with <code>BeautifulSoup</code> but be aware there are no line b...
How to remove all html tags except italics and keep newline information using Beautifulsoup?
python|html|web-scraping|beautifulsoup
0
44
1
72,920,582
72,920,582
0
true
2022-07-09T09:16:10.680Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to remove all html tags except italics and keep newline information using Beautifulsoup?<p>I have the following <code>data</code> that I wish to strip al...
72,921,081
Cancel the entered data in the calendar<p>At the moment, there is a calendar on my site where the user can select a time range and data filtering will be done. For this I use the react-advanced-datetimerange-picker library.</p> <p>But there is one drawback. You cannot cancel the selected data without reloading the page...
<p>I created a function called <code>resetDate</code> which when clicked return the Calendar to its initial value, please check.</p> <p><a href="https://codesandbox.io/s/proud-architecture-9v7e84" rel="nofollow noreferrer">https://codesandbox.io/s/proud-architecture-9v7e84</a></p>
Cancel the entered data in the calendar
javascript|reactjs|datetime
-1
44
1
72,921,135
72,921,135
0
true
2022-07-09T11:44:19.607Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Cancel the entered data in the calendar<p>At the moment, there is a calendar on my site where the user can select a time range and data filtering will be don...
72,926,956
replace \ in JSON using PHP<p>I have a function to convert record from SQL query result into JSON array. This is my function:</p> <pre class="lang-php prettyprint-override"><code>function createJson(){ $dir=&quot;img/e-commerce/product/&quot; $sql=mysql_query(&quot;SELECT product_list.id AS listId, product_list...
<p>A minor change to how you address the array as you build it is all you need</p> <pre><code>$data['items'][] = array( 'name' =&gt; $prodList['prodName'], 'description' =&gt; $prodList['prodOverview'], 'price' =&gt; $prodList['price'], 'image' =&gt; $prodList['prodListImg'], 'c...
replace \ in JSON using PHP
php|json|multidimensional-array|special-characters
0
44
1
72,926,995
72,926,995
0
true
2022-07-10T07:53:11.670Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: replace \ in JSON using PHP<p>I have a function to convert record from SQL query result into JSON array. This is my function:</p> <pre class="lang-php pretty...
72,927,234
useEffect with dependency array triggers multiple times because of array.map<p>I'm creating a simple React application where a parent component renders a number of children components based on an input range slider (using array.map).</p> <p>I'm performing certain actions within a useEffect with a dependency array in th...
<p>After a deep understanding of my needs, one of the arguments was changing.</p> <p>Functions not through a useCallback will always change. Rebuilt objects (and to some extent, arrays) are new as well (unless memoized).</p> <p>I checked what is changing first. Instead of using useRef, figure out what is changing in th...
useEffect with dependency array triggers multiple times because of array.map
reactjs|use-effect
0
44
1
72,928,503
72,928,503
0
true
2022-07-10T08:45:04.710Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: useEffect with dependency array triggers multiple times because of array.map<p>I'm creating a simple React application where a parent component renders a num...
72,778,550
How to add custom css with styled component and reactjs? Warning: Received false for a non-boolean attribute isfirstimageattachment<p>I like to add styles based on the props.</p> <pre><code>import {ArrowBackIcon} from './styles'; const App = () =&gt; { ... const isFirstImageAttachment = (index) =&gt; { return...
<pre><code>import {ArrowBackIcon} from './styles'; const App = () =&gt; { ... const isFirstImageAttachment = (index) =&gt; { const showEl = filteredImages.length &amp;&amp; filteredImages[0]?.uuid === attachments[index]?.uuid; return showEl ? 'hidden' : 'visible'; }; ... return ( &lt;div...
How to add custom css with styled component and reactjs? Warning: Received false for a non-boolean attribute isfirstimageattachment
reactjs|styled-components
0
44
1
72,930,199
72,930,199
0
true
2022-06-27T21:37:13.327Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to add custom css with styled component and reactjs? Warning: Received false for a non-boolean attribute isfirstimageattachment<p>I like to add styles ba...
72,929,667
Terraform Issue with ALB and AutoScaling Group<p>I get the following error at the end of the output.</p> <blockquote> <p>Error: Error registering targets with target group: ValidationError: Instance ID 'arn:aws:elasticloadbalancing:us-west-2:993276023740:targetgroup/ilab-app-loadbalancer/52c7cb8bc3d39e61' is not valid ...
<p>You get a validation error because <code>target_id</code> should be the ID of the target your are trying to register, not the target group itself.</p> <p>From the terraform <a href="https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lb_target_group_attachment" rel="nofollow noreferrer">docum...
Terraform Issue with ALB and AutoScaling Group
amazon-web-services|terraform
0
44
2
72,930,498
72,930,498
0
true
2022-07-10T15:29:07.040Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Terraform Issue with ALB and AutoScaling Group<p>I get the following error at the end of the output.</p> <blockquote> <p>Error: Error registering targets wit...
72,922,545
Why is there a 0 in my header (on top of the indexes) after applying the .sum()?<p>This is my dataframe with i) columns representing the player names, ii) rows representing each game round, and iii) values representing whether they participated in each game round.</p> <pre><code>tdf = df[unique_players][mask] tdf ...
<p>Figured out why the issue was occurring, it was because I had a line of code <code>df.columns = df.iloc[0]</code> that causes this issue.</p> <p>Sample screenshot here to show the problem. <a href="https://i.stack.imgur.com/VDxMK.png" rel="nofollow noreferrer">https://i.stack.imgur.com/VDxMK.png</a></p>
Why is there a 0 in my header (on top of the indexes) after applying the .sum()?
python|pandas|dataframe|sum|series
-1
44
1
72,933,368
72,933,368
0
true
2022-07-09T15:16:50.817Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why is there a 0 in my header (on top of the indexes) after applying the .sum()?<p>This is my dataframe with i) columns representing the player names, ii) ro...
72,939,825
How does @ViewBuilder work in SwiftUI compared to VStack<p><img src="https://i.stack.imgur.com/LnNPw.png" alt="Pic" /></p> <p>So from what I can see in this pic @ViewBuilder is just gonna let me list views and then combine all that into one view right? Now my question is though how exactly does it combine them? Like if...
<blockquote> <p>so what exactly is the @ViewBuilder doing here?</p> </blockquote> <p><strong>TL/DR:</strong> <code>VStack</code> is just one concrete use of the view-combining behavior that's provided by <code>ViewBuilder</code>.</p> <p>Many views can take a closure that combines a number of views and returns one view ...
How does @ViewBuilder work in SwiftUI compared to VStack
swift|swiftui
0
44
1
72,941,369
72,941,369
0
true
2022-07-11T14:02:25.710Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How does @ViewBuilder work in SwiftUI compared to VStack<p><img src="https://i.stack.imgur.com/LnNPw.png" alt="Pic" /></p> <p>So from what I can see in this ...
72,941,297
How to set state to LocalStorage in React<p>I'm trying to save to localstorage this cart value</p> <pre><code>const addToCart = (payload) =&gt; { setState({ ...state, cart: [...state.cart, payload ] }) } </code></pre> <p>Using this code as initialState</p> <pre><code>import { useState } from &quot...
<pre class="lang-js prettyprint-override"><code>const [localCart, setLocalCart] = useLocalStorage(&quot;cartState&quot;, []) </code></pre> <pre class="lang-js prettyprint-override"><code>const addToCart = (payload) =&gt; { setState((prevState) =&gt; { const newState = { ...prevState, cart: [...prevState.cart...
How to set state to LocalStorage in React
reactjs|local-storage
1
44
1
72,941,422
72,941,422
0
true
2022-07-11T15:52:26.990Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to set state to LocalStorage in React<p>I'm trying to save to localstorage this cart value</p> <pre><code>const addToCart = (payload) =&gt; { setStat...
72,932,904
displaying live result from edit text to text view<p>I am creating a small golf app that includes a score card. I am facing an issue displaying the user's live score in a text view. The live score consists of their score for the hole - the par. I am using <code>editText.setOnEditorActionListener</code> in a for loop wi...
<p>This is a partial answer intended to give you some ideas to finalize your approach.</p> <p>This line in the <code>onEditorAction</code> callback:</p> <pre><code>userSumOfHoles += Integer.parseInt(userScores.get(j).getText().toString()) - coursePars.get(j); </code></pre> <p>can be replaced with:</p> <pre><code>userSu...
displaying live result from edit text to text view
java|android
0
44
1
72,942,088
72,942,088
0
true
2022-07-11T01:20:14.337Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: displaying live result from edit text to text view<p>I am creating a small golf app that includes a score card. I am facing an issue displaying the user's li...
72,942,487
Working with formulas inside loops within a range<p>I have an input worksheet with set data input locations. The goal of the VB Script is to look at the range C6:C17 on the input worksheet; create a tab (named as the location) for each cell that has data associated, on each tab create generic text as headers then crea...
<p>Something like this - see comments inline:</p> <pre class="lang-vb prettyprint-override"><code>Sub CreateLocationTabs() Dim cell As Range, FirstDate As Date, LastDate As Date, dateCell As Range Dim r As Long, wsInput As Worksheet, wb As Workbook, ws As Worksheet Set wb = ThisWor...
Working with formulas inside loops within a range
excel|vba
0
44
1
72,943,501
72,943,501
0
true
2022-07-11T17:29:44.373Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Working with formulas inside loops within a range<p>I have an input worksheet with set data input locations. The goal of the VB Script is to look at the ran...
72,935,484
How to work only on a directory of a repo<p>I'd like to work on features of an app available in a public GitHub repo. This repo contains the installation files and a directory (call it <code>local</code>) in which are the local files that are indeed installed.</p> <p>The app is already installed on my computer, so I'd ...
<p>Git fundamentally <em>does not</em> work with files or directories. It works with <em>commits</em>. The commits then contain files: not directories, just files; the file <em>names</em> have forward slashes in them, which triggers Git into making directories in your <em>working tree</em>, but the commits have files...
How to work only on a directory of a repo
git|version-control|git-fork|git-filter-branch|git-filter-repo
0
44
1
72,945,141
72,945,141
0
true
2022-07-11T08:08:41.047Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to work only on a directory of a repo<p>I'd like to work on features of an app available in a public GitHub repo. This repo contains the installation fil...
72,912,620
Pop-up when hovering over a node<p>I have a d3.js tree that looks like this: <img src="https://i.stack.imgur.com/oek4F.jpg" alt="" /></p> <p>What I want to do is, if the user hovers over a node, a pop-up will appear at that node. How can I achieve this?</p>
<p>I found this <a href="https://d3-graph-gallery.com/graph/interactivity_tooltip.html" rel="nofollow noreferrer">demo</a> to be very close to what I want, so I used what it used exactly to create tooltips. Thank you to everyone who contributed.</p>
Pop-up when hovering over a node
javascript|d3.js
1
44
1
72,945,428
72,945,428
0
true
2022-07-08T14:06:04.387Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Pop-up when hovering over a node<p>I have a d3.js tree that looks like this: <img src="https://i.stack.imgur.com/oek4F.jpg" alt="" /></p> <p>What I want to d...
72,855,010
Can nodejs redis error occur because of crawler?<p>redis v 4.0.6 is in use.</p> <p>Is there an error if the crawler connects repeatedly?</p> <p>My code is as follows,</p> <pre><code> private setRedisClient() { const client = createClient({ url: `redis://${process.env.REDIS_URL}:${process.env.REDIS_...
<pre><code>public async getAll(key: string): Promise&lt;any&gt; { try { const client = this.setRedisClient(); const [_, hGetAll, _a] = await Promise.all([client.connect(), client.hGetAll(key), client.quit()]); return hGetAll; } catch (error) { console.log(...
Can nodejs redis error occur because of crawler?
redis|nestjs
-1
44
1
72,946,025
72,946,025
0
true
2022-07-04T10:06:05.997Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Can nodejs redis error occur because of crawler?<p>redis v 4.0.6 is in use.</p> <p>Is there an error if the crawler connects repeatedly?</p> <p>My code is as...
72,946,973
How to access a state of an component from another component in next.js?<p>I have a boolean state of bgWhite. If it changes, I change the background colour. This all is in the index.js file in the pages directory.</p> <p>How can I access the state bgWhite from the component to do something such as changing the bg colo...
<p>Since <code>Hello</code> component is a child of your <code>index.js</code> page component you can just pass the state and the <code>setState</code> function via <code>props</code>, it's the easiest way for the example you are providing and I guess this is what you are looking to do.</p> <pre><code>import { useState...
How to access a state of an component from another component in next.js?
javascript|reactjs|next.js|use-state
0
44
2
72,947,059
72,947,059
0
true
2022-07-12T04:15:43.053Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to access a state of an component from another component in next.js?<p>I have a boolean state of bgWhite. If it changes, I change the background colour. ...
72,949,212
How to use controlled and uncontrolled inputs in the same react form?<p>I have a form in which I do not need to track the changes in real time for part of the data and only need the final data. I want to know how to submit a controlled <code>&lt;select&gt;</code> and an uncontrolled <code>&lt;input&gt;</code> in the sa...
<p>I would recommend not using refs in this case and instead going for a completely state based form. There were also some inconsistencies that are fixed now.</p> <p>Your number input matches the name of your form and is being handled by your existing <code>handleChange</code> function.</p> <pre><code> &lt;input...
How to use controlled and uncontrolled inputs in the same react form?
javascript|reactjs|forms|input
1
44
1
72,949,415
72,949,415
0
true
2022-07-12T08:26:36.920Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to use controlled and uncontrolled inputs in the same react form?<p>I have a form in which I do not need to track the changes in real time for part of th...
72,954,187
How to exec command in chroot filesystem<p>In my system, i create a new filesystem contains all file, then i try exec command like</p> <p><code>chroot /new_root_path /bin/bash -c &quot;echo a &gt; a&quot;</code></p> <p>I found file a write to new filesystem root path, but i try to exec command like this, and i think di...
<p>You can execute <code>hostname</code> everywhere. But since it's tagged C, you could also call <code>gethostname()</code>. That tells you why you see what you see: you're asking the kernel. It's the same kernel, so you get the same answer.</p> <p><code>/etc/hostname</code> is used to call <code>sethostname()</code> ...
How to exec command in chroot filesystem
c|linux|chroot
0
44
1
72,954,384
72,954,384
0
true
2022-07-12T14:43:06.233Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to exec command in chroot filesystem<p>In my system, i create a new filesystem contains all file, then i try exec command like</p> <p><code>chroot /new_r...
72,954,242
Unable to load asset(Image) Flutter<p>This is my API code and I'm passing the image path from here into flutter to determine which image to load. However, all of the other data such as price or title are loading but the image is not loading and throwing an error of unable to load asset.</p> <pre class="lang-js prettypr...
<p>The image asset in response has an upper case i and the model of product list has image asset with lower case i</p> <p>Change the model to this</p> <pre class="lang-dart prettyprint-override"><code>import 'package:flutter/material.dart'; class ProductList with ChangeNotifier { final String id; final String title; ...
Unable to load asset(Image) Flutter
flutter|api|dart|flutter-provider
0
44
1
72,956,066
72,956,066
0
true
2022-07-12T14:47:05.737Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Unable to load asset(Image) Flutter<p>This is my API code and I'm passing the image path from here into flutter to determine which image to load. However, al...
72,959,585
Android Studio Button Onclick From Separate Function<p>hi i have a question about my android app</p> <p>I want to make a game that will basically show the user a certain object, and two buttons that will respectively accept or decline said object.</p> <p>How do I make it so that the central code can read the buttons in...
<p>Hopefully I am getting this right (your question is hard to understand).</p> <p>So, what you want is to gauge whether or not a user has clicked on a certain button in the middle of another method?</p> <p>If so, you could implement something <em>similar</em> to the following:</p> <pre><code>var buttonAClicked = false...
Android Studio Button Onclick From Separate Function
java|android
0
44
1
72,959,655
72,959,655
0
true
2022-07-13T00:13:34.137Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Android Studio Button Onclick From Separate Function<p>hi i have a question about my android app</p> <p>I want to make a game that will basically show the us...
72,951,920
Disable mediaquerie upscale<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-css lang-css prettyprint-override"><code>/* Begin modo oscuro */ @media (prefers-color-scheme: dark){ html { scroll-behavior: smooth; ...
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-css lang-css prettyprint-override"><code>/* Begin modo oscuro */ html { scroll-behavior: smooth; } body { font-family: 'Fredoka', sans-serif; } main { min-height:...
Disable mediaquerie upscale
html|css|media-queries
0
44
1
72,966,221
72,966,221
0
true
2022-07-12T11:57:28.383Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Disable mediaquerie upscale<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre c...
72,972,372
Checkstyle, Unable to parse configuration stream<p>I am new to coding but was asked to install apache ofbiz software. I've gotten pretty far by doing my own research however, I've run into an error that I can't find an answer for online. this is the checkstyle.xml file that is having issues when i try to run the gradle...
<p>You are missing a closing <code>&lt;/module&gt;</code> tag. Probably on the</p> <pre><code>&lt;module name=&quot;TreeWalker&quot;&gt; </code></pre> <p>element.<br /> So add this closing element <code>&lt;/module&gt;</code> at the end/the right place and your XML should be fine.</p>
Checkstyle, Unable to parse configuration stream
xml|parsing|xml-parsing|checkstyle
0
44
1
72,972,507
72,972,507
0
true
2022-07-13T20:38:00.410Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Checkstyle, Unable to parse configuration stream<p>I am new to coding but was asked to install apache ofbiz software. I've gotten pretty far by doing my own ...
72,972,866
Socket.io and React online users list not updating correctly<p>I have an online users list for a chat app I'm making. When you log in it displays your username in the &quot;Online Users&quot; section, and this works fine for any amount of users so far. The problem comes when you log out:</p> <ul> <li>User 1 logs in and...
<p>Your array of users have objects that contain the <code>username</code> and the <code>socketid</code>, but when you disconnect a user you use:</p> <pre><code> onlineUsers.splice(onlineUsers.indexOf(user), 1); </code></pre> <p><code>indexOf</code> is returning -1 because you user is a string and your array if fi...
Socket.io and React online users list not updating correctly
javascript|reactjs|socket.io
0
44
1
72,973,083
72,973,083
0
true
2022-07-13T21:32:43.050Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Socket.io and React online users list not updating correctly<p>I have an online users list for a chat app I'm making. When you log in it displays your userna...
72,975,112
Most frequent element in Python hashed dictionary<p>I have the following dictionary:</p> <pre class="lang-py prettyprint-override"><code>data = {112: [25083], 25091: [6939], 32261: [9299, 6939, 3462], 32934: [7713, 6762, 6939], 34854: [6939], 56630: [7713]} </code></pre> <p>I am trying to overcome with the most frequen...
<p>You can use <code>Counter</code> and <code>defaultdict</code>:</p> <pre class="lang-py prettyprint-override"><code>from collections import Counter, defaultdict from itertools import chain data = {112: [25083], 25091: [6939], 32261: [9299, 6939, 3462], 32934: [7713, 6762, 6939], 34854: [6939], 56630: [7713]} counte...
Most frequent element in Python hashed dictionary
python|dictionary
0
44
1
72,975,142
72,975,142
0
true
2022-07-14T04:12:33.667Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Most frequent element in Python hashed dictionary<p>I have the following dictionary:</p> <pre class="lang-py prettyprint-override"><code>data = {112: [25083]...
72,976,363
How to continue loops with few if statement between them<p>One thing that I want to do is after first if I want to continue to sum arrival in period between 100 and 200 and so on but I don't know how to do that I want only to sum the values in that period first if is ok but I don't know how to continue</p> <pre><code>a...
<p>If indexes in depart_time are the same to arrival, I guess that right because you are using a for-loop mixing both indexes i. You don't need to use for-loops or if statements. Just find the indexes you want for each condition using <code>find</code> function. A faster code will be summarising this one using logic in...
How to continue loops with few if statement between them
matlab|loops|for-loop
1
44
1
72,977,198
72,977,198
0
true
2022-07-14T06:52:43.373Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to continue loops with few if statement between them<p>One thing that I want to do is after first if I want to continue to sum arrival in period between ...
72,979,298
UnableToDeserializePostBody when trying to create a teams meeting with php Microsoft Graph Api<p>Calling Graph API endpoint</p> <pre><code>POST https://graph.microsoft.com/v1.0/me/events </code></pre> <p>resulted in a <code>400 Bad Request</code> with response:</p> <pre><code>{ &quot;error&quot;: { &quot;cod...
<p>Remove <code>message</code> object from <code>$CreateMeetingBody</code> and keep its content only.</p> <pre><code>$CreateMeetingBody = array( 'subject' =&gt; 'Test afspraak Marloes', 'body' =&gt; array ( 'content' =&gt; 'Does morning work for you?', 'contentType' =&gt; 'HT...
UnableToDeserializePostBody when trying to create a teams meeting with php Microsoft Graph Api
php|json|api|microsoft-graph-api
1
44
1
72,979,407
72,979,407
0
true
2022-07-14T10:51:29.793Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: UnableToDeserializePostBody when trying to create a teams meeting with php Microsoft Graph Api<p>Calling Graph API endpoint</p> <pre><code>POST https://graph...
72,976,907
Values don't change as they should because of recursion depth<p>I am making checkers. I encountered quite a big problem. The code below describes cells king can move on. 1 cell is 100x100. He starts from (550, 50). This picture describes current_battlefield:</p> <p><a href="https://i.stack.imgur.com/58vMX.png" rel="no...
<p>This is a classic kind of bug. The problem is that you pass <code>enemy_positions</code>. Which means that the object is shared between the recursive call and the previous. So what happens in the recursive call is seen in the parent.</p> <p>You either need to <code>.copy()</code> it, or else you need to manually ...
Values don't change as they should because of recursion depth
python|algorithm|recursion|depth
0
44
1
72,984,505
72,984,505
0
true
2022-07-14T07:41:11.673Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Values don't change as they should because of recursion depth<p>I am making checkers. I encountered quite a big problem. The code below describes cells king ...
72,984,295
Issue in reading a value from appsettings.Development.json<p>I have a program that I want to publish as a single exe file which will be used by a user who can change the appsettings as they need. Some of the settings are just for development (included in appsettings.Development.json and this file is not published) and ...
<p>I found the answer to my second question in this <a href="https://levelup.gitconnected.com/overriding-an-array-configuration-object-4d93470e97d0" rel="nofollow noreferrer">article</a>. Surprisingly the arrays are merged by design!</p>
Issue in reading a value from appsettings.Development.json
c#|asp.net-core
0
44
1
72,986,579
72,986,579
0
true
2022-07-14T17:11:34.960Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Issue in reading a value from appsettings.Development.json<p>I have a program that I want to publish as a single exe file which will be used by a user who ca...
72,985,981
Dart How to load file in runtime<p>I'm writing a discord bot using the nyxx library and want use dynamic file import for load command info and handler. But, after 5 hours of searching with Google, I didn't find anything to help me do that.</p> <p>In Node.js, I can use <code>require()</code> or <code>import()</code> for...
<p>You can in theory use <a href="https://api.dart.dev/stable/2.17.6/dart-isolate/Isolate/spawnUri.html" rel="nofollow noreferrer"><code>Isolate.spawnUri</code></a> to spawn external Dart programs to run in its own <code>Isolate</code> instances that can then communicate back to the main program using <code>SendPort</c...
Dart How to load file in runtime
dart
0
44
1
72,988,616
72,988,616
0
true
2022-07-14T19:53:26.950Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Dart How to load file in runtime<p>I'm writing a discord bot using the nyxx library and want use dynamic file import for load command info and handler. But, ...
72,958,655
How could the text written in editText modify the progressbar in Kotlin in Android Studio?<p>I'm trying to make the progress bar interactive with the <code>editText</code>. When the number written in <code>editText</code> is greater than 10, the progress bar increases by 10%.</p> <p>The code I wrote doesn't work of cou...
<pre><code>if (converter.text.toString().toIntOrNull() is Int &amp;&amp; converter.text.toString().toInt() &gt; 10 { progressBar.progress = (progrrssBar.progress * 1.1).toInt() } </code></pre> <p>You need to compare the value converted to an integer against an integer and not a string. You can save the first condit...
How could the text written in editText modify the progressbar in Kotlin in Android Studio?
android|android-studio|kotlin|android-edittext
0
44
2
72,988,894
72,988,894
0
true
2022-07-12T21:37:52.783Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How could the text written in editText modify the progressbar in Kotlin in Android Studio?<p>I'm trying to make the progress bar interactive with the <code>e...
72,990,251
How to get value of query param array in spring boot?<p>I have this URL</p> <pre><code>http://127.0.0.1:3009/mac/view/:userId?ot-replace[0]=kin43 </code></pre> <p>I need the value of <code>ot-replace[0]</code></p> <p>In the controller I am using</p> <pre><code> @RequestParam(name=&quot;ot-replace&quot;, required=false)...
<p>Your URL should like this.</p> <pre><code>http://127.0.0.1:3009/mac/view/:userId?ot-replace=kin43,value2,vlue3 </code></pre> <p>then you can get a String[].</p> <pre><code>ot-replace[0]=kin43 ot-replace[1]=value2 ot-replace[2]=value3 </code></pre>
How to get value of query param array in spring boot?
java|spring|spring-mvc
0
44
2
72,990,895
72,990,895
0
true
2022-07-15T07:10:50.793Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to get value of query param array in spring boot?<p>I have this URL</p> <pre><code>http://127.0.0.1:3009/mac/view/:userId?ot-replace[0]=kin43 </code></pr...
72,972,460
Eclipse 2022-03, -06 with Pydev ignores breakpoints in threads<p>I am trying to use the Pydev debugger for a multi-threaded application. Any breakpoints set in the threads are ignored and just stepped over. Setup: Eclipse 2022-03 or -06 with Python 3.6. Sample code:</p> <pre class="lang-py prettyprint-override"><code>f...
<p>The logs show you're using <code>GEVENT_SUPPORT:True</code>, yet your code doesn't refer to gevent... if you disable it, does it work?</p> <p>i.e.: in <code>Preferences &gt; PyDev &gt; Debug</code> uncheck <code>Gevent compatible debugging</code> (or unset the <code>GEVENT_SUPPORT</code> environment variable if you'...
Eclipse 2022-03, -06 with Pydev ignores breakpoints in threads
python|multithreading|eclipse|pydev
1
44
1
72,993,754
72,993,754
0
true
2022-07-13T20:46:12.223Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Eclipse 2022-03, -06 with Pydev ignores breakpoints in threads<p>I am trying to use the Pydev debugger for a multi-threaded application. Any breakpoints set ...
72,954,249
vue js spa and laravel sanctum: cannot set crsf-cookie<h2>CONTEXT AND GOAL</h2> <p>I have my laravel backend running on backend.domain</p> <p>I have a vuejs spa trying to logging in from 'external.app.domain'</p> <p>I need that vuejs spa can login, obatain A NEW token for the user, to, then, use for subsequent calls.</...
<p>SOLVED</p> <p>I had to <em>remove</em> the middleware of sanctum in api. I previously enabled because I was trying other way to use Sanctum itself.</p>
vue js spa and laravel sanctum: cannot set crsf-cookie
php|laravel|vue.js|laravel-9|laravel-sanctum
0
44
1
72,994,950
72,994,950
0
true
2022-07-12T14:47:33.983Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: vue js spa and laravel sanctum: cannot set crsf-cookie<h2>CONTEXT AND GOAL</h2> <p>I have my laravel backend running on backend.domain</p> <p>I have a vuejs ...
72,994,939
JMeter - bzm Parallel Controller<p>Can someone please explain the &quot;Limit max thread number&quot; property for the bzm parallel controller plugin? When monitoring requests from the browser we can see there are some requests that happen in parallel. Is this property to be set to the number of requests observed occur...
<p><a href="https://github.com/Blazemeter/jmeter-bzm-plugins/blob/master/parallel/Parallel.md#parallel-controller" rel="nofollow noreferrer">Parallel Controller</a> executes all it's children in parallel.</p> <p>The limit is introduced to support browser-like behaviour, <a href="https://stackoverflow.com/questions/9854...
JMeter - bzm Parallel Controller
jmeter|jmeter-plugins|blazemeter
0
44
1
72,995,189
72,995,189
0
true
2022-07-15T13:40:58.870Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: JMeter - bzm Parallel Controller<p>Can someone please explain the &quot;Limit max thread number&quot; property for the bzm parallel controller plugin? When m...
72,996,743
How to use POSIX regexp in Spring Data Specification<p>This is a Book that has &quot;words&quot; in the manner of &quot;word1;word2;word3&quot;:</p> <pre><code>@Entity @Table(name = &quot;books&quot;) public class Book { ... @Column(name =&quot;words&quot;) private String words; } </code></pre> <p>I need ...
<p>Yes, it is possible, however you need to create a function in PostgreSQL:</p> <pre class="lang-sql prettyprint-override"><code>create or replace function regexp_match(v_text in varchar, v_regexp in varchar) returns boolean language plpgsql strict immutable as $$ begin return v_text ~ v_regexp; end $$; </code><...
How to use POSIX regexp in Spring Data Specification
java|regex|postgresql|spring-data|posix
0
44
1
72,997,191
72,997,191
0
true
2022-07-15T16:00:35.863Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to use POSIX regexp in Spring Data Specification<p>This is a Book that has &quot;words&quot; in the manner of &quot;word1;word2;word3&quot;:</p> <pre><co...
72,997,956
How to make a ListView in a Fragment display my data (Android)?<p>I'm working on my Android app and have a Fragment FragmentBlank with TextView messages_list in it. In the FragmentBlank.kt I wrote these 5 lines:</p> <pre><code>override fun onCreateView( inflater: LayoutInflater, container: ViewGroup?, savedInst...
<p>In this line, you are throwing away everything you already created above it by inflating a new view and returning that:</p> <pre><code>return inflater.inflate(R.layout.fragment_blank, container, false) </code></pre> <p>You should return the view you already created:</p> <pre><code>return view </code></pre> <p>But I ...
How to make a ListView in a Fragment display my data (Android)?
android|kotlin|listview|mobile
1
44
1
72,998,485
72,998,485
0
true
2022-07-15T17:52:42.397Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to make a ListView in a Fragment display my data (Android)?<p>I'm working on my Android app and have a Fragment FragmentBlank with TextView messages_list...
72,998,287
PyQT GUI freezes when I update several labels' text 30 times in second<p>I wrote a PyQT5 code. It connects to a ROS topic which produces messages with 30 Hz (30 messages in 1 second).</p> <p>This is an image from part of GUI: <a href="https://i.stack.imgur.com/K8jaN.png" rel="nofollow noreferrer"><img src="https://i.st...
<p>I found the problem.</p> <p>The problem is that I update labels in <code>show_gaze_information</code>.</p> <p>This function is a callback that is called when a message is published on the topic.</p> <p>To correct the code, in function <code>show_gaze_information</code>, the message should be stored in a variable. No...
PyQT GUI freezes when I update several labels' text 30 times in second
python|user-interface|pyqt|pyqt5|ros
0
44
1
72,999,351
72,999,351
0
true
2022-07-15T18:28:26.373Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: PyQT GUI freezes when I update several labels' text 30 times in second<p>I wrote a PyQT5 code. It connects to a ROS topic which produces messages with 30 Hz ...
73,000,708
PyTesseract and Tesseract not detecting text<p>I've been trying to use pytesseract for a project I've had in the works for quite a while. So far I've just been trying to make sure that it works well on my computer, but I've had no luck with getting it to work.</p> <p>I've been trying to test it out on <a href="https://...
<p>For your case, I had tried the OCR with <strong>easy ocr</strong> which also using tesseract engine to extract text.I get the proper result. You can install easyocr by <code>pip install easyocr</code>.</p> <pre><code>import cv2 import easyocr image = cv2.imread('exit.png') resize = cv2.resize(image,(100,40)) cv2.imw...
PyTesseract and Tesseract not detecting text
python|python-tesseract
0
44
1
73,001,576
73,001,576
0
true
2022-07-16T00:28:13.013Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: PyTesseract and Tesseract not detecting text<p>I've been trying to use pytesseract for a project I've had in the works for quite a while. So far I've just be...
73,000,114
How to correctly chunk two seperate type of JSON data in an array?<p>I'm attempting to iterate through a JSON file, retrieving the calorie count for each item and then sorting by meal and day (in total, there are only five days of data). Here is an example of an object in the array.</p> <pre><code>&quot;Date&quot;: &qu...
<p>You can use this code:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>const data = fetch('https://api.npoint.io/0b9f68319d190f5d41ec') .then(result =&gt; result.json())...
How to correctly chunk two seperate type of JSON data in an array?
javascript|arrays|p5.js
1
44
1
73,001,649
73,001,649
0
true
2022-07-15T22:22:22.973Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to correctly chunk two seperate type of JSON data in an array?<p>I'm attempting to iterate through a JSON file, retrieving the calorie count for each ite...
73,002,608
Not able to use insert query in oracle database<pre><code>insert=&quot;INSERT INTO Tablename (column1,column2,....) VALUES (%s,%s,%s,...) vals=(variable1,variabl2,'','',Variable5, '','',...) c.execute(insert,vals) </code></pre> <p>I am receiving an error stating</p> <blockquote> <p>ORA-01036: illegal variable name/num...
<p>sql variables should start with &quot;:&quot;, eg, <code>:1</code>, <code>:2</code> for tuple or <code>:age</code>, <code>:name</code> for named arguments</p> <p>so, the code should be:</p> <pre class="lang-py prettyprint-override"><code>insert=&quot;INSERT INTO Tablename (column1,column2,....) VALUES (:1,:2,:3,...)...
Not able to use insert query in oracle database
python|cx-oracle
0
44
1
73,002,853
73,002,853
0
true
2022-07-16T08:09:29.647Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Not able to use insert query in oracle database<pre><code>insert=&quot;INSERT INTO Tablename (column1,column2,....) VALUES (%s,%s,%s,...) vals=(variable1,var...
73,005,125
Can't make CircleCI work along Python project set through pyproject.toml<p>I have setup a Python Project with dependencies listed in a pyproject.toml file as explained in PyPI packaging tutorial. Here is pyproject.toml file:</p> <pre><code>[build-system] requires = [&quot;setuptools&gt;=61.0&quot;] build-backend = &quo...
<p>After digging documentation, it appears none &quot;orbs&quot; (some kind of pre-defined actions you can import) provided by circleci does the trick off the shelf for <code>pyproject.toml</code> configured project. Hence, I had to start from a blank <code>config.yml</code> to make it happen. Moreover, I had to test b...
Can't make CircleCI work along Python project set through pyproject.toml
python|circleci|pipenv
0
44
1
73,008,132
73,008,132
0
true
2022-07-16T14:45:15.513Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Can't make CircleCI work along Python project set through pyproject.toml<p>I have setup a Python Project with dependencies listed in a pyproject.toml file as...
73,011,231
Auto Resize table<p>I am making a dynamic sheet directory in excel using VBA that I would like to dynamically resize. It does resize if new data is added, but not if it is removed. Here is my code:</p> <pre><code>Sub update_directory() Application.ScreenUpdating = False Range(&quot;Directory&quot;).Select Selection.Cle...
<p>You don't need all those selects and copy/pastes</p> <p>The procedure first stores the reuslt of Transpose(Sheetnames) into an array. This has two advantages:</p> <ul> <li>writing an array to a worksheet is faster and cleaner then using select/copy/paste</li> <li>we know the size of the array - and from that can res...
Auto Resize table
excel|vba
0
44
1
73,012,642
73,012,642
0
true
2022-07-17T11:05:40.393Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Auto Resize table<p>I am making a dynamic sheet directory in excel using VBA that I would like to dynamically resize. It does resize if new data is added, bu...
73,010,222
Do i just need to run `nuxt generate` without setting `target: static` to build an SSG in Nuxt 3?<p>In the <a href="http://localhost:3000/" rel="nofollow noreferrer">Official Guide</a> it says that If to generate a static site, there are two ways:</p> <ul> <li>Prerendering (Which is to my understanding is <strong>SSG</...
<p>At the end, there is no specific reason of having an <code>SPA</code> with a Node.js server, so <code>nuxt build</code> is irrelevant in this case.<br /> Having as SSG or SSR depending on the script that you use seems logical indeed.</p> <p>Before, we need to have:</p> <ul> <li><code>ssr: true</code> and <code>targe...
Do i just need to run `nuxt generate` without setting `target: static` to build an SSG in Nuxt 3?
nuxt.js|nuxtjs3
1
44
1
73,012,906
73,012,906
0
true
2022-07-17T08:18:03.883Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Do i just need to run `nuxt generate` without setting `target: static` to build an SSG in Nuxt 3?<p>In the <a href="http://localhost:3000/" rel="nofollow nor...
73,011,509
QTreeView item's editor position problem?<p>I have a <code>QTreeView</code> widget in which I have set indentation to <code>0</code> with <code>QTreeView::setIndentation(0)</code>, but when editing an item, the editor still appears at the indentation level of the default indented behaviour: <a href="https://i.stack.img...
<p>In trying to create a minimal reproducible example as @Parisa.H.R mentioned in the comment, I discovered that in the <code>drawRow</code> method in the <code>QTreeView</code>/<code>QTreeWidget</code> there is some code that adjusts the geometry of item widgets, like so (Python/PyQt example):</p> <pre class="lang-py ...
QTreeView item's editor position problem?
qt|pyqt|pyside
0
44
1
73,013,377
73,013,377
0
true
2022-07-17T11:50:25.163Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: QTreeView item's editor position problem?<p>I have a <code>QTreeView</code> widget in which I have set indentation to <code>0</code> with <code>QTreeView::se...
73,013,383
AssertionError: No templates used to render the response<p>I solved the problem while writing this question but I wanted to post it so maybe someone needs this answer</p> <hr> <p>Hello my friends. i am new to django testing. while i'm testing my views i faced this error in some views.</p> <p><strong>This is my views.py...
<p><strong>The solution in this case is:</strong></p> <p>The test in Django does not use the default database but rather creates its own database that does not have any records <em>(I completely forgot that)</em>, so you must create records before you start tests that relate to the database. in this case i must create ...
AssertionError: No templates used to render the response
django|django-views|django-templates|django-testing|django-tests
0
44
1
73,013,384
73,013,384
0
true
2022-07-17T16:11:12.793Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: AssertionError: No templates used to render the response<p>I solved the problem while writing this question but I wanted to post it so maybe someone needs th...
73,005,756
Save lowest value if dynamically new value is lower than previous value in Excel<p>I try to save the lowest value in a price overview, to keep track on price development. So basically, the value from A2 should be stored in cell C2, if the value is lower than the prior observed value. When a new lowest price is detected...
<p>So I used the <a href="https://stackoverflow.com/q/72821492">iterative calculation</a> as recommended by <a href="https://stackoverflow.com/users/445425/chris-neilsen">chris neilsen</a>. The resulting table with formulas looks as follows (translate &quot;WENN&quot; with &quot;IF&quot;)</p> <p><a href="https://i.stac...
Save lowest value if dynamically new value is lower than previous value in Excel
excel|excel-formula
0
44
1
73,013,643
73,013,643
0
true
2022-07-16T16:08:10.543Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Save lowest value if dynamically new value is lower than previous value in Excel<p>I try to save the lowest value in a price overview, to keep track on price...
73,012,603
PHP - Combine multiple API endpoints in array<p>I am trying to create a small function to load data from different API endpoints into one array to work with / load data from. Right now my code is looking as follow;</p> <pre><code>$url1 = 'https://gameinfo.albiononline.com/api/gameinfo/guilds/uhmotNBAQ6-0vi9PFysRBg/memb...
<p>Huge thanks to @barrycarter for his help in pushing me into the right direction.</p> <p>The actual code needed to be like this:</p> <pre><code>$url1 = 'gameinfo.albiononline.com/api/…'; $url2 = 'gameinfo.albiononline.com/api/…'; $url3 = 'gameinfo.albiononline.com/api/…'; $url4 = 'gameinfo.albiononline.com/api/…'; $u...
PHP - Combine multiple API endpoints in array
php|arrays|api
0
44
1
73,013,767
73,013,767
0
true
2022-07-17T14:23:27.533Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: PHP - Combine multiple API endpoints in array<p>I am trying to create a small function to load data from different API endpoints into one array to work with ...