qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,500,433 | <p>How can I expand this to count all input boxes in a form that is <code>type="number"</code> but is currently disabled?</p>
<pre><code>let countIN = document.getElementsByTagName('input').length;
</code></pre>
<p>I can count all the input boxes (which included checkboxes) but I want to only count the specif... | [
{
"answer_id": 74500465,
"author": "Andy",
"author_id": 1377002,
"author_profile": "https://Stackoverflow.com/users/1377002",
"pm_score": 3,
"selected": true,
"text": "querySelectorAll [type=\"number\"]:disabled input input[type=\"number\"]:disabled const selector = '[type=\"number\"]:di... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74500433",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13062685/"
] |
74,500,458 | <p>I am currently working on a huge csv file with pandas, and I need to find and print similarity between the selected row and every other row. For example if the string is "Card" and the second string is "Credit Card Debit Card" it should return 2 or if the first string is "Credit Card" a... | [
{
"answer_id": 74500465,
"author": "Andy",
"author_id": 1377002,
"author_profile": "https://Stackoverflow.com/users/1377002",
"pm_score": 3,
"selected": true,
"text": "querySelectorAll [type=\"number\"]:disabled input input[type=\"number\"]:disabled const selector = '[type=\"number\"]:di... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74500458",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18693210/"
] |
74,500,463 | <p>I am using PostgreSQL 11.2. I have replication slots setup. I am able to commit to a table and see it on the standby. I have few more standbys. How can I see from the master what other standbys I have?</p>
| [
{
"answer_id": 74507709,
"author": "Laurenz Albe",
"author_id": 6464308,
"author_profile": "https://Stackoverflow.com/users/6464308",
"pm_score": 2,
"selected": true,
"text": "pg_stat_replication client_addr"
},
{
"answer_id": 74507854,
"author": "Ronak Jain",
"author_id"... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74500463",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3589054/"
] |
74,500,468 | <blockquote>
<p>Using the Switch Statement, create a program that will ask the user to input number from 1 - 12, then each number corresponds a month in the calendar. If the number is not on the range display "The value is not on the calendar." Then it will ask the user if they want to try again a number or i... | [
{
"answer_id": 74500641,
"author": "OneCricketeer",
"author_id": 2308683,
"author_profile": "https://Stackoverflow.com/users/2308683",
"pm_score": 1,
"selected": false,
"text": "System.out.print(\"Enter month's number: \");\ntry {\n int monthNumber = Integer.parseInt(in.nextLine()); \... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74500468",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20547923/"
] |
74,500,484 | <p>I have an array</p>
<pre><code>[
a1,
b1,
c1,
d1,
a2,
b2,
c2,
d2
]
</code></pre>
<p>and I would like to convert it to:</p>
<pre><code>{
0: {
name: a1,
tel: b1,
mail: c1,
address: d1
},
1: {
name: a2,
tel: b2,
mail: c2,
address: d2
... | [
{
"answer_id": 74500545,
"author": "Andrew Parks",
"author_id": 5898421,
"author_profile": "https://Stackoverflow.com/users/5898421",
"pm_score": 3,
"selected": true,
"text": "const d = ['a1','b1','c1','d1','a2','b2','c2','d2']\n\nconst f = ([name, tel, mail, address, ...rest]) =>\n [{n... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74500484",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16571949/"
] |
74,500,500 | <p>I am new to AWS and trying to deploy a GraphQL API written in NodeJS as an AWS Lambda using Serverless. I have followed several tutorials that are close to what I am doing but cannot get the handler to work. The closest tutorial to what I am doing was using JavaScript, where I am using TypeScript. I followed closely... | [
{
"answer_id": 74500545,
"author": "Andrew Parks",
"author_id": 5898421,
"author_profile": "https://Stackoverflow.com/users/5898421",
"pm_score": 3,
"selected": true,
"text": "const d = ['a1','b1','c1','d1','a2','b2','c2','d2']\n\nconst f = ([name, tel, mail, address, ...rest]) =>\n [{n... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74500500",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3349255/"
] |
74,500,511 | <p>I just want to know what is going on in this program</p>
<pre><code> sum = 0 #setting sum to 0
for i in range(len(m)):
for j in range(len(m[i])):
if i <= j:
sum = sum + m[i][j]
return sum
print((sum_above_diagonal([[6, 2, 0, 6, 1], [6, 8, 2, 5, 8], [0, 6, 3, 2, 3]])))
</code></pre>
<p>I u... | [
{
"answer_id": 74500545,
"author": "Andrew Parks",
"author_id": 5898421,
"author_profile": "https://Stackoverflow.com/users/5898421",
"pm_score": 3,
"selected": true,
"text": "const d = ['a1','b1','c1','d1','a2','b2','c2','d2']\n\nconst f = ([name, tel, mail, address, ...rest]) =>\n [{n... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74500511",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20311710/"
] |
74,500,548 | <p>There is an array for each id key that is not needed. That is kind of a group break.</p>
<pre><code>const header = [
[
{ id: "1",
text: "A",
},
],
[
{ id: "2",
text: "B",
array:[1,2,3],
},
{ id: "2",
text: "B1",
},
],
[
{ id: "3",
text:... | [
{
"answer_id": 74500545,
"author": "Andrew Parks",
"author_id": 5898421,
"author_profile": "https://Stackoverflow.com/users/5898421",
"pm_score": 3,
"selected": true,
"text": "const d = ['a1','b1','c1','d1','a2','b2','c2','d2']\n\nconst f = ([name, tel, mail, address, ...rest]) =>\n [{n... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74500548",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20547743/"
] |
74,500,592 | <p>I'm trying to come up with a function that gives me a "factorial" of a number but in a different way.
For example:</p>
<p><code>15! = 15*14/13+12-11*10/9... </code> and so on.</p>
<p>I tried doing this by first creating an array and, then, a loop to get to the result. But it doesn't work as expected. The r... | [
{
"answer_id": 74501085,
"author": "André",
"author_id": 13970434,
"author_profile": "https://Stackoverflow.com/users/13970434",
"pm_score": 2,
"selected": false,
"text": "console.log(((((12*11)/10+9-8)*7/6+5-4)*3)/2+1); console.log(12*11/10+9-8*7/6+5-4*3/2+1); // returns 12.86\n\nconsol... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74500592",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20544020/"
] |
74,500,624 | <p>I want to build a self updating filter with checkboxes.</p>
<p>My Data:</p>
<pre class="lang-js prettyprint-override"><code>
const Shooting= [
{
name: "John & Johna ",
tag: ["wedding", "couple"],
img: [ src1 , src2, ...] //irrelevant
},
{
name: &q... | [
{
"answer_id": 74501085,
"author": "André",
"author_id": 13970434,
"author_profile": "https://Stackoverflow.com/users/13970434",
"pm_score": 2,
"selected": false,
"text": "console.log(((((12*11)/10+9-8)*7/6+5-4)*3)/2+1); console.log(12*11/10+9-8*7/6+5-4*3/2+1); // returns 12.86\n\nconsol... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74500624",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19749827/"
] |
74,500,631 | <p><img src="https://i.stack.imgur.com/Yofg3.png" alt="enter image description here" /></p>
<p>I tried use this:</p>
<pre><code>border: 1px solid #7BE34A;
box-shadow: 0px 4px 25px rgba(123, 227, 74, 0.25);
border: 1px solid #28780D;
box-shadow: 0px 4px 25px rgba(40, 120, 13, 0.25);
</code></pre>
<p>from figma, but it ... | [
{
"answer_id": 74500694,
"author": "Abdullah Sami",
"author_id": 14248251,
"author_profile": "https://Stackoverflow.com/users/14248251",
"pm_score": 2,
"selected": false,
"text": ".line {\n border-top : 1px solid #000;\n position : relative;\n width : 100px\n }\n.line:after {\... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74500631",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20548061/"
] |
74,500,654 | <p>I have a tricky problem and I'm working on it for several hours but can't find a cause and solution of it. Hope someone help me.</p>
<p>I have to demonstrate function being called inside another function( pls see the comment in seminar.cpp)</p>
<p>Below are the files ( I have separated it into header and code files)... | [
{
"answer_id": 74500762,
"author": "Nelfeal",
"author_id": 3854570,
"author_profile": "https://Stackoverflow.com/users/3854570",
"pm_score": 3,
"selected": true,
"text": "std::function<std::vector<uint8_t>(Nor::Range &)> Func = &drive;\n drive this std::function<std::vector<uint8_t>(Nor:... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74500654",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20483318/"
] |
74,500,670 | <p>I am new to selenium, and I get the following error: <code>element click intercepted: Element is not clickable at point (774, 8907)</code> whenever I run this code on the webpage that has the show more button. My goal is to get every element of the "table" on the webpage, but in order to do so I need to cl... | [
{
"answer_id": 74500984,
"author": "AbiSaran",
"author_id": 7671727,
"author_profile": "https://Stackoverflow.com/users/7671727",
"pm_score": 0,
"selected": false,
"text": "show_more_lnk = driver.find_element(By.CSS_SELECTOR, \".tpl-showmore-content\")\ndriver.execute_script(\"arguments[... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74500670",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16317247/"
] |
74,500,683 | <p>`</p>
<pre><code>router.post("/login", (req, res) => {
console.log(req.body.username)
console.log(req.body.password)
res.redirect("/")
})
</code></pre>
<p><code> </code></p>
<pre><code><body>
<form action="/register" method="post">
&... | [
{
"answer_id": 74500984,
"author": "AbiSaran",
"author_id": 7671727,
"author_profile": "https://Stackoverflow.com/users/7671727",
"pm_score": 0,
"selected": false,
"text": "show_more_lnk = driver.find_element(By.CSS_SELECTOR, \".tpl-showmore-content\")\ndriver.execute_script(\"arguments[... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74500683",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20548073/"
] |
74,500,726 | <p>How to find smallest element of array V(12,9) and its number?</p>
<pre><code>Private Sub Command2_Click()
Dim V(1 To 12, 1 To 9) As Integer
Randomize
For i = 1 To 12
For j = 1 To 9
V(i, j) = Rnd * 50
Next j
Next i
</code></pre>
| [
{
"answer_id": 74500848,
"author": "cooogeee",
"author_id": 3003395,
"author_profile": "https://Stackoverflow.com/users/3003395",
"pm_score": 0,
"selected": false,
"text": "Dim i as Long\nDim j as Long\n V(i, j) = Rnd * 50\n Debug.Print WorksheetFunction.Min(V)\n"
},
{
"answer_id... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74500726",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20356699/"
] |
74,500,748 | <p>I am creating a simple blogging application and would like users to be able to like a post.</p>
<p>In terms of scalability I've decided it would be best to have likes as a separate table made up of pointers to both the user and post.</p>
<p>I have managed to enable the post request adding a like to the model however... | [
{
"answer_id": 74500848,
"author": "cooogeee",
"author_id": 3003395,
"author_profile": "https://Stackoverflow.com/users/3003395",
"pm_score": 0,
"selected": false,
"text": "Dim i as Long\nDim j as Long\n V(i, j) = Rnd * 50\n Debug.Print WorksheetFunction.Min(V)\n"
},
{
"answer_id... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74500748",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14611431/"
] |
74,500,765 | <p>So I am getting a list of strings from a server,</p>
<pre><code>let a="18647AF0D0,59,6]1864726D1,65,5]1864726A,85,5]1864726A,75,5]";
</code></pre>
<p>and with every set of data I am adding a close bracket, which means the set of data is now complete.</p>
<p>So The data look like this</p>
<pre><code>mac = &... | [
{
"answer_id": 74500848,
"author": "cooogeee",
"author_id": 3003395,
"author_profile": "https://Stackoverflow.com/users/3003395",
"pm_score": 0,
"selected": false,
"text": "Dim i as Long\nDim j as Long\n V(i, j) = Rnd * 50\n Debug.Print WorksheetFunction.Min(V)\n"
},
{
"answer_id... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74500765",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14461920/"
] |
74,500,767 | <p>I am trying to create a dynamodb table from yml file to make a microservice, but it tells me that the table does not exist</p>
<p>Error:
UPDATE_FAILED: productGroupTable (AWS::DynamoDB::Table)
Resource handler returned message: "Table: productGroupTableDev does not exist." (RequestToken: bdc2ae26-5fde-6965... | [
{
"answer_id": 74500848,
"author": "cooogeee",
"author_id": 3003395,
"author_profile": "https://Stackoverflow.com/users/3003395",
"pm_score": 0,
"selected": false,
"text": "Dim i as Long\nDim j as Long\n V(i, j) = Rnd * 50\n Debug.Print WorksheetFunction.Min(V)\n"
},
{
"answer_id... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74500767",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20457279/"
] |
74,500,779 | <p>I have written some type conversion operators which only make sense in the context of a subset of types.</p>
<p>An example is below</p>
<pre><code>explicit virtual operator DataId<float>() const
{
static_assert(std::is_same_v<T, DataId<float>>, "std::is_same_v<T, DataId<float>>... | [
{
"answer_id": 74500848,
"author": "cooogeee",
"author_id": 3003395,
"author_profile": "https://Stackoverflow.com/users/3003395",
"pm_score": 0,
"selected": false,
"text": "Dim i as Long\nDim j as Long\n V(i, j) = Rnd * 50\n Debug.Print WorksheetFunction.Min(V)\n"
},
{
"answer_id... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74500779",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/893254/"
] |
74,500,810 | <p>I have the following query:</p>
<pre><code>MATCH (n) WHERE n.uid IN $uids
WITH n as nodes, apoc.agg.minItems(n, n.level).items as highestNode
MATCH (nodes)-[:TRANSLATES_TO]-(a) where a.tree_id = apoc.agg.first(highestNode).tree_id
return nodes, a
</code></pre>
<p>I'm getting the error <code>Aggregations should not b... | [
{
"answer_id": 74500848,
"author": "cooogeee",
"author_id": 3003395,
"author_profile": "https://Stackoverflow.com/users/3003395",
"pm_score": 0,
"selected": false,
"text": "Dim i as Long\nDim j as Long\n V(i, j) = Rnd * 50\n Debug.Print WorksheetFunction.Min(V)\n"
},
{
"answer_id... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74500810",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14790871/"
] |
74,500,818 | <h1>Problem Statement</h1>
<p>I am trying to run a JavaScript code inside Python using <a href="https://github.com/cloudflare/stpyv8" rel="nofollow noreferrer">stpyv8</a>. However, I am getting the following error:</p>
<pre><code>Traceback (most recent call last):
File "/home/bobby/uni_balances_stpyv8/main.py&qu... | [
{
"answer_id": 74500848,
"author": "cooogeee",
"author_id": 3003395,
"author_profile": "https://Stackoverflow.com/users/3003395",
"pm_score": 0,
"selected": false,
"text": "Dim i as Long\nDim j as Long\n V(i, j) = Rnd * 50\n Debug.Print WorksheetFunction.Min(V)\n"
},
{
"answer_id... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74500818",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6725147/"
] |
74,500,819 | <p>I am trying to create a function miles to KM, but the result is float and does not transform it.
Distance: is a column in integer format.</p>
<p>the function 'miles_a_KM' receives the parameter miles, which is an integer column.</p>
<pre><code>def miles_to_KM(miles):
MIc = 1.609344
km = miles * MIc
retur... | [
{
"answer_id": 74500848,
"author": "cooogeee",
"author_id": 3003395,
"author_profile": "https://Stackoverflow.com/users/3003395",
"pm_score": 0,
"selected": false,
"text": "Dim i as Long\nDim j as Long\n V(i, j) = Rnd * 50\n Debug.Print WorksheetFunction.Min(V)\n"
},
{
"answer_id... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74500819",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20485760/"
] |
74,500,881 | <p>I have a <strong>button</strong> in my Flutter project that I want the <strong>phone number</strong> to appear when it's pressed by the user, and when the number appears, the user can <strong>copy the number</strong> and use it, or when pressing the button, it goes to a <strong>direct call process</strong> with the ... | [
{
"answer_id": 74500848,
"author": "cooogeee",
"author_id": 3003395,
"author_profile": "https://Stackoverflow.com/users/3003395",
"pm_score": 0,
"selected": false,
"text": "Dim i as Long\nDim j as Long\n V(i, j) = Rnd * 50\n Debug.Print WorksheetFunction.Min(V)\n"
},
{
"answer_id... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74500881",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20358871/"
] |
74,500,889 | <p>My use case is to serve response of an HTTP request after receiving another request from separate server.</p>
<p><a href="https://i.stack.imgur.com/CHQX1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CHQX1.png" alt="enter image description here" /></a></p>
<ol>
<li>I want to do this best possibl... | [
{
"answer_id": 74503580,
"author": "AminMal",
"author_id": 14672383,
"author_profile": "https://Stackoverflow.com/users/14672383",
"pm_score": 2,
"selected": true,
"text": "server_app +---------------------+\n | server_app_service |\n +---------------------+\n | server... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74500889",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3305978/"
] |
74,500,926 | <p>I created a .netcore webapi targeting framework 3.1. Added the required classes and code in ApplicationUser and ApplicationDbContext and in startup services.AddDbContext<..........</p>
<p>Then I ran command add-migration IniCr which built and ran ok.
But when I ran the update-database console window shows the fol... | [
{
"answer_id": 74503580,
"author": "AminMal",
"author_id": 14672383,
"author_profile": "https://Stackoverflow.com/users/14672383",
"pm_score": 2,
"selected": true,
"text": "server_app +---------------------+\n | server_app_service |\n +---------------------+\n | server... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74500926",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4912001/"
] |
74,500,959 | <p>I have specific list of names (ABC, BCD, ......., JKL), Then separately I am maintain the another location with those list of name plus another separate words (Like - Off, ON, .... etc)</p>
<p>So I need count then no of name mention only in that specific list.</p>
<p>You can get my example in below G sheet, also Fee... | [
{
"answer_id": 74501553,
"author": "ztiaa",
"author_id": 17887301,
"author_profile": "https://Stackoverflow.com/users/17887301",
"pm_score": 1,
"selected": false,
"text": "=ArrayFormula(BYROW(D2:O,LAMBDA(r,IF(COUNTBLANK(r)=COLUMNS(r),,\nSUM(--REGEXMATCH(r,\"\\b\"&TEXTJOIN(\"\\b|\\b\",1,A... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74500959",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18131328/"
] |
74,500,964 | <p>I try to create a relation between two tables in a Spring Boot Application.
I have the following Code:</p>
<pre><code> @Entity
@Table(name = "account")
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Account {
@Id
@Column(name="ID... | [
{
"answer_id": 74501798,
"author": "Hasni Iheb",
"author_id": 11335868,
"author_profile": "https://Stackoverflow.com/users/11335868",
"pm_score": 0,
"selected": false,
"text": "account"
},
{
"answer_id": 74507821,
"author": "simplesystems",
"author_id": 4853434,
"auth... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74500964",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4853434/"
] |
74,500,987 | <p>I CANNOT USE ANY IMPORTED LIBRARY. I have this task where I have some directories containing some files; every file contains, besides some words, the name of the next file to be opened, in its first line. Once every word of every files contained in a directory is opened, they have to be treated in a way that should ... | [
{
"answer_id": 74501852,
"author": "C-3PO",
"author_id": 4667669,
"author_profile": "https://Stackoverflow.com/users/4667669",
"pm_score": 3,
"selected": true,
"text": "def read_file(fname):\n with open(fname, 'r') as f:\n return list(filter(None, [y.rstrip(' \\n').lstrip(' ') ... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74500987",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20534052/"
] |
74,500,998 | <p>A problem given by my lab professor, as the title reads:
<em>Find the largest combination given a list/array of integers.</em>
ie:</p>
<pre><code>input: {10, 68, 75, 7, 21, 12}
stdout: 77568211210
my output : 75768211210
</code></pre>
<p>The current code:</p>
<pre><code>import java.util.*;
import java.lang.*;
publi... | [
{
"answer_id": 74501852,
"author": "C-3PO",
"author_id": 4667669,
"author_profile": "https://Stackoverflow.com/users/4667669",
"pm_score": 3,
"selected": true,
"text": "def read_file(fname):\n with open(fname, 'r') as f:\n return list(filter(None, [y.rstrip(' \\n').lstrip(' ') ... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74500998",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16662311/"
] |
74,501,021 | <p>i'm pretty new to html and css. Browsed through previously asked similar questions but non of the solutions seems to work for me. Basically I have this situation:</p>
<p><a href="https://i.stack.imgur.com/qyKKF.png" rel="nofollow noreferrer">Situation</a>.</p>
<p>The desired effect is the content to be visible throu... | [
{
"answer_id": 74501852,
"author": "C-3PO",
"author_id": 4667669,
"author_profile": "https://Stackoverflow.com/users/4667669",
"pm_score": 3,
"selected": true,
"text": "def read_file(fname):\n with open(fname, 'r') as f:\n return list(filter(None, [y.rstrip(' \\n').lstrip(' ') ... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74501021",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20548188/"
] |
74,501,029 | <p>I'm making a calculator in Python using Tkinter, and I'm getting an error im not sure as to why im running into this error but ive legit tried retyping the whole code and cant find anything about it on yt:</p>
<p>`</p>
<pre><code>from tkinter import *
w = Tk()
w.title("Simple Calculator")
ent = Entry()
... | [
{
"answer_id": 74501196,
"author": "Seyi Daniel",
"author_id": 13505098,
"author_profile": "https://Stackoverflow.com/users/13505098",
"pm_score": -1,
"selected": true,
"text": "def button_add():\nfirst_number = ent.get()\nglobal f_num\nf_num = int(first_number)\nent.delete(END)\n"
}
] | 2022/11/19 | [
"https://Stackoverflow.com/questions/74501029",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16127284/"
] |
74,501,053 | <p>So I am trying to select all the rows that contains string equal to values from another table.</p>
<pre><code>SELECT q.QUERY, f.ANONID
FROM FACTS f
INNER JOIN QUERYDIM q
ON f.QUERYID = q.ID
WHERE q.QUERY IN (SELECT city FROM zipcodes);
</code></pre>
<p>q.QUERY is a string with different lengths
I want to select a... | [
{
"answer_id": 74501222,
"author": "ScaisEdge",
"author_id": 3522312,
"author_profile": "https://Stackoverflow.com/users/3522312",
"pm_score": 0,
"selected": false,
"text": "SELECT q.QUERY, f.ANONID \nFROM FACTS f\nINNER JOIN QUERYDIM q ON f.QUERYID = q.ID \nINNER JOIN ( SELECT city FRO... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74501053",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17473034/"
] |
74,501,058 | <p>I have an array with values</p>
<pre><code>const range = [1,10,100,500,1000,2000,4000,8000]
let input = 1580
</code></pre>
<p>The expected output is 1000 because 1580 is between 1000 and 2000</p>
<p>But my code is giving wrong results and also giving incorrect for large values.</p>
<pre><code>for(i=0;i<range.len... | [
{
"answer_id": 74501088,
"author": "CertainPerformance",
"author_id": 9515207,
"author_profile": "https://Stackoverflow.com/users/9515207",
"pm_score": 2,
"selected": false,
"text": "input < range input const range = [1, 10, 100, 500, 1000, 2000, 4000, 8000]\nconst input = 1580\nlet i;\n... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74501058",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5549354/"
] |
74,501,064 | <p>How to remove duplicate by ID. For each ID, the column Drug must have unique values. Any help is appreciated.</p>
<pre><code> dat <- read.table(text="Id Drug
A Meropenem
A Ampicillin
A Augmentin
A Meropenem
A Ampicillin
A Augmentin
B Meropenem
B Ampicillin
B ... | [
{
"answer_id": 74501088,
"author": "CertainPerformance",
"author_id": 9515207,
"author_profile": "https://Stackoverflow.com/users/9515207",
"pm_score": 2,
"selected": false,
"text": "input < range input const range = [1, 10, 100, 500, 1000, 2000, 4000, 8000]\nconst input = 1580\nlet i;\n... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74501064",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19965337/"
] |
74,501,067 | <p>I am writing shiny apps that take an object (a photograph or a matrix of numbers mostly) and making a set of plots to explore the object. I want to setup the shiny app as a function so I can call it from a command line and pass the object of interest directly to it. I would like to be able to return the name of th... | [
{
"answer_id": 74501487,
"author": "Stéphane Laurent",
"author_id": 1100107,
"author_profile": "https://Stackoverflow.com/users/1100107",
"pm_score": 1,
"selected": false,
"text": "app1 = function(x) {\n title <- substitute(x)\n shinyApp(\n ui = mainPanel(plotOutput(\"plot1\")),\n ... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74501067",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20548300/"
] |
74,501,093 | <p>Hey this is my function</p>
<pre><code>function open() {
document.getElementById("main").style.marginLeft = "20%";
document.getElementById("mySidebar").style.width = "20%";
document.getElementById("mySidebar").style.display = &quo... | [
{
"answer_id": 74501195,
"author": "reza hrkeng",
"author_id": 20517507,
"author_profile": "https://Stackoverflow.com/users/20517507",
"pm_score": -1,
"selected": false,
"text": "Id(\"openNav\").style.display='inline-block';\n function close() and open()\n function open() { \n\ndocument.... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74501093",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15868779/"
] |
74,501,121 | <p>I get two types of errors when I try to start or initiate the member function <code>temp_controll</code> from the subclass <code>Temperature_Controll</code>. The issue is that the while loops are started in a new thread.</p>
<p>I am having trouble passing the modbus client connection to the member function.</p>
<pre... | [
{
"answer_id": 74501195,
"author": "reza hrkeng",
"author_id": 20517507,
"author_profile": "https://Stackoverflow.com/users/20517507",
"pm_score": -1,
"selected": false,
"text": "Id(\"openNav\").style.display='inline-block';\n function close() and open()\n function open() { \n\ndocument.... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74501121",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20125632/"
] |
74,501,151 | <p>I am really struggling with a problem: I have to find all the leaves in a binary tree and sum them to their father using recursion and only basic controls(no specialised functions).</p>
<p>I tried checking all the nodes' children to see if those were leaves and then add them to their fathers but it seems I can't get... | [
{
"answer_id": 74501195,
"author": "reza hrkeng",
"author_id": 20517507,
"author_profile": "https://Stackoverflow.com/users/20517507",
"pm_score": -1,
"selected": false,
"text": "Id(\"openNav\").style.display='inline-block';\n function close() and open()\n function open() { \n\ndocument.... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74501151",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20471458/"
] |
74,501,170 | <p>In the code below, how can I change Jack's drink from "Lemonade" to "Soda" inside the <code>groupingDict</code>.</p>
<pre><code>struct User {
var name: String?
var drink: String?
}
let u1 = User(name: "Jack", drink: "Lemonade")
let u2 = User(name: "Jill", dr... | [
{
"answer_id": 74501195,
"author": "reza hrkeng",
"author_id": 20517507,
"author_profile": "https://Stackoverflow.com/users/20517507",
"pm_score": -1,
"selected": false,
"text": "Id(\"openNav\").style.display='inline-block';\n function close() and open()\n function open() { \n\ndocument.... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74501170",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4833705/"
] |
74,501,204 | <p>I have used the below logic, but getting an exception "java.lang.StringIndexOutOfBoundsException". Help will be appreciated. Thank you!!</p>
<pre><code>import java.util.Scanner;
public class Demo{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.... | [
{
"answer_id": 74501336,
"author": "Mitesh Bhimjiyaani",
"author_id": 20548630,
"author_profile": "https://Stackoverflow.com/users/20548630",
"pm_score": 0,
"selected": false,
"text": "import java.util.Scanner;\npublic class Demo{\n\n public static void main(String[] args) {\n ... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74501204",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15314104/"
] |
74,501,221 | <p>My question is :
How do I find all the running processes that end with "sh".
I know that "ps aux" lists all the processes that are running and also "grep" prints a specific named process which is written inside " ".
I know I have to combine the command "ps aux" and a... | [
{
"answer_id": 74501336,
"author": "Mitesh Bhimjiyaani",
"author_id": 20548630,
"author_profile": "https://Stackoverflow.com/users/20548630",
"pm_score": 0,
"selected": false,
"text": "import java.util.Scanner;\npublic class Demo{\n\n public static void main(String[] args) {\n ... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74501221",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19086573/"
] |
74,501,242 | <p>I’m completly beginer in a web development. Currently, I’m learning a basic stuff but I have a huge issue with a procces of adding pictures in code.</p>
<p>I watched many tutorials on youtube and I try basicaly everything
(img src=NAME OF THE PICTURE + jpg/png)
(img src=URL LING FROM THE GOOGLE)
and many other thing... | [
{
"answer_id": 74501260,
"author": "Liam-Nothing",
"author_id": 17254553,
"author_profile": "https://Stackoverflow.com/users/17254553",
"pm_score": 1,
"selected": false,
"text": "<img src=\"https://nothingelse.fr/img/new_logo_ne.png\" />\n"
},
{
"answer_id": 74501353,
"author... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74501242",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20548559/"
] |
74,501,243 | <p>I'm using a REST API from RapidApi, and I succeded in printing the whole response, but I need only some specific parameters. Like, to print only the Deprature and Arrival times. When using params:{} it doesn't help, because that prints every parameter with the specified argument. I need the inverse, to print a speci... | [
{
"answer_id": 74501331,
"author": "Kieran",
"author_id": 20534032,
"author_profile": "https://Stackoverflow.com/users/20534032",
"pm_score": 1,
"selected": false,
"text": "xml.etree.ElementTree # create element tree object\ntree = ET.parse(xmlfile)\n \n# get root element\nroot = tree.g... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74501243",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13540021/"
] |
74,501,298 | <p>I use a coroutine to add another coroutine to the event loop multiple times but partway through I cancel the first coroutine. I thought this would mean that any coroutines already added to the event loop would complete successfully and no more would be added, however I find that coroutines that have already been add... | [
{
"answer_id": 74501331,
"author": "Kieran",
"author_id": 20534032,
"author_profile": "https://Stackoverflow.com/users/20534032",
"pm_score": 1,
"selected": false,
"text": "xml.etree.ElementTree # create element tree object\ntree = ET.parse(xmlfile)\n \n# get root element\nroot = tree.g... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74501298",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4384768/"
] |
74,501,300 | <p>I am facing one problem when I want to filter an array inside an array by an array. Please see the example-</p>
<pre><code>const array1 = [
{
name: "this is name1",
products: [
{ id: "4" },
{ id: "2" },
]
},
{
name: &qu... | [
{
"answer_id": 74501371,
"author": "vighnesh153",
"author_id": 8822610,
"author_profile": "https://Stackoverflow.com/users/8822610",
"pm_score": 2,
"selected": false,
"text": "filter map reduce const array1 = [\n {\n name: 'this is name1',\n products: [{ id: '4' }, { id: '2' }],\n... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74501300",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19698958/"
] |
74,501,391 | <p>I wrote simple server running script on node.js</p>
<pre><code>const http = require('http')
let requestsCount = 0
const server = http.createServer((request, response) => {
requestsCount++
response.write(`Leo Garsia ${requestsCount}`)
})
server.listen(3005, () => {
console.info('Server is Running... | [
{
"answer_id": 74501623,
"author": "Heiko Theißen",
"author_id": 16462950,
"author_profile": "https://Stackoverflow.com/users/16462950",
"pm_score": 2,
"selected": true,
"text": "response.end() response.write"
},
{
"answer_id": 74501826,
"author": "Leo Garsia",
"author_id... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74501391",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14569267/"
] |
74,501,396 | <p>When testing my react native app (with expo) through the expo go IOS app the icons are not vertically centered, however when testing on web they are vertically centered. I have tried giving each icon a parent div and centering it vertically, giving it a TabBarIconStyle of textAlignVertical: center, and textAlign: ce... | [
{
"answer_id": 74501623,
"author": "Heiko Theißen",
"author_id": 16462950,
"author_profile": "https://Stackoverflow.com/users/16462950",
"pm_score": 2,
"selected": true,
"text": "response.end() response.write"
},
{
"answer_id": 74501826,
"author": "Leo Garsia",
"author_id... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74501396",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8388264/"
] |
74,501,437 | <p>The definition of hasNext() is "Returns true if this scanner has another token in its input. This method may block while waiting for input to scan. The scanner does not advance past any input."</p>
<p>When I put <strong>standardInput.hasNext()</strong> in for-loop, the program runs toward infinity. But if ... | [
{
"answer_id": 74501477,
"author": "Code-Apprentice",
"author_id": 1440565,
"author_profile": "https://Stackoverflow.com/users/1440565",
"pm_score": 2,
"selected": false,
"text": "standardInput.nextDouble() standardInput.hasNext() hasNext()"
},
{
"answer_id": 74501482,
"autho... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74501437",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20472612/"
] |
74,501,531 | <p>I have a GlideImage that is inside a Box. Inside that Box, there is also a button with an icon. I want that, when I click on the button, the image is maximized and occupies the whole screen with a button in the lower right corner where it is possible to minimize it. I would also like to zoom in on it. Does anyone kn... | [
{
"answer_id": 74502590,
"author": "Sky",
"author_id": 9846834,
"author_profile": "https://Stackoverflow.com/users/9846834",
"pm_score": 1,
"selected": false,
"text": "@OptIn(ExperimentalGlideComposeApi::class)\n@Composable\nfun Q74501531() {\n val configuration = LocalConfiguration.c... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74501531",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18215416/"
] |
74,501,545 | <p>I want to know why am i getting an error when i delete temp in this function.</p>
<p>`</p>
<pre><code>#include<iostream>
using namespace std;
//NODE FOR LINKED LIST
class node {
public:
int data;
node* next;
node(int val) {
data = val;
next = NULL;
}
~node() {
delete... | [
{
"answer_id": 74501646,
"author": "Doc Brown",
"author_id": 220984,
"author_profile": "https://Stackoverflow.com/users/220984",
"pm_score": 2,
"selected": false,
"text": "LinkedList temp insertAtEnd display temp temp next LinkedList head node delete s destructor and let "
},
{
"... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74501545",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15266522/"
] |
74,501,622 | <p>I am trying to apply the function on multiple data frames. I created a list for the data frames. If the ranking is less than 100, high performance column would be assigned values copied over from the ranking column and if the ranking is between 100 and 200, the average column would be assigned the values copied over... | [
{
"answer_id": 74501690,
"author": "Harishma Ashok",
"author_id": 20403698,
"author_profile": "https://Stackoverflow.com/users/20403698",
"pm_score": 2,
"selected": true,
"text": "def func (file):\n if (file['ranking']) < 100:\n (file['ranking']) == (file['High Performance'])\n... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74501622",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18708380/"
] |
74,501,637 | <p>The data needs to be stored in this format</p>
<pre><code>data = {'admin': [{'title': 'Register Users with taskManager.py', 'description': 'Use taskManager.py to add the usernames and passwords for all team members that will be using this program.', 'due date': '10 Oct 2019', 'date assigned': '20 Oct 2019', 'status'... | [
{
"answer_id": 74501690,
"author": "Harishma Ashok",
"author_id": 20403698,
"author_profile": "https://Stackoverflow.com/users/20403698",
"pm_score": 2,
"selected": true,
"text": "def func (file):\n if (file['ranking']) < 100:\n (file['ranking']) == (file['High Performance'])\n... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74501637",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19698970/"
] |
74,501,688 | <p>I'm not asking for an answer to the question, but rather how I, on my own, could have gotten the answer.</p>
<h3><strong>Original Question:</strong></h3>
<p><strong>Does the following code cause Python to make a new list of size (len(nums) - 1) in memory that then gets iterated over?</strong></p>
<pre><code>for item... | [
{
"answer_id": 74501767,
"author": "Edward Peters",
"author_id": 6016064,
"author_profile": "https://Stackoverflow.com/users/6016064",
"pm_score": 1,
"selected": false,
"text": "function areSameRef(thing1, thing2){\n thing1.modify()\n return thing1.equals(thing2) //make sure this i... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74501688",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9277931/"
] |
74,501,725 | <p><a href="https://i.stack.imgur.com/kqmkp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kqmkp.png" alt="enter image description here" /></a></p>
<p>I want to align the switch button to Top right side (marked in the picture)</p>
<p>What i did,</p>
<p>I tried FlutterSwitch wrap with container and s... | [
{
"answer_id": 74501767,
"author": "Edward Peters",
"author_id": 6016064,
"author_profile": "https://Stackoverflow.com/users/6016064",
"pm_score": 1,
"selected": false,
"text": "function areSameRef(thing1, thing2){\n thing1.modify()\n return thing1.equals(thing2) //make sure this i... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74501725",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10725992/"
] |
74,501,726 | <p>Here is my dataframe:</p>
<pre><code>col1 <- c("hello my name is", "Nice to meet you", "how are you")
col2 <- c("dog", "Cats", "Frogs are cool")
col3 <- c("Pause", "breathe in and out", "what are you talking about")
df... | [
{
"answer_id": 74501755,
"author": "deschen",
"author_id": 2725773,
"author_profile": "https://Stackoverflow.com/users/2725773",
"pm_score": 3,
"selected": true,
"text": "df %>%\n as_tibble() %>%\n mutate(across(any_of(vars), gsub, pattern = \"^(\\\\w)(\\\\w+)\", replacement = \"\\\\U\... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74501726",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4937644/"
] |
74,501,735 | <p>I need to copy the contents of a file to the end of the same file.</p>
<p>I wrote the following code.</p>
<pre><code>#!/bin/bash
cat file.txt >> file1.txt
cat file1.txt >> file.txt
rm file1.txt
</code></pre>
<p>But it creates an additional file. How can this be done without creating an additional file?</... | [
{
"answer_id": 74501755,
"author": "deschen",
"author_id": 2725773,
"author_profile": "https://Stackoverflow.com/users/2725773",
"pm_score": 3,
"selected": true,
"text": "df %>%\n as_tibble() %>%\n mutate(across(any_of(vars), gsub, pattern = \"^(\\\\w)(\\\\w+)\", replacement = \"\\\\U\... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74501735",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20133865/"
] |
74,501,737 | <p>I have an edgelist in a pandas dataframe that looks like this:</p>
<pre><code> topic neighbor
0 K Kl
1 K Pr
2 Kl TS
3 Pr Kl
4 Pr Pr
</code></pre>
<p>When I turn this into a Graph (using networkx as nx) with <code>G = nx.from_pandas_edgelist(df)</code> it gives me KeyError: '... | [
{
"answer_id": 74501809,
"author": "SultanOrazbayev",
"author_id": 10693596,
"author_profile": "https://Stackoverflow.com/users/10693596",
"pm_score": 2,
"selected": true,
"text": "create_using from networkx import Graph, from_pandas_edgelist\n\ndf = ...\n\n# note that Graph is the defau... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74501737",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17280156/"
] |
74,501,744 | <p>normally we would use it like that:</p>
<pre><code>class TestClass
{
public $t;
public function set(\stdClass &$t)
{
$this->t = &$t;
}
}
$obj = new \stdClass();
$obj->fromOUTSIDE = 1;
$test = new TestClass();
$test->set($obj);
var_dump($test);
</code></pre>
<p><a href="https... | [
{
"answer_id": 74533165,
"author": "SvenTUM",
"author_id": 11370312,
"author_profile": "https://Stackoverflow.com/users/11370312",
"pm_score": 2,
"selected": false,
"text": "stdClass <?php\nclass TestClass\n{\n public function __get(string $propertyName)\n {\n $xx = new StdC... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74501744",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1043342/"
] |
74,501,748 | <p>I have a bottom sheet dialog with 2 <code>nestedscrollview</code>, the outer one wrap the entire view, the inner one wrap a single <code>textview</code>, I have 2 problems:</p>
<p><em><strong>1.</strong></em>
the the inner one can scroll only down, as you can see in the gif:</p>
<p><a href="https://i.stack.imgur.com... | [
{
"answer_id": 74531377,
"author": "Abdalla Tawfik",
"author_id": 11601491,
"author_profile": "https://Stackoverflow.com/users/11601491",
"pm_score": 0,
"selected": false,
"text": "android:editable=\"false\" Edittext.setEnabled(false); "
},
{
"answer_id": 74545847,
"author": ... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74501748",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12615735/"
] |
74,501,791 | <p>I am struggling in writing a code that would produce a plot of any function with rectangle overlay of the area under the function for a specific interval. I see many examples of density functions with histograms but I want my rectangle to be bound by the function curve. We can take a function like x^2 as an example.... | [
{
"answer_id": 74531377,
"author": "Abdalla Tawfik",
"author_id": 11601491,
"author_profile": "https://Stackoverflow.com/users/11601491",
"pm_score": 0,
"selected": false,
"text": "android:editable=\"false\" Edittext.setEnabled(false); "
},
{
"answer_id": 74545847,
"author": ... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74501791",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20549084/"
] |
74,501,803 | <p>I have below code :</p>
<pre><code>public async Task StartAsync(CancellationToken cancellationToken)
{
var cronExpressionVal = new Timer(async e => await GetCronExpression(cancellationToken), null, TimeSpan.Zero, new TimeSpan(0, 5, 0));
}
</code></pre>
<p>What I am trying to achieve is, <code>GetCronExpressio... | [
{
"answer_id": 74531377,
"author": "Abdalla Tawfik",
"author_id": 11601491,
"author_profile": "https://Stackoverflow.com/users/11601491",
"pm_score": 0,
"selected": false,
"text": "android:editable=\"false\" Edittext.setEnabled(false); "
},
{
"answer_id": 74545847,
"author": ... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74501803",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17029269/"
] |
74,501,844 | <p>So I’m trying to create a buy and sell program and in there, I also coded the range where a random price out of a certain range will pop out. Now the problem is I can’t figure out a way on how to display a “not available today” on a 15% chance. so basically the price list will only show the price of the item OR a “... | [
{
"answer_id": 74531377,
"author": "Abdalla Tawfik",
"author_id": 11601491,
"author_profile": "https://Stackoverflow.com/users/11601491",
"pm_score": 0,
"selected": false,
"text": "android:editable=\"false\" Edittext.setEnabled(false); "
},
{
"answer_id": 74545847,
"author": ... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74501844",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20117789/"
] |
74,501,859 | <p>Making a registration form for a website using Vue 3. I have a method, that gets values of password and password confirmation fields and compares it. If they're true - nothing happens, else - a red label appears and submit button gets disabled. I have implemented this in vue 3. but when passwords are equal, it dont ... | [
{
"answer_id": 74531377,
"author": "Abdalla Tawfik",
"author_id": 11601491,
"author_profile": "https://Stackoverflow.com/users/11601491",
"pm_score": 0,
"selected": false,
"text": "android:editable=\"false\" Edittext.setEnabled(false); "
},
{
"answer_id": 74545847,
"author": ... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74501859",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13767821/"
] |
74,501,871 | <p>I am trying to parse through a data structure and I have used a for loop initializing a variable i and using the range() function. I originally set my range to be the size of the records: 25,173 but then I kept receiving an</p>
<pre><code>---------------------------------------------------------------------------
In... | [
{
"answer_id": 74531377,
"author": "Abdalla Tawfik",
"author_id": 11601491,
"author_profile": "https://Stackoverflow.com/users/11601491",
"pm_score": 0,
"selected": false,
"text": "android:editable=\"false\" Edittext.setEnabled(false); "
},
{
"answer_id": 74545847,
"author": ... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74501871",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20351405/"
] |
74,501,874 | <p>I want to read a image from api, but I am getting a error TypeError: 'module' object is not callable. I am trying to make a random meme generator</p>
<pre><code>import PySimpleGUI as sg
from PIL import Image
import requests, json
cutURL = 'https://meme-api-python.herokuapp.com/gimme'
imageURL = json.loads(requ... | [
{
"answer_id": 74502147,
"author": "dskrypa",
"author_id": 19070573,
"author_profile": "https://Stackoverflow.com/users/19070573",
"pm_score": 1,
"selected": false,
"text": "Image.open(...) Image BytesIO Image.open BytesIO Image.open BytesIO StringIO from io import BytesIO\n\ndef get_ima... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74501874",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20166957/"
] |
74,501,885 | <p>I'm working on a canvas that allows dragging shapes like Figma. I want to draw a guideline (x, y) when shapes intersect each other, just like below.</p>
<p>I already handled when shapes are snapped, so we don't need to calculate when they snap each other, basically, we know when should draw the lines. Just couldn't ... | [
{
"answer_id": 74554071,
"author": "Attic V",
"author_id": 20558601,
"author_profile": "https://Stackoverflow.com/users/20558601",
"pm_score": -1,
"selected": false,
"text": "if (tops of rectangles line up):\n draw a line on the top that connects the corners\n\nif (left of rectangles li... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74501885",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10330468/"
] |
74,501,916 | <p>Reading a book about bash and it was introducing regular expressions(I'm pretty new to them) with an example:</p>
<pre><code>rename -n 's/(.*)(.*)/new$1$2/' *
'file1' would be renamed to 'newfile1'
'file2' would be renamed to 'newfile2'
'file3' would be renamed to 'newfile3'
</code></pre>
<p>There wasn't really a b... | [
{
"answer_id": 74502347,
"author": "Robert",
"author_id": 1431720,
"author_profile": "https://Stackoverflow.com/users/1431720",
"pm_score": 1,
"selected": false,
"text": "rename sed s (.*)(.*) new$1$2 $ $ $1 $2 $0 .* \\. basename rename -n 's/(.*)/new$1/' *"
},
{
"answer_id": 745... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74501916",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11397334/"
] |
74,501,917 | <p>I'm having some trouble returning the properties of my object. I keep getting an undefined error when I run the following code. I'm trying to reference what the rank is for each individual card. I thought the best way would be for them to each have their own object. However, when I console log I cant seem to get the... | [
{
"answer_id": 74501940,
"author": "Metro Smurf",
"author_id": 9664,
"author_profile": "https://Stackoverflow.com/users/9664",
"pm_score": 1,
"selected": false,
"text": "var arrClubs = [\n {\"img\": '2_of_clubs.png',\"rank\": 1},{\"img\": '3_of_clubs.png',\"rank\": 2},{\"img\": '4_of_... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74501917",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11996252/"
] |
74,501,930 | <p>I am currently struggling with moving data from a function calculation in R. I have 8 columns that have calculated a certain y value at the same point under different conditions (type), and my output looks like this:</p>
<pre><code>ydata <- output %>% select(x, type, y_a,y_b,y_c,y_d,y_e,y_f,y_g,y_h)
ydata
#>... | [
{
"answer_id": 74502140,
"author": "Andre Wildberg",
"author_id": 9462095,
"author_profile": "https://Stackoverflow.com/users/9462095",
"pm_score": 2,
"selected": true,
"text": "library(dplyr)\n\ndf %>% \n group_by(x) %>% \n summarize(across(contains(\"_\"), ~ .x[.x != \"<NA>\"]))\n# A... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74501930",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17346985/"
] |
74,501,949 | <p>I am having trouble finding a way that takes the average from a list box and then displaying that average on the user form. I know you are supposed to use an array, but I am very confused at the moment how to array a second column on a list box. Below is an example the numbers in the text box need to be averaged up ... | [
{
"answer_id": 74502140,
"author": "Andre Wildberg",
"author_id": 9462095,
"author_profile": "https://Stackoverflow.com/users/9462095",
"pm_score": 2,
"selected": true,
"text": "library(dplyr)\n\ndf %>% \n group_by(x) %>% \n summarize(across(contains(\"_\"), ~ .x[.x != \"<NA>\"]))\n# A... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74501949",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20454809/"
] |
74,502,077 | <p>I want to be able to access and modify attributes of HTML elements of a page in my server side code (I am using ASP.NET Core Razor Pages 6.0).</p>
<p>For example: a <code>.cshtml</code> file, I have a simple element like this:</p>
<pre><code><div class="mb-3 mt-3">
<label asp-for="User.fi... | [
{
"answer_id": 74511958,
"author": "Software Architect",
"author_id": 15868779,
"author_profile": "https://Stackoverflow.com/users/15868779",
"pm_score": 1,
"selected": false,
"text": " <form method=\"post\">\n <div class=\"form-group\">\n <input name=\"title\" class=... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74502077",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15599708/"
] |
74,502,083 | <p>I am trying to create a login functionality for my Reactjs Webiste using Nodejs express backend.</p>
<p>I want to set a JWT token when the user tries to log in and update that token in my mongoDB database and then verify the token on the frontend and save it to localStorage.</p>
<p>However, when the user tries to lo... | [
{
"answer_id": 74577527,
"author": "WolverinDEV",
"author_id": 7588455,
"author_profile": "https://Stackoverflow.com/users/7588455",
"pm_score": 1,
"selected": false,
"text": "findOneAndUpdate returnNewDocument: true db.collection(\"Users\").findOneAndUpdate({\n email: params.email\n }... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74502083",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15197645/"
] |
74,502,129 | <p>I am trying print 3 things in straight line like name, age and wages.</p>
<p>like this</p>
<pre><code>Graham 47 500
Jess 47 250
Dave 23 100
</code></pre>
<p>type here</p>
<pre><code>using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.T... | [
{
"answer_id": 74502159,
"author": "finix",
"author_id": 17105703,
"author_profile": "https://Stackoverflow.com/users/17105703",
"pm_score": 0,
"selected": false,
"text": "Console.WriteLine(Namelist[i].ToString());\n"
},
{
"answer_id": 74502273,
"author": "Prasad Telkikar",
... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74502129",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10054332/"
] |
74,502,143 | <p>The context here is that I'm comparing the values of two columns—the key and the date. If the criterion is met, we will now create a new column with the flag = Y else ""</p>
<p>Condition: if key are matching and date in df1 > date in df2 then "Y" else ""</p>
<p>We will therefore iter... | [
{
"answer_id": 74502244,
"author": "abokey",
"author_id": 16120011,
"author_profile": "https://Stackoverflow.com/users/16120011",
"pm_score": 1,
"selected": false,
"text": "pandas.Series.gt pandas.DataFrame.loc df1.loc[df1['Date'].gt(df2['Date']), \"Flag\"]= \"Y\"\n print(df1)\n\n Key ... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74502143",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16187262/"
] |
74,502,145 | <p>I'm solving some exercises from a book and now I'm having some difficulties:
In this exercise I shall implement Card as an instance of the class Ord.
But I don't know how exactly I could implement it, so I would appreciate any help.</p>
<p>My code so far looks like this:</p>
<pre><code>data Suit = Diamond | Club | S... | [
{
"answer_id": 74502244,
"author": "abokey",
"author_id": 16120011,
"author_profile": "https://Stackoverflow.com/users/16120011",
"pm_score": 1,
"selected": false,
"text": "pandas.Series.gt pandas.DataFrame.loc df1.loc[df1['Date'].gt(df2['Date']), \"Flag\"]= \"Y\"\n print(df1)\n\n Key ... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74502145",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
74,502,158 | <p>I have a web story that has cencored word in it with asterix</p>
<p>right now i'm doing it with a simple and dumb str.replace</p>
<p>but as you can imagine this is a pain and I need to search in the text to find all instance of the censoring</p>
<p>here is bastard instance that are capitalized, plurial and with aste... | [
{
"answer_id": 74502244,
"author": "abokey",
"author_id": 16120011,
"author_profile": "https://Stackoverflow.com/users/16120011",
"pm_score": 1,
"selected": false,
"text": "pandas.Series.gt pandas.DataFrame.loc df1.loc[df1['Date'].gt(df2['Date']), \"Flag\"]= \"Y\"\n print(df1)\n\n Key ... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74502158",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16652379/"
] |
74,502,237 | <p>I have this code here which supposedly builds a list from a document in firebase, which ultimately fails as it always goes to <code>return loading</code>. From what I know, it has something to do with it being a future and I think I am accessing it wrongly. I have tried getting the output as Text and it works, but a... | [
{
"answer_id": 74502308,
"author": "Gwhyyy",
"author_id": 18670641,
"author_profile": "https://Stackoverflow.com/users/18670641",
"pm_score": 0,
"selected": false,
"text": " Widget showFriend() {\n CollectionReference users =\n FirebaseFirestore.instance.collection('todos');\n //... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74502237",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15929283/"
] |
74,502,335 | <p>I am trying to run a Gstreamer plugin written to run <a href="https://github.com/voidmainvoid95/gst-nvmaxine" rel="nofollow noreferrer">NVIDIA Maxine filters</a> through the pipeline.</p>
<p>I keep getting <code>no element "nvmaxinevideofx"</code>, and I'm wondering if there is anything fundamentally wrong... | [
{
"answer_id": 74502308,
"author": "Gwhyyy",
"author_id": 18670641,
"author_profile": "https://Stackoverflow.com/users/18670641",
"pm_score": 0,
"selected": false,
"text": " Widget showFriend() {\n CollectionReference users =\n FirebaseFirestore.instance.collection('todos');\n //... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74502335",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4436740/"
] |
74,502,349 | <p>I am new to AWS dynamodb, lambda. i have pretty good knowledge in RDB(MySQL).</p>
<p>here is my sample table</p>
<pre><code>partitian key sort key attribute
Device TimeStamp REMARKS
D1 2022-12-12 12:13:14 hello
D1 2022-12-12 12:14:14 testing
D2 2022-12-12 12:18:14 hello
D2 2022-12-12 12:19:14 testing
D3... | [
{
"answer_id": 74502308,
"author": "Gwhyyy",
"author_id": 18670641,
"author_profile": "https://Stackoverflow.com/users/18670641",
"pm_score": 0,
"selected": false,
"text": " Widget showFriend() {\n CollectionReference users =\n FirebaseFirestore.instance.collection('todos');\n //... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74502349",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20549507/"
] |
74,502,366 | <p><strong>JSON file data fraction:</strong></p>
<pre><code>{
"categories": [
{
"id": 1,
"category_slug": "food_supplements",
"title": "Food Supplements",
"image": "/../../public/images/foodSupplements.png",
... | [
{
"answer_id": 74502386,
"author": "codinn.dev",
"author_id": 15755662,
"author_profile": "https://Stackoverflow.com/users/15755662",
"pm_score": 2,
"selected": true,
"text": "{\n \"categories\": [\n {\n \"id\": 1,\n \"category_slug\": \"food_supplements\",\n \"title\"... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74502366",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19274770/"
] |
74,502,375 | <p>Let's say I have this dataframe</p>
<pre><code>df <- structure(list(A = c(25, 25, 25, 50, 50, 50, 100, 100, 100, 250, 250, 250),
R = c("R1", "R2", "R3", "R1", "R2", "R3", "R1", "R2", "R3", "R1"... | [
{
"answer_id": 74502529,
"author": "TarJae",
"author_id": 13321647,
"author_profile": "https://Stackoverflow.com/users/13321647",
"pm_score": 2,
"selected": false,
"text": "library(tidyverse)\n\ndf %>% \n pivot_longer(ACI:SB) %>% \n mutate(across(where(is.character), as.factor)) %>% \n... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74502375",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13349539/"
] |
74,502,393 | <p>I have a long string stored in a variable in Rust. I often remove some characters from its front with a <code>drain</code> method and use the value returned from it:</p>
<pre class="lang-rust prettyprint-override"><code>my_str.drain(0..i).collect::<String>();
</code></pre>
<p>The problem is, that draining from... | [
{
"answer_id": 74502737,
"author": "FireFragment",
"author_id": 14559107,
"author_profile": "https://Stackoverflow.com/users/14559107",
"pm_score": 0,
"selected": false,
"text": "VecDeque<char> String pop_front drain"
},
{
"answer_id": 74503257,
"author": "prog-fh",
"auth... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74502393",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14559107/"
] |
74,502,451 | <p>I want to limit number of rows in tableView say I want to show only 2 rows initially and if user clicks "See All" button then display all the rows. The data (array) for tableView is coming from CoreData. I have entered (saved) all the data in another ViewController, and fetching data on some another ViewCo... | [
{
"answer_id": 74502509,
"author": "HangarRash",
"author_id": 20287183,
"author_profile": "https://Stackoverflow.com/users/20287183",
"pm_score": 2,
"selected": true,
"text": "var showAllRows = false\n numberOfRowsInSection func tableView(_ tableView: UITableView, numberOfRowsInSection s... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74502451",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20452635/"
] |
74,502,469 | <p>I wrote an extension function to get an element of an JSON object by its name:</p>
<pre class="lang-kotlin prettyprint-override"><code>fun JSONObject.obj (name: String): JSONObject? =
try { this.getJSONObject(name) }
catch (e: JSONException) { null }
</code></pre>
<p>Now I want to extend this for nested JSON... | [
{
"answer_id": 74502509,
"author": "HangarRash",
"author_id": 20287183,
"author_profile": "https://Stackoverflow.com/users/20287183",
"pm_score": 2,
"selected": true,
"text": "var showAllRows = false\n numberOfRowsInSection func tableView(_ tableView: UITableView, numberOfRowsInSection s... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74502469",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/402322/"
] |
74,502,472 | <p>hope you are doing fine
i came across to a problem of data array manipulation at starting there was not much manipulation required as work progressed now more data manipulation is required and i am running short on this(as a fresher early days of my career
problem explanation - as data i am receiving an array of obj... | [
{
"answer_id": 74502509,
"author": "HangarRash",
"author_id": 20287183,
"author_profile": "https://Stackoverflow.com/users/20287183",
"pm_score": 2,
"selected": true,
"text": "var showAllRows = false\n numberOfRowsInSection func tableView(_ tableView: UITableView, numberOfRowsInSection s... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74502472",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17901031/"
] |
74,502,512 | <p>Acceptable input : any 9 digit number</p>
<p>Not acceptable : <code>123456789</code> and <code>987654321</code></p>
<p>I am using <code>[0-9]{9}</code> but I want extra condition as well</p>
| [
{
"answer_id": 74502509,
"author": "HangarRash",
"author_id": 20287183,
"author_profile": "https://Stackoverflow.com/users/20287183",
"pm_score": 2,
"selected": true,
"text": "var showAllRows = false\n numberOfRowsInSection func tableView(_ tableView: UITableView, numberOfRowsInSection s... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74502512",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20549696/"
] |
74,502,547 | <p>I am creating an <code>AuthGuard</code> for my app..now when i try to load the component without getting <strong>logged in</strong> it should redirect me to the login page..But i am getting an error like following
<a href="https://i.stack.imgur.com/dQvUy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur... | [
{
"answer_id": 74503200,
"author": "Nahom Ersom",
"author_id": 9700487,
"author_profile": "https://Stackoverflow.com/users/9700487",
"pm_score": 2,
"selected": false,
"text": "this.http.get<HttpResponse>('http://localhost:5000/auth/check-login', { withCredentials: true }).pipe(\n ... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74502547",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18480147/"
] |
74,502,551 | <p>I have written the following code to read a csv file into a multidimensional list which is working fine. The problem arise when I created a function to calculate the total of 2D list. This is happening because the numbers are in string inside the 2D list i.e.</p>
<p>[['0', '0', '30', '2', '21', '13', '23'], .....,['... | [
{
"answer_id": 74502606,
"author": "pavi2410",
"author_id": 7595401,
"author_profile": "https://Stackoverflow.com/users/7595401",
"pm_score": 0,
"selected": false,
"text": "map for line in lineArray:\n matrix.append(line.split(\",\"))\n for line in lineArray:\n matrix.append(list(map(i... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74502551",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4174508/"
] |
74,502,555 | <p>Why is R complaining about an error when my function already handles errors?</p>
<p>I've created a function to grab the parent element of an href attribute which invariably is "<a>". The function has some error handling to return NA if it can't find the href attribute.</p>
<p>The function works just ... | [
{
"answer_id": 74502606,
"author": "pavi2410",
"author_id": 7595401,
"author_profile": "https://Stackoverflow.com/users/7595401",
"pm_score": 0,
"selected": false,
"text": "map for line in lineArray:\n matrix.append(line.split(\",\"))\n for line in lineArray:\n matrix.append(list(map(i... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74502555",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1958215/"
] |
74,502,572 | <p>Recently I started to learn Cassandra. I needed to design the database for my web application. So, I prepared conceptual data model as well as application workflow, and currently I’m stuck on something…</p>
<p>Let me provide you with some details of the issue. Well, I want to show all friends of currently logged-in... | [
{
"answer_id": 74502606,
"author": "pavi2410",
"author_id": 7595401,
"author_profile": "https://Stackoverflow.com/users/7595401",
"pm_score": 0,
"selected": false,
"text": "map for line in lineArray:\n matrix.append(line.split(\",\"))\n for line in lineArray:\n matrix.append(list(map(i... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74502572",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19593532/"
] |
74,502,598 | <p>i have an interface(IDomainService) and a (lot) like it in my app which i mark more interfaces with it(IProductionLineTitleDuplicationChecker ) like what u will see in the rest:</p>
<pre><code>public interface IDomainService
{
}
</code></pre>
<pre><code>public interface IProductionLineTitleDuplicationChecke... | [
{
"answer_id": 74502606,
"author": "pavi2410",
"author_id": 7595401,
"author_profile": "https://Stackoverflow.com/users/7595401",
"pm_score": 0,
"selected": false,
"text": "map for line in lineArray:\n matrix.append(line.split(\",\"))\n for line in lineArray:\n matrix.append(list(map(i... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74502598",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17788717/"
] |
74,502,599 | <p>I always get the output <code>None</code> instead of <code>False</code></p>
<p>My code:</p>
<pre><code>def bi_search(elements: list, x) -> bool:
i = len(elements)/2-1
i = int(i)
print(i)
if i == 0:
return False
elif x == elements[i]:
return True
elif x < elements[i]:
... | [
{
"answer_id": 74502606,
"author": "pavi2410",
"author_id": 7595401,
"author_profile": "https://Stackoverflow.com/users/7595401",
"pm_score": 0,
"selected": false,
"text": "map for line in lineArray:\n matrix.append(line.split(\",\"))\n for line in lineArray:\n matrix.append(list(map(i... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74502599",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17345696/"
] |
74,502,626 | <p>I have a little doubt. How can I make the marker parameter change to marker1, marker2, marker3 depending on how many elements are in the map?</p>
<p>i have this but i want that for each element of the map there is a +1 for each marker</p>
<pre><code> {teams.map((team) =>
<pointer
... | [
{
"answer_id": 74502684,
"author": "John Li",
"author_id": 20436957,
"author_profile": "https://Stackoverflow.com/users/20436957",
"pm_score": 2,
"selected": false,
"text": "index team teams .map() teams.map((team, index) => <pointer marker={`marker-${index + 1}`} />)\n teams.map((team, ... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74502626",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20408479/"
] |
74,502,635 | <p>I have this part of the df</p>
<pre><code> x y d n
0 -17.7 -0.785430 0.053884 y1
1 -15.0 -3820.085000 0.085000 y4
2 -12.5 2.138833 0.143237 y3
3 -12.4 1.721205 0.251180 y3
</code></pre>
<p>I want to replace all instances of <code>y3</code> for "3rd" an... | [
{
"answer_id": 74502684,
"author": "John Li",
"author_id": 20436957,
"author_profile": "https://Stackoverflow.com/users/20436957",
"pm_score": 2,
"selected": false,
"text": "index team teams .map() teams.map((team, index) => <pointer marker={`marker-${index + 1}`} />)\n teams.map((team, ... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74502635",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20458338/"
] |
74,502,641 | <p>I developed a Rest API with some logs (requests, responses, more info and errors)</p>
<p>I saw that if there are simultaneous requests, logs mix and you cant follow the execution in logs because you dont know which request was used for that log line.</p>
<p>Is there any execution id that can be added at the beginnin... | [
{
"answer_id": 74502684,
"author": "John Li",
"author_id": 20436957,
"author_profile": "https://Stackoverflow.com/users/20436957",
"pm_score": 2,
"selected": false,
"text": "index team teams .map() teams.map((team, index) => <pointer marker={`marker-${index + 1}`} />)\n teams.map((team, ... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74502641",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9833056/"
] |
74,502,659 | <p>I am a newbie with this. I have created a database of hundreds of proverbs and their MEANING, as well as Headwords and their definitions (MEANS).</p>
<p>I would like to generate a graph of a random Proverb, but with the related words and definitions.</p>
<p>My current cypher query that does return some interesting ... | [
{
"answer_id": 74502684,
"author": "John Li",
"author_id": 20436957,
"author_profile": "https://Stackoverflow.com/users/20436957",
"pm_score": 2,
"selected": false,
"text": "index team teams .map() teams.map((team, index) => <pointer marker={`marker-${index + 1}`} />)\n teams.map((team, ... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74502659",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3358585/"
] |
74,502,685 | <p>I have to create a database with a single row for every day in the interval between the two dates (date_in - date_out).
I have to use R.</p>
<p>How can I do this?</p>
<p>My data:</p>
<pre><code> id date_in date_out days
1 1 13May2022 0:00:00 03Jul2022 0:00:00 51
2 3 10Nov2020 0:00:00 15Nov20... | [
{
"answer_id": 74502684,
"author": "John Li",
"author_id": 20436957,
"author_profile": "https://Stackoverflow.com/users/20436957",
"pm_score": 2,
"selected": false,
"text": "index team teams .map() teams.map((team, index) => <pointer marker={`marker-${index + 1}`} />)\n teams.map((team, ... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74502685",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9390952/"
] |
74,502,700 | <p>Imagine a parent class which has a mangled attribute, and a child class:</p>
<pre class="lang-py prettyprint-override"><code>class Foo:
def __init__(self):
self.__is_init = False
async def init(self):
# Some custom logic here, not important
self.__is_init = True
class Bar(Foo):
... | [
{
"answer_id": 74502718,
"author": "Dmitriy Neledva",
"author_id": 16786350,
"author_profile": "https://Stackoverflow.com/users/16786350",
"pm_score": 0,
"selected": false,
"text": "class Foo:\n\n def __init__(self):\n self.__is_init = False\n\n async def init(self):\n ... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74502700",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9608133/"
] |
74,502,727 | <p>I was able to shuffle through my deck of cards (array of objects), but now I'm trying to pull out/remove the first 25 cards(objects) and place them into their own stored array. However, my code is returning undefined when I try to reference the new deck cards var player1Deck = shuffledCards.splice(25); is returning... | [
{
"answer_id": 74502718,
"author": "Dmitriy Neledva",
"author_id": 16786350,
"author_profile": "https://Stackoverflow.com/users/16786350",
"pm_score": 0,
"selected": false,
"text": "class Foo:\n\n def __init__(self):\n self.__is_init = False\n\n async def init(self):\n ... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74502727",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11996252/"
] |
74,502,731 | <p>My aim is to create my own analogue of <code>std::basic_string</code> but with some additional conditions. I want my <code>AnyString<CharType, Traits></code> to be convertible from <code>std::basic_string<CharType, AnyOtherTraits, AnyAlloc></code> but I want to disable this constructor for some CharType ... | [
{
"answer_id": 74502812,
"author": "Pepijn Kramer",
"author_id": 16649550,
"author_profile": "https://Stackoverflow.com/users/16649550",
"pm_score": 3,
"selected": true,
"text": "#include <type_traits>\n#include <string>\n\n// declare your own concept\ntemplate<typename type_t>\nconcept ... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74502731",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20492391/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.