qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,319,146 | <p>I'm trying to do a local override of a function so that I can discard the first value returned, and only one value (normally returned as its second value) will be returned by the function.</p>
<pre><code>local r.functionName()
discardVar,keepVar = r.functionName()
return keepVar
end
</code></pre>
<p>However,... | [
{
"answer_id": 74319192,
"author": "shingo",
"author_id": 6196568,
"author_profile": "https://Stackoverflow.com/users/6196568",
"pm_score": 3,
"selected": false,
"text": "local f = r.functionName\n r.functionName = function()\n local discardVar,keepVar = f()\n return keepVar\nend\n... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319146",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7051766/"
] |
74,319,174 | <p>I'm having a little problem trying to create the database connection url.
I am using the AWS Secrets Manager service and with the returned data I create my connection URL.
The problem is that when I want to create the URL it gives me an error.
If someone can help me I would really appreciate it</p>
<p>I created a mo... | [
{
"answer_id": 74319192,
"author": "shingo",
"author_id": 6196568,
"author_profile": "https://Stackoverflow.com/users/6196568",
"pm_score": 3,
"selected": false,
"text": "local f = r.functionName\n r.functionName = function()\n local discardVar,keepVar = f()\n return keepVar\nend\n... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319174",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20349159/"
] |
74,319,177 | <p>I have object array now i need to convert it single array without key.</p>
<p>I need array like this:-</p>
<pre><code>["test","test"]
</code></pre>
<p>I also need to remove that value if I got <code>undefined</code> instead of other value.</p>
<p>My Code:-</p>
<p><div class="snippet" data-lang="j... | [
{
"answer_id": 74319192,
"author": "shingo",
"author_id": 6196568,
"author_profile": "https://Stackoverflow.com/users/6196568",
"pm_score": 3,
"selected": false,
"text": "local f = r.functionName\n r.functionName = function()\n local discardVar,keepVar = f()\n return keepVar\nend\n... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319177",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7333403/"
] |
74,319,195 | <p>I'm new to pandas and need help manipulating data per row and not the whole column based on a condition.</p>
<p>I have a DF that contains these columns:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Repository</th>
<th>Age</th>
</tr>
</thead>
<tbody>
<tr>
<td>DMZ Linux</td>
<td>65 days... | [
{
"answer_id": 74319192,
"author": "shingo",
"author_id": 6196568,
"author_profile": "https://Stackoverflow.com/users/6196568",
"pm_score": 3,
"selected": false,
"text": "local f = r.functionName\n r.functionName = function()\n local discardVar,keepVar = f()\n return keepVar\nend\n... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319195",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14748404/"
] |
74,319,196 | <p>Consider collection with following documents:</p>
<pre class="lang-json prettyprint-override"><code>[
{
"_id": "3981396a-9fcb-4c24-976f-d500f20c4fab",
"entries": [
{
"key": "var1"
"value": "value1"
... | [
{
"answer_id": 74319287,
"author": "ray",
"author_id": 14732669,
"author_profile": "https://Stackoverflow.com/users/14732669",
"pm_score": 1,
"selected": false,
"text": "$reduce entries db.collection.update({},\n[\n {\n $set: {\n entries: {\n \"$reduce\": {\n \"i... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319196",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9177575/"
] |
74,319,198 | <pre><code>int operator++(int){
//relevant code
}
</code></pre>
<p>I dont seem to understand the workings of the code for overloading post increment operator given
above</p>
<p>I know that the int as a dummy parameter is given to differentiate between pre-increment and post increment operator overloading.</p>
<p>If <... | [
{
"answer_id": 74319287,
"author": "ray",
"author_id": 14732669,
"author_profile": "https://Stackoverflow.com/users/14732669",
"pm_score": 1,
"selected": false,
"text": "$reduce entries db.collection.update({},\n[\n {\n $set: {\n entries: {\n \"$reduce\": {\n \"i... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319198",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19550296/"
] |
74,319,213 | <p>I have a dataframe like the following.</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>i</th>
<th>j</th>
<th>element</th>
</tr>
</thead>
<tbody>
<tr>
<td>0</td>
<td>0</td>
<td>1</td>
</tr>
<tr>
<td>0</td>
<td>1</td>
<td>2</td>
</tr>
<tr>
<td>0</td>
<td>2</td>
<td>3</td>
</tr>
<tr>
<td>1<... | [
{
"answer_id": 74319247,
"author": "Gonçalo Peres",
"author_id": 7109869,
"author_profile": "https://Stackoverflow.com/users/7109869",
"pm_score": 2,
"selected": false,
"text": "df pandas.DataFrame.pivot .to_numpy() .values array = df.pivot(index='i', columns='j', values='element').to_nu... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319213",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4531208/"
] |
74,319,233 | <p>I've uploaded a <strong>.ipynb</strong> jupyter notebook in GitHub but it doesn't display the exact same output as I've written in jupyter notebook.</p>
<p>Here's the link to my repo: <a href="https://github.com/akashsb18/Analysing-Dataset-Using-Pandas" rel="nofollow noreferrer">ipynb file</a></p>
| [
{
"answer_id": 74319247,
"author": "Gonçalo Peres",
"author_id": 7109869,
"author_profile": "https://Stackoverflow.com/users/7109869",
"pm_score": 2,
"selected": false,
"text": "df pandas.DataFrame.pivot .to_numpy() .values array = df.pivot(index='i', columns='j', values='element').to_nu... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319233",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18142963/"
] |
74,319,258 | <p>I currently have a list of dictionaries that looks like that:</p>
<pre class="lang-py prettyprint-override"><code>total_list = [
{'email': 'usera@email.com', 'id': 1, 'country': 'UK'},
{'email': 'usera@email.com', 'id': 1, 'country': 'Germany'},
{'email': 'userb@email.com', 'id': 2, 'country': 'UK'}
... | [
{
"answer_id": 74370019,
"author": "MrMattBusby",
"author_id": 8507777,
"author_profile": "https://Stackoverflow.com/users/8507777",
"pm_score": 0,
"selected": false,
"text": "total_list [] total_list total_list"
},
{
"answer_id": 74411949,
"author": "Sebastian Baltser",
... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319258",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11249098/"
] |
74,319,273 | <p>I am considering what the value of ca will be after these operations:</p>
<pre><code>int ca = -279;
char abb = ca;
int ca = /abb >> 6) ;
</code></pre>
<p>I am having trouble understanding what happens with ca because of the shifting.</p>
| [
{
"answer_id": 74319498,
"author": "Eric Postpischil",
"author_id": 298225,
"author_profile": "https://Stackoverflow.com/users/298225",
"pm_score": 2,
"selected": false,
"text": "char (char) sa sa char cb << 8 cb int int -4864 >> 2"
},
{
"answer_id": 74319787,
"author": "5384... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319273",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
74,319,282 | <p>I have a table like below and I would like to show TotalSales based on Category column.</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Category</th>
<th>Sub-Cate</th>
<th>Sales</th>
</tr>
</thead>
<tbody>
<tr>
<td>Chairs</td>
<td>Paper</td>
<td>16.448</td>
</tr>
<tr>
<td>Suppliers</td>
... | [
{
"answer_id": 74319498,
"author": "Eric Postpischil",
"author_id": 298225,
"author_profile": "https://Stackoverflow.com/users/298225",
"pm_score": 2,
"selected": false,
"text": "char (char) sa sa char cb << 8 cb int int -4864 >> 2"
},
{
"answer_id": 74319787,
"author": "5384... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319282",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20418435/"
] |
74,319,300 | <p>As the title says, ESLint is complaining with this error message:</p>
<pre><code>ESLint: Unable to resolve path to module '@vercel/analytics/react'.(import/no-unresolved)
</code></pre>
<p>In the line: <code>import { Analytics } from '@vercel/analytics/react';</code></p>
<p>When following the instructions from this <... | [
{
"answer_id": 74325835,
"author": "ZeW",
"author_id": 14190507,
"author_profile": "https://Stackoverflow.com/users/14190507",
"pm_score": 0,
"selected": false,
"text": "//tsconfig.json\n\"compilerOptions\": {\n \"baseUrl\": \"./\",\n \"paths\": {\n \"@vercel/analytics/react\"... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319300",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6279385/"
] |
74,319,314 | <p>Very simple code.</p>
<pre><code><div>
<v-app-bar
app
flat
>
<v-app-bar-title>
Page Title
</v-app-bar-title>
</v-app-bar>
<v-container fluid>
<v-card
height="400"
outlined
flat
>
<v-card-title>
... | [
{
"answer_id": 74324685,
"author": "yoduh",
"author_id": 6225326,
"author_profile": "https://Stackoverflow.com/users/6225326",
"pm_score": 0,
"selected": false,
"text": "dense"
},
{
"answer_id": 74324778,
"author": "Alexander Shkirkov",
"author_id": 9275224,
"author_p... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319314",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19271543/"
] |
74,319,341 | <p>I have a QML <code>TextField</code> and want to limit the length to 16 characters.</p>
<pre><code>TextField {
id: myTextField
maximumLength: 16
}
</code></pre>
<p>Say I enter a multibyte-character like "" at the end of a 15 character long string, the emoji gets trimmed and results as �, which is on... | [
{
"answer_id": 74319751,
"author": "easysaesch",
"author_id": 4012609,
"author_profile": "https://Stackoverflow.com/users/4012609",
"pm_score": 0,
"selected": false,
"text": "QValidator QValidator::State MyValidator::validate(QString & input, int & pos) const\n{\n Q_UNUSED(pos)\n i... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319341",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4012609/"
] |
74,319,342 | <pre><code> game=input("enter student name to update report card: ")
nn=game.replace(" ", "_")
mycursor.execute("show tables")
klm = mycursor.fetchall()
if (nn,) in klm:
b=int(input("enter sno: "))
mycursor.execute("select * from... | [
{
"answer_id": 74319751,
"author": "easysaesch",
"author_id": 4012609,
"author_profile": "https://Stackoverflow.com/users/4012609",
"pm_score": 0,
"selected": false,
"text": "QValidator QValidator::State MyValidator::validate(QString & input, int & pos) const\n{\n Q_UNUSED(pos)\n i... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319342",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20416181/"
] |
74,319,350 | <p>I have the following query:</p>
<pre class="lang-sql prettyprint-override"><code>SELECT distinct INCOME_LEVEL
FROM CUSTOMERS
where INCOME_LEVEL like '%-%'
</code></pre>
<p>Which returns:</p>
<p><img src="https://i.stack.imgur.com/QWfaT.png" alt="Query output" /></p>
<p>I need to Leave only those levels that are in t... | [
{
"answer_id": 74319751,
"author": "easysaesch",
"author_id": 4012609,
"author_profile": "https://Stackoverflow.com/users/4012609",
"pm_score": 0,
"selected": false,
"text": "QValidator QValidator::State MyValidator::validate(QString & input, int & pos) const\n{\n Q_UNUSED(pos)\n i... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319350",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20090021/"
] |
74,319,355 | <p>Ive been scrolling and scrolling and i dont seem to find any solution. I am making a simple java fx program where i draw different shapes. The problem is that i dont know how to implement an undo button. I have found that you can use stacks, command pattern, arraydeque and so on... But i cant fix it..</p>
<p>Here is... | [
{
"answer_id": 74319751,
"author": "easysaesch",
"author_id": 4012609,
"author_profile": "https://Stackoverflow.com/users/4012609",
"pm_score": 0,
"selected": false,
"text": "QValidator QValidator::State MyValidator::validate(QString & input, int & pos) const\n{\n Q_UNUSED(pos)\n i... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319355",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19963735/"
] |
74,319,360 | <p>I have some data which I need to sort using the first column of each object.</p>
<p>The project uses Angular / Typescript but it's still JS.</p>
<p>Here's how the data looks:</p>
<pre><code>[
{
time: 1000.189,
other: 100
},
{
time: 1023.189 ,
other: 105
},
{
... | [
{
"answer_id": 74319422,
"author": "Randy",
"author_id": 3561849,
"author_profile": "https://Stackoverflow.com/users/3561849",
"pm_score": 0,
"selected": false,
"text": "this.array.sort((a, b) => a['time'] - b['time']);\n"
},
{
"answer_id": 74319647,
"author": "LocoBE",
"... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319360",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20357413/"
] |
74,319,380 | <p>For example, I have</p>
<pre><code><div class="stick active"></div>
<div class="stick"></div>
<div class="stick"></div>
<div class="stick"></div>
<div class="stick"></div>
</code></pre>
<p>I need to find out... | [
{
"answer_id": 74319422,
"author": "Randy",
"author_id": 3561849,
"author_profile": "https://Stackoverflow.com/users/3561849",
"pm_score": 0,
"selected": false,
"text": "this.array.sort((a, b) => a['time'] - b['time']);\n"
},
{
"answer_id": 74319647,
"author": "LocoBE",
"... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319380",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20324239/"
] |
74,319,408 | <p>How do you "pipe" an expression in Polars?</p>
<p>Consider this code:</p>
<pre><code>def transformation(col:pl.Series)->pl.Series:
return col.tanh().suffix('_tanh')
</code></pre>
<p>It'd be nice to be able to do this:</p>
<pre><code>df.with_columns([
pl.col('colA').pipe(transformation),
pl.co... | [
{
"answer_id": 74319422,
"author": "Randy",
"author_id": 3561849,
"author_profile": "https://Stackoverflow.com/users/3561849",
"pm_score": 0,
"selected": false,
"text": "this.array.sort((a, b) => a['time'] - b['time']);\n"
},
{
"answer_id": 74319647,
"author": "LocoBE",
"... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319408",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17194313/"
] |
74,319,411 | <p>I have a json dictionary in a cell of my table. The keys of the dictionary can be varied and I don't know the full list of them in advance.</p>
<p>How can I unnest the key value pairs?</p>
<p><em>FWIW, I'm using Presto.</em></p>
<pre class="lang-sql prettyprint-override"><code>with example(json_info) as (
VALUES... | [
{
"answer_id": 74319422,
"author": "Randy",
"author_id": 3561849,
"author_profile": "https://Stackoverflow.com/users/3561849",
"pm_score": 0,
"selected": false,
"text": "this.array.sort((a, b) => a['time'] - b['time']);\n"
},
{
"answer_id": 74319647,
"author": "LocoBE",
"... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319411",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/99045/"
] |
74,319,413 | <p>I need to make my <code>Iterator< isConst = false></code> convert to <code>Iterator<isConst = true></code>. That is, I need a separate method <code>Iterator< true >(const Iterator< false > &)</code>.</p>
<p>My Iterator class:</p>
<pre><code>template < typename T >
template < bool... | [
{
"answer_id": 74319657,
"author": "Caleth",
"author_id": 2610810,
"author_profile": "https://Stackoverflow.com/users/2610810",
"pm_score": 3,
"selected": true,
"text": "Iterator<false> Iterator<true> operator Iterator<true>() const { return Iterator<true>(nodePtr_); }\n friend class Ite... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319413",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13517983/"
] |
74,319,419 | <p>We have a Python Linux azure function that is connected to a custom oidc provider and azure ad to provide authentication to the HTTP triggered functions using Microsofts easyauth.</p>
<p>After the initial setup, the azure function was working and has been working for the last few months.</p>
<p>In the last 2 days, o... | [
{
"answer_id": 74358162,
"author": "Fabien Soulis",
"author_id": 20447914,
"author_profile": "https://Stackoverflow.com/users/20447914",
"pm_score": 0,
"selected": false,
"text": "2022-11-08T08:47:28.449645417Z [41m[30mfail[39m[22m[49m: Microsoft.AspNetCore.Server.Kestrel[13]\n**2022-11-... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319419",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13222107/"
] |
74,319,435 | <p>I want to have my VB.NET program secure folder(s) which all contain a handful of different files so the files within cannot be edited unless the program "unlocks" the folder in Windows. Is this possible? I do not want the folder/files hidden just essentially in some Read-Only state or something or fake out... | [
{
"answer_id": 74358162,
"author": "Fabien Soulis",
"author_id": 20447914,
"author_profile": "https://Stackoverflow.com/users/20447914",
"pm_score": 0,
"selected": false,
"text": "2022-11-08T08:47:28.449645417Z [41m[30mfail[39m[22m[49m: Microsoft.AspNetCore.Server.Kestrel[13]\n**2022-11-... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319435",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6849894/"
] |
74,319,454 | <p>Sometimes you want to suppress a clippy warning for the time being and you let clippy ignore a specific rule for a specific code block by adding lines like the following:</p>
<pre><code>#[allow(dead_code)]
</code></pre>
<p>But as the project continues, it can actually happen that you remove the problem, without actu... | [
{
"answer_id": 74320142,
"author": "ordinaryduck",
"author_id": 14575901,
"author_profile": "https://Stackoverflow.com/users/14575901",
"pm_score": 0,
"selected": false,
"text": "_ #![allow(dead_code)]"
},
{
"answer_id": 74320946,
"author": "Kevin Reid",
"author_id": 9969... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319454",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20418889/"
] |
74,319,480 | <p>In a PHP web page, when flling the form and some of the fields are filled incorrectly, I need to return to the same page and auto-fill all the fields that were prefiously filled by the user. How do I set the values of the fields?</p>
<p>I tried using the $_POST method and echo but the error was that the key I used w... | [
{
"answer_id": 74320142,
"author": "ordinaryduck",
"author_id": 14575901,
"author_profile": "https://Stackoverflow.com/users/14575901",
"pm_score": 0,
"selected": false,
"text": "_ #![allow(dead_code)]"
},
{
"answer_id": 74320946,
"author": "Kevin Reid",
"author_id": 9969... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319480",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20418900/"
] |
74,319,485 | <p>Is there a pythonic way to constrain the output of a method so that it can only be one of a set? Sort of like typing but for specific values only. I hope you can see what I'm trying to get at with this snippet:</p>
<pre><code>class Rule:
def evaluate(self, user_id: int) -> {"PASS", "FAIL",... | [
{
"answer_id": 74319542,
"author": "jprebys",
"author_id": 3268228,
"author_profile": "https://Stackoverflow.com/users/3268228",
"pm_score": 2,
"selected": false,
"text": "from typing import Literal\n\nclass Rule:\n def evaluate(self, user_id: int) -> Literal[\"PASS\", \"FAIL\", \"ERR... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319485",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18556111/"
] |
74,319,524 | <p>I'm reading <a href="https://cplusplus.com/doc/tutorial/classes/" rel="nofollow noreferrer">classes tutorial</a> in cplusplus.com.</p>
<p>I got confused by the following paragraph.</p>
<blockquote>
<p>Default-constructing all members of a class may or may always not be convenient: in some cases, this is a waste (whe... | [
{
"answer_id": 74319703,
"author": "user17732522",
"author_id": 17732522,
"author_profile": "https://Stackoverflow.com/users/17732522",
"pm_score": 2,
"selected": false,
"text": "Son()\n{\n age = 1;\n}\n age age = 1; int age std::string age = \"1\"; std::string age \"1\" age Son() : a... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319524",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14218416/"
] |
74,319,531 | <p>I have created a simple bash script to start capturing traffic from all interfaces I have in my Linux machine (ubuntu 22), but this script should stop capturing traffic 2 hours after the machine has reboot. Below is my bash script</p>
<pre><code>#!/bin/bash
cd /home/user/
tcpdump -U -i any -s 65535 -w output.pcap &a... | [
{
"answer_id": 74319703,
"author": "user17732522",
"author_id": 17732522,
"author_profile": "https://Stackoverflow.com/users/17732522",
"pm_score": 2,
"selected": false,
"text": "Son()\n{\n age = 1;\n}\n age age = 1; int age std::string age = \"1\"; std::string age \"1\" age Son() : a... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319531",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18920279/"
] |
74,319,536 | <p>I'm working in Apache OpenOffice calc (v4.1.13) and would like to search a row, find the last row with a non-empty cell and return the column header for that row. Note that the cells contain text and that some cells in the row are empty.</p>
<p>In <a href="https://stackoverflow.com/questions/44465752/return-the-colu... | [
{
"answer_id": 74330886,
"author": "Jim K",
"author_id": 5100564,
"author_profile": "https://Stackoverflow.com/users/5100564",
"pm_score": 0,
"selected": false,
"text": "=LOOKUP(2;1/ISNUMBER(H228:S228);H228:S228)\n =LOOKUP(2;1/NOT(ISBLANK(H228:S228));H228:S228)\n =LOOKUP(\"ZZZ\";H228:S22... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319536",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10706115/"
] |
74,319,549 | <p>I have a multi-line textInput in my application that looks like this:</p>
<pre><code>TextFormField(
maxLines: 5,
minLines: 3,
initialValue: object.textValue
)
</code></pre>
<p>It works fine when the user inputs new values.<br />
However, when I need to load an existing value the input is not applying the line ... | [
{
"answer_id": 74330886,
"author": "Jim K",
"author_id": 5100564,
"author_profile": "https://Stackoverflow.com/users/5100564",
"pm_score": 0,
"selected": false,
"text": "=LOOKUP(2;1/ISNUMBER(H228:S228);H228:S228)\n =LOOKUP(2;1/NOT(ISBLANK(H228:S228));H228:S228)\n =LOOKUP(\"ZZZ\";H228:S22... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319549",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1286937/"
] |
74,319,595 | <p>I'm just learning the basics of powershell and have a task - create pwsh script which accepts 3 incoming parameters (all are mandatory):</p>
<ol>
<li>first parameter, value <em>address_1</em>, it's IP address with the format x.x.x.x</li>
<li>second parameter, value <em>address_2</em>, it's IP address with the format... | [
{
"answer_id": 74326743,
"author": "Keith Miller",
"author_id": 9406738,
"author_profile": "https://Stackoverflow.com/users/9406738",
"pm_score": 1,
"selected": false,
"text": "[ValidatePattern()] [ValidateScript()] Process Function AddressTest\n{\n Param(\n [Parameter(Mandator... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319595",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10009512/"
] |
74,319,605 | <p>I'm writing a bot in Python that uses Selenium to play a web-based of Tic Tac Toe. I want to loop through an array of XPATHs that represent the game grid and check each square for the presence of the 'O' character. If the square is marked by an O, the number of that square should be appended to another list of mar... | [
{
"answer_id": 74326743,
"author": "Keith Miller",
"author_id": 9406738,
"author_profile": "https://Stackoverflow.com/users/9406738",
"pm_score": 1,
"selected": false,
"text": "[ValidatePattern()] [ValidateScript()] Process Function AddressTest\n{\n Param(\n [Parameter(Mandator... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319605",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20168619/"
] |
74,319,612 | <p>How to generate a list from a pandas dataframe with column name and values as nested list?
this is my dataframe:</p>
<pre><code> a b c d
0 1 5 9 13
1 2 6 10 14
2 3 7 11 15
3 4 8 12 16
</code></pre>
<p>i would like to generate a list</p>
<pre><code>list1 = [[a,1], [a,2], [a,3],[a,4]]
list2 = [[b,5], [b,6], [b,7],... | [
{
"answer_id": 74326743,
"author": "Keith Miller",
"author_id": 9406738,
"author_profile": "https://Stackoverflow.com/users/9406738",
"pm_score": 1,
"selected": false,
"text": "[ValidatePattern()] [ValidateScript()] Process Function AddressTest\n{\n Param(\n [Parameter(Mandator... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319612",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20418639/"
] |
74,319,626 | <p>Here is my code which is producing some unexpected results when input value is changed. (I know that there are lot of comments in it, I was using that as a means of debugging).</p>
<pre><code>age = 0
age = input("please enter your age ")
#print(age)
#int(age)
#print(type(age))
age1 = int(age)
#print(type(... | [
{
"answer_id": 74319662,
"author": "svfat",
"author_id": 2419628,
"author_profile": "https://Stackoverflow.com/users/2419628",
"pm_score": 1,
"selected": false,
"text": "else: age1 < 30 if age1 > 30:\n print(\"old\")\nelse:\n print(\"young\")\n"
},
{
"answer_id": 74319854,
... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319626",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1026713/"
] |
74,319,653 | <p>I have an HTML page that is partially generated by a 3rd party that I cannot change. However, I can add my own Javascript to the page to modify it's behavior.</p>
<p>I want to remove a keypress event listener from an input textbox.</p>
<p>In Chrome dev tools, if I view the element, I can see the following two events... | [
{
"answer_id": 74319662,
"author": "svfat",
"author_id": 2419628,
"author_profile": "https://Stackoverflow.com/users/2419628",
"pm_score": 1,
"selected": false,
"text": "else: age1 < 30 if age1 > 30:\n print(\"old\")\nelse:\n print(\"young\")\n"
},
{
"answer_id": 74319854,
... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319653",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8543505/"
] |
74,319,654 | <p>I have one JS file called taxForms.js and a script syntax within the html file. And I need to make changes within the html file, so the <code>console.log()</code> puts out the right output.
My task goes like this:</p>
<p>In income-greather-than-500k.html you will find an array of tax forms assigned to the variable c... | [
{
"answer_id": 74319750,
"author": "ericmp",
"author_id": 14569750,
"author_profile": "https://Stackoverflow.com/users/14569750",
"pm_score": 1,
"selected": false,
"text": "taxForms[income] for (const taxForm of taxForms) {\n if (taxForm.income > 500000) {\n console.log(taxForms)\n ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319654",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20229542/"
] |
74,319,660 | <p>Here's what I did.</p>
<ol>
<li>Made changes to my README directly in my github repo with 3 commits.</li>
<li>made 4 more commits locally without pulling those 3 commits in.</li>
</ol>
<p>Now when I try to push it says pull those remote commits first but when I do git pull it show error.</p>
<pre><code>warning: Pul... | [
{
"answer_id": 74319750,
"author": "ericmp",
"author_id": 14569750,
"author_profile": "https://Stackoverflow.com/users/14569750",
"pm_score": 1,
"selected": false,
"text": "taxForms[income] for (const taxForm of taxForms) {\n if (taxForm.income > 500000) {\n console.log(taxForms)\n ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319660",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16697095/"
] |
74,319,719 | <p>Basically i am doing a <strong>document.querySelectorAll()</strong> which returns an array of div elements . I have a function which has a <strong>handleclick()</strong> function and each time i click in this button i want the hide the table of the button that i am click on not.</p>
<p>This is what i have right now
... | [
{
"answer_id": 74319750,
"author": "ericmp",
"author_id": 14569750,
"author_profile": "https://Stackoverflow.com/users/14569750",
"pm_score": 1,
"selected": false,
"text": "taxForms[income] for (const taxForm of taxForms) {\n if (taxForm.income > 500000) {\n console.log(taxForms)\n ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319719",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18174677/"
] |
74,319,722 | <p>We use AG Grid. I want to add our license as a side effect before exporting the React component for use, rather than having to add the license every time we use the grid component.</p>
<p>What I tried below doesn't work. I thought side effects would run before import/export if declared like this, but clearly my ment... | [
{
"answer_id": 74319750,
"author": "ericmp",
"author_id": 14569750,
"author_profile": "https://Stackoverflow.com/users/14569750",
"pm_score": 1,
"selected": false,
"text": "taxForms[income] for (const taxForm of taxForms) {\n if (taxForm.income > 500000) {\n console.log(taxForms)\n ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319722",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/750544/"
] |
74,319,739 | <p>I have these two lists (let's imagine we have hundreds of lists) :</p>
<pre><code>l1 = list(c(1,2,3),c(12))
l2 = list(data.frame(x=c(1,2,3)),c(4,5))
</code></pre>
<p>and I wish to choose only the second element from each list. How to do so ? thanks.</p>
| [
{
"answer_id": 74319750,
"author": "ericmp",
"author_id": 14569750,
"author_profile": "https://Stackoverflow.com/users/14569750",
"pm_score": 1,
"selected": false,
"text": "taxForms[income] for (const taxForm of taxForms) {\n if (taxForm.income > 500000) {\n console.log(taxForms)\n ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319739",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19720935/"
] |
74,319,765 | <p>I create this custom hook in my React app. It should return a <code>boolean</code>.</p>
<pre><code>const useFetchResponse = (url: string) => {
const [isValid, setIsValid] = useState<boolean>(false);
useEffect(() => {
const fetchResponse = async () => {
const response = await fetch(url);... | [
{
"answer_id": 74319750,
"author": "ericmp",
"author_id": 14569750,
"author_profile": "https://Stackoverflow.com/users/14569750",
"pm_score": 1,
"selected": false,
"text": "taxForms[income] for (const taxForm of taxForms) {\n if (taxForm.income > 500000) {\n console.log(taxForms)\n ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319765",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4822666/"
] |
74,319,777 | <p>We have recently migrated from sending emails with <code>deliver_now</code> to <code>deliver_later</code>. So that queued emails aren't lost when the system restarts, we implement this with Sidekiq.</p>
<p>When we used <code>deliver_now</code>, our Rake tests could test the sending of an email with</p>
<pre><code>as... | [
{
"answer_id": 74319750,
"author": "ericmp",
"author_id": 14569750,
"author_profile": "https://Stackoverflow.com/users/14569750",
"pm_score": 1,
"selected": false,
"text": "taxForms[income] for (const taxForm of taxForms) {\n if (taxForm.income > 500000) {\n console.log(taxForms)\n ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319777",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4959100/"
] |
74,319,805 | <p>I am using "moveto" to reach at destination caller <em>Dryer</em>. <em>Dryer</em> have "queue" and "delay".
Now when agent come it first go to <em>Dryer</em> and then go to "queue" and then wait for its turn to go to <em>Dryer</em> for "delay".</p>
<p>What should hap... | [
{
"answer_id": 74330297,
"author": "Yossi Benagou",
"author_id": 18366972,
"author_profile": "https://Stackoverflow.com/users/18366972",
"pm_score": 0,
"selected": false,
"text": "Node Node"
}
] | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319805",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16779211/"
] |
74,319,816 | <p>Consider this program:</p>
<pre><code>#include <stdio.h>
int main()
{
int a;
a = 16;
printf("This is the first line
this is the second line
");
}
</code></pre>
<hr />
<p>Why does this program throw error? Why can't it compile successfully and show the output as:</p>
<pre><code... | [
{
"answer_id": 74319935,
"author": "Andreas Wenzel",
"author_id": 12149471,
"author_profile": "https://Stackoverflow.com/users/12149471",
"pm_score": 4,
"selected": true,
"text": "\\ #include <stdio.h>\n\nint main()\n{\n int a;\n a = 16;\n \n printf(\"This is the first line\\\n... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319816",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20333834/"
] |
74,319,829 | <p>I am new to PulP. Below is the optimization problem.</p>
<p>Consider x11, x12, x13 be units of FG1 to be loaded on Medium Truck 1, Small Truck and Medium Truck 2 respectively. Similarly, consider x21,x22,x23 be variables to denote units of FG2 to be loaded on Medium Truck 1, Small Truck and Medium Truck 2 respective... | [
{
"answer_id": 74319935,
"author": "Andreas Wenzel",
"author_id": 12149471,
"author_profile": "https://Stackoverflow.com/users/12149471",
"pm_score": 4,
"selected": true,
"text": "\\ #include <stdio.h>\n\nint main()\n{\n int a;\n a = 16;\n \n printf(\"This is the first line\\\n... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319829",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14577651/"
] |
74,319,834 | <p>I'm trying to make a loop that will print a message if the window size is too small while waiting for the user to press enter. Once the user presses enter, I want it to check again if the console window is big enough before it exits the loop</p>
<pre><code>{
WriteLine("The current terminal size is to small ... | [
{
"answer_id": 74319935,
"author": "Andreas Wenzel",
"author_id": 12149471,
"author_profile": "https://Stackoverflow.com/users/12149471",
"pm_score": 4,
"selected": true,
"text": "\\ #include <stdio.h>\n\nint main()\n{\n int a;\n a = 16;\n \n printf(\"This is the first line\\\n... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319834",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20419145/"
] |
74,319,843 | <p>When I clear the Text of the ComboBox or click again, the selected item is still not canceled.</p>
<pre class="lang-xml prettyprint-override"><code><ComboBox
MinWidth="120"
IsEditable="True"
PlaceholderText="please select">
<ComboBoxItem>A</ComboBoxItem>... | [
{
"answer_id": 74319935,
"author": "Andreas Wenzel",
"author_id": 12149471,
"author_profile": "https://Stackoverflow.com/users/12149471",
"pm_score": 4,
"selected": true,
"text": "\\ #include <stdio.h>\n\nint main()\n{\n int a;\n a = 16;\n \n printf(\"This is the first line\\\n... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319843",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20375410/"
] |
74,319,852 | <p>I have the following statement on my code to create a slider:</p>
<p><code>[sg.Text('SPI Frequency [MHz]: '),sg.Slider((0.50,2.50),1.250,0.750,size=(80,15),orientation='h',key='FREQ_SLIDER',enable_events=True,tick_interval=0.75)]</code></p>
<p>However, my final resolution is not of 0.75 but it is rounded. Instead, ... | [
{
"answer_id": 74370123,
"author": "MrMattBusby",
"author_id": 8507777,
"author_profile": "https://Stackoverflow.com/users/8507777",
"pm_score": 1,
"selected": false,
"text": "."
},
{
"answer_id": 74441720,
"author": "Joshua",
"author_id": 17608766,
"author_profile": ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319852",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15852840/"
] |
74,319,859 | <p>If i have 2 dataframe, let's say dfA like this:</p>
<pre><code> hour distance short_summary
1 5 2.02 Overcast
2 7 1.16 Overcast
3 3 1.35 Partly Cloudy
4 12 1.17 Overcast
5 22 1.80 Overcast
6 9 1.72 Partly Cloudy
7 18 ... | [
{
"answer_id": 74370123,
"author": "MrMattBusby",
"author_id": 8507777,
"author_profile": "https://Stackoverflow.com/users/8507777",
"pm_score": 1,
"selected": false,
"text": "."
},
{
"answer_id": 74441720,
"author": "Joshua",
"author_id": 17608766,
"author_profile": ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319859",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20228780/"
] |
74,319,862 | <p>Model in Turing.jl seems to be stuck in errors with</p>
<pre><code>Warning: The current proposal will be rejected due to numerical error(s).
│ isfinite.((θ, r, ℓπ, ℓκ)) = (true, false, false, false)
</code></pre>
<p>for <code>NUTS()</code>, <code>HMCDA()</code> and sometimes <code>HMC()</code> sampling methods. I ... | [
{
"answer_id": 74370123,
"author": "MrMattBusby",
"author_id": 8507777,
"author_profile": "https://Stackoverflow.com/users/8507777",
"pm_score": 1,
"selected": false,
"text": "."
},
{
"answer_id": 74441720,
"author": "Joshua",
"author_id": 17608766,
"author_profile": ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319862",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18335909/"
] |
74,319,898 | <p>Well, hello, i've a doubt. The question is how i can open <strong>whatsapp desktop</strong> from a <code>button</code> in <code>VB6</code> in a <strong>specific number with a message</strong>. For example in <code>C#</code> i can do that with the property <code>Process</code>:</p>
<pre><code>var process = $"wha... | [
{
"answer_id": 74355580,
"author": "Ehab",
"author_id": 20342736,
"author_profile": "https://Stackoverflow.com/users/20342736",
"pm_score": 3,
"selected": true,
"text": "ShellExecute Declare Function ShellExecute Lib \"shell32.dll\" Alias \"ShellExecuteA\" (ByVal hwnd As Long, ByVal lpOp... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319898",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
74,319,900 | <p>However when i move my css code back into the body in the html file (not using href="") the edits like padding, and color got applies to the frontend, here is my css code.</p>
<pre><code><style>
.subscribe-button {
background-color: rgb(204, 0, 0);
color:white;
border: none;
padding-top: 10px;
paddin... | [
{
"answer_id": 74355580,
"author": "Ehab",
"author_id": 20342736,
"author_profile": "https://Stackoverflow.com/users/20342736",
"pm_score": 3,
"selected": true,
"text": "ShellExecute Declare Function ShellExecute Lib \"shell32.dll\" Alias \"ShellExecuteA\" (ByVal hwnd As Long, ByVal lpOp... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319900",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17810556/"
] |
74,319,909 | <p>There is an existing value <code>a</code>, and I want to get a reference to either <code>a</code> or a new value <code>b</code> created on demand, depending on some condition. The code below won't compile. I would like to know what is the idiomatic way of doing so in Rust.</p>
<pre><code>fn main() {
let conditio... | [
{
"answer_id": 74320059,
"author": "PitaJ",
"author_id": 847382,
"author_profile": "https://Stackoverflow.com/users/847382",
"pm_score": 3,
"selected": true,
"text": "Cow use std::borrow::Cow;\n\nlet condition = false;\n\nlet a: String = \"a\".to_string();\nlet r: Cow<str> = if condition... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319909",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20312298/"
] |
74,319,910 | <p>I have a custom Required if that works fine. I then needed a Ranged If - Required if another item was a certain value, and it needs to be within a range. this does work - but does not throw the error under the box. I assume due to "return new ValidationResult". is there a way to just throw error in custom ... | [
{
"answer_id": 74320059,
"author": "PitaJ",
"author_id": 847382,
"author_profile": "https://Stackoverflow.com/users/847382",
"pm_score": 3,
"selected": true,
"text": "Cow use std::borrow::Cow;\n\nlet condition = false;\n\nlet a: String = \"a\".to_string();\nlet r: Cow<str> = if condition... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319910",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20090914/"
] |
74,319,921 | <pre><code>const face = document.querySelector('.face');
const con = document.querySelector('.con');
for (let i = 0; i < face.length; i++){
con.addEventListener("click" , () => {
face[i].style.transform = "translateZ(600px)";
});
}
</code></pre>
<p>I wanted to change a CSS ... | [
{
"answer_id": 74320059,
"author": "PitaJ",
"author_id": 847382,
"author_profile": "https://Stackoverflow.com/users/847382",
"pm_score": 3,
"selected": true,
"text": "Cow use std::borrow::Cow;\n\nlet condition = false;\n\nlet a: String = \"a\".to_string();\nlet r: Cow<str> = if condition... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319921",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20419119/"
] |
74,319,955 | <p>I need to add a script which will delete files from directory before installation of new version. I need save from directory one catalog - /logs and all files inside ( inside we have *.log and *.zg files)</p>
<p>Ive created this line : <code>find /directory/path/* ! -name 'logs' -type d,f -exec rm -r -v {} + </code>... | [
{
"answer_id": 74322778,
"author": "William Pursell",
"author_id": 140750,
"author_profile": "https://Stackoverflow.com/users/140750",
"pm_score": 2,
"selected": false,
"text": "$ find . ! -name logs\n.\n./logs/a\n./foo\n./foo/a\n logs -name logs a logs -name logs prune $ find . -name lo... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319955",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20418343/"
] |
74,319,973 | <p>Best explained with an example:</p>
<p><a href="https://i.stack.imgur.com/JZv97.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JZv97.png" alt="enter image description here" /></a></p>
<p>I want to search the blue range and check if any of the cells contain any of the strings in the green range.</... | [
{
"answer_id": 74320051,
"author": "Argyll",
"author_id": 3181104,
"author_profile": "https://Stackoverflow.com/users/3181104",
"pm_score": 1,
"selected": false,
"text": "=arrayformula(sum(if(regexmatch(textjoin(\",\",false,\",\",A1:A10,\",\"),\",\"&B1:B3&\",\"),1,0)))>0\n arrayformula ,... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74319973",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1166371/"
] |
74,320,021 | <p>first time using OAuth here and I am stuck. I am building a web app that needs to make authorized calls to the YouTube Data API. I am testing the OAuth flow from my local computer.</p>
<p>I am stuck receiving <code>Error 400: redirect_uri_mismatch</code> when I try to run my Google OAuth flow in Python. The error oc... | [
{
"answer_id": 74320051,
"author": "Argyll",
"author_id": 3181104,
"author_profile": "https://Stackoverflow.com/users/3181104",
"pm_score": 1,
"selected": false,
"text": "=arrayformula(sum(if(regexmatch(textjoin(\",\",false,\",\",A1:A10,\",\"),\",\"&B1:B3&\",\"),1,0)))>0\n arrayformula ,... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74320021",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19968680/"
] |
74,320,031 | <p>I have created an API from Database, I can view the API but I am unable to do a query via URL for example: <code>127.0.0.1:8000/author?author_id=9</code>, I am not sure where to add the query code. I want to filter using fields. Here is my <code>models.py</code></p>
<pre><code>class AuthorAPI(models.Model):
auth... | [
{
"answer_id": 74320138,
"author": "Swift",
"author_id": 8874154,
"author_profile": "https://Stackoverflow.com/users/8874154",
"pm_score": 2,
"selected": false,
"text": "ModelViewset filter_backends = [django_filters.rest_framework.DjangoFilterBackend]\n class AuthorViewset(viewsets.Read... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74320031",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18411353/"
] |
74,320,040 | <p>I'm struggling to understand how <code>livewire</code> works.</p>
<p>I have two text fields. One is where the user enters information like prefixes and the second field with a <code>read-only</code> attribute where data will be displayed based on the first field value.
But for some reason, I can't populate the secon... | [
{
"answer_id": 74320138,
"author": "Swift",
"author_id": 8874154,
"author_profile": "https://Stackoverflow.com/users/8874154",
"pm_score": 2,
"selected": false,
"text": "ModelViewset filter_backends = [django_filters.rest_framework.DjangoFilterBackend]\n class AuthorViewset(viewsets.Read... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74320040",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3747585/"
] |
74,320,054 | <p>I'm facing with an issue in the comment section of the app i'm working on (Instagram based). I have created a comment setion with a like button (that changes colours when the uid of the user is present in the DB) and I'd like to give the possibility to users to use it and save the data on FirebaseFirestore. I have c... | [
{
"answer_id": 74320138,
"author": "Swift",
"author_id": 8874154,
"author_profile": "https://Stackoverflow.com/users/8874154",
"pm_score": 2,
"selected": false,
"text": "ModelViewset filter_backends = [django_filters.rest_framework.DjangoFilterBackend]\n class AuthorViewset(viewsets.Read... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74320054",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20419261/"
] |
74,320,061 | <p>I have an API gateway in front of my Spring Boot app. This API gateway performs the oauth2 authentication and validation of the JWT token for me. My app receives the valid JWT token as HTTP header.</p>
<p>How can I combine this JWT token with the standard Spring security? I want to use the user groups passed in the ... | [
{
"answer_id": 74320692,
"author": "ch4mp",
"author_id": 619830,
"author_profile": "https://Stackoverflow.com/users/619830",
"pm_score": 1,
"selected": false,
"text": "<dependency>\n <groupId>com.c4-soft.springaddons</groupId>\n <!-- replace \"webmvc\" with \"weblux\" if your app i... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74320061",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2851799/"
] |
74,320,153 | <p>So, I have the following two dataframes:</p>
<p>DF1 looks like following:</p>
<pre><code>+---------+-----------+
| Name | Money |
+---------+-----------+
| A | 50.3 |
| B | 26.9 |
| C | 11.4 |
| A | 35.8 |
| B | 59.2 |
| A | 90.8 |
| C | ... | [
{
"answer_id": 74320203,
"author": "iDevlop",
"author_id": 78522,
"author_profile": "https://Stackoverflow.com/users/78522",
"pm_score": 0,
"selected": false,
"text": "Select * from df1 \nwhere df1.name in (\n Select name from df2)\n"
},
{
"answer_id": 74320333,
"author": "O... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74320153",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2941501/"
] |
74,320,161 | <p>I'm trying to format a PostgreSQL query in python and that query has to have '%' between the name of a survey so I can filter surveys by name.</p>
<p>Here is the code:</p>
<pre><code>sql = """select survey_data
from survey_data.survey_data
where codigo_do_projeto like '%s%'
ORDER BY data_de_inicio_da... | [
{
"answer_id": 74320229,
"author": "jprebys",
"author_id": 3268228,
"author_profile": "https://Stackoverflow.com/users/3268228",
"pm_score": -1,
"selected": false,
"text": "survey_name sql = \"\"\"SELECT survey_data\nFROM survey_data.survey_data \nWHERE project_code like '%{0}%'\nORDER B... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74320161",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19426499/"
] |
74,320,176 | <p>In my app I have a <code>Dictionary<ContainerControl, int></code>.
I need to check if a key is present in the dictionary and alter its corresponding value if key is found or add the key if not already present.
The key for my dictionary is a ControlContainer object.
I could use this method:</p>
<pre><code>var ... | [
{
"answer_id": 74320238,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 4,
"selected": true,
"text": "KeyValuePair<,> GetKeyValuePair kvp.Value++ Value TryGetValue // value will be 0 if TryGetValue returns false\nif (dict... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74320176",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5573170/"
] |
74,320,191 | <p>I have a directory which contains files like this :
{users_20221104.txt | users_20221105.txt |
users_20221106.txt</p>
<p>dealers_20221104.txt |
dealers_20221105.txt |
dealers_20221106.txt |</p>
<p>nations_20221104.txt |
nations_20221105.txt |
nations_20221106.txt }</p>
<p>I need to retrieve only the last file of eac... | [
{
"answer_id": 74320238,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 4,
"selected": true,
"text": "KeyValuePair<,> GetKeyValuePair kvp.Value++ Value TryGetValue // value will be 0 if TryGetValue returns false\nif (dict... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74320191",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19350908/"
] |
74,320,199 | <p>Hope you are all doing fine!
I am running with some difficulties when I want to deploy this api. I keep on receiving the message:"UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise w... | [
{
"answer_id": 74320238,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 4,
"selected": true,
"text": "KeyValuePair<,> GetKeyValuePair kvp.Value++ Value TryGetValue // value will be 0 if TryGetValue returns false\nif (dict... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74320199",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17959237/"
] |
74,320,227 | <p>So the idea is to scrap this particular page</p>
<p><a href="https://www.perlego.com/book/921329/getting-started-with-python-understand-key-data-structures-and-use-python-in-objectoriented-programming-pdf?queryID=9315f2c9285af80efdc99eaa9c5621bc&index=prod_BOOKS&gridPosition=2" rel="nofollow noreferrer">gett... | [
{
"answer_id": 74320893,
"author": "Andrej Kesely",
"author_id": 10035985,
"author_profile": "https://Stackoverflow.com/users/10035985",
"pm_score": 1,
"selected": false,
"text": "requests json import json\nimport requests\n\n# the number at the end of URL is ID of the boook:\najax_url =... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74320227",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10872352/"
] |
74,320,247 | <p>Given this data frame called 'names' and a series calles 'surnames', which is sorted differently, is it possible to use the assign function to add (on the left) the series to the data frame, to create a new data frame and maintain the order of 'name'?</p>
<pre><code> name = pd.DataFrame({'name': ['Max', 'Andre', 'Al... | [
{
"answer_id": 74320346,
"author": "finman69",
"author_id": 19628700,
"author_profile": "https://Stackoverflow.com/users/19628700",
"pm_score": 1,
"selected": false,
"text": "import pandas as pd\nname = pd.DataFrame({'name': ['Max', 'Andre', 'Albert'],\n'country': ['Germany', 'France', '... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74320247",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20273795/"
] |
74,320,285 | <p>I'm trying to make a footer with an image in the centre and a paragraph on the left side of the footer. This is what I have:
<a href="https://i.stack.imgur.com/WGqe5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WGqe5.png" alt="enter image description here" /></a></p>
<p>As you can see while the... | [
{
"answer_id": 74320346,
"author": "finman69",
"author_id": 19628700,
"author_profile": "https://Stackoverflow.com/users/19628700",
"pm_score": 1,
"selected": false,
"text": "import pandas as pd\nname = pd.DataFrame({'name': ['Max', 'Andre', 'Albert'],\n'country': ['Germany', 'France', '... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74320285",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20197071/"
] |
74,320,308 | <p>I am returning a promise, but I am trying to return a string AND a promise. Is there a way to link the two <strong>without</strong> having to return it from the promise?</p>
<p>for example if my input was</p>
<pre><code>[
{
keepme:"abcd",
sql:"select top(1) * from X"
}
]
</code></pre>... | [
{
"answer_id": 74320346,
"author": "finman69",
"author_id": 19628700,
"author_profile": "https://Stackoverflow.com/users/19628700",
"pm_score": 1,
"selected": false,
"text": "import pandas as pd\nname = pd.DataFrame({'name': ['Max', 'Andre', 'Albert'],\n'country': ['Germany', 'France', '... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74320308",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1634753/"
] |
74,320,337 | <p>im triying to center this element in the screen, and also when i hover.</p>
<p>In my example below, the div is not centred, even when i hover it knowing that i made the transform 50% and top/left too, that's what i use uselly to center an element.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-con... | [
{
"answer_id": 74320485,
"author": "Laaouatni Anas",
"author_id": 17716837,
"author_profile": "https://Stackoverflow.com/users/17716837",
"pm_score": 2,
"selected": false,
"text": ":hover translate() .zoom:hover {\n transform: scale(1.5); \n}\n .zoom:hover {\n transform: \n scale(1... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74320337",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18631280/"
] |
74,320,351 | <p>I have duplicate rows in a <code>PySpark</code> data frame and I want to combine and <code>sum</code> all of them into one row per column based on duplicate entries in one column.</p>
<p><strong>Current Table</strong></p>
<pre><code>Deal_ID Title Customer In_Progress Deal_Total
30 Deal 1 Client A 350 ... | [
{
"answer_id": 74320485,
"author": "Laaouatni Anas",
"author_id": 17716837,
"author_profile": "https://Stackoverflow.com/users/17716837",
"pm_score": 2,
"selected": false,
"text": ":hover translate() .zoom:hover {\n transform: scale(1.5); \n}\n .zoom:hover {\n transform: \n scale(1... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74320351",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6932839/"
] |
74,320,352 | <p>Everytime an EC2 instance gets created, I want to run a script on that instance. I understand this could be done using the <strong>user_data</strong> parameter but some of these instances get created manually so people may forget to fill in that parameter sometimes. I want to rely on something automatic instead.</p>... | [
{
"answer_id": 74321023,
"author": "Paolo",
"author_id": 3390419,
"author_profile": "https://Stackoverflow.com/users/3390419",
"pm_score": 3,
"selected": true,
"text": "{\n \"source\": [\"aws.ec2\"],\n \"detail-type\": [\"AWS API Call via CloudTrail\"],\n \"detail\": {\n \"eventSou... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74320352",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8368348/"
] |
74,320,367 | <p>I have hundreds of word documents that needs to be processed but need to organized them first by versions in subfolders.</p>
<p>I basically get a drop of these word documents within a single folder and need to automate the organization moving forward before I get nuts.</p>
<p>So I have a script that basically creat... | [
{
"answer_id": 74321023,
"author": "Paolo",
"author_id": 3390419,
"author_profile": "https://Stackoverflow.com/users/3390419",
"pm_score": 3,
"selected": true,
"text": "{\n \"source\": [\"aws.ec2\"],\n \"detail-type\": [\"AWS API Call via CloudTrail\"],\n \"detail\": {\n \"eventSou... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74320367",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7839023/"
] |
74,320,404 | <p>I want that blue color apply to each line after 500ms. I am new to JavaScript I tried everything but nothing work..</p>
<p>here is the 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 prettyprin... | [
{
"answer_id": 74320446,
"author": "milner236",
"author_id": 17891020,
"author_profile": "https://Stackoverflow.com/users/17891020",
"pm_score": -1,
"selected": false,
"text": "para[index].classList.add(\"blue\");\n"
},
{
"answer_id": 74320458,
"author": "Dr. Vortex",
"au... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74320404",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12846302/"
] |
74,320,428 | <p>I am trying to create a subtract function using pointers for 2d array but when I run it I get</p>
<blockquote>
<p>expression must have pointer-to-object type but it has type "int"C/C++(142)</p>
</blockquote>
<p>Can anybody explain why i'm getting this error and what is a better way around this?</p>
<p>this... | [
{
"answer_id": 74320896,
"author": "Andreas Wenzel",
"author_id": 12149471,
"author_profile": "https://Stackoverflow.com/users/12149471",
"pm_score": 1,
"selected": false,
"text": "[] A[B]\n *(A + B)\n A[B][C]\n *( *(A+B) + C )\n &arrC[i][j] = &arrA[i][j] - &arrB[i][j];\n &*( *(arrC+i) ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74320428",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20415156/"
] |
74,320,436 | <p>i have a parent component returning a flatlist , renderItem of flatlist returns child component , that child component makes a an api call so the parent component should wait promise of every child. I have tried to handle that by creating a promise inside useeffect but this did not work , could you help ,here is my ... | [
{
"answer_id": 74320896,
"author": "Andreas Wenzel",
"author_id": 12149471,
"author_profile": "https://Stackoverflow.com/users/12149471",
"pm_score": 1,
"selected": false,
"text": "[] A[B]\n *(A + B)\n A[B][C]\n *( *(A+B) + C )\n &arrC[i][j] = &arrA[i][j] - &arrB[i][j];\n &*( *(arrC+i) ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74320436",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9758009/"
] |
74,320,480 | <p>I want to use a circle ci yaml pipeline to deploy to a Heroku App.</p>
<p>The yaml file I have right now is:</p>
<pre><code>version: 2.1
orbs:
heroku: circleci/heroku@0.0.10
jobs:
heroku_deploy_review_app:
executor: heroku/default
steps:
- checkout
- heroku/install
- heroku/deploy-via... | [
{
"answer_id": 74320896,
"author": "Andreas Wenzel",
"author_id": 12149471,
"author_profile": "https://Stackoverflow.com/users/12149471",
"pm_score": 1,
"selected": false,
"text": "[] A[B]\n *(A + B)\n A[B][C]\n *( *(A+B) + C )\n &arrC[i][j] = &arrA[i][j] - &arrB[i][j];\n &*( *(arrC+i) ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74320480",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13815587/"
] |
74,320,496 | <p>I have web-page where I am trying to automate publishing of products with Selenium.</p>
<p>You can check situation here:
<a href="https://player.vimeo.com/video/767368522?h=a8feaf8791" rel="nofollow noreferrer">https://player.vimeo.com/video/767368522?h=a8feaf8791</a></p>
<p>I am able to click onto everything else b... | [
{
"answer_id": 74320896,
"author": "Andreas Wenzel",
"author_id": 12149471,
"author_profile": "https://Stackoverflow.com/users/12149471",
"pm_score": 1,
"selected": false,
"text": "[] A[B]\n *(A + B)\n A[B][C]\n *( *(A+B) + C )\n &arrC[i][j] = &arrA[i][j] - &arrB[i][j];\n &*( *(arrC+i) ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74320496",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20380926/"
] |
74,320,498 | <p>Hello I am trying to pass an input's event and another object as arguments to a change handler function.it works fine if you only pass e (I mean event) to function ,but when I try to add the second argument the first argument that is the Event disappears .I don't know what to pass as the first argument to fit as eve... | [
{
"answer_id": 74320896,
"author": "Andreas Wenzel",
"author_id": 12149471,
"author_profile": "https://Stackoverflow.com/users/12149471",
"pm_score": 1,
"selected": false,
"text": "[] A[B]\n *(A + B)\n A[B][C]\n *( *(A+B) + C )\n &arrC[i][j] = &arrA[i][j] - &arrB[i][j];\n &*( *(arrC+i) ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74320498",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16407358/"
] |
74,320,499 | <p>I looked at some threads but I think I'm missing something in Microsoft SQL Server (SSMS).</p>
<p>I have XML in column defined as <code>XML</code> datatype that looks like this:</p>
<p>(<em>I erased stuff before this not sure if it's needed</em>)</p>
<pre><code><ItemGroupData ItemGroupOID="TEST" Transac... | [
{
"answer_id": 74320802,
"author": "marc_s",
"author_id": 13302,
"author_profile": "https://Stackoverflow.com/users/13302",
"pm_score": 0,
"selected": false,
"text": "<root>....</root> DECLARE @XmlTbl TABLE (ID INT NOT NULL, XmlData XML)\n\nINSERT INTO @XmlTbl (ID, XmlData)\nVALUES (1, \... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74320499",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2532928/"
] |
74,320,521 | <p>I'm unable to get spring boot to automatically load my database schema when I start it up. I am using MySQL as an external DB. Please find below the code</p>
<p>application properties</p>
<pre><code>spring.jpa.database-platform=org.hibernate.dialect.MySQL5InnoDBDialect
spring.jpa.hibernate.ddl-auto=update
spring.da... | [
{
"answer_id": 74320802,
"author": "marc_s",
"author_id": 13302,
"author_profile": "https://Stackoverflow.com/users/13302",
"pm_score": 0,
"selected": false,
"text": "<root>....</root> DECLARE @XmlTbl TABLE (ID INT NOT NULL, XmlData XML)\n\nINSERT INTO @XmlTbl (ID, XmlData)\nVALUES (1, \... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74320521",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15582416/"
] |
74,320,584 | <pre><code>def compa9():
a=int(input("enter the first number"))
b=int(input("enter the second number"))
compa9()
if a==b:
a==a
b==b
print("they are equal")
if a>b:
a==a
b==b
print (a,"is bigger and") (b,"is smaller")
if a<b:
a=... | [
{
"answer_id": 74320802,
"author": "marc_s",
"author_id": 13302,
"author_profile": "https://Stackoverflow.com/users/13302",
"pm_score": 0,
"selected": false,
"text": "<root>....</root> DECLARE @XmlTbl TABLE (ID INT NOT NULL, XmlData XML)\n\nINSERT INTO @XmlTbl (ID, XmlData)\nVALUES (1, \... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74320584",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14558059/"
] |
74,320,605 | <p>I want to use system call(s) to grab values from first data line in file file and print into legend of plot.</p>
<p>The command returns a syntax error. I admit come confusion about a- the use of system calls and syntax, despite reading few advanced questions here.</p>
<p>This is what I have:</p>
<p>gnuplot> plot... | [
{
"answer_id": 74320802,
"author": "marc_s",
"author_id": 13302,
"author_profile": "https://Stackoverflow.com/users/13302",
"pm_score": 0,
"selected": false,
"text": "<root>....</root> DECLARE @XmlTbl TABLE (ID INT NOT NULL, XmlData XML)\n\nINSERT INTO @XmlTbl (ID, XmlData)\nVALUES (1, \... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74320605",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12520696/"
] |
74,320,618 | <p>Problem</p>
<p>The code is to decode the word in such a way that For every letter x, if it is the ith letter of</p>
<p>the alphabet starting from the left, replace it with the ith letter starting from the right.</p>
<p>. For example, the string 'abcd' would be encoded to 'zyxw'.</p>
<p>Note: all the letters of the w... | [
{
"answer_id": 74320802,
"author": "marc_s",
"author_id": 13302,
"author_profile": "https://Stackoverflow.com/users/13302",
"pm_score": 0,
"selected": false,
"text": "<root>....</root> DECLARE @XmlTbl TABLE (ID INT NOT NULL, XmlData XML)\n\nINSERT INTO @XmlTbl (ID, XmlData)\nVALUES (1, \... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74320618",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20419561/"
] |
74,320,650 | <p>I am trying to deploy <strong>istio's sample bookinfo application</strong> using the below command:</p>
<pre><code>kubectl apply -f samples/bookinfo/platform/kube/bookinfo.yaml
</code></pre>
<p>from <a href="https://istio.io/latest/docs/setup/getting-started/#bookinfo" rel="nofollow noreferrer">here</a></p>
<p>but e... | [
{
"answer_id": 74321582,
"author": "paltaa",
"author_id": 6855531,
"author_profile": "https://Stackoverflow.com/users/6855531",
"pm_score": 1,
"selected": false,
"text": "context deadline exceeded"
},
{
"answer_id": 74321902,
"author": "mnhmilu",
"author_id": 1206344,
... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74320650",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1206344/"
] |
74,320,667 | <p>So at my previous role, whenever someone created a branch in 'develop' I could refresh/ pull and the branch would appear in my VSC Source control. If a branch was deleted on GitHub, the branch also deleted (disappeared) in VSC. In this new repo, we work off of main and branches, more as a place to store code, rather... | [
{
"answer_id": 74321582,
"author": "paltaa",
"author_id": 6855531,
"author_profile": "https://Stackoverflow.com/users/6855531",
"pm_score": 1,
"selected": false,
"text": "context deadline exceeded"
},
{
"answer_id": 74321902,
"author": "mnhmilu",
"author_id": 1206344,
... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74320667",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13467487/"
] |
74,320,671 | <p>I need to make my styles to occur one after another after some interval time.</p>
<p>JS</p>
<pre><code>element.style.cssText = "width: 400px; height:400px; background-color:blue;
border: 1px solid green; border-radius: 10px; text-align: center; color:white; "
setInterval(function () {element.innerHTML +=... | [
{
"answer_id": 74320742,
"author": "Dr. Vortex",
"author_id": 17637456,
"author_profile": "https://Stackoverflow.com/users/17637456",
"pm_score": 0,
"selected": false,
"text": "element.style.cssText element.style element.innerHTML HTMLElement#style Element#innerHTML"
},
{
"answer... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74320671",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18920245/"
] |
74,320,693 | <p>it is necessary that when you click on the button, the 'active' class is removed from the first div, and added to the second. When pressed again, the active class was removed from the active block and added to the next one, and so on until the end</p>
<pre><code><div class="main">
<div class=&qu... | [
{
"answer_id": 74320742,
"author": "Dr. Vortex",
"author_id": 17637456,
"author_profile": "https://Stackoverflow.com/users/17637456",
"pm_score": 0,
"selected": false,
"text": "element.style.cssText element.style element.innerHTML HTMLElement#style Element#innerHTML"
},
{
"answer... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74320693",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20419637/"
] |
74,320,702 | <p>I have this search which filters the elements directly when I type letters in the input field. And now I want to reset the search by clicking on the 'x'.</p>
<p>So far the filter only reacts 'live' and goes back to the initial state when I delete the letters with the backspace key. But when I click on the 'x' it jus... | [
{
"answer_id": 74320742,
"author": "Dr. Vortex",
"author_id": 17637456,
"author_profile": "https://Stackoverflow.com/users/17637456",
"pm_score": 0,
"selected": false,
"text": "element.style.cssText element.style element.innerHTML HTMLElement#style Element#innerHTML"
},
{
"answer... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74320702",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20419085/"
] |
74,320,720 | <p>I have some existing code that uses boto3 (python) DynamoDB Table objects to query the database:</p>
<pre class="lang-py prettyprint-override"><code>import boto3
resource = boto3.resource("dynamodb")
table = resource.table("my_table")
# Do stuff here
</code></pre>
<p>We now want to run the tests ... | [
{
"answer_id": 74320872,
"author": "jarmod",
"author_id": 271415,
"author_profile": "https://Stackoverflow.com/users/271415",
"pm_score": 3,
"selected": true,
"text": "resource = boto3.resource('dynamodb', endpoint_url='http://localhost:8000')\ntable = resource.Table(name)\n"
},
{
... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74320720",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5734324/"
] |
74,320,722 | <p>I am making a little program in C# that checks if input is an arithmetic array or a normal array.</p>
<p>The problem is when I make a for loop that checks if the array is arithmetic, I lose the last two elements off the array because i had to reduce <code>numbers.Length</code> with 2, otherwise I would get an error ... | [
{
"answer_id": 74320872,
"author": "jarmod",
"author_id": 271415,
"author_profile": "https://Stackoverflow.com/users/271415",
"pm_score": 3,
"selected": true,
"text": "resource = boto3.resource('dynamodb', endpoint_url='http://localhost:8000')\ntable = resource.Table(name)\n"
},
{
... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74320722",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19813966/"
] |
74,320,756 | <p>Ok so I know pretty easy to horizontally align a text inside a div using <code>text-align</code> but I want to remove it from the top of the div. I tried using <code>vertical-align</code> but it didn't work out.</p>
<p>Here's how it is looking right now</p>
<p><a href="https://i.stack.imgur.com/dtuSF.png" rel="nofol... | [
{
"answer_id": 74320850,
"author": "Johannes",
"author_id": 5641669,
"author_profile": "https://Stackoverflow.com/users/5641669",
"pm_score": 0,
"selected": false,
"text": "line-height: 40px; div .container {\n background-color: rgb(255, 255, 255);\n max-width: 95%;\n margin: 0 auto;\... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74320756",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20419516/"
] |
74,320,761 | <p>I'm trying to implement simple sort with items that are in a state.</p>
<p>This will work perfectly, only problem is that the animation is now gone, because it doesn't have a key.</p>
<pre><code>LazyColumn(
state = listState,
) {
items(items.size) { index ->
val ticker = items[index]
Card(... | [
{
"answer_id": 74320850,
"author": "Johannes",
"author_id": 5641669,
"author_profile": "https://Stackoverflow.com/users/5641669",
"pm_score": 0,
"selected": false,
"text": "line-height: 40px; div .container {\n background-color: rgb(255, 255, 255);\n max-width: 95%;\n margin: 0 auto;\... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74320761",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4527839/"
] |
74,320,765 | <p>I am looking to remove END from 'Task' column if there is no START before it. The data can be grouped by 'Session' and if the first occurance of the 'Task' is END, then I want to replace that specific occurrence with nAn value.</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th></th>
<th>Se... | [
{
"answer_id": 74321225,
"author": "DarrylG",
"author_id": 3066077,
"author_profile": "https://Stackoverflow.com/users/3066077",
"pm_score": 1,
"selected": false,
"text": "def remove_unmatched(x):\n ' removes \"END\" value when not preceeded by \"START\" '\n preceeded = False\n ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74320765",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
74,320,804 | <p>I have a react-native project which will fetch all of a users Ethereum tokens, hopefully, using the Alchemy SDK. I have a function that should retrieve all token balances according to the documentation.</p>
<pre><code>import 'react-native-get-random-values';
import '@ethersproject/shims';
import { Network, Alchemy... | [
{
"answer_id": 74321225,
"author": "DarrylG",
"author_id": 3066077,
"author_profile": "https://Stackoverflow.com/users/3066077",
"pm_score": 1,
"selected": false,
"text": "def remove_unmatched(x):\n ' removes \"END\" value when not preceeded by \"START\" '\n preceeded = False\n ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74320804",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13949933/"
] |
74,320,853 | <p><a href="https://i.stack.imgur.com/nf7L0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nf7L0.png" alt="enter image description here" /></a></p>
<p>It doesn't show me the code output. Should I change the setting or configure something ?</p>
<p>I tried edit task.json and reinstall VScode.</p>
| [
{
"answer_id": 74321550,
"author": "oarcas",
"author_id": 7920351,
"author_profile": "https://Stackoverflow.com/users/7920351",
"pm_score": 0,
"selected": false,
"text": "cd /Users/seal/Desktop/projects/cpp\n./practice\n /usr/bin/clang++ -fcolor-diagnostics -fansi-escape-codes -g /Users/... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74320853",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20419726/"
] |
74,320,884 | <p><code>enter code here</code>This is the original code that I wrote:</p>
<pre><code>while True:
user_input = (input(">>",))
try:
user_input = int(user_input)
except ValueError:
pass
if user_input in range(1, len(something):
break
</code></pre>
<p>I want to put i... | [
{
"answer_id": 74321550,
"author": "oarcas",
"author_id": 7920351,
"author_profile": "https://Stackoverflow.com/users/7920351",
"pm_score": 0,
"selected": false,
"text": "cd /Users/seal/Desktop/projects/cpp\n./practice\n /usr/bin/clang++ -fcolor-diagnostics -fansi-escape-codes -g /Users/... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74320884",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20419708/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.